2013-04-11 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob87683a4e02eedd39571aab77f27e0800aaf47e37
1 2013-04-11  Richard Biener  <rguenther@suse.de>
3         * tree-vect-loop.c (get_initial_def_for_induction): Properly
4         generate vector constants.
6 2013-04-11  Richard Biener  <rguenther@suse.de>
8         PR tree-optimization/56878
9         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
10         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
11         New function.
12         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13         Prefer to align the DR with the most invariant base address.
15 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
18         comment.
20 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
22         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
23         floating-point vector comparisons against 0.
25 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
27         PR tree-optimization/56899
28         * fold-const.c (extract_muldiv_1): Apply distributive law
29         only if TYPE_OVERFLOW_WRAPS (ctype).
31 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
33         PR target/56124
34         * ira-costs.c (scan_one_insn): Check whether the source rtx of
35         loading has side effect.
37 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
39         * config/sparc/sparc.c: Include tree-pass.h.
40         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
41         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
42         head of file.  Change return type.  Split off gate function.
43         (sparc_gate_work_around_errata): New function.
44         (pass_work_around_errata): New pass definition.
45         (insert_pass_work_around_errata) New pass insert definition to
46         insert pass_work_around_errata just after delayed-branch scheduling.
47         (sparc_option_override): Insert the pass.
48         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
50 2013-04-10  David S. Miller  <davem@davemloft.net>
52         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
53         or -mcpu=hypersparc.
55         * target.def (cstore_mode): New hook.
56         * target.h: Include insn-codes.h
57         * targhooks.c: Likewise.
58         (default_cstore_mode): New function.
59         * targhooks.h: Declare it.
60         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
61         * doc/tm.texi: Rebuild.
62         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
63         target hook, rather than inspecting the insn_data.
64         * config/sparc/sparc.c (sparc_cstore_mode): New function.
65         (TARGET_CSTORE_MODE): Redefine.
66         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
67         result patterns.
68         * config/sparc/predicates.md (cstore_result_operand): New special
69         predicate.
70         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
71         Use it for operand 0.
72         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
73         (*snesi_special): Likewise.
74         (*snesi_zero): Likewise.
75         (*seqsi_zero): Likewise.
76         (*sltu_insn): Likewise.
77         (*sgeu_insn): Likewise.
78         (*seqdi_special): Make operand 0 and comparison operation be of
79         DImode.
80         (*snedi_special): Likewise.
81         (*snedi_special_vis3): Likewise.
82         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
83         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
84         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
85         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
86         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
87         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
88         (*sltu_extend_sp64): Likewise.
89         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
90         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
91         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
92         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
93         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
95 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
97         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
98         (aarch64_start_file): Use the new function.
100 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
101             Jason Merrill  <jason@redhat.com>
103         * common.opt: Add -gdwarf.
104         * opts.c (common_handle_option): Handle it.
105         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
107 2013-04-10  Richard Biener  <rguenther@suse.de>
109         * passes.c (execute_todo): Do not call ggc_collect conditional here.
110         (execute_one_ipa_transform_pass): But unconditionally here.
111         (execute_one_pass): And here.
112         (init_optimization_passes): Remove reload pass.
113         * tree-pass.h (TODO_ggc_collect): Remove.
114         (pass_reload): Likewise.
115         * ira.c (do_reload): Merge into ...
116         (ira): ... this.
117         (rest_of_handle_reload): Remove.
118         (pass_reload): Likewise.
119         * config/i386/i386.c (ix86_option_override): Refer to ira instead
120         of reload for vzeroupper pass placement.
121         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
122         and todo_flags_finish of all passes.
124 2013-04-10  Richard Biener  <rguenther@suse.de>
126         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
127         first_const_oprnd field, rename first_def_type to first_op_type.
128         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
129         (vect_get_and_check_slp_defs): Always use the type of the
130         operand.  Allow mixed vect_external_def, vect_constant_def types.
131         (vect_get_constant_vectors): Handle mixed vect_external_def,
132         vect_constant_def types.
134 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
136         PR tree-optimization/55524
137         * tree-ssa-math-opts.c
138         (convert_mult_to_fma): Don't use an fms construct
139         when we don't have an fms operation, but fnma, and it looks
140         likely that we'll be able to use the latter.
142 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
144         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
145         function.
146         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
147         inline fail caused by overwritable functions.
149 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
151         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
152         unnecessary bits in the constant power of two case.
154 2013-04-10  Richard Biener  <rguenther@suse.de>
156         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
157         broken code swapping operands.
158         (vect_build_slp_tree): Do not compute load permutations here.
159         (vect_analyze_slp_instance): Compute load permutations here,
160         after building the SLP tree.
162 2013-04-09  Christian Bruel  <christian.bruel@st.com>
164         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
165         of next/prev_real_insn.
167 2013-04-09  Jan Hubicka  <jh@suse.cz>
169         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
170         Drop aliased parameter.
171         (function_and_variable_visibility): Do not handle alias pairs.
172         * cgraph.c (varpool_externally_visible_p): Update prototype.
173         * varpool.c (varpool_add_new_variable): Update.
175 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
177         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
179 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
181         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
183         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
185 2013-04-09  Marek Polacek  <polacek@redhat.com>
187         PR tree-optimization/48762
188         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum
189         value to 1.
191 2013-04-09  Richard Biener  <rguenther@suse.de>
193         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
194         dealing with cost.
195         (vect_build_slp_tree): Likewise.
196         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
197         calculating the cost of a SLP instance.
198         (vect_analyze_slp_instance): Use it from here, after building
199         the SLP tree.
201 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
203         PR middle-end/56883
204         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
205         expand_omp_for_static_chunk): Use simple_p = true in
206         force_gimple_operand_gsi calls when assigning to addressable decls.
208 2013-04-09  Jeff Law  <law@redhat.com>
210         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
211         when the boolean was created by converting a wider object which
212         had a boolean range.
214 2013-04-09  Richard Biener  <rguenther@suse.de>
216         * tree-vectorizer.h (slp_void_p): Remove.
217         (slp_tree): Typedef before _slp_tree declaration.
218         (struct _slp_tree): Use a vector of slp_tree as children.
219         (vect_get_place_in_interleaving_chain): Remove.
220         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
221         Move ...
222         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
223         and make static.
224         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
225         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
226         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
227         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
228         Use slp_node instead of slp_void_p and adjust.
230 2013-04-09  Richard Biener  <rguenther@suse.de>
232         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
233         work that is not necessary.
235 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
237         PR tree-optimization/56854
238         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
239         forward into clobber stmts if it would change MEM_REF lhs into
240         non-MEM_REF.
242 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
244         * tree.c (type_hash_lookup, type_hash_add): Make static.
245         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
247 2013-04-09  Richard Biener  <rguenther@suse.de>
249         * tree.h (unsave_expr_now): Remove.
250         * tree-inline.c (mark_local_for_remap_r): Remove.
251         (unsave_expr_1): Likewise.
252         (unsave_r): Likewise.
253         (unsave_expr_now): Likewise.
254         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
255         (propagate_tree_value): Likewise.
257 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
259         * doc/rtl.texi (sequence): Rewrite documentation to match the
260         current use of SEQUENCE rtl objects.
261         * rtl.def (SEQUENCE): Likewise.
263         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
264         Update documentation.
265         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
266         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
268         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
270 2013-04-08  Teresa Johnson  <tejohnson@google.com>
272         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
273         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
274         methods.
275         (estimate_edge_size_and_time): Add comment to suggest using rounding
276         methods.
277         (estimate_node_size_and_time): Ditto.
278         (remap_edge_change_prob): Use helper rounding divide methods.
279         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
280         (gimple_mod_pow2_value_transform): Ditto.
281         (gimple_mod_subtract_transform): Ditto.
282         (gimple_ic_transform): Ditto.
283         (gimple_stringops_transform): Ditto.
284         * stmt.c (conditional_probability): Ditto.
285         (emit_case_dispatch_table): Ditto.
286         * lto-cgraph.c (merge_profile_summaries): Ditto.
287         * tree-optimize.c (execute_fixup_cfg): Ditto.
288         * cfgcleanup.c (try_forward_edges): Ditto.
289         * cfgloopmanip.c (scale_loop_profile): Ditto.
290         (loopify): Ditto.
291         (duplicate_loop_to_header_edge): Ditto.
292         (lv_adjust_loop_entry_edge): Ditto.
293         * tree-vect-loop.c (vect_transform_loop): Ditto.
294         * profile.c (compute_branch_probabilities): Ditto.
295         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
296         * lto-streamer-in.c (input_cfg): Ditto.
297         * gimple-streamer-in.c (input_bb): Ditto.
298         * ipa-cp.c (update_profiling_info): Ditto.
299         (update_specialized_profile): Ditto.
300         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
301         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
302         rounding methods.
303         * sched-rgn.c (compute_dom_prob_ps): Ditto.
304         (compute_trg_info): Ditto.
305         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
306         (purge_dead_edges): Ditto.
307         * loop-unswitch.c (unswitch_loop): Ditto.
308         * cgraphclones.c (cgraph_clone_edge): Ditto.
309         (cgraph_clone_node): Ditto.
310         * tree-inline.c (copy_bb): Ditto.
311         (copy_edges_for_bb): Ditto.
312         (initialize_cfun): Ditto.
313         (copy_cfg_body): Ditto.
314         (expand_call_inline): Ditto.
316 2013-04-08  Kai Tietz  <ktietz@redhat.com>
318         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
319         TARGET_CYGWIN64 by TARGET_64BIT.
321 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
323         * config/epiphany/epiphany.md (GPR_1): New constant.
324         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
325         * config/epiphany/epiphany.c (gen_compare_reg):
326         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
327         is already in place.
328         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
329         Don't require being called during rtl expansion; If y operlaps r0,
330         return 0.
331         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
332         (epiphany_expand_epilogue): Likewise.
334         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
335         Don't use CC_FPmode for ORDERED / UNORDERED.
336         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern
337         unconditional.
339         * config/epiphany/constraints.md (CnL): New constraint.
340         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
341         * config/epiphany/predicates.md (add_operand): Allow 1024.
343         * config/epiphany/epiphany.md (logical_op): New code iterator.
344         (op_mnc): New code attribute.
345         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
346         (mov_f+1, mov_f+2): New peephole2 patterns.
348         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
349         (cstoresi4): Also allow re-use of zero result when doing a NE
350         comparison to a non-zero operand.
351         Use (clobber (scratch)) for first insn if the gpr output is not needed.
353         * config/epiphany/epiphany.md (<insn_opname>v2si3):
354         Use gen_addsi3_i / gen_subsi3_i.
356 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
358         PR c++/34949
359         PR c++/50243
360         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
361         contain anything but clobbers, at most one __builtin_stack_restore,
362         optionally debug stmts and final resx, and if it has at least one
363         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
364         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
365         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
366         which isn't defaut definition, remove them.
367         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
368         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
369         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
370         with MEM_REF LHS with SSA_NAME address.
372 2013-04-08  Jeff Law  <law@redhat.com>
374         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
376 2013-04-08  Richard Biener  <rguenther@suse.de>
378         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
379         extra newline.
380         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
381         determined vector type.
382         (vect_analyze_data_refs): Likewise.
383         (vect_get_new_vect_var): Adjust.
384         (vect_create_destination_var): Preserve SSA name versions.
385         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
386         not dump anything here.
388 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
390         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
391         Add member lr_slot_known.
392         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
393         if necessary.
394         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
395         Remove code that sets lr_slot_offset according to what a previous
396         version of epiphany_emit_save_restore used to do.
397         (epiphany_emit_save_restore): When doing an lr save or restore,
398         set/verify lr_slot_known and lr_slot_offset.
400 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
402         PR target/54338
403         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
404         in ALL_REGS.
406 2013-04-08  Richard Biener  <rguenther@suse.de>
408         * alias.c (find_base_term): Fix thinko in previous change.
410 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
412         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
413         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
414         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
415         if possible to compute val.
416         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
417         For QImode integers don't require anything about precision.  Use
418         const_with_all_bytes_same to find out if the constant doesn't have
419         repeated bytes in it.
421 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
423         * config/s390/s390.c (s390_expand_insv): Only accept insertions
424         within mode size.
426 2013-04-08  Marek Polacek  <polacek@redhat.com>
428         PR rtl-optimization/48182
429         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
430         value to 1.
432 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
434         PR target/55487
435         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
436         nuses, make sure we have a label.
438 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
440         PR target/56843
441         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
442         (rs6000_emit_swdiv_low_precision): Remove.
443         (rs6000_emit_swdiv): Rewrite to handle between one and four
444         iterations of Newton-Raphson generally; modify required number of
445         iterations for some cases.
446         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
448 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
450         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
451         set-but-unused variable.
453         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
454         basic blocks of released function bodies garbage-collectable.
456         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
457         (struct rtl_opt_pass): Add TODO_df_finish.
459         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
461 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
463         * config/arm/constraints.md (q): New constraint.
464         * config/arm/ldrdstrd.md: New file.
465         * config/arm/arm.md (ldrdstrd.md) New include.
466         (arm_movdi): Use "q" instead of "r" constraint
467         for double-word memory access.
468         (movdf_soft_insn): Likewise.
469         * config/arm/vfp.md (movdi_vfp): Likewise.
470         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
471         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
472         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
473         (mem_ok_for_ldrd_strd): Likewise.
474         (output_move_double): Update assertion.
476 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
478         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
480 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
482         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
483         define_insn_and_split.
484         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
486 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
488         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
489         define_insn_and_split.
490         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
491         (shiftsi3_compare): New pattern.
492         (rrx): New pattern.
493         * config/arm/unspecs.md (UNSPEC_RRX): New.
495 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
497         * config/arm/arm.md (negdi_extendsidi): New pattern.
498         (negdi_zero_extendsidi): Likewise.
500 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
502         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
503         define_insn_and_split.
504         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
505         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
507 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
509         * config/arm/arm.md (arm_subdi3): Convert define_insn into
510         define_insn_and_split.
511         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
512         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
514 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
516         * config/arm/arm.md (subsi3_carryin): New pattern.
517         (subsi3_carryin_const): Likewise.
518         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
519         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
521 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
523         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
525 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
527         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
528         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
530 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
532         * config/arm/arm.c (arm_expand_builtin): Change fcode
533         type to unsigned int.
535 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
537         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
539 2013-04-04  Ian Lance Taylor  <iant@google.com>
541         * doc/standards.texi (Standards): The Go frontend supports the Go
542         1 language standard.
544 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
546         PR middle-end/56729
547         * df-scan.c (df_insn_delete): Disable failing assert.
549 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
551         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
552         New function prototype.
553         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
554         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
555         (arm_builtin_vectorized_function): New function.
557 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
559         * config/arm/arm_neon_builtins.def: New file.
560         * config/arm/arm.c (neon_builtin_data): Move contents to
561         arm_neon_builtins.def.
562         (enum arm_builtins): Include neon builtin definitions.
563         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
564         * config/arm/t-arm (arm.o): Add dependency on
565         arm_neon_builtins.def.
567 2013-04-04  Marek Polacek  <polacek@redhat.com>
569         PR tree-optimization/48186
570         * predict.c (maybe_hot_frequency_p): Return false if
571         HOT_BB_FREQUENCY_FRACTION is 0.
572         (cgraph_maybe_hot_edge_p): Likewise.
574 2013-04-04  Richard Biener  <rguenther@suse.de>
576         PR tree-optimization/56826
577         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
578         more accurately.
580 2013-04-04  Richard Biener  <rguenther@suse.de>
582         PR tree-optimization/56213
583         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
584         (vect_analyze_data_refs): Allow all non-nested loads as
585         strided loads.
587 2013-04-04  Richard Biener  <rguenther@suse.de>
589         PR tree-optimization/56837
590         * tree-loop-distribution.c (classify_partition): For non-zero
591         values require that the value has the same precision as its
592         mode to be useful as memset value.
594 2013-04-03  Nick Clifton  <nickc@redhat.com>
596         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5
597         architectures.
598         (fmssf4): Use fmsf.s on E3V5 architectures.
599         (fnmasf4): Use fnmaf.s on E3V5 architectures.
600         (fnmssf4): Use fnmsf.s on E3V5 architectures.
602 2013-04-03  Jeff Law  <law@redhat.com>
604         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
605         (lra-eliminations.o): Likewise.
607 2013-04-03  Teresa Johnson  <tejohnson@google.com>
609         * gcov-io.c (compute_working_sets): Moved most of body of old
610         compute_working_sets here from profile.c.
611         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
612         (gcov_working_set_t): Moved typedef here from basic-block.h
613         (compute_working_set): Declare.
614         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
615         (get_working_sets): Renamed from compute_working_set,
616         replace most of body with call to new compute_working_sets.
617         (get_exec_counts): Replace call to compute_working_sets
618         to get_working_sets.
619         * profile.h (get_working_sets): Renamed from
620         compute_working_set.
621         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
622         to get_working_sets.
623         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
624         * gcov-dump.c (dump_working_sets): New function.
626 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
628         * hwint.c (sext_hwi, zext_hwi): New functions.
629         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
630         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
631         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
632         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
633         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
634         (sext_hwi, zext_hwi): New functions.
636 2013-04-03  Jeff Law  <law@redhat.com>
638         PR tree-optimization/56799
639         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
640         back test for widening conversion erroneously dropped in prior
641         change.
643 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
645         PR target/56809
646         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
647         instead of next_real_insn.
649 2013-04-03  Marek Polacek  <polacek@redhat.com>
651         PR sanitizer/55702
652         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
653         functions.
655 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
657         PR target/56809
658         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
659         next_real_insn.
660         (thumb1_output_casesi): Likewise.
661         (thumb2_output_casesi): Likewise.
663 2013-04-03  Richard Biener  <rguenther@suse.de>
665         PR tree-optimization/56817
666         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
667         Split out ...
668         (tree_unroll_loops_completely_1): ... new function to manually
669         walk the loop tree, properly defering outer loops of unrolled
670         loops to later iterations.
672 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
674         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
675         (vectorizable_load): Likewise.
676         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
677         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
679 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
681         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
682         BIT_FIELD_REF.
684 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
686         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
688 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
690         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
692 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
694         PR tree-optimization/56790
695         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant folding.
697 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
699         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
700         Handle VEC_MERGE.
701         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
702         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
703         equal arguments.
705 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
707         PR c/19449
708         * tree.h (force_folding_builtin_constant_p): New decl.
709         * builtins.c (force_folding_builtin_constant_p): New variable.
710         (fold_builtin_constant_p): Fold immediately also if
711         force_folding_builtin_constant_p.
713 2013-04-03  Richard Biener  <rguenther@suse.de>
715         PR tree-optimization/56812
716         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
717         DRs of the same interleaving chain are independent.
719 2013-04-02  Jason Merrill  <jason@redhat.com>
721         * gdbinit.in (pbb): Use debug fn.
723 2013-04-02  Lawrence Crowl  <crowl@google.com>
725         * sese.h (struct ivtype_map_elt_s): Remove unused.
726         (extern debug_ivtype_map): Remove unused.
727         (extern eq_ivtype_map_elts): Remove unused.
728         * sese.c (debug_ivtype_map): Removed unused.
729         (debug_ivtype_map_1): Removed unused.
730         (debug_ivtype_elt): Remove unused.
731         (eq_ivtype_map_elts): Remove unused.
734 2013-04-02  Kai Tietz  <ktietz@redhat.com>
736         PR target/52790
737         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
738         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
739         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static function.
740         (legitimize_pe_coff_symbol): Likewise.
741         (is_imported_p): New helper-function.
742         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
743         for Windows x64 targets.
744         (ix86_expand_prologue): Optimize for pe-coff targets.
745         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
746         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
747         medium/large code-model.
748         (legitimize_pic_address): Likewise.
749         (legitimize_tls_address): Likewise.
750         (ix86_expand_call): Likewise.
751         (x86_output_mi_thunk): Likewise.
752         (get_dllimport_decl): Add new beimport argument.
753         (construct_plt_address): Don't assert for x64 pe-coff targets.
754         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
755         targets.
756         (SYMBOL_FLAG_STUBVAR): New macro.
757         (SYMBOL_REF_STUBVAR_P): Likewise.
758         * config/i386/winnt.c (stub_list): New structure.
759         (stub_head): New local variable.
760         (i386_pe_record_stub): New function.
761         (i386_pe_file_end): Emit refptr-stubs.
763 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
765         PR rtl-optimization/56745
766         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
767         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
769         PR c++/34949
770         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
771         and both of them are MEM_REFs, just compare first argument for
772         equality and attempt to deal even with differing offsets.
774         PR c++/34949
775         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
776         of gimple_clobber_p to be MEM_REF.
777         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
778         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
779         after gimplification.
780         * asan.c (get_mem_ref_of_assignment): Don't instrument
781         gimple_clobber_p stmts.
782         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
783         gimple_clobber_p stmt if they have MEM_REF lhs and
784         are dead because of another gimple_clobber_p stmt.
785         * tree-ssa-live.c (clear_unused_block_pointer): Treat
786         gimple_clobber_p stmts like debug stmts.
787         (remove_unused_locals): Remove clobbers with MEM_REF lhs
788         that refer to unused VAR_DECLs or uninitialized values.
789         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
790         gimple_clobber_p stmts if they refer to removed parameters.
791         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
792         formatting.
794 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
796         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
797         using SWI48 mode attribute.
799 2013-04-02  Wei Mi  <wmi@google.com>
801         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
802         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
803         *<rotate_insn><mode>3_mask in i386.md.
805 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
807         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
809 2013-04-02  Richard Biener  <rguenther@suse.de>
811         PR tree-optimization/56778
812         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
813         Runtime alias tests are not supported for gather loads.
814         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
815         stmts referenced from SSA operands before updating SSA form.
817 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
818             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
820         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
821         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
822         * config/arm/cortex-a53.md: New file.
823         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
824         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
825         * config/arm/arm.c (arm_issue_rate): Likewise.
826         * config/arm/arm-tune.md: Regenerate
827         * config/arm/arm-tables.opt: Regenerate.
828         * config/arm/arm-cores.def: Add cortex-a53.
830 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
832         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
833         non-static link.
835 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
837         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
838         scalar load/store operations using B/H registers.
839         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
841 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
843         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
844         scalar move.
845         * config/aarch64/aarch64.c
846         (aarch64_simd_scalar_immediate_valid_for_move): New.
847         * config/aarch64/aarch64-protos.h
848         (aarch64_simd_scalar_immediate_valid_for_move): New.
849         * config/aarch64/constraints.md (Dh, Dq): New.
850         * config/aarch64/iterators.md (hq): New.
852 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
854         * reorg.c (get_branch_condition): Deal with conditional returns.
855         (fill_simple_delay_slots): Remove dead code dealing with jumps.
857 2013-04-01  Wei Mi  <wmi@google.com>
859         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
860         Truncate operand 2 using %b asm operand modifier.
861         (*<shift_insn><mode>3_mask): Ditto.
862         (*<rotate_insn><mode>3_mask): Ditto.
864 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
866         PR middle-end/56798
867         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
869 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
871         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
872         of next_real_insn.
873         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
875 2013-03-30  Lawrence Crowl  <crowl@google.com>
877         * dse.c (clear_alias_sets): Remove never set.
878         (disqualified_clear_alias_sets): Remove never set.
879         (clear_alias_mode_pool): Remove never set.
880         (dse_step0): Remove condition that is never true.
881         (canon_address): Remove condition that is never true.
882         (dse_step7): Remove condition that is never true.
883         (rest_of_handle_dse): Remove condition that is never true.
884         (rest_of_handle_dse::did_global): Remove never read from above.
885         (dse_step2_spill): Remove never called from above.
886         (dse_step5_spill): Remove never called from above.
888 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
890         * doc/md.texi (Standard Names) <casesi>: Update documentation for
891         JUMP_TABLE_DATA changes.
892         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
893         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
894         (Insns) <jump_table_data>: New entry.
895         * doc/tm.texi: Regenerate.
897         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
899         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
900         for table jump at the end of a basic block using tablejump_p.
901         * targhooks.c (default_invalid_within_doloop): Likewise.
902         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
903         target hook implementation that is identical to the default hook.
904         (rs6000_invalid_within_doloop): Remove.
906         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
907         unused variable from tablejump_p call.
909         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
910         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
911         (INSN_DELETED_P): Likewise.
912         (emit_jump_table_data): New prototype.
913         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
914         after 4th as unused.
915         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
916         * sched-vis.c (print_insn): Likewise.
917         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
918         insn for compatibility with back ends that use next_active_insn to
919         identify jump table data.
920         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
921         (remove_insn): Likewise.
922         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
923         to be emitted.
924         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
925         (emit_jump_table_data): New function.
927         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
928         basic block, a JUMP_TABLE_DATA never is.
929         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
930         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
931         off from code handling real insns.
932         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
933         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
934         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
935         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
936         is not a NONDEBUG_INSN_P.
937         * ira-costs.c (scan_one_insn): Likewise.
938         * jump.c (mark_all_labels): Likewise.
939         (mark_jump_label_1): Likewise.
940         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
941         * lra.c (get_insn_freq): Expect all insns reaching here to be in
942         a basic block.
943         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
944         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
945         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
946         JUMP_TABLE_DATA_P insns.
947         (calculate_elim_costs_all_insns): Likewise.
948         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
949         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
950         (delete_output_reload): Code style fixups.
951         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
952         insn flags on this non-insn.
953         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
954         as scheduling barriers, for pre-change compatibility.
955         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
956         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
958         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
959         redundant JUMP_TABLE_DATA_P test.
960         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
961         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
962         (frv_for_each_packet): Likewise.
963         * config/i386/i386.c (min_insn_size): Likewise.
964         (ix86_avoid_jump_mispredicts): Likewise.
965         * config/m32r/m32r.c (m32r_is_insn): Likewise.
966         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
967         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
968         (mips16_insn_length): Robustify.
969         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
970         (mips16_split_long_branches): Likewise.
971         * config/pa/pa.c (pa_combine_instructions): Likewise.
972         * config/rs6000/rs6000.c (get_next_active_insn): Treat
973         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
974         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
975         as contributing to pool range lengths.
976         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
977         Remove redundant JUMP_TABLE_DATA_P test.
978         (sh_loop_align): Likewise.
979         (split_branches): Likewise.
980         (sh_insn_length_adjustment): Likewise.
981         * config/spu/spu.c (get_branch_target): Likewise.
983 2013-03-29  Jan Hubicka  <jh@suse.cz>
985         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
986         gcov streaming; stream hot bb threshold to ltrans.
987         * predict.c (get_hot_bb_threshold): Break out from ....
988         (maybe_hot_count_p): ... here.
989         (set_hot_bb_threshold): New function.
990         * lto-section-in.c (lto_section_name): Add profile.
991         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
992         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
993         and data-streamer.h
994         (histogram_entry): New structure.
995         (histogram, histogram_pool): New global vars.
996         (histogram_hash): New structure.
997         (histogram_hash::hash): New method.
998         (histogram_hash::equal): Likewise.
999         (account_time_size): New function.
1000         (cmp_counts): New function.
1001         (dump_histogram): New function.
1002         (ipa_profile_generate_summary): New function.
1003         (ipa_profile_write_summary): New function.
1004         (ipa_profile_read_summary): New function.
1005         (ipa_profile): Decide on threshold.
1006         (pass_ipa_profile): Add ipa_profile_write_summary and
1007         ipa_profile_read_summary.
1008         * Makefile.in (ipa.o): Update dependencies.
1009         * lto-streamer.h (LTO_section_ipa_profile): New section.
1011 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1013         * tree.h (VAR_P): New.
1015 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
1017         PR lto/56777
1018         * doc/invoke.texi ([-fwhole-program]): Fix typo.
1020 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
1022         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
1023         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1024         (control_flow_insn_p): Likewise.
1025         * cfgrtl.c (duplicate_insn_chain): Likewise.
1026         * final.c (get_attr_length_1): Likewise.
1027         (shorten_branches): Likewise.
1028         (final_scan_insn): Likewise.
1029         * function.c (instantiate_virtual_regs): Likewise.
1030         * gcse.c (insert_insn_end_basic_block): Likewise.
1031         * ira-costs.c (scan_one_insn): Likewise.
1032         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1033         * lra.c (check_rtl): Likewise.
1034         * reload1.c (elimination_costs_in_insn): Likewise.
1035         * reorg.c (follow_jumps): Likewise.
1037         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
1038         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1039         (thumb_far_jump_used_p): Likewise.
1040         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
1041         (workaround_speculation): Likewise.
1042         (add_sched_insns_for_speculation): Likewise.
1043         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
1044         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1045         (frv_for_each_packet): Likewise.
1046         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
1047         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
1048         (final_emit_insn_group_barriers): Likewise.
1049         * config/m32r/m32r.c (m32r_is_insn): Likewise.
1050         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1051         (mips16_insn_length): Likewise.
1052         * config/pa/pa.c (pa_reorg): Likewise.
1053         (pa_combine_instructions): Likewise.
1054         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
1055         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
1056         (sh_reorg): Likewise.
1057         (split_branches): Likewise.
1058         * config/spu/spu.c (get_branch_target): Likewise.
1060         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
1061         JUMP_TABLE_DATA_P.
1063 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
1065         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
1066         Fix declaration name.
1068 2013-03-28  Lawrence Crowl  <crowl@google.com>
1070         * graphds.h (struct graph.indicies): Remove unused.
1071         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
1072         (SCOP_ORIGINAL_PDDRS): Remove unused.
1073         * sese.h (extern insert_loop_close_phis): Removed unused.
1074         (extern insert_guard_phis): Removed unused.
1075         (extern ivtype_map_elt_info): Removed unused.
1076         (new_ivtype_map_elt): Removed unused.
1077         * sese.c (ivtype_map_elt_info): Removed unused.
1079 2013-03-28  Lawrence Crowl  <crowl@google.com>
1081         * Makefile.in: Add several missing include dependences.
1082         (DUMPFILE_H): New.
1083         (test-dump.o): New.  This object is not added to any executable,
1084         but is present for ad-hoc testing.
1085         * bitmap.c
1086         (debug (const bitmap_head_def &)): New.
1087         (debug (const bitmap_head_def *)): New.
1088         * bitmap.h
1089         (extern debug (const bitmap_head_def &)): New.
1090         (extern debug (const bitmap_head_def *)): New.
1091         * cfg.c
1092         (debug (edge_def &)): New.
1093         (debug (edge_def *)): New.
1094         * cfghooks.c
1095         (debug (basic_block_def &)): New.
1096         (debug (basic_block_def *)): New.
1097         * dumpfile.h
1098         (dump_node (const_tree, int, FILE *)): Correct source file.
1099         * dwarf2out.c
1100         (debug (die_struct &)): New.
1101         (debug (die_struct *)): New.
1102         * dwarf2out.h
1103         (extern debug (die_struct &)): New.
1104         (extern debug (die_struct *)): New.
1105         * gimple-pretty-print.c
1106         (debug (gimple_statement_d &)): New.
1107         (debug (gimple_statement_d *)): New.
1108         * gimple-pretty-print.h
1109         (extern debug (gimple_statement_d &)): New.
1110         (extern debug (gimple_statement_d *)): New.
1111         * ira-build.c
1112         (debug (ira_allocno_copy &)): New.
1113         (debug (ira_allocno_copy *)): New.
1114         (debug (ira_allocno &)): New.
1115         (debug (ira_allocno *)): New.
1116         * ira-int.h
1117         (extern debug (ira_allocno_copy &)): New.
1118         (extern debug (ira_allocno_copy *)): New.
1119         (extern debug (ira_allocno &)): New.
1120         (extern debug (ira_allocno *)): New.
1121         * ira-lives.c
1122         (debug (live_range &)): New.
1123         (debug (live_range *)): New.
1124         * lra-int.h
1125         (debug (lra_live_range &)): New.
1126         (debug (lra_live_range *)): New.
1127         * lra-lives.c
1128         (debug (lra_live_range &)): New.
1129         (debug (lra_live_range *)): New.
1130         * omega.c
1131         (debug (omega_pb_d &)): New.
1132         (debug (omega_pb_d *)): New.
1133         * omega.h
1134         (extern debug (omega_pb_d &)): New.
1135         (extern debug (omega_pb_d *)): New.
1136         * print-rtl.c
1137         (debug (const rtx_def &)): New.
1138         (debug (const rtx_def *)): New.
1139         * print-tree.c
1140         (debug_tree (tree): Move within file.
1141         (debug_raw (const tree_node &)): New.
1142         (debug_raw (const tree_node *)): New.
1143         (dump_tree_via_hooks (const tree_node *, int)): New.
1144         (debug (const tree_node &)): New.
1145         (debug (const tree_node *)): New.
1146         (debug_verbose (const tree_node &)): New.
1147         (debug_verbose (const tree_node *)): New.
1148         (debug_head (const tree_node &)): New.
1149         (debug_head (const tree_node *)): New.
1150         (debug_body (const tree_node &)): New.
1151         (debug_body (const tree_node *)): New.
1152         (debug_vec_tree (tree): Move and reimplement in terms of dump.
1153         (debug (vec<tree, va_gc> &)): New.
1154         (debug (vec<tree, va_gc> *)): New.
1155         * rtl.h
1156         (extern debug (const rtx_def &)): New.
1157         (extern debug (const rtx_def *)): New.
1158         * sbitmap.c
1159         (debug_raw (simple_bitmap_def &)): New.
1160         (debug_raw (simple_bitmap_def *)): New.
1161         (debug (simple_bitmap_def &)): New.
1162         (debug (simple_bitmap_def *)): New.
1163         * sbitmap.h
1164         (extern debug (simple_bitmap_def &)): New.
1165         (extern debug (simple_bitmap_def *)): New.
1166         (extern debug_raw (simple_bitmap_def &)): New.
1167         (extern debug_raw (simple_bitmap_def *)): New.
1168         * sel-sched-dump.c
1169         (debug (vinsn_def &)): New.
1170         (debug (vinsn_def *)): New.
1171         (debug_verbose (vinsn_def &)): New.
1172         (debug_verbose (vinsn_def *)): New.
1173         (debug (expr_def &)): New.
1174         (debug (expr_def *)): New.
1175         (debug_verbose (expr_def &)): New.
1176         (debug_verbose (expr_def *)): New.
1177         (debug (vec<rtx> &)): New.
1178         (debug (vec<rtx> *)): New.
1179         * sel-sched-dump.h
1180         (extern debug (vinsn_def &)): New.
1181         (extern debug (vinsn_def *)): New.
1182         (extern debug_verbose (vinsn_def &)): New.
1183         (extern debug_verbose (vinsn_def *)): New.
1184         (extern debug (expr_def &)): New.
1185         (extern debug (expr_def *)): New.
1186         (extern debug_verbose (expr_def &)): New.
1187         (extern debug_verbose (expr_def *)): New.
1188         (extern debug (vec<rtx> &)): New.
1189         (extern debug (vec<rtx> *)): New.
1190         * sel-sched-ir.h
1191         (_list_iter_cond_expr): Make inline instead of static.
1192         * sreal.c
1193         (debug (sreal &)): New.
1194         (debug (sreal *)): New.
1195         * sreal.h
1196         (extern debug (sreal &)): New.
1197         (extern debug (sreal *)): New.
1198         * tree.h
1199         (extern debug_raw (const tree_node &)): New.
1200         (extern debug_raw (const tree_node *)): New.
1201         (extern debug (const tree_node &)): New.
1202         (extern debug (const tree_node *)): New.
1203         (extern debug_verbose (const tree_node &)): New.
1204         (extern debug_verbose (const tree_node *)): New.
1205         (extern debug_head (const tree_node &)): New.
1206         (extern debug_head (const tree_node *)): New.
1207         (extern debug_body (const tree_node &)): New.
1208         (extern debug_body (const tree_node *)): New.
1209         (extern debug (vec<tree, va_gc> &)): New.
1210         (extern debug (vec<tree, va_gc> *)): New.
1211         * tree-cfg.c
1212         (debug (struct loop &)): New.
1213         (debug (struct loop *)): New.
1214         (debug_verbose (struct loop &)): New.
1215         (debug_verbose (struct loop *)): New.
1216         * tree-dump.c: Add header dependence.
1217         * tree-flow.h
1218         (extern debug (struct loop &)): New.
1219         (extern debug (struct loop *)): New.
1220         (extern debug_verbose (struct loop &)): New.
1221         (extern debug_verbose (struct loop *)): New.
1222         * tree-data-ref.c
1223         (debug (data_reference &)): New.
1224         (debug (data_reference *)): New.
1225         (debug (vec<data_reference_p> &)): New.
1226         (debug (vec<data_reference_p> *)): New.
1227         (debug (vec<ddr_p> &)): New.
1228         (debug (vec<ddr_p> *)): New.
1229         * tree-data-ref.h
1230         (extern debug (data_reference &)): New.
1231         (extern debug (data_reference *)): New.
1232         (extern debug (vec<data_reference_p> &)): New.
1233         (extern debug (vec<data_reference_p> *)): New.
1234         (extern debug (vec<ddr_p> &)): New.
1235         (extern debug (vec<ddr_p> *)): New.
1236         * tree-ssa-alias.c
1237         (debug (pt_solution &)): New.
1238         (debug (pt_solution *)): New.
1239         * tree-ssa-alias.h
1240         (extern debug (pt_solution &)): New.
1241         (extern debug (pt_solution *)): New.
1242         * tree-ssa-alias.c
1243         (debug (_var_map &)): New.
1244         (debug (_var_map *)): New.
1245         (debug (tree_live_info_d &)): New.
1246         (debug (tree_live_info_d *)): New.
1247         * tree-ssa-alias.h
1248         (extern debug (_var_map &)): New.
1249         (extern debug (_var_map *)): New.
1250         (extern debug (tree_live_info_d &)): New.
1251         (extern debug (tree_live_info_d *)): New.
1253 2013-03-28  Jan Hubicka  <jh@suse.cz>
1255         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
1257 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
1259         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
1260         record only when desired or required.
1262 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
1264         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
1265         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
1267 2013-03-28   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1269         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
1270         (*andsi3_compare0_uxtw): New pattern.
1271         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
1272         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
1274 2013-03-28  Jan Hubicka  <jh@suse.cz>
1276         * data-streamer-in.c (streamer_read_gcov_count): New function.
1277         * gimple-streamer-out.c: Include value-prof.h.
1278         (output_gimple_stmt): Output histogram.
1279         (output_bb): Use streamer_write_gcov_count.
1280         * value-prof.c: Include data-streamer.h
1281         (dump_histogram_value): Add HIST_TYPE_MAX.
1282         (stream_out_histogram_value): New function.
1283         (stream_in_histogram_value): New function.
1284         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
1285         (stream_out_histogram_value, stream_in_histogram_value): Declare.
1286         * data-streamer-out.c (streamer_write_gcov_count): New function.
1287         (streamer_write_gcov_count_stream): New function.
1288         * lto-cgraph.c (lto_output_edge): Update counter streaming.
1289         (lto_output_node): Likewise.
1290         (input_node, input_edge): Likewise.
1291         * lto-streamer-out.c (output_cfg): Update streaming.
1292         * lto-streamer-in.c (input_cfg): Likewise.
1293         * data-streamer.h (streamer_write_gcov_count,
1294         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
1295         * gimple-streamer-in.c: Include value-prof.h
1296         (input_gimple_stmt): Input histograms.
1297         (input_bb): Update profile streaming.
1299 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
1301         * genmodes.c (emit_max_int): New function.
1302         (emit_insn_modes_h): Added call to emit_max_function.
1303         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
1304         Added doc.
1305         * machmode.def: Fixed comment.
1307 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
1309         * combine.c (try_combine): Removed useless assert.
1310         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
1312 2013-03-28  Marek Polacek  <polacek@redhat.com>
1313             Richard Biener  <rguenther@suse.de>
1315         PR tree-optimization/56695
1316         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
1317         build signed result of a vector comparison.
1318         * tree-cfg.c (verify_gimple_comparison): Check that a result
1319         of a vector comparison has signed type.
1321 2013-03-28  Richard Biener  <rguenther@suse.de>
1323         PR tree-optimization/37021
1324         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
1325         do not restrict gaps between groups.
1326         * tree-vect-stmts.c (vectorizable_load): Properly account for
1327         a gap between groups.
1329 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
1331         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
1332         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
1333         is not enabled.
1335 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
1337         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
1338         * doc/extend.texi (Named Address Spaces): Ditto.
1339         (Variable Attributes): Ditto.
1341 2013-03-27  Kai Tietz  <ktietz@redhat.com>
1343         * config.build: Add support for cygwin x64 target.
1344         * config.gcc: Likewise.
1345         * config.host: Likewise.
1346         * configure.ac: Likewise
1347         * configure: Regenerated.
1349 2013-03-27 Kai Tietz  <ktietz@redhat.com>
1351         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
1352         * config/i386/t-cygwin-w64: New file.
1353         * config/i386/cygwin-w64.h: New file.
1354         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
1355         and add support for x64-cygwin target.
1356         (CPP_SPEC): Likewise.
1357         (CXX_WRAP_SPEC_LIST): Undefine before define.
1358         (LIBGCJ_SONAME): Use 15 as version.
1360 2013-03-27  Richard Biener  <rguenther@suse.de>
1362         PR tree-optimization/56716
1363         * tree-ssa-structalias.c (perform_var_substitution): Adjust
1364         dumping for ref nodes.
1366 2013-03-27  Martin Jambor  <mjambor@suse.cz>
1368         PR tree-optimization/55334
1369         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
1370         restricted pointers to arrays.
1372 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1374         * Makefile.in (.SUFFIXES): Add .cc.
1375         (.c.o): Apply same recipe for implicit rule .cc.o.
1377 2013-03-27  Richard Biener  <rguenther@suse.de>
1379         PR tree-optimization/37021
1380         * tree-vect-data-refs.c (vect_check_strided_load): Allow
1381         REALPART/IMAGPART_EXPRs around the supported refs.
1382         * tree-ssa-structalias.c (find_func_aliases): Assume that
1383         floating-point values are not used to transfer pointers.
1385 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1387         * target.def (TARGET_HAS_IFUNC_P): New target hook.
1388         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
1389         * doc/tm.texi: Regenerate.
1390         * targhooks.h (default_has_ifunc_p): New.
1391         * targhooks.c (default_has_ifunc_p): Ditto.
1392         * config/linux-protos.h: New file.
1393         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
1394         this hook for linux which disables support of indirect functions in
1395         android.
1396         * config/linux-android.c: New file.
1397         * config/t-linux-android.c: Ditto.
1398         * config.gcc: Added new object file linux-android.o.
1399         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
1400         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
1401         * varasm.c (do_assemble_alias): Likewise.
1402         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
1403         doesn't support indirect functions.
1404         * configure: Regenerate.
1406 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
1408         PR target/56102
1409         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
1410         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
1411         mult-word mode.
1413 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1415         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
1417 2013-03-27  Terry Guo  <terry.guo@arm.com>
1419         * config/arm/arm-cores.def: Added core cortex-r7.
1420         * config/arm/arm-tune.md: Regenerated.
1421         * config/arm/arm-tables.opt: Regenerated.
1422         * doc/invoke.texi: Added entry for core cortex-r7.
1424 2013-03-27  Walter Lee  <walt@tilera.com>
1426         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
1427         double-decrement of next_scratch_regno.
1429 2013-03-27  Walter Lee  <walt@tilera.com>
1431         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
1432         input operands.
1433         (insn_v1mulus): Ditto.
1434         (insn_v2muls): Ditto.
1436 2013-03-27  Walter Lee  <walt@tilera.com>
1438         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
1439         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
1441 2013-03-27  Walter Lee  <walt@tilera.com>
1443         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
1444         (*sibcall_value): Ditto.
1446 2013-03-27  Walter Lee  <walt@tilera.com>
1448         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
1449         (insn_mnz_v8qi): ... this ...
1450         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
1451         vector equivalent.
1452         (insn_v<n>mnz): Replaced by ...
1453         (insn_v1mnz): ... this ...
1454         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
1455         equivalent.
1456         (insn_mz_<mode>): Replaced by ...
1457         (insn_mz_v8qi): ... this ...
1458         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
1459         vector equivalent.
1460         (insn_v<n>mz): Replaced by ...
1461         (insn_v1mz): ... this ...
1462         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
1463         equivalent.
1465 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
1467         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
1469 2013-03-26  Roland McGrath  <mcgrathr@google.com>
1471         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
1472         than fprintf with a non-constant, non-format string.
1474 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
1476         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
1477         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
1478         operand 0 predicate.
1479         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
1480         attribute.  Use general_x64nomem_operand as operand 1 predicate.
1481         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
1482         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
1483         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
1484         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
1485         (mov<mode>_insv_1): Remove expander.  Merge insn with
1486         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
1487         Use general_x64nomem_operand as operand 1 predicate.
1488         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
1489         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
1490         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
1491         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
1492         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
1493         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
1494         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
1495         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
1496         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
1497         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
1498         (general_x64nomem_operand): Ditto.
1500 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1502         * config/rtems.opt: Add -pthread option.
1504 2013-03-26  Richard Biener  <rguenther@suse.de>
1506         * alias.c (find_base_term): Avoid redundant and not used recursion.
1507         (base_alias_check): Get the initial base term from the caller.
1508         (true_dependence_1): Compute and pass base terms to base_alias_check.
1509         (write_dependence_p): Likewise.
1510         (may_alias_p): Likewise.
1512 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
1514         * config/aarch64/aarch64.c (aarch64_classify_address): Support
1515         PC-relative load in SI modes and above only.
1517 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
1519         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
1520         * config/arm/iwmmxt.md (WCGR0): Update.
1521         (WCGR1, WCGR2, WCGR3): Likewise.
1523 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
1525         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
1526         Use x64 and nox64 isa attributes.
1528 2013-03-26  Richard Biener  <rguenther@suse.de>
1530         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1531         alignment computations and rely on get_object_alignment_1
1532         for the !TYPE_P case.
1533         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
1535 2013-03-26  Walter Lee  <walt@tilera.com>
1537         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
1538         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
1540 2013-03-25  Jeff Law  <law@redhat.com>
1542         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
1543         check for INTEGRAL_TYPE_P that was missing due to checking in
1544         wrong version of prior patch.
1546 2013-03-25  Walter Lee  <walt@tilera.com>
1548         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
1549         TILEGX_INSN_SHUFFLEBYTES1.
1550         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
1551         shufflebytes1.
1552         (tilegx_builtins): Ditto.
1553         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
1555 2013-03-25  Walter Lee  <walt@tilera.com>
1557         * config/tilegx/tilegx.md (floatsisf2): New pattern.
1558         (floatunssisf2): New pattern.
1559         (floatsidf2): New pattern.
1560         (floatunssidf2): New pattern.
1562 2013-03-25  Walter Lee  <walt@tilera.com>
1564         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
1565         tests for constraint J, K, N, P.
1567 2013-03-25  Walter Lee  <walt@tilera.com>
1569         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
1570         Use indirect/pcrel encoding.
1571         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
1572         Ditto.
1574 2013-03-25  Steve Ellcey  <sellcey@mips.com>
1576         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
1577         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
1578         * config/mips/mips.c (mips_option_override): Set IMADD default.
1579         * config/mips/mips.h (PTF_AVOID_IMADD): New.
1580         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
1581         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
1582         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
1583         * doc/invoke.texi (-mimadd/-mno-imadd): New.
1585 2013-03-25  Jeff Law  <law@redhat.com>
1587         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
1588         slightly to avoid creating and folding useless trees.  Simplify
1589         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
1591 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
1593         * config/i386/i386.md (*zero_extendsidi2): Merge with
1594         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
1595         * config/i386/predicates.md (x86_64_zext_operand): Rename from
1596         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
1597         targets.  Clarify comment.
1599 2013-03-25  Martin Jambor  <mjambor@suse.cz>
1601         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
1602         pass-through jump functions differently.
1603         (ipa_read_jump_function): Likewise.  Also use setter functions to set
1604         up jump functions.
1606 2013-03-25  Martin Jambor  <mjambor@suse.cz>
1608         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
1609         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
1610         process it.
1611         (ipa_get_indirect_edge_target): New function.
1612         (devirtualization_time_bonus): New parameter known_aggs, pass it to
1613         ipa_get_indirect_edge_target.  Update all callers.
1614         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
1615         ipa_get_indirect_edge_target_1 instead of calling
1616         ipa_get_indirect_edge_target.
1617         (create_specialized_node): Pass aggvlas to
1618         ipcp_discover_new_direct_edges.
1620 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1622         * config/arm/arm.md (f_sels, f_seld): New types.
1623         (*cmov<mode>): New pattern.
1624         * config/arm/predicates.md (arm_vsel_comparison_operator): New
1625         predicate.
1627 2013-03-25  Kai Tietz  <ktietz@redhat.com>
1629         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
1630         POSIX-printf for mingw-hosted  builds.
1632 2013-03-25  Richard Biener  <rguenther@suse.de>
1634         PR middle-end/56694
1635         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
1636         must-not-throw stmt location.
1638 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1640         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
1641         Emit load-acquire versions when acq is true.
1642         (arm_emit_store_exclusive): Add rel parameter.
1643         Emit store-release versions when rel is true.
1644         (arm_split_compare_and_swap): Use acquire-release instructions
1645         instead.
1646         of barriers when appropriate.
1647         (arm_split_atomic_op): Likewise.
1648         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
1649         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
1650         (VUNSPEC_SLX): Likewise.
1651         (VUNSPEC_LDA): Likewise.
1652         (VUNSPEC_STL): Likewise.
1653         * config/arm/sync.md (atomic_load<mode>): New pattern.
1654         (atomic_store<mode>): Likewise.
1655         (arm_load_acquire_exclusive<mode>): Likewise.
1656         (arm_load_acquire_exclusivesi): Likewise.
1657         (arm_load_acquire_exclusivedi): Likewise.
1658         (arm_store_release_exclusive<mode>): Likewise.
1660 2013-03-25  Catherine Moore  <clm@codesourcery.com>
1662         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
1663         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
1664         * config/mip/predicates.md (lwsp_swsp_operand,
1665         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
1666         sb16_operand, db4_operand, db7_operand, ib3_operand,
1667         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
1668         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
1669         andi16_operand): New predicates.
1670         * config/mips/mips.md (compression): New attribute.
1671         (enabled): New attribute.
1672         (length): Consider compression in computing length.
1673         (shift_compression): New code attribute.
1674         (*add<mode>3): New operands. Record compression.
1675         (sub<mode>3): Likewise.
1676         (one_cmpl<mode>2): Likewise.
1677         (*and<mode>3): Likewise.
1678         (*ior<mode>3): Likewise.
1679         (unnamed pattern for xor): Likewise.
1680         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
1681         (*<optab><mode>3): Likewise.
1682         (*mov<mode>_internal: Likewise.
1683         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
1684         (mips_unsigned_immediate_p): New.
1685         (umips_lwsp_swsp_address_p): New.
1686         (m16_based_address_p): New.
1687         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
1688         (mips_unsigned_immediate_p): New prototype.
1689         (lwsp_swsp_address_p): New prototype.
1690         (m16_based_address_p): New prototype.
1691         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
1692         (mips_signed_immediate_p): New function.
1693         (m16_based_address_p): New function.
1694         (lwsp_swsp_address_p): New function.
1695         (mips_print_operand_punctuation): Recognize short delay slot insns
1696         for microMIPS.add<mode>3"
1698 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1700         PR target/56720
1701         * config/arm/iterators.md (v_cmp_result): New mode attribute.
1702         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
1704 2013-03-25  Richard Biener  <rguenther@suse.de>
1706         PR tree-optimization/56689
1707         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
1708         any edge.
1710 2013-03-25  Richard Biener  <rguenther@suse.de>
1712         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
1713         of bitmap.
1714         (memory_references): Likewise.
1715         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
1716         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
1717         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
1718         (gather_mem_refs_in_loops): Fold into ...
1719         (analyze_memory_references): ... this.  Move initialization
1720         to tree_ssa_lim_initialize.
1721         (fill_always_executed_in): Rename to ...
1722         (fill_always_executed_in_1): ... this.
1723         (fill_always_executed_in): Move contains_call computation to
1724         this new function from ...
1725         (tree_ssa_lim_initialize): ... here.
1726         (tree_ssa_lim): Call fill_always_executed_in.
1728 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
1730         * postreload.c (reload_combine): Fix code detecting returns.
1732 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
1734         * function.c (emit_use_return_register_into_block): On cc0 targets,
1735         do not emit the sequence between cc0 setter and user.
1737 2013-03-25  Kai Tietz  <ktietz@redhat.com>
1739         * config/i386/predicates.md (local_symbolic_operand): Interpret
1740         dll-imported symbols as none-local.
1742 2013-03-25  Richard Biener  <rguenther@suse.de>
1744         * tree-ssa-loop-im.c (struct depend): Remove.
1745         (struct lim_aux_data): Make depends a vec of gimples.
1746         (free_lim_aux_data): Adjust.
1747         (add_dependency): Likewise.
1748         (set_level): Likewise.
1750 2013-03-25  Richard Biener  <rguenther@suse.de>
1752         PR middle-end/56434
1753         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
1754         the pointer returned by calls with ECF_MALLOC set.
1756 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
1758         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
1760 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
1762         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
1763         using MMXMODE mode iterator.
1764         (*move<mode>_internal): Merge with *movv2sf_internal and
1765         *movv2sf_internal_rex64 using MMXMODE mode iterator.
1767 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
1769         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
1770         (record_last_mem_set_info): Likewise.
1772         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
1773         of XNEWVEC followed by memset.
1774         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
1776 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
1778         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
1779         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
1780         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
1781         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
1782         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
1783         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
1784         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
1785         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
1786         BARRIER_P instead of GET_CODE.
1788 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
1790         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
1791         inaccuracy in the probing code.
1793         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
1794         (ctrapdi4): Likewise.
1796 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
1798         * calls.c (expand_call): Add missing guard to code handling return
1799         of non-BLKmode structures in MSB.
1800         * function.c (expand_function_end): Likewise.
1802 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
1804         * combine.c (try_combine): Adjust comment.  Do not add the set of
1805         insn #0 if the destination indirectly is set or dies in insn #2.
1806         Tidy up code to distribute a new note.
1808 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
1810         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
1811         also for alternatives 16 and 17.
1813 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
1815         * config/i386/sse.md (*mov<mode>_internal): Merge with
1816         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
1817         Emit insn template depending on type attribute.  Use
1818         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1819         movd instead of movq mnemonic for interunit moves.  Rewrite mode
1820         attribute calculation.  Remove unit attribute calculation.
1821         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
1822         Set prefix_data16 attribute for DImode ssemov types.
1823         Use Ym instead of y for SSE-MMX conversion alternatives.
1824         Reorder operand constraints.
1826 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
1828         * df.h (df_insn_delete): Adjust prototype.
1829         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
1830         and let it decide whether mark the basic block dirty.
1831         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
1832         * df-scan.c (df_insn_info_delete): New helper function, split
1833         off from df_insn_delete.
1834         (df_scan_free_bb_info): Use it.
1835         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
1836         Likewise.
1837         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
1838         that the insn is actually an insn and it has a non-NULL basic block.
1839         Do not mark basic block dirty if only deleting a DEBUG_INSN.
1841 2013-03-22  Richard Biener  <rguenther@suse.de>
1843         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
1844         dep_ref members.
1845         (mem_ref_alloc): Do not allocate them.
1846         (refs_independent_p): Do not query or maintain a cache.
1848 2013-03-22  Richard Biener  <rguenther@suse.de>
1850         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
1851         (gather_mem_refs_in_loops): Do not compute it.
1852         (analyze_memory_references): Do not allocate it.
1853         (tree_ssa_lim_finalize): Do not free it.
1854         (for_all_locs_in_loop): Do not query all_refs_in_loop.
1856 2013-03-22  Richard Biener  <rguenther@suse.de>
1858         * is-a.h (as_a): Use gcc_checking_assert.
1860 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
1862         * config/aarch64/aarch64.c (aarch64_print_operand): New
1863         format specifier for printing a constant in hex.
1864         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
1865         format specifier for printing second operand.
1867 2013-03-22  Richard Biener  <rguenther@suse.de>
1869         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
1870         bitmaps.
1871         (gather_mem_refs_in_loops): Perform store accumulation here.
1872         (create_vop_ref_mapping_loop): Remove.
1873         (create_vop_ref_mapping): Likewise.
1874         (analyze_memory_references): Initialize refs_stored_in_loop.
1875         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
1876         (record_indep_loop): Remove.
1877         (record_dep_loop): New function.
1878         (ref_indep_loop_p_1): Adjust to only walk over references
1879         in the loop, not its subloops.
1880         (ref_indep_loop_p): Rename to ...
1881         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
1882         maintaining a more fine-grained cache.
1883         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
1884         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
1886 2013-03-22  Richard Biener  <rguenther@suse.de>
1888         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
1889         (struct mem_ref): Make accesses_in_loop a vec of a vec of
1890         aggregate mem_ref_loc.
1891         (free_mem_ref_locs): Inline into ...
1892         (memref_free): ... this and adjust.
1893         (mem_ref_alloc): Adjust.
1894         (mem_ref_locs_alloc): Remove.
1895         (record_mem_ref_loc): Adjust.
1896         (get_all_locs_in_loop): Rewrite into ...
1897         (for_all_locs_in_loop): ... this iterator.
1898         (rewrite_mem_ref_loc): New functor.
1899         (rewrite_mem_refs): Use for_all_locs_in_loop.
1900         (sm_set_flag_if_changed): New functor.
1901         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
1902         (ref_always_accessed): New functor.
1903         (ref_always_accessed_p): Use for_all_locs_in_loop.
1905 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
1907         * tree-pass.h (PROP_gimple_lvec): New.
1908         * passes.c (dump_properties): Handle PROP_gimple_lvec.
1909         (init_optimization_passes): Move pass_lower_vector.
1910         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
1911         PROP_gimple_lvec.
1912         (pass_lower_vector): Provide PROP_gimple_lvec.
1913         (pass_lower_vector_ssa): Likewise.
1914         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
1916 2013-03-21  Mark Wielaard  <mjw@redhat.com>
1918         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
1920 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
1922         * config/i386/i386.md (*movdi_internal): Disparage slightly
1923         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
1924         conversion alternatives.
1926 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
1928         PR middle-end/48087
1929         * diagnostic.def (DK_WERROR): New kind.
1930         * diagnostic.h (werrorcount): Define.
1931         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
1932         promoted to DK_ERROR, increment DK_WERROR counter instead of
1933         DK_ERROR counter.
1934         * toplev.c (toplev_main): Call print_ignored_options even if
1935         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
1936         even if just werrorcount is non-zero.
1938         PR debug/55608
1939         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
1940         on failure.
1941         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
1942         (string_cst_pool_decl): New function.
1943         (optimize_one_addr_into_implicit_ptr): New function.
1944         (resolve_addr_in_expr): Optimize DWARF location expression
1945         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
1946         which doesn't live in memory, but has DW_AT_location or
1947         DW_AT_const_value, or refers to a string literal, into
1948         DW_OP_GNU_implicit_pointer.
1949         (optimize_location_into_implicit_ptr): New function.
1950         (resolve_addr): If removing DW_AT_location of a variable because
1951         it was DW_OP_addr of address of the variable, but the variable doesn't
1952         live in memory, try to emit const value attribute for the initializer.
1954 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
1956         * tree.h (VECTOR_TYPE_P): New macro.
1957         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
1958         TYPE_MODE): Use it.
1959         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
1960         VEC_COND_EXPR cannot be lvalues.
1961         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
1963 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
1965         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
1966         Restrict the transformation to equal modes.
1968 2013-03-21  Richard Biener  <rguenther@suse.de>
1970         PR tree-optimization/39326
1971         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
1972         (MEM_ANALYZABLE): Adjust.
1973         (record_mem_ref_loc): Move bitmap ops ...
1974         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
1975         unanalyzable refs, do not record locations for it.
1976         (analyze_memory_references): Allocate ref zero as shared
1977         unanalyzable ref.
1978         (refs_independent_p): Do not test for unanalyzed mems here.
1979         (ref_indep_loop_p_1): Special-case disambiguation against
1980         the unanalyzed ref.
1981         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
1983 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
1985         * config/arm/arm-protos.h (tune_params): Add
1986         prefer_neon_for_64bits field.
1987         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
1988         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
1989         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1990         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1991         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
1992         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1993         (arm_option_override): Handle -mneon-for-64bits new option.
1994         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
1995         (prefer_neon_for_64bits): Declare new variable.
1996         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
1997         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
1998         (arch_enabled): Handle new arch types. Remove support for onlya8
1999         and nota8.
2000         (one_cmpldi2): Use new arch names.
2001         (zero_extend<mode>di2, extend<mode>di2): Ditto.
2002         * config/arm/arm.opt (mneon-for-64bits): Add option.
2003         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
2004         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
2005         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
2006         of onlya8.
2007         * doc/invoke.texi (-mneon-for-64bits): Document.
2009 2013-03-21  Richard Biener  <rguenther@suse.de>
2011         PR tree-optimization/39326
2012         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
2013         (sort_bbs_in_loop_postorder_cmp): New function.
2014         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
2016 2013-03-21  Richard Biener  <rguenther@suse.de>
2018         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
2019         (vect_insert_into_interleaving_chain): Likewise.
2020         (vect_drs_dependent_in_basic_block): Inline ...
2021         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
2022         split out from ...
2023         (vect_analyze_data_ref_dependence): ... here.  Simplify.
2024         (vect_check_interleaving): Simplify.
2025         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
2026         (vect_slp_analyze_data_ref_dependences): ... this new function.
2027         (dr_group_sort_cmp): New function.
2028         (vect_analyze_data_ref_accesses): Compute data-reference groups
2029         here instead of in vect_analyze_data_ref_dependence.  Use
2030         a more efficient algorithm.
2031         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
2032         vect_slp_analyze_data_ref_dependences.  Call
2033         vect_analyze_data_ref_accesses earlier.
2034         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2035         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
2036         (vect_slp_analyze_data_ref_dependences): New prototype.
2038 2013-03-21  Richard Biener  <rguenther@suse.de>
2040         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
2041         ref is stored in the loop.
2042         (find_refs_for_sm): Walk only over all stores.
2043         (store_motion_loop): Allocate from lim_bitmap_obstack.
2044         (store_motion): Likewise.
2046 2013-03-21  Richard Biener  <rguenther@suse.de>
2048         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
2049         Update virtual SSA form.
2051 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2053         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
2054         * configure: Regenerate.
2055         * config.in: Regenerate.
2056         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
2057         if !HAVE_LD_EH_FRAME_CIEV3.
2059 2013-03-21  Richard Biener  <rguenther@suse.de>
2061         * tree-cfg.c (verify_expr_no_block): New function.
2062         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
2063         nor DECL_VALUE_EXPR have locations with associated blocks.
2064         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
2065         (clear_unused_block_pointer): Remove code dealing with
2066         blocks in DECL_DEBUG_EXPR locations.
2068 2013-03-21  Richard Biener  <rguenther@suse.de>
2070         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
2071         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
2072         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
2073         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
2074         instead of DECL_DEBUG_EXPR_IS_FROM.
2075         * gimplify.c (gimplify_modify_expr): Likewise.
2076         * tree-cfg.c (verify_expr_location_1): Likewise.
2077         * tree-complex.c (create_one_component_var): Likewise.
2078         * tree-sra.c (create_access_replacement): Likewise.
2079         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
2080         (clear_unused_block_pointer): Likewise.
2081         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
2082         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2083         * var-tracking.c (var_debug_decl): Likewise.
2084         (track_expr_p): Likewise.
2085         * tree-inline.c (add_local_variables): Likewise.  Set
2086         DECL_HAS_DEBUG_EXPR_P after copying it.
2087         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2088         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
2090 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
2092         PR bootstrap/56656
2093         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
2094         * configure: Regenerate.
2095         * config.in: Regenerate.
2096         * config/i386/i386.md (*movdf_internal): Use
2097         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2098         movd instead of movq mnemonic for interunit moves.
2099         (*movdi_internal): Ditto.
2101 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2103         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
2104         (abd<mode>_3): New pattern.
2105         (aba<mode>_3): New pattern.
2106         (fabd<mode>_3): New pattern.
2108 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2110         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
2111         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
2112         occurrence of REGISTER_PREFIX as its empty string.
2114 2013-03-20  Jeff Law  <law@redhat.com>
2116         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
2117         addititional equivalences for equality comparisons between an SSA_NAME
2118         and a constant where the SSA_NAME was set from a widening conversion.
2120 2013-03-20  Walter Lee  <walt@tilera.com>
2122         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
2124 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
2126         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
2127         depending on type attribute.
2128         (*movti_internal): Ditto.
2129         (*movtf_internal): Ditto.
2130         (*movxf_internal): Ditto.
2131         (*movdf_internal): Ditto.
2132         (*movsf_internal): Ditto.
2134 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
2136         * config/i386/i386.md (*movti_internal): Set prefix attribute to
2137         maybe_vex for sselog1 and ssemov types.
2138         (*movdi_internal): Reorder operand constraints.
2139         (*movsi_internal): Ditto.  Set prefix attribute to
2140         maybe_vex for sselog1 and ssemov types.
2141         (*movtf_internal): Set prefix attribute to maybe_vex
2142         for sselog1 and ssemov types.
2143         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
2144         DImode ssemov types.  Reorder operand constraints.
2145         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
2146         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
2147         attribute for SImode ssemov types.  Reorder operand constraints.
2149 2013-03-20  Martin Jambor  <mjambor@suse.cz>
2151         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
2152         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
2154 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
2156         * config/rs6000/predicates.md (indexed_address, update_address_mem
2157         update_indexed_address_mem): New predicates.
2158         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
2159         attribute for load/store instructions.
2160         * config/rs6000/dfp.md (movsd_store): Likewise.
2161         (movsd_load): Likewise.
2162         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
2163         (unnamed HI->DI extend define_insn): Likewise.
2164         (unnamed SI->DI extend define_insn): Likewise.
2165         (unnamed QI->SI extend define_insn): Likewise.
2166         (unnamed QI->HI extend define_insn): Likewise.
2167         (unnamed HI->SI extend define_insn): Likewise.
2168         (unnamed HI->SI extend define_insn): Likewise.
2169         (extendsfdf2_fpr): Likewise.
2170         (movsi_internal1): Likewise.
2171         (movsi_internal1_single): Likewise.
2172         (movhi_internal): Likewise.
2173         (movqi_internal): Likewise.
2174         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
2175         attribute for load/store instructions.
2176         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
2177         instructions.
2178         (mov<mode>_softfloat): Likewise.
2179         (mov<mode>_hardfloat32): Likewise.
2180         (mov<mode>_hardfloat64): Likewise.
2181         (mov<mode>_softfloat64): Likewise.
2182         (movdi_internal32): Likewise.
2183         (movdi_internal64): Likewise.
2184         (probe_stack_<mode>): Likewise.
2186 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2188         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
2189         floating point, and decimal floating point to reload iterator.
2191         * config/rs6000/constraints.md (wl constraint): New constraints to
2192         return FLOAT_REGS if certain options are used to reduce the number
2193         of separate patterns that exist in the file.
2194         (wx constraint): Likewise.
2195         (wz constraint): Likewise.
2197         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2198         -mdebug=reg, print wg, wl, wx, and wz constraints.
2199         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2200         Initialize the reload functions for 64-bit binary/decimal floating
2201         point types.
2202         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2203         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2204         create the buffer on the stack to overcome not having a 32-bit
2205         load and store.
2206         (rs6000_emit_move): Likewise.
2207         (rs6000_secondary_memory_needed_rtx): Likewise.
2208         (rs6000_alloc_sdmode_stack_slot): Likewise.
2209         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2210         via xxlxor, just like DFmode 0.0.
2212         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
2213         define as 1 if we are running on a power7 or newer.
2214         (enum r6000_reg_class_enum): Add new constraints.
2216         * config/rs6000/dfp.md (movsd): Delete, combine with binary
2217         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
2218         with other moves by using conditional constraits (wg).  Use LFIWZX
2219         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
2220         (movsd splitter): Likewise.
2221         (movsd_hardfloat): Likewise.
2222         (movsd_softfloat): Likewise.
2224         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
2225         binary and decimal floating point moves.
2226         (fmove_ok): New attributes to combine binary and decimal floating
2227         point moves, and to combine power6x (mfpgpr) moves along normal
2228         floating moves.
2229         (real_value_to_target): Likewise.
2230         (f32_lr): Likewise.
2231         (f32_lm): Likewise.
2232         (f32_li): Likewise.
2233         (f32_sr): Likewise.
2234         (f32_sm): Likewise.
2235         (f32_si): Likewise.
2236         (movsf): Combine binary and decimal floating point moves.  Combine
2237         power6x (mfpgpr) moves with other moves by using conditional
2238         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
2239         (mov<mode> for SFmode/SDmode); Likewise.
2240         (SFmode/SDmode splitters): Likewise.
2241         (movsf_hardfloat): Likewise.
2242         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
2243         (movsf_softfloat): Likewise.
2244         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
2246         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
2247         wx and wz constraints.
2249         * config/rs6000/constraints.md (wg constraint): New constraint to
2250         return FLOAT_REGS if -mmfpgpr (power6x) was used.
2252         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
2253         constraint.
2255         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2256         -mdebug=reg, print wg, wl, wx, and wz constraints.
2257         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2258         Initialize the reload functions for 64-bit binary/decimal floating
2259         point types.
2260         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2261         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2262         create the buffer on the stack to overcome not having a 32-bit
2263         load and store.
2264         (rs6000_emit_move): Likewise.
2265         (rs6000_secondary_memory_needed_rtx): Likewise.
2266         (rs6000_alloc_sdmode_stack_slot): Likewise.
2267         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2268         via xxlxor, just like DFmode 0.0.
2270         * config/rs6000/dfp.md (movdd): Delete, combine with binary
2271         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
2272         with other moves by using conditional constraits (wg).  Use LFIWZX
2273         and STFIWX for loading SDmode on power7.
2274         (movdd splitters): Likewise.
2275         (movdd_hardfloat32): Likewise.
2276         (movdd_softfloat32): Likewise.
2277         (movdd_hardfloat64_mfpgpr): Likewise.
2278         (movdd_hardfloat64): Likewise.
2279         (movdd_softfloat64): Likewise.
2281         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
2282         64-bit binary and decimal floating point moves.
2283         (FMOVE64X): Likewise.
2284         (movdf): Combine 64-bit binary and decimal floating point moves.
2285         Combine power6x (mfpgpr) moves with other moves by using
2286         conditional constraits (wg).
2287         (mov<mode> for DFmode/DDmode): Likewise.
2288         (DFmode/DDmode splitters): Likewise.
2289         (movdf_hardfloat32): Likewise.
2290         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
2291         (movdf_softfloat32): Likewise.
2292         (movdf_hardfloat64_mfpgpr): Likewise.
2293         (movdf_hardfloat64): Likewise.
2294         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
2295         (movdf_softfloat64): Likewise.
2296         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
2297         (reload_<mode>_load): Move to later in the file so they aren't in
2298         the middle of the floating point move insns.
2299         (reload_<mode>_store): Likewise.
2301         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
2302         constraint.
2304         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
2305         constraint if -mdebug=reg.
2306         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
2307         Enable using dd reload support if needed.
2309         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
2310         binary and decimal floating point moves in rs6000.md.
2311         (movtd_internal): Likewise.
2313         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
2314         decimal floating point moves.
2315         (movtf): Likewise.
2316         (movtf_internal): Likewise.
2317         (mov<mode>_internal, TDmode/TFmode): Likewise.
2318         (movtf_softfloat): Likewise.
2319         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
2321         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
2322         movdi_internal64, using wg constraint for move direct operations.
2323         (movdi_internal64): Likewise.
2325         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
2326         MODES_TIEABLE_P for selected modes.  Print the numerical value of
2327         the various virtual registers. Use GPR/FPR first/last values,
2328         instead of hard coding the register numbers.  Print which modes
2329         have reload functions registered.
2330         (rs6000_option_override_internal): If -mdebug=reg, trace the options
2331         settings before/after setting cpu, target and subtarget settings.
2332         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
2333         and for secondary reload failures in rs6000_secondary_reload_inner.
2334         (rs6000_secondary_reload_fail): Likewise.
2335         (rs6000_secondary_reload_inner): Likewise.
2337         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
2338         macros for first/last GPR and FPR registers.
2339         (LAST_GPR_REGNO): Likewise.
2340         (FIRST_FPR_REGNO): Likewise.
2341         (LAST_FPR_REGNO): Likewise.
2343         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
2344         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
2345         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
2346         (vcond<mode><mode>): Likewise.
2347         (vcondu<mode><mode>): Likewise.
2348         (vector_gtu<mode>): Likewise.
2349         (vector_gte<mode>): Likewise.
2350         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
2351         to prevent the compiler from converting DImode operations to TImode.
2352         (ior<mode>3): Likewise.
2353         (and<mode>3): Likewise.
2354         (one_cmpl<mode>2): Likewise.
2355         (nor<mode>3): Likewise.
2356         (andc<mode>3): Likewise.
2358         * config/rs6000/constraints.md (wt constraint): New constraint
2359         that returns VSX_REGS if TImode is allowed in VSX registers.
2361         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
2362         constant under VSX.
2364         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
2365         similar to TImode, but it is restricted to being in the GPRs.
2367         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
2368         TImode to occupy a single VSX register.
2370         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
2371         -mvsx-timode for power7/power8.
2372         (power7 cpu): Likewise.
2373         (power8 cpu): Likewise.
2375         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
2376         sure that TFmode/TDmode take up two registers if they are ever
2377         allowed in the upper VSX registers.
2378         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
2379         registers.
2380         (rs6000_init_hard_regno_mode_ok): Likewise.
2381         (rs6000_debug_reg_global): Add debugging for PTImode and wt
2382         constraint.  Print if LRA is turned on.
2383         (rs6000_option_override_internal): Give an error if -mvsx-timode
2384         and VSX is not enabled.
2385         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
2386         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
2387         to reg+offset addressing.  Use PTImode when checking offset
2388         addresses for validity.
2389         (reg_offset_addressing_ok_p): Likewise.
2390         (rs6000_legitimate_offset_address_p): Likewise.
2391         (rs6000_legitimize_address): Likewise.
2392         (rs6000_legitimize_reload_address): Likewise.
2393         (rs6000_legitimate_address_p): Likewise.
2394         (rs6000_eliminate_indexed_memrefs): Likewise.
2395         (rs6000_emit_move): Likewise.
2396         (rs6000_secondary_reload): Likewise.
2397         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
2398         reloads to fpr registers to continue to use reg+offset addressing,
2399         but 64-bit reloads to altivec registers need reg+reg addressing.
2400         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
2401         it.  Treat LO_SUM like a PLUS operation.
2402         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
2403         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
2404         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
2405         registers to share a register with a smaller sized type, since VSX
2406         puts scalars in the upper 64-bits.
2407         (print_operand): Add support for PTImode.
2408         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
2409         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
2410         registers, but don't have arithmetic support.
2411         (rs6000_memory_move_cost): Add test for VSX.
2412         (rs6000_opt_masks): Add -mvsx-timode.
2414         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
2415         for TImode.
2416         (VSs): Likewise.
2417         (VSr): Use wt constraint for TImode.
2418         (VSv): Drop TImode support.
2419         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
2420         (vsx_movti_64bit): Likewise.
2421         (vsx_movti_32bit): Likewise.
2422         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
2423         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
2424         one '?' on the appropriate output constraint.  Do not allow TImode
2425         logical operations on 32-bit systems.
2426         (vsx_ior<mode>3): Likewise.
2427         (vsx_xor<mode>3): Likewise.
2428         (vsx_one_cmpl<mode>2): Likewise.
2429         (vsx_nor<mode>3): Likewise.
2430         (vsx_andc<mode>3): Likewise.
2431         (vsx_concat_<mode>): Likewise.
2432         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
2434         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
2435         OPTION_MASK_VSX_TIMODE.
2436         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
2437         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
2439         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
2440         (TI2 iterator): New iterator for TImode, PTImode.
2441         (wd mode attribute): Add values for vector types.
2442         (movti_string): Replace TI move operations with operations for TImode
2443         and PTImode.  Add support for TImode being allowed in VSX registers.
2444         (mov<mode>_string, TImode/PTImode): Likewise.
2445         (movti_ppc64): Likewise.
2446         (mov<mode>_ppc64, TImode/PTImode): Likewise.
2447         (TI mode splitters): Likewise.
2449         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
2450         constraint.
2452 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
2454         PR tree-optimization/56355
2455         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
2456         Also handle integers with undefined overflow.
2458 2013-03-20  Catherine Moore  <clm@codesourcery.com>
2459             Maciej W. Rozycki  <macro@codesourcery.com>
2460             Tom de Vries  <tom@codesourcery.com>
2461             Nathan Sidwell <nathan@codesourcery.com>
2462             Iain Sandoe  <iain@codesourcery.com>
2463             Nathan Froyd  <froydnj@codesourcery.com>
2464             Chao-ying Fu <fu@mips.com>
2466         * doc/extend.texi: (micromips, nomicromips, nocompression):
2467         Document new function attributes.
2468         * doc/invoke.texi (minterlink-compressed, mmicromips,
2469         m14k, m14ke, m14kec): Document new options.
2470         (minterlink-mips16): Update documentation.
2471         * doc/md.texi (ZC, ZD): Document new constraints.
2472         * configure.ac (gcc_cv_as_micromips): Check if linker
2473         supports the .set micromips directive.
2474         * configure: Regenerate.
2475         * config.in: Regenerate.
2476         * config/mips/mips-tables.opt: Regenerate.
2477         * config/mips/micromips.md: New file.
2478         * constraints.md (ZC, ZD): New constraints.
2479         * config/mips/predicates.md (movep_src_register): New predicate.
2480         (movep_src_operand): New predicate.
2481         (non_volatile_mem_operand): New predicate.
2482         * config/mips/mips.md (multimem): New type.
2483         (length): Differentiate between 17-bit and 18-bit branch offsets.
2484         (MOVEP1, MOVEP2): New mode iterator.
2485         (mov_<load>l): Use ZC constraint.
2486         (mov_<load>r): Likewise.
2487         (mov_<store>l): Likewise.
2488         (mov_<store>r): Likewise.
2489         (*branch_equality<mode>_inverted): Add microMIPS support.
2490         (*branch_equality<mode>): Likewise.
2491         (*jump_absolute): Likewise.
2492         (indirect_jump_<mode>): Likewise.
2493         (tablejump_<mode>): Likewise.
2494         (<optab>_internal): Likewise.
2495         (sibcall_internal): Likewise.
2496         (sibcall_value_internal): Likewise.
2497         (prefetch): Use constraint ZD.
2498         * config/mips/mips.opt (minterlink-compressed): New option.
2499         (minterlink-mips16): Now an alias for minterlink-compressed.
2500         (mmicromips): New option.
2501         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2502         (compare_and_swap_12): Likewise.
2503         (sync_add<mode>): Likewise.
2504         (sync_<optab>_12): Likewise.
2505         (sync_old_<optab>_12): Likewise.
2506         (sync_new_<optab>_12): Likewise.
2507         (sync_nand_12): Likewise.
2508         (sync_old_nand_12): Likewise.
2509         (sync_new_nand_12): Likewise.
2510         (sync_sub<mode>): Likewise.
2511         (sync_old_add<mode>): Likewise.
2512         (sync_old_sub<mode>): Likewise.
2513         (sync_new_add<mode>): Likewise.
2514         (sync_new_sub<mode>): Likewise.
2515         (sync_<optab><mode>): Likewise.
2516         (sync_old_<optab><mode>): Likewise.
2517         (sync_new_<optab><mode>): Likewise.
2518         (sync_nand<mode>): Likewise.
2519         (sync_old_nand<mode>): Likewise.
2520         (sync_new_nand<mode>): Likewise.
2521         (sync_lock_test_and_set<mode>): Likewise.
2522         (test_and_set_12): Likewise.
2523         (atomic_compare_and_swap<mode>): Likewise.
2524         (atomic_exchange<mode>_llsc): Likewise.
2525         (atomic_fetch_add<mode>_llsc): Likewise.
2526         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2527         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2528         (umips_save_restore_pattern_p): Likewise.
2529         (umips_load_store_pair_p): Likewise.
2530         (umips_output_load_store_pair): Likewise.
2531         (umips_movep_target_p): Likewise.
2532         (umips_12bit_offset_address_p): Likewise.
2533         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2534         (mips_base_mips16): Rename this...
2535         (mips_base_compression_flags): ...to this. Update all uses.
2536         (mips_attribute_table): Add micromips, nomicromips and nocompression.
2537         (mips_mips16_decl_p): Delete.
2538         (mips_nomips16_decl_p): Delete.
2539         (mips_get_compress_on_flags): New function.
2540         (mips_get_compress_off_flags): New function.
2541         (mips_get_compress_mode): New function.
2542         (mips_get_compress_on_name): New function.
2543         (mips_get_compress_off_name): New function.
2544         (mips_insert_attributes): Support multiple compression types.
2545         (mips_merge_decl_attributes): Likewise.
2546         (umips_12bit_offset_address_p): New function.
2547         (mips_start_function_definition): Emit .set micromips directive.
2548         (mips_call_may_need_jalx_p): New function.
2549         (mips_function_ok_for_sibcall): Add microMIPS support.
2550         (mips_print_operand_punctuation): Support short delay slots and
2551         compact jumps.
2552         (umips_swm_mask, umips_swm_encoding): New.
2553         (umips_build_save_restore): New function.
2554         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2555         (was_mips16_p): Remove.
2556         (old_compression_mode): New.
2557         (mips_set_compression_mode): New function.
2558         (mips_set_current_function): Add microMIPS support.
2559         (mips_option_override): Likewise.
2560         (umips_save_restore_pattern_p): New function.
2561         (umips_output_save_restore): New function.
2562         (umips_load_store_pair_p_1): New function.
2563         (umips_load_store_pair_p): New function.
2564         (umips_output_load_store_pair_1): New function.
2565         (umips_output_load_store_pair): New function.
2566         (umips_movep_target_p) New function.
2567         (mips_prepare_pch_save): Add microMIPS support.
2568         * config/mips/mips.h (TARGET_COMPRESSION): New.
2569         (TARGET_CPU_CPP_BUILTINS): Update macro
2570         to use new compression flags and to support microMIPS.
2571         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2572         (MIPS_ARCH_FLOAT_SPEC): Likewise.
2573         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2574         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2575         (ASM_SPEC): Support mmicromips and mno-micromips.
2576         (M16STORE_REG_P): New macro.
2577         (MIPS_CALL): Support TARGET_MICROMIPS.
2578         (MICROMIPS_J): New macro.
2579         (mips_base_mips16): Rename this...
2580         (mips_base_compression_flags): ...to this.
2581         (UMIPS_12BIT_OFFSET_P): New macro.
2582         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2583         (MULTILIB_DIRNAMES): Likewise.
2584 2013-03-20  Richard Biener  <rguenther@suse.de>
2586         PR tree-optimization/56661
2587         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
2588         the result does not have to be distinct.
2590 2013-03-20  Richard Biener  <rguenther@suse.de>
2592         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
2593         remap_gimple_op_r.
2595 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2596             Steven Bosscher <steven@gcc.gnu.org>
2598         PR rtl-optimization/56605
2599         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
2601 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
2603         PR bootstrap/56656
2604         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
2605         that require movd instead of movq.
2607 2013-03-20  Richard Biener  <rguenther@suse.de>
2609         * tree-ssa-structalias.c (struct variable_info): Add pointer
2610         to the first field of an aggregate with sub-vars.  Make
2611         this and the pointer to the next subfield its ID.
2612         (vi_next): New function.
2613         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
2614         storedanything_id, integer_id): Increment by one.
2615         (new_var_info, get_call_vi, lookup_call_clobber_vi,
2616         get_call_clobber_vi): Adjust.
2617         (solution_set_expand): Simplify and speedup.
2618         (solution_set_add): Inline into ...
2619         (set_union_with_increment): ... this.  Adjust accordingly.
2620         (do_sd_constraint): Likewise.
2621         (do_ds_constraint): Likewise.
2622         (do_complex_constraint): Simplify.
2623         (build_pred_graph): Adjust.
2624         (solve_graph): Likewise.  Simplify and speedup.
2625         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
2626         get_constraint_for_component_ref, get_constraint_for_1,
2627         first_vi_for_offset, first_or_preceding_vi_for_offset,
2628         create_function_info_for, create_variable_info_for_1,
2629         create_variable_info_for, intra_create_variable_infos): Adjust.
2630         (init_base_vars): Push NULL for ID zero.
2631         (compute_points_to_sets): Adjust.
2633 2013-03-20  Richard Biener  <rguenther@suse.de>
2635         * cfgloop.c (verify_loop_structure): Streamline and avoid
2636         ICEing on corrupt loop tree.
2637         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
2638         loop tree.
2640 2013-03-20  Richard Biener  <rguenther@suse.de>
2642         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
2643         check whether an SSA update is needed.
2645 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
2647         * config/mips/constraints.md (T): Rename to...
2648         (Yf): ...this.
2649         (U): Rename to...
2650         (Yd): ...this.
2651         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
2652         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
2654 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
2656         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
2657         (*subsi3_carryin_uxtw): Likewise.
2659 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
2661         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
2662         (*rorsi3_insn_uxtw): Likewise.
2664 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
2666         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
2667         (*extrsi5_insn_uxtw): Likewise.
2669 2013-03-19  Richard Biener  <rguenther@suse.de>
2671         PR tree-optimization/56273
2672         * passes.c (init_optimization_passes): Move second VRP after DOM.
2674 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
2676         * config/i386/i386.md (*movti_internal): Merge from
2677         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
2678         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
2679         nox64 isa attributes.
2681 2013-03-18  Richard Biener  <rguenther@suse.de>
2683         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
2684         (unite): Likewise.
2685         (merge_node_constraints): Likewise.
2686         (build_succ_graph): Likewise.
2687         (valid_graph_edge): Inline into single caller.
2688         (unify_nodes): Likewise.  Use bitmap_set_bit return value
2689         and cache varinfo.
2690         (scc_visit): Fix formatting and variable use.
2691         (do_sd_constraint): Use gcc_checking_assert.
2692         (do_ds_constraint): Likewise.
2693         (do_complex_constraint): Likewise.
2694         (condense_visit): Likewise.  Cleanup.
2695         (dump_pred_graph): New function.
2696         (perform_var_substitution): Dump the pred-graph before
2697         variable substitution.
2698         (find_equivalent_node): Use gcc_checking_assert.
2699         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
2701 2013-03-18  Richard Biener  <rguenther@suse.de>
2703         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2704         Remove cond_expr_stmt_list argument and do not gimplify the
2705         built expression.
2706         (vect_loop_versioning): Adjust.
2707         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2708         Cleanup to use less temporaries.
2709         (vect_create_data_ref_ptr): Cleanup.
2711 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
2713         PR tree-optimization/56635
2714         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
2715         require types_compatible_p types.
2717 2013-03-18  Nick Clifton  <nickc@redhat.com>
2719         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
2720         spurious backslash.
2722         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
2723         Add missing line to comment describing function.
2725 2013-03-18  Richard Biener  <rguenther@suse.de>
2727         PR tree-optimization/56210
2728         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2729         Handle string / character search functions.
2730         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2732 2013-03-18  Richard Biener  <rguenther@suse.de>
2734         PR middle-end/56483
2735         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
2736         and implement properly.
2737         * gimple.h (gimple_cond_single_var_p): Remove.
2739 2013-03-18  Richard Biener  <rguenther@suse.de>
2741         * tree-data-ref.h (find_data_references_in_loop): Declare.
2742         * tree-data-ref.c (get_references_in_stmt): Use a stack
2743         vector pre-allocated in the callers.
2744         (find_data_references_in_stmt): Adjust.
2745         (graphite_find_data_references_in_stmt): Likewise.
2746         (create_rdg_vertices): Likewise.
2747         (find_data_references_in_loop): Export.
2748         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
2749         Compute dependences here...
2750         (vect_analyze_data_refs): ...not here.  When we encounter
2751         a non-vectorizable data reference in basic-block vectorization
2752         truncate the data reference vector.  Do not bother to
2753         fixup data-dependence information for gather loads.
2754         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
2755         of data references, as reported.
2757 2013-03-18  Richard Biener  <rguenther@suse.de>
2759         PR tree-optimization/3713
2760         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
2761         has_constants and expr.
2762         (stmt_has_constants): Properly valueize SSA names when deciding
2763         whether the stmt has constants.
2765 2013-03-18  Richard Biener  <rguenther@suse.de>
2767         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
2768         whole function when there is nothing to do.
2769         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
2770         * tree-vectorizer.c (vectorize_loops): Update virtual and
2771         loop-closed SSA once.
2772         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
2774 2013-03-18  Richard Biener  <rguenther@suse.de>
2776         PR middle-end/56113
2777         * domwalk.c (bb_postorder): New global static.
2778         (cmp_bb_postorder): New function.
2779         (walk_dominator_tree): Replace scheme imposing an order for
2780         visiting dominator sons by one sorting them at the time they
2781         are pushed on the stack.
2783 2013-03-18  Richard Biener  <rguenther@suse.de>
2785         PR tree-optimization/39326
2786         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
2787         (struct mem_ref): Replace mem member with ao_ref typed member.
2788         (MEM_ANALYZABLE): Adjust.
2789         (memref_eq): Likewise.
2790         (mem_ref_alloc): Likewise.
2791         (gather_mem_refs_stmt): Likewise.
2792         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
2793         (execute_sm_if_changed_flag_set): Adjust.
2794         (execute_sm): Likewise.
2795         (ref_always_accessed_p): Likewise.
2796         (refs_independent_p): Likewise.
2797         (can_sm_ref_p): Likewise.
2799 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
2801         PR c/56566
2802         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
2803         return 1 even for !unsignedp.
2805 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
2807         * config/i386/i386.md (isa): Add x64 and nox64.
2808         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
2809         (*pushtf): Enable *roF alternative for x64 isa only.
2810         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
2811         mode attribute of integer alternatives to DImode for TARGET_64BIT.
2812         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
2813         (*movtf_internal): Merge from *movtf_internal_rex64 and
2814         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
2815         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
2816         nox64 isa attributes.
2817         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
2818         nox64 isa attributes.
2819         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
2821 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
2823         * config/alpha/alpha.c (TARGET_LRA_P): New define.
2825 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
2827         PR target/56640
2828         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
2829         class names.  Remove trailing comma after "ALL_REGS".
2831 2013-03-16  Jan Hubicka  <jh@suse.cz>
2833         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
2834         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
2835         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
2836         of cgraph_get_create_node.
2837         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2839 2013-03-16  Jason Merrill  <jason@redhat.com>
2841         PR debug/49090
2842         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
2843         with DW_AT_default_value.
2845 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
2847         * BASE-VER: Set to 4.9.0.
2849 2013-03-14  Andi Kleen  <ak@linux.intel.com>
2851         PR target/56619
2852         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
2853         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
2854         Document _x* TSX intrinsics.
2856 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
2857             David Holsgrove  <david.holsgrove@xilinx.com>
2859         * configure.ac: Add MicroBlaze TLS support detection.
2860         * configure: Regenerate.
2861         * config/microblaze/microblaze-protos.h
2862         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
2863         symbol_mentioned_p, label_mentioned_p): Add prototypes.
2864         * config/microblaze/microblaze.c (microblaze_address_type): Add
2865         ADDRESS_TLS and tls_reloc address types.
2866         (microblaze_address_info): Add tls_reloc.
2867         (TARGET_HAVE_TLS): Define.
2868         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
2869          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
2870          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
2871         load_tls_operand,  microblaze_call_tls_get_addr,
2872         microblaze_legitimize_tls_address): New functions.
2873         (microblaze_classify_unspec): Handle UNSPEC_TLS.
2874         (get_base_reg): Use microblaze_tls_symbol_p.
2875         (microblaze_classify_address): Handle TLS.
2876         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
2877         label_mentioned_p and microblaze_tls_referenced_p.
2878         (microblaze_legitimize_address): Handle TLS.
2879         (microblaze_address_insns): Handle ADDRESS_TLS.
2880         (pic_address_needs_scratch): Handle TLS.
2881         (print_operand_address): Handle TLS.
2882         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
2883         (microblaze_expand_move): Handle TLS.
2884         (microblaze_legitimate_constant_p): Check
2885         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
2886         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2887         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
2888         (PIC_OFFSET_TABLE_REGNUM): Set.
2889         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
2890         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
2891         (addsi3, movsi_internal2, movdf_internal): Update constraints
2892         * config/microblaze/predicates.md (arith_plus_operand): Define
2893         (move_operand): Redefine as move_src_operand,
2894         check microblaze_tls_referenced_p.
2896 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
2898         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
2899         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
2901 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
2903         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
2904         CC mode for AND.
2906 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
2908         PR tree-optimization/53265
2909         * common.opt (Waggressive-loop-optimizations): New option.
2910         * tree-ssa-loop-niter.c: Include tree-pass.h.
2911         (do_warn_aggressive_loop_optimizations): New function.
2912         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
2913         if number_of_latch_executions returned constant.
2914         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
2915         early.  If number_of_latch_executions returned constant, set
2916         nb_iterations_upper_bound back to it.
2917         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
2918         field.
2919         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
2920         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
2922         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
2923         (MULTILIB_OSDIRNAMES): Set.
2924         * genmultilib: If defaultosdirname doesn't start with :: , set
2925         defaultosdirname2 instead, clear it and emit two . multilib_raw
2926         entries instead of just one.
2928 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2930         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2931         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
2932         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2933         (SUBTARGET_OVERRIDE_OPTIONS): New.
2935 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
2937         PR target/49880
2938         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
2939         (musermode): Convert to Var(TARGET_USERMODE).
2940         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
2941         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
2942         * config/sh/sh.c (sh_option_override): Use
2943         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
2944         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
2945         condition.
2946         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
2947         TARGET_SH4.
2948         (udivsi3_i4_single, divsi3_i4_single): Use
2949         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
2951 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
2953         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
2954         default setting.
2956 2013-03-13  Richard Biener  <rguenther@suse.de>
2958         PR tree-optimization/56608
2959         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
2960         calls when vectorizing basic-blocks.
2962 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
2964         PR plugins/45078
2965         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
2966         tm_file.
2968 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
2970         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
2972 2013-03-11  Jan Hubicka  <jh@suse.cz>
2974         PR lto/56557
2975         * lto-streamer-out.c (output_symbol_p): Skip references from
2976         constructors of external variables.
2978 2013-03-11  Jan Hubicka  <jh@suse.cz>
2980         PR middle-end/56571
2981         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
2982         from pseudos.
2983         * emit-rtl.c (verify_rtx_sharing): Likewise.
2984         (copy_insn_1): Likewise.
2985         * rtl.c (copy_rtx): Likewise.
2987 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
2989         PR target/56591
2990         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
2991         output_operand_lossage message.
2993 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
2995         PR target/56470
2996         * arm.c (shift_op): Validate RTL pattern on the fly.
2997         (arm_print_operand, case 'S'): Don't use shift_operator to validate
2998         the RTL.
3000 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3002         PR target/56347
3003         * config/pa/pa.md (call_value): Check for calls to powf and direct to
3004         new call patterns that clobber %fr12.
3005         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3006         split and postreload patterns.
3007         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3008         registers %fr12 and %fr12R as call used.
3010 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
3012         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3013         (canon_address, record_store, replace_read, check_mem_read_rtx,
3014         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3015         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3016         rest_of_handle_dse): Likewise.
3018 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
3020         PR middle-end/56524
3021         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3022         Add base_optabs.
3023         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3024         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3025         (save_optabs_if_changed): Replace with...
3026         (init_tree_optimization_optabs): ...this.
3027         * optabs.c (save_optabs_if_changed): Rename to...
3028         (init_tree_optimization_optabs): ...this.  Take the optimization node
3029         as argument.  Do nothing if the base optabs are already correct.
3030         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3031         to recompute optabs.
3032         * function.h (function): Remove optabs field.
3033         * function.c (invoke_set_current_function_hook): Call
3034         init_tree_optimization_optabs.  Use the result to initialize
3035         this_fn_optabs.
3037 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
3039         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3040         if GTMA_HAS_NO_INSTRUMENTATION.
3041         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3042         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3043         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3044         * gimple-pretty-print.c (dump_gimple_transaction): Handle
3045         GTMA_HAS_NO_INSTRUMENTATION.
3047 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
3049         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3050         libasan_preinit.o.
3052 2013-03-08  Marek Polacek  <polacek@redhat.com>
3053             Jakub Jelinek  <jakub@redhat.com>
3055         PR tree-optimization/56478
3056         * predict.c (is_comparison_with_loop_invariant_p): Change the
3057         type of loop_step to tree.
3058         (predict_loops): Adjust.
3059         (predict_iv_comparison): Perform the computations on double_ints.
3061 2013-03-08  Richard Biener  <rguenther@suse.de>
3063         PR tree-optimization/56570
3064         * tree-cfg.c (verify_expr_location_1): Verify locations for
3065         DECL_DEBUG_EXPR.
3066         * tree-sra.c (create_access_replacement): Strip locations
3067         from DECL_DEBUG_EXPRs.
3069 2013-03-08  Richard Biener  <rguenther@suse.de>
3071         * tree-inline.c (expand_call_inline): Do not associate
3072         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3073         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3075 2013-03-08  Richard Biener  <rguenther@suse.de>
3077         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3078         or block changes with -Og.  Fix for location / block encoding
3079         changes and PHI arguments with locations.
3081 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
3083         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
3084         for all counters.
3085         (struct output_info): Likewise.
3086         (register_overhead): Remove bad gcc_assert.
3087         (bitmap_find_bit): If there is only a single bitmap element, do not
3088         count a miss as a search.
3089         (print_statistics): Update for counter type changes.
3090         (dump_bitmap_statistics): Likewise.  Print headers such that they
3091         are properly lined up with the printed counters.
3093 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
3095         PR tree-optimization/56559
3096         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
3097         check that it has only a single use.
3099 2013-03-07  Richard Biener  <rguenther@suse.de>
3101         * doc/invoke.texi (fwhole-program): Discourage use in combination
3102         with -flto.
3104 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
3106         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
3108         PR tree-optimization/56539
3109         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
3110         instead of GSI_CONTINUE_LINKING as last argument to
3111         force_gimple_operand_gsi.  Adjust function comment.
3113         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
3114         aarch64-cores.def.
3116         PR middle-end/56548
3117         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
3118         promoted mode, convert the result back to the original mode.
3120 2013-03-06  Richard Biener  <rguenther@suse.de>
3122         PR middle-end/56294
3123         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
3124         (insert_updated_phi_nodes_compare_uids): New function.
3125         (update_ssa): Sort symbols_to_rename after UID before
3126         traversing it to insert PHI nodes.
3128 2013-03-06  Richard Biener  <rguenther@suse.de>
3130         PR middle-end/50494
3131         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3132         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
3134         Revert
3135         2013-02-13  Richard Biener  <rguenther@suse.de>
3137         PR lto/50494
3138         * varasm.c (output_constant_def_1): Get the decl representing
3139         the constant as argument.
3140         (output_constant_def): Wrap output_constant_def_1.
3141         (make_decl_rtl): Use output_constant_def_1 with the decl
3142         representing the constant.
3143         (build_constant_desc): Optionally re-use a decl already
3144         representing the constant.
3145         (tree_output_constant_def): Adjust.
3147 2013-03-06  Joey Ye  <joey.ye@arm.com>
3149         PR lto/50293
3150         * gcc.c (convert_white_space): New function.
3151         (main): Handles white space in function name.
3153 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
3155         PR target/56529
3156         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
3157         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
3158         to SH_DIV_CALL_TABLE for TARGET_SH2.
3159         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
3160         list.
3161         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
3162         call-table options.
3164 2013-03-05  Sterling Augustine  <saugustine@google.com>
3165             Cary Coutant  <ccoutant@google.com>
3167         PR debug/55364
3168         * dwarf2out.c (resolve_addr): Don't call
3169         remove_loc_list_addr_table_entries a second time for the same
3170         expression.
3172 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3174         PR debug/56510
3175         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
3176         (avoid_complex_debug_insns): New function.
3177         (expand_debug_locations): Call it.
3179         PR rtl-optimization/56484
3180         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
3181         lifetimes of hard registers on small register class machines.
3183 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
3185         * config/microblaze/microblaze-protos.h: Rename
3186         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
3187         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
3188         fast_interrupt.
3189         (microblaze_fast_interrupt_function_p): New function.
3190         (microblaze_is_interrupt_handler): Rename to
3191         microblaze_is_interrupt_variant and add fast_interrupt check.
3192         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
3193         (save_restore_insns): Likewise.
3194         (compute_frame_size): Likewise.
3195         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
3196         (microblaze_globalize_label): Likewise.
3197         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
3198         * config/microblaze/microblaze.md: Use wrapper
3199         microblaze_is_interrupt_variant.
3201 2013-03-05  Kai Tietz  <ktietz@redhat.com>
3203         * sdbout.c (sdbout_one_type): Switch to current function's section
3204         supporting cold/hot.
3206 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
3208         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
3209         -mxl-reorder.
3211 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3213         PR middle-end/56461
3214         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
3215         if VALGRIND_GET_VBITS is defined, temporarily make object
3216         memory all defined, and restore previous valgrind addressability
3217         and definability afterwards.  Free this_object at the end.
3219         PR middle-end/56461
3220         * lra.c (lra): Call lra_clear_live_ranges if live_p,
3221         right before calling lra_create_live_ranges, also call it
3222         when clearing live_p.  Only call lra_clear_live_ranges
3223         at the end if live_p.
3225         PR middle-end/56461
3226         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
3228 2013-03-05  Richard Biener  <rguenther@suse.de>
3230         PR tree-optimization/56521
3231         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
3232         value-id.
3234 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
3236         PR c++/55135
3237         * except.h (remove_unreachable_eh_regions): New prototype.
3238         * except.c (remove_eh_handler_splicer): New function, split out
3239         of remove_eh_handler.
3240         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
3241         warning about running it on many EH regions one at a time.
3242         (remove_unreachable_eh_regions_worker): New function, walk the
3243         EH tree in depth-first order and remove non-marked regions.
3244         (remove_unreachable_eh_regions): New function.
3245         * tree-eh.c (mark_reachable_handlers): New function, split out
3246         from remove_unreachable_handlers.
3247         (remove_unreachable_handlers): Use mark_reachable_handlers and
3248         remove_unreachable_eh_regions.
3249         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
3250         and remove_unreachable_eh_regions.
3252 2013-03-05  Richard Biener  <rguenther@suse.de>
3254         PR middle-end/56525
3255         * loop-init.c (fix_loop_structure): Remove loops in two stages,
3256         not freeing them until the end.
3258 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3260         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
3262 2013-03-05  Richard Biener  <rguenther@suse.de>
3264         PR tree-optimization/56270
3265         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
3266         of loads after scheduling an SLP instance.
3268 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3270         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
3271         tic6x.exp.
3272         (check_gcc_parallelize): Run guality.exp as a separate job from
3273         vect.exp with unsorted.exp and $(dg_target_exps) separately from
3274         struct-layout-1.exp with stackalign.exp.
3276         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
3278         PR middle-end/56461
3279         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
3280         load_index sbitmap even if some bit in it isn't set.
3282         PR middle-end/56461
3283         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
3284         (discover_iteration_bound_by_body_walk): Change queues to
3285         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
3286         spelling in comment.  Call safe_push on queues[bound_index] directly.
3287         Release queues[queue_index] in every iteration unconditionally.
3288         Release bounds vector.
3290         PR middle-end/56461
3291         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
3292         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
3293         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
3294         inner_phis vector.
3296 2013-03-05  Richard Biener  <rguenther@suse.de>
3298         PR lto/56515
3299         * tree-inline.c (remap_blocks_to_null): New function.
3300         (expand_call_inline): When expanding a call stmt without
3301         an associated block inline remap all callee blocks to NULL.
3303 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
3305         PR rtl-optimization/56494
3306         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
3307         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
3308         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
3310         PR middle-end/56461
3311         * sel-sched-ir.c (free_sched_pools): Release
3312         succs_info_pool.stack[succs_info_pool.max_top] vectors too
3313         if succs_info_pool.max_top isn't -1.
3315         PR bootstrap/56509
3316         * opts.c (opts_obstack, opts_concat): Moved to...
3317         * opts-common.c (opts_obstack, opts_concat): ... here.
3319 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
3321         PR middle-end/56461
3322         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
3324 2013-03-04  Martin Jambor  <mjambor@suse.cz>
3326         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
3327         all appropriate places.
3329 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
3331         PR tree-optimization/56424
3332         * ipa-split.c (split_function): Do not set the RSO flag if result is
3333         not by reference and its type is a register type.
3335 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
3337         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
3338         (microblaze_legitimate_pic_operand): Likewise
3339         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
3340         new function microblaze_legitimate_pic_operand
3341         * config/microblaze/microblaze-protos.h
3342         (microblaze_legitimate_pic_operand): Declare.
3344 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3346         * config/microblaze/predicates.md (call_insn_simple_operand):
3347         New predicate for supported rtx code types.
3348         * config/microblaze/microblaze.md (call_internal1): Use
3349         call_insn_simple_operand predicate.
3351 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
3353         PR middle-end/56461
3354         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
3355         partitions.ordered_remove.
3357         PR middle-end/56461
3358         * tree-vect-stmts.c (vectorizable_conversion): Don't call
3359         vec_oprnds0.create (1) for modifier == NONE.
3361         PR middle-end/56461
3362         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
3363         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
3364         vec_oprnds1 right before pushing anything to it for
3365         scalar_shift_arg.
3367         PR middle-end/56461
3368         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
3369         set nbbs to 0 instead of having separate code path.
3370         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
3371         instead of false as last argument if returning NULL.
3373 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
3375         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
3376         the attribute is now called "target" instead of "option".
3377         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
3378         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
3379         attribute/pragma name for TARGET_OPTION_VALID_P and
3380         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
3381         * doc/tm.texi: Regenerated.
3383 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
3385         * config/microblaze/microblaze.c:
3386         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
3387         * config/microblaze/microblaze.h: Add -mxl-reorder to
3388         DRIVER_SELF_SPECS.
3389         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
3390         instructions emitted if TARGET_REORDER.
3391         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
3392         or 0 for -m/-mno case, but initialises as 2 to detect default use case
3393         separately.
3395 2013-03-01  Xinliang David Li  <davidxl@google.com>
3397         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
3398         walk length.
3400 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
3402         PR middle-end/56461
3403         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
3404         vector even when returning true.  Fix up function comment formatting.
3406         PR middle-end/56461
3407         * ira-build.c (ira_loop_nodes_count): New variable.
3408         (create_loop_tree_nodes): Initialize it.
3409         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
3411         PR middle-end/56461
3412         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
3413         method on dr_chain and result_chain.
3414         * tree-vect-stmts.c (vectorizable_store): Only call
3415         result_chain.create if j == 0.
3417         PR middle-end/56461
3418         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
3419         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
3420         before overwriting it.
3422 2013-03-01  Tobias Burnus  <burnus@net-b.de>
3424         * doc/extended.texi (C Extensions): Change order in @menu
3425         to match @node.
3426         (Other MIPS Built-in Functions): Move last MIPS entry before
3427         "picoChip Built-in Functions".
3428         (SH Built-in Functions): Move after RX Built-in Functions.
3429         * doc/gcc.texi (Introduction): Change order in @menu
3430         to match @node.
3431         * doc/md.texi (Constraints): Ditto.
3432         * gty.texi (Type Information): Ditto.
3433         (User-provided marking routines for template types): Make
3434         subsection.
3435         * doc/invoke.texi (AArch64 Options): Move before
3436         "Adapteva Epiphany Options".
3438 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
3439             Jakub Jelinek  <jakub@redhat.com>
3441         PR sanitizer/56454
3442         * asan.c (gate_asan): Lookup no_sanitize_address instead of
3443         no_address_safety_analysis attribute.
3444         * doc/extend.texi (no_address_safety_attribute): Rename to
3445         no_sanitize_address attribute, mention no_address_safety_analysis
3446         attribute as deprecated alias.
3448 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
3450         PR middle-end/56461
3451         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
3452         type to vec<vec<tree> > *.
3453         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
3454         to be vec<tree> instead of vec<tree> *, set vec_defs
3455         to vNULL and call vec_defs.create (number_of_vects), adjust other
3456         uses of vec_defs.
3457         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
3458         vectorizable_condition): Adjust vect_get_slp_defs callers.
3460 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3462         * config/aarch64/aarch64.c
3463         (aarch64_float_const_representable): Remove unused variable.
3465 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3467         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
3469 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3471         * config/aarch64/aarch64-builtins.c
3472         (aarch64_init_simd_builtins): Make static.
3474 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3476         * config/aarch64/aarch64.c
3477         (aarch64_simd_make_constant): Make static.
3479 2013-02-28  Martin Jambor  <mjambor@suse.cz>
3481         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
3482         with no initialization to the RHS of debug statements.
3484 2013-02-28  Martin Jambor  <mjambor@suse.cz>
3486         PR tree-optimization/56294
3487         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
3488         Adjust dumping.
3489         (get_access_replacement): Do not call create_access_replacement.
3490         Assert a replacement exists.
3491         (get_repl_default_def_ssa_name): Create the replacement declaration
3492         itself.
3494 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3496         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
3497         final_end_function.
3499 2013-02-28  Marek Polacek  <polacek@redhat.com>
3501         PR rtl-optimization/56466
3502         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
3503         if we're changing a loop.
3504         (peel_loops_completely): Likewise.
3506 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
3508         PR c++/55813
3509         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
3511 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
3513         PR target/56445
3514         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
3515         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
3516         INTX_FTYPE_FX, FX_FTYPE_INTX.
3517         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
3519 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
3521         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
3522         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
3523         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
3524         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
3525         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
3526         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
3527         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
3528         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
3529         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
3530         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
3531         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
3532         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
3533         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
3534         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
3535         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
3536         (avrxmega6): Increase max flash segments from 5 to 6.
3537         * config/avr/t-multilib: Regenerate.
3538         * config/avr/avr-tables.opt: Regenerate.
3539         * doc/avr-mmcu.texi: Regenerate.
3541 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
3543         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
3544         (avr_device_to_arch): Rename to avr_device_to_ld.
3545         (avr_device_to_as): New prototype.
3546         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
3547         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
3548         * config/avr/driver-avr.c (avr_device_to_as): New.
3549         (avr_device_to_arch): Rename to avr_device_to_ld.
3551 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
3553         PR middle-end/56461
3554         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
3555         method on dr_chain and result_chain.
3557         PR middle-end/56461
3558         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
3559         pointer_set_destroy on not_executed_last_iteration.
3561         PR middle-end/56461
3562         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
3564         PR middle-end/56461
3565         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
3566         FOR_EACH_DEFINED_FUNCTION when freeing state.
3568         PR middle-end/56461
3569         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
3570         pool_free.
3571         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
3572         overwriting it.
3574         PR middle-end/56461
3575         * ipa-cp.c (decide_whether_version_node): Call vec_free on
3576         known_aggs[i].items and release known_aggs vector.
3578         PR middle-end/56461
3579         * ipa-reference.c (propagate): Free node_info even for alias nodes.
3581 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3583         * config/microblaze/microblaze.c (microblaze_emit_compare):
3584         Use xor for EQ/NE comparisions.
3585         * config/microblaze/microblaze.md (cstoresf4): Add constraints
3586         (cbranchsf4): Adjust operator to comparison_operator.
3588 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
3590         PR middle-end/56461
3591         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
3592         vector.
3593         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
3594         vec_safe_push, always update *slot.
3595         (redirect_edge_var_map_clear): Use vec_free.
3596         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
3597         (free_var_map_entry): Use vec_free.
3598         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
3599         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
3601 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
3603         PR middle-end/45472
3604         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
3605         when the may_trap_p bit of the exprs being merged differs.
3606         Reorder tests for speculativeness in the logical and operator.
3608 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
3610         * incpath.c (add_standard_paths): Use reconcat instead of concat
3611         where appropriate and avoid leaking memory.
3613         * opts.h: Include obstack.h.
3614         (opts_concat): New prototype.
3615         (opts_obstack): New declaration.
3616         * opts.c (opts_concat): New function.
3617         (opts_obstack): New variable.
3618         (init_options_struct): Call gcc_init_obstack on opts_obstack.
3619         (finish_options): Use opts_concat instead of concat
3620         and XOBNEWVEC instead of XNEWVEC.
3621         * opts-common.c (generate_canonical_option, decode_cmdline_option,
3622         generate_option): Likewise.
3623         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
3624         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
3626         PR target/56455
3627         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
3628         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
3630 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
3632         PR middle-end/56461
3633         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
3635 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
3637         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
3638         (arm_block_move_unaligned_straight): Likewise.
3639         (arm_adjust_block_mem): Likewise.
3641 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
3643         PR target/48901
3644         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
3645         temp, cond and label.
3646         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
3648         PR target/52500
3649         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
3650         * config/c6x/c6x.h (dbx_register_map): Update declaration.
3652         PR target/52501
3653         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
3654         of prologue/epilogue functions.
3656         PR target/52550
3657         * config/tilegx/tilegx.c (tilegx_expand_prologue):
3658         Remove unused variable cfa_offset.
3659         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
3661         PR target/54639
3662         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
3663         type promotion to unsigned.
3665         PR target/54640
3666         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
3667         for HOST_WIDE_INT of 32 bit / same size as int.
3668         (arm_block_move_unaligned_straight): Likewise.
3669         (arm_adjust_block_mem): Likewise.
3671         PR target/54662
3672         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
3673         ALL_CFLAGS.
3675 2013-02-26  Marek Polacek  <polacek@redhat.com>
3677         PR tree-optimization/56426
3678         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
3680 2013-02-26  Richard Biener  <rguenther@suse.de>
3682         PR target/56444
3683         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
3684         unused variable loops.
3686 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
3688         PR tree-optimization/56448
3689         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
3690         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
3691         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
3692         later operands of the references, or even first operand for
3693         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
3695         PR tree-optimization/56443
3696         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
3697         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
3698         to type_for_mode langhook.
3700 2013-02-25  Matt Turner  <mattst88@gmail.com>
3702         * doc/invoke.texi: Document r4700.
3704 2013-02-25  Richard Biener  <rguenther@suse.de>
3706         PR tree-optimization/56175
3707         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
3708         split out from ...
3709         (simplify_bitwise_binary): ... here.  Also guard the conversion
3710         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
3712 2013-02-25  Catherine Moore  <clm@codesourcery.com>
3714         Revert:
3715         2013-02-24  Catherine Moore  <clm@codesourcery.com>
3716             Maciej W. Rozycki  <macro@codesourcery.com>
3717             Tom de Vries  <tom@codesourcery.com>
3718             Nathan Sidwell  <nathan@codesourcery.com>
3719             Iain Sandoe  <iain@codesourcery.com>
3720             Nathan Froyd  <froydnj@codesourcery.com>
3721             Chao-ying Fu  <fu@mips.com>
3723         * doc/extend.texi: (micromips, nomicromips, nocompression):
3724         Document new function attributes.
3725         * doc/invoke.texi (minterlink-compressed, mmicromips,
3726         m14k, m14ke, m14kec): Document new options.
3727         (minterlink-mips16): Update documentation.
3728         * doc/md.texi (ZC, ZD): Document new constraints.
3729         * configure.ac (gcc_cv_as_micromips): Check if linker
3730         supports the .set micromips directive.
3731         * configure: Regenerate.
3732         * config.in: Regenerate.
3733         * config/mips/mips-tables.opt: Regenerate.
3734         * config/mips/micromips.md: New file.
3735         * constraints.md (ZC, AD): New constraints.
3736         * config/mips/predicates.md (movep_src_register): New predicate.
3737         (movep_src_operand): New predicate.
3738         (non_volatile_mem_operand): New predicate.
3739         * config/mips/mips.md (multimem): New type.
3740         (length): Differentiate between 17-bit and 18-bit branch offsets.
3741         (MOVEP1, MOVEP2): New mode iterator.
3742         (mov_<load>l): Use ZC constraint.
3743         (mov_<load>r): Likewise.
3744         (mov_<store>l): Likewise.
3745         (mov_<store>r): Likewise.
3746         (*branch_equality<mode>_inverted): Add microMIPS support.
3747         (*branch_equality<mode>): Likewise.
3748         (*jump_absolute): Likewise.
3749         (indirect_jump_<mode>): Likewise.
3750         (tablejump_<mode>): Likewise.
3751         (<optab>_internal): Likewise.
3752         (sibcall_internal): Likewise.
3753         (sibcall_value_internal): Likewise.
3754         (prefetch): Use constraint ZD.
3755         * config/mips/mips.opt (minterlink-compressed): New option.
3756         (minterlink-mips16): Now an alias for minterlink-compressed.
3757         (mmicromips): New option.
3758         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3759         (compare_and_swap_12): Likewise.
3760         (sync_add<mode>): Likewise.
3761         (sync_<optab>_12): Likewise.
3762         (sync_old_<optab>_12): Likewise.
3763         (sync_new_<optab>_12): Likewise.
3764         (sync_nand_12): Likewise.
3765         (sync_old_nand_12): Likewise.
3766         (sync_new_nand_12): Likewise.
3767         (sync_sub<mode>): Likewise.
3768         (sync_old_add<mode>): Likewise.
3769         (sync_old_sub<mode>): Likewise.
3770         (sync_new_add<mode>): Likewise.
3771         (sync_new_sub<mode>): Likewise.
3772         (sync_<optab><mode>): Likewise.
3773         (sync_old_<optab><mode>): Likewise.
3774         (sync_new_<optab><mode>): Likewise.
3775         (sync_nand<mode>): Likewise.
3776         (sync_old_nand<mode>): Likewise.
3777         (sync_new_nand<mode>): Likewise.
3778         (sync_lock_test_and_set<mode>): Likewise.
3779         (test_and_set_12): Likewise.
3780         (atomic_compare_and_swap<mode>): Likewise.
3781         (atomic_exchange<mode>_llsc): Likewise.
3782         (atomic_fetch_add<mode>_llsc): Likewise.
3783         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3784         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3785         (umips_save_restore_pattern_p): Likewise.
3786         (umips_load_store_pair_p): Likewise.
3787         (umips_output_load_store_pair): Likewise.
3788         (umips_movep_target_p): Likewise.
3789         (umips_12bit_offset_address_p): Likewise.
3790         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3791         (mips_base_mips16): Rename this...
3792         (mips_base_compression_flags): ...to this. Update all uses.
3793         (mips_attribute_table): Add micromips, nomicromips and nocompression.
3794         (mips_mips16_decl_p): Delete.
3795         (mips_nomips16_decl_p): Delete.
3796         (mips_get_compress_on_flags): New function.
3797         (mips_get_compress_off_flags): New function.
3798         (mips_get_compress_mode): New function.
3799         (mips_get_compress_on_name): New function.
3800         (mips_get_compress_off_name): New function.
3801         (mips_insert_attributes): Support multiple compression types.
3802         (mips_merge_decl_attributes): Likewise.
3803         (umips_12bit_offset_address_p): New function.
3804         (mips_start_function_definition): Emit .set micromips directive.
3805         (mips_call_may_need_jalx_p): New function.
3806         (mips_function_ok_for_sibcall): Add microMIPS support.
3807         (mips_print_operand_punctuation): Support short delay slots and
3808         compact jumps.
3809         (umips_swm_mask, umips_swm_encoding): New.
3810         (umips_build_save_restore): New function.
3811         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3812         (was_mips16_p): Remove.
3813         (old_compression_mode): New.
3814         (mips_set_compression_mode): New function.
3815         (mips_set_current_function): Add microMIPS support.
3816         (mips_option_override): Likewise.
3817         (umips_save_restore_pattern_p): New function.
3818         (umips_output_save_restore): New function.
3819         (umips_load_store_pair_p_1): New function.
3820         (umips_load_store_pair_p): New function.
3821         (umips_output_load_store_pair_1): New function.
3822         (umips_output_load_store_pair): New function.
3823         (umips_movep_target_p) New function.
3824         (mips_prepare_pch_save): Add microMIPS support.
3825         * config/mips/mips.h (TARGET_COMPRESSION): New.
3826         (TARGET_CPU_CPP_BUILTINS): Update macro
3827         to use new compression flags and to support microMIPS.
3828         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3829         (MIPS_ARCH_FLOAT_SPEC): Likewise.
3830         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3831         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3832         (ASM_SPEC): Support mmicromips and mno-micromips.
3833         (M16STORE_REG_P): New macro.
3834         (MIPS_CALL): Support TARGET_MICROMIPS.
3835         (MICROMIPS_J): New macro.
3836         (mips_base_mips16): Rename this...
3837         (mips_base_compression_flags): ...to this.
3838         (UMIPS_12BIT_OFFSET_P): New macro.
3839         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3840         (MULTILIB_DIRNAMES): Likewise.
3842 2013-02-25  Tom de Vries  <tom@codesourcery.com>
3844         PR rtl-optimization/56131
3845         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
3846         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
3847         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
3849 2013-02-25  Tobias Burnus  <burnus@net-b.de>
3851         * doc/invoke.texi (-fsanitize=): Move from optimization
3852         to debugging options.
3854 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
3856         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
3858 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
3859             Alexander Monakov  <amonakov@ispras.ru>
3861         PR middle-end/56077
3862         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
3863         flush pending lists also on non-jumps.  Adjust comment.
3865 2013-02-24  Catherine Moore  <clm@codesourcery.com>
3866             Maciej W. Rozycki  <macro@codesourcery.com>
3867             Tom de Vries  <tom@codesourcery.com>
3868             Nathan Sidwell  <nathan@codesourcery.com>
3869             Iain Sandoe  <iain@codesourcery.com>
3870             Nathan Froyd  <froydnj@codesourcery.com>
3871             Chao-ying Fu  <fu@mips.com>
3873         * doc/extend.texi: (micromips, nomicromips, nocompression):
3874         Document new function attributes.
3875         * doc/invoke.texi (minterlink-compressed, mmicromips,
3876         m14k, m14ke, m14kec): Document new options.
3877         (minterlink-mips16): Update documentation.
3878         * doc/md.texi (ZC, ZD): Document new constraints.
3879         * configure.ac (gcc_cv_as_micromips): Check if linker
3880         supports the .set micromips directive.
3881         * configure: Regenerate.
3882         * config.in: Regenerate.
3883         * config/mips/mips-tables.opt: Regenerate.
3884         * config/mips/micromips.md: New file.
3885         * constraints.md (ZC, AD): New constraints.
3886         * config/mips/predicates.md (movep_src_register): New predicate.
3887         (movep_src_operand): New predicate.
3888         (non_volatile_mem_operand): New predicate.
3889         * config/mips/mips.md (multimem): New type.
3890         (length): Differentiate between 17-bit and 18-bit branch offsets.
3891         (MOVEP1, MOVEP2): New mode iterator.
3892         (mov_<load>l): Use ZC constraint.
3893         (mov_<load>r): Likewise.
3894         (mov_<store>l): Likewise.
3895         (mov_<store>r): Likewise.
3896         (*branch_equality<mode>_inverted): Add microMIPS support.
3897         (*branch_equality<mode>): Likewise.
3898         (*jump_absolute): Likewise.
3899         (indirect_jump_<mode>): Likewise.
3900         (tablejump_<mode>): Likewise.
3901         (<optab>_internal): Likewise.
3902         (sibcall_internal): Likewise.
3903         (sibcall_value_internal): Likewise.
3904         (prefetch): Use constraint ZD.
3905         * config/mips/mips.opt (minterlink-compressed): New option.
3906         (minterlink-mips16): Now an alias for minterlink-compressed.
3907         (mmicromips): New option.
3908         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3909         (compare_and_swap_12): Likewise.
3910         (sync_add<mode>): Likewise.
3911         (sync_<optab>_12): Likewise.
3912         (sync_old_<optab>_12): Likewise.
3913         (sync_new_<optab>_12): Likewise.
3914         (sync_nand_12): Likewise.
3915         (sync_old_nand_12): Likewise.
3916         (sync_new_nand_12): Likewise.
3917         (sync_sub<mode>): Likewise.
3918         (sync_old_add<mode>): Likewise.
3919         (sync_old_sub<mode>): Likewise.
3920         (sync_new_add<mode>): Likewise.
3921         (sync_new_sub<mode>): Likewise.
3922         (sync_<optab><mode>): Likewise.
3923         (sync_old_<optab><mode>): Likewise.
3924         (sync_new_<optab><mode>): Likewise.
3925         (sync_nand<mode>): Likewise.
3926         (sync_old_nand<mode>): Likewise.
3927         (sync_new_nand<mode>): Likewise.
3928         (sync_lock_test_and_set<mode>): Likewise.
3929         (test_and_set_12): Likewise.
3930         (atomic_compare_and_swap<mode>): Likewise.
3931         (atomic_exchange<mode>_llsc): Likewise.
3932         (atomic_fetch_add<mode>_llsc): Likewise.
3933         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3934         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3935         (umips_save_restore_pattern_p): Likewise.
3936         (umips_load_store_pair_p): Likewise.
3937         (umips_output_load_store_pair): Likewise.
3938         (umips_movep_target_p): Likewise.
3939         (umips_12bit_offset_address_p): Likewise.
3940         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3941         (mips_base_mips16): Rename this...
3942         (mips_base_compression_flags): ...to this. Update all uses.
3943         (mips_attribute_table): Add micromips, nomicromips and nocompression.
3944         (mips_mips16_decl_p): Delete.
3945         (mips_nomips16_decl_p): Delete.
3946         (mips_get_compress_on_flags): New function.
3947         (mips_get_compress_off_flags): New function.
3948         (mips_get_compress_mode): New function.
3949         (mips_get_compress_on_name): New function.
3950         (mips_get_compress_off_name): New function.
3951         (mips_insert_attributes): Support multiple compression types.
3952         (mips_merge_decl_attributes): Likewise.
3953         (umips_12bit_offset_address_p): New function.
3954         (mips_start_function_definition): Emit .set micromips directive.
3955         (mips_call_may_need_jalx_p): New function.
3956         (mips_function_ok_for_sibcall): Add microMIPS support.
3957         (mips_print_operand_punctuation): Support short delay slots and
3958         compact jumps.
3959         (umips_swm_mask, umips_swm_encoding): New.
3960         (umips_build_save_restore): New function.
3961         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3962         (was_mips16_p): Remove.
3963         (old_compression_mode): New.
3964         (mips_set_compression_mode): New function.
3965         (mips_set_current_function): Add microMIPS support.
3966         (mips_option_override): Likewise.
3967         (umips_save_restore_pattern_p): New function.
3968         (umips_output_save_restore): New function.
3969         (umips_load_store_pair_p_1): New function.
3970         (umips_load_store_pair_p): New function.
3971         (umips_output_load_store_pair_1): New function.
3972         (umips_output_load_store_pair): New function.
3973         (umips_movep_target_p) New function.
3974         (mips_prepare_pch_save): Add microMIPS support.
3975         * config/mips/mips.h (TARGET_COMPRESSION): New.
3976         (TARGET_CPU_CPP_BUILTINS): Update macro
3977         to use new compression flags and to support microMIPS.
3978         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3979         (MIPS_ARCH_FLOAT_SPEC): Likewise.
3980         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3981         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3982         (ASM_SPEC): Support mmicromips and mno-micromips.
3983         (M16STORE_REG_P): New macro.
3984         (MIPS_CALL): Support TARGET_MICROMIPS.
3985         (MICROMIPS_J): New macro.
3986         (mips_base_mips16): Rename this...
3987         (mips_base_compression_flags): ...to this.
3988         (UMIPS_12BIT_OFFSET_P): New macro.
3989         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3990         (MULTILIB_DIRNAMES): Likewise.
3992 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
3994         PR target/52555
3995         * target-globals.c (save_target_globals): For init_reg_sets and
3996         target_reinit remporarily set this_fn_optabs to this_target_optabs.
3998 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
4000         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4001         * config/aarch64/t-aarch64
4002         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4004 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
4006         PR inline-asm/56148
4007         * lra-constraints.c (process_alt_operands): Reload operand
4008         conflicting with earlier clobber only if no more other conflicting
4009         operands.
4011 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
4013         PR sanitizer/56393
4014         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4015         if not linking a shared library.
4017 2013-02-22  Seth LaForge  <sethml@google.com>
4019         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4021 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
4023         * config/arm/arm.md (split for extendsidi): Update condition.
4024         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4025         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4026         (qhs_zextenddi_cstr): Likewise.
4028 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
4030         PR middle-end/56420
4031         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4032         avoid signed wrapping.
4033         (expand_mult): Handle properly multiplication by
4034         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
4035         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
4036         in the compiler if coeff is HOST_WIDE_INT_MIN.
4037         (expand_divmod): Don't make ext_op1 static, change it's type to
4038         uhwi.  Avoid undefined behavior in -INTVAL (op1).
4040         PR rtl-optimization/50339
4041         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4042         field.
4043         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4044         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4045         into splitting_ashiftrt field.
4046         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4047         ASHIFTRT.
4048         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4049         choices.
4051 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
4053         PR middle-end/56108
4054         * trans-mem.c (execute_tm_mark): Do not expand transactions that
4055         are sure to go irrevocable.
4057 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
4059         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4060         scalars are valid operands.
4062 2013-02-21  Martin Jambor  <mjambor@suse.cz>
4064         PR tree-optimization/56310
4065         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4066         only matching indices and non-negative final offsets.
4067         (intersect_aggregates_with_edge): Pass src_idx to
4068         agg_replacements_to_vector.  Pass src_idx insstead of index to
4069         intersect_with_agg_replacements.
4071 2013-02-21  Martin Jambor  <mjambor@suse.cz>
4073         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4074         instead of hard-wired defaults.
4076 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
4078         * doc/invoke.texi (MIPS Options): Update documentation of the
4079         floating-point multiply-accumulate instruction restrictions.
4081 2013-02-21  Kostya Serebryany  <kcc@google.com>
4083         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4084         asan_shadow_offset on x86_64 linux.
4086 2013-02-21  Richard Biener  <rguenther@suse.de>
4088         PR tree-optimization/56415
4089         Revert
4090         2013-02-11  Richard Biener  <rguenther@suse.de>
4092         PR tree-optimization/56273
4093         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4094         first VRP run.
4096 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
4098         PR bootstrap/56258
4099         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
4100         instead of @itemx.
4102         PR inline-asm/56405
4103         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
4104         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
4106 2013-02-20  Jan Hubicka  <jh@suse.cz>
4108         PR tree-optimization/56265
4109         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
4110         when target is referenced for first time.
4112 2013-02-20  Richard Biener  <rguenther@suse.de>
4114         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
4115         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
4116         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4117         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
4118         not return anything.
4119         (rename_ssa_copies): Do not remove unused locals.
4120         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
4121         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
4122         * passes.c (execute_function_todo): Do not schedule unused locals
4123         removal if cleanup_tree_cfg did something.
4124         * tree-ssa-live.c (remove_unused_locals): Dump statistics
4125         about the number of removed locals.
4127 2013-02-20  Richard Biener  <rguenther@suse.de>
4129         PR tree-optimization/56398
4130         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
4132 2013-02-20  Martin Jambor  <mjambor@suse.cz>
4134         PR tree-optimization/55334
4135         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
4136         restricted pointers to arrays.
4138 2013-02-20  Richard Biener  <rguenther@suse.de>
4139             Jakub Jelinek  <jakub@redhat.com>
4141         PR tree-optimization/56396
4142         * tree-ssa-ccp.c (n_const_val): New static variable.
4143         (get_value): Return NULL for SSA names we don't have a lattice
4144         entry for.
4145         (ccp_initialize): Initialize n_const_val.
4146         * tree-ssa-copy.c (n_copy_of): New static variable.
4147         (init_copy_prop): Initialize n_copy_of.
4148         (get_value): Return NULL_TREE for SSA names we don't have a
4149         lattice entry for.
4151 2013-02-20  Martin Jambor  <mjambor@suse.cz>
4153         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
4155 2013-02-20  Richard Biener  <rguenther@suse.de>
4157         * genpreds.c (write_lookup_constraint): Do not compare first
4158         letter of the constraint again.
4160 2013-02-20  Richard Biener  <rguenther@suse.de>
4162         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
4163         and ceil_log2.
4164         (get_use_iv_cost): Terminate hashtable walk when coming across
4165         an empty entry.
4167 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
4169         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
4170         reassociation for avx2 targets.
4172 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4174         * config/microblaze/microblaze.c: microblaze_has_clz = 0
4175         Add version check for v8.10.a to enable microblaze_has_clz
4176         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
4177         version and TARGET_PATTERN_COMPARE check
4178         * config/microblaze/microblaze.md: New clzsi2 instruction
4180 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4182         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
4183         function before branching.
4185 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
4187         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
4188         DUMP_INSN_RTX_UID.
4189         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
4191 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
4193         PR middle-end/55889
4194         * sel-sched.c: Include ira.h.
4195         (implicit_clobber_conflict_p): New function.
4196         (moveup_expr): Use it.
4197         * Makefile.in (sel-sched.o): Depend on ira.h.
4199 2013-02-19  Richard Biener  <rguenther@suse.de>
4201         PR tree-optimization/56384
4202         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
4203         (vn_hash_type): Split out from ...
4204         (vn_hash_constant_with_type): ... here.
4205         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
4206         (vn_phi_eq): Compare types from vn_phi_s structure.
4207         (vn_phi_lookup): Populate vn_phi_s type.
4208         (vn_phi_insert): Likewise.
4210 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
4212         PR tree-optimization/56350
4213         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
4214         if haven't found reduction or nested cycle operand, rather than
4215         asserting we must find it.
4217         PR tree-optimization/56381
4218         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
4219         to fold_build3.
4221 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
4222             Jakub Jelinek  <jakub@redhat.com>
4224         PR target/52555
4225         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
4226         (swap_optab_enable): Same.
4227         (init_all_optabs): Use argument instead of global.
4228         * tree.h (struct tree_optimization_option): New field target_optabs.
4229         * expr.h (init_all_optabs): Add argument to prototype.
4230         (TREE_OPTIMIZATION_OPTABS): New.
4231         (save_optabs_if_changed): Protoize.
4232         * optabs.h: Declare this_fn_optabs.
4233         * optabs.c (save_optabs_if_changed): New.
4234         Declare this_fn_optabs.
4235         (init_optabs): Add argument to init_all_optabs() call.
4236         * function.c (invoke_set_current_function_hook): Handle per
4237         function optabs.
4238         * function.h (struct function): New field optabs.
4239         * config/mips/mips.c (mips_set_mips16_mode): Handle when
4240         optimization_current_node has changed.
4241         * target-globals.h (save_target_globals_default_opts): Protoize.
4242         * target-globals.c (save_target_globals_default_opts): New.
4244 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4246         PR target/56347
4247         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
4248         registers %fr12 and %fr12R as call used.
4250         PR target/56214
4251         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
4252         and HImode, require all displacements to be an integer multiple of
4253         their mode size.
4254         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
4255         only allow QImode and HImode when reload is in progress and strict is
4256         true.  Likewise for symbolic addresses.  Use base14_operand to check
4257         displacements in REG+BASE addresses.
4259 2013-02-18  Richard Biener  <rguenther@suse.de>
4261         PR tree-optimization/56366
4262         * tree-vect-loop.c (get_initial_def_for_induction): Properly
4263         handle sign-conversion of outer-loop initial induction value.
4265 2013-02-18  Richard Biener  <rguenther@suse.de>
4267         PR middle-end/56349
4268         * cfghooks.c (merge_blocks): If we merge a latch into another
4269         block adjust references to it.
4270         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
4271         (verify_loop_structure): Verify that a recorded latch is in fact
4272         a latch.
4274 2013-02-18  Richard Biener  <rguenther@suse.de>
4276         PR tree-optimization/56321
4277         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
4278         order SSA name release and virtual operand unlinking.
4280 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4282         * config/microblaze/microblaze.md (save_stack_block): Define.
4283         (restore_stack_block): Likewise.
4285 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4287         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
4288         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
4289         * config/microblaze/microblaze.c (microblaze_option_override):
4290         Bail out early for PIC modes when target does not support PIC.
4292 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4294         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
4295         Replace with a microblaze version.
4296         (microblaze_trampoline_init): Adapt for microblaze.
4297         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
4298         microblaze.
4300 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
4301             Dodji Seketeli  <dodji@redhat.com>
4303         PR asan/56330
4304         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
4305         (instrument_mem_region_access): Do not forget to always put
4306         instrumentation of the of 'base' and 'base + len' in a "if (len !=
4307         0) statement, even for cases where either 'base' or 'base + len'
4308         are not instrumented -- because they have been previously
4309         instrumented.  Simplify the logic by putting all the statements
4310         instrument 'base + len' inside a sequence, and then insert that
4311         sequence right before the current insertion point.  Then, to
4312         instrument 'base + len', just get an iterator on that statement.
4313         And do not forget to update the pointer to iterator the function
4314         received as argument.
4316 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
4318         PR rtl-optimization/56348
4319         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
4321 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
4323         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
4324         (clean_graph_dump_file): Pass base to start_graph_dump.
4326 2013-02-14  Richard Henderson  <rth@redhat.com>
4328         PR target/55941
4329         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
4331 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
4333         * collect2-aix.h: Define F_LOADONLY.
4335 2013-02-14  Richard Biener  <rguenther@suse.de>
4337         PR lto/50494
4338         * varasm.c (output_constant_def_1): Get the decl representing
4339         the constant as argument.
4340         (output_constant_def): Wrap output_constant_def_1.
4341         (make_decl_rtl): Use output_constant_def_1 with the decl
4342         representing the constant.
4343         (build_constant_desc): Optionally re-use a decl already
4344         representing the constant.
4345         (tree_output_constant_def): Adjust.
4347 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
4349         Fix an asan crash
4350         * asan.c (instrument_builtin_call):  Really put the length of the
4351         second source argument into src1_len.
4353 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
4355         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
4356         argument.  If it is false, don't create edge from then_bb to
4357         fallthru_bb.
4358         (insert_if_then_before_iter): Pass true to it.
4359         (build_check_stmt): Pass false to it.
4360         (transform_statements): Flush hash table only on extended basic
4361         block boundaries, rather than at the beginning of every bb.
4362         Don't flush hash table on nonfreeing_call_p calls.
4363         * tree-flow.h (nonfreeing_call_p): New prototype.
4364         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
4366 2013-02-13  David S. Miller  <davem@davemloft.net>
4368         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
4370 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
4372         PR target/56184
4373         * ira.c (max_regno_before_ira): Move from ...
4374         (ira): ... here.
4375         (fix_reg_equiv_init): Use max_regno_before_ira instead of
4376         vec_safe_length.
4378 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
4380         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
4382 2013-02-13  Richard Biener  <rguenther@suse.de>
4384         PR lto/56295
4385         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
4386         globals in MEM_REFs.
4388 2013-02-13  Richard Biener  <rguenther@suse.de>
4390         * loop-init.c (loop_optimizer_init): Clear loop state when
4391         re-initializing preserved loops.
4392         * loop-unswitch.c (unswitch_single_loop): Return whether
4393         we unswitched the loop.  Do not verify loop state here.
4394         (unswitch_loops): When we unswitched a loop discover new loops.
4396 2013-02-13  Kostya Serebryany  <kcc@google.com>
4398         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
4399         on x86_64 linux.
4400         * sanitizer.def: Rename __asan_init to __asan_init_v1.
4402 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
4404         Avoid instrumenting duplicated memory access in the same basic block
4405         * Makefile.in (asan.o): Add new dependency on hash-table.h
4406         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
4407         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
4408         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
4409         (free_mem_ref_resources, has_mem_ref_been_instrumented)
4410         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
4411         (get_mem_ref_of_assignment): New functions.
4412         (get_mem_refs_of_builtin_call): Extract from
4413         instrument_builtin_call and tweak a little bit to make it fit with
4414         the new signature.
4415         (instrument_builtin_call): Use the new
4416         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
4417         of is_gimple_builtin_call.
4418         (instrument_derefs, instrument_mem_region_access): Insert the
4419         instrumented memory reference into the hash table.
4420         (maybe_instrument_assignment): Renamed instrument_assignment into
4421         this, and change it to advance the iterator when instrumentation
4422         actually happened and return true in that case.  This makes it
4423         homogeneous with maybe_instrument_assignment, and thus give a
4424         chance to callers to be more 'regular'.
4425         (transform_statements): Clear the memory reference hash table
4426         whenever we enter a new BB, when we cross a function call, or when
4427         we are done transforming statements.  Use
4428         maybe_instrument_assignment instead of instrumentation.  No more
4429         need to special case maybe_instrument_assignment and advance the
4430         iterator after calling it; it's now handled just like
4431         maybe_instrument_call.  Update comment.
4433 2013-02-13  Richard Biener  <rguenther@suse.de>
4435         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4436         Fix loop discovery code.
4438 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
4440         PR inline-asm/56148
4441         * lra-constraints.c (process_alt_operands): Match early clobber
4442         operand with itself.  Check conflicts with earlyclobber only if
4443         the operand is not reloaded.  Prefer to reload conflicting operand
4444         if earlyclobber and matching operands are the same.
4446 2013-02-12  Richard Biener  <rguenther@suse.de>
4448         PR lto/56297
4449         * lto-streamer-out.c (write_symbol): Do not output symbols
4450         for hard register variables.
4452 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
4454         PR target/54222
4455         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
4456         (umulsidi3_insn, mulsidi3_insn): New insns.
4458 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
4460         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
4461         (struct tune_params): Add vec_costs field.
4462         * config/arm/arm.c (arm_builtin_vectorization_cost)
4463         (arm_add_stmt_cost): New functions.
4464         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
4465         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
4466         (arm_default_vec_cost): New struct of type cpu_vec_costs.
4467         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4468         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
4469         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
4470         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
4472 2013-02-12  Richard Biener  <rguenther@suse.de>
4474         PR lto/56295
4475         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
4476         decls again if possible.
4478 2013-02-12  Richard Biener  <rguenther@suse.de>
4480         PR middle-end/56288
4481         * tree-ssa.c (verify_ssa_name): Fix check, move
4482         SSA_NAME_IN_FREE_LIST check up.
4484 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
4485             Steven Bosscher   <steven@gcc.gnu.org>
4487         PR rtl-optimization/56151
4488         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
4489         equal to op0 or op1, and last_insn pattern is CODE operation
4490         with MEM dest and one of the operands matches that MEM.
4492 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
4494         * doc/extend.texi: Document Function Multiversioning and "default"
4495         parameter string to target attribute.
4496         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
4497         target attribute parameter is "default".
4498         (ix86_compare_version_priority): Remove checks for target attribute.
4499         (ix86_mangle_function_version_assembler_name): Change error to sorry.
4500         Remove check for target attribute equal to NULL. Add assert.
4501         (ix86_generate_version_dispatcher_body): Change error to sorry.
4503 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
4504             Jack Howarth  <howarth@bromo.med.uc.edu>
4505             Patrick Marlier  <patrick.marlier@gmail.com>
4507         PR libitm/55693
4508         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
4509         define ENDFILE_SPEC as TM_DESTRUCTOR.
4510         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
4512 2013-02-11  Alexander Potapenko  <glider@google.com>
4513             Jack Howarth  <howarth@bromo.med.uc.edu>
4514             Jakub Jelinek  <jakub@redhat.com>
4516         PR sanitizer/55617
4517         * config/darwin.c (cdtor_record): Rename ctor_record.
4518         (sort_cdtor_records): Rename sort_ctor_records.
4519         (finalize_dtors): New routine to sort destructors by
4520         priority before use in assemble_integer.
4521         (machopic_asm_out_destructor): Use finalize_dtors if needed.
4523 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
4525         PR rtl-optimization/56275
4526         * simplify-rtx.c (avoid_constant_pool_reference): Check that
4527         offset is non-negative and less than cmode size before
4528         calling simplify_subreg.
4530 2013-02-11  Richard Biener  <rguenther@suse.de>
4532         PR tree-optimization/56264
4533         * cfgloop.h (fix_loop_structure): Adjust prototype.
4534         * loop-init.c (fix_loop_structure): Return the number of
4535         newly discovered loops.
4536         * tree-cfgcleanup.c (repair_loop_structures): When new loops
4537         are discovered, do a full loop-closed SSA rewrite.
4539 2013-02-11  Richard Biener  <rguenther@suse.de>
4541         PR tree-optimization/56273
4542         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4543         first VRP run.
4544         (check_array_ref): Fix missing newline in dumps.
4545         (search_for_addr_array): Likewise.
4547 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
4549         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
4551 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
4553         PR target/56256
4554         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
4556 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
4558         PR rtl-optimization/56246
4559         * lra-constraints.c (simplify_operand_subreg): Try to reuse
4560         reload pseudo.
4561         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
4562         constraints are satisfied.
4564 2013-02-08  Jeff Law  <law@redhat.com>
4566         PR debug/53948
4567         * emit-rtl.c (reg_is_parm_p): New function.
4568         * regs.h (reg_is_parm_p): New prototype.
4569         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
4570         callee-clobbered registers.
4572 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4574         PR target/56043
4575         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
4576         If there is no implicit builtin declaration, just return NULL.
4578 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
4580         * config/i386/sse.md (FMAMODEM): New mode iterator.
4581         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
4582         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
4584 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
4586         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
4587         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
4588         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
4590 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4592         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
4593         (microblaze*-*-elf): Likewise.
4594         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
4595         LINK_SPEC.
4596         * config/microblaze/microblaze-c.c: Add builtin defines for
4597         _LITTLE_ENDIAN and _BIG_ENDIAN.
4598         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
4599         add to TARGET_DEFAULT flags.
4600         Expand ASM_SPEC and LINK_SPEC.
4601         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
4602         * config/microblaze/microblaze.md: Update extendsidi2 and
4603         movdi_internal instructions to use low-order / high-order reg
4604         print_operands.
4605         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
4606         options and inversemask / mask of LITTLE_ENDIAN.
4607         * config/microblaze/t-microblaze: Expand multilib options to
4608         include mlittle-endian (le) and update exceptions patterns.
4610 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
4612         PR rtl-optimization/56195
4613         * lra-constraints.c (get_reload_reg): Don't reuse regs
4614         if they have smaller mode than requested, if they have
4615         wider mode than requested, try to return a SUBREG.
4617         PR tree-optimization/56250
4618         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
4619         if type is unsigned and code isn't MULT_EXPR.
4621 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
4623         PR tree-optimization/56064
4624         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
4625         bits according to mode.
4626         * fixed-value.h (fixed_from_double_int)
4627         (const_fixed_from_double_int): Adjust comments.
4629 2013-02-08  Richard Biener  <rguenther@suse.de>
4631         PR lto/56231
4632         * lto-streamer.h (struct data_in): Remove current_file, current_line
4633         and current_col members.
4634         * lto-streamer-out.c (lto_output_location): Stream changed bits
4635         en-block for efficiency.
4636         * lto-streamer-in.c (clear_line_info): Remove.
4637         (lto_input_location): Cache current file, line and column
4638         globally via local statics.  Read changed bits en-block.
4639         (input_function): Do not call clear_line_info.
4640         (lto_read_body): Likewise.
4641         (lto_input_toplevel_asms): Likewise.
4643 2013-02-08  Michael Matz  <matz@suse.de>
4645         PR tree-optimization/52448
4646         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
4647         (nt_call_phase): New static.
4648         (add_or_mark_expr): Only mark accesses with newer phase than any
4649         call seen.
4650         (nonfreeing_call_p): New.
4651         (nt_init_block): Update nt_call_phase, mark blocks as visited.
4652         (nt_fini_block): Keep blocks marked as visited.
4653         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
4655 2013-02-08  Richard Biener  <rguenther@suse.de>
4657         * ira.c (ira): Free broken dominator information.
4659 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
4661         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
4663 2013-02-08  Marek Polacek  <polacek@redhat.com>
4665         * cfgloop.c (verify_loop_structure): Add more checking of headers.
4667 2013-02-08  Richard Biener  <rguenther@suse.de>
4669         PR middle-end/56181
4670         * cfgloop.h (flow_loops_find): Adjust.
4671         (bb_loop_header_p): Declare.
4672         * cfgloop.c (bb_loop_header_p): New function split out from ...
4673         (flow_loops_find): ... here.  Adjust function signature,
4674         support incremental loop structure update.
4675         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
4676         * cfgloopmanip.c (fix_loop_structure): Move ...
4677         * loop-init.c (fix_loop_structure): ... here.
4678         (apply_loop_flags): Split out from ...
4679         (loop_optimizer_init): ... here.
4680         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
4681         in incremental mode, only remove dead loops here.
4683 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
4685         PR target/54222
4686         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
4687         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
4688         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
4689         (*round<mode>3.libgcc): New insns for fixed-modes.
4690         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
4691         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
4692         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
4693         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
4694         implementations.  Define to __builtin_avr_absFX,
4695         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
4696         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
4697         __builtin_avr_countlsFX, respectively.
4698         * config/avr/avr-c.c (target.h): Include it.
4699         (enum avr_builtin_id): New enum.
4700         (avr_resolve_overloaded_builtin): New static function.
4701         (avr_register_target_pragmas): Use it to set
4702         targetm.resolve_overloaded_builtin.
4703         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
4704         tree nodes used by DEF_BUILTIN.
4705         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
4706         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
4707         <AVR_BUILTIN_xxBITS>: Same.
4709 2013-02-08  Richard Biener  <rguenther@suse.de>
4711         * cfgloop.c (verify_loop_structure): Properly handle
4712         a loop exiting to another loop header.
4713         * ira-int.h (ira_loops): Remove.
4714         * ira.c (ira_loops): Remove.
4715         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
4716         (do_reload): Use loop_optimizer_finalize.
4717         * ira-build.c (create_loop_tree_nodes): Use get_loops and
4718         number_of_loops to access the loop tree.
4719         (more_one_region_p): Likewise.
4720         (finish_loop_tree_nodes): Likewise.
4721         (rebuild_regno_allocno_maps): Likewise.
4722         (mark_loops_for_removal): Likewise.
4723         (mark_all_loops_for_removal): Likewise.
4724         (remove_unnecessary_regions): Likewise.
4725         (ira_build): Likewise.
4726         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4728 2013-02-08  Richard Biener  <rguenther@suse.de>
4730         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
4731         * ipa-pure-const.c (analyze_function): Avoid calling
4732         mark_irreducible_loops twice.
4733         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
4735 2013-02-07  David S. Miller  <davem@davemloft.net>
4737         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
4738         on 'reg'.
4739         * var-tracking.c (vt_add_function_parameter): Test the presence of
4740         HAVE_window_save properly and do not remap argument registers when
4741         we have a leaf function.
4743 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
4745         PR bootstrap/56227
4746         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
4747         instead of "ll".
4748         * config/i386/i386.c (ix86_print_operand): Ditto.
4750 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
4752         * lra-constraints.c (process_alt_operands): Fix recently added comment.
4754 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
4756         PR rtl-optimization/56225
4757         * lra-constraints.c (process_alt_operands): Check that reload hard
4758         reg can hold value for strict_low_part.
4760 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
4762         PR debug/56154
4763         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
4764         dwarf2out_end_function.
4765         (in_first_function_p, maybe_at_text_label_p,
4766         first_loclabel_num_not_at_text_label): New variables.
4767         (dwarf2out_var_location): In the first function find out
4768         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
4769         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
4770         functions.
4772 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
4774         PR rtl-optimization/56178
4775         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
4776         SUBREG of a register.  Tidy up related block of code.
4777         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
4778         note if the source is a register or a SUBREG of a register.
4780 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
4782         PR target/56228
4783         * config/rs6000/rs6000.md (ptrm): New mode attr.
4784         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
4785         call_value_indirect_aix<pttrsize>,
4786         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
4787         m in constraints.
4789 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
4791         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
4792         if -bnortl. Convert to strcmp and strncmp.
4794 2013-02-07  Alan Modra  <amodra@gmail.com>
4796         PR target/54009
4797         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
4798         addresses won't wrap when offsetting.
4799         (rs6000_secondary_reload): Provide secondary reloads needed for
4800         wrapping LO_SUM addresses.
4802 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
4804         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
4805         MACH, just __MACH__.
4807 2013-02-06  Richard Biener  <rguenther@suse.de>
4809         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
4810         instead of calling fix_loop_structure.
4812 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
4814         PR middle-end/56217
4815         * omp-low.c (use_pointer_for_field): Return false if
4816         lower_send_shared_vars doesn't generate any copy-out code.
4818 2013-02-06  Tom de Vries  <tom@codesourcery.com>
4820         PR rtl-optimization/56131
4821         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
4822         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
4823         of the label is NULL.  Add comment.
4825 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
4827         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
4829         PR sanitizer/55374
4830         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
4831         (STATIC_LIBTSAN_LIBS): Likewise.
4832         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
4833         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
4834         is defined, don't add anything else beyond that.
4835         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
4836         (LINK_COMMAND_SPEC): Use them.
4838         PR tree-optimization/56205
4839         * tree-stdarg.c (check_all_va_list_escapes): Return true if
4840         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
4841         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
4843 2013-02-05  Richard Biener  <rguenther@suse.de>
4845         PR tree-optimization/53342
4846         PR tree-optimization/53185
4847         * tree-vectorizer.h (vect_check_strided_load): Remove.
4848         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
4849         not disallow peeling for vectorized strided loads.
4850         (vect_check_strided_load): Make static and simplify.
4851         (vect_analyze_data_refs): Adjust.
4852         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
4853         correctly when vectorizing strided loads.
4855 2013-02-05  Richard Biener  <rguenther@suse.de>
4857         * doc/install.texi: Refer to ISL, not PPL.
4859 2013-02-05  Jan Hubicka  <jh@suse.cz>
4861         PR tree-optimization/55789
4862         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
4864 2013-02-05  Jan Hubicka  <jh@suse.cz>
4866         PR tree-optimization/55789
4867         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
4868         the dead call anyway.
4870 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
4872         PR sanitizer/55374
4873         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
4875 2013-02-04  Alexander Potapenko  <glider@google.com>
4876             Jack Howarth  <howarth@bromo.med.uc.edu>
4877             Jakub Jelinek  <jakub@redhat.com>
4879         PR sanitizer/55617
4880         * config/darwin.c (sort_ctor_records): Stabilized qsort
4881         on constructor priority by using original position.
4882         (finalize_ctors): New routine to sort constructors by
4883         priority before use in assemble_integer.
4884         (machopic_asm_out_constructor): Use finalize_ctors if needed.
4886 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
4888         PR libstdc++/54314
4889         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
4890         about visibility on artificial decls.
4891         * config/sol2.c (solaris_assemble_visibility): Likewise.
4893 2013-02-04  Kai Tietz  <ktietz@redhat.com>
4895         PR target/56186
4896         * config/i386/i386.c (function_value_ms_64): Add additional valtype
4897         argument and improve checking of return-argument types for 16-byte
4898         modes.
4899         (ix86_function_value_1): Add additional valtype argument on call
4900         of function_value_64.
4901         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
4902         handling infunction_value_64 function.
4904 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
4906         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
4908 2013-02-04  Richard Biener  <rguenther@suse.de>
4910         PR tree-optimization/56188
4911         * tree-ssa-structalias.c (label_visit): Consider case with
4912         initially non-empty points-to set.
4913         (perform_var_substitution): Dump node mapping and clean up.
4915 2013-02-04  Richard Guenther  <rguenther@suse.de>
4917         PR lto/56168
4918         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
4919         node prevail as last resort.
4920         (lto_symtab_merge_decls): Remove guard on LTRANS here.
4921         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
4923 2013-02-04  Richard Biener  <rguenther@suse.de>
4925         PR tree-optimization/56113
4926         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
4927         Merge into ...
4928         (equiv_class_lookup_or_add): ... this.
4929         (label_visit): Adjust and fix error in previous patch.
4930         (perform_var_substitution): Adjust.
4932 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
4934         * config/sh/divtab.c: Fix formatting and comments throughout the file.
4935         * config/sh/sh4-300.md: Likewise.
4936         * config/sh/sh4a.md: Likewise.
4937         * config/sh/constraints.md: Likewise.
4938         * config/sh/sh.md: Likewise.
4939         * config/sh/netbsd-elf.h: Likewise.
4940         * config/sh/predicates.md: Likewise.
4941         * config/sh/sh-protos.h: Likewise.
4942         * config/sh/ushmedia.h: Likewise.
4943         * config/sh/linux.h: Likewise.
4944         * config/sh/sh.c: Likewise.
4945         * config/sh/superh.h: Likewise.
4946         * config/sh/elf.h: Likewise.
4947         * config/sh/sh4.md: Likewise.
4948         * config/sh/sh.h: Likewise.
4950 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4952         * config/pa/constraints.md: Adjust unused letters.  Change "T"
4953         constraint to match_test floating_point_store_memory_operand().
4954         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
4955         (base14_operand): New.
4956         (floating_point_store_memory_operand): New.
4957         (integer_store_memory_operand): Revise to use base14_operand and
4958         reg_plus_base_memory_operand.
4959         (move_dest_operand): Allow symbolic_memory_operands.
4960         (symbolic_memory_operand): Check for LO_SOM.
4961         (symbolic_operand): Change default case to break.
4962         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
4963         CONST_DOUBLE values to be reloaded by putting them into memory when
4964         the destination is a floating point register.
4965         (movdf): Remove code to handle CONST_DOUBLE.
4966         (movsf): Likewise.
4967         (reload_indf_r1): New.
4968         (reload_insf_r1): New.
4969         Consistently use "Q" and "T" constraints with integer and floating
4970         point move instructions, respectively.
4971         (movdi): Remove FAIL.
4972         Change predicate for source operand unamed DImode move from
4973         general_operand to move_src_operand.
4974         (umulsidi3): Change predicate for destination operand to
4975         register_operand.
4976         Likewise for similar unamed patterns.
4977         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
4978         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
4979         (hppa_legitimize_address): Simplify mask calculation.
4980         (pa_emit_move_sequence): Revised handling of secondary reloads from
4981         REG+D addresses for floating point loads and stores.  Directly handle
4982         loading CONST0_RTX (mode) to a floating point register.
4983         (pa_secondary_reload): Handle reloading DF and SFmode constant values
4984         to floating point registers.  Don't restrict secondary reloads to
4985         floating point registers to integer modes.  Revise some comments and
4986         cleanup some code.
4987         (TARGET_LEGITIMATE_ADDRESS_P): Define.
4988         (pa_legitimate_address_p): New.
4989         (pa_legitimize_reload_address): New.
4990         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
4991         (STRICT_REG_OK_FOR_BASE_P): New.
4992         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
4993         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
4995 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
4996             Andrew Dixie  <andrewd@gentrack.com>
4998         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
4999         flag set.
5001 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
5003         * expmed.c (extract_bit_field_1): Pass the full width of the
5004         structure to get_best_reg_extraction_insn.
5006 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
5008         PR target/54601
5009         * configure.ac (use_cxa_atexit): Add AIX.
5010         * configure: Regenerate.
5012         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5014 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
5016         PR debug/54793
5017         * final.c (need_profile_function): New variable.
5018         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5019         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5020         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5021         notes, targetm.asm_out.function_prologue doesn't emit anything,
5022         HAVE_prologue and profiler should be emitted before prologue,
5023         set need_profile_function instead of emitting it.
5024         (final_scan_insn): If need_profile_function, emit
5025         profile_function on the first NOTE_INSN_BASIC_BLOCK or
5026         NOTE_INSN_FUNCTION_BEG note.
5028 2013-02-01  Richard Henderson  <rth@redhat.com>
5030         * config/rs6000/rs6000.md (smulditi3): New.
5031         (umulditi3): New.
5033         * config/alpha/alpha.md (umulditi3): New.
5035 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
5037         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5038         (ASM_OUTPUT_ALIGNED_LOCAL): New.
5040 2013-02-01  Richard Biener  <rguenther@suse.de>
5042         PR tree-optimization/56113
5043         * tree-ssa-structalias.c (label_visit): Reduce work for
5044         single-predecessor nodes.
5046 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
5048         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5049         range isn't testing for zero.
5051 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
5053         PR middle-end/56113
5054         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5056 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
5057             Nick Clifton  <nickc@redhat.com>
5059         * config/v850/constraints.md (Q): Define as a memory constraint.
5060         * config/v850/predicates.md (label_ref_operand): New predicate.
5061         (e3v5_shift_operand): New predicate.
5062         (ior_operator): New predicate.
5063         * config/v850/t-v850: Add e3v5 multilib.
5064         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5065         (v850_gen_movdi): Prototype.
5066         * config/v850/v850.c: Add support for e3v5 architecture.
5067         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5068         TARGET_V850E_UP.
5069         (construct_save_jarl): Add e3v5 long JARL support.
5070         (v850_adjust_insn_length): New function.  Adjust length of call
5071         insns when using e3v5 instructions.
5072         (v850_gen_movdi): New function: Generate instructions to move a
5073         DImode value.
5074         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5075         (CPP_SPEC): Define __v850e3v5__ as appropriate.
5076         (TARGET_USE_FPU): Enable for e3v5.
5077         (CONST_OK_FOR_W): New macro.
5078         (ADJUST_INSN_LENGTH): Define.
5079         * config/v850/v850.md (UNSPEC_LOOP): Define.
5080         (attr cpu): Add v850e3v5.
5081         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
5082         (movdi): New pattern.
5083         (movdi_internal): New pattern.
5084         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
5085         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
5086         (cstoresf4): Likewise.
5087         (cstoredf4): Likewise.
5088         (insv): New pattern.
5089         (rotlso3_a): New pattern.
5090         (rotlsi3_b): New pattern
5091         (rotlsi3_v850e3v5): New pattern.
5092         (doloop_begin): New pattern.
5093         (fix_loop_counter): New pattern.
5094         (doloop_end): New pattern.
5095         (branch_normal): Add e3v5 long branch support.
5096         (branch_invert): Likewise.
5097         (branch_z_normal): Likewise.
5098         (branch_z_invert): Likewise.
5099         (branch_nz_normal): Likewise.
5100         (branch_nz_invert): Likewise.
5101         (call_internal_short): Add e3v5 register-indirect JARL support.
5102         (call_internal_long): Likewise.
5103         (call_value_internal_short): Likewise.
5104         (call_value_internal_long): Likewise.
5105         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
5106         (mloop): New option.
5107         * config.gcc: Add support for configuring v840e3v5 target.
5108         * doc/invoke.texi: Document new v850 specific command line options.
5110 2013-01-31  Paul Koning  <ni1d@arrl.net>
5112         PR debug/55059
5113         PR debug/54508
5114         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
5115         children if parent is a class.
5116         (prune_unused_types_prune): Don't add DW_AT_declaration.
5118 2013-01-31  Richard Biener  <rguenther@suse.de>
5120         PR tree-optimization/56157
5121         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
5122         match up operand with SLP child.
5124 2013-01-31  Jason Merrill  <jason@redhat.com>
5126         PR debug/54410
5127         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
5128         parameters the first time.
5129         (gen_scheduled_generic_parms_dies): Check completeness here.
5131 2013-01-31  Richard Biener  <rguenther@suse.de>
5133         PR middle-end/53073
5134         * common.opt (faggressive-loop-optimizations): New flag,
5135         enabled by default.
5136         * doc/invoke.texi (faggressive-loop-optimizations): Document.
5137         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
5138         infer_loop_bounds_from_undefined by it.
5140 2013-01-31  Richard Biener  <rguenther@suse.de>
5142         PR tree-optimization/56150
5143         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
5144         visit virtual operands.
5145         (find_uses_to_rename_bb): Likewise.
5147 2013-01-31  Richard Biener  <rguenther@suse.de>
5149         PR tree-optimization/56150
5150         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
5151         mixed store non-store stmts.
5153 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
5155         PR sanitizer/55374
5156         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
5157         LIBASAN_EARLY_SPEC is defined.
5158         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
5159         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
5160         before %o.
5161         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
5163         PR c++/55742
5164         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
5165         invalid args instead of ICEing on it.
5166         (ix86_valid_target_attribute_tree): Return error_mark_node if
5167         ix86_valid_target_attribute_inner_p failed.
5168         (ix86_valid_target_attribute_p): Return false only if
5169         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
5170         target("default") attribute.
5171         (sorted_attr_string): Change argument from const char * to tree,
5172         merge in all target attribute arguments rather than just one.
5173         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
5174         instead of free.  Avoid using strcat.
5175         (ix86_mangle_function_version_assembler_name): Mangle
5176         target("default") as if no target attribute is present.  Adjust
5177         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
5178         instead of xmalloc and XDELETEVEC instead of free.
5179         (ix86_function_versions): Don't return true if one of the decls
5180         doesn't have target attribute.  If they don't and one of the decls
5181         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
5182         sorted_attr_string caller.  Use XDELETEVEC instead of free.
5183         (ix86_supports_function_versions): Remove.
5184         (make_name): Fix up formatting.
5185         (make_dispatcher_decl): Remove resolver_name and its initialization.
5186         Avoid leaking memory.
5187         (is_function_default_version): Return true if there is
5188         target("default") attribute rather than no target attribute at all.
5189         (make_resolver_func): Avoid leaking memory.
5190         (ix86_generate_version_dispatcher_body): Likewise.
5191         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
5192         * target.def (supports_function_versions): Remove.
5193         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
5194         * doc/tm.texi: Regenerated.
5196 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
5198         PR rtl-optimization/56144
5199         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
5200         for values with side effects.
5202 2013-01-30  Richard Biener  <rguenther@suse.de>
5204         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
5205         (sparseset_pop): Likewise.
5206         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
5207         to be able to use quick_push in the worker loop.
5209 2013-01-30  Marek Polacek  <polacek@redhat.com>
5211         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
5213 2013-01-30  Richard Biener  <rguenther@suse.de>
5215         PR lto/56147
5216         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
5218 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
5220         PR tree-optimization/56064
5221         * fixed-value.c (fixed_from_double_int): New function.
5222         * fixed-value.h (fixed_from_double_int): New prototype.
5223         (const_fixed_from_double_int): New static inline function.
5224         * fold-const.c (native_interpret_fixed): New static function.
5225         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
5226         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
5227         (native_encode_fixed): New static function.
5228         (native_encode_expr) <FIXED_CST>: Use it.
5229         (native_interpret_int): Move double_int worker code to...
5230         * double-int.c (double_int::from_buffer): ...this new static method.
5231         * double-int.h (double_int::from_buffer): Prototype it.
5233 2013-01-30  Richard Biener  <rguenther@suse.de>
5235         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
5236         New pointer-map and obstack.
5237         (init_alias_vars): Allocate pointer-map and obstack.
5238         (delete_points_to_sets): Free them.
5239         (find_what_var_points_to): Cache result.
5240         (find_what_p_points_to): Adjust for changed interface of
5241         find_what_var_points_to.
5242         (compute_points_to_sets): Likewise.
5243         (ipa_pta_execute): Likewise.
5245 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5247         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
5248         * configure: Regenerate.
5249         * config.in: Regenerate.
5250         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
5251         #nobits/#progbits if supported.
5253 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
5255         PR target/56121
5256         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
5257         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
5258         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
5260 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5262         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
5263         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
5265 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5267         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
5268         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
5270 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5272         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
5273         declaration.
5274         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
5275         * config/arm/cortex-a7.md: New bypasses using
5276         arm_mac_accumulator_is_result.
5278 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5280         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
5281         (cortex_a7_neon_mla): Likewise.
5282         (cortex_a7_fpfmad): New reservation.
5283         (cortex_a7_fpmacs): Use ffmas and update required units.
5284         (cortex_a7_fpmuld): Update required units and latency.
5285         (cortex_a7_fpmacd): Likewise.
5286         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
5287         (cortex_a7_neon). Likewise.
5288         (bypass) Update participating units.
5290 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
5292         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
5293         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
5294         from fmac to ffma.
5295         * config/arm/vfp11.md (vfp_farith): Use ffmas.
5296         (vfp_fmul): Use ffmad.
5297         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
5298         (cortex_r4_fmacd): Use ffmad.
5299         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
5300         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
5301         (cortex_a9_fmacd): Use ffmad.
5302         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
5303         (cortex_a8_vfp_macd): Use ffmad.
5304         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
5305         (cortex_a5_fpmacd): Use ffmad.
5306         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
5307         (cortex_a15_vfp_macd): Use ffmad.
5308         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
5310 2013-01-29  Jason Merrill  <jason@redhat.com>
5312         PR libstdc++/54314
5313         * varasm.c (default_assemble_visibility): Don't warn about
5314         visibility on artificial decls.
5316 2013-01-29  Richard Biener  <rguenther@suse.de>
5318         PR tree-optimization/56113
5319         * tree-ssa-structalias.c (equiv_class_lookup): Also return
5320         the bitmap leader.
5321         (label_visit): Free duplicate bitmaps and record the leader instead.
5322         (perform_var_substitution): Adjust.
5324 2013-01-29  Richard Biener  <rguenther@suse.de>
5326         PR tree-optimization/55270
5327         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
5328         the CFG, schedule loops for fixup.
5330 2013-01-29  Nick Clifton  <nickc@redhat.com>
5332         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
5333         SP_REG.
5335 2013-01-28  Leif Ekblad  <leif@rdos.net>
5337         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
5338         * config/i386/i386.h (TARGET_RDOS): New macro.
5339         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
5340         * config/i386/i386.c (ix86_option_override_internal): For 64bit
5341         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
5342         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
5343         DEFAULT_LARGE_SECTION_THRESHOLD.
5344         * config/i386/i386.md (R14_REG, R15_REG): New constants.
5345         * config/i386/rdos.h: New file.
5346         * config/i386/rdos64.h: New file.
5348 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
5350         PR other/54814
5351         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
5352         TEST_HARD_REG_BIT.
5354 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
5356         PR rtl-optimization/56117
5357         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
5358         call cselib_lookup_from_insn on the MEM before calling
5359         add_insn_mem_dependence.
5361 2013-01-28  Richard Biener  <rguenther@suse.de>
5363         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
5364         to a stmt that didn't have one.
5365         (copy_phis_for_bb): Likewise for PHI arguments.
5366         (copy_debug_stmt): Likewise for debug stmts.
5368 2013-01-28  Richard Biener  <rguenther@suse.de>
5370         PR tree-optimization/56034
5371         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
5372         (partition_builtin_p): Adjust.
5373         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
5374         it is the last partition.
5375         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
5376         up the vertex for the definition.
5377         (classify_partition): Classify whether a partition is a
5378         PKIND_REDUCTION, thus has uses outside of the loop.
5379         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
5380         Merge all PKIND_REDUCTION partitions into the last partition.
5381         (tree_loop_distribution): Seed partitions from reductions as well.
5383 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
5385         PR tree-optimization/56125
5386         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
5387         pow(x,c) into sqrt(x) * powi(x, n/2) or
5388         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
5389         optimizing for size.
5390         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
5391         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
5392         integer.
5394         PR tree-optimization/56094
5395         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
5396         to UNKNOWN_LOCATION while gimplifying expr.
5398 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
5400         PR target/56114
5401         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
5402         operand 0 in movabs insn template for -masm=intel asm alternative.
5403         (*movabs<mode>_2): Ditto for operand 1.
5405 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
5407         PR target/54663
5408         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
5409         of microblaze-c.o
5411 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5413         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
5414         tm_file.
5416 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5418         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
5419         Undef to avoid warning.
5421 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5423         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
5424         * configure: Regenerate.
5426 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
5428         PR tree-optimization/56098
5429         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
5430         for stmts with volatile ops.
5431         (cond_store_replacement): Don't optimize if assign has volatile ops.
5432         (cond_if_else_store_replacement_1): Don't optimize if either
5433         then_assign or else_assign have volatile ops.
5434         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
5435         volatile ops.
5437 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
5439         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
5441 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
5443         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
5444         missing ':' in asm example.
5446 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
5448         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
5449         entries into lane and laneq entries.
5450         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
5451         Remove AdvSIMD scalar modes.
5452         (aarch64_sq<r>dmulh_laneq<mode>): New.
5453         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
5454         modes.
5455         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
5456         builtin implementations to relfect changes in RTL in aarch64-simd.md.
5457         * config/aarch64/iterators.md (VCOND): New.
5458         (VCONQ): New.
5460 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
5462         PR target/54222
5463         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
5464         Add NULL LIBNAME argument to existing definitions.
5465         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
5466         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
5467         * config/avr/avr.c (DEF_BUILTIN): Same.
5468         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
5469         (avr_expand_builtin): Expand to a vanilla call if a libgcc
5470         implementation is available (DECL_ASSEMBLER_NAME is set).
5471         (avr_fold_absfx): New static function.
5472         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
5473         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
5474         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
5475         AVR_BUILTIN_ABSLLK.
5476         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
5477         (abshk, absk, abslk, absllk): Provide as static inline functions.
5479 2013-01-25  Marek Polacek  <polacek@redhat.com>
5481         PR tree-optimization/56035
5482         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
5484 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
5486         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
5487         (*movtf_internal_rex64): Add (!o,C) alternative
5488         (*movxf_internal_rex64): Ditto.
5489         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
5491 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
5493         * doc/invoke.texi: fix typo.
5494         * doc/objc.texi: fix typo.
5496 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
5498         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
5499         for the first two alternatives.
5501 2013-01-24  Diego Novillo  <dnovillo@google.com>
5503         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
5504         (ggc-zone.o): Remove.
5505         * configure.ac: Remove option --with-gc.
5506         * configure: Re-generate.
5507         * doc/install.texi: Remove documentation for --with-gc.
5508         * gengtype.c (write_enum_defn): Remove.  Update all users.
5509         (write_Types_process_field): Remove generation of gt_e_* argument.
5510         (output_type_enum): Remove.  Update all users.
5511         (write_enum_defn): Remove.  Update all users.
5512         (enum alloc_zone): Remove.  Update all users.
5513         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
5514         * ggc-common.c (ggc_splay_alloc): Remove first argument.
5515         Update all callers.
5516         (struct ptr_data): Remove field TYPE.  Update all users.
5517         (gt_pch_note_object): Remove argument TYPE.  Update all users.
5518         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
5519         Update all users.
5520         * ggc-none.c (ggc_alloc_typed_stat): Remove.
5521         (struct alloc_zone): Remove.
5522         (ggc_internal_alloc_zone_stat): Remove.
5523         (ggc_internal_cleared_alloc_zone_stat): Remove.
5524         * ggc-page.c (ggc_alloc_typed_stat): Remove.
5525         (ggc_pch_count_object): Remove last argument.  Update all users.
5526         (ggc_pch_alloc_object): Remove last argument.  Update all users.
5527         (struct alloc_zone): Remove.
5528         * ggc-zone.c: Remove.
5529         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
5530         (struct alloc_zone): Remove.
5531         (ggc_alloc_typed_stat): Remove.
5532         (ggc_alloc_typed): Remove.
5533         (ggc_splay_alloc): Remove first argument.
5534         (rtl_zone): Remove.  Update all users.
5535         (tree_zone): Remove.  Update all users.
5536         (tree_id_zone): Remove.  Update all users.
5537         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
5538         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
5539         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
5540         * tree-ssanames.c: Remove references to zone allocator in comments.
5542 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
5544         * config/avr/avr.c (avr_out_fract): Make register numbers that
5545         might be outside of source operand signed.
5547 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
5549         * config/i386/constraints.md (Yf): New constraint.
5550         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
5551         of f constraint to conditionaly disable x87 register preferences.
5552         (*movdf_internal): Ditto.
5553         (*movsf_internal): Ditto.
5555 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
5557         PR inline-asm/55934
5558         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
5559         that have operands with impossible constraints.
5560         Add a FIXME for a speed-up opportunity.
5561         * lra-constraints.c (process_alt_operands): Verify that a class
5562         selected from constraints on asms is valid for the operand mode.
5563         (curr_insn_transform): Remove incorrect comment.
5565 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
5567         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
5568         TOC operand is a valid symbol ref in the constant pool.
5570 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5572         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
5574 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
5576         PR target/54222
5577         * config/avr/stdfix.h: New file.
5578         * t-avr (stdfix-gcc.h): New rule to build it.
5579         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
5581 2013-01-23  Kostya Serebryany  <kcc@google.com>
5583         * config/darwin.h: remove dependency on
5584         CoreFoundation (asan on Mac OS).
5586 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
5588         PR target/49069
5589         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
5590         instead of cmpdi_operand for first comparison operand.
5591         Don't assert that comparison operands aren't both constants.
5593 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
5595         * doc/install.texi (Downloading the Source): Update references to
5596         downloading separate components.
5598 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
5600         * doc/extend.texi (__int128): Improve grammar.
5602 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
5604         PR target/56028
5605         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
5606         alternative to (o,r).
5607         (*movdi_internal_rex64): Remove (!o,n) alternative.
5608         (DImode immediate->memory splitter): Remove.
5609         (DImode immediate->memory peephole2): Remove.
5610         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
5611         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
5612         alternative to (!o,*r).
5613         (*movtf_internal_sse): New pattern.
5614         (*movxf_internal_rex64): New pattern.
5615         (*movxf_internal): Disable for TARGET_64BIT.
5616         (*movdf_internal_rex64): Remove (!o,F) alternative.
5618 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
5620         PR middle-end/56074
5621         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
5622         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
5623         * tree-vect-loop-manip.c (find_loop_location): Also ignore
5624         stmt locations where LOCATION_LOCUS of the stmt location is
5625         UNKNOWN_LOCATION or BUILTINS_LOCATION.
5627         PR target/55686
5628         * config/i386/i386.md (UNSPEC_STOS): New.
5629         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
5630         *strsetqi_1): Add UNSPEC_STOS.
5632 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
5634         PR c++/56067
5635         * doc/invoke.texi: Remove left over -Wsynth example.
5637 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
5639         PR tree-optimization/56051
5640         * fold-const.c (fold_binary_loc): Don't fold
5641         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
5642         a narrowing conversion, or widening conversion from signed
5643         to unsigned.
5645 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
5647         PR rtl-optimization/56023
5648         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
5649         dependent on debug instruction.
5651 2013-01-21  Martin Jambor  <mjambor@suse.cz>
5653         PR middle-end/56022
5654         * function.c (allocate_struct_function): Call
5655         invoke_set_current_function_hook earlier.
5657 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
5659         * reload1.c (init_reload): Only initialize reload_obstack
5660         during the first call.
5662 2013-01-21  Marek Polacek  <polacek@redhat.com>
5664         * cfgloop.c (verify_loop_structure): Fix up grammar.
5666 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
5668         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
5669         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
5671 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5673         PR target/56058
5674         * config/arm/marvell-pj4.md: Update copyright year.
5675         Fix up use of alu to alu_reg and simple_alu_imm.
5677 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
5679         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
5681 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
5683         PR target/55433
5684         * lra-constraints.c (curr_insn_transform): Don't reuse original
5685         insn for secondary memory move when memory mode should be different.
5687 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5689         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
5690         atomic_storedi_1): New patterns.
5692 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5694         btver2 pipeline descriptions.
5695         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
5696         descriptions.
5697         * config/i386/i386.md (btver2_decode): New type attributes.
5698         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
5699         type attributes.
5700         * config/i386/btver2.md: New file describing btver2 pipelines.
5702 2013-01-19  Andrew Pinski  <apinski@cavium.com>
5704         PR tree-optimization/52631
5705         * tree-ssa-sccvn (visit_use): Before looking up the original
5706         statement, try looking up the simplified expression.
5708 2013-01-19  Anthony Green  <green@moxielogic.com>
5710         * config/moxie/moxie.c (moxie_expand_prologue): Set
5711         current_function_static_stack_size.
5713 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
5715         PR tree-optimization/56029
5716         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
5717         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
5719 2013-01-18  Sharad Singhai  <singhai@google.com>
5721         PR tree-optimization/55995
5722         * dumpfile.c (dump_loc): Print location only if available.
5723         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
5725 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
5727         PR target/55433
5728         * lra-constraints.c (curr_insn_transform): Reuse original insn for
5729         secondary memory move.
5730         (inherit_reload_reg): Use rclass instead of cl for
5731         check_secondary_memory_needed_p.
5733 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
5735         PR middle-end/56015
5736         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
5737         the case where writing real complex part of target modifies op1.
5739 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
5741         * config/aarch64/aarch64-simd.md
5742         (aarch64_vcond_internal<mode>): Handle unordered cases.
5743         * config/aarch64/iterators.md (v_cmp_result): New.
5745 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
5746             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5748         * config/arm/marvell-pj4.md: New file.
5749         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
5750         * config/arm/arm.md (generic_sched): Add marvell_pj4.
5751         (generic_vfp): Likewise.
5752         * config/arm/arm-cores.def: Add marvell-pj4.
5753         * config/arm/arm-tune.md: Regenerate.
5754         * config/arm/arm-tables.opt: Regenerate.
5755         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
5756         * doc/invoke.texi: Document marvell-pj4.
5758 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
5760         * config/aarch64/arm_neon.h: Map scalar types to standard types.
5762 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
5764         PR debug/54114
5765         PR debug/54402
5766         PR debug/49888
5767         * var-tracking.c (negative_power_of_two_p): New.
5768         (global_get_addr_cache, local_get_addr_cache): New.
5769         (get_addr_from_global_cache, get_addr_from_local_cache): New.
5770         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
5771         heading comment.
5772         (vt_stack_offset_p): Remove.
5773         (vt_canon_true_dep): Always canonicalize loc's address.
5774         (clobber_overlapping_mems): Make sure we have a MEM.
5775         (local_get_addr_clear_given_value): New.
5776         (val_reset): Clear local cached entries.
5777         (compute_bb_dataflow): Create and release the local cache.
5778         Disable duplicate MEMs clobbering.
5779         (emit_notes_in_bb): Clobber MEMs likewise.
5780         (vt_emit_notes): Create and release the local cache.
5781         (vt_initialize, vt_finalize): Create and release the global
5782         cache, respectively.
5783         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
5785 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
5787         PR libmudflap/53359
5788         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
5789         not found in the symtab.
5791 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
5793         PR debug/56006
5794         PR rtl-optimization/55547
5795         PR rtl-optimization/53827
5796         PR debug/53671
5797         PR debug/49888
5798         * alias.c (offset_overlap_p): New, factored out of...
5799         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
5800         the conservative special case for symbolic constants.  Don't
5801         adjust zero sizes on alignment.
5803 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
5805         PR rtl-optimization/52573
5806         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
5807         REG_UNUSED for the same register.
5809 2013-01-17  Richard Biener  <rguenther@suse.de>
5810             Marek Polacek  <polacek@redhat.com>
5812         PR rtl-optimization/55833
5813         * loop-unswitch.c (unswitch_loops): Move loop verification...
5814         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
5815         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
5816         Set it to true when we're removing a loop from hierarchy tree in
5817         an irreducible region.
5818         (fix_bb_placements): Adjust caller.
5819         (fix_loop_placements): Likewise.
5821 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
5823         * config/avr/builtins.def (DEF_BUILTIN): Factor out
5824         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
5825         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
5826         Remove ID.  Adjust comments.
5827         * config/avr/avr-c.c (avr_builtin_name): Remove.
5828         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
5829         * config/avr/avr.c (avr_tolower): New static function.
5830         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
5831         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
5832         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
5833         default expansion.
5835 2013-01-17  Jan Hubicka  <jh@suse.cz>
5837         PR tree-optimization/55273
5838         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
5840 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
5842         PR target/55981
5843         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
5844         store through atomic_store<mode>_1.
5845         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
5847 2013-01-17  Martin Jambor  <mjambor@suse.cz>
5849         PR tree-optimizations/55264
5850         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
5851         for virtual methods.
5852         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
5853         virtual methods before inlining is over.
5854         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
5855         virtual functions.
5856         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
5857         non-virtual.
5859 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
5861         PR rtl-optimization/56005
5862         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
5863         pending reads for prefetch.
5865 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
5867         * config/aarch64/aarch64.md
5868         (*cstoresi_neg_uxtw): New pattern.
5869         (*cmovsi_insn_uxtw): New pattern.
5870         (*<optab>si3_uxtw): New pattern.
5871         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
5872         (*<optab>si3_insn_uxtw): New pattern.
5873         (*bswapsi2_uxtw): New pattern.
5875 2013-01-16  Richard Biener  <rguenther@suse.de>
5877         * tree-inline.c (tree_function_versioning): Remove set but
5878         never used variable.
5880 2013-01-16  Richard Biener  <rguenther@suse.de>
5882         PR tree-optimization/55964
5883         * tree-flow.h (rename_variables_in_loop): Remove.
5884         (rename_variables_in_bb): Likewise.
5885         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
5886         (copy_loop_before): Adjust and delete update-ssa status.
5887         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
5888         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
5889         (rename_variables_in_loop): Remove.
5890         (slpeel_update_phis_for_duplicate_loop): Likewise.
5891         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
5892         use available cfg machinery instead of duplicating it.
5893         Update PHI nodes and perform poor-mans SSA update here.
5894         (slpeel_tree_peel_loop_to_edge): Adjust.
5896 2013-01-16  Richard Biener  <rguenther@suse.de>
5898         PR tree-optimization/54767
5899         PR tree-optimization/53465
5900         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
5901         (vrp_visit_phi_node): For PHI arguments coming via backedges
5902         drop all symbolical range information.
5903         (execute_vrp): Compute backedges.
5905 2013-01-16  Richard Biener  <rguenther@suse.de>
5907         * doc/install.texi: Update CLooG and ISL requirements to
5908         0.18.0 and 0.11.1.
5910 2013-01-16  Christian Bruel  <christian.bruel@st.com>
5912         PR target/55301
5913         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
5914         (broken_move): Handle UNSPECV_SP_SWITCH_B.
5915         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
5917 2013-01-16  DJ Delorie  <dj@redhat.com>
5919         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
5920         (UNSPECV_SP_SWITCH_E): New.
5921         (sp_switch_1): Change to an unspec.
5922         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
5923         replace $r15.
5925 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
5927         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
5928         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
5929         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
5930         (expand_mem_thread_fence): Ditto.
5931         (expand_mem_signal_fence): Ditto.
5932         (expand_atomic_load): Ditto.
5933         (expand_atomic_store): Ditto.
5935 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
5937         PR rtl-optimization/55547
5938         PR rtl-optimization/53827
5939         PR debug/53671
5940         PR debug/49888
5941         * alias.c (memrefs_conflict_p): Set sizes to negative after
5942         AND adjustments.
5944 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
5946         PR target/55940
5947         * function.c (thread_prologue_and_epilogue_insns): Always
5948         add crtl->drap_reg to set_up_by_prologue.set, even if
5949         stack_realign_drap is false.
5951 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5953         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
5954         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
5955         *call): Fix indention.
5957 2013-01-15  Tom de Vries  <tom@codesourcery.com>
5959         PR target/55876
5960         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
5961         Update comment.
5963 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
5965         PR rtl-optimization/55153
5966         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
5968 2013-01-15  Martin Jambor  <mjambor@suse.cz>
5970         PR tree-optimization/55920
5971         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
5972         accesses as grp_to_be_debug_replaced.
5974 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
5976         PR tree-optimization/55920
5977         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
5978         there is non-useless type conversion needed from debug rhs to lhs,
5979         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
5981 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
5982             Mikael Pettersson  <mikpe@it.uu.se>
5984         PR target/43961
5985         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
5986         Thumb.
5987         (ASM_OUTPUT_CASE_LABEL): Remove.
5988         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
5989         * final.c (shorten_branches): Update alignment of labels before
5990         jump tables if CASE_VECTOR_SHORTEN_MODE.
5992 2013-01-15  Richard Biener  <rguenther@suse.de>
5994         PR bootstrap/55961
5995         * system.h: Do not include gmp.h for building host tools.
5997 2013-01-15  Richard Biener  <rguenther@suse.de>
5999         PR middle-end/55882
6000         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6001         account for bitpos when computing alignment.
6003 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
6005         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6006         (ix86_target_macros_internal): Likewise.
6008         * config/i386/i386.c (m_CORE2I7): Removed.
6009         (m_CORE_HASWELL): New macro.
6010         (m_CORE_ALL): Likewise.
6011         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6012         (initial_ix86_arch_features): Likewise.
6013         (processor_target_table): Initializations for Core avx2.
6014         (cpu_names): New names "core-avx2".
6015         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6016         PROCESSOR_CORE_HASWELL.
6017         (ix86_issue_rate): New case.
6018         (ia32_multipass_dfa_lookahead): Likewise.
6019         (ix86_sched_init_global): Likewise.
6021         * config/i386/i386.h (TARGET_HASWELL): New macro.
6022         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6023         (processor_type): New PROCESSOR_HASWELL.
6025 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
6027         PR tree-optimization/55955
6028         * tree-vect-loop.c (vectorizable_reduction): Give up early on
6029         *SHIFT_EXPR and *ROTATE_EXPR codes.
6031         PR tree-optimization/48766
6032         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6033         -ftrapv disable -fwrapv.
6035 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6037         PR target/55974
6038         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6039         etc. to 1 and not to __flash.
6040         Use LL suffix for __INT24_MAX__ with -mint8.
6041         Use ULL suffix for __UINT24_MAX__ with -mint8.
6043 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6045         * config/avr/avr-arch.h
6046         (struct base_arch_s): Use typedef avr_arch_t instead.
6047         (struct arch_info_s): Use typedef avr_arch_info_t instead.
6048         (struct mcu_type_s): Use typedef avr_mcu_t instead.
6049         * config/avr/avr.c: Same.
6050         * config/avr/avr-devices.c: Same.
6051         * config/avr/driver-avr.c: Same.
6052         * config/avr/gen-avr-mmcu-texi.c: Same.
6053         * config/avr/avr-mcus.def: Adjust comment.
6055 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
6057         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6058         * config/aarch64/iterators.md (VALLDI): New.
6060 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
6061             Andi Kleen  <ak@linux.intel.com>
6063         PR target/55948
6064         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6065         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6066         memmodel flag.
6068 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6070         * config/avr/avr-stdint.h: Remove trailing blanks.
6071         * config/avr/avr-log.h: Same.
6072         * config/avr/avr-arch.h: Same.
6073         * config/avr/avr-devices.c: Same.
6074         * config/avr/avr-dimode.md: Same.
6075         * config/avr/predicates.md: Same.
6076         * config/avr/avr-c.c: Same.  And fix typo.
6078         * config/avr/avr-protos.h: Same.  And:
6079         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6080         (init_cumulative_args): Rename to avr_init_cumulative_args.
6081         (expand_prologue): Rename to avr_expand_prologue.
6082         (expand_epilogue): Rename to avr_expand_epilogue.
6083         (adjust_insn_length): Rename to avr_adjust_insn_length.
6084         (notice_update_cc): Rename to avr_notice_update_cc.
6085         (final_prescan_insn): Rename to avr_final_prescan_insn.
6086         * config/avr/avr.c: Same.
6087         * config/avr/avr.h: Same.
6088         * config/avr/avr.md: Remove trailing blanks.
6089         (prologue): Use avr_expand_prologue.
6090         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
6092 2013-01-14  Richard Biener  <rguenther@suse.de>
6094         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
6095         verify_location, collect_subblocks): New functions.
6096         (verify_gimple_in_cfg): Verify that locations only reference
6097         BLOCKs in the functions BLOCK tree.
6099 2013-01-14  Richard Biener  <rguenther@suse.de>
6101         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
6102         PHI argument.
6103         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
6104         unshare reference.
6105         (insert_out_of_ssa_copy_on_edge): Likewise.
6106         (rewrite_close_phi_out_of_ssa): Likewise.
6107         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
6108         debug expressions.
6109         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
6110         propagated constants.
6111         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
6112         can not be shared.
6114 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
6116         * config/avr/avr-modes.def: Add GPL copyright notice.
6118 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
6120         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
6121         MEMMODEL_MASK to determine memory model.
6122         (atomic_store<mode>): Ditto from operands[2].
6123         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
6125 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
6127         PR fortran/55935
6128         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
6129         (fold_gimple_assign): Don't call unshare_expr here.
6130         (fold_ctor_reference): Call unshare_expr.
6132 2013-01-13  Terry Guo  <terry.guo@arm.com>
6134         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
6135         * doc/fragments.texi: Document MULTILIB_REUSE.
6136         * gcc.c (multilib_reuse): New internal spec.
6137         (set_multilib_dir): Also search multilib from multilib_reuse.
6138         * genmultilib (tmpmultilib3): Refactor code.
6139         (tmpmultilib4): Ditto.
6140         (multilib_reuse): New multilib argument.
6142 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
6144         * Makefile.in: Update copyright.
6146 2013-01-12  Tom de Vries  <tom@codesourcery.com>
6148         PR middle-end/55890
6149         * calls.c (expand_call): Check if arg_nr is valid.
6151 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6153         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
6154         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
6155         documentation.  Add missing '__' in front of
6156         __builtin_ia32_packssdw256.
6158 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6160         PR target/55719
6161         * config/s390/s390.c (s390_preferred_reload_class): Do not return
6162         NO_REGS for larl operands.
6163         (s390_reload_larl_operand): Use s390_load_address instead of
6164         emit_move_insn.
6166 2013-01-11  Richard Biener  <rguenther@suse.de>
6168         * tree-cfg.c (verify_node_sharing_1): Split out from ...
6169         (verify_node_sharing): ... here.
6170         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
6172 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
6174         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
6175         Substitute TREECHECKING.
6176         * configure: Regenerate.
6177         * Makefile.in (TREECHECKING): New.
6179 2013-01-11  Richard Guenther  <rguenther@suse.de>
6181         PR tree-optimization/44061
6182         * tree-vrp.c (extract_range_basic): Compute zero as
6183         value-range for __builtin_constant_p of function parameters.
6185 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
6187         Update copyright years.
6189 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
6191         PR rtl-optimization/55672
6192         * lra-eliminations.c (mark_not_eliminable): Permit addition with
6193         const to be eliminable.
6195 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
6197         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
6198         * configure: Regenerate.
6200 2013-01-10  Richard Biener  <rguenther@suse.de>
6202         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
6204 2013-01-10  Richard Biener  <rguenther@suse.de>
6206         PR bootstrap/55792
6207         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
6208         locations for virtual PHI arguments.
6209         (rewrite_update_phi_arguments): Likewise.
6211 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
6213         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
6214         on to assembler.
6216 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
6218         PR tree-optimization/55921
6219         * tree-complex.c (expand_complex_asm): New function.
6220         (expand_complex_operations_1): Call it for GIMPLE_ASM.
6222 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6224         PR target/55718
6225         * config/s390/s390.c (s390_symref_operand_p)
6226         (s390_loadrelative_operand_p): Merge the two functions.
6227         (s390_check_qrst_address, print_operand_address): Add parameters
6228         to s390_loadrelative_operand_p invokation.
6229         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
6230         (s390_reload_larl_operand, s390_secondary_reload): Use
6231         s390_loadrelative_operand_p instead of s390_symref_operand_p.
6232         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
6234 2013-01-09  Mike Stump  <mikestump@comcast.net>
6236         * dse.c (record_store): Remove unnecessary assert.
6238 2013-01-09  Jan Hubicka  <jh@suse.cz>
6240         PR tree-optimization/55569
6241         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
6242         * cfgloop.h (scale_loop_profile): Likewise.
6244 2013-01-09  Jan Hubicka  <jh@suse.cz>
6246         PR lto/45375
6247         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
6248         functions.
6249         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
6251 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
6253         PR middle-end/55114
6254         * expr.h (maybe_emit_group_store): Declare.
6255         * expr.c (maybe_emit_group_store): New function.
6256         * builtins.c (expand_builtin_int_roundingfn): Call it.
6257         (expand_builtin_int_roundingfn_2): Likewise.
6259 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
6261         PR rtl-optimization/55829
6262         * lra-constraints.c (match_reload): Add code for absent output.
6263         (curr_insn_transform): Add code for reloads of matched inputs
6264         without output.
6266 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
6268         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
6269         attribute of movddup insn to DF.
6270         (*vec_interleave_lowv2df): Ditto.
6271         (vec_dupv2df): Ditto.
6273 2013-01-09  Jan Hubicka  <jh@suse.cz>
6275         PR tree-optimiation/55875
6276         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
6277         EVERY_ITERATION parameter.
6278         (number_of_iterations_exit): Check if exit is executed every iteration.
6279         (idx_infer_loop_bounds): Similarly here.
6280         (n_of_executions_at_most): Simplify
6281         to only test for cases where statement is dominated by the
6282         particular bound; handle correctly the "postdominance" test.
6283         (scev_probably_wraps_p): Use max loop iterations info
6284         as a global bound first.
6286 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
6287             Nick Clifton  <nickc@redhat.com>
6289         * config/v850/v850.md (cbranchsf4): New pattern.
6290         (cstoresf4): New pattern.
6291         (cbranchdf4): New pattern.
6292         (cstoredf4): New pattern.
6293         (movsicc): Disallow floating point comparisons.
6294         (cmpsf_le_insn): Fix order of operators.
6295         (cmpsf_lt_insn): Likewise.
6296         (cmpsf_eq_insn): Likewise.
6297         (cmpdf_le_insn): Likewise.
6298         (cmpdf_lt_insn): Likewise.
6299         (cmpdf_eq_insn): Likewise.
6300         (cmpsf_ge_insn): Use LE comparison.
6301         (cmpdf_ge_insn): Likewise.
6302         (cmpsf_gt_insn): Use LT comparison.
6303         (cmpdf_gt_insn): Likewise.
6304         (cmpsf_ne_insn): Delete pattern.
6305         (cmpdf_ne_insn): Delete pattern.
6306         * config/v850/v850.c (v850_gen_float_compare): Use
6307         gen_cmpdf_eq_insn for NE comparison.
6308         (v850_float_z_comparison_operator)
6309         (v850_float_nz_comparison_operator): Move from here ...
6310         * config/v850/predicates.md: ... to here.  Move GT and GE
6311         comparisons into v850_float_z_comparison_operator.
6312         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
6313         Delete prototype.
6314         (v850_float_nz_comparison_operator): Likewise.
6316 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6318         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
6319         with calls to gen_insvsi/gen_insvdi.
6321 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6323         * config/i386/i386.c (initial_ix86_tune_features): Set up
6324         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
6326 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
6327             Jakub Jelinek  <jakub@redhat.com>
6329         PR tree-optimization/48189
6330         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
6331         If nitercst is 0, don't predict the exit edge.
6333 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6335         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
6336         in asm_fprintf with reg_names.
6337         (aarch64_print_operand_address): Likewise.
6338         (aarch64_return_addr): Likewise.
6339         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
6341 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6343         * config/pa/pa.h (VAL_U6_BITS_P): Define.
6344         (INT_U6_BITS): Likewise.
6345         * config/pa/predicates.md (uint6_operand): New predicate.
6346         (shift5_operand, shift6_operand): Likewise.
6347         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
6348         arith32_operand.
6349         (lshrdi3): Use shift6_operand.
6350         (shrpsi4, shrpdi4): New insn patterns.
6351         (extzv): Delete expander.
6352         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
6353         predicates in unamed zero extract patterns.  Tighten common constraint.
6354         (extv): Delete expander.
6355         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
6356         predicates in unamed sign extract patterns.  Tighten common constraint.
6357         (insv): Delete expander.
6358         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
6359         predicates in unamed insert patterns.  Tighten common constraint.
6360         Change uint32_operand predicate to uint6_operand predicate in unamed
6361         DImode pattern to insert constant values of type 1...1xxxx.
6363 2013-01-04  Jan Hubicka  <jh@suse.cz>
6365         PR tree-optimization/55823
6366         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
6367         issue.
6369 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6370             Uros Bizjak  <ubizjak@gmail.com>
6372         PR rtl-optimization/55845
6373         * df-problems.c (can_move_insns_across): Stop scanning at
6374         volatile_insn_p source instruction or give up if
6375         across_from .. across_to range contains any volatile_insn_p
6376         instructions.
6378 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
6380         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
6381         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
6382         Declare.
6383         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
6384         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
6386 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6388         PR fortran/55341
6389         * asan.c (asan_clear_shadow): New function.
6390         (asan_emit_stack_protection): Use it.
6392 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
6394         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
6395         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
6396         with tab instead of space.
6398 2013-01-08  Nick Clifton  <nickc@redhat.com>
6400         * config/rl78/rl78.c (rl78_expand_prologue): Always select
6401         register bank 0 at the start of an interrupt handler.
6402         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
6403         MDBH registers.
6405 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
6407         * config/aarch64/aarch64-simd.md
6408         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
6409         (aarch64_simd_bsl): Likewise.
6410         (aarch64_vcond_internal<mode>): Likewise.
6411         (vcond<mode><mode>): Likewise.
6412         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
6413         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
6415 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
6417         * config/aarch64/aarch64-builtins.c
6418         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
6420 2013-01-08  Martin Jambor  <mjambor@suse.cz>
6422         PR debug/55579
6423         * tree-sra.c (analyze_access_subtree): Return true also after
6424         potentially creating a debug-only replacement.
6426 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6428         PR middle-end/55890
6429         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
6431         PR tree-optimization/54120
6432         * tree-vrp.c (range_fits_type_p): Don't allow
6433         src_precision < precision from signed vr to unsigned_p
6434         if vr->min or vr->max is negative.
6435         (simplify_float_conversion_using_ranges): Test can_float_p
6436         against CODE_FOR_nothing.
6438 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6439             Richard Biener  <rguenther@suse.de>
6441         PR middle-end/55851
6442         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
6443         types instead of just INTEGER_TYPE types.
6445 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
6447         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
6448         TF_SIZE): Define.
6450 2013-01-07  Steve Ellcey  <sellcey@mips.com>
6452         PR target/42661
6453         * config/mips/mips.opt: Change mad to mmad to match documentation.
6455 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6457         PR target/55897
6458         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
6459         .progmemx.data now.
6461 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6463         PR target/55897
6464         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
6465         (avr_addrspace_t): Add .section_name field.
6466         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
6467         array size.
6468         (avr_addrspace): Same.  Initialize .section_name.  Remove last
6469         NULL entry.  Put __memx into .progmemx.data.
6470         (progmem_section_prefix): Remove.
6471         (avr_asm_init_sections): No need to initialize progmem_section.
6472         (avr_asm_named_section): Use avr_addrspace[].section_name to get
6473         section name prefix.
6474         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
6475         retrieve the progmem section.
6476         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
6477         boundary to run over avr_addrspace[].
6478         (avr_register_target_pragmas): Ditto.
6480 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
6482         * varasm.c (output_constant_def_contents): For asan_protect_global
6483         protected strings, adjust DECL_ALIGN if needed, before testing for
6484         anchored symbols.
6485         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
6486         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
6487         normal decls.
6488         (output_object_block): For asan protected decls, emit asan padding
6489         after their contents.
6490         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
6491         (asan_finish_file): Test it here instead.
6493 2013-01-07  Nick Clifton  <nickc@redhat.com>
6494             Matthias Klose  <doko@debian.org>
6495             Doug Kwan  <dougkwan@google.com>
6496             H.J. Lu  <hongjiu.lu@intel.com>
6498         PR driver/55470
6499         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
6501         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
6503         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
6505         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
6507         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
6509 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6511         PR target/54461
6512         * doc/install.texi (Cross-Compiler-Specific Options): Document
6513         --with-avrlibc.
6515 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
6517         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
6518         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
6519         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
6520         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
6521         vqmovun_high_s64): Fix source operand number and update copyright.
6523 2013-01-07  Richard Biener  <rguenther@suse.de>
6525         PR middle-end/55890
6526         * gimple.h (gimple_call_builtin_p): New overload.
6527         * gimple.c (validate_call): New function.
6528         (gimple_call_builtin_p): Likewise.
6529         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6530         Use gimple_call_builtin_p.
6531         (find_func_clobbers): Likewise.
6532         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
6533         (strlen_optimize_stmt): Likewise.
6535 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
6537         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
6538         (vld1q_dup_*): Likewise.
6539         (vld1_*): Likewise.
6540         (vld1q_*): Likewise.
6541         (vld1_lane_*): Likewise.
6542         (vld1q_lane_*): Likewise.
6544 2013-01-07  Richard Biener  <rguenther@suse.de>
6546         * lto-streamer.h (LTO_minor_version): Bump to 2.
6548 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
6550         * config/aarch64/aarch64-protos.h
6551         (aarch64_const_double_zero_rtx_p): Rename to...
6552         (aarch64_float_const_zero_rtx_p): ...this.
6553         (aarch64_float_const_representable_p): New.
6554         (aarch64_output_simd_mov_immediate): Likewise.
6555         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
6556         move immediate case.
6557         * config/aarch64/aarch64.c
6558         (aarch64_const_double_zero_rtx_p): Rename to...
6559         (aarch64_float_const_zero_rtx_p): ...this.
6560         (aarch64_print_operand): Allow printing of new constants.
6561         (aarch64_valid_floating_const): New.
6562         (aarch64_legitimate_constant_p): Check for valid floating-point
6563         constants.
6564         (aarch64_simd_valid_immediate): Likewise.
6565         (aarch64_vect_float_const_representable_p): New.
6566         (aarch64_float_const_representable_p): Likewise.
6567         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
6568         (aarch64_output_simd_mov_immediate): New.
6569         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
6570         (*movdf_aarch64): Likewise.
6571         * config/aarch64/constraints.md (Ufc): New.
6572         (Y): call aarch64_float_const_zero_rtx.
6573         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
6575 2013-01-07  Richard Biener  <rguenther@suse.de>
6577         PR tree-optimization/55888
6578         PR tree-optimization/55862
6579         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
6580         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
6581         not if it is contained therein.
6583 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6585         * config/avr/t-avr: Typo.
6587 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6589         PR55243
6590         * config/avr/t-avr: Don't automatically rebuild
6591         $(srcdir)/config/avr/t-multilib
6592         $(srcdir)/config/avr/avr-tables.opt
6593         $(srcdir)/doc/avr-mmcu.texi
6594         (avr-mcus): New phony target to build them on request.
6595         (s-avr-mlib, s-avr-mmcu-texi): Remove.
6596         * avr/avr-mcus.def: Adjust comments.
6598 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
6600         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
6602 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
6604         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
6606 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
6608         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
6610 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
6612         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
6613         to generate profiling.
6614         * config/rs6000/aix64.h (LIB_SPEC): Same.
6616 2013-01-04  Andrew Pinski  <apinski@cavium.com>
6618         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
6619         New function.
6620         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6622 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
6624         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
6625         unconditionally.
6626         (ix86_expand_move): Ditto.
6627         (ix86_zero_extend_to_Pmode): Ditto.
6628         (ix86_expand_call): Ditto.
6629         (ix86_expand_special_args_builtin): Ditto.
6630         (ix86_expand_builtin): Ditto.
6632 2013-01-04  Richard Biener  <rguenther@suse.de>
6634         PR tree-optimization/55862
6635         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
6636         translating them through PHI nodes.
6638 2013-01-04  Martin Jambor  <mjambor@suse.cz>
6640         PR tree-optimization/55755
6641         * tree-sra.c (sra_modify_assign): Do not check that an access has no
6642         children when trying to avoid producing a VIEW_CONVERT_EXPR.
6644 2013-01-04  Marek Polacek  <polacek@redhat.com>
6646         PR middle-end/55859
6647         * opts.c (default_options_optimization): Clarify error message.
6649 2013-01-04  Richard Biener  <rguenther@suse.de>
6651         PR middle-end/55863
6652         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
6653         reassociation.
6655 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6657         PR target/53789
6658         * config/pa/pa.md (movsi): Revert previous change.
6659         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
6660         references.
6662 2013-01-03  Richard Henderson  <rth@redhat.com>
6664         * config/i386/i386.c (ix86_expand_move): Always assign to op1
6665         after eliminating TLS symbols.
6667 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
6669         PR bootstrap/50167
6670         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
6671         * graphite-poly.c (debug_gmp_value): Likewise.
6673 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
6675         PR target/55712
6676         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
6677         selected code model, define __code_mode_small__, __code_model_medium__,
6678         __code_model_large__, __code_model_32__ or __code_model_kernel__.
6679         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
6680         xchg temporary register with %k.  Declare temporary register as
6681         early clobbered.
6682         [__x86_64__]: For medium and large code models, preserve %rbx register.
6684 2013-01-03  Richard Biener  <rguenther@suse.de>
6686         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
6687         (dump_subscript): Adjust.
6688         (finalize_ddr_dependent): Do not dump redundant info.
6689         (analyze_siv_subscript): Adjust.
6690         (subscript_dependence_tester): Likewise.
6691         (compute_affine_dependence): Likewise.
6693 2013-01-03  Richard Biener  <rguenther@suse.de>
6695         Revert
6696         2013-01-03  Richard Biener  <rguenther@suse.de>
6698         PR tree-optimization/55857
6699         * tree-vect-stmts.c (vectorizable_load): Do not setup
6700         re-alignment for invariant loads.
6702         2013-01-02  Richard Biener  <rguenther@suse.de>
6704         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
6705         invariant load do not generate a vector load from the scalar location.
6707 2013-01-03  Richard Biener  <rguenther@suse.de>
6709         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
6710         for not vectorizing.
6711         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6712         not build INDIRECT_REFs, call get_name once only.
6713         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
6714         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
6716 2013-01-03  Richard Biener  <rguenther@suse.de>
6718         PR tree-optimization/55857
6719         * tree-vect-stmts.c (vectorizable_load): Do not setup
6720         re-alignment for invariant loads.
6722 2013-01-03  Richard Biener  <rguenther@suse.de>
6724         PR lto/55848
6725         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
6726         prefer a built-in decl.
6728 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
6730         * gcc.c (process_command): Update copyright notice dates.
6731         * gcov.c (print_version): Likewise.
6732         * gcov-dump.c (print_version): Likewise.
6734         PR rtl-optimization/55838
6735         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
6736         iv0.step, iv1.step and step.
6738 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
6739             Marc Glisse  <marc.glisse@inria.fr>
6741         PR tree-optimization/55832
6742         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
6743         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
6744         integer_{one,zero}_node.
6746 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
6748         PR debug/54402
6749         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
6750         * var-tracking.c (reverse_op): Don't add reverse ops to
6751         VALUEs that have already
6752         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
6754 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
6756         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
6758 2013-01-02  Teresa Johnson  <tejohnson@google.com>
6760         * dumpfile.c (dump_loc): Print filename with location.
6761         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
6762         new location_t parameter to emit complete unroll message with
6763         new dump framework.
6764         (canonicalize_loop_induction_variables): Compute loops location
6765         and pass to try_unroll_loop_completely.
6766         * loop-unroll.c (report_unroll_peel): New function.
6767         (peel_loops_completely): Use new dump format with location
6768         for main dumpfile message, and invoke report_unroll_peel on success.
6769         (decide_unrolling_and_peeling): Ditto.
6770         (decide_peel_once_rolling): Remove old dumpfile message subsumed
6771         by report_unroll_peel.
6772         (decide_peel_completely): Ditto.
6773         (decide_unroll_constant_iterations): Ditto.
6774         (decide_unroll_runtime_iterations): Ditto.
6775         (decide_peel_simple): Ditto.
6776         (decide_unroll_stupid): Ditto.
6777         * cfgloop.c (get_loop_location): New function.
6778         * cfgloop.h (get_loop_location): Declare.
6780 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
6782         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
6783         NULL.
6785 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6787         PR middle-end/55198
6788         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
6789         BLKmode objects when EXPAND_MEMORY is specified.
6791 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
6793         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
6794         in loop predicate.
6795         (fold_builtin_cpu): Do not share cpu model decls across statements.
6797 2013-01-02  Jason Merrill  <jason@redhat.com>
6799         PR c++/55804
6800         * tree.c (build_array_type_1): Revert earlier change.
6802 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
6804         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
6805         "cortex-a57".
6806         * config/aarch64/aarch64-tune.md: Re-generate.
6808 2013-01-02  Richard Biener  <rguenther@suse.de>
6810         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
6811         invariant load do not generate a vector load from the scalar location.
6813 2013-01-02  Richard Biener  <rguenther@suse.de>
6815         PR bootstrap/55784
6816         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
6817         * configure: Regenerate.
6819 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
6821         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
6822         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
6823         (expand_builtin_int_roundingfn_2): Keep the original target around
6824         for the fallback case.
6826 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
6828         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
6829         to be clear for sign changes.
6831 2013-01-01  Jan Hubicka  <jh@suse.cz>
6833         * ipa-inline-analysis.c: Fix formatting.
6835 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
6837         PR tree-optimization/55831
6838         * tree-vect-loop.c (get_initial_def_for_induction): Use
6839         gsi_after_labels instead of gsi_start_bb.
6841 Copyright (C) 2013 Free Software Foundation, Inc.
6843 Copying and distribution of this file, with or without modification,
6844 are permitted in any medium without royalty provided the copyright
6845 notice and this notice are preserved.