2013-05-10 Marc Glisse <marc.glisse@inria.fr>
[official-gcc.git] / gcc / ChangeLog
blobbdc8bc50e10ce080f92bea8cdd37cfc4b69b3ddf
1 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
3         * stor-layout.c (element_precision): New function.
4         * machmode.h (element_precision): Declare it.
5         * tree.c (build_minus_one_cst): New function.
6         (element_precision): Likewise.
7         * tree.h (build_minus_one_cst): Declare new function.
8         (element_precision): Likewise.
9         * fold-const.c (operand_equal_p): Use element_precision.
10         (fold_binary_loc): Handle vector types.
11         * convert.c (convert_to_integer): Use element_precision.
12         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
13         separately.
15 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
17         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
18         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
19         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
20         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
21         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
22         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
23         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
24         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26         (Uuw8): New constraints.
27         (Usb4): Move into alphabetical order.
28         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29         (sd8_operand, ub8_operand, uw8_operand): New predicates.
30         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
31         previously unnamed patterns.
32         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
33         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
34         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
35         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
36         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
37         of specific lengths.
39 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
41         * config/i386/i386.md (rotateinv): New code attr.
42         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
43         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
44         roll $31, %eax, etc.
46         PR tree-optimization/45216
47         PR tree-optimization/57157
48         * tree-ssa-forwprop.c (simplify_rotate): New function.
49         (ssa_forward_propagate_and_combine): Call it.
51 2013-05-10  Richard Biener  <rguenther@suse.de>
53         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
54         disable peeling when we version for aliasing.
55         (vector_alignment_reachable_p): Honor explicit user alignment.
56         (vect_supportable_dr_alignment): Likewise.
57         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
58         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
59         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
60         then peeling to arrange for the cost-model check to come first.
62 2013-05-10  Alan Modra  <amodra@gmail.com>
64         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
65         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
66         * configure: Regenerate.
68 2013-05-10  Alan Modra  <amodra@gmail.com>
70         PR target/55033
71         * varasm.c (default_elf_select_section): Move !DECL_P check..
72         (get_named_section): ..to here before calling get_section_name.
73         Adjust assertion.
74         (default_section_type_flags): Add DECL_P check.
75         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
76         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
78 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
80         * config/epiphany/epiphany.c (epiphany_expand_prologue):
81         When using gen_stack_adjust_str with a register offset, add a
82         REG_FRAME_RELATED_EXPR note.
84 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
86         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
87         (*vec_extractv4si_zext_mem): Ditto.
88         (*vec_extractv2di): Add 0->x and x->x alternatives.
89         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
90         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
92 2013-05-09  Jason Merrill  <jason@redhat.com>
94         N3639 C++1y VLA support
95         * gimplify.c (gimplify_vla_decl): Don't touch an existing
96         DECL_VALUE_EXPR.
98         * tree.c (build_constructor_va): New.
99         * tree.h: Declare it.
101 2013-05-09  Martin Jambor  <mjambor@suse.cz>
103         PR lto/57084
104         * gimple-fold.c (canonicalize_constructor_val): Call
105         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
107 2013-05-09  Jan Hubicka  <jh@suse.cz>
108             Richard Biener  <rguenther@suse.de>
110         PR lto/54095
111         * symtab.c (symtab_make_decl_local): Do not add private names.
113 2013-05-09  Jan Hubicka  <jh@suse.cz>
115         PR lto/54095
116         * symtab.c (insert_to_assembler_name_hash): Handle clones.
117         (unlink_from_assembler_name_hash): Likewise.
118         (symtab_prevail_in_asm_name_hash, symtab_register_node,
119         symtab_unregister_node, symtab_initialize_asm_name_hash,
120         change_decl_assembler_name): Update.
122 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
124         * config/aarch64/aarch64.md: New movtf split.
125         (*movtf_aarch64): Update.
126         (aarch64_movdi_tilow): Handle TF modes and rename to
127         aarch64_movdi_<mode>low.
128         (aarch64_movdi_tihigh): Handle TF modes and rename to
129         aarch64_movdi_<mode>high
130         (aarch64_movtihigh_di): Handle TF modes and rename to
131         aarch64_mov<mode>high_di
132         (aarch64_movtilow_di): Handle TF modes and rename to
133         aarch64_mov<mode>low_di
134         (aarch64_movtilow_tilow): Remove spurious whitespace.
135         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
136         splits.
137         (aarch64_print_operand): Update.
139 2013-05-09  Alan Modra  <amodra@gmail.com>
141         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
142         powerpc64le.
143         * configure: Regenerate.
145 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
147         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
148         splitter preparation statements.
149         * config/i386/sse.md (*vec_extract* splitters): Ditto.
150         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
151         adjust_address_nv.
153 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
155         * gimple-ssa-strength-reduction.c (count_candidates): Change
156         return value to int.
157         (analyze_candidates_and_replace): Change type of length to int.
159 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
161         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
162         (*vec_extract<mode>): Use VI12_128 mode iterator.
163         (*vec_extract<mode>_mem): Ditto.
164         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
165         attribute.
167 2013-05-08  Diego Novillo  <dnovillo@google.com>
169         PR bootstrap/54659
171         Revert:
172         2012-08-17  Diego Novillo  <dnovillo@google.com>
174         PR bootstrap/54281
175         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
176         * config.in: Regenerate.
177         * configure: Regenerate.
178         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
180 2013-05-08  Jan Hubicka  <jh@suse.cz>
182         PR lto/54095
183         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
184         * cgraph.h (symtab_node_base): Add unique_name.
185         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
186         input_overwrite_node, input_varpool_node): Stream unique_name.
187         * cgraphclones.c (cgraph_create_virtual_clone,
188         cgraph_function_versioning): Set unique_name.
189         * ipa.c (function_and_variable_visibility): Set unique_name.
191 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
193         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
194         (alloc_cand_and_find_basis): Restrict conditional candidate
195         processing to CAND_MULTs.
197 2013-05-08  Jan Hubicka  <jh@suse.cz>
199         PR lto/54095
200         lto-symtab.c (lto_symtab_symbol_p): New function.
201         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
202         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
203         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
204         Skip static symbols.
206 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
208         PR tree-optimization/57200
209         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
210         Only call inform if the preceding warning_at returns true.
212 2013-05-07  Han Shen  <shenhan@google.com>
214         * cfgexpand.c (record_or_union_type_has_array_p): New function.
215         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
216         * common.opt (fstack-protector-strong): New option.
217         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
218         * doc/invoke.texi (Optimization Options): Document
219         "-fstack-protector-strong".
220         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
222 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
224         * config/mips/mips.c (mips_machine_reorg2): Return 0.
226 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
228         * ira.c (update_equiv_regs): Add insn having equiv memory even if
229         it is not lhs of the insn.
230         (setup_reg_equiv): Remove insn having equiv memory which it is not
231         lhs of the insn.
232         * lra-constraints.c (process_address): Try to improve generation
233         code for address base + disp.
234         (lra_constraints): Make correct the code for checking insn setting
235         up backward equivalence.  Remove insn only if it is in the init
236         insn list.
237         * lra-eliminations.c (update_reg_eliminate): Change return value.
238         (lra_eliminate): Use the result.
240 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
242         * config/i386/sse.md (ssescalarnummask): New mode attribute.
243         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
244         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
245         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
246         register target operands.
247         (*vec_extractv8hi_sse2): New pattern.
248         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
249         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
250         (*vec_extract<mode>_mem): New insn and split pattern.
252 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
254         * config/arm/arm.c (arm_asan_shadow_offset): New function.
255         (TARGET_ASAN_SHADOW_OFFSET): Define.
256         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
257         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
259 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
261         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
262         (incr_vec_index): Return -1 if increment not found.
263         (create_add_on_incoming_edge): Assert if increment not found.
264         (record_increment): Limit number of increments recorded.
265         (all_phi_incrs_profitable): Return false if an increment not found.
266         (replace_profitable_candidates): Don't process increments that were
267         not recorded.
268         (analyze_candidates_and_replace): Limit size of incr_vec.
270 2013-05-07  Richard Biener  <rguenther@suse.de>
272         * calls.c (special_function_p): setjmp-like functions are leaf.
273         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
274         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
276 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
278         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
279         (aarch64_simd_mov<mode>): New expander.
280         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
281         (aarch64_simd_mov_to_<mode>high): Likewise.
282         (aarch64_simd_mov_from_<mode>low): Likewise.
283         (aarch64_simd_mov_from_<mode>high): Likewise.
284         (aarch64_dup_lane<mode>): Update.
285         (aarch64_dup_lanedi): New instruction pattern.
286         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
287         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
289 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
291         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
292         (replace_mult_candidate): Remove unnecessary argument; remove
293         unnecessary parameter from call to introduce_cast_before_cand.
294         (replace_unconditional_candidate): Remove unnecessary parameter
295         from call to replace_mult_candidate.
296         (replace_conditional_candidate): Likewise.
297         (insert_initializers): Use make_temp_ssa_name.
298         (introduce_cast_before_cand): Remove unnecessary argument; use
299         make_temp_ssa_name.
300         (replace_one_candidate): Remove unnecessary argument; remove
301         unnecessary parameter from calls to introduce_cast_before_cand.
302         (replace_profitable_candidates): Remove unnecessary parameters
303         from calls to replace_one_candidate.
305 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
307         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
308         phi def as possibly hiding a basis for a CAND_ADD whose operands
309         have been commuted in the analysis.
310         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
312 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
314         * config/aarch64/aarch64.md
315         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
316         shift value between 0-4.
318 2013-05-07  Richard Biener  <rguenther@suse.de>
320         * double-int.h (rshift): New overload.
321         * double-int.c (rshift): New function.
322         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
323         (create_reference_ops_from_ref): Remove.
324         (vn_reference_insert): Use shared ops for constructing the
325         reference and copy it.
327 2013-05-07  Richard Biener  <rguenther@suse.de>
329         PR middle-end/57190
330         * tree-eh.c (sink_clobbers): Properly propagate
331         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
333 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
335         PR tree-optimization/57149
336         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
337         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
338         collect_phi_def_edges, execute_late_warn_uninitialized): Use
339         uninit_undefined_value_p instead of ssa_undefined_value_p.
341         PR debug/57184
342         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
343         for modifier == EXPAND_INITIALIZER.
345 2013-05-07  Anton Blanchard  <anton@samba.org>
347         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
348         for powerpc64 little endian.
349         * configure: Regenerate.
351 2013-05-06  Graham Stott  <grahams@btinternet.com>
353         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
354         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
355         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
356         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
358 2013-05-06  Graham Stott  <grahams@btinternet.com>
360         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
361         codes which allow non-lvalues.
363 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
365         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
366         components are all 1s.
367         (integer_minus_onep): New function.
368         * tree.h (integer_minus_onep): Declare it.
369         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
370         integer_minus_onep instead of integer_all_onesp.
372 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
374         PR target/52933
375         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
376         variations of these patterns.
378 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
380         * config/i386/i386.md (isa): Add x64_sse4 member.
381         (enabled): Handle x64_sse4.
382         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
383         instruction for 64bit SSE4_1 targets.  Update insn attributes.
384         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
385         instruction for SSE4_1 targets.  Update insn attributes.
386         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
387         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
388         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
389         const_1 selector.
390         (*vec_extractv4si): Rename from *sse4_1_pextrd.
391         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
392         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
394 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
396         PR target/57108
397         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
399 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
401         * final.c (do_assembler_dialects): Don't handle curly braces and
402         vertical bar escaped by % as dialect delimiters.
403         (output_asm_insn): Print curly braces and vertical bar if escaped
404         by % and ASSEMBLER_DIALECT defined.
405         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
406         * doc/tm.texi: Regenerated.
408 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
410         * config/mips/mips.c: Include tree-pass.h.
411         (mips_reorg): Split in pre- and post-dbr_schedule parts.
412         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
413         (pass_mips_machine_reorg2): New machine specific pass.
414         (insert_pass_mips_machine_reorg2): New pass plugin definition.
415         (mips_option_override): Register the new pass.
416         * rtl.h (cleanup_barriers): Remove prototype.
417         (dbr_schedule): Likewise.
418         * jump.c (cleanup_barriers): Make static.
419         * reorg.c (dbr_schedule): Likewise.
421 2013-05-06  Richard Biener  <rguenther@suse.de>
423         PR tree-optimization/57185
424         * tree-parloops.c (add_field_for_reduction): Handle anonymous
425         SSA names properly.
427 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
429         PR target/57106
430         * config/i386/i386.c (add_parameter_dependencies): Add dependence
431         between "first_arg" and "insn", not "last" and "insn".
433 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
435         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
436         (find_candidates_in_block): Re-enable slsr_process_phi.
437         (create_phi_basis): Fix double counting of candidate adjustment.
439 2013-05-06  Richard Biener  <rguenther@suse.de>
441         PR middle-end/57147
442         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
443         the edge is also fallthru, preserve it and just clear the
444         abnormal flag.
445         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
446         also complex, preserve that and just clear the fallthru flag.
447         * tree-inline.c (update_ssa_across_abnormal_edges): Also
448         update virtual operands.
450 2013-05-06  Alan Modra  <amodra@gmail.com>
452         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
453         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
454         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
455         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
456         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
457         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
459 2013-05-06  Alan Modra  <amodra@gmail.com>
461         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
462         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
463         (DEFAULT_ASM_ENDIAN): Define.
464         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
465         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
466         Update -K PIC clause from sysv4.h.
467         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
468         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
470 2013-05-06  Alan Modra  <amodra@gmail.com>
472         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
473         twice for little-endian.
474         (ashrdi3_no_power, ashrdi3): Support little-endian.
476 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
478         PR target/55303
479         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
480         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
481         related expanders.
482         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
483         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
484         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
485         New predicates.
487 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
488             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
490         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
491         * config/pa/pa.opt: Make mbig-switch a no-op.
492         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
493         (CASE_VECTOR_MODE): Always return SImode.
494         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
495         for the !TARGET_BIG_SWITCH case.
496         * config/pa/pa-linux.h: Likewise.
497         * config/pa/pa-openbsd.h: Likewise.
498         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
499         * config/pa/pa.md (short_jump): Remove define_insn.
500         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
501         (casesi0): Remove define_insn.
502         (type): Remove btable_branch.
503         (pa_combine_type): Likewise.
504         (in_nullified_branch_delay): Likewise.
505         (in_call_delay): Likewise.
506         (define_delay): Likewise.
507         (define_insn_reservation "Z3"): Likewise.
508         (define_insn_reservation "Z4"): Likewise.
509         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
510         (pa_adjust_insn_length): Remove adjustment for btable branches.
511         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
512         and mno-big-switch
514 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
516         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
517         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
518         Add m->r,x alternatives.
519         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
520         splitters using SWI48x mode iterator.
521         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
522         TARGET_64BIT.  Add m->x alternative.
523         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
524         Add o->x alternative.  Enable for TARGET_SSE.
525         (sse_storeq): Remove expander.
526         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
527         with memory input operand.
528         (*vec_extractv2di_1 splitter): New.
529         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
530         * config/i386/i386.md (ssevecmodelower): New mode attribute.
532 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
534         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
535         (INT_LOWPART): Delete.
536         (extract_MB): Adjust.
537         (extract_ME): Adjust.
538         (print_operand): Adjust.
540 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
542         * config/rs6000/predicates.md (reg_or_add_cint_operand,
543         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
544         (reg_or_logical_cint_operand, easy_fp_constant,
545         logical_const_operand): Delete "CONST_DOUBLE" case.
546         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
547         "HOST_BITS_PER_WIDE_INT == 64" test.
548         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
549         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
550         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
551         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
552         test.
553         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
554         CONST_DOUBLE DImode/VOIDmode case.
555         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
556         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
557         CONST_DOUBLE VOIDmode case.
558         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
559         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
560         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
561         Delete CONST_DOUBLE case.
562         (splitters for mov FMOVE64 const_double): Delete
563         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
564         "HOST_BITS_PER_WIDE_INT >= 64" test.
565         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
566         case.
567         (mov DI const_double): Delete.
569 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
571         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
572         on op shows all bits zero in mode of a lowpart subreg, return zero.
574 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
576         PR target/57150
577         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
578         to save TFmode registers and DImode to save TImode registers for
579         caller save operations.
580         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
581         mark being partially clobbered since they only use the first
582         double word.
584         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
585         and TDmode only use the upper 64-bits of each VSX register.
587 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
589         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
590         (find_candidates_in_block): Disable slsr_process_phi.
592 2013-05-03  Guozhi Wei  <carrot@google.com>
594         * coverage.c (coverage_obj_init): Move the construction of gcov
595         constructor to ...
596         (build_init_ctor): ... here.
598 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
600         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
601         (slsr_cand_d): Redefine def_phi.
602         (stride_status, phi_adjust_status, count_phis_status): New enums.
603         (find_phi_def): New.
604         (find_basis_for_base_expr): New.
605         (find_basis_for_candidate): Handle hidden bases.
606         (alloc_cand_and_find_basis): Handle phi candidates.
607         (slsr_process_phi): New.
608         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
609         (create_mul_imm_cand): Likewise.
610         (create_add_ssa_cand): Exclude phi base candidates.
611         (create_add_imm_cand): Likewise.
612         (slsr_process_cast): Likewise.
613         (slsr_process_copy): Likewise.
614         (find_candidates_in_block): Handle phi candidates.
615         (dump_candidate): Likewise.
616         (unconditional_cands): Delete.
617         (unconditional_cands_with_known_stride_p): Delete.
618         (phi_dependent_cand_p): New.
619         (cand_increment): Handle phi-dependent candidates.
620         (replace_dependent): Delete.
621         (replace_mult_candidate): New.
622         (replace_unconditional_candidate): New.
623         (incr_vec_index): Move to avoid forward reference.
624         (create_add_on_incoming_edge): New.
625         (create_phi_basis): New.
626         (replace_dependents): Delete.
627         (replace_conditional_candidate): New.
628         (phi_add_costs): New.
629         (replace_uncond_cands_and_profitable_phis): New.
630         (record_increment): Handle phi adjustments.
631         (record_phi_increments): New.
632         (record_increments): Handle phi adjustments.
633         (phi_incr_cost): New.
634         (lowest_cost_path): Handle phis.
635         (total_savings): Likewise.
636         (analyze_increments): Likewise.
637         (ncd_with_phi): New.
638         (ncd_of_cand_and_phis): New.
639         (nearest_common_dominator_for_cands): Handle phi increments.
640         (all_phi_incrs_profitable): New.
641         (replace_profitable_candidates): Handle phi-dependent candidates.
642         (analyze_candidates_and_replace): Likewise.
644 2013-05-03  Teresa Johnson  <tejohnson@google.com>
646         PR bootstrap/57154
647         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
648         do not exceed REG_BR_PROB_BASE.
650 2013-05-03  Jeff Law  <law@redhat.com>
652         PR tree-optimization/57144
653         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
654         operand of the condition will bit into the new type when eliminating
655         a cast feeding a condition.
657 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
659         PR rtl-optimization/57130
660         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
661         of COMPARE as in_code to the recursive call if needed.
663 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
665         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
666         (enabled): Handle new members.
667         * config/i386/sse.md (*vec_concatv2si): Merge from
668         *vec_concatv2si_sse2 and vec_concatv2si_sse.
669         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
671 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
673         PR tree-optimization/57027
674         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
675         for fnms opportunity, check we got the prerequisite kind
676         of tree / gimple before using accessor functions.
678 2013-05-03  Richard Biener  <rguenther@suse.de>
680         * double-int.h (lshift): New overload without precision
681         and arith argument.
682         (operator *=, operator +=, operator -=): Move ...
683         * double-int.c (operator *=, operator +=, operator -=): ... here
684         and implement more efficiently.
685         (mul_double_with_sign): Remove.
686         (lshift_double): Adjust to take unsinged shift argument, push
687         dispatching code to callers.
688         (mul_double_wide_with_sign): Add early out for callers that
689         are not interested in high parts or overflow.
690         (lshift): New function.
691         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
692         dispatch code here.
693         (lrotate, rrotate): Use logical shifts.
694         * expr.c (get_inner_reference): Use lshift.
695         * fixed-value.c (do_fixed_divide): Likewise.
696         * tree-dfa.c (get_ref_base_and_extent): Likewise.
697         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
698         (indirect_refs_may_alias_p): Likewise.
699         (stmt_kills_ref_p_1): Likewise.
701 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
703         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
705 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
707         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
708         scalar form of FABD instruction.
710 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
712         * lra-constraints.c (process_alt_operands): Add checking alt
713         number to choose the best alternative.
715 2013-05-02  Richard Biener  <rguenther@suse.de>
717         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
718         bitmap and its handling.
719         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
721 2013-05-02  Richard Biener  <rguenther@suse.de>
723         PR middle-end/57140
724         * tree-inline.c (copy_loops): Properly handle removed loops.
725         (copy_cfg_body): Mark destination loops for fixup if source
726         loops needed fixup.
728 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
730         PR target/56732
731         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
732         generating simple_return for naked functions.
734 2013-05-02  Martin Jambor  <mjambor@suse.cz>
736         PR middle-end/56988
737         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
738         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
739         flags match.
740         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
741         ipa_agg_replacement_value structures.
742         (known_aggs_to_agg_replacement_list): Likewise.
743         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
744         (read_agg_replacement_chain): Likewise.
745         (ipcp_transform_function): Also check that by_ref flags match.
747 2013-05-02  Richard Biener  <rguenther@suse.de>
749         * graphds.h (struct graph): Add obstack member.
750         * graphds.c (new_graph): Initialize obstack and allocate
751         vertices from it.
752         (add_edge): Allocate edge from the obstack.
753         (free_graph): Free the obstack instead of all edges and vertices.
755 2013-05-02  Teresa Johnson  <tejohnson@google.com>
757         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
758         divides.
759         * cfg.c (update_bb_profile_for_threading): Ditto.
760         * tree-inline.c (copy_bb): Ditto.
761         (copy_edges_for_bb): Ditto.
762         (initialize_cfun): Ditto.
763         (copy_cfg_body): Ditto.
764         (expand_call_inline): Ditto.
765         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
766         (estimate_node_size_and_time): Ditto.
767         (inline_merge_summary): Ditto.
768         * cgraphclones.c (cgraph_clone_edge): Ditto.
769         (cgraph_clone_node): Ditto.
770         * sched-rgn.c (compute_dom_prob_ps): Ditto.
771         (compute_trg_info): Ditto.
773 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
775         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
776         S reg when fp attribute set.
777         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
779 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
781         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
782         New pattern.
783         (*and_one_cmplsi3_compare0_uxtw): Likewise.
784         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
785         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
787 2013-05-02  Richard Biener  <rguenther@suse.de>
789         * tree-scalar-evolution.c (scev_info_hasher): Remove.
790         (struct instantiate_cache_entry): New type.
791         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
792         (struct instantiate_cache_type): New type.
793         (set_instantiated_value, get_instantiated_value): Remove.
794         (get_instantiated_value_entry): New function.
795         (instantiate_scev_name): Use the new cache and adjust.
796         (instantiate_scev_poly): Adjust.
797         (instantiate_scev_binary): Likewise.
798         (instantiate_array_ref): Likewise.
799         (instantiate_scev_convert): Likewise.
800         (instantiate_scev_not): Likewise.
801         (instantiate_scev_3): Likewise.
802         (instantiate_scev_2): Likewise.
803         (instantiate_scev_r): Likewise.
804         (instantiate_scev): Likewise.
805         (resolve_mixers): Likewise.
807 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
809         PR target/57091
810         * lra-constraints.c (best_small_class_operands_num): Remove.
811         (process_alt_operands): Remove small_class_operands_num.  Take
812         small classes operands into losers and only if the operand is not
813         matched.  Modify debugging output.
814         (curr_insn_transform): Remove best_small_class_operands_num.
815         Print insn name.
817 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
819         * config/aarch64/aarch64-builtins.c
820         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
821         * config/aarch64/aarch64-simd-builtins.def
822         (reduc_splus_): Add new modes.
823         (reduc_uplus_): New.
824         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
825         (reduc_uplus_v4sf): Likewise.
826         (reduc_splus_v4sf): Likewise.
827         (aarch64_addv<mode>): Likewise.
828         (reduc_uplus_<mode>): Likewise.
829         (reduc_splus_<mode>): Likewise.
830         (aarch64_addvv2di): Likewise.
831         (reduc_uplus_v2di): Likewise.
832         (reduc_splus_v2di): Likewise.
833         (aarch64_addvv2si): Likewise.
834         (reduc_uplus_v2si): Likewise.
835         (reduc_splus_v2si): Likewise.
836         (reduc_<sur>plus_<mode>): New.
837         (reduc_<sur>plus_v2di): Likewise.
838         (reduc_<sur>plus_v2si): Likewise.
839         (reduc_<sur>plus_v4sf): Likewise.
840         (aarch64_addpv4sf): Likewise.
841         * config/aarch64/arm_neon.h
842         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
843         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
844         add UNSPEC_SADDV, UNSPEC_UADDV.
845         (SUADDV): New.
846         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
848 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
850         * config/aarch64/arm_neon.h
851         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
853 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
855         * config/aarch64/aarch64-builtins
856         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
858 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
860         * config/aarch64/aarch64-simd-builtins.def
861         (reduc_smax_): New.
862         (reduc_smin_): Likewise.
863         (reduc_umax_): Likewise.
864         (reduc_umin_): Likewise.
865         (reduc_smax_nan_): Likewise.
866         (reduc_smin_nan_): Likewise.
867         (fmax): Remove.
868         (fmin): Likewise.
869         (smax): Update for V2SF, V4SF and V2DF modes.
870         (smin): Likewise.
871         (smax_nan): New.
872         (smin_nan): Likewise.
873         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
874         (<su><maxmin><mode>3): ...This, refactor.
875         (s<maxmin><mode>3): New.
876         (<maxmin_uns><mode>3): Likewise.
877         (reduc_<maxmin_uns>_<mode>): Refactor.
878         (reduc_<maxmin_uns>_v4sf): Likewise.
879         (reduc_<maxmin_uns>_v2si): Likewise.
880         (aarch64_<fmaxmin><mode>: Remove.
881         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
882         new builtin names.
883         (vmin<q>_f<32,64>): Likewise.
884         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
885         (FMAXMIN): New.
886         (su): Add mappings for smax, smin, umax, umin.
887         (maxmin): New.
888         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
889         (FMAXMIN): Rename as...
890         (FMAXMIN_UNS): ...This.
891         (maxminv): Remove.
892         (fmaxminv): Likewise.
893         (fmaxmin): Likewise.
894         (maxmin_uns): New.
895         (maxmin_uns_op): Likewise.
897 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
899         * config/aarch64/arm_neon.h
900         (vac<ge, gt><sd>_f<32, 64>): Rename to...
901         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
902         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
904 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
906         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
907         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
909 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
911         * config/aarch64/aarch64-simd.md
912         (vcond<mode>_internal): Handle special cases for constant masks.
913         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
914         (vcondu<mode><mode>): Likewise.
915         (vcond<v_cmp_result><mode>): New.
917 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
919         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
920         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
921         * config/aarch64/aarch64-simd-builtins.def
922         (cmeq): Update to BUILTIN_VALLDI.
923         (cmgt): Likewise.
924         (cmge): Likewise.
925         (cmle): Likewise.
926         (cmlt): Likewise.
927         * config/aarch64/arm_neon.h
928         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
929         to builtins or C as appropriate.
931 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
933         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
934         (cmgeu): ...This.
935         (cmhi): Rename to...
936         (cmgtu): ...This.
937         * config/aarch64/aarch64-simd.md
938         (simd_mode): Add SF.
939         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
940         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
941         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
942         (cstore<mode>_neg): ...This.
943         * config/aarch64/iterators.md
944         (VALLF): new.
945         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
946         (COMPARISONS): New.
947         (UCOMPARISONS): Likewise.
948         (optab): Add missing comparisons.
949         (n_optab): New.
950         (cmp_1): Likewise.
951         (cmp_2): Likewise.
952         (CMP): Likewise.
953         (cmp): Remove.
954         (VCMP_S): Likewise.
955         (VCMP_U): Likewise.
956         (V_cmp_result): Add DF, SF modes.
957         (v_cmp_result): Likewise.
958         (v): Likewise.
959         (vmtype): Likewise.
960         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
962 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
964         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
965         define_insn to define_insn_and_split.
966         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
967         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
968         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
969         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
970         (thumb2_negscc): Likewise.
972 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
974         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
976 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
978         * config/arm/thumb2.md: Remove trailing whitespaces.
980 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
982         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
983         Use gen_int_mode rather than GEN_INT.
985 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
987         * value-prof.c (stream_in_histogram_value): Remove the strayed
988         debug_gimple_stmt.
990 2013-04-30  Richard Biener  <rguenther@suse.de>
992         PR middle-end/57122
993         * cfghooks.c (split_edge): Properly check for the loop latch edge.
995 2013-04-30  Richard Biener  <rguenther@suse.de>
997         PR middle-end/57107
998         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
1000 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
1002         PR rtl-optimization/56957
1003         PR rtl-optimization/57105
1004         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
1005         variable.  Use just INSN_UID for determining whether an insn
1006         should be only disconnected from the insn stream.
1007         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
1009 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
1011         PR tree-optimization/57104
1012         * tsan.c (instrument_expr): Don't instrument accesses to
1013         DECL_HARD_REGISTER VAR_DECLs.
1015 2013-04-30  Richard Biener  <rguenther@suse.de>
1017         * function.h (loops_for_fn): New inline function.
1018         (set_loops_for_fn): Likewise.
1019         * cfgloop.h (place_new_loop): Add struct function parameter.
1020         (get_loop): Likewise.
1021         (get_loops): Likewise.
1022         (number_of_loops): Likewise.
1023         (fel_next): Adjust.
1024         (fel_init): Likewise.
1025         * cfg.c (get_loop_copy): Adjust.
1026         * cfgloop.c (flow_loops_dump): Likewise.
1027         (record_loop_exits): Likewise.
1028         (verify_loop_structure): Likewise.
1029         * cfgloopanal.c (mark_irreducible_loops): Likewise.
1030         (estimate_reg_pressure_cost): Likewise.
1031         (mark_loop_exit_edges): Likewise.
1032         * cfgloopmanip.c (place_new_loop): Likewise.
1033         (add_loop): Likewise.
1034         (duplicate_loop): Likewise.
1035         * graph.c (draw_cfg_nodes): Likewise.
1036         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
1037         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
1038         (extract_affine_chrec): Likewise.
1039         (build_scop_iteration_domain): Likewise.
1040         * graphite.c (graphite_initialize): Likewise.
1041         * ira-build.c (create_loop_tree_nodes): Likewise.
1042         (more_one_region_p): Likewise.
1043         (rebuild_regno_allocno_maps): Likewise.
1044         (mark_loops_for_removal): Likewise.
1045         (mark_all_loops_for_removal): Likewise.
1046         (remove_unnecessary_regions): Likewise.
1047         (ira_build): Likewise.
1048         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1049         * loop-init.c (fix_loop_structure): Likewise.
1050         (gate_rtl_move_loop_invariants): Likewise.
1051         (gate_rtl_unswitch): Likewise.
1052         (gate_rtl_unroll_and_peel_loops): Likewise.
1053         (rtl_doloop): Likewise.
1054         * lto-streamer-in.c (input_cfg): Likewise.
1055         * lto-streamer-out.c (output_cfg): Likewise.
1056         * modulo-sched.c (sms_schedule): Likewise.
1057         * predict.c (tree_estimate_probability): Likewise.
1058         (tree_estimate_probability_driver): Likewise.
1059         (estimate_loops): Likewise.
1060         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
1061         (move_sese_region_to_fn): Likewise.
1062         (debug_loop_num): Likewise.
1063         * tree-chrec.c (chrec_evaluate): Likewise.
1064         (hide_evolution_in_other_loops_than_loop): Likewise.
1065         (chrec_component_in_loop_num): Likewise.
1066         (reset_evolution_in_loop): Likewise.
1067         (evolution_function_is_invariant_rec_p): Likewise.
1068         * tree-if-conv.c (main_tree_if_conversion): Likewise.
1069         * tree-inline.c (copy_loops): Likewise.
1070         (copy_cfg_body): Likewise.
1071         (tree_function_versioning): Likewise.
1072         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
1073         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1074         Likewise.
1075         (add_to_evolution_1): Likewise.
1076         (scev_const_prop): Likewise.
1077         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1078         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1079         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1080         (tree_ssa_lim_initialize): Likewise.
1081         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
1082         (verify_loop_closed_ssa): Likewise.
1083         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
1084         (tree_ssa_loop_im): Likewise.
1085         (tree_ssa_loop_unswitch): Likewise.
1086         (tree_vectorize): Likewise.
1087         (check_data_deps): Likewise.
1088         (tree_ssa_loop_ivcanon): Likewise.
1089         (tree_ssa_loop_bounds): Likewise.
1090         (tree_complete_unroll): Likewise.
1091         (tree_complete_unroll_inner): Likewise.
1092         (tree_parallelize_loops): Likewise.
1093         (tree_ssa_loop_prefetch): Likewise.
1094         (tree_ssa_loop_ivopts): Likewise.
1095         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
1096         * tree-vectorizer.c (vectorize_loops): Likewise.
1098 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
1100         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
1101         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
1102         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
1103         with EABI_LINK_SPEC.
1105 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1107         PR target/44578
1108         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
1109         alternative.
1111 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
1113         PR target/57097
1114         * lra-constraints.c (process_alt_operands): Discourage a bit more
1115         using memory for pseudos.  Print cost dump for alternatives.
1116         Modify cost values for conflicts with early clobbers.
1117         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1119 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1121         PR target/57098
1122         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1124 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
1126         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
1127         from/to S register.
1128         (movdi_aarch64): Support LDR/STR from/to D register.
1130 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
1132         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
1133         or higher by default.
1135 2013-04-29  Richard Biener  <rguenther@suse.de>
1137         PR middle-end/57075
1138         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
1139         even if not adding abnormal edges for calls that can make
1140         abnormal gotos.
1142 2013-04-29  Richard Biener  <rguenther@suse.de>
1144         PR middle-end/57103
1145         * tree-cfg.c (move_stmt_op): Fix condition under which to update
1146         TREE_BLOCK.
1147         (move_stmt_r): Remove redundant checking.
1149 2013-04-29  Teresa Johnson  <tejohnson@google.com>
1151         PR bootstrap/57077
1152         * basic-block.h (apply_scale): New function.
1153         (apply_probability): Use apply_scale.
1154         * gimple-streamer-in.c (input_bb): Ditto.
1155         * lto-streamer-in.c (input_cfg): Ditto.
1156         * lto-cgraph.c (merge_profile_summaries): Ditto.
1157         * tree-optimize.c (execute_fixup_cfg): Ditto.
1158         * tree-inline.c (copy_bb): Update comment to use apply_scale.
1159         (copy_edges_for_bb): Ditto.
1160         (copy_cfg_body): Ditto.
1162 2013-04-29  Tom de Vries  <tom@codesourcery.com>
1164         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
1165         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
1166         (tail_merge_optimize): Handle current_loops == NULL.
1168 2013-04-26  Jeff Law  <law@redhat.com>
1170         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
1171         (simplify_cond_using_ranges): Generalize code to simplify
1172         COND_EXPRs where one argument is a constant and the other
1173         is an SSA_NAME created by an integral type conversion.
1175 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1177         * config/arm/arm.md (store_minmaxsi): Use only when
1178         optimize_insn_for_size_p.
1180 2013-04-29  Christian Bruel  <christian.bruel@st.com>
1182         PR target/57108
1183         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
1185 2013-04-29  Richard Biener  <rguenther@suse.de>
1187         PR middle-end/57089
1188         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
1189         loop tree make sure to schedule a fixup for the child as well.
1190         (expand_omp_for_generic): Properly add loops.
1191         (expand_omp_for_static_nochunk): Likewise.
1192         (expand_omp_for_static_chunk): Likewise.
1193         (expand_omp_for): For the degenerate case fixup loops.
1194         (expand_omp_sections): Fix default bb placement in loops.
1195         (expand_omp_atomic_pipeline): Properly add loops.
1197 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1199         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
1201 2013-04-29  Tom de Vries  <tom@codesourcery.com>
1203         * tree-ssa-tail-merge.c: Update header comment.
1205 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1207         * config/aarch64/arm_neon.h
1208         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
1209         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
1210         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
1211         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
1212         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
1213         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
1214         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
1215         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
1217 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1219         * config/aarch64/aarch64-simd.md
1220         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
1221         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
1222         fix_trunc, fixuns_trunc.
1223         (ftrunc<VDQF:mode>2): New.
1224         * config/aarch64/iterators.md (optab): Add fix, fixuns.
1225         (fix_trunc_optab): New.
1227 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1229         * config/aarch64/aarch64-builtins.c
1230         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
1231         iceilf, lround, iroundf.
1233 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1235         PR target/54349
1236         * config/i386/i386.h (enum ix86_tune_indices)
1237         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
1238         New, split from X86_TUNE_INTER_UNIT_MOVES.
1239         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
1240         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
1241         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
1242         (TARGET_INTER_UNIT_MOVES): Remove.
1243         * config/i386/i386.c (initial_ix86_tune_features): Update.
1244         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
1245         (ix86_expand_convert_uns_didf_sse): Use
1246         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1247         (ix86_expand_vector_init_one_nonzero): Ditto.
1248         (ix86_expand_vector_init_interleave): Ditto.
1249         (inline_secondary_memory_needed): Return true for moves from SSE class
1250         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
1251         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1252         * config/i386/constraints.md (Yi, Ym): Depend on
1253         TARGET_INTER_UNIT_MOVES_TO_VEC.
1254         (Yj, Yn): New constraints.
1255         * config/i386/i386.md (*movdi_internal): Change constraints of
1256         operand 1 from Yi to Yj and from Ym to Yn.
1257         (*movsi_internal): Ditto.
1258         (*movdf_internal): Ditto.
1259         (*movsf_internal): Ditto.
1260         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
1261         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1262         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
1263         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
1264         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
1265         * config/i386/sse.md (movdi_to_sse): Ditto.
1266         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
1267         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
1268         TARGET_INTER_UNIT_MOVES.
1269         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
1270         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
1271         instead of TARGET_INTER_UNIT_MOVES.
1272         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
1273         operand 1 from Yi to Yj and from Ym to Yn.
1275 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1277         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
1278         (float_truncate_hi_): Likewise.
1279         (float_extend_lo_): Likewise.
1280         (float_truncate_lo_): Likewise.
1281         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
1282         (aarch64_float_extend_lo_v2df): Likewise.
1283         (vec_unpacks_hi_v4sf): Likewise.
1284         (aarch64_float_truncate_lo_v2sf): Likewise.
1285         (aarch64_float_truncate_hi_v4sf): Likewise.
1286         (vec_pack_trunc_v2df): Likewise.
1287         (vec_pack_trunc_df): Likewise.
1289 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1291         * config/aarch64/aarch64-builtins.c
1292         (aarch64_fold_builtin): Fold float conversions.
1293         * config/aarch64/aarch64-simd-builtins.def
1294         (floatv2si, floatv4si, floatv2di): New.
1295         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
1296         * config/aarch64/aarch64-simd.md
1297         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
1298         * config/aarch64/iterators.md (FLOATUORS): New.
1299         (optab): Add float, floatuns.
1300         (su_optab): Likewise.
1302 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1304         * config/aarch64/aarch64-builtins.c
1305         (aarch64_builtin_vectorized_function): Use new names for
1306         fcvt builtins.
1307         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
1308         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
1309         (fcvtzu): Split as...
1310         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
1311         (fcvtas): Split as...
1312         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
1313         (fcvtau): Split as...
1314         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
1315         (fcvtps): Split as...
1316         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
1317         (fcvtpu): Split as...
1318         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
1319         (fcvtms): Split as...
1320         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
1321         (fcvtmu): Split as...
1322         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
1323         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
1324         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
1325         (lfrintnusf, lfrintnudf): Likewise.
1326         * config/aarch64/aarch64-simd.md
1327         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
1328         define_insn.
1329         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
1330         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
1331         (fcvt_pattern): Likewise.
1333 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1335         * config/aarch64/aarch64-simd.md
1336         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
1337         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
1339 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1341         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
1342         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
1343         (vrnd<a,m,n,p>_f32): Implement using builtins.
1344         (vrnd<i,x><q>_f<32, 64>): New.
1346 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
1348         * config/aarch64/aarch64-builtins.c
1349         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
1350         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
1351         (frintz): Rename to...
1352         (btrunc): ...this.
1353         (frintp): Rename to...
1354         (ceil): ...this.
1355         (frintm): Rename to...
1356         (floor): ...this.
1357         (frinti): Rename to...
1358         (nearbyint): ...this.
1359         (frintx): Rename to...
1360         (rint): ...this.
1361         (frinta): Rename to...
1362         (round): ...this.
1363         * config/aarch64/aarch64-simd.md
1364         (aarch64_frint<frint_suffix><mode>): Delete.
1365         (<frint_pattern><mode>2): Convert to insn.
1366         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
1367         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
1368         (frint_pattern): Likewise.
1369         (frint_suffix): Likewise.
1371 2013-04-29  Richard Biener  <rguenther@suse.de>
1373         PR tree-optimization/57081
1374         * loop-init.c: Include tree-flow.h.
1375         (loop_optimizer_finalize): Free number of iteration estimates.
1376         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
1378 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
1380         PR tree-optimization/57083
1381         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1382         non-singleton shift count range, zero extend low_bound for uns case.
1384         * config/i386/predicates.md (general_vector_operand): New predicate.
1385         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
1386         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
1387         if they aren't nonimmediate operands.  If their original values
1388         satisfy const_vector_equal_evenodd_p, don't shift them.
1389         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
1390         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
1391         if not nonimmediate_operand.
1392         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
1393         instead of register_operand.
1394         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
1396 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1398         * stor-layout.c (finalize_size_functions): Allocate a structure and
1399         reset cfun before dumping the functions.
1401 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
1403         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
1405         PR target/56866
1406         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1407         use xop_pmacsdqh if uns_p.
1408         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1409         the immediate rotate count.
1411 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
1413         * rtl.h (struct rtx_def): Add comment for field jump.
1414         (LRA_SUBREG_P): New macro.
1415         * recog.c (register_operand): Check LRA_SUBREG_P.
1416         * lra.c (lra): Add note at the end of RTL code. Align non-empty
1417         stack frame.
1418         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1419         (lra_final_code_change): Skip subreg change for operators.
1420         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1421         if there are no operand changes.
1422         * lra-constraints.c (curr_insn_set): New.
1423         (match_reload): Set LRA_SUBREG_P.
1424         (emit_spill_move): Ditto.
1425         (check_and_process_move): Use curr_insn_set. Process only single
1426         set insns.  Don't initialize sec_mem_p and change_p.
1427         (simplify_operand_subreg): Use LRA_SUBREG_P.
1428         (reg_in_class_p): New function.
1429         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
1430         of #ifdef.  Add code to remove cycling.
1431         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1432         non-null disp.  Reload inner instead of disp when base and index
1433         are null.  Try to put lo_sum into register.
1434         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1435         (check_and_process_move): Move code for move cost check to
1436         simple_move_p.  Remove equiv_substitution.
1437         (simple_move_p): New function.
1438         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
1439         curr_insn_set.  Call check_and_process_move only for single set
1440         insns.  Use the new function.  Move call of check_and_process_move
1441         after operand equiv substitution and address process.
1443 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1445         PR go/57045
1446         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
1447         with nonlocal goto receivers or returns twice calls, ignore
1448         unininitialized values from abnormal edges to nl goto receiver
1449         or returns twice call.
1451 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1453         PR tree-optimization/57051
1454         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1455         and VEC_RSHIFT_EXPR if shift count is a multiple of element
1456         bitsize.
1458 2013-04-26  Richard Biener  <rguenther@suse.de>
1460         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1461         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
1462         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1463         (fixup_loop_arrays_after_move): New function.
1464         (move_sese_region_to_fn): Properly outline the loop tree parts
1465         of the SESE region.
1467 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
1469         * config/i386/i386.md (type, unit): Fix long lines.
1471 2013-04-26  Richard Biener  <rguenther@suse.de>
1473         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1474         (lto-streamer-out.o): Likewise.
1475         * cfgloop.c (init_loops_structure): Export, add struct function
1476         argument and adjust.
1477         (flow_loops_find): Adjust.
1478         * cfgloop.h (enum loop_estimation): Add EST_LAST.
1479         (init_loops_structure): Declare.
1480         * lto-streamer-in.c: Include cfgloop.h.
1481         (input_cfg): Input the loop tree.
1482         * lto-streamer-out.c: Include cfgloop.h.
1483         (output_cfg): Output the loop tree.
1484         (output_struct_function_base): Do not drop PROP_loops.
1486 2013-03-26  Richard Biener  <rguenther@suse.de>
1488         * tree-cfg.c (execute_build_cfg): Build the loop tree.
1489         (pass_build_cfg): Provide PROP_loops.
1490         (move_sese_region_to_fn): Remove loops that are outlined into fn
1491         for now.
1492         * tree-inline.c: Include cfgloop.h.
1493         (initialize_cfun): Do not drop PROP_loops.
1494         (copy_loops): New function.
1495         (copy_cfg_body): Copy loop structure.
1496         (tree_function_versioning): Initialize destination loop tree.
1497         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1498         (pass_parallelize_loops): Do IL verification.
1499         * loop-init.c (loop_optimizer_init): Fixup loops if required.
1500         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1501         the CFG make sure we fixup loops as well.
1502         * tree-ssa-tail-merge.c: Include cfgloop.h.
1503         (replace_block_by): When merging loop latches mark loops for fixup.
1504         * lto-streamer-out.c (output_struct_function_base): Drop
1505         PROP_loops for now.
1506         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
1507         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
1508         * ipa-split.c: Include cfgloop.h.
1509         (split_function): Add the new return block to the loop tree root.
1510         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
1511         whether we have removed the forwarder block.
1512         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
1513         * cfgloop.h (place_new_loop): Declare.
1514         * cfgloopmanip.c (place_new_loop): Export.
1515         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
1516         (tree-switch-conversion.o): Likewise.
1517         (tree-complex.o): Likewise.
1518         (tree-inline.o): Likewise.
1519         (tree-ssa-tailmerge.o): Likewise.
1520         (ipa-split.o): Likewise.
1521         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
1522         (tree-ssa-copy.o): Likewise.
1523         * tree-switch-conversion.c: Include cfgloop.h
1524         (process_switch): If we emit a bit-test cascade, schedule loops
1525         for fixup.
1526         * tree-complex.c: Include cfgloop.h.
1527         (expand_complex_div_wide): Properly add new basic-blocks to loops.
1528         * asan.c: Include cfgloop.h.
1529         (create_cond_insert_point): Properly add new basic-blocks to
1530         loops, schedule loop fixup.
1531         * cfgloop.c (verify_loop_structure): Check that looks are not
1532         marked for fixup.
1533         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
1534         to loops.
1535         (expand_omp_for_generic): Likewise.
1536         (expand_omp_sections): Likewise.
1537         (expand_omp_atomic_pipeline): Schedule loops for fixup.
1538         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
1539         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
1540         is initialized, not when loops are present.
1541         * tree-parloops.c (parallelize_loops): Remove checking here.
1542         * passes.c (init_optimization_passes): Schedule a copy-propagation
1543         pass before complete unrolling of inner loops.
1545 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1547         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
1548         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
1549         (colorize_init): Add argument to _WIN32 version.
1550         * toplev.c: Include diagnostic-color.h.
1551         (process_options): Default to -fdiagnostics-color=auto if
1552         GCC_COLORS env var is in the environment.
1553         * common.opt (fdiagnostics-color=): Add Var and Init.
1554         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
1555         env var is in the environment, the default is auto rather than never.
1557         * diagnostic.h (file_name_as_prefix): Add context argument.
1558         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
1559         the string as locus.
1560         * langhooks.c (lhd_print_error_function): Adjust caller.
1562 2013-04-25  Lawrence Crowl  <crowl@google.com>
1564         * var-tracking.c (shared_hash_def::htab):
1565         Change type to hash_table.  Update dependent calls and types.
1567 2013-04-25  Lawrence Crowl  <crowl@google.com>
1569         * Makefile.in: Update as needed below.
1571         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
1572         Move declaration to after the type's method definitons.
1574         * attribs.c (htab_t scoped_attributes::attribute_hash):
1575         Change type to hash_table.  Update dependent calls and types.
1577         * bitmap.c (htab_t bitmap_desc_hash):
1578         Change type to hash_table.  Update dependent calls and types.
1580         * cselib.c (htab_t cselib_hash_table):
1581         Change type to hash_table.  Update dependent calls and types.
1583         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
1584         (hash_string_slot_node): Move implementation into lto-streamer.h
1585         struct string_slot_hasher.
1586         (eq_string_slot_node): Likewise.
1588         * data-streamer-out.c: Update output_block::string_hash_table
1589         dependent calls and types.
1591         * dwarf2cfi.c (htab_t trace_index):
1592         Change type to hash_table.  Update dependent calls and types.
1594         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
1595         Change type to hash_table.  Update dependent calls and types.
1596         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
1597         (htab_t optimize_external_refs::map): Likewise.
1598         (htab_t output_comp_unit::extern_map): Likewise.
1599         (htab_t output_comdat_type_unit::extern_map): Likewise.
1600         (htab_t output_macinfo::macinfo_htab): Likewise.
1601         (htab_t optimize_location_lists::htab): Likewise.
1602         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
1604         * except.c (htab_t ehspec_hash_type):
1605         Change type to hash_table.  Update dependent calls and types.
1606         (assign_filter_values::ttypes): Likewise.
1607         (assign_filter_values::ehspec): Likewise.
1608         (sjlj_assign_call_site_values::ar_hash): Likewise.
1609         (convert_to_eh_region_ranges::ar_hash): Likewise.
1611         * gcse.c (htab_t pre_ldst_table):
1612         Change type to hash_table.  Update dependent calls and types.
1614         * ggc-common.c (htab_t saving_htab):
1615         Change type to hash_table.  Update dependent calls and types.
1616         (htab_t loc_hash): Likewise.
1617         (htab_t ptr_hash): Likewise.
1618         (call_count): Rename ggc_call_count.
1619         (call_alloc): Rename ggc_call_alloc.
1620         (loc_descriptor): Rename make_loc_descriptor.
1621         (add_statistics): Rename ggc_add_statistics.
1623         * ggc-common.c (saving_htab):
1624         Change type to hash_table.  Update dependent calls and types.
1626         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
1627         (push_gimplify_context): Likewise.
1628         (pop_gimplify_context): Likewise.
1629         (struct gimple_temp_hash_elt): Added.
1630         (struct gimplify_hasher): Likewise.
1631         (struct gimplify_ctx.temp_htab):
1632         Change type to hash_table.  Update dependent calls and types.
1634         * gimple-fold.c: Include gimplify-ctx.h.
1636         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
1637         Change type to hash_table.  Update dependent calls and types.
1638         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
1639         avoid potential global name collision.
1641         * gimplify.c: Include gimplify-ctx.h.
1642         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
1643         (htab_t gimplify_ctx::temp_htab):
1644         Update dependent calls and types for new type hash_table.
1645         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
1646         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
1648         * gimplify-ctx.h: New.
1649         (struct gimple_temp_hash_elt): Move from gimplify.c.
1650         (class gimplify_hasher): New.
1651         (struct gimplify_ctx): Move from gimple.h.
1652         (htab_t gimplify_ctx::temp_htab):
1653         Change type to hash_table.  Update dependent calls and types.
1655         * graphite-clast-to-gimple.c: Include graphite-htab.h.
1656         (htab_t ivs_params::newivs_index):
1657         Change type to hash_table.  Update dependent calls and types.
1658         (htab_t ivs_params::params_index): Likewise.
1659         (htab_t print_generated_program::params_index): Likewise.
1660         (htab_t gloog::newivs_index): Likewise.
1661         (htab_t gloog::params_index): Likewise.
1663         * graphite.c: Include graphite-htab.h.
1664         4htab_t graphite_transform_loops::bb_pbb_mapping):
1665         Change type to hash_table.  Update dependent calls and types.
1667         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
1668         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
1669         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
1671         * graphite-dependences.c: Include graphite-htab.h.
1672         (loop_is_parallel_p): Change hash table type of parameter.
1674         * graphite-htab.h: New.
1675         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
1676         (extern find_pbb_via_hash): Move from graphite-poly.h.
1677         (extern loop_is_parallel_p): Move from graphite-poly.h.
1678         (extern get_loop_body_pbbs): Move from graphite-poly.h.
1680         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
1681         (extern loop_is_parallel_p): Move to graphite-htab.h.
1682         (extern get_loop_body_pbbs): Move to graphite-htab.h.
1684         * haifa-sched.c (htab_t delay_htab):
1685         Change type to hash_table.  Update dependent calls and types.
1686         (htab_t delay_htab_i2): Likewise.
1688         * ira-color.c (htab_t allocno_hard_regs_htab):
1689         Change type to hash_table.  Update dependent calls and types.
1691         * ira-costs.c (htab_t cost_classes_htab):
1692         Change type to hash_table.  Update dependent calls and types.
1694         * loop-invariant.c (htab_t merge_identical_invariants::eq):
1695         Change type to hash_table.  Update dependent calls and types.
1697         * loop-iv.c (htab_t bivs):
1698         Change type to hash_table.  Update dependent calls and types.
1700         * loop-unroll.c (htab_t opt_info::insns_to_split):
1701         Change type to hash_table.  Update dependent calls and types.
1702         (htab_t opt_info::insns_with_var_to_expand): Likewise.
1704         * lto-streamer.h (struct string_slot): Move from data-streamer.h
1705         (struct string_slot_hasher): New.
1706         (htab_t output_block::string_hash_table):
1707         Change type to hash_table.  Update dependent calls and types.
1709         * lto-streamer-in.c (freeing_string_slot_hasher): New.
1710         (htab_t file_name_hash_table):
1711         Change type to hash_table.  Update dependent calls and types.
1713         * lto-streamer-out.c: Update output_block::string_hash_table dependent
1714         calls and types.
1716         * lto-streamer.c (htab_t tree_htab):
1717         Change type to hash_table.  Update dependent calls and types.
1719         * omp-low.c: Include gimplify-ctx.h.
1721         * passes.c (htab_t name_to_pass_map):
1722         Change type to hash_table.  Update dependent calls and types.
1723         (pass_traverse): Rename to passes_pass_traverse.
1725         * plugin.c (htab_t event_tab):
1726         Change type to hash_table.  Update dependent calls and types.
1728         * postreload-gcse.c (htab_t expr_table):
1729         Change type to hash_table.  Update dependent calls and types.
1730         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
1732         * sese.c (debug_rename_map_1): Make extern.
1733         (htab_t copy_bb_and_scalar_dependences::rename_map):
1734         Change type to hash_table.  Update dependent calls and types.
1736         * sese.h (extern debug_rename_map): Move to .c file.
1738         * store-motion.c (htab_t store_motion_mems_table):
1739         Change type to hash_table.  Update dependent calls and types.
1741         * trans-mem.c (htab_t tm_new_mem_hash):
1742         Change type to hash_table.  Update dependent calls and types.
1744         * tree-browser.c (htab_t TB_up_ht):
1745         Change type to hash_table.  Update dependent calls and types.
1747         * tree-cfg.c (htab_t discriminator_per_locus):
1748         Change type to hash_table.  Update dependent calls and types.
1750         * tree-complex.c: Include tree-hasher.h
1751         (htab_t complex_variable_components):
1752         Change type to hash_table.  Update dependent calls and types.
1754         * tree-eh.c (htab_t finally_tree):
1755         Change type to hash_table.  Update dependent calls and types.
1757         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
1758         struct int_tree_hasher.
1759         (extern int_tree_map_eq): Likewise.
1760         (uid_decl_map_hash): Removed.
1761         (extern decl_tree_map_eq): Likewise.
1763         * tree-hasher.h: New.
1764         (struct int_tree_hasher): New.
1765         (typedef int_tree_htab_type): New.
1767         * tree-inline.c: Include gimplify-ctx.h.
1769         * tree-mudflap.c: Include gimplify-ctx.h.
1771         * tree-parloops.c: Include tree-hasher.h.
1772         (htab_t eliminate_local_variables_stmt::decl_address):
1773         Change type to hash_table.  Update dependent calls and types.
1774         (htab_t separate_decls_in_region::decl_copies): Likewise.
1776         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
1777         Change type to hash_table.  Update dependent calls and types.
1779         * tree-sra.c (candidates):
1780         Change type to hash_table.  Update dependent calls and types.
1782         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
1783         in tree-flow.h.
1784         (int_tree_map_hash): Likewise.
1786         * tree-ssa-dom.c (htab_t avail_exprs):
1787         Change type to hash_table.  Update dependent calls and types.
1789         * tree-ssa-live.c (var_map_base_init::tree_to_index):
1790         Change type to hash_table.  Update dependent calls and types.
1792         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
1793         Change type to hash_table.  Update dependent calls and types.
1795         * tree-ssa-phiopt.c (seen_ssa_names):
1796         Change type to hash_table.  Update dependent calls and types.
1798         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
1799         Change type to hash_table.  Update dependent calls and types.
1801         * tree-ssa-uncprop.c (equiv):
1802         Change type to hash_table.  Update dependent calls and types.
1804 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
1806         PR rtl-optimization/57003
1807         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1808         call note_stores with kill_clobbered_value callback again after
1809         killing regs_invalidated_by_call.
1811 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
1813         * config/aarch64/aarch64-simd.md
1814         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
1815         (aarch64_simd_bsl<mode>): Likewise.
1816         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
1818 2013-04-25  Marek Polacek  <polacek@redhat.com>
1820         PR tree-optimization/57066
1821         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
1823 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
1825         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
1827 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
1829         * config/aarch64/aarch64-builtins.c
1830         (aarch64_fold_builtin): New.
1831         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
1832         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
1833         * config/aarch64/aarch64-simd-builtins.def (abs): New.
1834         * config/aarch64/arm_neon.h
1835         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
1837 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
1838             Tejas Belagod  <tejas.belagod@arm.com>
1840         * config/aarch64/aarch64-builtins.c
1841         (aarch64_gimple_fold_builtin): New.
1842         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
1843         * config/aarch64/aarch64-simd-builtins.def (addv): New.
1844         * config/aarch64/aarch64-simd.md (addpv4sf): New.
1845         (addvv4sf): Update.
1846         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1848 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1850         * config/aarch64/aarch64.md
1851         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
1853 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1855         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
1856         (*ngcsi_uxtw): New pattern.
1858 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1859             Julian Brown  <julian@codesourcery.com>
1861         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
1862         (TB_DREG): Add T_V4HF.
1863         (v4hf_UP): New macro.
1864         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1865         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1866         Handle initialisation of V4HF. Adjust initialisation of reinterpret
1867         built-ins.
1868         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1869         (arm_vector_mode_supported_p): Handle V4HF.
1870         (arm_mangle_map): Handle V4HFmode.
1871         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
1872         * config/arm/arm_neon_builtins.def: Add entries for
1873         vcvtv4hfv4sf, vcvtv4sfv4hf.
1874         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
1875         (neon_vcvtv4hfv4sf): Likewise.
1876         * config/arm/neon-gen.ml: Handle half-precision floating point
1877         features.
1878         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
1879         * config/arm/arm_neon.h: Regenerate.
1880         * config/arm/neon.ml (type elts): Add F16.
1881         (type vectype): Add T_float16x4, T_floatHF.
1882         (type vecmode): Add V4HF.
1883         (type features): Add Requires_FP_bit feature.
1884         (elt_width): Handle F16.
1885         (elt_class): Likewise.
1886         (elt_of_class_width): Likewise.
1887         (mode_of_elt): Refactor.
1888         (type_for_elt): Handle F16, fix error messages.
1889         (vectype_size): Handle T_float16x4.
1890         (vcvt_sh): New function.
1891         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
1892         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
1893         (string_of_mode): Handle V4HF.
1894         * doc/arm-neon-intrinsics.texi: Regenerate.
1896 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
1898         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
1899         format specifier in 'X' case.
1901 2013-04-25  Alan Modra  <amodra@gmail.com>
1903         PR target/57052
1904         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
1905         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
1906         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
1907         Repeat for many other rotate/shift and mask patterns using subregs.
1908         Name lshiftrt insns.
1909         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
1910         on WORDS_BIG_ENDIAN.
1912 2013-04-25  Alan Modra  <amodra@gmail.com>
1914         * config.gcc: Support little-endian powerpc-linux targets.
1915         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
1916         (LINK_OS_LINUX_SPEC): Define.
1917         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
1918         Preserve MASK_LITTLE_ENDIAN.
1919         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
1920         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
1921         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
1922         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
1923         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
1924         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
1925         Correct fp word order for little-endian.  Don't shift toc entries
1926         smaller than a word for little-endian.
1927         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1928         (bswapdi2 splits): Correct low-part subreg for little-endian.
1929         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1930         low/high where such is correct only for be.
1931         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1932         little-endian for -mcall-aixdesc.
1934 2013-04-25  Alan Modra  <amodra@gmail.com>
1936         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
1937         replace_equiv_address_nv.
1939 2013-04-25  Alan Modra  <amodra@gmail.com>
1941         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
1943 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1945         Revert:
1946         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1947         * rtl.h (struct rtx_def): ...
1949 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1951         PR rtl-optimizations/57046
1952         * lra-constraints (split_reg): Set up lra_risky_transformations_p
1953         for multi-reg splits.
1955 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
1957         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
1959 2013-04-24  Sterling Augustine  <saugustine@google.com>
1961         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
1962         (comp_dir_string, debug_str_dwo_section): New.
1963         (DEBUG_STR_DWO_SECTION): Rename to ...
1964         (DEBUG_DWO_STR_SECTION): ... this.
1965         (DEBUG_NORM_STR_SECTION): Delete.
1966         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
1967         (DEBUG_STR_DWO_SECTION_FLAGS): New.
1968         (find_AT_string): Move most logic to ...
1969         (find_AT_string_in_table): ... here.  New.
1970         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
1971         add_skeleton_AT_string.  Delete logic.
1972         (output_skeleton_debug_sections): Remove call to
1973         add_top_level_skeleton_die_attrs.
1974         (add_comp_dir_attribute): Move logic to comp_dir_string.
1975         (dwarf2out_init): Initialize debug_str_dwo_section.
1976         (output_indirect_string): Call find_string_form.
1977         (output_indirect_strings): Rewrite.
1978         (prune_unused_types): Empty skeleton_debug_str_hash.
1979         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
1980         (dwarf2out_finish):  Call output_indirect_strings.
1982 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1984         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
1986 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1988         * rtl.h (struct rtx_def): Add comment for field jump.
1989         (LRA_SUBREG_P): New macro.
1990         * recog.c (register_operand): Check LRA_SUBREG_P.
1991         * lra.c (lra): Add note at the end of RTL code. Align non-empty
1992         stack frame.
1993         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1994         (lra_final_code_change): Skip subreg change for operators.
1995         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1996         if there are no operand changes.
1997         * lra-constraints.c (curr_insn_set): New.
1998         (match_reload): Set LRA_SUBREG_P.
1999         (emit_spill_move): Ditto.
2000         (check_and_process_move): Use curr_insn_set. Process only single
2001         set insns.  Don't initialize sec_mem_p and change_p.
2002         (simplify_operand_subreg): Use LRA_SUBREG_P.
2003         (reg_in_class_p): New function.
2004         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
2005         of #ifdef.  Add code to remove cycling.
2006         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2007         non-null disp.  Reload inner instead of disp when base and index
2008         are null.  Try to put lo_sum into register.
2009         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2010         (check_and_process_move): Move code for move cost check to
2011         simple_move_p.  Remove equiv_substitution.
2012         (simple_move_p): New function.
2013         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
2014         curr_insn_set.  Call check_and_process_move only for single set
2015         insns.  Use the new function.  Move call of check_and_process_move
2016         after operand equiv substitution and address process.
2018 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
2020         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2021         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2022         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2024 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2026         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
2028 2013-04-24  Marek Polacek  <polacek@redhat.com>
2030         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
2031         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
2032         (select_loops_exit_conditions): Likewise.
2033         (number_of_iterations_for_all_loops): Likewise.
2034         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
2035         (scev_analysis): Likewise.
2037 2013-04-02  Catherine Moore  <clm@codesourcery.com>
2038             Chao-ying Fu <fu@mips.com>
2040         * config/mips/micromips.md (jraddiusp): New pattern.
2041         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
2042         instruction if possible.
2044 2013-04-24  Alan Modra  <amodra@gmail.com>
2046         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
2048 2013-04-24  Julian Brown  <julian@codesourcery.com>
2049             Chung-Lin Tang  <cltang@codesourcery.com>
2051         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
2052         dependency behavior in enumeration type DIE generation. Add TODO note
2053         to comments about future DW_FORM_sdata/udata re-work of related code.
2055 2013-04-23  Lawrence Crowl  <crowl@google.com>
2057         * Makefile.in: Update as needed below.
2059         * hash-table.h (class hash_table):
2060         Correct many methods with parameter types compare_type to the correct
2061         value_type.  (Correct code was unlikely to notice the change.)
2062         (hash_table::elements_with_deleted) New.
2063         (class hashtable::iterator): New.
2064         (hashtable::begin()): New.
2065         (hashtable::end()): New.
2066         (FOR_EACH_HASH_TABLE_ELEMENT): New.
2068         * statistics.c (statistics_hashes):
2069         Change type to hash_table.  Update dependent calls and types.
2071         * tree-into-ssa.c (var_infos):
2072         Change type to hash_table.  Update dependent calls and types.
2074         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
2075         Change type to hash_table.  Update dependent calls and types.
2077         * tree-ssa-loop-im.c (struct mem_ref.refs):
2078         Change type to hash_table.  Update dependent calls and types.
2080         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
2081         Change type to hash_table.  Update dependent calls and types.
2083         * tree-ssa-sccvn.c (vn_tables_s::nary):
2084         Change type to hash_table.  Update dependent calls and types.
2085         (vn_tables_s::phis): Likewise.
2086         (vn_tables_s::references): Likewise.
2088         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
2089         (vn_reference_eq): Update parameter and return types.
2091         * tree-ssa-structalias.c (pointer_equiv_class_table):
2092         Change type to hash_table.  Update dependent calls and types.
2093         (location_equiv_class_table): Likewise.
2095         * tree-vect-data-refs.c: Consequential changes for making
2096         peeling a hash_table.
2098         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
2099         (destroy_loop_vec_info): Dependent hash_table update.
2101         * tree-vectorizer.h (peeling_htab):
2102         Change type to hash_table.  Update dependent calls and types.
2104 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
2106         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
2107         to check the register content is equal or not.
2108         * lra-constraints.c (match_reload): Use lra_assign_reg_val
2109         to assign register content record.
2110         * lra-eliminations.c (update_reg_eliminate): Use
2111         lra_update_reg_val_offset to update register content offset.
2112         * lra-int.h (struct lra_reg): Add offset member.
2113         (lra_reg_val_equal_p): New static inline function.
2114         (lra_update_reg_val_offset): New static inline function.
2115         (lra_assign_reg_val): New static inline function.
2116         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
2117         to assign register content record.
2118         (initialize_lra_reg_info_element): Initial offset to zero.
2120 2013-04-23  Catherine Moore  <clm@codesourcery.com>
2122         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
2123         operands.  Record compression.
2125 2013-04-23  Xinliang David Li  <davidxl@google.com>
2127         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
2129 2013-04-23  Richard Biener  <rguenther@suse.de>
2131         PR middle-end/57036
2132         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
2133         parameter, only add abnormal goto edges from the copied body
2134         if the call could perform abnormal gotos.
2135         (copy_cfg_body): Adjust.
2137 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
2139         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
2141 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
2143         * coretypes.h (gimple_stmt_iterator): Add struct to make
2144         compatible with C.
2146 2013-04-23  Richard Biener  <rguenther@suse.de>
2148         PR tree-optimization/57026
2149         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
2150         from SSA names occuring in abnormal PHI nodes.
2152 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2154         * lto/lto.c (print_lto_report_1): Fix LTO report names.
2156 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2158         * lto/lto.c (print_lto_report_1): Declare early.
2159         (read_cgraph_and_symbols): Call print_lto_report_1 early.
2161 2013-04-22  Andi Kleen  <ak@linux.intel.com>
2163         * common.opt (-flto-report-wpa): Add.
2164         * doc/invoke.texi (-flto-report-wpa): Add.
2165         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
2166         (lto_main): dito.
2168 2013-04-22  Xinliang David Li  <davidxl@google.com>
2170         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
2171         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
2172         * Makefile.in: New dependency
2174             David Daney <ddaney.cavm@gmail.com>
2176         * configure.ac (gcc_cv_as_micromips_support):  Use the
2177         --fatal-warnings option.
2178         * configure: Regenerate.
2180 2013-04-22  Marek Polacek  <polacek@redhat.com>
2182         PR sanitizer/56990
2183         * tsan.c (instrument_expr): Don't instrument expression
2184         in case its size is zero.
2186 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
2188         PR target/57032
2189         Revert:
2190         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
2192         * config/alpha/alpha.c (TARGET_LRA_P): New define.
2194 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
2196         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
2197         (gimple_stmt_iterator): New typedef.
2198         * gimple.h (gimple_stmt_iterator): Rename to...
2199         (gimple_stmt_iterator_d): ... This.
2200         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
2201         trees be valid for GIMPLE and GENERIC.
2202         (TARGET_GIMPLE_FOLD_BUILTIN): New.
2203         * gimple-fold.c (gimple_fold_call): Call target hook
2204         gimple_fold_builtin.
2205         * hooks.c (hook_bool_gsiptr_false): New.
2206         * hooks.h (hook_bool_gsiptr_false): New.
2207         * target.def (fold_stmt): New.
2208         * doc/tm.texi: Regenerate.
2210 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
2212         PR target/57018
2213         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
2214         a set sp if no stack realignment.
2216 2013-04-22  Nick Clifton  <nickc@redhat.com>
2218         * config.gcc (tilegx-linux): Extend extra_objs rather than
2219         overwriting it.
2220         (tilepro-linux): Likewise.
2222 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
2224         * config/aarch64/aarch64-builtins.c
2225         (CF): Remove.
2226         (CF0, CF1, CF2, CF3, CF4, CF10): New.
2227         (VAR<1-12>): Add MAP parameter.
2228         (BUILTIN_*): Likewise.
2229         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
2230         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
2231         (aarch64_ushl_n<mode>): Likewise.
2232         (aarch64_sshr_n<mode>): Likewise.
2233         (aarch64_ushr_n<mode>): Likewise.
2234         (aarch64_<maxmin><mode>): Likewise.
2235         (aarch64_sqrt<mode>): Likewise.
2236         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
2237         (vshr<q>_n_*): Likewise.
2239 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
2241         * config/aarch64/aarch64-builtins.c
2242         (aarch64_simd_builtin_type_mode): Handle SF types.
2243         (sf_UP): Define.
2244         (BUILTIN_GPF): Define.
2245         (aarch64_init_simd_builtins): Handle SF types.
2246         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
2247         (frecps): Likewise.
2248         (frecpx): Likewise.
2249         * config/aarch64/aarch64-simd.md
2250         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
2251         (aarch64_frecpe<mode>): New.
2252         (aarch64_frecps<mode>): Likewise.
2253         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
2254         (v8type): Add frecp<esx>.
2255         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
2256         (aarch64_frecps<mode>): Likewise.
2257         * config/aarch64/iterators.md (FRECP): New.
2258         (frecp_suffix): Likewise.
2259         * config/aarch64/arm_neon.h
2260         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
2262 2013-04-22  Christian Bruel  <christian.bruel@st.com>
2264         PR target/56995
2265         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
2266         (REG_CLASS_NAMES): Idem.
2267         (REG_CLASS_CONTENTS): Idem.
2268         (REGCLASS_HAS_FP_REG): Idem.
2269         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
2270         (sh_conditional_register_usage): Idem.
2272 2013-04-21  Jeff Law  <law@redhat.com>
2274         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
2275         (ssa_forward_propagate_and_combine): Use it.
2277 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
2279         * lra.c: Update the flow chart diagram.
2281 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
2283         PR rtl-optimization/56847
2284         * lra-constraints.c (process_alt_operands): Discourage alternative
2285         with non-matche doffsettable memory constraint fro memory with
2286         known offset.
2288 2013-04-19  Richard Biener  <rguenther@suse.de>
2290         PR tree-optimization/56982
2291         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
2292         function.
2293         * gimplify.c (gimplify_call_expr): Notice special calls.
2294         (gimplify_modify_expr): Likewise.
2295         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
2296         abnormal control flow receivers.
2297         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
2298         in the same way as cfun->has_nonlocal_labels.
2299         (gimple_purge_dead_abnormal_call_edges): Likewise.
2300         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
2301         receivers start a basic-block.
2303 2013-04-19  Richard Biener  <rguenther@suse.de>
2305         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
2306         member ...
2307         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
2308         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
2309         (SLP_TREE_LOAD_PERMUTATION): Add.
2310         (vect_transform_slp_perm_load): Adjust prototype.
2311         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
2312         (vect_free_slp_instance): Likewise.
2313         (vect_create_new_slp_node): Likewise.
2314         (vect_supported_slp_permutation_p): Remove.
2315         (vect_slp_rearrange_stmts): Adjust.
2316         (vect_supported_load_permutation_p): Likewise.  Inline
2317         vect_supported_slp_permutation_p here.
2318         (vect_analyze_slp_instance): Compute load permutations per
2319         slp node instead of per instance.
2320         (vect_get_slp_defs): Adjust.
2321         (vect_transform_slp_perm_load): Likewise.
2322         (vect_schedule_slp_instance): Remove redundant code.
2323         (vect_schedule_slp): Remove hack for PR56270, add it ...
2324         * tree-vect-stmts.c (vectorizable_load): ... here, do not
2325         CSE loads for SLP.  Adjust.
2327 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
2329         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
2330         spelling in two comments.
2332 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
2334         PR target/56797
2335         * config/arm/arm.c (load_multiple_sequence): Require SP
2336         as base register for loads if SP is in the register list.
2338 2013-04-19  Martin Jambor  <mjambor@suse.cz>
2340         PR tree-optimization/56718
2341         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
2342         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
2343         and made public.  Adjusted all callers.
2344         (ipa_intraprocedural_devirtualization): New function.
2345         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
2346         (ipa_intraprocedural_devirtualization): Likewise.
2347         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
2349 2013-04-19  Richard Biener  <rguenther@suse.de>
2351         PR tree-optimization/57000
2352         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2354 2013-04-19  Terry Guo  <terry.guo@arm.com>
2356         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
2357         Replace with ...
2358         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
2359         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
2360         (cortex_m4_fmacs): Use new reservations.
2361         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
2363 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
2365         PR rtl-optimization/56999
2366         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2367         related code.
2368         (lra_coalesce): Remove split_origin_bitmap and related code.
2369         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
2370         ranges if necessary.
2372 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
2374         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
2375         New array.
2376         (ix86_expand_call): Remove clobbered_registers array and use
2377         x86_64_ms_sysv_extra_clobbered_registers instead.
2378         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
2379         Declare here.
2380         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
2381         predicate.
2382         * config/i386/i386.md (*call_rex64_ms_sysv): Use
2383         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
2384         (*call_value_rex64_ms_sysv): Ditto.
2386 2013-04-18  Cary Coutant  <ccoutant@google.com>
2388         * dwarf2out.c (output_pubnames): Check die_perennial_p of
2389         parent instead of die_mark.
2391 2013-04-18  Diego Novillo  <dnovillo@google.com>
2393         * gimple.c (create_gimple_tmp): New.
2394         (get_expr_type): New.
2395         (build_assign): New.
2396         (build_type_cast): New.
2397         * gimple.h (enum ssa_mode): Define.
2398         (gimple_seq_set_location): New.
2399         * asan.c (build_check_stmt): Change some gimple_build_* calls
2400         to use build_assign and build_type_cast.
2402 2013-04-18  Richard Biener  <rguenther@suse.de>
2404         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2405         handle negative step.  Remove redundant checks.
2406         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
2407         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
2408         for negative step and grouped loads fail to vectorize.
2410 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
2412         * emit-rtl.c (reset_insn_used_flags): New function.
2413         (reset_all_used_flags): Use it.
2414         (verify_insn_sharing): New function.
2415         (verify_rtl_sharing): Fix verification for SEQUENCEs.
2417 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
2419         PR tree-optimization/56984
2420         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2421         and (x >> M) >= N don't register any assertion if N << M is the
2422         minimum value.
2424 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
2426         * lower-subreg.c (resolve_simple_move): If called self-recursive,
2427         do not delete_insn insns that have not yet been emitted, only
2428         unlink them with remove_insn.
2429         * df-scan.c (df_insn_delete): Revert r197492.
2431 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
2433         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
2434         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
2436 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
2438         * config/arm/arm.md (movsicc_insn): Convert define_insn into
2439         define_insn_and_split.
2440         (and_scc,ior_scc,negscc): Likewise.
2441         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
2443 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
2445         * config/arm/arm.c (use_return_insn): Return 0 for targets that
2446         can benefit from using a sequence of LDRD instructions in epilogue
2447         instead of a single LDM instruction.
2449 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2451         PR 45688
2452         * doc/extend.texi: Fix typo.
2454 2013-04-17  Richard Biener  <rguenther@suse.de>
2456         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2457         (vect_build_slp_tree): ... here.
2458         (vect_build_slp_tree_1): Compute which stmts of the SLP group
2459         match.  Remove special-casing of mismatched complex loads.
2460         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2461         re-try the match with swapped commutative operands.
2462         (vect_supported_load_permutation_p): Remove special-casing of
2463         mismatched complex loads.
2464         (vect_analyze_slp_instance): Adjust.
2466 2013-04-17  Richard Biener  <rguenther@suse.de>
2468         PR rtl-optimization/56921
2469         * cfgloop.h (struct loop): Add simple_loop_desc member.
2470         (struct niter_desc): Mark with GTY(()).
2471         (simple_loop_desc): Do not use aux field but simple_loop_desc.
2472         * loop-iv.c (get_simple_loop_desc): Likewise.
2473         (free_simple_loop_desc): Likewise.
2475         Revert
2476         2013-04-16  Richard Biener  <rguenther@suse.de>
2478         PR rtl-optimization/56921
2479         * loop-init.c (pass_rtl_move_loop_invariants): Add
2480         TODO_do_not_ggc_collect to todo_flags_finish.
2481         (pass_rtl_unswitch): Same.
2482         (pass_rtl_unroll_and_peel_loops): Same.
2483         (pass_rtl_doloop): Same.
2485 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2487         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2488         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2489         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2490         references.
2491         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2492         * tree-streamer.c (record_common_node): Adjust reference in comment.
2494 2013-04-17  Terry Guo  <terry.guo@arm.com>
2496         * config/arm/cortex-m4.md: Add a new bypass.
2498 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2500         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2501         New pattern.
2502         (*subs_<optab><mode>_multp2): New pattern.
2503         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2504         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2506 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2508         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
2509         (*subs_mul_imm_<mode>): New pattern.
2511 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
2513         PR target/56948
2514         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2515         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
2516         (vsx_movti_32bit): Change j->wa to O->wa.
2518 2013-04-16  Richard Biener  <rguenther@suse.de>
2520         PR rtl-optimization/56921
2521         * loop-init.c (pass_rtl_move_loop_invariants): Add
2522         TODO_do_not_ggc_collect to todo_flags_finish.
2523         (pass_rtl_unswitch): Same.
2524         (pass_rtl_unroll_and_peel_loops): Same.
2525         (pass_rtl_doloop): Same.
2527 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
2529         * config/arm/arm.c (emit_multi_reg_push): New declaration
2530         for an existing function.
2531         (arm_emit_strd_push): New function.
2532         (arm_expand_prologue): Used here.
2533         (arm_emit_ldrd_pop): New function.
2534         (arm_expand_epilogue): Used here.
2535         (arm_get_frame_offsets): Update condition.
2536         (arm_emit_multi_reg_pop): Add a special case for load of a single
2537         register with writeback.
2539 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
2541         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
2542         description.
2544 2013-04-16  Richard Biener  <rguenther@suse.de>
2546         PR tree-optimization/56756
2547         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
2548         (first_mem_ref_loc): New.
2549         (execute_sm): Place the load temporarily before a previous
2550         access instead of in the latch edge to ensure its SSA dependencies
2551         are defined at points dominating the load.
2553 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
2555         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
2556         correct fix by moving header and footer insn to the footer of
2557         the merged basic block.  Clear BB_END of the merged-away block.
2559         PR middle-end/43631
2560         * emit-rtl.c (make_note_raw): New function.
2561         (link_insn_into_chain): New static inline function.
2562         (add_insn): Use it.
2563         (add_insn_before, add_insn_after): Factor insn chain linking code...
2564         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
2565         using link_insn_into_chain.
2566         (note_outside_basic_block_p): New helper function for emit_note_after
2567         and emit_note_before.
2568         (emit_note_after): Use nobb variant of add_insn_after if the note
2569         should not be contained in a basic block.
2570         (emit_note_before): Use nobb variant of add_insn_before if the note
2571         should not be contained in a basic block.
2572         (emit_note_copy): Use make_note_raw.
2573         (emit_note): Likewise.
2574         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
2575         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
2576         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
2577         the moved barrier the tail of the basic block it follows.
2578         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
2580 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
2582         PR tree-optimization/56962
2583         * gimple-ssa-strength-reduction.c (record_increment): Only set
2584         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2585         either rhs1 or rhs2 is equal to c->base_expr.
2587 2013-04-15  Richard Biener  <rguenther@suse.de>
2589         PR tree-optimization/56933
2590         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
2591         member.
2592         (GROUP_READ_WRITE_DEPENDENCE): Remove.
2593         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
2594         * tree-vect-data-refs.c (vect_analyze_group_access): Move
2595         dependence check ...
2596         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
2597         ... here.
2598         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
2599         GROUP_READ_WRITE_DEPENDENCE.
2601 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2603         * emit-rtl.c (reset_all_used_flags): New function.
2604         (verify_rtl_sharing): Call reset_all_used_flags before and after
2605         performing the checks.
2607 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2609         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
2610         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
2611         * config/arm/constraints.md (De): New constraint.
2612         * config/arm/neon.md (anddi3_neon): Delete.
2613         (neon_vand<mode>): Expand to standard anddi3 pattern.
2614         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
2615         Move earlier in the file.
2616         (neon_inv_logic_op2): Likewise.
2617         (arm_anddi_operand_neon): New predicate.
2619 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2621         * configure.ac (gcc_cv_ld_as_needed): Set
2622         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
2623         Use -z ignore, -z record on *-*-solaris2*.
2624         (HAVE_LD_AS_NEEDED): Update comment.
2625         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
2626         * configure: Regenerate.
2627         * config.in: Regenerate.
2628         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
2629         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
2630         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
2631         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
2632         equivalents.  Fix markup.
2633         * doc/tm.texi: Regenerate.
2635 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
2637         * config/i386/i386.opt: New option mstack-protector-guard=.
2638         * config/i386/i386-opts.h: Add enum stack_protector_guard.
2639         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
2640         TARGET_SSP_TLS_GUARD.
2641         * config/i386/i386.c (ix86_option_override_internal): Set
2642         ix86_stack_protector_guard.
2643         * config/i386/i386.md (stack_protect_set): Enable for
2644         TARGET_SSP_TLS_GUARD only.
2645         (stack_protect_set_<mode>): Ditto.
2646         (stack_protect_test): Ditto.
2647         (stack_protect_test_<mode>): Ditto.
2648         * doc/invoke.texi (i386 Option): Document.
2650 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2652         PR target/56890
2653         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
2654         (S_MODES): Set H_MODE bit.
2655         (SF_MODES): Set only S_MODE and SF_MODE bits.
2656         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
2657         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
2658         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
2659         <MODE_FLOAT>: Likewise.
2661 2013-04-15  Joey Ye  <joey.ye@arm.com>
2663         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
2665 2013-04-15  Joey Ye  <joey.ye@arm.com>
2667         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
2668         for real far jump.
2669         (thumb_far_jump_used_p): Count instruction size and set
2670         far_jump_used.
2672 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
2674         * reorg.c (fill_simple_delay_slots): Reindent block of code.
2675         * resource.c (mark_target_live_regs): Reformat conditional block.
2677 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
2679         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
2680         notes, they are emitted only just before final.
2681         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
2683 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
2685         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
2686         * cfgrtl.c (delete_insn): Call it here instead.
2687         * lra-spills.c (lra_final_code_change): Use delete_insn.
2688         * haifa-sched.c (sched_remove_insn): Likewise.
2689         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
2690         returning to the nop pool.
2691         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
2692         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
2694 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
2696         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
2697         * doc/tm.texi: Regenerated.
2699 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
2701         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
2702         QImode checks.
2704 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
2706         * df-core.c (df_find_def): Compare register numbers.
2707         (df_find_use): Likewise.
2709 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
2711         PR target/56903
2712         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2713         lra_in_progress for return.
2715 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
2717         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
2718         define_insn into define_insn_and_split and emit movsicc patterns.
2720 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
2722         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
2724 2013-04-12  Richard Biener  <rguenther@suse.de>
2726         * tree-pass.h (TODO_do_not_ggc_collect): New.
2727         * passes.c (execute_one_ipa_transform_pass): Honor
2728         TODO_do_not_ggc_collect.
2729         (execute_one_pass): Likewise.
2731         Revert
2732         2013-04-10  Richard Biener  <rguenther@suse.de>
2734         * passes.c (init_optimization_passes): Remove reload pass.
2735         * ira.c (do_reload): Merge into ...
2736         (ira): ... this.
2737         (rest_of_handle_reload): Remove.
2738         (pass_reload): Likewise.
2739         * config/i386/i386.c (ix86_option_override): Refer to ira instead
2740         of reload for vzeroupper pass placement.
2742 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2744         PR tree-optimization/56918
2745         PR tree-optimization/56920
2746         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2747         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
2748         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
2749         use wide_mul_with_sign method.
2751 2013-04-12  Richard Biener  <rguenther@suse.de>
2753         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
2754         not be considered a gimple constant.
2756 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
2758         * fold-const.c (const_binop): Handle vector shifts by a scalar.
2759         (fold_binary_loc): Call const_binop also for mixed vector-scalar
2760         operations.
2762 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2763             Jakub Jelinek  <jakub@redhat.com>
2765         * opts.c: Include diagnostic-color.h.
2766         (common_handle_option): Handle OPT_fdiagnostics_color_.
2767         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
2768         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
2769         (diagnostic-color.o): New.
2770         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
2771         (diagnostic_color_rule): New enum.
2772         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
2773         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
2774         the location string.
2775         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
2776         either NULL, or color kind.
2777         * diagnostic-color.c: New file.
2778         * diagnostic-color.h: New file.
2779         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
2780         arguments.
2781         * doc/invoke.texi (-fdiagnostics-color): Document.
2782         * pretty-print.h (pp_show_color): Define.
2783         (struct pretty_print_info): Add show_color field.
2784         * diagnostic.c: Include diagnostic-color.h.
2785         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
2786         macros.  Colorize error:, warning: etc. strings and also the location
2787         string.
2788         (diagnostic_show_locus): Colorize the caret line.
2789         * pretty-print.c: Include diagnostic-color.h.
2790         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
2791         inside of %< %> quotes or quoted through q format modifier.
2793 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2795         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
2797 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2799         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
2800         code in CC_NZ mode.
2801         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
2802         pattern.
2804 2013-04-11  Marek Polacek  <polacek@redhat.com>
2806         PR tree-optimization/48184
2807         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
2809 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2811         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
2812         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
2813         (skip_simple_arithmetic): Tidy up.
2814         * tree.h (skip_simple_constant_arithmetic): Declare.
2816 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2818         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
2820 2013-04-11  Richard Biener  <rguenther@suse.de>
2822         * tree-vect-loop.c (get_initial_def_for_induction): Properly
2823         generate vector constants.
2825 2013-04-11  Richard Biener  <rguenther@suse.de>
2827         PR tree-optimization/56878
2828         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
2829         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
2830         New function.
2831         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2832         Prefer to align the DR with the most invariant base address.
2834 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2836         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
2837         comment.
2839 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2841         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2842         floating-point vector comparisons against 0.
2844 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
2846         PR tree-optimization/56899
2847         * fold-const.c (extract_muldiv_1): Apply distributive law
2848         only if TYPE_OVERFLOW_WRAPS (ctype).
2850 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
2852         PR target/56124
2853         * ira-costs.c (scan_one_insn): Check whether the source rtx of
2854         loading has side effect.
2856 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
2858         * config/sparc/sparc.c: Include tree-pass.h.
2859         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
2860         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
2861         head of file.  Change return type.  Split off gate function.
2862         (sparc_gate_work_around_errata): New function.
2863         (pass_work_around_errata): New pass definition.
2864         (insert_pass_work_around_errata) New pass insert definition to
2865         insert pass_work_around_errata just after delayed-branch scheduling.
2866         (sparc_option_override): Insert the pass.
2867         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
2869 2013-04-10  David S. Miller  <davem@davemloft.net>
2871         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2872         or -mcpu=hypersparc.
2874         * target.def (cstore_mode): New hook.
2875         * target.h: Include insn-codes.h
2876         * targhooks.c: Likewise.
2877         (default_cstore_mode): New function.
2878         * targhooks.h: Declare it.
2879         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
2880         * doc/tm.texi: Rebuild.
2881         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
2882         target hook, rather than inspecting the insn_data.
2883         * config/sparc/sparc.c (sparc_cstore_mode): New function.
2884         (TARGET_CSTORE_MODE): Redefine.
2885         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
2886         result patterns.
2887         * config/sparc/predicates.md (cstore_result_operand): New special
2888         predicate.
2889         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
2890         Use it for operand 0.
2891         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
2892         (*snesi_special): Likewise.
2893         (*snesi_zero): Likewise.
2894         (*seqsi_zero): Likewise.
2895         (*sltu_insn): Likewise.
2896         (*sgeu_insn): Likewise.
2897         (*seqdi_special): Make operand 0 and comparison operation be of
2898         DImode.
2899         (*snedi_special): Likewise.
2900         (*snedi_special_vis3): Likewise.
2901         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
2902         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
2903         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
2904         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
2905         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
2906         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
2907         (*sltu_extend_sp64): Likewise.
2908         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
2909         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
2910         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
2911         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
2912         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
2914 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
2916         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2917         (aarch64_start_file): Use the new function.
2919 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2920             Jason Merrill  <jason@redhat.com>
2922         * common.opt: Add -gdwarf.
2923         * opts.c (common_handle_option): Handle it.
2924         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
2926 2013-04-10  Richard Biener  <rguenther@suse.de>
2928         * passes.c (execute_todo): Do not call ggc_collect conditional here.
2929         (execute_one_ipa_transform_pass): But unconditionally here.
2930         (execute_one_pass): And here.
2931         (init_optimization_passes): Remove reload pass.
2932         * tree-pass.h (TODO_ggc_collect): Remove.
2933         (pass_reload): Likewise.
2934         * ira.c (do_reload): Merge into ...
2935         (ira): ... this.
2936         (rest_of_handle_reload): Remove.
2937         (pass_reload): Likewise.
2938         * config/i386/i386.c (ix86_option_override): Refer to ira instead
2939         of reload for vzeroupper pass placement.
2940         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
2941         and todo_flags_finish of all passes.
2943 2013-04-10  Richard Biener  <rguenther@suse.de>
2945         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
2946         first_const_oprnd field, rename first_def_type to first_op_type.
2947         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
2948         (vect_get_and_check_slp_defs): Always use the type of the
2949         operand.  Allow mixed vect_external_def, vect_constant_def types.
2950         (vect_get_constant_vectors): Handle mixed vect_external_def,
2951         vect_constant_def types.
2953 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
2955         PR tree-optimization/55524
2956         * tree-ssa-math-opts.c
2957         (convert_mult_to_fma): Don't use an fms construct
2958         when we don't have an fms operation, but fnma, and it looks
2959         likely that we'll be able to use the latter.
2961 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2963         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
2964         function.
2965         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
2966         inline fail caused by overwritable functions.
2968 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
2970         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
2971         unnecessary bits in the constant power of two case.
2973 2013-04-10  Richard Biener  <rguenther@suse.de>
2975         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
2976         broken code swapping operands.
2977         (vect_build_slp_tree): Do not compute load permutations here.
2978         (vect_analyze_slp_instance): Compute load permutations here,
2979         after building the SLP tree.
2981 2013-04-09  Christian Bruel  <christian.bruel@st.com>
2983         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
2984         of next/prev_real_insn.
2986 2013-04-09  Jan Hubicka  <jh@suse.cz>
2988         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2989         Drop aliased parameter.
2990         (function_and_variable_visibility): Do not handle alias pairs.
2991         * cgraph.c (varpool_externally_visible_p): Update prototype.
2992         * varpool.c (varpool_add_new_variable): Update.
2994 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2996         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
2998 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
3000         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
3002         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
3004 2013-04-09  Marek Polacek  <polacek@redhat.com>
3006         PR tree-optimization/48762
3007         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
3009 2013-04-09  Richard Biener  <rguenther@suse.de>
3011         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
3012         dealing with cost.
3013         (vect_build_slp_tree): Likewise.
3014         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
3015         calculating the cost of a SLP instance.
3016         (vect_analyze_slp_instance): Use it from here, after building
3017         the SLP tree.
3019 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
3021         PR middle-end/56883
3022         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3023         expand_omp_for_static_chunk): Use simple_p = true in
3024         force_gimple_operand_gsi calls when assigning to addressable decls.
3026 2013-04-09  Jeff Law  <law@redhat.com>
3028         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
3029         when the boolean was created by converting a wider object which
3030         had a boolean range.
3032 2013-04-09  Richard Biener  <rguenther@suse.de>
3034         * tree-vectorizer.h (slp_void_p): Remove.
3035         (slp_tree): Typedef before _slp_tree declaration.
3036         (struct _slp_tree): Use a vector of slp_tree as children.
3037         (vect_get_place_in_interleaving_chain): Remove.
3038         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
3039         Move ...
3040         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
3041         and make static.
3042         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
3043         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
3044         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
3045         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
3046         Use slp_node instead of slp_void_p and adjust.
3048 2013-04-09  Richard Biener  <rguenther@suse.de>
3050         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
3051         work that is not necessary.
3053 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
3055         PR tree-optimization/56854
3056         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
3057         forward into clobber stmts if it would change MEM_REF lhs into
3058         non-MEM_REF.
3060 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
3062         * tree.c (type_hash_lookup, type_hash_add): Make static.
3063         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
3065 2013-04-09  Richard Biener  <rguenther@suse.de>
3067         * tree.h (unsave_expr_now): Remove.
3068         * tree-inline.c (mark_local_for_remap_r): Remove.
3069         (unsave_expr_1): Likewise.
3070         (unsave_r): Likewise.
3071         (unsave_expr_now): Likewise.
3072         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
3073         (propagate_tree_value): Likewise.
3075 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
3077         * doc/rtl.texi (sequence): Rewrite documentation to match the
3078         current use of SEQUENCE rtl objects.
3079         * rtl.def (SEQUENCE): Likewise.
3081         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
3082         Update documentation.
3083         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
3084         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
3086         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
3088 2013-04-08  Teresa Johnson  <tejohnson@google.com>
3090         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
3091         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
3092         methods.
3093         (estimate_edge_size_and_time): Add comment to suggest using rounding
3094         methods.
3095         (estimate_node_size_and_time): Ditto.
3096         (remap_edge_change_prob): Use helper rounding divide methods.
3097         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
3098         (gimple_mod_pow2_value_transform): Ditto.
3099         (gimple_mod_subtract_transform): Ditto.
3100         (gimple_ic_transform): Ditto.
3101         (gimple_stringops_transform): Ditto.
3102         * stmt.c (conditional_probability): Ditto.
3103         (emit_case_dispatch_table): Ditto.
3104         * lto-cgraph.c (merge_profile_summaries): Ditto.
3105         * tree-optimize.c (execute_fixup_cfg): Ditto.
3106         * cfgcleanup.c (try_forward_edges): Ditto.
3107         * cfgloopmanip.c (scale_loop_profile): Ditto.
3108         (loopify): Ditto.
3109         (duplicate_loop_to_header_edge): Ditto.
3110         (lv_adjust_loop_entry_edge): Ditto.
3111         * tree-vect-loop.c (vect_transform_loop): Ditto.
3112         * profile.c (compute_branch_probabilities): Ditto.
3113         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
3114         * lto-streamer-in.c (input_cfg): Ditto.
3115         * gimple-streamer-in.c (input_bb): Ditto.
3116         * ipa-cp.c (update_profiling_info): Ditto.
3117         (update_specialized_profile): Ditto.
3118         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
3119         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
3120         rounding methods.
3121         * sched-rgn.c (compute_dom_prob_ps): Ditto.
3122         (compute_trg_info): Ditto.
3123         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
3124         (purge_dead_edges): Ditto.
3125         * loop-unswitch.c (unswitch_loop): Ditto.
3126         * cgraphclones.c (cgraph_clone_edge): Ditto.
3127         (cgraph_clone_node): Ditto.
3128         * tree-inline.c (copy_bb): Ditto.
3129         (copy_edges_for_bb): Ditto.
3130         (initialize_cfun): Ditto.
3131         (copy_cfg_body): Ditto.
3132         (expand_call_inline): Ditto.
3134 2013-04-08  Kai Tietz  <ktietz@redhat.com>
3136         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
3137         TARGET_CYGWIN64 by TARGET_64BIT.
3139 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3141         * config/epiphany/epiphany.md (GPR_1): New constant.
3142         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
3143         * config/epiphany/epiphany.c (gen_compare_reg):
3144         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
3145         is already in place.
3146         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
3147         Don't require being called during rtl expansion; If y operlaps r0,
3148         return 0.
3149         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
3150         (epiphany_expand_epilogue): Likewise.
3152         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
3153         Don't use CC_FPmode for ORDERED / UNORDERED.
3154         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
3156         * config/epiphany/constraints.md (CnL): New constraint.
3157         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
3158         * config/epiphany/predicates.md (add_operand): Allow 1024.
3160         * config/epiphany/epiphany.md (logical_op): New code iterator.
3161         (op_mnc): New code attribute.
3162         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
3163         (mov_f+1, mov_f+2): New peephole2 patterns.
3165         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
3166         (cstoresi4): Also allow re-use of zero result when doing a NE
3167         comparison to a non-zero operand.
3168         Use (clobber (scratch)) for first insn if the gpr output is not needed.
3170         * config/epiphany/epiphany.md (<insn_opname>v2si3):
3171         Use gen_addsi3_i / gen_subsi3_i.
3173 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
3175         PR c++/34949
3176         PR c++/50243
3177         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
3178         contain anything but clobbers, at most one __builtin_stack_restore,
3179         optionally debug stmts and final resx, and if it has at least one
3180         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
3181         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
3182         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
3183         which isn't defaut definition, remove them.
3184         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
3185         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
3186         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
3187         with MEM_REF LHS with SSA_NAME address.
3189 2013-04-08  Jeff Law  <law@redhat.com>
3191         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
3193 2013-04-08  Richard Biener  <rguenther@suse.de>
3195         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
3196         extra newline.
3197         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
3198         determined vector type.
3199         (vect_analyze_data_refs): Likewise.
3200         (vect_get_new_vect_var): Adjust.
3201         (vect_create_destination_var): Preserve SSA name versions.
3202         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
3203         not dump anything here.
3205 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3207         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
3208         Add member lr_slot_known.
3209         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
3210         if necessary.
3211         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
3212         Remove code that sets lr_slot_offset according to what a previous
3213         version of epiphany_emit_save_restore used to do.
3214         (epiphany_emit_save_restore): When doing an lr save or restore,
3215         set/verify lr_slot_known and lr_slot_offset.
3217 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
3219         PR target/54338
3220         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
3221         in ALL_REGS.
3223 2013-04-08  Richard Biener  <rguenther@suse.de>
3225         * alias.c (find_base_term): Fix thinko in previous change.
3227 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
3229         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
3230         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
3231         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
3232         if possible to compute val.
3233         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
3234         For QImode integers don't require anything about precision.  Use
3235         const_with_all_bytes_same to find out if the constant doesn't have
3236         repeated bytes in it.
3238 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3240         * config/s390/s390.c (s390_expand_insv): Only accept insertions
3241         within mode size.
3243 2013-04-08  Marek Polacek  <polacek@redhat.com>
3245         PR rtl-optimization/48182
3246         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
3247         value to 1.
3249 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3251         PR target/55487
3252         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3253         nuses, make sure we have a label.
3255 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3257         PR target/56843
3258         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
3259         (rs6000_emit_swdiv_low_precision): Remove.
3260         (rs6000_emit_swdiv): Rewrite to handle between one and four
3261         iterations of Newton-Raphson generally; modify required number of
3262         iterations for some cases.
3263         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
3265 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3267         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
3268         set-but-unused variable.
3270         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
3271         basic blocks of released function bodies garbage-collectable.
3273         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
3274         (struct rtl_opt_pass): Add TODO_df_finish.
3276         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
3278 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3280         * config/arm/constraints.md (q): New constraint.
3281         * config/arm/ldrdstrd.md: New file.
3282         * config/arm/arm.md (ldrdstrd.md) New include.
3283         (arm_movdi): Use "q" instead of "r" constraint
3284         for double-word memory access.
3285         (movdf_soft_insn): Likewise.
3286         * config/arm/vfp.md (movdi_vfp): Likewise.
3287         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
3288         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
3289         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
3290         (mem_ok_for_ldrd_strd): Likewise.
3291         (output_move_double): Update assertion.
3293 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3295         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
3297 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3299         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
3300         define_insn_and_split.
3301         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
3303 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3305         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
3306         define_insn_and_split.
3307         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
3308         (shiftsi3_compare): New pattern.
3309         (rrx): New pattern.
3310         * config/arm/unspecs.md (UNSPEC_RRX): New.
3312 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3314         * config/arm/arm.md (negdi_extendsidi): New pattern.
3315         (negdi_zero_extendsidi): Likewise.
3317 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3319         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
3320         define_insn_and_split.
3321         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
3322         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
3324 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3326         * config/arm/arm.md (arm_subdi3): Convert define_insn into
3327         define_insn_and_split.
3328         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
3329         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
3331 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3333         * config/arm/arm.md (subsi3_carryin): New pattern.
3334         (subsi3_carryin_const): Likewise.
3335         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
3336         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
3338 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3340         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
3342 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
3344         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
3345         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
3347 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3349         * config/arm/arm.c (arm_expand_builtin): Change fcode
3350         type to unsigned int.
3352 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3354         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
3356 2013-04-04  Ian Lance Taylor  <iant@google.com>
3358         * doc/standards.texi (Standards): The Go frontend supports the Go 1
3359         language standard.
3361 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3363         PR middle-end/56729
3364         * df-scan.c (df_insn_delete): Disable failing assert.
3366 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3368         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
3369         New function prototype.
3370         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
3371         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
3372         (arm_builtin_vectorized_function): New function.
3374 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3376         * config/arm/arm_neon_builtins.def: New file.
3377         * config/arm/arm.c (neon_builtin_data): Move contents to
3378         arm_neon_builtins.def.
3379         (enum arm_builtins): Include neon builtin definitions.
3380         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
3381         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
3383 2013-04-04  Marek Polacek  <polacek@redhat.com>
3385         PR tree-optimization/48186
3386         * predict.c (maybe_hot_frequency_p): Return false if
3387         HOT_BB_FREQUENCY_FRACTION is 0.
3388         (cgraph_maybe_hot_edge_p): Likewise.
3390 2013-04-04  Richard Biener  <rguenther@suse.de>
3392         PR tree-optimization/56826
3393         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
3394         more accurately.
3396 2013-04-04  Richard Biener  <rguenther@suse.de>
3398         PR tree-optimization/56213
3399         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
3400         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
3402 2013-04-04  Richard Biener  <rguenther@suse.de>
3404         PR tree-optimization/56837
3405         * tree-loop-distribution.c (classify_partition): For non-zero
3406         values require that the value has the same precision as its
3407         mode to be useful as memset value.
3409 2013-04-03  Nick Clifton  <nickc@redhat.com>
3411         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
3412         (fmssf4): Use fmsf.s on E3V5 architectures.
3413         (fnmasf4): Use fnmaf.s on E3V5 architectures.
3414         (fnmssf4): Use fnmsf.s on E3V5 architectures.
3416 2013-04-03  Jeff Law  <law@redhat.com>
3418         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
3419         (lra-eliminations.o): Likewise.
3421 2013-04-03  Teresa Johnson  <tejohnson@google.com>
3423         * gcov-io.c (compute_working_sets): Moved most of body of old
3424         compute_working_sets here from profile.c.
3425         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
3426         (gcov_working_set_t): Moved typedef here from basic-block.h
3427         (compute_working_set): Declare.
3428         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
3429         (get_working_sets): Renamed from compute_working_set,
3430         replace most of body with call to new compute_working_sets.
3431         (get_exec_counts): Replace call to compute_working_sets
3432         to get_working_sets.
3433         * profile.h (get_working_sets): Renamed from compute_working_set.
3434         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
3435         to get_working_sets.
3436         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
3437         * gcov-dump.c (dump_working_sets): New function.
3439 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
3441         * hwint.c (sext_hwi, zext_hwi): New functions.
3442         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
3443         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
3444         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
3445         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
3446         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
3447         (sext_hwi, zext_hwi): New functions.
3449 2013-04-03  Jeff Law  <law@redhat.com>
3451         PR tree-optimization/56799
3452         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3453         back test for widening conversion erroneously dropped in prior change.
3455 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3457         PR target/56809
3458         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3459         instead of next_real_insn.
3461 2013-04-03  Marek Polacek  <polacek@redhat.com>
3463         PR sanitizer/55702
3464         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
3466 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3468         PR target/56809
3469         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3470         next_real_insn.
3471         (thumb1_output_casesi): Likewise.
3472         (thumb2_output_casesi): Likewise.
3474 2013-04-03  Richard Biener  <rguenther@suse.de>
3476         PR tree-optimization/56817
3477         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3478         Split out ...
3479         (tree_unroll_loops_completely_1): ... new function to manually
3480         walk the loop tree, properly defering outer loops of unrolled
3481         loops to later iterations.
3483 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3485         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3486         (vectorizable_load): Likewise.
3487         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3488         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3490 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3492         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3493         BIT_FIELD_REF.
3495 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3497         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3499 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
3501         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
3503 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3505         PR tree-optimization/56790
3506         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
3507         folding.
3509 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3511         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3512         Handle VEC_MERGE.
3513         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
3514         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
3515         equal arguments.
3517 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
3519         PR c/19449
3520         * tree.h (force_folding_builtin_constant_p): New decl.
3521         * builtins.c (force_folding_builtin_constant_p): New variable.
3522         (fold_builtin_constant_p): Fold immediately also if
3523         force_folding_builtin_constant_p.
3525 2013-04-03  Richard Biener  <rguenther@suse.de>
3527         PR tree-optimization/56812
3528         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3529         DRs of the same interleaving chain are independent.
3531 2013-04-02  Jason Merrill  <jason@redhat.com>
3533         * gdbinit.in (pbb): Use debug fn.
3535 2013-04-02  Lawrence Crowl  <crowl@google.com>
3537         * sese.h (struct ivtype_map_elt_s): Remove unused.
3538         (extern debug_ivtype_map): Remove unused.
3539         (extern eq_ivtype_map_elts): Remove unused.
3540         * sese.c (debug_ivtype_map): Removed unused.
3541         (debug_ivtype_map_1): Removed unused.
3542         (debug_ivtype_elt): Remove unused.
3543         (eq_ivtype_map_elts): Remove unused.
3546 2013-04-02  Kai Tietz  <ktietz@redhat.com>
3548         PR target/52790
3549         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
3550         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
3551         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
3552         function.
3553         (legitimize_pe_coff_symbol): Likewise.
3554         (is_imported_p): New helper-function.
3555         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
3556         for Windows x64 targets.
3557         (ix86_expand_prologue): Optimize for pe-coff targets.
3558         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
3559         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
3560         medium/large code-model.
3561         (legitimize_pic_address): Likewise.
3562         (legitimize_tls_address): Likewise.
3563         (ix86_expand_call): Likewise.
3564         (x86_output_mi_thunk): Likewise.
3565         (get_dllimport_decl): Add new beimport argument.
3566         (construct_plt_address): Don't assert for x64 pe-coff targets.
3567         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
3568         targets.
3569         (SYMBOL_FLAG_STUBVAR): New macro.
3570         (SYMBOL_REF_STUBVAR_P): Likewise.
3571         * config/i386/winnt.c (stub_list): New structure.
3572         (stub_head): New local variable.
3573         (i386_pe_record_stub): New function.
3574         (i386_pe_file_end): Emit refptr-stubs.
3576 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
3578         PR rtl-optimization/56745
3579         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3580         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3582         PR c++/34949
3583         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
3584         and both of them are MEM_REFs, just compare first argument for
3585         equality and attempt to deal even with differing offsets.
3587         PR c++/34949
3588         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
3589         of gimple_clobber_p to be MEM_REF.
3590         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
3591         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
3592         after gimplification.
3593         * asan.c (get_mem_ref_of_assignment): Don't instrument
3594         gimple_clobber_p stmts.
3595         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
3596         gimple_clobber_p stmt if they have MEM_REF lhs and
3597         are dead because of another gimple_clobber_p stmt.
3598         * tree-ssa-live.c (clear_unused_block_pointer): Treat
3599         gimple_clobber_p stmts like debug stmts.
3600         (remove_unused_locals): Remove clobbers with MEM_REF lhs
3601         that refer to unused VAR_DECLs or uninitialized values.
3602         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
3603         gimple_clobber_p stmts if they refer to removed parameters.
3604         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
3605         formatting.
3607 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
3609         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
3610         using SWI48 mode attribute.
3612 2013-04-02  Wei Mi  <wmi@google.com>
3614         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
3615         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
3616         *<rotate_insn><mode>3_mask in i386.md.
3618 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3620         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
3622 2013-04-02  Richard Biener  <rguenther@suse.de>
3624         PR tree-optimization/56778
3625         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3626         Runtime alias tests are not supported for gather loads.
3627         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
3628         stmts referenced from SSA operands before updating SSA form.
3630 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
3631             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3633         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
3634         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
3635         * config/arm/cortex-a53.md: New file.
3636         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
3637         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
3638         * config/arm/arm.c (arm_issue_rate): Likewise.
3639         * config/arm/arm-tune.md: Regenerate
3640         * config/arm/arm-tables.opt: Regenerate.
3641         * config/arm/arm-cores.def: Add cortex-a53.
3643 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3645         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
3646         non-static link.
3648 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
3650         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
3651         scalar load/store operations using B/H registers.
3652         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
3654 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
3656         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
3657         scalar move.
3658         * config/aarch64/aarch64.c
3659         (aarch64_simd_scalar_immediate_valid_for_move): New.
3660         * config/aarch64/aarch64-protos.h
3661         (aarch64_simd_scalar_immediate_valid_for_move): New.
3662         * config/aarch64/constraints.md (Dh, Dq): New.
3663         * config/aarch64/iterators.md (hq): New.
3665 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
3667         * reorg.c (get_branch_condition): Deal with conditional returns.
3668         (fill_simple_delay_slots): Remove dead code dealing with jumps.
3670 2013-04-01  Wei Mi  <wmi@google.com>
3672         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
3673         Truncate operand 2 using %b asm operand modifier.
3674         (*<shift_insn><mode>3_mask): Ditto.
3675         (*<rotate_insn><mode>3_mask): Ditto.
3677 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
3679         PR middle-end/56798
3680         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
3682 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3684         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
3685         of next_real_insn.
3686         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
3688 2013-03-30  Lawrence Crowl  <crowl@google.com>
3690         * dse.c (clear_alias_sets): Remove never set.
3691         (disqualified_clear_alias_sets): Remove never set.
3692         (clear_alias_mode_pool): Remove never set.
3693         (dse_step0): Remove condition that is never true.
3694         (canon_address): Remove condition that is never true.
3695         (dse_step7): Remove condition that is never true.
3696         (rest_of_handle_dse): Remove condition that is never true.
3697         (rest_of_handle_dse::did_global): Remove never read from above.
3698         (dse_step2_spill): Remove never called from above.
3699         (dse_step5_spill): Remove never called from above.
3701 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
3703         * doc/md.texi (Standard Names) <casesi>: Update documentation for
3704         JUMP_TABLE_DATA changes.
3705         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
3706         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
3707         (Insns) <jump_table_data>: New entry.
3708         * doc/tm.texi: Regenerate.
3710         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
3712         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
3713         for table jump at the end of a basic block using tablejump_p.
3714         * targhooks.c (default_invalid_within_doloop): Likewise.
3715         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
3716         target hook implementation that is identical to the default hook.
3717         (rs6000_invalid_within_doloop): Remove.
3719         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
3720         unused variable from tablejump_p call.
3722         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
3723         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
3724         (INSN_DELETED_P): Likewise.
3725         (emit_jump_table_data): New prototype.
3726         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
3727         after 4th as unused.
3728         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
3729         * sched-vis.c (print_insn): Likewise.
3730         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
3731         insn for compatibility with back ends that use next_active_insn to
3732         identify jump table data.
3733         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
3734         (remove_insn): Likewise.
3735         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
3736         to be emitted.
3737         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
3738         (emit_jump_table_data): New function.
3740         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
3741         basic block, a JUMP_TABLE_DATA never is.
3742         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
3743         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
3744         off from code handling real insns.
3745         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
3746         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
3747         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
3748         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
3749         is not a NONDEBUG_INSN_P.
3750         * ira-costs.c (scan_one_insn): Likewise.
3751         * jump.c (mark_all_labels): Likewise.
3752         (mark_jump_label_1): Likewise.
3753         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3754         * lra.c (get_insn_freq): Expect all insns reaching here to be in
3755         a basic block.
3756         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
3757         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
3758         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
3759         JUMP_TABLE_DATA_P insns.
3760         (calculate_elim_costs_all_insns): Likewise.
3761         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
3762         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
3763         (delete_output_reload): Code style fixups.
3764         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
3765         insn flags on this non-insn.
3766         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
3767         as scheduling barriers, for pre-change compatibility.
3768         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
3769         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
3771         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
3772         redundant JUMP_TABLE_DATA_P test.
3773         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
3774         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3775         (frv_for_each_packet): Likewise.
3776         * config/i386/i386.c (min_insn_size): Likewise.
3777         (ix86_avoid_jump_mispredicts): Likewise.
3778         * config/m32r/m32r.c (m32r_is_insn): Likewise.
3779         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
3780         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3781         (mips16_insn_length): Robustify.
3782         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
3783         (mips16_split_long_branches): Likewise.
3784         * config/pa/pa.c (pa_combine_instructions): Likewise.
3785         * config/rs6000/rs6000.c (get_next_active_insn): Treat
3786         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
3787         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
3788         as contributing to pool range lengths.
3789         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
3790         Remove redundant JUMP_TABLE_DATA_P test.
3791         (sh_loop_align): Likewise.
3792         (split_branches): Likewise.
3793         (sh_insn_length_adjustment): Likewise.
3794         * config/spu/spu.c (get_branch_target): Likewise.
3796 2013-03-29  Jan Hubicka  <jh@suse.cz>
3798         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
3799         gcov streaming; stream hot bb threshold to ltrans.
3800         * predict.c (get_hot_bb_threshold): Break out from ....
3801         (maybe_hot_count_p): ... here.
3802         (set_hot_bb_threshold): New function.
3803         * lto-section-in.c (lto_section_name): Add profile.
3804         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
3805         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
3806         and data-streamer.h
3807         (histogram_entry): New structure.
3808         (histogram, histogram_pool): New global vars.
3809         (histogram_hash): New structure.
3810         (histogram_hash::hash): New method.
3811         (histogram_hash::equal): Likewise.
3812         (account_time_size): New function.
3813         (cmp_counts): New function.
3814         (dump_histogram): New function.
3815         (ipa_profile_generate_summary): New function.
3816         (ipa_profile_write_summary): New function.
3817         (ipa_profile_read_summary): New function.
3818         (ipa_profile): Decide on threshold.
3819         (pass_ipa_profile): Add ipa_profile_write_summary and
3820         ipa_profile_read_summary.
3821         * Makefile.in (ipa.o): Update dependencies.
3822         * lto-streamer.h (LTO_section_ipa_profile): New section.
3824 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3826         * tree.h (VAR_P): New.
3828 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
3830         PR lto/56777
3831         * doc/invoke.texi ([-fwhole-program]): Fix typo.
3833 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
3835         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
3836         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3837         (control_flow_insn_p): Likewise.
3838         * cfgrtl.c (duplicate_insn_chain): Likewise.
3839         * final.c (get_attr_length_1): Likewise.
3840         (shorten_branches): Likewise.
3841         (final_scan_insn): Likewise.
3842         * function.c (instantiate_virtual_regs): Likewise.
3843         * gcse.c (insert_insn_end_basic_block): Likewise.
3844         * ira-costs.c (scan_one_insn): Likewise.
3845         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3846         * lra.c (check_rtl): Likewise.
3847         * reload1.c (elimination_costs_in_insn): Likewise.
3848         * reorg.c (follow_jumps): Likewise.
3850         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
3851         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3852         (thumb_far_jump_used_p): Likewise.
3853         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
3854         (workaround_speculation): Likewise.
3855         (add_sched_insns_for_speculation): Likewise.
3856         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
3857         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3858         (frv_for_each_packet): Likewise.
3859         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
3860         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
3861         (final_emit_insn_group_barriers): Likewise.
3862         * config/m32r/m32r.c (m32r_is_insn): Likewise.
3863         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3864         (mips16_insn_length): Likewise.
3865         * config/pa/pa.c (pa_reorg): Likewise.
3866         (pa_combine_instructions): Likewise.
3867         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
3868         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
3869         (sh_reorg): Likewise.
3870         (split_branches): Likewise.
3871         * config/spu/spu.c (get_branch_target): Likewise.
3873         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
3874         JUMP_TABLE_DATA_P.
3876 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
3878         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
3879         Fix declaration name.
3881 2013-03-28  Lawrence Crowl  <crowl@google.com>
3883         * graphds.h (struct graph.indicies): Remove unused.
3884         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
3885         (SCOP_ORIGINAL_PDDRS): Remove unused.
3886         * sese.h (extern insert_loop_close_phis): Removed unused.
3887         (extern insert_guard_phis): Removed unused.
3888         (extern ivtype_map_elt_info): Removed unused.
3889         (new_ivtype_map_elt): Removed unused.
3890         * sese.c (ivtype_map_elt_info): Removed unused.
3892 2013-03-28  Lawrence Crowl  <crowl@google.com>
3894         * Makefile.in: Add several missing include dependences.
3895         (DUMPFILE_H): New.
3896         (test-dump.o): New.  This object is not added to any executable,
3897         but is present for ad-hoc testing.
3898         * bitmap.c
3899         (debug (const bitmap_head_def &)): New.
3900         (debug (const bitmap_head_def *)): New.
3901         * bitmap.h
3902         (extern debug (const bitmap_head_def &)): New.
3903         (extern debug (const bitmap_head_def *)): New.
3904         * cfg.c
3905         (debug (edge_def &)): New.
3906         (debug (edge_def *)): New.
3907         * cfghooks.c
3908         (debug (basic_block_def &)): New.
3909         (debug (basic_block_def *)): New.
3910         * dumpfile.h
3911         (dump_node (const_tree, int, FILE *)): Correct source file.
3912         * dwarf2out.c
3913         (debug (die_struct &)): New.
3914         (debug (die_struct *)): New.
3915         * dwarf2out.h
3916         (extern debug (die_struct &)): New.
3917         (extern debug (die_struct *)): New.
3918         * gimple-pretty-print.c
3919         (debug (gimple_statement_d &)): New.
3920         (debug (gimple_statement_d *)): New.
3921         * gimple-pretty-print.h
3922         (extern debug (gimple_statement_d &)): New.
3923         (extern debug (gimple_statement_d *)): New.
3924         * ira-build.c
3925         (debug (ira_allocno_copy &)): New.
3926         (debug (ira_allocno_copy *)): New.
3927         (debug (ira_allocno &)): New.
3928         (debug (ira_allocno *)): New.
3929         * ira-int.h
3930         (extern debug (ira_allocno_copy &)): New.
3931         (extern debug (ira_allocno_copy *)): New.
3932         (extern debug (ira_allocno &)): New.
3933         (extern debug (ira_allocno *)): New.
3934         * ira-lives.c
3935         (debug (live_range &)): New.
3936         (debug (live_range *)): New.
3937         * lra-int.h
3938         (debug (lra_live_range &)): New.
3939         (debug (lra_live_range *)): New.
3940         * lra-lives.c
3941         (debug (lra_live_range &)): New.
3942         (debug (lra_live_range *)): New.
3943         * omega.c
3944         (debug (omega_pb_d &)): New.
3945         (debug (omega_pb_d *)): New.
3946         * omega.h
3947         (extern debug (omega_pb_d &)): New.
3948         (extern debug (omega_pb_d *)): New.
3949         * print-rtl.c
3950         (debug (const rtx_def &)): New.
3951         (debug (const rtx_def *)): New.
3952         * print-tree.c
3953         (debug_tree (tree): Move within file.
3954         (debug_raw (const tree_node &)): New.
3955         (debug_raw (const tree_node *)): New.
3956         (dump_tree_via_hooks (const tree_node *, int)): New.
3957         (debug (const tree_node &)): New.
3958         (debug (const tree_node *)): New.
3959         (debug_verbose (const tree_node &)): New.
3960         (debug_verbose (const tree_node *)): New.
3961         (debug_head (const tree_node &)): New.
3962         (debug_head (const tree_node *)): New.
3963         (debug_body (const tree_node &)): New.
3964         (debug_body (const tree_node *)): New.
3965         (debug_vec_tree (tree): Move and reimplement in terms of dump.
3966         (debug (vec<tree, va_gc> &)): New.
3967         (debug (vec<tree, va_gc> *)): New.
3968         * rtl.h
3969         (extern debug (const rtx_def &)): New.
3970         (extern debug (const rtx_def *)): New.
3971         * sbitmap.c
3972         (debug_raw (simple_bitmap_def &)): New.
3973         (debug_raw (simple_bitmap_def *)): New.
3974         (debug (simple_bitmap_def &)): New.
3975         (debug (simple_bitmap_def *)): New.
3976         * sbitmap.h
3977         (extern debug (simple_bitmap_def &)): New.
3978         (extern debug (simple_bitmap_def *)): New.
3979         (extern debug_raw (simple_bitmap_def &)): New.
3980         (extern debug_raw (simple_bitmap_def *)): New.
3981         * sel-sched-dump.c
3982         (debug (vinsn_def &)): New.
3983         (debug (vinsn_def *)): New.
3984         (debug_verbose (vinsn_def &)): New.
3985         (debug_verbose (vinsn_def *)): New.
3986         (debug (expr_def &)): New.
3987         (debug (expr_def *)): New.
3988         (debug_verbose (expr_def &)): New.
3989         (debug_verbose (expr_def *)): New.
3990         (debug (vec<rtx> &)): New.
3991         (debug (vec<rtx> *)): New.
3992         * sel-sched-dump.h
3993         (extern debug (vinsn_def &)): New.
3994         (extern debug (vinsn_def *)): New.
3995         (extern debug_verbose (vinsn_def &)): New.
3996         (extern debug_verbose (vinsn_def *)): New.
3997         (extern debug (expr_def &)): New.
3998         (extern debug (expr_def *)): New.
3999         (extern debug_verbose (expr_def &)): New.
4000         (extern debug_verbose (expr_def *)): New.
4001         (extern debug (vec<rtx> &)): New.
4002         (extern debug (vec<rtx> *)): New.
4003         * sel-sched-ir.h
4004         (_list_iter_cond_expr): Make inline instead of static.
4005         * sreal.c
4006         (debug (sreal &)): New.
4007         (debug (sreal *)): New.
4008         * sreal.h
4009         (extern debug (sreal &)): New.
4010         (extern debug (sreal *)): New.
4011         * tree.h
4012         (extern debug_raw (const tree_node &)): New.
4013         (extern debug_raw (const tree_node *)): New.
4014         (extern debug (const tree_node &)): New.
4015         (extern debug (const tree_node *)): New.
4016         (extern debug_verbose (const tree_node &)): New.
4017         (extern debug_verbose (const tree_node *)): New.
4018         (extern debug_head (const tree_node &)): New.
4019         (extern debug_head (const tree_node *)): New.
4020         (extern debug_body (const tree_node &)): New.
4021         (extern debug_body (const tree_node *)): New.
4022         (extern debug (vec<tree, va_gc> &)): New.
4023         (extern debug (vec<tree, va_gc> *)): New.
4024         * tree-cfg.c
4025         (debug (struct loop &)): New.
4026         (debug (struct loop *)): New.
4027         (debug_verbose (struct loop &)): New.
4028         (debug_verbose (struct loop *)): New.
4029         * tree-dump.c: Add header dependence.
4030         * tree-flow.h
4031         (extern debug (struct loop &)): New.
4032         (extern debug (struct loop *)): New.
4033         (extern debug_verbose (struct loop &)): New.
4034         (extern debug_verbose (struct loop *)): New.
4035         * tree-data-ref.c
4036         (debug (data_reference &)): New.
4037         (debug (data_reference *)): New.
4038         (debug (vec<data_reference_p> &)): New.
4039         (debug (vec<data_reference_p> *)): New.
4040         (debug (vec<ddr_p> &)): New.
4041         (debug (vec<ddr_p> *)): New.
4042         * tree-data-ref.h
4043         (extern debug (data_reference &)): New.
4044         (extern debug (data_reference *)): New.
4045         (extern debug (vec<data_reference_p> &)): New.
4046         (extern debug (vec<data_reference_p> *)): New.
4047         (extern debug (vec<ddr_p> &)): New.
4048         (extern debug (vec<ddr_p> *)): New.
4049         * tree-ssa-alias.c
4050         (debug (pt_solution &)): New.
4051         (debug (pt_solution *)): New.
4052         * tree-ssa-alias.h
4053         (extern debug (pt_solution &)): New.
4054         (extern debug (pt_solution *)): New.
4055         * tree-ssa-alias.c
4056         (debug (_var_map &)): New.
4057         (debug (_var_map *)): New.
4058         (debug (tree_live_info_d &)): New.
4059         (debug (tree_live_info_d *)): New.
4060         * tree-ssa-alias.h
4061         (extern debug (_var_map &)): New.
4062         (extern debug (_var_map *)): New.
4063         (extern debug (tree_live_info_d &)): New.
4064         (extern debug (tree_live_info_d *)): New.
4066 2013-03-28  Jan Hubicka  <jh@suse.cz>
4068         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
4070 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
4072         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
4073         record only when desired or required.
4075 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
4077         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
4078         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
4080 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4082         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
4083         (*andsi3_compare0_uxtw): New pattern.
4084         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
4085         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
4087 2013-03-28  Jan Hubicka  <jh@suse.cz>
4089         * data-streamer-in.c (streamer_read_gcov_count): New function.
4090         * gimple-streamer-out.c: Include value-prof.h.
4091         (output_gimple_stmt): Output histogram.
4092         (output_bb): Use streamer_write_gcov_count.
4093         * value-prof.c: Include data-streamer.h
4094         (dump_histogram_value): Add HIST_TYPE_MAX.
4095         (stream_out_histogram_value): New function.
4096         (stream_in_histogram_value): New function.
4097         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
4098         (stream_out_histogram_value, stream_in_histogram_value): Declare.
4099         * data-streamer-out.c (streamer_write_gcov_count): New function.
4100         (streamer_write_gcov_count_stream): New function.
4101         * lto-cgraph.c (lto_output_edge): Update counter streaming.
4102         (lto_output_node): Likewise.
4103         (input_node, input_edge): Likewise.
4104         * lto-streamer-out.c (output_cfg): Update streaming.
4105         * lto-streamer-in.c (input_cfg): Likewise.
4106         * data-streamer.h (streamer_write_gcov_count,
4107         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
4108         * gimple-streamer-in.c: Include value-prof.h
4109         (input_gimple_stmt): Input histograms.
4110         (input_bb): Update profile streaming.
4112 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
4114         * genmodes.c (emit_max_int): New function.
4115         (emit_insn_modes_h): Added call to emit_max_function.
4116         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
4117         Added doc.
4118         * machmode.def: Fixed comment.
4120 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
4122         * combine.c (try_combine): Removed useless assert.
4123         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
4125 2013-03-28  Marek Polacek  <polacek@redhat.com>
4126             Richard Biener  <rguenther@suse.de>
4128         PR tree-optimization/56695
4129         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
4130         build signed result of a vector comparison.
4131         * tree-cfg.c (verify_gimple_comparison): Check that a result
4132         of a vector comparison has signed type.
4134 2013-03-28  Richard Biener  <rguenther@suse.de>
4136         PR tree-optimization/37021
4137         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
4138         do not restrict gaps between groups.
4139         * tree-vect-stmts.c (vectorizable_load): Properly account for
4140         a gap between groups.
4142 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4144         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
4145         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
4146         is not enabled.
4148 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
4150         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
4151         * doc/extend.texi (Named Address Spaces): Ditto.
4152         (Variable Attributes): Ditto.
4154 2013-03-27  Kai Tietz  <ktietz@redhat.com>
4156         * config.build: Add support for cygwin x64 target.
4157         * config.gcc: Likewise.
4158         * config.host: Likewise.
4159         * configure.ac: Likewise
4160         * configure: Regenerated.
4162 2013-03-27 Kai Tietz  <ktietz@redhat.com>
4164         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
4165         * config/i386/t-cygwin-w64: New file.
4166         * config/i386/cygwin-w64.h: New file.
4167         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
4168         and add support for x64-cygwin target.
4169         (CPP_SPEC): Likewise.
4170         (CXX_WRAP_SPEC_LIST): Undefine before define.
4171         (LIBGCJ_SONAME): Use 15 as version.
4173 2013-03-27  Richard Biener  <rguenther@suse.de>
4175         PR tree-optimization/56716
4176         * tree-ssa-structalias.c (perform_var_substitution): Adjust
4177         dumping for ref nodes.
4179 2013-03-27  Martin Jambor  <mjambor@suse.cz>
4181         PR tree-optimization/55334
4182         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
4183         restricted pointers to arrays.
4185 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4187         * Makefile.in (.SUFFIXES): Add .cc.
4188         (.c.o): Apply same recipe for implicit rule .cc.o.
4190 2013-03-27  Richard Biener  <rguenther@suse.de>
4192         PR tree-optimization/37021
4193         * tree-vect-data-refs.c (vect_check_strided_load): Allow
4194         REALPART/IMAGPART_EXPRs around the supported refs.
4195         * tree-ssa-structalias.c (find_func_aliases): Assume that
4196         floating-point values are not used to transfer pointers.
4198 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4200         * target.def (TARGET_HAS_IFUNC_P): New target hook.
4201         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
4202         * doc/tm.texi: Regenerate.
4203         * targhooks.h (default_has_ifunc_p): New.
4204         * targhooks.c (default_has_ifunc_p): Ditto.
4205         * config/linux-protos.h: New file.
4206         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
4207         this hook for linux which disables support of indirect functions in
4208         android.
4209         * config/linux-android.c: New file.
4210         * config/t-linux-android.c: Ditto.
4211         * config.gcc: Added new object file linux-android.o.
4212         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
4213         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
4214         * varasm.c (do_assemble_alias): Likewise.
4215         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
4216         doesn't support indirect functions.
4217         * configure: Regenerate.
4219 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
4221         PR target/56102
4222         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
4223         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
4224         mult-word mode.
4226 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4228         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
4230 2013-03-27  Terry Guo  <terry.guo@arm.com>
4232         * config/arm/arm-cores.def: Added core cortex-r7.
4233         * config/arm/arm-tune.md: Regenerated.
4234         * config/arm/arm-tables.opt: Regenerated.
4235         * doc/invoke.texi: Added entry for core cortex-r7.
4237 2013-03-27  Walter Lee  <walt@tilera.com>
4239         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
4240         double-decrement of next_scratch_regno.
4242 2013-03-27  Walter Lee  <walt@tilera.com>
4244         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
4245         input operands.
4246         (insn_v1mulus): Ditto.
4247         (insn_v2muls): Ditto.
4249 2013-03-27  Walter Lee  <walt@tilera.com>
4251         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
4252         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
4254 2013-03-27  Walter Lee  <walt@tilera.com>
4256         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
4257         (*sibcall_value): Ditto.
4259 2013-03-27  Walter Lee  <walt@tilera.com>
4261         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
4262         (insn_mnz_v8qi): ... this ...
4263         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
4264         vector equivalent.
4265         (insn_v<n>mnz): Replaced by ...
4266         (insn_v1mnz): ... this ...
4267         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
4268         equivalent.
4269         (insn_mz_<mode>): Replaced by ...
4270         (insn_mz_v8qi): ... this ...
4271         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
4272         vector equivalent.
4273         (insn_v<n>mz): Replaced by ...
4274         (insn_v1mz): ... this ...
4275         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
4276         equivalent.
4278 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4280         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
4282 2013-03-26  Roland McGrath  <mcgrathr@google.com>
4284         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
4285         than fprintf with a non-constant, non-format string.
4287 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
4289         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
4290         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
4291         operand 0 predicate.
4292         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
4293         attribute.  Use general_x64nomem_operand as operand 1 predicate.
4294         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
4295         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
4296         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
4297         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
4298         (mov<mode>_insv_1): Remove expander.  Merge insn with
4299         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
4300         Use general_x64nomem_operand as operand 1 predicate.
4301         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
4302         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
4303         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
4304         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
4305         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
4306         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
4307         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
4308         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
4309         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
4310         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
4311         (general_x64nomem_operand): Ditto.
4313 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4315         * config/rtems.opt: Add -pthread option.
4317 2013-03-26  Richard Biener  <rguenther@suse.de>
4319         * alias.c (find_base_term): Avoid redundant and not used recursion.
4320         (base_alias_check): Get the initial base term from the caller.
4321         (true_dependence_1): Compute and pass base terms to base_alias_check.
4322         (write_dependence_p): Likewise.
4323         (may_alias_p): Likewise.
4325 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
4327         * config/aarch64/aarch64.c (aarch64_classify_address): Support
4328         PC-relative load in SI modes and above only.
4330 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
4332         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
4333         * config/arm/iwmmxt.md (WCGR0): Update.
4334         (WCGR1, WCGR2, WCGR3): Likewise.
4336 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
4338         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
4339         Use x64 and nox64 isa attributes.
4341 2013-03-26  Richard Biener  <rguenther@suse.de>
4343         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4344         alignment computations and rely on get_object_alignment_1
4345         for the !TYPE_P case.
4346         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
4348 2013-03-26  Walter Lee  <walt@tilera.com>
4350         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
4351         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
4353 2013-03-25  Jeff Law  <law@redhat.com>
4355         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
4356         check for INTEGRAL_TYPE_P that was missing due to checking in
4357         wrong version of prior patch.
4359 2013-03-25  Walter Lee  <walt@tilera.com>
4361         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
4362         TILEGX_INSN_SHUFFLEBYTES1.
4363         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
4364         shufflebytes1.
4365         (tilegx_builtins): Ditto.
4366         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
4368 2013-03-25  Walter Lee  <walt@tilera.com>
4370         * config/tilegx/tilegx.md (floatsisf2): New pattern.
4371         (floatunssisf2): New pattern.
4372         (floatsidf2): New pattern.
4373         (floatunssidf2): New pattern.
4375 2013-03-25  Walter Lee  <walt@tilera.com>
4377         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
4378         tests for constraint J, K, N, P.
4380 2013-03-25  Walter Lee  <walt@tilera.com>
4382         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
4383         Use indirect/pcrel encoding.
4384         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
4385         Ditto.
4387 2013-03-25  Steve Ellcey  <sellcey@mips.com>
4389         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
4390         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
4391         * config/mips/mips.c (mips_option_override): Set IMADD default.
4392         * config/mips/mips.h (PTF_AVOID_IMADD): New.
4393         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
4394         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
4395         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
4396         * doc/invoke.texi (-mimadd/-mno-imadd): New.
4398 2013-03-25  Jeff Law  <law@redhat.com>
4400         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
4401         slightly to avoid creating and folding useless trees.  Simplify
4402         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
4404 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
4406         * config/i386/i386.md (*zero_extendsidi2): Merge with
4407         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
4408         * config/i386/predicates.md (x86_64_zext_operand): Rename from
4409         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
4410         targets.  Clarify comment.
4412 2013-03-25  Martin Jambor  <mjambor@suse.cz>
4414         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
4415         pass-through jump functions differently.
4416         (ipa_read_jump_function): Likewise.  Also use setter functions to set
4417         up jump functions.
4419 2013-03-25  Martin Jambor  <mjambor@suse.cz>
4421         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
4422         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
4423         process it.
4424         (ipa_get_indirect_edge_target): New function.
4425         (devirtualization_time_bonus): New parameter known_aggs, pass it to
4426         ipa_get_indirect_edge_target.  Update all callers.
4427         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
4428         ipa_get_indirect_edge_target_1 instead of calling
4429         ipa_get_indirect_edge_target.
4430         (create_specialized_node): Pass aggvlas to
4431         ipcp_discover_new_direct_edges.
4433 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4435         * config/arm/arm.md (f_sels, f_seld): New types.
4436         (*cmov<mode>): New pattern.
4437         * config/arm/predicates.md (arm_vsel_comparison_operator): New
4438         predicate.
4440 2013-03-25  Kai Tietz  <ktietz@redhat.com>
4442         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
4443         POSIX-printf for mingw-hosted  builds.
4445 2013-03-25  Richard Biener  <rguenther@suse.de>
4447         PR middle-end/56694
4448         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4449         must-not-throw stmt location.
4451 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4453         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4454         Emit load-acquire versions when acq is true.
4455         (arm_emit_store_exclusive): Add rel parameter.
4456         Emit store-release versions when rel is true.
4457         (arm_split_compare_and_swap): Use acquire-release instructions
4458         instead.
4459         of barriers when appropriate.
4460         (arm_split_atomic_op): Likewise.
4461         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4462         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4463         (VUNSPEC_SLX): Likewise.
4464         (VUNSPEC_LDA): Likewise.
4465         (VUNSPEC_STL): Likewise.
4466         * config/arm/sync.md (atomic_load<mode>): New pattern.
4467         (atomic_store<mode>): Likewise.
4468         (arm_load_acquire_exclusive<mode>): Likewise.
4469         (arm_load_acquire_exclusivesi): Likewise.
4470         (arm_load_acquire_exclusivedi): Likewise.
4471         (arm_store_release_exclusive<mode>): Likewise.
4473 2013-03-25  Catherine Moore  <clm@codesourcery.com>
4475         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4476         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4477         * config/mip/predicates.md (lwsp_swsp_operand,
4478         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4479         sb16_operand, db4_operand, db7_operand, ib3_operand,
4480         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4481         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4482         andi16_operand): New predicates.
4483         * config/mips/mips.md (compression): New attribute.
4484         (enabled): New attribute.
4485         (length): Consider compression in computing length.
4486         (shift_compression): New code attribute.
4487         (*add<mode>3): New operands. Record compression.
4488         (sub<mode>3): Likewise.
4489         (one_cmpl<mode>2): Likewise.
4490         (*and<mode>3): Likewise.
4491         (*ior<mode>3): Likewise.
4492         (unnamed pattern for xor): Likewise.
4493         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4494         (*<optab><mode>3): Likewise.
4495         (*mov<mode>_internal: Likewise.
4496         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4497         (mips_unsigned_immediate_p): New.
4498         (umips_lwsp_swsp_address_p): New.
4499         (m16_based_address_p): New.
4500         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4501         (mips_unsigned_immediate_p): New prototype.
4502         (lwsp_swsp_address_p): New prototype.
4503         (m16_based_address_p): New prototype.
4504         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
4505         (mips_signed_immediate_p): New function.
4506         (m16_based_address_p): New function.
4507         (lwsp_swsp_address_p): New function.
4508         (mips_print_operand_punctuation): Recognize short delay slot insns
4509         for microMIPS.add<mode>3"
4511 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4513         PR target/56720
4514         * config/arm/iterators.md (v_cmp_result): New mode attribute.
4515         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
4517 2013-03-25  Richard Biener  <rguenther@suse.de>
4519         PR tree-optimization/56689
4520         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
4521         any edge.
4523 2013-03-25  Richard Biener  <rguenther@suse.de>
4525         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
4526         of bitmap.
4527         (memory_references): Likewise.
4528         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
4529         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
4530         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
4531         (gather_mem_refs_in_loops): Fold into ...
4532         (analyze_memory_references): ... this.  Move initialization
4533         to tree_ssa_lim_initialize.
4534         (fill_always_executed_in): Rename to ...
4535         (fill_always_executed_in_1): ... this.
4536         (fill_always_executed_in): Move contains_call computation to
4537         this new function from ...
4538         (tree_ssa_lim_initialize): ... here.
4539         (tree_ssa_lim): Call fill_always_executed_in.
4541 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
4543         * postreload.c (reload_combine): Fix code detecting returns.
4545 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
4547         * function.c (emit_use_return_register_into_block): On cc0 targets,
4548         do not emit the sequence between cc0 setter and user.
4550 2013-03-25  Kai Tietz  <ktietz@redhat.com>
4552         * config/i386/predicates.md (local_symbolic_operand): Interpret
4553         dll-imported symbols as none-local.
4555 2013-03-25  Richard Biener  <rguenther@suse.de>
4557         * tree-ssa-loop-im.c (struct depend): Remove.
4558         (struct lim_aux_data): Make depends a vec of gimples.
4559         (free_lim_aux_data): Adjust.
4560         (add_dependency): Likewise.
4561         (set_level): Likewise.
4563 2013-03-25  Richard Biener  <rguenther@suse.de>
4565         PR middle-end/56434
4566         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
4567         the pointer returned by calls with ECF_MALLOC set.
4569 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
4571         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
4573 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
4575         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
4576         using MMXMODE mode iterator.
4577         (*move<mode>_internal): Merge with *movv2sf_internal and
4578         *movv2sf_internal_rex64 using MMXMODE mode iterator.
4580 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
4582         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
4583         (record_last_mem_set_info): Likewise.
4585         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
4586         of XNEWVEC followed by memset.
4587         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
4589 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
4591         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4592         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
4593         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
4594         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
4595         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
4596         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
4597         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
4598         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
4599         BARRIER_P instead of GET_CODE.
4601 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
4603         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
4604         inaccuracy in the probing code.
4606         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
4607         (ctrapdi4): Likewise.
4609 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
4611         * calls.c (expand_call): Add missing guard to code handling return
4612         of non-BLKmode structures in MSB.
4613         * function.c (expand_function_end): Likewise.
4615 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
4617         * combine.c (try_combine): Adjust comment.  Do not add the set of
4618         insn #0 if the destination indirectly is set or dies in insn #2.
4619         Tidy up code to distribute a new note.
4621 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
4623         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
4624         also for alternatives 16 and 17.
4626 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
4628         * config/i386/sse.md (*mov<mode>_internal): Merge with
4629         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
4630         Emit insn template depending on type attribute.  Use
4631         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4632         movd instead of movq mnemonic for interunit moves.  Rewrite mode
4633         attribute calculation.  Remove unit attribute calculation.
4634         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
4635         Set prefix_data16 attribute for DImode ssemov types.
4636         Use Ym instead of y for SSE-MMX conversion alternatives.
4637         Reorder operand constraints.
4639 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
4641         * df.h (df_insn_delete): Adjust prototype.
4642         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
4643         and let it decide whether mark the basic block dirty.
4644         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
4645         * df-scan.c (df_insn_info_delete): New helper function, split
4646         off from df_insn_delete.
4647         (df_scan_free_bb_info): Use it.
4648         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
4649         Likewise.
4650         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
4651         that the insn is actually an insn and it has a non-NULL basic block.
4652         Do not mark basic block dirty if only deleting a DEBUG_INSN.
4654 2013-03-22  Richard Biener  <rguenther@suse.de>
4656         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
4657         dep_ref members.
4658         (mem_ref_alloc): Do not allocate them.
4659         (refs_independent_p): Do not query or maintain a cache.
4661 2013-03-22  Richard Biener  <rguenther@suse.de>
4663         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
4664         (gather_mem_refs_in_loops): Do not compute it.
4665         (analyze_memory_references): Do not allocate it.
4666         (tree_ssa_lim_finalize): Do not free it.
4667         (for_all_locs_in_loop): Do not query all_refs_in_loop.
4669 2013-03-22  Richard Biener  <rguenther@suse.de>
4671         * is-a.h (as_a): Use gcc_checking_assert.
4673 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
4675         * config/aarch64/aarch64.c (aarch64_print_operand): New
4676         format specifier for printing a constant in hex.
4677         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
4678         format specifier for printing second operand.
4680 2013-03-22  Richard Biener  <rguenther@suse.de>
4682         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
4683         bitmaps.
4684         (gather_mem_refs_in_loops): Perform store accumulation here.
4685         (create_vop_ref_mapping_loop): Remove.
4686         (create_vop_ref_mapping): Likewise.
4687         (analyze_memory_references): Initialize refs_stored_in_loop.
4688         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
4689         (record_indep_loop): Remove.
4690         (record_dep_loop): New function.
4691         (ref_indep_loop_p_1): Adjust to only walk over references
4692         in the loop, not its subloops.
4693         (ref_indep_loop_p): Rename to ...
4694         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
4695         maintaining a more fine-grained cache.
4696         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
4697         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
4699 2013-03-22  Richard Biener  <rguenther@suse.de>
4701         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
4702         (struct mem_ref): Make accesses_in_loop a vec of a vec of
4703         aggregate mem_ref_loc.
4704         (free_mem_ref_locs): Inline into ...
4705         (memref_free): ... this and adjust.
4706         (mem_ref_alloc): Adjust.
4707         (mem_ref_locs_alloc): Remove.
4708         (record_mem_ref_loc): Adjust.
4709         (get_all_locs_in_loop): Rewrite into ...
4710         (for_all_locs_in_loop): ... this iterator.
4711         (rewrite_mem_ref_loc): New functor.
4712         (rewrite_mem_refs): Use for_all_locs_in_loop.
4713         (sm_set_flag_if_changed): New functor.
4714         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
4715         (ref_always_accessed): New functor.
4716         (ref_always_accessed_p): Use for_all_locs_in_loop.
4718 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
4720         * tree-pass.h (PROP_gimple_lvec): New.
4721         * passes.c (dump_properties): Handle PROP_gimple_lvec.
4722         (init_optimization_passes): Move pass_lower_vector.
4723         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
4724         PROP_gimple_lvec.
4725         (pass_lower_vector): Provide PROP_gimple_lvec.
4726         (pass_lower_vector_ssa): Likewise.
4727         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
4729 2013-03-21  Mark Wielaard  <mjw@redhat.com>
4731         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
4733 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
4735         * config/i386/i386.md (*movdi_internal): Disparage slightly
4736         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
4737         conversion alternatives.
4739 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
4741         PR middle-end/48087
4742         * diagnostic.def (DK_WERROR): New kind.
4743         * diagnostic.h (werrorcount): Define.
4744         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
4745         promoted to DK_ERROR, increment DK_WERROR counter instead of
4746         DK_ERROR counter.
4747         * toplev.c (toplev_main): Call print_ignored_options even if
4748         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
4749         even if just werrorcount is non-zero.
4751         PR debug/55608
4752         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
4753         on failure.
4754         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
4755         (string_cst_pool_decl): New function.
4756         (optimize_one_addr_into_implicit_ptr): New function.
4757         (resolve_addr_in_expr): Optimize DWARF location expression
4758         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
4759         which doesn't live in memory, but has DW_AT_location or
4760         DW_AT_const_value, or refers to a string literal, into
4761         DW_OP_GNU_implicit_pointer.
4762         (optimize_location_into_implicit_ptr): New function.
4763         (resolve_addr): If removing DW_AT_location of a variable because
4764         it was DW_OP_addr of address of the variable, but the variable doesn't
4765         live in memory, try to emit const value attribute for the initializer.
4767 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
4769         * tree.h (VECTOR_TYPE_P): New macro.
4770         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
4771         TYPE_MODE): Use it.
4772         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
4773         VEC_COND_EXPR cannot be lvalues.
4774         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
4776 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
4778         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
4779         Restrict the transformation to equal modes.
4781 2013-03-21  Richard Biener  <rguenther@suse.de>
4783         PR tree-optimization/39326
4784         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
4785         (MEM_ANALYZABLE): Adjust.
4786         (record_mem_ref_loc): Move bitmap ops ...
4787         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
4788         unanalyzable refs, do not record locations for it.
4789         (analyze_memory_references): Allocate ref zero as shared
4790         unanalyzable ref.
4791         (refs_independent_p): Do not test for unanalyzed mems here.
4792         (ref_indep_loop_p_1): Special-case disambiguation against
4793         the unanalyzed ref.
4794         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
4796 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
4798         * config/arm/arm-protos.h (tune_params): Add
4799         prefer_neon_for_64bits field.
4800         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
4801         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
4802         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4803         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4804         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
4805         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4806         (arm_option_override): Handle -mneon-for-64bits new option.
4807         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
4808         (prefer_neon_for_64bits): Declare new variable.
4809         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
4810         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
4811         (arch_enabled): Handle new arch types. Remove support for onlya8
4812         and nota8.
4813         (one_cmpldi2): Use new arch names.
4814         (zero_extend<mode>di2, extend<mode>di2): Ditto.
4815         * config/arm/arm.opt (mneon-for-64bits): Add option.
4816         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
4817         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
4818         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
4819         of onlya8.
4820         * doc/invoke.texi (-mneon-for-64bits): Document.
4822 2013-03-21  Richard Biener  <rguenther@suse.de>
4824         PR tree-optimization/39326
4825         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
4826         (sort_bbs_in_loop_postorder_cmp): New function.
4827         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
4829 2013-03-21  Richard Biener  <rguenther@suse.de>
4831         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
4832         (vect_insert_into_interleaving_chain): Likewise.
4833         (vect_drs_dependent_in_basic_block): Inline ...
4834         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
4835         split out from ...
4836         (vect_analyze_data_ref_dependence): ... here.  Simplify.
4837         (vect_check_interleaving): Simplify.
4838         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
4839         (vect_slp_analyze_data_ref_dependences): ... this new function.
4840         (dr_group_sort_cmp): New function.
4841         (vect_analyze_data_ref_accesses): Compute data-reference groups
4842         here instead of in vect_analyze_data_ref_dependence.  Use
4843         a more efficient algorithm.
4844         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
4845         vect_slp_analyze_data_ref_dependences.  Call
4846         vect_analyze_data_ref_accesses earlier.
4847         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4848         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
4849         (vect_slp_analyze_data_ref_dependences): New prototype.
4851 2013-03-21  Richard Biener  <rguenther@suse.de>
4853         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
4854         ref is stored in the loop.
4855         (find_refs_for_sm): Walk only over all stores.
4856         (store_motion_loop): Allocate from lim_bitmap_obstack.
4857         (store_motion): Likewise.
4859 2013-03-21  Richard Biener  <rguenther@suse.de>
4861         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
4862         Update virtual SSA form.
4864 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4866         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
4867         * configure: Regenerate.
4868         * config.in: Regenerate.
4869         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
4870         if !HAVE_LD_EH_FRAME_CIEV3.
4872 2013-03-21  Richard Biener  <rguenther@suse.de>
4874         * tree-cfg.c (verify_expr_no_block): New function.
4875         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
4876         nor DECL_VALUE_EXPR have locations with associated blocks.
4877         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
4878         (clear_unused_block_pointer): Remove code dealing with
4879         blocks in DECL_DEBUG_EXPR locations.
4881 2013-03-21  Richard Biener  <rguenther@suse.de>
4883         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
4884         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
4885         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
4886         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
4887         instead of DECL_DEBUG_EXPR_IS_FROM.
4888         * gimplify.c (gimplify_modify_expr): Likewise.
4889         * tree-cfg.c (verify_expr_location_1): Likewise.
4890         * tree-complex.c (create_one_component_var): Likewise.
4891         * tree-sra.c (create_access_replacement): Likewise.
4892         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
4893         (clear_unused_block_pointer): Likewise.
4894         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4895         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4896         * var-tracking.c (var_debug_decl): Likewise.
4897         (track_expr_p): Likewise.
4898         * tree-inline.c (add_local_variables): Likewise.  Set
4899         DECL_HAS_DEBUG_EXPR_P after copying it.
4900         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4901         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
4903 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
4905         PR bootstrap/56656
4906         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
4907         * configure: Regenerate.
4908         * config.in: Regenerate.
4909         * config/i386/i386.md (*movdf_internal): Use
4910         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4911         movd instead of movq mnemonic for interunit moves.
4912         (*movdi_internal): Ditto.
4914 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4916         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
4917         (abd<mode>_3): New pattern.
4918         (aba<mode>_3): New pattern.
4919         (fabd<mode>_3): New pattern.
4921 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4923         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
4924         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
4925         occurrence of REGISTER_PREFIX as its empty string.
4927 2013-03-20  Jeff Law  <law@redhat.com>
4929         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
4930         addititional equivalences for equality comparisons between an SSA_NAME
4931         and a constant where the SSA_NAME was set from a widening conversion.
4933 2013-03-20  Walter Lee  <walt@tilera.com>
4935         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
4937 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
4939         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
4940         depending on type attribute.
4941         (*movti_internal): Ditto.
4942         (*movtf_internal): Ditto.
4943         (*movxf_internal): Ditto.
4944         (*movdf_internal): Ditto.
4945         (*movsf_internal): Ditto.
4947 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
4949         * config/i386/i386.md (*movti_internal): Set prefix attribute to
4950         maybe_vex for sselog1 and ssemov types.
4951         (*movdi_internal): Reorder operand constraints.
4952         (*movsi_internal): Ditto.  Set prefix attribute to
4953         maybe_vex for sselog1 and ssemov types.
4954         (*movtf_internal): Set prefix attribute to maybe_vex
4955         for sselog1 and ssemov types.
4956         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
4957         DImode ssemov types.  Reorder operand constraints.
4958         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
4959         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
4960         attribute for SImode ssemov types.  Reorder operand constraints.
4962 2013-03-20  Martin Jambor  <mjambor@suse.cz>
4964         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
4965         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
4967 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
4969         * config/rs6000/predicates.md (indexed_address, update_address_mem
4970         update_indexed_address_mem): New predicates.
4971         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
4972         attribute for load/store instructions.
4973         * config/rs6000/dfp.md (movsd_store): Likewise.
4974         (movsd_load): Likewise.
4975         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
4976         (unnamed HI->DI extend define_insn): Likewise.
4977         (unnamed SI->DI extend define_insn): Likewise.
4978         (unnamed QI->SI extend define_insn): Likewise.
4979         (unnamed QI->HI extend define_insn): Likewise.
4980         (unnamed HI->SI extend define_insn): Likewise.
4981         (unnamed HI->SI extend define_insn): Likewise.
4982         (extendsfdf2_fpr): Likewise.
4983         (movsi_internal1): Likewise.
4984         (movsi_internal1_single): Likewise.
4985         (movhi_internal): Likewise.
4986         (movqi_internal): Likewise.
4987         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
4988         attribute for load/store instructions.
4989         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
4990         instructions.
4991         (mov<mode>_softfloat): Likewise.
4992         (mov<mode>_hardfloat32): Likewise.
4993         (mov<mode>_hardfloat64): Likewise.
4994         (mov<mode>_softfloat64): Likewise.
4995         (movdi_internal32): Likewise.
4996         (movdi_internal64): Likewise.
4997         (probe_stack_<mode>): Likewise.
4999 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
5001         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
5002         floating point, and decimal floating point to reload iterator.
5004         * config/rs6000/constraints.md (wl constraint): New constraints to
5005         return FLOAT_REGS if certain options are used to reduce the number
5006         of separate patterns that exist in the file.
5007         (wx constraint): Likewise.
5008         (wz constraint): Likewise.
5010         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5011         -mdebug=reg, print wg, wl, wx, and wz constraints.
5012         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5013         Initialize the reload functions for 64-bit binary/decimal floating
5014         point types.
5015         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5016         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5017         create the buffer on the stack to overcome not having a 32-bit
5018         load and store.
5019         (rs6000_emit_move): Likewise.
5020         (rs6000_secondary_memory_needed_rtx): Likewise.
5021         (rs6000_alloc_sdmode_stack_slot): Likewise.
5022         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5023         via xxlxor, just like DFmode 0.0.
5025         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
5026         define as 1 if we are running on a power7 or newer.
5027         (enum r6000_reg_class_enum): Add new constraints.
5029         * config/rs6000/dfp.md (movsd): Delete, combine with binary
5030         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
5031         with other moves by using conditional constraits (wg).  Use LFIWZX
5032         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
5033         (movsd splitter): Likewise.
5034         (movsd_hardfloat): Likewise.
5035         (movsd_softfloat): Likewise.
5037         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
5038         binary and decimal floating point moves.
5039         (fmove_ok): New attributes to combine binary and decimal floating
5040         point moves, and to combine power6x (mfpgpr) moves along normal
5041         floating moves.
5042         (real_value_to_target): Likewise.
5043         (f32_lr): Likewise.
5044         (f32_lm): Likewise.
5045         (f32_li): Likewise.
5046         (f32_sr): Likewise.
5047         (f32_sm): Likewise.
5048         (f32_si): Likewise.
5049         (movsf): Combine binary and decimal floating point moves.  Combine
5050         power6x (mfpgpr) moves with other moves by using conditional
5051         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
5052         (mov<mode> for SFmode/SDmode); Likewise.
5053         (SFmode/SDmode splitters): Likewise.
5054         (movsf_hardfloat): Likewise.
5055         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
5056         (movsf_softfloat): Likewise.
5057         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
5059         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
5060         wx and wz constraints.
5062         * config/rs6000/constraints.md (wg constraint): New constraint to
5063         return FLOAT_REGS if -mmfpgpr (power6x) was used.
5065         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
5066         constraint.
5068         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5069         -mdebug=reg, print wg, wl, wx, and wz constraints.
5070         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5071         Initialize the reload functions for 64-bit binary/decimal floating
5072         point types.
5073         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5074         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5075         create the buffer on the stack to overcome not having a 32-bit
5076         load and store.
5077         (rs6000_emit_move): Likewise.
5078         (rs6000_secondary_memory_needed_rtx): Likewise.
5079         (rs6000_alloc_sdmode_stack_slot): Likewise.
5080         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5081         via xxlxor, just like DFmode 0.0.
5083         * config/rs6000/dfp.md (movdd): Delete, combine with binary
5084         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
5085         with other moves by using conditional constraits (wg).  Use LFIWZX
5086         and STFIWX for loading SDmode on power7.
5087         (movdd splitters): Likewise.
5088         (movdd_hardfloat32): Likewise.
5089         (movdd_softfloat32): Likewise.
5090         (movdd_hardfloat64_mfpgpr): Likewise.
5091         (movdd_hardfloat64): Likewise.
5092         (movdd_softfloat64): Likewise.
5094         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
5095         64-bit binary and decimal floating point moves.
5096         (FMOVE64X): Likewise.
5097         (movdf): Combine 64-bit binary and decimal floating point moves.
5098         Combine power6x (mfpgpr) moves with other moves by using
5099         conditional constraits (wg).
5100         (mov<mode> for DFmode/DDmode): Likewise.
5101         (DFmode/DDmode splitters): Likewise.
5102         (movdf_hardfloat32): Likewise.
5103         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
5104         (movdf_softfloat32): Likewise.
5105         (movdf_hardfloat64_mfpgpr): Likewise.
5106         (movdf_hardfloat64): Likewise.
5107         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
5108         (movdf_softfloat64): Likewise.
5109         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
5110         (reload_<mode>_load): Move to later in the file so they aren't in
5111         the middle of the floating point move insns.
5112         (reload_<mode>_store): Likewise.
5114         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
5115         constraint.
5117         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
5118         constraint if -mdebug=reg.
5119         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
5120         Enable using dd reload support if needed.
5122         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
5123         binary and decimal floating point moves in rs6000.md.
5124         (movtd_internal): Likewise.
5126         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
5127         decimal floating point moves.
5128         (movtf): Likewise.
5129         (movtf_internal): Likewise.
5130         (mov<mode>_internal, TDmode/TFmode): Likewise.
5131         (movtf_softfloat): Likewise.
5132         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
5134         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
5135         movdi_internal64, using wg constraint for move direct operations.
5136         (movdi_internal64): Likewise.
5138         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
5139         MODES_TIEABLE_P for selected modes.  Print the numerical value of
5140         the various virtual registers. Use GPR/FPR first/last values,
5141         instead of hard coding the register numbers.  Print which modes
5142         have reload functions registered.
5143         (rs6000_option_override_internal): If -mdebug=reg, trace the options
5144         settings before/after setting cpu, target and subtarget settings.
5145         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
5146         and for secondary reload failures in rs6000_secondary_reload_inner.
5147         (rs6000_secondary_reload_fail): Likewise.
5148         (rs6000_secondary_reload_inner): Likewise.
5150         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
5151         macros for first/last GPR and FPR registers.
5152         (LAST_GPR_REGNO): Likewise.
5153         (FIRST_FPR_REGNO): Likewise.
5154         (LAST_FPR_REGNO): Likewise.
5156         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
5157         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
5158         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
5159         (vcond<mode><mode>): Likewise.
5160         (vcondu<mode><mode>): Likewise.
5161         (vector_gtu<mode>): Likewise.
5162         (vector_gte<mode>): Likewise.
5163         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
5164         to prevent the compiler from converting DImode operations to TImode.
5165         (ior<mode>3): Likewise.
5166         (and<mode>3): Likewise.
5167         (one_cmpl<mode>2): Likewise.
5168         (nor<mode>3): Likewise.
5169         (andc<mode>3): Likewise.
5171         * config/rs6000/constraints.md (wt constraint): New constraint
5172         that returns VSX_REGS if TImode is allowed in VSX registers.
5174         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
5175         constant under VSX.
5177         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
5178         similar to TImode, but it is restricted to being in the GPRs.
5180         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
5181         TImode to occupy a single VSX register.
5183         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
5184         -mvsx-timode for power7/power8.
5185         (power7 cpu): Likewise.
5186         (power8 cpu): Likewise.
5188         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
5189         sure that TFmode/TDmode take up two registers if they are ever
5190         allowed in the upper VSX registers.
5191         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
5192         registers.
5193         (rs6000_init_hard_regno_mode_ok): Likewise.
5194         (rs6000_debug_reg_global): Add debugging for PTImode and wt
5195         constraint.  Print if LRA is turned on.
5196         (rs6000_option_override_internal): Give an error if -mvsx-timode
5197         and VSX is not enabled.
5198         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
5199         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
5200         to reg+offset addressing.  Use PTImode when checking offset
5201         addresses for validity.
5202         (reg_offset_addressing_ok_p): Likewise.
5203         (rs6000_legitimate_offset_address_p): Likewise.
5204         (rs6000_legitimize_address): Likewise.
5205         (rs6000_legitimize_reload_address): Likewise.
5206         (rs6000_legitimate_address_p): Likewise.
5207         (rs6000_eliminate_indexed_memrefs): Likewise.
5208         (rs6000_emit_move): Likewise.
5209         (rs6000_secondary_reload): Likewise.
5210         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
5211         reloads to fpr registers to continue to use reg+offset addressing,
5212         but 64-bit reloads to altivec registers need reg+reg addressing.
5213         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
5214         it.  Treat LO_SUM like a PLUS operation.
5215         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
5216         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
5217         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
5218         registers to share a register with a smaller sized type, since VSX
5219         puts scalars in the upper 64-bits.
5220         (print_operand): Add support for PTImode.
5221         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
5222         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
5223         registers, but don't have arithmetic support.
5224         (rs6000_memory_move_cost): Add test for VSX.
5225         (rs6000_opt_masks): Add -mvsx-timode.
5227         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
5228         for TImode.
5229         (VSs): Likewise.
5230         (VSr): Use wt constraint for TImode.
5231         (VSv): Drop TImode support.
5232         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
5233         (vsx_movti_64bit): Likewise.
5234         (vsx_movti_32bit): Likewise.
5235         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
5236         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
5237         one '?' on the appropriate output constraint.  Do not allow TImode
5238         logical operations on 32-bit systems.
5239         (vsx_ior<mode>3): Likewise.
5240         (vsx_xor<mode>3): Likewise.
5241         (vsx_one_cmpl<mode>2): Likewise.
5242         (vsx_nor<mode>3): Likewise.
5243         (vsx_andc<mode>3): Likewise.
5244         (vsx_concat_<mode>): Likewise.
5245         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
5247         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
5248         OPTION_MASK_VSX_TIMODE.
5249         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
5250         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
5252         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
5253         (TI2 iterator): New iterator for TImode, PTImode.
5254         (wd mode attribute): Add values for vector types.
5255         (movti_string): Replace TI move operations with operations for TImode
5256         and PTImode.  Add support for TImode being allowed in VSX registers.
5257         (mov<mode>_string, TImode/PTImode): Likewise.
5258         (movti_ppc64): Likewise.
5259         (mov<mode>_ppc64, TImode/PTImode): Likewise.
5260         (TI mode splitters): Likewise.
5262         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
5263         constraint.
5265 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
5267         PR tree-optimization/56355
5268         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
5269         Also handle integers with undefined overflow.
5271 2013-03-20  Catherine Moore  <clm@codesourcery.com>
5272             Maciej W. Rozycki  <macro@codesourcery.com>
5273             Tom de Vries  <tom@codesourcery.com>
5274             Nathan Sidwell <nathan@codesourcery.com>
5275             Iain Sandoe  <iain@codesourcery.com>
5276             Nathan Froyd  <froydnj@codesourcery.com>
5277             Chao-ying Fu <fu@mips.com>
5279         * doc/extend.texi: (micromips, nomicromips, nocompression):
5280         Document new function attributes.
5281         * doc/invoke.texi (minterlink-compressed, mmicromips,
5282         m14k, m14ke, m14kec): Document new options.
5283         (minterlink-mips16): Update documentation.
5284         * doc/md.texi (ZC, ZD): Document new constraints.
5285         * configure.ac (gcc_cv_as_micromips): Check if linker
5286         supports the .set micromips directive.
5287         * configure: Regenerate.
5288         * config.in: Regenerate.
5289         * config/mips/mips-tables.opt: Regenerate.
5290         * config/mips/micromips.md: New file.
5291         * constraints.md (ZC, ZD): New constraints.
5292         * config/mips/predicates.md (movep_src_register): New predicate.
5293         (movep_src_operand): New predicate.
5294         (non_volatile_mem_operand): New predicate.
5295         * config/mips/mips.md (multimem): New type.
5296         (length): Differentiate between 17-bit and 18-bit branch offsets.
5297         (MOVEP1, MOVEP2): New mode iterator.
5298         (mov_<load>l): Use ZC constraint.
5299         (mov_<load>r): Likewise.
5300         (mov_<store>l): Likewise.
5301         (mov_<store>r): Likewise.
5302         (*branch_equality<mode>_inverted): Add microMIPS support.
5303         (*branch_equality<mode>): Likewise.
5304         (*jump_absolute): Likewise.
5305         (indirect_jump_<mode>): Likewise.
5306         (tablejump_<mode>): Likewise.
5307         (<optab>_internal): Likewise.
5308         (sibcall_internal): Likewise.
5309         (sibcall_value_internal): Likewise.
5310         (prefetch): Use constraint ZD.
5311         * config/mips/mips.opt (minterlink-compressed): New option.
5312         (minterlink-mips16): Now an alias for minterlink-compressed.
5313         (mmicromips): New option.
5314         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5315         (compare_and_swap_12): Likewise.
5316         (sync_add<mode>): Likewise.
5317         (sync_<optab>_12): Likewise.
5318         (sync_old_<optab>_12): Likewise.
5319         (sync_new_<optab>_12): Likewise.
5320         (sync_nand_12): Likewise.
5321         (sync_old_nand_12): Likewise.
5322         (sync_new_nand_12): Likewise.
5323         (sync_sub<mode>): Likewise.
5324         (sync_old_add<mode>): Likewise.
5325         (sync_old_sub<mode>): Likewise.
5326         (sync_new_add<mode>): Likewise.
5327         (sync_new_sub<mode>): Likewise.
5328         (sync_<optab><mode>): Likewise.
5329         (sync_old_<optab><mode>): Likewise.
5330         (sync_new_<optab><mode>): Likewise.
5331         (sync_nand<mode>): Likewise.
5332         (sync_old_nand<mode>): Likewise.
5333         (sync_new_nand<mode>): Likewise.
5334         (sync_lock_test_and_set<mode>): Likewise.
5335         (test_and_set_12): Likewise.
5336         (atomic_compare_and_swap<mode>): Likewise.
5337         (atomic_exchange<mode>_llsc): Likewise.
5338         (atomic_fetch_add<mode>_llsc): Likewise.
5339         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5340         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5341         (umips_save_restore_pattern_p): Likewise.
5342         (umips_load_store_pair_p): Likewise.
5343         (umips_output_load_store_pair): Likewise.
5344         (umips_movep_target_p): Likewise.
5345         (umips_12bit_offset_address_p): Likewise.
5346         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5347         (mips_base_mips16): Rename this...
5348         (mips_base_compression_flags): ...to this. Update all uses.
5349         (mips_attribute_table): Add micromips, nomicromips and nocompression.
5350         (mips_mips16_decl_p): Delete.
5351         (mips_nomips16_decl_p): Delete.
5352         (mips_get_compress_on_flags): New function.
5353         (mips_get_compress_off_flags): New function.
5354         (mips_get_compress_mode): New function.
5355         (mips_get_compress_on_name): New function.
5356         (mips_get_compress_off_name): New function.
5357         (mips_insert_attributes): Support multiple compression types.
5358         (mips_merge_decl_attributes): Likewise.
5359         (umips_12bit_offset_address_p): New function.
5360         (mips_start_function_definition): Emit .set micromips directive.
5361         (mips_call_may_need_jalx_p): New function.
5362         (mips_function_ok_for_sibcall): Add microMIPS support.
5363         (mips_print_operand_punctuation): Support short delay slots and
5364         compact jumps.
5365         (umips_swm_mask, umips_swm_encoding): New.
5366         (umips_build_save_restore): New function.
5367         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5368         (was_mips16_p): Remove.
5369         (old_compression_mode): New.
5370         (mips_set_compression_mode): New function.
5371         (mips_set_current_function): Add microMIPS support.
5372         (mips_option_override): Likewise.
5373         (umips_save_restore_pattern_p): New function.
5374         (umips_output_save_restore): New function.
5375         (umips_load_store_pair_p_1): New function.
5376         (umips_load_store_pair_p): New function.
5377         (umips_output_load_store_pair_1): New function.
5378         (umips_output_load_store_pair): New function.
5379         (umips_movep_target_p) New function.
5380         (mips_prepare_pch_save): Add microMIPS support.
5381         * config/mips/mips.h (TARGET_COMPRESSION): New.
5382         (TARGET_CPU_CPP_BUILTINS): Update macro
5383         to use new compression flags and to support microMIPS.
5384         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5385         (MIPS_ARCH_FLOAT_SPEC): Likewise.
5386         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5387         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5388         (ASM_SPEC): Support mmicromips and mno-micromips.
5389         (M16STORE_REG_P): New macro.
5390         (MIPS_CALL): Support TARGET_MICROMIPS.
5391         (MICROMIPS_J): New macro.
5392         (mips_base_mips16): Rename this...
5393         (mips_base_compression_flags): ...to this.
5394         (UMIPS_12BIT_OFFSET_P): New macro.
5395         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5396         (MULTILIB_DIRNAMES): Likewise.
5397 2013-03-20  Richard Biener  <rguenther@suse.de>
5399         PR tree-optimization/56661
5400         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
5401         the result does not have to be distinct.
5403 2013-03-20  Richard Biener  <rguenther@suse.de>
5405         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
5406         remap_gimple_op_r.
5408 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5409             Steven Bosscher <steven@gcc.gnu.org>
5411         PR rtl-optimization/56605
5412         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
5414 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
5416         PR bootstrap/56656
5417         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
5418         that require movd instead of movq.
5420 2013-03-20  Richard Biener  <rguenther@suse.de>
5422         * tree-ssa-structalias.c (struct variable_info): Add pointer
5423         to the first field of an aggregate with sub-vars.  Make
5424         this and the pointer to the next subfield its ID.
5425         (vi_next): New function.
5426         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
5427         storedanything_id, integer_id): Increment by one.
5428         (new_var_info, get_call_vi, lookup_call_clobber_vi,
5429         get_call_clobber_vi): Adjust.
5430         (solution_set_expand): Simplify and speedup.
5431         (solution_set_add): Inline into ...
5432         (set_union_with_increment): ... this.  Adjust accordingly.
5433         (do_sd_constraint): Likewise.
5434         (do_ds_constraint): Likewise.
5435         (do_complex_constraint): Simplify.
5436         (build_pred_graph): Adjust.
5437         (solve_graph): Likewise.  Simplify and speedup.
5438         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
5439         get_constraint_for_component_ref, get_constraint_for_1,
5440         first_vi_for_offset, first_or_preceding_vi_for_offset,
5441         create_function_info_for, create_variable_info_for_1,
5442         create_variable_info_for, intra_create_variable_infos): Adjust.
5443         (init_base_vars): Push NULL for ID zero.
5444         (compute_points_to_sets): Adjust.
5446 2013-03-20  Richard Biener  <rguenther@suse.de>
5448         * cfgloop.c (verify_loop_structure): Streamline and avoid
5449         ICEing on corrupt loop tree.
5450         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5451         loop tree.
5453 2013-03-20  Richard Biener  <rguenther@suse.de>
5455         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5456         check whether an SSA update is needed.
5458 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
5460         * config/mips/constraints.md (T): Rename to...
5461         (Yf): ...this.
5462         (U): Rename to...
5463         (Yd): ...this.
5464         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5465         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5467 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
5469         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5470         (*subsi3_carryin_uxtw): Likewise.
5472 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
5474         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5475         (*rorsi3_insn_uxtw): Likewise.
5477 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
5479         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5480         (*extrsi5_insn_uxtw): Likewise.
5482 2013-03-19  Richard Biener  <rguenther@suse.de>
5484         PR tree-optimization/56273
5485         * passes.c (init_optimization_passes): Move second VRP after DOM.
5487 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
5489         * config/i386/i386.md (*movti_internal): Merge from
5490         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
5491         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
5492         nox64 isa attributes.
5494 2013-03-18  Richard Biener  <rguenther@suse.de>
5496         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5497         (unite): Likewise.
5498         (merge_node_constraints): Likewise.
5499         (build_succ_graph): Likewise.
5500         (valid_graph_edge): Inline into single caller.
5501         (unify_nodes): Likewise.  Use bitmap_set_bit return value
5502         and cache varinfo.
5503         (scc_visit): Fix formatting and variable use.
5504         (do_sd_constraint): Use gcc_checking_assert.
5505         (do_ds_constraint): Likewise.
5506         (do_complex_constraint): Likewise.
5507         (condense_visit): Likewise.  Cleanup.
5508         (dump_pred_graph): New function.
5509         (perform_var_substitution): Dump the pred-graph before
5510         variable substitution.
5511         (find_equivalent_node): Use gcc_checking_assert.
5512         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
5514 2013-03-18  Richard Biener  <rguenther@suse.de>
5516         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5517         Remove cond_expr_stmt_list argument and do not gimplify the
5518         built expression.
5519         (vect_loop_versioning): Adjust.
5520         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5521         Cleanup to use less temporaries.
5522         (vect_create_data_ref_ptr): Cleanup.
5524 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
5526         PR tree-optimization/56635
5527         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
5528         require types_compatible_p types.
5530 2013-03-18  Nick Clifton  <nickc@redhat.com>
5532         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
5533         spurious backslash.
5535         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
5536         Add missing line to comment describing function.
5538 2013-03-18  Richard Biener  <rguenther@suse.de>
5540         PR tree-optimization/56210
5541         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5542         Handle string / character search functions.
5543         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5545 2013-03-18  Richard Biener  <rguenther@suse.de>
5547         PR middle-end/56483
5548         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
5549         and implement properly.
5550         * gimple.h (gimple_cond_single_var_p): Remove.
5552 2013-03-18  Richard Biener  <rguenther@suse.de>
5554         * tree-data-ref.h (find_data_references_in_loop): Declare.
5555         * tree-data-ref.c (get_references_in_stmt): Use a stack
5556         vector pre-allocated in the callers.
5557         (find_data_references_in_stmt): Adjust.
5558         (graphite_find_data_references_in_stmt): Likewise.
5559         (create_rdg_vertices): Likewise.
5560         (find_data_references_in_loop): Export.
5561         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5562         Compute dependences here...
5563         (vect_analyze_data_refs): ...not here.  When we encounter
5564         a non-vectorizable data reference in basic-block vectorization
5565         truncate the data reference vector.  Do not bother to
5566         fixup data-dependence information for gather loads.
5567         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
5568         of data references, as reported.
5570 2013-03-18  Richard Biener  <rguenther@suse.de>
5572         PR tree-optimization/3713
5573         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
5574         has_constants and expr.
5575         (stmt_has_constants): Properly valueize SSA names when deciding
5576         whether the stmt has constants.
5578 2013-03-18  Richard Biener  <rguenther@suse.de>
5580         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
5581         whole function when there is nothing to do.
5582         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
5583         * tree-vectorizer.c (vectorize_loops): Update virtual and
5584         loop-closed SSA once.
5585         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
5587 2013-03-18  Richard Biener  <rguenther@suse.de>
5589         PR middle-end/56113
5590         * domwalk.c (bb_postorder): New global static.
5591         (cmp_bb_postorder): New function.
5592         (walk_dominator_tree): Replace scheme imposing an order for
5593         visiting dominator sons by one sorting them at the time they
5594         are pushed on the stack.
5596 2013-03-18  Richard Biener  <rguenther@suse.de>
5598         PR tree-optimization/39326
5599         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
5600         (struct mem_ref): Replace mem member with ao_ref typed member.
5601         (MEM_ANALYZABLE): Adjust.
5602         (memref_eq): Likewise.
5603         (mem_ref_alloc): Likewise.
5604         (gather_mem_refs_stmt): Likewise.
5605         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
5606         (execute_sm_if_changed_flag_set): Adjust.
5607         (execute_sm): Likewise.
5608         (ref_always_accessed_p): Likewise.
5609         (refs_independent_p): Likewise.
5610         (can_sm_ref_p): Likewise.
5612 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
5614         PR c/56566
5615         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
5616         return 1 even for !unsignedp.
5618 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5620         * config/i386/i386.md (isa): Add x64 and nox64.
5621         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
5622         (*pushtf): Enable *roF alternative for x64 isa only.
5623         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
5624         mode attribute of integer alternatives to DImode for TARGET_64BIT.
5625         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
5626         (*movtf_internal): Merge from *movtf_internal_rex64 and
5627         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
5628         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
5629         nox64 isa attributes.
5630         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
5631         nox64 isa attributes.
5632         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
5634 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5636         * config/alpha/alpha.c (TARGET_LRA_P): New define.
5638 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
5640         PR target/56640
5641         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
5642         class names.  Remove trailing comma after "ALL_REGS".
5644 2013-03-16  Jan Hubicka  <jh@suse.cz>
5646         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
5647         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
5648         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
5649         of cgraph_get_create_node.
5650         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5652 2013-03-16  Jason Merrill  <jason@redhat.com>
5654         PR debug/49090
5655         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
5656         with DW_AT_default_value.
5658 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
5660         * BASE-VER: Set to 4.9.0.
5662 2013-03-14  Andi Kleen  <ak@linux.intel.com>
5664         PR target/56619
5665         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
5666         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
5667         Document _x* TSX intrinsics.
5669 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
5670             David Holsgrove  <david.holsgrove@xilinx.com>
5672         * configure.ac: Add MicroBlaze TLS support detection.
5673         * configure: Regenerate.
5674         * config/microblaze/microblaze-protos.h
5675         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
5676         symbol_mentioned_p, label_mentioned_p): Add prototypes.
5677         * config/microblaze/microblaze.c (microblaze_address_type): Add
5678         ADDRESS_TLS and tls_reloc address types.
5679         (microblaze_address_info): Add tls_reloc.
5680         (TARGET_HAVE_TLS): Define.
5681         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
5682          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
5683          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
5684         load_tls_operand,  microblaze_call_tls_get_addr,
5685         microblaze_legitimize_tls_address): New functions.
5686         (microblaze_classify_unspec): Handle UNSPEC_TLS.
5687         (get_base_reg): Use microblaze_tls_symbol_p.
5688         (microblaze_classify_address): Handle TLS.
5689         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
5690         label_mentioned_p and microblaze_tls_referenced_p.
5691         (microblaze_legitimize_address): Handle TLS.
5692         (microblaze_address_insns): Handle ADDRESS_TLS.
5693         (pic_address_needs_scratch): Handle TLS.
5694         (print_operand_address): Handle TLS.
5695         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
5696         (microblaze_expand_move): Handle TLS.
5697         (microblaze_legitimate_constant_p): Check
5698         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
5699         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5700         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
5701         (PIC_OFFSET_TABLE_REGNUM): Set.
5702         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
5703         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
5704         (addsi3, movsi_internal2, movdf_internal): Update constraints
5705         * config/microblaze/predicates.md (arith_plus_operand): Define
5706         (move_operand): Redefine as move_src_operand,
5707         check microblaze_tls_referenced_p.
5709 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
5711         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
5712         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
5714 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
5716         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
5717         CC mode for AND.
5719 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
5721         PR tree-optimization/53265
5722         * common.opt (Waggressive-loop-optimizations): New option.
5723         * tree-ssa-loop-niter.c: Include tree-pass.h.
5724         (do_warn_aggressive_loop_optimizations): New function.
5725         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
5726         if number_of_latch_executions returned constant.
5727         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
5728         early.  If number_of_latch_executions returned constant, set
5729         nb_iterations_upper_bound back to it.
5730         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
5731         field.
5732         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
5733         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
5735         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
5736         (MULTILIB_OSDIRNAMES): Set.
5737         * genmultilib: If defaultosdirname doesn't start with :: , set
5738         defaultosdirname2 instead, clear it and emit two . multilib_raw
5739         entries instead of just one.
5741 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
5743         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5744         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
5745         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5746         (SUBTARGET_OVERRIDE_OPTIONS): New.
5748 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
5750         PR target/49880
5751         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
5752         (musermode): Convert to Var(TARGET_USERMODE).
5753         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
5754         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
5755         * config/sh/sh.c (sh_option_override): Use
5756         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
5757         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
5758         condition.
5759         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
5760         TARGET_SH4.
5761         (udivsi3_i4_single, divsi3_i4_single): Use
5762         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
5764 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
5766         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
5767         default setting.
5769 2013-03-13  Richard Biener  <rguenther@suse.de>
5771         PR tree-optimization/56608
5772         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
5773         calls when vectorizing basic-blocks.
5775 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
5777         PR plugins/45078
5778         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
5779         tm_file.
5781 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
5783         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
5785 2013-03-11  Jan Hubicka  <jh@suse.cz>
5787         PR lto/56557
5788         * lto-streamer-out.c (output_symbol_p): Skip references from
5789         constructors of external variables.
5791 2013-03-11  Jan Hubicka  <jh@suse.cz>
5793         PR middle-end/56571
5794         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
5795         from pseudos.
5796         * emit-rtl.c (verify_rtx_sharing): Likewise.
5797         (copy_insn_1): Likewise.
5798         * rtl.c (copy_rtx): Likewise.
5800 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
5802         PR target/56591
5803         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
5804         output_operand_lossage message.
5806 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
5808         PR target/56470
5809         * arm.c (shift_op): Validate RTL pattern on the fly.
5810         (arm_print_operand, case 'S'): Don't use shift_operator to validate
5811         the RTL.
5813 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5815         PR target/56347
5816         * config/pa/pa.md (call_value): Check for calls to powf and direct to
5817         new call patterns that clobber %fr12.
5818         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
5819         split and postreload patterns.
5820         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
5821         registers %fr12 and %fr12R as call used.
5823 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
5825         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
5826         (canon_address, record_store, replace_read, check_mem_read_rtx,
5827         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
5828         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
5829         rest_of_handle_dse): Likewise.
5831 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
5833         PR middle-end/56524
5834         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
5835         Add base_optabs.
5836         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
5837         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
5838         (save_optabs_if_changed): Replace with...
5839         (init_tree_optimization_optabs): ...this.
5840         * optabs.c (save_optabs_if_changed): Rename to...
5841         (init_tree_optimization_optabs): ...this.  Take the optimization node
5842         as argument.  Do nothing if the base optabs are already correct.
5843         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
5844         to recompute optabs.
5845         * function.h (function): Remove optabs field.
5846         * function.c (invoke_set_current_function_hook): Call
5847         init_tree_optimization_optabs.  Use the result to initialize
5848         this_fn_optabs.
5850 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
5852         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
5853         if GTMA_HAS_NO_INSTRUMENTATION.
5854         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
5855         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
5856         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
5857         * gimple-pretty-print.c (dump_gimple_transaction): Handle
5858         GTMA_HAS_NO_INSTRUMENTATION.
5860 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
5862         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
5863         libasan_preinit.o.
5865 2013-03-08  Marek Polacek  <polacek@redhat.com>
5866             Jakub Jelinek  <jakub@redhat.com>
5868         PR tree-optimization/56478
5869         * predict.c (is_comparison_with_loop_invariant_p): Change the
5870         type of loop_step to tree.
5871         (predict_loops): Adjust.
5872         (predict_iv_comparison): Perform the computations on double_ints.
5874 2013-03-08  Richard Biener  <rguenther@suse.de>
5876         PR tree-optimization/56570
5877         * tree-cfg.c (verify_expr_location_1): Verify locations for
5878         DECL_DEBUG_EXPR.
5879         * tree-sra.c (create_access_replacement): Strip locations
5880         from DECL_DEBUG_EXPRs.
5882 2013-03-08  Richard Biener  <rguenther@suse.de>
5884         * tree-inline.c (expand_call_inline): Do not associate
5885         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
5886         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
5888 2013-03-08  Richard Biener  <rguenther@suse.de>
5890         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
5891         or block changes with -Og.  Fix for location / block encoding
5892         changes and PHI arguments with locations.
5894 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
5896         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
5897         for all counters.
5898         (struct output_info): Likewise.
5899         (register_overhead): Remove bad gcc_assert.
5900         (bitmap_find_bit): If there is only a single bitmap element, do not
5901         count a miss as a search.
5902         (print_statistics): Update for counter type changes.
5903         (dump_bitmap_statistics): Likewise.  Print headers such that they
5904         are properly lined up with the printed counters.
5906 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
5908         PR tree-optimization/56559
5909         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
5910         check that it has only a single use.
5912 2013-03-07  Richard Biener  <rguenther@suse.de>
5914         * doc/invoke.texi (fwhole-program): Discourage use in combination
5915         with -flto.
5917 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
5919         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
5921         PR tree-optimization/56539
5922         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
5923         instead of GSI_CONTINUE_LINKING as last argument to
5924         force_gimple_operand_gsi.  Adjust function comment.
5926         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
5927         aarch64-cores.def.
5929         PR middle-end/56548
5930         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
5931         promoted mode, convert the result back to the original mode.
5933 2013-03-06  Richard Biener  <rguenther@suse.de>
5935         PR middle-end/56294
5936         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
5937         (insert_updated_phi_nodes_compare_uids): New function.
5938         (update_ssa): Sort symbols_to_rename after UID before
5939         traversing it to insert PHI nodes.
5941 2013-03-06  Richard Biener  <rguenther@suse.de>
5943         PR middle-end/50494
5944         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
5945         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
5947         Revert
5948         2013-02-13  Richard Biener  <rguenther@suse.de>
5950         PR lto/50494
5951         * varasm.c (output_constant_def_1): Get the decl representing
5952         the constant as argument.
5953         (output_constant_def): Wrap output_constant_def_1.
5954         (make_decl_rtl): Use output_constant_def_1 with the decl
5955         representing the constant.
5956         (build_constant_desc): Optionally re-use a decl already
5957         representing the constant.
5958         (tree_output_constant_def): Adjust.
5960 2013-03-06  Joey Ye  <joey.ye@arm.com>
5962         PR lto/50293
5963         * gcc.c (convert_white_space): New function.
5964         (main): Handles white space in function name.
5966 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
5968         PR target/56529
5969         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
5970         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
5971         to SH_DIV_CALL_TABLE for TARGET_SH2.
5972         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
5973         list.
5974         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
5975         call-table options.
5977 2013-03-05  Sterling Augustine  <saugustine@google.com>
5978             Cary Coutant  <ccoutant@google.com>
5980         PR debug/55364
5981         * dwarf2out.c (resolve_addr): Don't call
5982         remove_loc_list_addr_table_entries a second time for the same
5983         expression.
5985 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
5987         PR debug/56510
5988         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
5989         (avoid_complex_debug_insns): New function.
5990         (expand_debug_locations): Call it.
5992         PR rtl-optimization/56484
5993         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
5994         lifetimes of hard registers on small register class machines.
5996 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
5998         * config/microblaze/microblaze-protos.h: Rename
5999         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6000         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
6001         fast_interrupt.
6002         (microblaze_fast_interrupt_function_p): New function.
6003         (microblaze_is_interrupt_handler): Rename to
6004         microblaze_is_interrupt_variant and add fast_interrupt check.
6005         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
6006         (save_restore_insns): Likewise.
6007         (compute_frame_size): Likewise.
6008         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
6009         (microblaze_globalize_label): Likewise.
6010         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
6011         * config/microblaze/microblaze.md: Use wrapper
6012         microblaze_is_interrupt_variant.
6014 2013-03-05  Kai Tietz  <ktietz@redhat.com>
6016         * sdbout.c (sdbout_one_type): Switch to current function's section
6017         supporting cold/hot.
6019 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
6021         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
6022         -mxl-reorder.
6024 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6026         PR middle-end/56461
6027         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
6028         if VALGRIND_GET_VBITS is defined, temporarily make object
6029         memory all defined, and restore previous valgrind addressability
6030         and definability afterwards.  Free this_object at the end.
6032         PR middle-end/56461
6033         * lra.c (lra): Call lra_clear_live_ranges if live_p,
6034         right before calling lra_create_live_ranges, also call it
6035         when clearing live_p.  Only call lra_clear_live_ranges
6036         at the end if live_p.
6038         PR middle-end/56461
6039         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
6041 2013-03-05  Richard Biener  <rguenther@suse.de>
6043         PR tree-optimization/56521
6044         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
6045         value-id.
6047 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
6049         PR c++/55135
6050         * except.h (remove_unreachable_eh_regions): New prototype.
6051         * except.c (remove_eh_handler_splicer): New function, split out
6052         of remove_eh_handler.
6053         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
6054         warning about running it on many EH regions one at a time.
6055         (remove_unreachable_eh_regions_worker): New function, walk the
6056         EH tree in depth-first order and remove non-marked regions.
6057         (remove_unreachable_eh_regions): New function.
6058         * tree-eh.c (mark_reachable_handlers): New function, split out
6059         from remove_unreachable_handlers.
6060         (remove_unreachable_handlers): Use mark_reachable_handlers and
6061         remove_unreachable_eh_regions.
6062         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
6063         and remove_unreachable_eh_regions.
6065 2013-03-05  Richard Biener  <rguenther@suse.de>
6067         PR middle-end/56525
6068         * loop-init.c (fix_loop_structure): Remove loops in two stages,
6069         not freeing them until the end.
6071 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6073         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
6075 2013-03-05  Richard Biener  <rguenther@suse.de>
6077         PR tree-optimization/56270
6078         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
6079         of loads after scheduling an SLP instance.
6081 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6083         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
6084         tic6x.exp.
6085         (check_gcc_parallelize): Run guality.exp as a separate job from
6086         vect.exp with unsorted.exp and $(dg_target_exps) separately from
6087         struct-layout-1.exp with stackalign.exp.
6089         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
6091         PR middle-end/56461
6092         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
6093         load_index sbitmap even if some bit in it isn't set.
6095         PR middle-end/56461
6096         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
6097         (discover_iteration_bound_by_body_walk): Change queues to
6098         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
6099         spelling in comment.  Call safe_push on queues[bound_index] directly.
6100         Release queues[queue_index] in every iteration unconditionally.
6101         Release bounds vector.
6103         PR middle-end/56461
6104         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
6105         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
6106         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
6107         inner_phis vector.
6109 2013-03-05  Richard Biener  <rguenther@suse.de>
6111         PR lto/56515
6112         * tree-inline.c (remap_blocks_to_null): New function.
6113         (expand_call_inline): When expanding a call stmt without
6114         an associated block inline remap all callee blocks to NULL.
6116 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
6118         PR rtl-optimization/56494
6119         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
6120         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
6121         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
6123         PR middle-end/56461
6124         * sel-sched-ir.c (free_sched_pools): Release
6125         succs_info_pool.stack[succs_info_pool.max_top] vectors too
6126         if succs_info_pool.max_top isn't -1.
6128         PR bootstrap/56509
6129         * opts.c (opts_obstack, opts_concat): Moved to...
6130         * opts-common.c (opts_obstack, opts_concat): ... here.
6132 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6134         PR middle-end/56461
6135         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
6137 2013-03-04  Martin Jambor  <mjambor@suse.cz>
6139         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
6140         all appropriate places.
6142 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6144         PR tree-optimization/56424
6145         * ipa-split.c (split_function): Do not set the RSO flag if result is
6146         not by reference and its type is a register type.
6148 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
6150         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
6151         (microblaze_legitimate_pic_operand): Likewise
6152         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
6153         new function microblaze_legitimate_pic_operand
6154         * config/microblaze/microblaze-protos.h
6155         (microblaze_legitimate_pic_operand): Declare.
6157 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6159         * config/microblaze/predicates.md (call_insn_simple_operand):
6160         New predicate for supported rtx code types.
6161         * config/microblaze/microblaze.md (call_internal1): Use
6162         call_insn_simple_operand predicate.
6164 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
6166         PR middle-end/56461
6167         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
6168         partitions.ordered_remove.
6170         PR middle-end/56461
6171         * tree-vect-stmts.c (vectorizable_conversion): Don't call
6172         vec_oprnds0.create (1) for modifier == NONE.
6174         PR middle-end/56461
6175         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
6176         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
6177         vec_oprnds1 right before pushing anything to it for
6178         scalar_shift_arg.
6180         PR middle-end/56461
6181         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
6182         set nbbs to 0 instead of having separate code path.
6183         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
6184         instead of false as last argument if returning NULL.
6186 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
6188         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
6189         the attribute is now called "target" instead of "option".
6190         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
6191         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
6192         attribute/pragma name for TARGET_OPTION_VALID_P and
6193         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
6194         * doc/tm.texi: Regenerated.
6196 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
6198         * config/microblaze/microblaze.c:
6199         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
6200         * config/microblaze/microblaze.h: Add -mxl-reorder to
6201         DRIVER_SELF_SPECS.
6202         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
6203         instructions emitted if TARGET_REORDER.
6204         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
6205         or 0 for -m/-mno case, but initialises as 2 to detect default use case
6206         separately.
6208 2013-03-01  Xinliang David Li  <davidxl@google.com>
6210         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
6211         walk length.
6213 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
6215         PR middle-end/56461
6216         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
6217         vector even when returning true.  Fix up function comment formatting.
6219         PR middle-end/56461
6220         * ira-build.c (ira_loop_nodes_count): New variable.
6221         (create_loop_tree_nodes): Initialize it.
6222         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
6224         PR middle-end/56461
6225         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
6226         method on dr_chain and result_chain.
6227         * tree-vect-stmts.c (vectorizable_store): Only call
6228         result_chain.create if j == 0.
6230         PR middle-end/56461
6231         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
6232         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
6233         before overwriting it.
6235 2013-03-01  Tobias Burnus  <burnus@net-b.de>
6237         * doc/extended.texi (C Extensions): Change order in @menu
6238         to match @node.
6239         (Other MIPS Built-in Functions): Move last MIPS entry before
6240         "picoChip Built-in Functions".
6241         (SH Built-in Functions): Move after RX Built-in Functions.
6242         * doc/gcc.texi (Introduction): Change order in @menu
6243         to match @node.
6244         * doc/md.texi (Constraints): Ditto.
6245         * gty.texi (Type Information): Ditto.
6246         (User-provided marking routines for template types): Make
6247         subsection.
6248         * doc/invoke.texi (AArch64 Options): Move before
6249         "Adapteva Epiphany Options".
6251 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
6252             Jakub Jelinek  <jakub@redhat.com>
6254         PR sanitizer/56454
6255         * asan.c (gate_asan): Lookup no_sanitize_address instead of
6256         no_address_safety_analysis attribute.
6257         * doc/extend.texi (no_address_safety_attribute): Rename to
6258         no_sanitize_address attribute, mention no_address_safety_analysis
6259         attribute as deprecated alias.
6261 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
6263         PR middle-end/56461
6264         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
6265         type to vec<vec<tree> > *.
6266         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
6267         to be vec<tree> instead of vec<tree> *, set vec_defs
6268         to vNULL and call vec_defs.create (number_of_vects), adjust other
6269         uses of vec_defs.
6270         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
6271         vectorizable_condition): Adjust vect_get_slp_defs callers.
6273 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
6275         * config/aarch64/aarch64.c
6276         (aarch64_float_const_representable): Remove unused variable.
6278 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
6280         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
6282 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
6284         * config/aarch64/aarch64-builtins.c
6285         (aarch64_init_simd_builtins): Make static.
6287 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
6289         * config/aarch64/aarch64.c
6290         (aarch64_simd_make_constant): Make static.
6292 2013-02-28  Martin Jambor  <mjambor@suse.cz>
6294         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
6295         with no initialization to the RHS of debug statements.
6297 2013-02-28  Martin Jambor  <mjambor@suse.cz>
6299         PR tree-optimization/56294
6300         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
6301         Adjust dumping.
6302         (get_access_replacement): Do not call create_access_replacement.
6303         Assert a replacement exists.
6304         (get_repl_default_def_ssa_name): Create the replacement declaration
6305         itself.
6307 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6309         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
6310         final_end_function.
6312 2013-02-28  Marek Polacek  <polacek@redhat.com>
6314         PR rtl-optimization/56466
6315         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
6316         if we're changing a loop.
6317         (peel_loops_completely): Likewise.
6319 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
6321         PR c++/55813
6322         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
6324 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
6326         PR target/56445
6327         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
6328         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
6329         INTX_FTYPE_FX, FX_FTYPE_INTX.
6330         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
6332 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
6334         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
6335         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
6336         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
6337         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
6338         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
6339         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
6340         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
6341         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
6342         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
6343         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
6344         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
6345         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
6346         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
6347         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
6348         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
6349         (avrxmega6): Increase max flash segments from 5 to 6.
6350         * config/avr/t-multilib: Regenerate.
6351         * config/avr/avr-tables.opt: Regenerate.
6352         * doc/avr-mmcu.texi: Regenerate.
6354 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
6356         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
6357         (avr_device_to_arch): Rename to avr_device_to_ld.
6358         (avr_device_to_as): New prototype.
6359         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
6360         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
6361         * config/avr/driver-avr.c (avr_device_to_as): New.
6362         (avr_device_to_arch): Rename to avr_device_to_ld.
6364 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
6366         PR middle-end/56461
6367         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
6368         method on dr_chain and result_chain.
6370         PR middle-end/56461
6371         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
6372         pointer_set_destroy on not_executed_last_iteration.
6374         PR middle-end/56461
6375         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
6377         PR middle-end/56461
6378         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
6379         FOR_EACH_DEFINED_FUNCTION when freeing state.
6381         PR middle-end/56461
6382         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
6383         pool_free.
6384         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
6385         overwriting it.
6387         PR middle-end/56461
6388         * ipa-cp.c (decide_whether_version_node): Call vec_free on
6389         known_aggs[i].items and release known_aggs vector.
6391         PR middle-end/56461
6392         * ipa-reference.c (propagate): Free node_info even for alias nodes.
6394 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6396         * config/microblaze/microblaze.c (microblaze_emit_compare):
6397         Use xor for EQ/NE comparisions.
6398         * config/microblaze/microblaze.md (cstoresf4): Add constraints
6399         (cbranchsf4): Adjust operator to comparison_operator.
6401 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
6403         PR middle-end/56461
6404         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
6405         vector.
6406         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
6407         vec_safe_push, always update *slot.
6408         (redirect_edge_var_map_clear): Use vec_free.
6409         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
6410         (free_var_map_entry): Use vec_free.
6411         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
6412         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
6414 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
6416         PR middle-end/45472
6417         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
6418         when the may_trap_p bit of the exprs being merged differs.
6419         Reorder tests for speculativeness in the logical and operator.
6421 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
6423         * incpath.c (add_standard_paths): Use reconcat instead of concat
6424         where appropriate and avoid leaking memory.
6426         * opts.h: Include obstack.h.
6427         (opts_concat): New prototype.
6428         (opts_obstack): New declaration.
6429         * opts.c (opts_concat): New function.
6430         (opts_obstack): New variable.
6431         (init_options_struct): Call gcc_init_obstack on opts_obstack.
6432         (finish_options): Use opts_concat instead of concat
6433         and XOBNEWVEC instead of XNEWVEC.
6434         * opts-common.c (generate_canonical_option, decode_cmdline_option,
6435         generate_option): Likewise.
6436         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
6437         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
6439         PR target/56455
6440         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
6441         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
6443 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
6445         PR middle-end/56461
6446         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
6448 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
6450         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6451         (arm_block_move_unaligned_straight): Likewise.
6452         (arm_adjust_block_mem): Likewise.
6454 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
6456         PR target/48901
6457         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6458         temp, cond and label.
6459         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6461         PR target/52500
6462         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6463         * config/c6x/c6x.h (dbx_register_map): Update declaration.
6465         PR target/52501
6466         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6467         of prologue/epilogue functions.
6469         PR target/52550
6470         * config/tilegx/tilegx.c (tilegx_expand_prologue):
6471         Remove unused variable cfa_offset.
6472         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6474         PR target/54639
6475         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6476         type promotion to unsigned.
6478         PR target/54640
6479         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6480         for HOST_WIDE_INT of 32 bit / same size as int.
6481         (arm_block_move_unaligned_straight): Likewise.
6482         (arm_adjust_block_mem): Likewise.
6484         PR target/54662
6485         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6486         ALL_CFLAGS.
6488 2013-02-26  Marek Polacek  <polacek@redhat.com>
6490         PR tree-optimization/56426
6491         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
6493 2013-02-26  Richard Biener  <rguenther@suse.de>
6495         PR target/56444
6496         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6497         unused variable loops.
6499 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
6501         PR tree-optimization/56448
6502         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
6503         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
6504         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
6505         later operands of the references, or even first operand for
6506         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
6508         PR tree-optimization/56443
6509         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
6510         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
6511         to type_for_mode langhook.
6513 2013-02-25  Matt Turner  <mattst88@gmail.com>
6515         * doc/invoke.texi: Document r4700.
6517 2013-02-25  Richard Biener  <rguenther@suse.de>
6519         PR tree-optimization/56175
6520         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
6521         split out from ...
6522         (simplify_bitwise_binary): ... here.  Also guard the conversion
6523         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
6525 2013-02-25  Catherine Moore  <clm@codesourcery.com>
6527         Revert:
6528         2013-02-24  Catherine Moore  <clm@codesourcery.com>
6529             Maciej W. Rozycki  <macro@codesourcery.com>
6530             Tom de Vries  <tom@codesourcery.com>
6531             Nathan Sidwell  <nathan@codesourcery.com>
6532             Iain Sandoe  <iain@codesourcery.com>
6533             Nathan Froyd  <froydnj@codesourcery.com>
6534             Chao-ying Fu  <fu@mips.com>
6536         * doc/extend.texi: (micromips, nomicromips, nocompression):
6537         Document new function attributes.
6538         * doc/invoke.texi (minterlink-compressed, mmicromips,
6539         m14k, m14ke, m14kec): Document new options.
6540         (minterlink-mips16): Update documentation.
6541         * doc/md.texi (ZC, ZD): Document new constraints.
6542         * configure.ac (gcc_cv_as_micromips): Check if linker
6543         supports the .set micromips directive.
6544         * configure: Regenerate.
6545         * config.in: Regenerate.
6546         * config/mips/mips-tables.opt: Regenerate.
6547         * config/mips/micromips.md: New file.
6548         * constraints.md (ZC, AD): New constraints.
6549         * config/mips/predicates.md (movep_src_register): New predicate.
6550         (movep_src_operand): New predicate.
6551         (non_volatile_mem_operand): New predicate.
6552         * config/mips/mips.md (multimem): New type.
6553         (length): Differentiate between 17-bit and 18-bit branch offsets.
6554         (MOVEP1, MOVEP2): New mode iterator.
6555         (mov_<load>l): Use ZC constraint.
6556         (mov_<load>r): Likewise.
6557         (mov_<store>l): Likewise.
6558         (mov_<store>r): Likewise.
6559         (*branch_equality<mode>_inverted): Add microMIPS support.
6560         (*branch_equality<mode>): Likewise.
6561         (*jump_absolute): Likewise.
6562         (indirect_jump_<mode>): Likewise.
6563         (tablejump_<mode>): Likewise.
6564         (<optab>_internal): Likewise.
6565         (sibcall_internal): Likewise.
6566         (sibcall_value_internal): Likewise.
6567         (prefetch): Use constraint ZD.
6568         * config/mips/mips.opt (minterlink-compressed): New option.
6569         (minterlink-mips16): Now an alias for minterlink-compressed.
6570         (mmicromips): New option.
6571         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6572         (compare_and_swap_12): Likewise.
6573         (sync_add<mode>): Likewise.
6574         (sync_<optab>_12): Likewise.
6575         (sync_old_<optab>_12): Likewise.
6576         (sync_new_<optab>_12): Likewise.
6577         (sync_nand_12): Likewise.
6578         (sync_old_nand_12): Likewise.
6579         (sync_new_nand_12): Likewise.
6580         (sync_sub<mode>): Likewise.
6581         (sync_old_add<mode>): Likewise.
6582         (sync_old_sub<mode>): Likewise.
6583         (sync_new_add<mode>): Likewise.
6584         (sync_new_sub<mode>): Likewise.
6585         (sync_<optab><mode>): Likewise.
6586         (sync_old_<optab><mode>): Likewise.
6587         (sync_new_<optab><mode>): Likewise.
6588         (sync_nand<mode>): Likewise.
6589         (sync_old_nand<mode>): Likewise.
6590         (sync_new_nand<mode>): Likewise.
6591         (sync_lock_test_and_set<mode>): Likewise.
6592         (test_and_set_12): Likewise.
6593         (atomic_compare_and_swap<mode>): Likewise.
6594         (atomic_exchange<mode>_llsc): Likewise.
6595         (atomic_fetch_add<mode>_llsc): Likewise.
6596         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6597         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6598         (umips_save_restore_pattern_p): Likewise.
6599         (umips_load_store_pair_p): Likewise.
6600         (umips_output_load_store_pair): Likewise.
6601         (umips_movep_target_p): Likewise.
6602         (umips_12bit_offset_address_p): Likewise.
6603         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6604         (mips_base_mips16): Rename this...
6605         (mips_base_compression_flags): ...to this. Update all uses.
6606         (mips_attribute_table): Add micromips, nomicromips and nocompression.
6607         (mips_mips16_decl_p): Delete.
6608         (mips_nomips16_decl_p): Delete.
6609         (mips_get_compress_on_flags): New function.
6610         (mips_get_compress_off_flags): New function.
6611         (mips_get_compress_mode): New function.
6612         (mips_get_compress_on_name): New function.
6613         (mips_get_compress_off_name): New function.
6614         (mips_insert_attributes): Support multiple compression types.
6615         (mips_merge_decl_attributes): Likewise.
6616         (umips_12bit_offset_address_p): New function.
6617         (mips_start_function_definition): Emit .set micromips directive.
6618         (mips_call_may_need_jalx_p): New function.
6619         (mips_function_ok_for_sibcall): Add microMIPS support.
6620         (mips_print_operand_punctuation): Support short delay slots and
6621         compact jumps.
6622         (umips_swm_mask, umips_swm_encoding): New.
6623         (umips_build_save_restore): New function.
6624         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6625         (was_mips16_p): Remove.
6626         (old_compression_mode): New.
6627         (mips_set_compression_mode): New function.
6628         (mips_set_current_function): Add microMIPS support.
6629         (mips_option_override): Likewise.
6630         (umips_save_restore_pattern_p): New function.
6631         (umips_output_save_restore): New function.
6632         (umips_load_store_pair_p_1): New function.
6633         (umips_load_store_pair_p): New function.
6634         (umips_output_load_store_pair_1): New function.
6635         (umips_output_load_store_pair): New function.
6636         (umips_movep_target_p) New function.
6637         (mips_prepare_pch_save): Add microMIPS support.
6638         * config/mips/mips.h (TARGET_COMPRESSION): New.
6639         (TARGET_CPU_CPP_BUILTINS): Update macro
6640         to use new compression flags and to support microMIPS.
6641         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6642         (MIPS_ARCH_FLOAT_SPEC): Likewise.
6643         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6644         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6645         (ASM_SPEC): Support mmicromips and mno-micromips.
6646         (M16STORE_REG_P): New macro.
6647         (MIPS_CALL): Support TARGET_MICROMIPS.
6648         (MICROMIPS_J): New macro.
6649         (mips_base_mips16): Rename this...
6650         (mips_base_compression_flags): ...to this.
6651         (UMIPS_12BIT_OFFSET_P): New macro.
6652         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6653         (MULTILIB_DIRNAMES): Likewise.
6655 2013-02-25  Tom de Vries  <tom@codesourcery.com>
6657         PR rtl-optimization/56131
6658         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
6659         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
6660         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
6662 2013-02-25  Tobias Burnus  <burnus@net-b.de>
6664         * doc/invoke.texi (-fsanitize=): Move from optimization
6665         to debugging options.
6667 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
6669         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
6671 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
6672             Alexander Monakov  <amonakov@ispras.ru>
6674         PR middle-end/56077
6675         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
6676         flush pending lists also on non-jumps.  Adjust comment.
6678 2013-02-24  Catherine Moore  <clm@codesourcery.com>
6679             Maciej W. Rozycki  <macro@codesourcery.com>
6680             Tom de Vries  <tom@codesourcery.com>
6681             Nathan Sidwell  <nathan@codesourcery.com>
6682             Iain Sandoe  <iain@codesourcery.com>
6683             Nathan Froyd  <froydnj@codesourcery.com>
6684             Chao-ying Fu  <fu@mips.com>
6686         * doc/extend.texi: (micromips, nomicromips, nocompression):
6687         Document new function attributes.
6688         * doc/invoke.texi (minterlink-compressed, mmicromips,
6689         m14k, m14ke, m14kec): Document new options.
6690         (minterlink-mips16): Update documentation.
6691         * doc/md.texi (ZC, ZD): Document new constraints.
6692         * configure.ac (gcc_cv_as_micromips): Check if linker
6693         supports the .set micromips directive.
6694         * configure: Regenerate.
6695         * config.in: Regenerate.
6696         * config/mips/mips-tables.opt: Regenerate.
6697         * config/mips/micromips.md: New file.
6698         * constraints.md (ZC, AD): New constraints.
6699         * config/mips/predicates.md (movep_src_register): New predicate.
6700         (movep_src_operand): New predicate.
6701         (non_volatile_mem_operand): New predicate.
6702         * config/mips/mips.md (multimem): New type.
6703         (length): Differentiate between 17-bit and 18-bit branch offsets.
6704         (MOVEP1, MOVEP2): New mode iterator.
6705         (mov_<load>l): Use ZC constraint.
6706         (mov_<load>r): Likewise.
6707         (mov_<store>l): Likewise.
6708         (mov_<store>r): Likewise.
6709         (*branch_equality<mode>_inverted): Add microMIPS support.
6710         (*branch_equality<mode>): Likewise.
6711         (*jump_absolute): Likewise.
6712         (indirect_jump_<mode>): Likewise.
6713         (tablejump_<mode>): Likewise.
6714         (<optab>_internal): Likewise.
6715         (sibcall_internal): Likewise.
6716         (sibcall_value_internal): Likewise.
6717         (prefetch): Use constraint ZD.
6718         * config/mips/mips.opt (minterlink-compressed): New option.
6719         (minterlink-mips16): Now an alias for minterlink-compressed.
6720         (mmicromips): New option.
6721         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6722         (compare_and_swap_12): Likewise.
6723         (sync_add<mode>): Likewise.
6724         (sync_<optab>_12): Likewise.
6725         (sync_old_<optab>_12): Likewise.
6726         (sync_new_<optab>_12): Likewise.
6727         (sync_nand_12): Likewise.
6728         (sync_old_nand_12): Likewise.
6729         (sync_new_nand_12): Likewise.
6730         (sync_sub<mode>): Likewise.
6731         (sync_old_add<mode>): Likewise.
6732         (sync_old_sub<mode>): Likewise.
6733         (sync_new_add<mode>): Likewise.
6734         (sync_new_sub<mode>): Likewise.
6735         (sync_<optab><mode>): Likewise.
6736         (sync_old_<optab><mode>): Likewise.
6737         (sync_new_<optab><mode>): Likewise.
6738         (sync_nand<mode>): Likewise.
6739         (sync_old_nand<mode>): Likewise.
6740         (sync_new_nand<mode>): Likewise.
6741         (sync_lock_test_and_set<mode>): Likewise.
6742         (test_and_set_12): Likewise.
6743         (atomic_compare_and_swap<mode>): Likewise.
6744         (atomic_exchange<mode>_llsc): Likewise.
6745         (atomic_fetch_add<mode>_llsc): Likewise.
6746         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6747         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6748         (umips_save_restore_pattern_p): Likewise.
6749         (umips_load_store_pair_p): Likewise.
6750         (umips_output_load_store_pair): Likewise.
6751         (umips_movep_target_p): Likewise.
6752         (umips_12bit_offset_address_p): Likewise.
6753         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6754         (mips_base_mips16): Rename this...
6755         (mips_base_compression_flags): ...to this. Update all uses.
6756         (mips_attribute_table): Add micromips, nomicromips and nocompression.
6757         (mips_mips16_decl_p): Delete.
6758         (mips_nomips16_decl_p): Delete.
6759         (mips_get_compress_on_flags): New function.
6760         (mips_get_compress_off_flags): New function.
6761         (mips_get_compress_mode): New function.
6762         (mips_get_compress_on_name): New function.
6763         (mips_get_compress_off_name): New function.
6764         (mips_insert_attributes): Support multiple compression types.
6765         (mips_merge_decl_attributes): Likewise.
6766         (umips_12bit_offset_address_p): New function.
6767         (mips_start_function_definition): Emit .set micromips directive.
6768         (mips_call_may_need_jalx_p): New function.
6769         (mips_function_ok_for_sibcall): Add microMIPS support.
6770         (mips_print_operand_punctuation): Support short delay slots and
6771         compact jumps.
6772         (umips_swm_mask, umips_swm_encoding): New.
6773         (umips_build_save_restore): New function.
6774         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6775         (was_mips16_p): Remove.
6776         (old_compression_mode): New.
6777         (mips_set_compression_mode): New function.
6778         (mips_set_current_function): Add microMIPS support.
6779         (mips_option_override): Likewise.
6780         (umips_save_restore_pattern_p): New function.
6781         (umips_output_save_restore): New function.
6782         (umips_load_store_pair_p_1): New function.
6783         (umips_load_store_pair_p): New function.
6784         (umips_output_load_store_pair_1): New function.
6785         (umips_output_load_store_pair): New function.
6786         (umips_movep_target_p) New function.
6787         (mips_prepare_pch_save): Add microMIPS support.
6788         * config/mips/mips.h (TARGET_COMPRESSION): New.
6789         (TARGET_CPU_CPP_BUILTINS): Update macro
6790         to use new compression flags and to support microMIPS.
6791         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6792         (MIPS_ARCH_FLOAT_SPEC): Likewise.
6793         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6794         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6795         (ASM_SPEC): Support mmicromips and mno-micromips.
6796         (M16STORE_REG_P): New macro.
6797         (MIPS_CALL): Support TARGET_MICROMIPS.
6798         (MICROMIPS_J): New macro.
6799         (mips_base_mips16): Rename this...
6800         (mips_base_compression_flags): ...to this.
6801         (UMIPS_12BIT_OFFSET_P): New macro.
6802         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6803         (MULTILIB_DIRNAMES): Likewise.
6805 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
6807         PR target/52555
6808         * target-globals.c (save_target_globals): For init_reg_sets and
6809         target_reinit remporarily set this_fn_optabs to this_target_optabs.
6811 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
6813         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
6814         * config/aarch64/t-aarch64
6815         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
6817 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
6819         PR inline-asm/56148
6820         * lra-constraints.c (process_alt_operands): Reload operand
6821         conflicting with earlier clobber only if no more other conflicting
6822         operands.
6824 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
6826         PR sanitizer/56393
6827         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
6828         if not linking a shared library.
6830 2013-02-22  Seth LaForge  <sethml@google.com>
6832         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
6834 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
6836         * config/arm/arm.md (split for extendsidi): Update condition.
6837         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
6838         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
6839         (qhs_zextenddi_cstr): Likewise.
6841 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
6843         PR middle-end/56420
6844         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
6845         avoid signed wrapping.
6846         (expand_mult): Handle properly multiplication by
6847         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
6848         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
6849         in the compiler if coeff is HOST_WIDE_INT_MIN.
6850         (expand_divmod): Don't make ext_op1 static, change it's type to
6851         uhwi.  Avoid undefined behavior in -INTVAL (op1).
6853         PR rtl-optimization/50339
6854         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
6855         field.
6856         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
6857         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
6858         into splitting_ashiftrt field.
6859         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
6860         ASHIFTRT.
6861         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
6862         choices.
6864 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
6866         PR middle-end/56108
6867         * trans-mem.c (execute_tm_mark): Do not expand transactions that
6868         are sure to go irrevocable.
6870 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
6872         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
6873         scalars are valid operands.
6875 2013-02-21  Martin Jambor  <mjambor@suse.cz>
6877         PR tree-optimization/56310
6878         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
6879         only matching indices and non-negative final offsets.
6880         (intersect_aggregates_with_edge): Pass src_idx to
6881         agg_replacements_to_vector.  Pass src_idx insstead of index to
6882         intersect_with_agg_replacements.
6884 2013-02-21  Martin Jambor  <mjambor@suse.cz>
6886         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
6887         instead of hard-wired defaults.
6889 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
6891         * doc/invoke.texi (MIPS Options): Update documentation of the
6892         floating-point multiply-accumulate instruction restrictions.
6894 2013-02-21  Kostya Serebryany  <kcc@google.com>
6896         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
6897         asan_shadow_offset on x86_64 linux.
6899 2013-02-21  Richard Biener  <rguenther@suse.de>
6901         PR tree-optimization/56415
6902         Revert
6903         2013-02-11  Richard Biener  <rguenther@suse.de>
6905         PR tree-optimization/56273
6906         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6907         first VRP run.
6909 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
6911         PR bootstrap/56258
6912         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
6913         instead of @itemx.
6915         PR inline-asm/56405
6916         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
6917         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
6919 2013-02-20  Jan Hubicka  <jh@suse.cz>
6921         PR tree-optimization/56265
6922         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
6923         when target is referenced for first time.
6925 2013-02-20  Richard Biener  <rguenther@suse.de>
6927         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
6928         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
6929         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6930         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
6931         not return anything.
6932         (rename_ssa_copies): Do not remove unused locals.
6933         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
6934         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
6935         * passes.c (execute_function_todo): Do not schedule unused locals
6936         removal if cleanup_tree_cfg did something.
6937         * tree-ssa-live.c (remove_unused_locals): Dump statistics
6938         about the number of removed locals.
6940 2013-02-20  Richard Biener  <rguenther@suse.de>
6942         PR tree-optimization/56398
6943         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
6945 2013-02-20  Martin Jambor  <mjambor@suse.cz>
6947         PR tree-optimization/55334
6948         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
6949         restricted pointers to arrays.
6951 2013-02-20  Richard Biener  <rguenther@suse.de>
6952             Jakub Jelinek  <jakub@redhat.com>
6954         PR tree-optimization/56396
6955         * tree-ssa-ccp.c (n_const_val): New static variable.
6956         (get_value): Return NULL for SSA names we don't have a lattice
6957         entry for.
6958         (ccp_initialize): Initialize n_const_val.
6959         * tree-ssa-copy.c (n_copy_of): New static variable.
6960         (init_copy_prop): Initialize n_copy_of.
6961         (get_value): Return NULL_TREE for SSA names we don't have a
6962         lattice entry for.
6964 2013-02-20  Martin Jambor  <mjambor@suse.cz>
6966         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
6968 2013-02-20  Richard Biener  <rguenther@suse.de>
6970         * genpreds.c (write_lookup_constraint): Do not compare first
6971         letter of the constraint again.
6973 2013-02-20  Richard Biener  <rguenther@suse.de>
6975         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
6976         and ceil_log2.
6977         (get_use_iv_cost): Terminate hashtable walk when coming across
6978         an empty entry.
6980 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
6982         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
6983         reassociation for avx2 targets.
6985 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6987         * config/microblaze/microblaze.c: microblaze_has_clz = 0
6988         Add version check for v8.10.a to enable microblaze_has_clz
6989         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
6990         version and TARGET_PATTERN_COMPARE check
6991         * config/microblaze/microblaze.md: New clzsi2 instruction
6993 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6995         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
6996         function before branching.
6998 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
7000         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
7001         DUMP_INSN_RTX_UID.
7002         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
7004 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
7006         PR middle-end/55889
7007         * sel-sched.c: Include ira.h.
7008         (implicit_clobber_conflict_p): New function.
7009         (moveup_expr): Use it.
7010         * Makefile.in (sel-sched.o): Depend on ira.h.
7012 2013-02-19  Richard Biener  <rguenther@suse.de>
7014         PR tree-optimization/56384
7015         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
7016         (vn_hash_type): Split out from ...
7017         (vn_hash_constant_with_type): ... here.
7018         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
7019         (vn_phi_eq): Compare types from vn_phi_s structure.
7020         (vn_phi_lookup): Populate vn_phi_s type.
7021         (vn_phi_insert): Likewise.
7023 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
7025         PR tree-optimization/56350
7026         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
7027         if haven't found reduction or nested cycle operand, rather than
7028         asserting we must find it.
7030         PR tree-optimization/56381
7031         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
7032         to fold_build3.
7034 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
7035             Jakub Jelinek  <jakub@redhat.com>
7037         PR target/52555
7038         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
7039         (swap_optab_enable): Same.
7040         (init_all_optabs): Use argument instead of global.
7041         * tree.h (struct tree_optimization_option): New field target_optabs.
7042         * expr.h (init_all_optabs): Add argument to prototype.
7043         (TREE_OPTIMIZATION_OPTABS): New.
7044         (save_optabs_if_changed): Protoize.
7045         * optabs.h: Declare this_fn_optabs.
7046         * optabs.c (save_optabs_if_changed): New.
7047         Declare this_fn_optabs.
7048         (init_optabs): Add argument to init_all_optabs() call.
7049         * function.c (invoke_set_current_function_hook): Handle per
7050         function optabs.
7051         * function.h (struct function): New field optabs.
7052         * config/mips/mips.c (mips_set_mips16_mode): Handle when
7053         optimization_current_node has changed.
7054         * target-globals.h (save_target_globals_default_opts): Protoize.
7055         * target-globals.c (save_target_globals_default_opts): New.
7057 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7059         PR target/56347
7060         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
7061         registers %fr12 and %fr12R as call used.
7063         PR target/56214
7064         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
7065         and HImode, require all displacements to be an integer multiple of
7066         their mode size.
7067         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
7068         only allow QImode and HImode when reload is in progress and strict is
7069         true.  Likewise for symbolic addresses.  Use base14_operand to check
7070         displacements in REG+BASE addresses.
7072 2013-02-18  Richard Biener  <rguenther@suse.de>
7074         PR tree-optimization/56366
7075         * tree-vect-loop.c (get_initial_def_for_induction): Properly
7076         handle sign-conversion of outer-loop initial induction value.
7078 2013-02-18  Richard Biener  <rguenther@suse.de>
7080         PR middle-end/56349
7081         * cfghooks.c (merge_blocks): If we merge a latch into another
7082         block adjust references to it.
7083         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
7084         (verify_loop_structure): Verify that a recorded latch is in fact
7085         a latch.
7087 2013-02-18  Richard Biener  <rguenther@suse.de>
7089         PR tree-optimization/56321
7090         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
7091         order SSA name release and virtual operand unlinking.
7093 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7095         * config/microblaze/microblaze.md (save_stack_block): Define.
7096         (restore_stack_block): Likewise.
7098 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7100         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
7101         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
7102         * config/microblaze/microblaze.c (microblaze_option_override):
7103         Bail out early for PIC modes when target does not support PIC.
7105 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7107         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
7108         Replace with a microblaze version.
7109         (microblaze_trampoline_init): Adapt for microblaze.
7110         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
7111         microblaze.
7113 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
7114             Dodji Seketeli  <dodji@redhat.com>
7116         PR asan/56330
7117         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
7118         (instrument_mem_region_access): Do not forget to always put
7119         instrumentation of the of 'base' and 'base + len' in a "if (len !=
7120         0) statement, even for cases where either 'base' or 'base + len'
7121         are not instrumented -- because they have been previously
7122         instrumented.  Simplify the logic by putting all the statements
7123         instrument 'base + len' inside a sequence, and then insert that
7124         sequence right before the current insertion point.  Then, to
7125         instrument 'base + len', just get an iterator on that statement.
7126         And do not forget to update the pointer to iterator the function
7127         received as argument.
7129 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
7131         PR rtl-optimization/56348
7132         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
7134 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
7136         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
7137         (clean_graph_dump_file): Pass base to start_graph_dump.
7139 2013-02-14  Richard Henderson  <rth@redhat.com>
7141         PR target/55941
7142         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
7144 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
7146         * collect2-aix.h: Define F_LOADONLY.
7148 2013-02-14  Richard Biener  <rguenther@suse.de>
7150         PR lto/50494
7151         * varasm.c (output_constant_def_1): Get the decl representing
7152         the constant as argument.
7153         (output_constant_def): Wrap output_constant_def_1.
7154         (make_decl_rtl): Use output_constant_def_1 with the decl
7155         representing the constant.
7156         (build_constant_desc): Optionally re-use a decl already
7157         representing the constant.
7158         (tree_output_constant_def): Adjust.
7160 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
7162         Fix an asan crash
7163         * asan.c (instrument_builtin_call):  Really put the length of the
7164         second source argument into src1_len.
7166 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
7168         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
7169         argument.  If it is false, don't create edge from then_bb to
7170         fallthru_bb.
7171         (insert_if_then_before_iter): Pass true to it.
7172         (build_check_stmt): Pass false to it.
7173         (transform_statements): Flush hash table only on extended basic
7174         block boundaries, rather than at the beginning of every bb.
7175         Don't flush hash table on nonfreeing_call_p calls.
7176         * tree-flow.h (nonfreeing_call_p): New prototype.
7177         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
7179 2013-02-13  David S. Miller  <davem@davemloft.net>
7181         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
7183 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
7185         PR target/56184
7186         * ira.c (max_regno_before_ira): Move from ...
7187         (ira): ... here.
7188         (fix_reg_equiv_init): Use max_regno_before_ira instead of
7189         vec_safe_length.
7191 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
7193         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
7195 2013-02-13  Richard Biener  <rguenther@suse.de>
7197         PR lto/56295
7198         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
7199         globals in MEM_REFs.
7201 2013-02-13  Richard Biener  <rguenther@suse.de>
7203         * loop-init.c (loop_optimizer_init): Clear loop state when
7204         re-initializing preserved loops.
7205         * loop-unswitch.c (unswitch_single_loop): Return whether
7206         we unswitched the loop.  Do not verify loop state here.
7207         (unswitch_loops): When we unswitched a loop discover new loops.
7209 2013-02-13  Kostya Serebryany  <kcc@google.com>
7211         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
7212         on x86_64 linux.
7213         * sanitizer.def: Rename __asan_init to __asan_init_v1.
7215 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
7217         Avoid instrumenting duplicated memory access in the same basic block
7218         * Makefile.in (asan.o): Add new dependency on hash-table.h
7219         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
7220         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
7221         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
7222         (free_mem_ref_resources, has_mem_ref_been_instrumented)
7223         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
7224         (get_mem_ref_of_assignment): New functions.
7225         (get_mem_refs_of_builtin_call): Extract from
7226         instrument_builtin_call and tweak a little bit to make it fit with
7227         the new signature.
7228         (instrument_builtin_call): Use the new
7229         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
7230         of is_gimple_builtin_call.
7231         (instrument_derefs, instrument_mem_region_access): Insert the
7232         instrumented memory reference into the hash table.
7233         (maybe_instrument_assignment): Renamed instrument_assignment into
7234         this, and change it to advance the iterator when instrumentation
7235         actually happened and return true in that case.  This makes it
7236         homogeneous with maybe_instrument_assignment, and thus give a
7237         chance to callers to be more 'regular'.
7238         (transform_statements): Clear the memory reference hash table
7239         whenever we enter a new BB, when we cross a function call, or when
7240         we are done transforming statements.  Use
7241         maybe_instrument_assignment instead of instrumentation.  No more
7242         need to special case maybe_instrument_assignment and advance the
7243         iterator after calling it; it's now handled just like
7244         maybe_instrument_call.  Update comment.
7246 2013-02-13  Richard Biener  <rguenther@suse.de>
7248         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7249         Fix loop discovery code.
7251 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
7253         PR inline-asm/56148
7254         * lra-constraints.c (process_alt_operands): Match early clobber
7255         operand with itself.  Check conflicts with earlyclobber only if
7256         the operand is not reloaded.  Prefer to reload conflicting operand
7257         if earlyclobber and matching operands are the same.
7259 2013-02-12  Richard Biener  <rguenther@suse.de>
7261         PR lto/56297
7262         * lto-streamer-out.c (write_symbol): Do not output symbols
7263         for hard register variables.
7265 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
7267         PR target/54222
7268         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
7269         (umulsidi3_insn, mulsidi3_insn): New insns.
7271 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
7273         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
7274         (struct tune_params): Add vec_costs field.
7275         * config/arm/arm.c (arm_builtin_vectorization_cost)
7276         (arm_add_stmt_cost): New functions.
7277         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
7278         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
7279         (arm_default_vec_cost): New struct of type cpu_vec_costs.
7280         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7281         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
7282         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
7283         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
7285 2013-02-12  Richard Biener  <rguenther@suse.de>
7287         PR lto/56295
7288         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
7289         decls again if possible.
7291 2013-02-12  Richard Biener  <rguenther@suse.de>
7293         PR middle-end/56288
7294         * tree-ssa.c (verify_ssa_name): Fix check, move
7295         SSA_NAME_IN_FREE_LIST check up.
7297 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
7298             Steven Bosscher   <steven@gcc.gnu.org>
7300         PR rtl-optimization/56151
7301         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
7302         equal to op0 or op1, and last_insn pattern is CODE operation
7303         with MEM dest and one of the operands matches that MEM.
7305 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
7307         * doc/extend.texi: Document Function Multiversioning and "default"
7308         parameter string to target attribute.
7309         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
7310         target attribute parameter is "default".
7311         (ix86_compare_version_priority): Remove checks for target attribute.
7312         (ix86_mangle_function_version_assembler_name): Change error to sorry.
7313         Remove check for target attribute equal to NULL. Add assert.
7314         (ix86_generate_version_dispatcher_body): Change error to sorry.
7316 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
7317             Jack Howarth  <howarth@bromo.med.uc.edu>
7318             Patrick Marlier  <patrick.marlier@gmail.com>
7320         PR libitm/55693
7321         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
7322         define ENDFILE_SPEC as TM_DESTRUCTOR.
7323         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
7325 2013-02-11  Alexander Potapenko  <glider@google.com>
7326             Jack Howarth  <howarth@bromo.med.uc.edu>
7327             Jakub Jelinek  <jakub@redhat.com>
7329         PR sanitizer/55617
7330         * config/darwin.c (cdtor_record): Rename ctor_record.
7331         (sort_cdtor_records): Rename sort_ctor_records.
7332         (finalize_dtors): New routine to sort destructors by
7333         priority before use in assemble_integer.
7334         (machopic_asm_out_destructor): Use finalize_dtors if needed.
7336 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
7338         PR rtl-optimization/56275
7339         * simplify-rtx.c (avoid_constant_pool_reference): Check that
7340         offset is non-negative and less than cmode size before
7341         calling simplify_subreg.
7343 2013-02-11  Richard Biener  <rguenther@suse.de>
7345         PR tree-optimization/56264
7346         * cfgloop.h (fix_loop_structure): Adjust prototype.
7347         * loop-init.c (fix_loop_structure): Return the number of
7348         newly discovered loops.
7349         * tree-cfgcleanup.c (repair_loop_structures): When new loops
7350         are discovered, do a full loop-closed SSA rewrite.
7352 2013-02-11  Richard Biener  <rguenther@suse.de>
7354         PR tree-optimization/56273
7355         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7356         first VRP run.
7357         (check_array_ref): Fix missing newline in dumps.
7358         (search_for_addr_array): Likewise.
7360 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
7362         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
7364 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
7366         PR target/56256
7367         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
7369 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
7371         PR rtl-optimization/56246
7372         * lra-constraints.c (simplify_operand_subreg): Try to reuse
7373         reload pseudo.
7374         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
7375         constraints are satisfied.
7377 2013-02-08  Jeff Law  <law@redhat.com>
7379         PR debug/53948
7380         * emit-rtl.c (reg_is_parm_p): New function.
7381         * regs.h (reg_is_parm_p): New prototype.
7382         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
7383         callee-clobbered registers.
7385 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7387         PR target/56043
7388         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
7389         If there is no implicit builtin declaration, just return NULL.
7391 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
7393         * config/i386/sse.md (FMAMODEM): New mode iterator.
7394         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
7395         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
7397 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
7399         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
7400         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
7401         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
7403 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7405         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
7406         (microblaze*-*-elf): Likewise.
7407         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
7408         LINK_SPEC.
7409         * config/microblaze/microblaze-c.c: Add builtin defines for
7410         _LITTLE_ENDIAN and _BIG_ENDIAN.
7411         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
7412         add to TARGET_DEFAULT flags.
7413         Expand ASM_SPEC and LINK_SPEC.
7414         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7415         * config/microblaze/microblaze.md: Update extendsidi2 and
7416         movdi_internal instructions to use low-order / high-order reg
7417         print_operands.
7418         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
7419         options and inversemask / mask of LITTLE_ENDIAN.
7420         * config/microblaze/t-microblaze: Expand multilib options to
7421         include mlittle-endian (le) and update exceptions patterns.
7423 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
7425         PR rtl-optimization/56195
7426         * lra-constraints.c (get_reload_reg): Don't reuse regs
7427         if they have smaller mode than requested, if they have
7428         wider mode than requested, try to return a SUBREG.
7430         PR tree-optimization/56250
7431         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
7432         if type is unsigned and code isn't MULT_EXPR.
7434 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
7436         PR tree-optimization/56064
7437         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
7438         bits according to mode.
7439         * fixed-value.h (fixed_from_double_int)
7440         (const_fixed_from_double_int): Adjust comments.
7442 2013-02-08  Richard Biener  <rguenther@suse.de>
7444         PR lto/56231
7445         * lto-streamer.h (struct data_in): Remove current_file, current_line
7446         and current_col members.
7447         * lto-streamer-out.c (lto_output_location): Stream changed bits
7448         en-block for efficiency.
7449         * lto-streamer-in.c (clear_line_info): Remove.
7450         (lto_input_location): Cache current file, line and column
7451         globally via local statics.  Read changed bits en-block.
7452         (input_function): Do not call clear_line_info.
7453         (lto_read_body): Likewise.
7454         (lto_input_toplevel_asms): Likewise.
7456 2013-02-08  Michael Matz  <matz@suse.de>
7458         PR tree-optimization/52448
7459         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7460         (nt_call_phase): New static.
7461         (add_or_mark_expr): Only mark accesses with newer phase than any
7462         call seen.
7463         (nonfreeing_call_p): New.
7464         (nt_init_block): Update nt_call_phase, mark blocks as visited.
7465         (nt_fini_block): Keep blocks marked as visited.
7466         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7468 2013-02-08  Richard Biener  <rguenther@suse.de>
7470         * ira.c (ira): Free broken dominator information.
7472 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
7474         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7476 2013-02-08  Marek Polacek  <polacek@redhat.com>
7478         * cfgloop.c (verify_loop_structure): Add more checking of headers.
7480 2013-02-08  Richard Biener  <rguenther@suse.de>
7482         PR middle-end/56181
7483         * cfgloop.h (flow_loops_find): Adjust.
7484         (bb_loop_header_p): Declare.
7485         * cfgloop.c (bb_loop_header_p): New function split out from ...
7486         (flow_loops_find): ... here.  Adjust function signature,
7487         support incremental loop structure update.
7488         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
7489         * cfgloopmanip.c (fix_loop_structure): Move ...
7490         * loop-init.c (fix_loop_structure): ... here.
7491         (apply_loop_flags): Split out from ...
7492         (loop_optimizer_init): ... here.
7493         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
7494         in incremental mode, only remove dead loops here.
7496 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
7498         PR target/54222
7499         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7500         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7501         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7502         (*round<mode>3.libgcc): New insns for fixed-modes.
7503         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
7504         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
7505         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
7506         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
7507         implementations.  Define to __builtin_avr_absFX,
7508         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
7509         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
7510         __builtin_avr_countlsFX, respectively.
7511         * config/avr/avr-c.c (target.h): Include it.
7512         (enum avr_builtin_id): New enum.
7513         (avr_resolve_overloaded_builtin): New static function.
7514         (avr_register_target_pragmas): Use it to set
7515         targetm.resolve_overloaded_builtin.
7516         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
7517         tree nodes used by DEF_BUILTIN.
7518         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
7519         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
7520         <AVR_BUILTIN_xxBITS>: Same.
7522 2013-02-08  Richard Biener  <rguenther@suse.de>
7524         * cfgloop.c (verify_loop_structure): Properly handle
7525         a loop exiting to another loop header.
7526         * ira-int.h (ira_loops): Remove.
7527         * ira.c (ira_loops): Remove.
7528         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
7529         (do_reload): Use loop_optimizer_finalize.
7530         * ira-build.c (create_loop_tree_nodes): Use get_loops and
7531         number_of_loops to access the loop tree.
7532         (more_one_region_p): Likewise.
7533         (finish_loop_tree_nodes): Likewise.
7534         (rebuild_regno_allocno_maps): Likewise.
7535         (mark_loops_for_removal): Likewise.
7536         (mark_all_loops_for_removal): Likewise.
7537         (remove_unnecessary_regions): Likewise.
7538         (ira_build): Likewise.
7539         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7541 2013-02-08  Richard Biener  <rguenther@suse.de>
7543         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
7544         * ipa-pure-const.c (analyze_function): Avoid calling
7545         mark_irreducible_loops twice.
7546         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
7548 2013-02-07  David S. Miller  <davem@davemloft.net>
7550         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
7551         on 'reg'.
7552         * var-tracking.c (vt_add_function_parameter): Test the presence of
7553         HAVE_window_save properly and do not remap argument registers when
7554         we have a leaf function.
7556 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
7558         PR bootstrap/56227
7559         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
7560         instead of "ll".
7561         * config/i386/i386.c (ix86_print_operand): Ditto.
7563 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
7565         * lra-constraints.c (process_alt_operands): Fix recently added comment.
7567 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
7569         PR rtl-optimization/56225
7570         * lra-constraints.c (process_alt_operands): Check that reload hard
7571         reg can hold value for strict_low_part.
7573 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
7575         PR debug/56154
7576         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
7577         dwarf2out_end_function.
7578         (in_first_function_p, maybe_at_text_label_p,
7579         first_loclabel_num_not_at_text_label): New variables.
7580         (dwarf2out_var_location): In the first function find out
7581         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
7582         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
7583         functions.
7585 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
7587         PR rtl-optimization/56178
7588         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
7589         SUBREG of a register.  Tidy up related block of code.
7590         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
7591         note if the source is a register or a SUBREG of a register.
7593 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
7595         PR target/56228
7596         * config/rs6000/rs6000.md (ptrm): New mode attr.
7597         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
7598         call_value_indirect_aix<pttrsize>,
7599         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
7600         m in constraints.
7602 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7604         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
7605         if -bnortl. Convert to strcmp and strncmp.
7607 2013-02-07  Alan Modra  <amodra@gmail.com>
7609         PR target/54009
7610         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
7611         addresses won't wrap when offsetting.
7612         (rs6000_secondary_reload): Provide secondary reloads needed for
7613         wrapping LO_SUM addresses.
7615 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
7617         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
7618         MACH, just __MACH__.
7620 2013-02-06  Richard Biener  <rguenther@suse.de>
7622         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
7623         instead of calling fix_loop_structure.
7625 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
7627         PR middle-end/56217
7628         * omp-low.c (use_pointer_for_field): Return false if
7629         lower_send_shared_vars doesn't generate any copy-out code.
7631 2013-02-06  Tom de Vries  <tom@codesourcery.com>
7633         PR rtl-optimization/56131
7634         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
7635         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
7636         of the label is NULL.  Add comment.
7638 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
7640         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
7642         PR sanitizer/55374
7643         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
7644         (STATIC_LIBTSAN_LIBS): Likewise.
7645         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
7646         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
7647         is defined, don't add anything else beyond that.
7648         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
7649         (LINK_COMMAND_SPEC): Use them.
7651         PR tree-optimization/56205
7652         * tree-stdarg.c (check_all_va_list_escapes): Return true if
7653         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
7654         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
7656 2013-02-05  Richard Biener  <rguenther@suse.de>
7658         PR tree-optimization/53342
7659         PR tree-optimization/53185
7660         * tree-vectorizer.h (vect_check_strided_load): Remove.
7661         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
7662         not disallow peeling for vectorized strided loads.
7663         (vect_check_strided_load): Make static and simplify.
7664         (vect_analyze_data_refs): Adjust.
7665         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
7666         correctly when vectorizing strided loads.
7668 2013-02-05  Richard Biener  <rguenther@suse.de>
7670         * doc/install.texi: Refer to ISL, not PPL.
7672 2013-02-05  Jan Hubicka  <jh@suse.cz>
7674         PR tree-optimization/55789
7675         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
7677 2013-02-05  Jan Hubicka  <jh@suse.cz>
7679         PR tree-optimization/55789
7680         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
7681         the dead call anyway.
7683 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
7685         PR sanitizer/55374
7686         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
7688 2013-02-04  Alexander Potapenko  <glider@google.com>
7689             Jack Howarth  <howarth@bromo.med.uc.edu>
7690             Jakub Jelinek  <jakub@redhat.com>
7692         PR sanitizer/55617
7693         * config/darwin.c (sort_ctor_records): Stabilized qsort
7694         on constructor priority by using original position.
7695         (finalize_ctors): New routine to sort constructors by
7696         priority before use in assemble_integer.
7697         (machopic_asm_out_constructor): Use finalize_ctors if needed.
7699 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
7701         PR libstdc++/54314
7702         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
7703         about visibility on artificial decls.
7704         * config/sol2.c (solaris_assemble_visibility): Likewise.
7706 2013-02-04  Kai Tietz  <ktietz@redhat.com>
7708         PR target/56186
7709         * config/i386/i386.c (function_value_ms_64): Add additional valtype
7710         argument and improve checking of return-argument types for 16-byte
7711         modes.
7712         (ix86_function_value_1): Add additional valtype argument on call
7713         of function_value_64.
7714         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
7715         handling infunction_value_64 function.
7717 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
7719         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
7721 2013-02-04  Richard Biener  <rguenther@suse.de>
7723         PR tree-optimization/56188
7724         * tree-ssa-structalias.c (label_visit): Consider case with
7725         initially non-empty points-to set.
7726         (perform_var_substitution): Dump node mapping and clean up.
7728 2013-02-04  Richard Guenther  <rguenther@suse.de>
7730         PR lto/56168
7731         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
7732         node prevail as last resort.
7733         (lto_symtab_merge_decls): Remove guard on LTRANS here.
7734         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
7736 2013-02-04  Richard Biener  <rguenther@suse.de>
7738         PR tree-optimization/56113
7739         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
7740         Merge into ...
7741         (equiv_class_lookup_or_add): ... this.
7742         (label_visit): Adjust and fix error in previous patch.
7743         (perform_var_substitution): Adjust.
7745 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
7747         * config/sh/divtab.c: Fix formatting and comments throughout the file.
7748         * config/sh/sh4-300.md: Likewise.
7749         * config/sh/sh4a.md: Likewise.
7750         * config/sh/constraints.md: Likewise.
7751         * config/sh/sh.md: Likewise.
7752         * config/sh/netbsd-elf.h: Likewise.
7753         * config/sh/predicates.md: Likewise.
7754         * config/sh/sh-protos.h: Likewise.
7755         * config/sh/ushmedia.h: Likewise.
7756         * config/sh/linux.h: Likewise.
7757         * config/sh/sh.c: Likewise.
7758         * config/sh/superh.h: Likewise.
7759         * config/sh/elf.h: Likewise.
7760         * config/sh/sh4.md: Likewise.
7761         * config/sh/sh.h: Likewise.
7763 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7765         * config/pa/constraints.md: Adjust unused letters.  Change "T"
7766         constraint to match_test floating_point_store_memory_operand().
7767         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
7768         (base14_operand): New.
7769         (floating_point_store_memory_operand): New.
7770         (integer_store_memory_operand): Revise to use base14_operand and
7771         reg_plus_base_memory_operand.
7772         (move_dest_operand): Allow symbolic_memory_operands.
7773         (symbolic_memory_operand): Check for LO_SOM.
7774         (symbolic_operand): Change default case to break.
7775         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
7776         CONST_DOUBLE values to be reloaded by putting them into memory when
7777         the destination is a floating point register.
7778         (movdf): Remove code to handle CONST_DOUBLE.
7779         (movsf): Likewise.
7780         (reload_indf_r1): New.
7781         (reload_insf_r1): New.
7782         Consistently use "Q" and "T" constraints with integer and floating
7783         point move instructions, respectively.
7784         (movdi): Remove FAIL.
7785         Change predicate for source operand unamed DImode move from
7786         general_operand to move_src_operand.
7787         (umulsidi3): Change predicate for destination operand to
7788         register_operand.
7789         Likewise for similar unamed patterns.
7790         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
7791         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
7792         (hppa_legitimize_address): Simplify mask calculation.
7793         (pa_emit_move_sequence): Revised handling of secondary reloads from
7794         REG+D addresses for floating point loads and stores.  Directly handle
7795         loading CONST0_RTX (mode) to a floating point register.
7796         (pa_secondary_reload): Handle reloading DF and SFmode constant values
7797         to floating point registers.  Don't restrict secondary reloads to
7798         floating point registers to integer modes.  Revise some comments and
7799         cleanup some code.
7800         (TARGET_LEGITIMATE_ADDRESS_P): Define.
7801         (pa_legitimate_address_p): New.
7802         (pa_legitimize_reload_address): New.
7803         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
7804         (STRICT_REG_OK_FOR_BASE_P): New.
7805         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
7806         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
7808 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
7809             Andrew Dixie  <andrewd@gentrack.com>
7811         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
7812         flag set.
7814 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
7816         * expmed.c (extract_bit_field_1): Pass the full width of the
7817         structure to get_best_reg_extraction_insn.
7819 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
7821         PR target/54601
7822         * configure.ac (use_cxa_atexit): Add AIX.
7823         * configure: Regenerate.
7825         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
7827 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
7829         PR debug/54793
7830         * final.c (need_profile_function): New variable.
7831         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
7832         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
7833         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
7834         notes, targetm.asm_out.function_prologue doesn't emit anything,
7835         HAVE_prologue and profiler should be emitted before prologue,
7836         set need_profile_function instead of emitting it.
7837         (final_scan_insn): If need_profile_function, emit
7838         profile_function on the first NOTE_INSN_BASIC_BLOCK or
7839         NOTE_INSN_FUNCTION_BEG note.
7841 2013-02-01  Richard Henderson  <rth@redhat.com>
7843         * config/rs6000/rs6000.md (smulditi3): New.
7844         (umulditi3): New.
7846         * config/alpha/alpha.md (umulditi3): New.
7848 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
7850         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
7851         (ASM_OUTPUT_ALIGNED_LOCAL): New.
7853 2013-02-01  Richard Biener  <rguenther@suse.de>
7855         PR tree-optimization/56113
7856         * tree-ssa-structalias.c (label_visit): Reduce work for
7857         single-predecessor nodes.
7859 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
7861         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
7862         range isn't testing for zero.
7864 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
7866         PR middle-end/56113
7867         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
7869 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
7870             Nick Clifton  <nickc@redhat.com>
7872         * config/v850/constraints.md (Q): Define as a memory constraint.
7873         * config/v850/predicates.md (label_ref_operand): New predicate.
7874         (e3v5_shift_operand): New predicate.
7875         (ior_operator): New predicate.
7876         * config/v850/t-v850: Add e3v5 multilib.
7877         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
7878         (v850_gen_movdi): Prototype.
7879         * config/v850/v850.c: Add support for e3v5 architecture.
7880         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
7881         TARGET_V850E_UP.
7882         (construct_save_jarl): Add e3v5 long JARL support.
7883         (v850_adjust_insn_length): New function.  Adjust length of call
7884         insns when using e3v5 instructions.
7885         (v850_gen_movdi): New function: Generate instructions to move a
7886         DImode value.
7887         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
7888         (CPP_SPEC): Define __v850e3v5__ as appropriate.
7889         (TARGET_USE_FPU): Enable for e3v5.
7890         (CONST_OK_FOR_W): New macro.
7891         (ADJUST_INSN_LENGTH): Define.
7892         * config/v850/v850.md (UNSPEC_LOOP): Define.
7893         (attr cpu): Add v850e3v5.
7894         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
7895         (movdi): New pattern.
7896         (movdi_internal): New pattern.
7897         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
7898         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
7899         (cstoresf4): Likewise.
7900         (cstoredf4): Likewise.
7901         (insv): New pattern.
7902         (rotlso3_a): New pattern.
7903         (rotlsi3_b): New pattern
7904         (rotlsi3_v850e3v5): New pattern.
7905         (doloop_begin): New pattern.
7906         (fix_loop_counter): New pattern.
7907         (doloop_end): New pattern.
7908         (branch_normal): Add e3v5 long branch support.
7909         (branch_invert): Likewise.
7910         (branch_z_normal): Likewise.
7911         (branch_z_invert): Likewise.
7912         (branch_nz_normal): Likewise.
7913         (branch_nz_invert): Likewise.
7914         (call_internal_short): Add e3v5 register-indirect JARL support.
7915         (call_internal_long): Likewise.
7916         (call_value_internal_short): Likewise.
7917         (call_value_internal_long): Likewise.
7918         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
7919         (mloop): New option.
7920         * config.gcc: Add support for configuring v840e3v5 target.
7921         * doc/invoke.texi: Document new v850 specific command line options.
7923 2013-01-31  Paul Koning  <ni1d@arrl.net>
7925         PR debug/55059
7926         PR debug/54508
7927         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
7928         children if parent is a class.
7929         (prune_unused_types_prune): Don't add DW_AT_declaration.
7931 2013-01-31  Richard Biener  <rguenther@suse.de>
7933         PR tree-optimization/56157
7934         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
7935         match up operand with SLP child.
7937 2013-01-31  Jason Merrill  <jason@redhat.com>
7939         PR debug/54410
7940         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
7941         parameters the first time.
7942         (gen_scheduled_generic_parms_dies): Check completeness here.
7944 2013-01-31  Richard Biener  <rguenther@suse.de>
7946         PR middle-end/53073
7947         * common.opt (faggressive-loop-optimizations): New flag,
7948         enabled by default.
7949         * doc/invoke.texi (faggressive-loop-optimizations): Document.
7950         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
7951         infer_loop_bounds_from_undefined by it.
7953 2013-01-31  Richard Biener  <rguenther@suse.de>
7955         PR tree-optimization/56150
7956         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
7957         visit virtual operands.
7958         (find_uses_to_rename_bb): Likewise.
7960 2013-01-31  Richard Biener  <rguenther@suse.de>
7962         PR tree-optimization/56150
7963         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
7964         mixed store non-store stmts.
7966 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
7968         PR sanitizer/55374
7969         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
7970         LIBASAN_EARLY_SPEC is defined.
7971         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
7972         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
7973         before %o.
7974         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
7976         PR c++/55742
7977         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
7978         invalid args instead of ICEing on it.
7979         (ix86_valid_target_attribute_tree): Return error_mark_node if
7980         ix86_valid_target_attribute_inner_p failed.
7981         (ix86_valid_target_attribute_p): Return false only if
7982         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
7983         target("default") attribute.
7984         (sorted_attr_string): Change argument from const char * to tree,
7985         merge in all target attribute arguments rather than just one.
7986         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
7987         instead of free.  Avoid using strcat.
7988         (ix86_mangle_function_version_assembler_name): Mangle
7989         target("default") as if no target attribute is present.  Adjust
7990         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
7991         instead of xmalloc and XDELETEVEC instead of free.
7992         (ix86_function_versions): Don't return true if one of the decls
7993         doesn't have target attribute.  If they don't and one of the decls
7994         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
7995         sorted_attr_string caller.  Use XDELETEVEC instead of free.
7996         (ix86_supports_function_versions): Remove.
7997         (make_name): Fix up formatting.
7998         (make_dispatcher_decl): Remove resolver_name and its initialization.
7999         Avoid leaking memory.
8000         (is_function_default_version): Return true if there is
8001         target("default") attribute rather than no target attribute at all.
8002         (make_resolver_func): Avoid leaking memory.
8003         (ix86_generate_version_dispatcher_body): Likewise.
8004         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
8005         * target.def (supports_function_versions): Remove.
8006         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
8007         * doc/tm.texi: Regenerated.
8009 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
8011         PR rtl-optimization/56144
8012         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
8013         for values with side effects.
8015 2013-01-30  Richard Biener  <rguenther@suse.de>
8017         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
8018         (sparseset_pop): Likewise.
8019         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
8020         to be able to use quick_push in the worker loop.
8022 2013-01-30  Marek Polacek  <polacek@redhat.com>
8024         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
8026 2013-01-30  Richard Biener  <rguenther@suse.de>
8028         PR lto/56147
8029         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
8031 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
8033         PR tree-optimization/56064
8034         * fixed-value.c (fixed_from_double_int): New function.
8035         * fixed-value.h (fixed_from_double_int): New prototype.
8036         (const_fixed_from_double_int): New static inline function.
8037         * fold-const.c (native_interpret_fixed): New static function.
8038         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
8039         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
8040         (native_encode_fixed): New static function.
8041         (native_encode_expr) <FIXED_CST>: Use it.
8042         (native_interpret_int): Move double_int worker code to...
8043         * double-int.c (double_int::from_buffer): ...this new static method.
8044         * double-int.h (double_int::from_buffer): Prototype it.
8046 2013-01-30  Richard Biener  <rguenther@suse.de>
8048         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
8049         New pointer-map and obstack.
8050         (init_alias_vars): Allocate pointer-map and obstack.
8051         (delete_points_to_sets): Free them.
8052         (find_what_var_points_to): Cache result.
8053         (find_what_p_points_to): Adjust for changed interface of
8054         find_what_var_points_to.
8055         (compute_points_to_sets): Likewise.
8056         (ipa_pta_execute): Likewise.
8058 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8060         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
8061         * configure: Regenerate.
8062         * config.in: Regenerate.
8063         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
8064         #nobits/#progbits if supported.
8066 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
8068         PR target/56121
8069         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8070         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
8071         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
8073 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8075         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
8076         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
8078 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8080         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
8081         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
8083 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8085         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
8086         declaration.
8087         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
8088         * config/arm/cortex-a7.md: New bypasses using
8089         arm_mac_accumulator_is_result.
8091 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8093         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
8094         (cortex_a7_neon_mla): Likewise.
8095         (cortex_a7_fpfmad): New reservation.
8096         (cortex_a7_fpmacs): Use ffmas and update required units.
8097         (cortex_a7_fpmuld): Update required units and latency.
8098         (cortex_a7_fpmacd): Likewise.
8099         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
8100         (cortex_a7_neon). Likewise.
8101         (bypass) Update participating units.
8103 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
8105         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
8106         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
8107         from fmac to ffma.
8108         * config/arm/vfp11.md (vfp_farith): Use ffmas.
8109         (vfp_fmul): Use ffmad.
8110         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
8111         (cortex_r4_fmacd): Use ffmad.
8112         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
8113         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
8114         (cortex_a9_fmacd): Use ffmad.
8115         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
8116         (cortex_a8_vfp_macd): Use ffmad.
8117         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
8118         (cortex_a5_fpmacd): Use ffmad.
8119         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
8120         (cortex_a15_vfp_macd): Use ffmad.
8121         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
8123 2013-01-29  Jason Merrill  <jason@redhat.com>
8125         PR libstdc++/54314
8126         * varasm.c (default_assemble_visibility): Don't warn about
8127         visibility on artificial decls.
8129 2013-01-29  Richard Biener  <rguenther@suse.de>
8131         PR tree-optimization/56113
8132         * tree-ssa-structalias.c (equiv_class_lookup): Also return
8133         the bitmap leader.
8134         (label_visit): Free duplicate bitmaps and record the leader instead.
8135         (perform_var_substitution): Adjust.
8137 2013-01-29  Richard Biener  <rguenther@suse.de>
8139         PR tree-optimization/55270
8140         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
8141         the CFG, schedule loops for fixup.
8143 2013-01-29  Nick Clifton  <nickc@redhat.com>
8145         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
8146         SP_REG.
8148 2013-01-28  Leif Ekblad  <leif@rdos.net>
8150         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
8151         * config/i386/i386.h (TARGET_RDOS): New macro.
8152         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
8153         * config/i386/i386.c (ix86_option_override_internal): For 64bit
8154         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
8155         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
8156         DEFAULT_LARGE_SECTION_THRESHOLD.
8157         * config/i386/i386.md (R14_REG, R15_REG): New constants.
8158         * config/i386/rdos.h: New file.
8159         * config/i386/rdos64.h: New file.
8161 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
8163         PR other/54814
8164         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
8165         TEST_HARD_REG_BIT.
8167 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
8169         PR rtl-optimization/56117
8170         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
8171         call cselib_lookup_from_insn on the MEM before calling
8172         add_insn_mem_dependence.
8174 2013-01-28  Richard Biener  <rguenther@suse.de>
8176         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
8177         to a stmt that didn't have one.
8178         (copy_phis_for_bb): Likewise for PHI arguments.
8179         (copy_debug_stmt): Likewise for debug stmts.
8181 2013-01-28  Richard Biener  <rguenther@suse.de>
8183         PR tree-optimization/56034
8184         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
8185         (partition_builtin_p): Adjust.
8186         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
8187         it is the last partition.
8188         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
8189         up the vertex for the definition.
8190         (classify_partition): Classify whether a partition is a
8191         PKIND_REDUCTION, thus has uses outside of the loop.
8192         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
8193         Merge all PKIND_REDUCTION partitions into the last partition.
8194         (tree_loop_distribution): Seed partitions from reductions as well.
8196 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
8198         PR tree-optimization/56125
8199         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
8200         pow(x,c) into sqrt(x) * powi(x, n/2) or
8201         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
8202         optimizing for size.
8203         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
8204         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
8205         integer.
8207         PR tree-optimization/56094
8208         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
8209         to UNKNOWN_LOCATION while gimplifying expr.
8211 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
8213         PR target/56114
8214         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
8215         operand 0 in movabs insn template for -masm=intel asm alternative.
8216         (*movabs<mode>_2): Ditto for operand 1.
8218 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
8220         PR target/54663
8221         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
8222         of microblaze-c.o
8224 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
8226         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
8227         tm_file.
8229 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8231         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
8232         Undef to avoid warning.
8234 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8236         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
8237         * configure: Regenerate.
8239 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
8241         PR tree-optimization/56098
8242         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
8243         for stmts with volatile ops.
8244         (cond_store_replacement): Don't optimize if assign has volatile ops.
8245         (cond_if_else_store_replacement_1): Don't optimize if either
8246         then_assign or else_assign have volatile ops.
8247         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
8248         volatile ops.
8250 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
8252         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
8254 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
8256         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
8257         missing ':' in asm example.
8259 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
8261         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
8262         entries into lane and laneq entries.
8263         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
8264         Remove AdvSIMD scalar modes.
8265         (aarch64_sq<r>dmulh_laneq<mode>): New.
8266         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
8267         modes.
8268         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
8269         builtin implementations to relfect changes in RTL in aarch64-simd.md.
8270         * config/aarch64/iterators.md (VCOND): New.
8271         (VCONQ): New.
8273 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
8275         PR target/54222
8276         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
8277         Add NULL LIBNAME argument to existing definitions.
8278         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
8279         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
8280         * config/avr/avr.c (DEF_BUILTIN): Same.
8281         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
8282         (avr_expand_builtin): Expand to a vanilla call if a libgcc
8283         implementation is available (DECL_ASSEMBLER_NAME is set).
8284         (avr_fold_absfx): New static function.
8285         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
8286         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
8287         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
8288         AVR_BUILTIN_ABSLLK.
8289         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
8290         (abshk, absk, abslk, absllk): Provide as static inline functions.
8292 2013-01-25  Marek Polacek  <polacek@redhat.com>
8294         PR tree-optimization/56035
8295         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
8297 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
8299         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
8300         (*movtf_internal_rex64): Add (!o,C) alternative
8301         (*movxf_internal_rex64): Ditto.
8302         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
8304 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
8306         * doc/invoke.texi: fix typo.
8307         * doc/objc.texi: fix typo.
8309 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
8311         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
8312         for the first two alternatives.
8314 2013-01-24  Diego Novillo  <dnovillo@google.com>
8316         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
8317         (ggc-zone.o): Remove.
8318         * configure.ac: Remove option --with-gc.
8319         * configure: Re-generate.
8320         * doc/install.texi: Remove documentation for --with-gc.
8321         * gengtype.c (write_enum_defn): Remove.  Update all users.
8322         (write_Types_process_field): Remove generation of gt_e_* argument.
8323         (output_type_enum): Remove.  Update all users.
8324         (write_enum_defn): Remove.  Update all users.
8325         (enum alloc_zone): Remove.  Update all users.
8326         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
8327         * ggc-common.c (ggc_splay_alloc): Remove first argument.
8328         Update all callers.
8329         (struct ptr_data): Remove field TYPE.  Update all users.
8330         (gt_pch_note_object): Remove argument TYPE.  Update all users.
8331         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
8332         Update all users.
8333         * ggc-none.c (ggc_alloc_typed_stat): Remove.
8334         (struct alloc_zone): Remove.
8335         (ggc_internal_alloc_zone_stat): Remove.
8336         (ggc_internal_cleared_alloc_zone_stat): Remove.
8337         * ggc-page.c (ggc_alloc_typed_stat): Remove.
8338         (ggc_pch_count_object): Remove last argument.  Update all users.
8339         (ggc_pch_alloc_object): Remove last argument.  Update all users.
8340         (struct alloc_zone): Remove.
8341         * ggc-zone.c: Remove.
8342         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
8343         (struct alloc_zone): Remove.
8344         (ggc_alloc_typed_stat): Remove.
8345         (ggc_alloc_typed): Remove.
8346         (ggc_splay_alloc): Remove first argument.
8347         (rtl_zone): Remove.  Update all users.
8348         (tree_zone): Remove.  Update all users.
8349         (tree_id_zone): Remove.  Update all users.
8350         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
8351         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
8352         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
8353         * tree-ssanames.c: Remove references to zone allocator in comments.
8355 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
8357         * config/avr/avr.c (avr_out_fract): Make register numbers that
8358         might be outside of source operand signed.
8360 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
8362         * config/i386/constraints.md (Yf): New constraint.
8363         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
8364         of f constraint to conditionaly disable x87 register preferences.
8365         (*movdf_internal): Ditto.
8366         (*movsf_internal): Ditto.
8368 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
8370         PR inline-asm/55934
8371         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
8372         that have operands with impossible constraints.
8373         Add a FIXME for a speed-up opportunity.
8374         * lra-constraints.c (process_alt_operands): Verify that a class
8375         selected from constraints on asms is valid for the operand mode.
8376         (curr_insn_transform): Remove incorrect comment.
8378 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
8380         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
8381         TOC operand is a valid symbol ref in the constant pool.
8383 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
8385         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
8387 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
8389         PR target/54222
8390         * config/avr/stdfix.h: New file.
8391         * t-avr (stdfix-gcc.h): New rule to build it.
8392         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
8394 2013-01-23  Kostya Serebryany  <kcc@google.com>
8396         * config/darwin.h: remove dependency on
8397         CoreFoundation (asan on Mac OS).
8399 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
8401         PR target/49069
8402         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
8403         instead of cmpdi_operand for first comparison operand.
8404         Don't assert that comparison operands aren't both constants.
8406 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
8408         * doc/install.texi (Downloading the Source): Update references to
8409         downloading separate components.
8411 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
8413         * doc/extend.texi (__int128): Improve grammar.
8415 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
8417         PR target/56028
8418         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
8419         alternative to (o,r).
8420         (*movdi_internal_rex64): Remove (!o,n) alternative.
8421         (DImode immediate->memory splitter): Remove.
8422         (DImode immediate->memory peephole2): Remove.
8423         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
8424         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
8425         alternative to (!o,*r).
8426         (*movtf_internal_sse): New pattern.
8427         (*movxf_internal_rex64): New pattern.
8428         (*movxf_internal): Disable for TARGET_64BIT.
8429         (*movdf_internal_rex64): Remove (!o,F) alternative.
8431 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
8433         PR middle-end/56074
8434         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
8435         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
8436         * tree-vect-loop-manip.c (find_loop_location): Also ignore
8437         stmt locations where LOCATION_LOCUS of the stmt location is
8438         UNKNOWN_LOCATION or BUILTINS_LOCATION.
8440         PR target/55686
8441         * config/i386/i386.md (UNSPEC_STOS): New.
8442         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
8443         *strsetqi_1): Add UNSPEC_STOS.
8445 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
8447         PR c++/56067
8448         * doc/invoke.texi: Remove left over -Wsynth example.
8450 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
8452         PR tree-optimization/56051
8453         * fold-const.c (fold_binary_loc): Don't fold
8454         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8455         a narrowing conversion, or widening conversion from signed
8456         to unsigned.
8458 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
8460         PR rtl-optimization/56023
8461         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8462         dependent on debug instruction.
8464 2013-01-21  Martin Jambor  <mjambor@suse.cz>
8466         PR middle-end/56022
8467         * function.c (allocate_struct_function): Call
8468         invoke_set_current_function_hook earlier.
8470 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
8472         * reload1.c (init_reload): Only initialize reload_obstack
8473         during the first call.
8475 2013-01-21  Marek Polacek  <polacek@redhat.com>
8477         * cfgloop.c (verify_loop_structure): Fix up grammar.
8479 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
8481         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8482         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8484 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8486         PR target/56058
8487         * config/arm/marvell-pj4.md: Update copyright year.
8488         Fix up use of alu to alu_reg and simple_alu_imm.
8490 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
8492         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8494 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
8496         PR target/55433
8497         * lra-constraints.c (curr_insn_transform): Don't reuse original
8498         insn for secondary memory move when memory mode should be different.
8500 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8502         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
8503         atomic_storedi_1): New patterns.
8505 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8507         btver2 pipeline descriptions.
8508         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
8509         descriptions.
8510         * config/i386/i386.md (btver2_decode): New type attributes.
8511         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
8512         type attributes.
8513         * config/i386/btver2.md: New file describing btver2 pipelines.
8515 2013-01-19  Andrew Pinski  <apinski@cavium.com>
8517         PR tree-optimization/52631
8518         * tree-ssa-sccvn (visit_use): Before looking up the original
8519         statement, try looking up the simplified expression.
8521 2013-01-19  Anthony Green  <green@moxielogic.com>
8523         * config/moxie/moxie.c (moxie_expand_prologue): Set
8524         current_function_static_stack_size.
8526 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
8528         PR tree-optimization/56029
8529         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
8530         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
8532 2013-01-18  Sharad Singhai  <singhai@google.com>
8534         PR tree-optimization/55995
8535         * dumpfile.c (dump_loc): Print location only if available.
8536         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
8538 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
8540         PR target/55433
8541         * lra-constraints.c (curr_insn_transform): Reuse original insn for
8542         secondary memory move.
8543         (inherit_reload_reg): Use rclass instead of cl for
8544         check_secondary_memory_needed_p.
8546 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
8548         PR middle-end/56015
8549         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
8550         the case where writing real complex part of target modifies op1.
8552 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
8554         * config/aarch64/aarch64-simd.md
8555         (aarch64_vcond_internal<mode>): Handle unordered cases.
8556         * config/aarch64/iterators.md (v_cmp_result): New.
8558 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
8559             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8561         * config/arm/marvell-pj4.md: New file.
8562         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
8563         * config/arm/arm.md (generic_sched): Add marvell_pj4.
8564         (generic_vfp): Likewise.
8565         * config/arm/arm-cores.def: Add marvell-pj4.
8566         * config/arm/arm-tune.md: Regenerate.
8567         * config/arm/arm-tables.opt: Regenerate.
8568         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
8569         * doc/invoke.texi: Document marvell-pj4.
8571 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
8573         * config/aarch64/arm_neon.h: Map scalar types to standard types.
8575 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
8577         PR debug/54114
8578         PR debug/54402
8579         PR debug/49888
8580         * var-tracking.c (negative_power_of_two_p): New.
8581         (global_get_addr_cache, local_get_addr_cache): New.
8582         (get_addr_from_global_cache, get_addr_from_local_cache): New.
8583         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
8584         heading comment.
8585         (vt_stack_offset_p): Remove.
8586         (vt_canon_true_dep): Always canonicalize loc's address.
8587         (clobber_overlapping_mems): Make sure we have a MEM.
8588         (local_get_addr_clear_given_value): New.
8589         (val_reset): Clear local cached entries.
8590         (compute_bb_dataflow): Create and release the local cache.
8591         Disable duplicate MEMs clobbering.
8592         (emit_notes_in_bb): Clobber MEMs likewise.
8593         (vt_emit_notes): Create and release the local cache.
8594         (vt_initialize, vt_finalize): Create and release the global
8595         cache, respectively.
8596         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
8598 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
8600         PR libmudflap/53359
8601         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
8602         not found in the symtab.
8604 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
8606         PR debug/56006
8607         PR rtl-optimization/55547
8608         PR rtl-optimization/53827
8609         PR debug/53671
8610         PR debug/49888
8611         * alias.c (offset_overlap_p): New, factored out of...
8612         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
8613         the conservative special case for symbolic constants.  Don't
8614         adjust zero sizes on alignment.
8616 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
8618         PR rtl-optimization/52573
8619         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
8620         REG_UNUSED for the same register.
8622 2013-01-17  Richard Biener  <rguenther@suse.de>
8623             Marek Polacek  <polacek@redhat.com>
8625         PR rtl-optimization/55833
8626         * loop-unswitch.c (unswitch_loops): Move loop verification...
8627         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
8628         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
8629         Set it to true when we're removing a loop from hierarchy tree in
8630         an irreducible region.
8631         (fix_bb_placements): Adjust caller.
8632         (fix_loop_placements): Likewise.
8634 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
8636         * config/avr/builtins.def (DEF_BUILTIN): Factor out
8637         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
8638         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
8639         Remove ID.  Adjust comments.
8640         * config/avr/avr-c.c (avr_builtin_name): Remove.
8641         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
8642         * config/avr/avr.c (avr_tolower): New static function.
8643         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
8644         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
8645         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
8646         default expansion.
8648 2013-01-17  Jan Hubicka  <jh@suse.cz>
8650         PR tree-optimization/55273
8651         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
8653 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
8655         PR target/55981
8656         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
8657         store through atomic_store<mode>_1.
8658         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
8660 2013-01-17  Martin Jambor  <mjambor@suse.cz>
8662         PR tree-optimizations/55264
8663         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
8664         for virtual methods.
8665         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
8666         virtual methods before inlining is over.
8667         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
8668         virtual functions.
8669         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
8670         non-virtual.
8672 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
8674         PR rtl-optimization/56005
8675         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
8676         pending reads for prefetch.
8678 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
8680         * config/aarch64/aarch64.md
8681         (*cstoresi_neg_uxtw): New pattern.
8682         (*cmovsi_insn_uxtw): New pattern.
8683         (*<optab>si3_uxtw): New pattern.
8684         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
8685         (*<optab>si3_insn_uxtw): New pattern.
8686         (*bswapsi2_uxtw): New pattern.
8688 2013-01-16  Richard Biener  <rguenther@suse.de>
8690         * tree-inline.c (tree_function_versioning): Remove set but
8691         never used variable.
8693 2013-01-16  Richard Biener  <rguenther@suse.de>
8695         PR tree-optimization/55964
8696         * tree-flow.h (rename_variables_in_loop): Remove.
8697         (rename_variables_in_bb): Likewise.
8698         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
8699         (copy_loop_before): Adjust and delete update-ssa status.
8700         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8701         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
8702         (rename_variables_in_loop): Remove.
8703         (slpeel_update_phis_for_duplicate_loop): Likewise.
8704         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
8705         use available cfg machinery instead of duplicating it.
8706         Update PHI nodes and perform poor-mans SSA update here.
8707         (slpeel_tree_peel_loop_to_edge): Adjust.
8709 2013-01-16  Richard Biener  <rguenther@suse.de>
8711         PR tree-optimization/54767
8712         PR tree-optimization/53465
8713         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
8714         (vrp_visit_phi_node): For PHI arguments coming via backedges
8715         drop all symbolical range information.
8716         (execute_vrp): Compute backedges.
8718 2013-01-16  Richard Biener  <rguenther@suse.de>
8720         * doc/install.texi: Update CLooG and ISL requirements to
8721         0.18.0 and 0.11.1.
8723 2013-01-16  Christian Bruel  <christian.bruel@st.com>
8725         PR target/55301
8726         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
8727         (broken_move): Handle UNSPECV_SP_SWITCH_B.
8728         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
8730 2013-01-16  DJ Delorie  <dj@redhat.com>
8732         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8733         (UNSPECV_SP_SWITCH_E): New.
8734         (sp_switch_1): Change to an unspec.
8735         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
8736         replace $r15.
8738 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
8740         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
8741         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
8742         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
8743         (expand_mem_thread_fence): Ditto.
8744         (expand_mem_signal_fence): Ditto.
8745         (expand_atomic_load): Ditto.
8746         (expand_atomic_store): Ditto.
8748 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
8750         PR rtl-optimization/55547
8751         PR rtl-optimization/53827
8752         PR debug/53671
8753         PR debug/49888
8754         * alias.c (memrefs_conflict_p): Set sizes to negative after
8755         AND adjustments.
8757 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
8759         PR target/55940
8760         * function.c (thread_prologue_and_epilogue_insns): Always
8761         add crtl->drap_reg to set_up_by_prologue.set, even if
8762         stack_realign_drap is false.
8764 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8766         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
8767         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
8768         *call): Fix indention.
8770 2013-01-15  Tom de Vries  <tom@codesourcery.com>
8772         PR target/55876
8773         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
8774         Update comment.
8776 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
8778         PR rtl-optimization/55153
8779         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
8781 2013-01-15  Martin Jambor  <mjambor@suse.cz>
8783         PR tree-optimization/55920
8784         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
8785         accesses as grp_to_be_debug_replaced.
8787 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
8789         PR tree-optimization/55920
8790         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
8791         there is non-useless type conversion needed from debug rhs to lhs,
8792         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
8794 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
8795             Mikael Pettersson  <mikpe@it.uu.se>
8797         PR target/43961
8798         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
8799         Thumb.
8800         (ASM_OUTPUT_CASE_LABEL): Remove.
8801         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
8802         * final.c (shorten_branches): Update alignment of labels before
8803         jump tables if CASE_VECTOR_SHORTEN_MODE.
8805 2013-01-15  Richard Biener  <rguenther@suse.de>
8807         PR bootstrap/55961
8808         * system.h: Do not include gmp.h for building host tools.
8810 2013-01-15  Richard Biener  <rguenther@suse.de>
8812         PR middle-end/55882
8813         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
8814         account for bitpos when computing alignment.
8816 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
8818         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
8819         (ix86_target_macros_internal): Likewise.
8821         * config/i386/i386.c (m_CORE2I7): Removed.
8822         (m_CORE_HASWELL): New macro.
8823         (m_CORE_ALL): Likewise.
8824         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
8825         (initial_ix86_arch_features): Likewise.
8826         (processor_target_table): Initializations for Core avx2.
8827         (cpu_names): New names "core-avx2".
8828         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
8829         PROCESSOR_CORE_HASWELL.
8830         (ix86_issue_rate): New case.
8831         (ia32_multipass_dfa_lookahead): Likewise.
8832         (ix86_sched_init_global): Likewise.
8834         * config/i386/i386.h (TARGET_HASWELL): New macro.
8835         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
8836         (processor_type): New PROCESSOR_HASWELL.
8838 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
8840         PR tree-optimization/55955
8841         * tree-vect-loop.c (vectorizable_reduction): Give up early on
8842         *SHIFT_EXPR and *ROTATE_EXPR codes.
8844         PR tree-optimization/48766
8845         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
8846         -ftrapv disable -fwrapv.
8848 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
8850         PR target/55974
8851         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
8852         etc. to 1 and not to __flash.
8853         Use LL suffix for __INT24_MAX__ with -mint8.
8854         Use ULL suffix for __UINT24_MAX__ with -mint8.
8856 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
8858         * config/avr/avr-arch.h
8859         (struct base_arch_s): Use typedef avr_arch_t instead.
8860         (struct arch_info_s): Use typedef avr_arch_info_t instead.
8861         (struct mcu_type_s): Use typedef avr_mcu_t instead.
8862         * config/avr/avr.c: Same.
8863         * config/avr/avr-devices.c: Same.
8864         * config/avr/driver-avr.c: Same.
8865         * config/avr/gen-avr-mmcu-texi.c: Same.
8866         * config/avr/avr-mcus.def: Adjust comment.
8868 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
8870         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
8871         * config/aarch64/iterators.md (VALLDI): New.
8873 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
8874             Andi Kleen  <ak@linux.intel.com>
8876         PR target/55948
8877         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
8878         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
8879         memmodel flag.
8881 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
8883         * config/avr/avr-stdint.h: Remove trailing blanks.
8884         * config/avr/avr-log.h: Same.
8885         * config/avr/avr-arch.h: Same.
8886         * config/avr/avr-devices.c: Same.
8887         * config/avr/avr-dimode.md: Same.
8888         * config/avr/predicates.md: Same.
8889         * config/avr/avr-c.c: Same.  And fix typo.
8891         * config/avr/avr-protos.h: Same.  And:
8892         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
8893         (init_cumulative_args): Rename to avr_init_cumulative_args.
8894         (expand_prologue): Rename to avr_expand_prologue.
8895         (expand_epilogue): Rename to avr_expand_epilogue.
8896         (adjust_insn_length): Rename to avr_adjust_insn_length.
8897         (notice_update_cc): Rename to avr_notice_update_cc.
8898         (final_prescan_insn): Rename to avr_final_prescan_insn.
8899         * config/avr/avr.c: Same.
8900         * config/avr/avr.h: Same.
8901         * config/avr/avr.md: Remove trailing blanks.
8902         (prologue): Use avr_expand_prologue.
8903         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
8905 2013-01-14  Richard Biener  <rguenther@suse.de>
8907         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
8908         verify_location, collect_subblocks): New functions.
8909         (verify_gimple_in_cfg): Verify that locations only reference
8910         BLOCKs in the functions BLOCK tree.
8912 2013-01-14  Richard Biener  <rguenther@suse.de>
8914         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
8915         PHI argument.
8916         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
8917         unshare reference.
8918         (insert_out_of_ssa_copy_on_edge): Likewise.
8919         (rewrite_close_phi_out_of_ssa): Likewise.
8920         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
8921         debug expressions.
8922         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
8923         propagated constants.
8924         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
8925         can not be shared.
8927 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
8929         * config/avr/avr-modes.def: Add GPL copyright notice.
8931 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
8933         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
8934         MEMMODEL_MASK to determine memory model.
8935         (atomic_store<mode>): Ditto from operands[2].
8936         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
8938 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
8940         PR fortran/55935
8941         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
8942         (fold_gimple_assign): Don't call unshare_expr here.
8943         (fold_ctor_reference): Call unshare_expr.
8945 2013-01-13  Terry Guo  <terry.guo@arm.com>
8947         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
8948         * doc/fragments.texi: Document MULTILIB_REUSE.
8949         * gcc.c (multilib_reuse): New internal spec.
8950         (set_multilib_dir): Also search multilib from multilib_reuse.
8951         * genmultilib (tmpmultilib3): Refactor code.
8952         (tmpmultilib4): Ditto.
8953         (multilib_reuse): New multilib argument.
8955 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
8957         * Makefile.in: Update copyright.
8959 2013-01-12  Tom de Vries  <tom@codesourcery.com>
8961         PR middle-end/55890
8962         * calls.c (expand_call): Check if arg_nr is valid.
8964 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8966         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
8967         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
8968         documentation.  Add missing '__' in front of
8969         __builtin_ia32_packssdw256.
8971 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8973         PR target/55719
8974         * config/s390/s390.c (s390_preferred_reload_class): Do not return
8975         NO_REGS for larl operands.
8976         (s390_reload_larl_operand): Use s390_load_address instead of
8977         emit_move_insn.
8979 2013-01-11  Richard Biener  <rguenther@suse.de>
8981         * tree-cfg.c (verify_node_sharing_1): Split out from ...
8982         (verify_node_sharing): ... here.
8983         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
8985 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
8987         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
8988         Substitute TREECHECKING.
8989         * configure: Regenerate.
8990         * Makefile.in (TREECHECKING): New.
8992 2013-01-11  Richard Guenther  <rguenther@suse.de>
8994         PR tree-optimization/44061
8995         * tree-vrp.c (extract_range_basic): Compute zero as
8996         value-range for __builtin_constant_p of function parameters.
8998 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
9000         Update copyright years.
9002 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
9004         PR rtl-optimization/55672
9005         * lra-eliminations.c (mark_not_eliminable): Permit addition with
9006         const to be eliminable.
9008 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
9010         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
9011         * configure: Regenerate.
9013 2013-01-10  Richard Biener  <rguenther@suse.de>
9015         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
9017 2013-01-10  Richard Biener  <rguenther@suse.de>
9019         PR bootstrap/55792
9020         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
9021         locations for virtual PHI arguments.
9022         (rewrite_update_phi_arguments): Likewise.
9024 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
9026         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
9027         on to assembler.
9029 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
9031         PR tree-optimization/55921
9032         * tree-complex.c (expand_complex_asm): New function.
9033         (expand_complex_operations_1): Call it for GIMPLE_ASM.
9035 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9037         PR target/55718
9038         * config/s390/s390.c (s390_symref_operand_p)
9039         (s390_loadrelative_operand_p): Merge the two functions.
9040         (s390_check_qrst_address, print_operand_address): Add parameters
9041         to s390_loadrelative_operand_p invokation.
9042         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
9043         (s390_reload_larl_operand, s390_secondary_reload): Use
9044         s390_loadrelative_operand_p instead of s390_symref_operand_p.
9045         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
9047 2013-01-09  Mike Stump  <mikestump@comcast.net>
9049         * dse.c (record_store): Remove unnecessary assert.
9051 2013-01-09  Jan Hubicka  <jh@suse.cz>
9053         PR tree-optimization/55569
9054         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
9055         * cfgloop.h (scale_loop_profile): Likewise.
9057 2013-01-09  Jan Hubicka  <jh@suse.cz>
9059         PR lto/45375
9060         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
9061         functions.
9062         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
9064 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
9066         PR middle-end/55114
9067         * expr.h (maybe_emit_group_store): Declare.
9068         * expr.c (maybe_emit_group_store): New function.
9069         * builtins.c (expand_builtin_int_roundingfn): Call it.
9070         (expand_builtin_int_roundingfn_2): Likewise.
9072 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
9074         PR rtl-optimization/55829
9075         * lra-constraints.c (match_reload): Add code for absent output.
9076         (curr_insn_transform): Add code for reloads of matched inputs
9077         without output.
9079 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
9081         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
9082         attribute of movddup insn to DF.
9083         (*vec_interleave_lowv2df): Ditto.
9084         (vec_dupv2df): Ditto.
9086 2013-01-09  Jan Hubicka  <jh@suse.cz>
9088         PR tree-optimiation/55875
9089         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
9090         EVERY_ITERATION parameter.
9091         (number_of_iterations_exit): Check if exit is executed every iteration.
9092         (idx_infer_loop_bounds): Similarly here.
9093         (n_of_executions_at_most): Simplify
9094         to only test for cases where statement is dominated by the
9095         particular bound; handle correctly the "postdominance" test.
9096         (scev_probably_wraps_p): Use max loop iterations info
9097         as a global bound first.
9099 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
9100             Nick Clifton  <nickc@redhat.com>
9102         * config/v850/v850.md (cbranchsf4): New pattern.
9103         (cstoresf4): New pattern.
9104         (cbranchdf4): New pattern.
9105         (cstoredf4): New pattern.
9106         (movsicc): Disallow floating point comparisons.
9107         (cmpsf_le_insn): Fix order of operators.
9108         (cmpsf_lt_insn): Likewise.
9109         (cmpsf_eq_insn): Likewise.
9110         (cmpdf_le_insn): Likewise.
9111         (cmpdf_lt_insn): Likewise.
9112         (cmpdf_eq_insn): Likewise.
9113         (cmpsf_ge_insn): Use LE comparison.
9114         (cmpdf_ge_insn): Likewise.
9115         (cmpsf_gt_insn): Use LT comparison.
9116         (cmpdf_gt_insn): Likewise.
9117         (cmpsf_ne_insn): Delete pattern.
9118         (cmpdf_ne_insn): Delete pattern.
9119         * config/v850/v850.c (v850_gen_float_compare): Use
9120         gen_cmpdf_eq_insn for NE comparison.
9121         (v850_float_z_comparison_operator)
9122         (v850_float_nz_comparison_operator): Move from here ...
9123         * config/v850/predicates.md: ... to here.  Move GT and GE
9124         comparisons into v850_float_z_comparison_operator.
9125         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
9126         Delete prototype.
9127         (v850_float_nz_comparison_operator): Likewise.
9129 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9131         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
9132         with calls to gen_insvsi/gen_insvdi.
9134 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9136         * config/i386/i386.c (initial_ix86_tune_features): Set up
9137         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
9139 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
9140             Jakub Jelinek  <jakub@redhat.com>
9142         PR tree-optimization/48189
9143         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
9144         If nitercst is 0, don't predict the exit edge.
9146 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9148         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
9149         in asm_fprintf with reg_names.
9150         (aarch64_print_operand_address): Likewise.
9151         (aarch64_return_addr): Likewise.
9152         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
9154 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9156         * config/pa/pa.h (VAL_U6_BITS_P): Define.
9157         (INT_U6_BITS): Likewise.
9158         * config/pa/predicates.md (uint6_operand): New predicate.
9159         (shift5_operand, shift6_operand): Likewise.
9160         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
9161         arith32_operand.
9162         (lshrdi3): Use shift6_operand.
9163         (shrpsi4, shrpdi4): New insn patterns.
9164         (extzv): Delete expander.
9165         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
9166         predicates in unamed zero extract patterns.  Tighten common constraint.
9167         (extv): Delete expander.
9168         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
9169         predicates in unamed sign extract patterns.  Tighten common constraint.
9170         (insv): Delete expander.
9171         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
9172         predicates in unamed insert patterns.  Tighten common constraint.
9173         Change uint32_operand predicate to uint6_operand predicate in unamed
9174         DImode pattern to insert constant values of type 1...1xxxx.
9176 2013-01-04  Jan Hubicka  <jh@suse.cz>
9178         PR tree-optimization/55823
9179         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
9180         issue.
9182 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
9183             Uros Bizjak  <ubizjak@gmail.com>
9185         PR rtl-optimization/55845
9186         * df-problems.c (can_move_insns_across): Stop scanning at
9187         volatile_insn_p source instruction or give up if
9188         across_from .. across_to range contains any volatile_insn_p
9189         instructions.
9191 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
9193         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
9194         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
9195         Declare.
9196         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
9197         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
9199 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
9201         PR fortran/55341
9202         * asan.c (asan_clear_shadow): New function.
9203         (asan_emit_stack_protection): Use it.
9205 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
9207         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
9208         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
9209         with tab instead of space.
9211 2013-01-08  Nick Clifton  <nickc@redhat.com>
9213         * config/rl78/rl78.c (rl78_expand_prologue): Always select
9214         register bank 0 at the start of an interrupt handler.
9215         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
9216         MDBH registers.
9218 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
9220         * config/aarch64/aarch64-simd.md
9221         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
9222         (aarch64_simd_bsl): Likewise.
9223         (aarch64_vcond_internal<mode>): Likewise.
9224         (vcond<mode><mode>): Likewise.
9225         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
9226         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
9228 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
9230         * config/aarch64/aarch64-builtins.c
9231         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
9233 2013-01-08  Martin Jambor  <mjambor@suse.cz>
9235         PR debug/55579
9236         * tree-sra.c (analyze_access_subtree): Return true also after
9237         potentially creating a debug-only replacement.
9239 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
9241         PR middle-end/55890
9242         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
9244         PR tree-optimization/54120
9245         * tree-vrp.c (range_fits_type_p): Don't allow
9246         src_precision < precision from signed vr to unsigned_p
9247         if vr->min or vr->max is negative.
9248         (simplify_float_conversion_using_ranges): Test can_float_p
9249         against CODE_FOR_nothing.
9251 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
9252             Richard Biener  <rguenther@suse.de>
9254         PR middle-end/55851
9255         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
9256         types instead of just INTEGER_TYPE types.
9258 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
9260         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
9261         TF_SIZE): Define.
9263 2013-01-07  Steve Ellcey  <sellcey@mips.com>
9265         PR target/42661
9266         * config/mips/mips.opt: Change mad to mmad to match documentation.
9268 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9270         PR target/55897
9271         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
9272         .progmemx.data now.
9274 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9276         PR target/55897
9277         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
9278         (avr_addrspace_t): Add .section_name field.
9279         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
9280         array size.
9281         (avr_addrspace): Same.  Initialize .section_name.  Remove last
9282         NULL entry.  Put __memx into .progmemx.data.
9283         (progmem_section_prefix): Remove.
9284         (avr_asm_init_sections): No need to initialize progmem_section.
9285         (avr_asm_named_section): Use avr_addrspace[].section_name to get
9286         section name prefix.
9287         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
9288         retrieve the progmem section.
9289         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
9290         boundary to run over avr_addrspace[].
9291         (avr_register_target_pragmas): Ditto.
9293 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
9295         * varasm.c (output_constant_def_contents): For asan_protect_global
9296         protected strings, adjust DECL_ALIGN if needed, before testing for
9297         anchored symbols.
9298         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
9299         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
9300         normal decls.
9301         (output_object_block): For asan protected decls, emit asan padding
9302         after their contents.
9303         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
9304         (asan_finish_file): Test it here instead.
9306 2013-01-07  Nick Clifton  <nickc@redhat.com>
9307             Matthias Klose  <doko@debian.org>
9308             Doug Kwan  <dougkwan@google.com>
9309             H.J. Lu  <hongjiu.lu@intel.com>
9311         PR driver/55470
9312         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
9314         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
9316         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
9318         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
9320         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
9322 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9324         PR target/54461
9325         * doc/install.texi (Cross-Compiler-Specific Options): Document
9326         --with-avrlibc.
9328 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
9330         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
9331         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
9332         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
9333         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
9334         vqmovun_high_s64): Fix source operand number and update copyright.
9336 2013-01-07  Richard Biener  <rguenther@suse.de>
9338         PR middle-end/55890
9339         * gimple.h (gimple_call_builtin_p): New overload.
9340         * gimple.c (validate_call): New function.
9341         (gimple_call_builtin_p): Likewise.
9342         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9343         Use gimple_call_builtin_p.
9344         (find_func_clobbers): Likewise.
9345         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
9346         (strlen_optimize_stmt): Likewise.
9348 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
9350         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
9351         (vld1q_dup_*): Likewise.
9352         (vld1_*): Likewise.
9353         (vld1q_*): Likewise.
9354         (vld1_lane_*): Likewise.
9355         (vld1q_lane_*): Likewise.
9357 2013-01-07  Richard Biener  <rguenther@suse.de>
9359         * lto-streamer.h (LTO_minor_version): Bump to 2.
9361 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
9363         * config/aarch64/aarch64-protos.h
9364         (aarch64_const_double_zero_rtx_p): Rename to...
9365         (aarch64_float_const_zero_rtx_p): ...this.
9366         (aarch64_float_const_representable_p): New.
9367         (aarch64_output_simd_mov_immediate): Likewise.
9368         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
9369         move immediate case.
9370         * config/aarch64/aarch64.c
9371         (aarch64_const_double_zero_rtx_p): Rename to...
9372         (aarch64_float_const_zero_rtx_p): ...this.
9373         (aarch64_print_operand): Allow printing of new constants.
9374         (aarch64_valid_floating_const): New.
9375         (aarch64_legitimate_constant_p): Check for valid floating-point
9376         constants.
9377         (aarch64_simd_valid_immediate): Likewise.
9378         (aarch64_vect_float_const_representable_p): New.
9379         (aarch64_float_const_representable_p): Likewise.
9380         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
9381         (aarch64_output_simd_mov_immediate): New.
9382         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
9383         (*movdf_aarch64): Likewise.
9384         * config/aarch64/constraints.md (Ufc): New.
9385         (Y): call aarch64_float_const_zero_rtx.
9386         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
9388 2013-01-07  Richard Biener  <rguenther@suse.de>
9390         PR tree-optimization/55888
9391         PR tree-optimization/55862
9392         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
9393         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
9394         not if it is contained therein.
9396 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9398         * config/avr/t-avr: Typo.
9400 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
9402         PR55243
9403         * config/avr/t-avr: Don't automatically rebuild
9404         $(srcdir)/config/avr/t-multilib
9405         $(srcdir)/config/avr/avr-tables.opt
9406         $(srcdir)/doc/avr-mmcu.texi
9407         (avr-mcus): New phony target to build them on request.
9408         (s-avr-mlib, s-avr-mmcu-texi): Remove.
9409         * avr/avr-mcus.def: Adjust comments.
9411 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
9413         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
9415 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
9417         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
9419 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
9421         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
9423 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
9425         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
9426         to generate profiling.
9427         * config/rs6000/aix64.h (LIB_SPEC): Same.
9429 2013-01-04  Andrew Pinski  <apinski@cavium.com>
9431         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
9432         New function.
9433         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9435 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
9437         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
9438         unconditionally.
9439         (ix86_expand_move): Ditto.
9440         (ix86_zero_extend_to_Pmode): Ditto.
9441         (ix86_expand_call): Ditto.
9442         (ix86_expand_special_args_builtin): Ditto.
9443         (ix86_expand_builtin): Ditto.
9445 2013-01-04  Richard Biener  <rguenther@suse.de>
9447         PR tree-optimization/55862
9448         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9449         translating them through PHI nodes.
9451 2013-01-04  Martin Jambor  <mjambor@suse.cz>
9453         PR tree-optimization/55755
9454         * tree-sra.c (sra_modify_assign): Do not check that an access has no
9455         children when trying to avoid producing a VIEW_CONVERT_EXPR.
9457 2013-01-04  Marek Polacek  <polacek@redhat.com>
9459         PR middle-end/55859
9460         * opts.c (default_options_optimization): Clarify error message.
9462 2013-01-04  Richard Biener  <rguenther@suse.de>
9464         PR middle-end/55863
9465         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9466         reassociation.
9468 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9470         PR target/53789
9471         * config/pa/pa.md (movsi): Revert previous change.
9472         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9473         references.
9475 2013-01-03  Richard Henderson  <rth@redhat.com>
9477         * config/i386/i386.c (ix86_expand_move): Always assign to op1
9478         after eliminating TLS symbols.
9480 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
9482         PR bootstrap/50167
9483         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9484         * graphite-poly.c (debug_gmp_value): Likewise.
9486 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
9488         PR target/55712
9489         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9490         selected code model, define __code_mode_small__, __code_model_medium__,
9491         __code_model_large__, __code_model_32__ or __code_model_kernel__.
9492         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9493         xchg temporary register with %k.  Declare temporary register as
9494         early clobbered.
9495         [__x86_64__]: For medium and large code models, preserve %rbx register.
9497 2013-01-03  Richard Biener  <rguenther@suse.de>
9499         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
9500         (dump_subscript): Adjust.
9501         (finalize_ddr_dependent): Do not dump redundant info.
9502         (analyze_siv_subscript): Adjust.
9503         (subscript_dependence_tester): Likewise.
9504         (compute_affine_dependence): Likewise.
9506 2013-01-03  Richard Biener  <rguenther@suse.de>
9508         Revert
9509         2013-01-03  Richard Biener  <rguenther@suse.de>
9511         PR tree-optimization/55857
9512         * tree-vect-stmts.c (vectorizable_load): Do not setup
9513         re-alignment for invariant loads.
9515         2013-01-02  Richard Biener  <rguenther@suse.de>
9517         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9518         invariant load do not generate a vector load from the scalar location.
9520 2013-01-03  Richard Biener  <rguenther@suse.de>
9522         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
9523         for not vectorizing.
9524         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9525         not build INDIRECT_REFs, call get_name once only.
9526         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
9527         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
9529 2013-01-03  Richard Biener  <rguenther@suse.de>
9531         PR tree-optimization/55857
9532         * tree-vect-stmts.c (vectorizable_load): Do not setup
9533         re-alignment for invariant loads.
9535 2013-01-03  Richard Biener  <rguenther@suse.de>
9537         PR lto/55848
9538         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
9539         prefer a built-in decl.
9541 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
9543         * gcc.c (process_command): Update copyright notice dates.
9544         * gcov.c (print_version): Likewise.
9545         * gcov-dump.c (print_version): Likewise.
9547         PR rtl-optimization/55838
9548         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
9549         iv0.step, iv1.step and step.
9551 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
9552             Marc Glisse  <marc.glisse@inria.fr>
9554         PR tree-optimization/55832
9555         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
9556         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
9557         integer_{one,zero}_node.
9559 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
9561         PR debug/54402
9562         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
9563         * var-tracking.c (reverse_op): Don't add reverse ops to
9564         VALUEs that have already
9565         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
9567 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
9569         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
9571 2013-01-02  Teresa Johnson  <tejohnson@google.com>
9573         * dumpfile.c (dump_loc): Print filename with location.
9574         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
9575         new location_t parameter to emit complete unroll message with
9576         new dump framework.
9577         (canonicalize_loop_induction_variables): Compute loops location
9578         and pass to try_unroll_loop_completely.
9579         * loop-unroll.c (report_unroll_peel): New function.
9580         (peel_loops_completely): Use new dump format with location
9581         for main dumpfile message, and invoke report_unroll_peel on success.
9582         (decide_unrolling_and_peeling): Ditto.
9583         (decide_peel_once_rolling): Remove old dumpfile message subsumed
9584         by report_unroll_peel.
9585         (decide_peel_completely): Ditto.
9586         (decide_unroll_constant_iterations): Ditto.
9587         (decide_unroll_runtime_iterations): Ditto.
9588         (decide_peel_simple): Ditto.
9589         (decide_unroll_stupid): Ditto.
9590         * cfgloop.c (get_loop_location): New function.
9591         * cfgloop.h (get_loop_location): Declare.
9593 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
9595         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
9596         NULL.
9598 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9600         PR middle-end/55198
9601         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
9602         BLKmode objects when EXPAND_MEMORY is specified.
9604 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
9606         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
9607         in loop predicate.
9608         (fold_builtin_cpu): Do not share cpu model decls across statements.
9610 2013-01-02  Jason Merrill  <jason@redhat.com>
9612         PR c++/55804
9613         * tree.c (build_array_type_1): Revert earlier change.
9615 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
9617         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
9618         "cortex-a57".
9619         * config/aarch64/aarch64-tune.md: Re-generate.
9621 2013-01-02  Richard Biener  <rguenther@suse.de>
9623         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9624         invariant load do not generate a vector load from the scalar location.
9626 2013-01-02  Richard Biener  <rguenther@suse.de>
9628         PR bootstrap/55784
9629         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
9630         * configure: Regenerate.
9632 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9634         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
9635         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
9636         (expand_builtin_int_roundingfn_2): Keep the original target around
9637         for the fallback case.
9639 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9641         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
9642         to be clear for sign changes.
9644 2013-01-01  Jan Hubicka  <jh@suse.cz>
9646         * ipa-inline-analysis.c: Fix formatting.
9648 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
9650         PR tree-optimization/55831
9651         * tree-vect-loop.c (get_initial_def_for_induction): Use
9652         gsi_after_labels instead of gsi_start_bb.
9654 Copyright (C) 2013 Free Software Foundation, Inc.
9656 Copying and distribution of this file, with or without modification,
9657 are permitted in any medium without royalty provided the copyright
9658 notice and this notice are preserved.