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