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