1 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8 2013-04-11 Marek Polacek <polacek@redhat.com>
10 PR tree-optimization/48184
11 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum
14 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
16 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
17 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
18 (skip_simple_arithmetic): Tidy up.
19 * tree.h (skip_simple_constant_arithmetic): Declare.
21 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
23 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
25 2013-04-11 Richard Biener <rguenther@suse.de>
27 * tree-vect-loop.c (get_initial_def_for_induction): Properly
28 generate vector constants.
30 2013-04-11 Richard Biener <rguenther@suse.de>
32 PR tree-optimization/56878
33 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
34 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
36 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
37 Prefer to align the DR with the most invariant base address.
39 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
41 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
44 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
46 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
47 floating-point vector comparisons against 0.
49 2013-04-11 Jakub Jelinek <jakub@redhat.com>
51 PR tree-optimization/56899
52 * fold-const.c (extract_muldiv_1): Apply distributive law
53 only if TYPE_OVERFLOW_WRAPS (ctype).
55 2013-04-11 Bin Cheng <bin.cheng@arm.com>
58 * ira-costs.c (scan_one_insn): Check whether the source rtx of
59 loading has side effect.
61 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
63 * config/sparc/sparc.c: Include tree-pass.h.
64 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
65 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
66 head of file. Change return type. Split off gate function.
67 (sparc_gate_work_around_errata): New function.
68 (pass_work_around_errata): New pass definition.
69 (insert_pass_work_around_errata) New pass insert definition to
70 insert pass_work_around_errata just after delayed-branch scheduling.
71 (sparc_option_override): Insert the pass.
72 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
74 2013-04-10 David S. Miller <davem@davemloft.net>
76 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
79 * target.def (cstore_mode): New hook.
80 * target.h: Include insn-codes.h
81 * targhooks.c: Likewise.
82 (default_cstore_mode): New function.
83 * targhooks.h: Declare it.
84 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
85 * doc/tm.texi: Rebuild.
86 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
87 target hook, rather than inspecting the insn_data.
88 * config/sparc/sparc.c (sparc_cstore_mode): New function.
89 (TARGET_CSTORE_MODE): Redefine.
90 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
92 * config/sparc/predicates.md (cstore_result_operand): New special
94 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
96 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
97 (*snesi_special): Likewise.
98 (*snesi_zero): Likewise.
99 (*seqsi_zero): Likewise.
100 (*sltu_insn): Likewise.
101 (*sgeu_insn): Likewise.
102 (*seqdi_special): Make operand 0 and comparison operation be of
104 (*snedi_special): Likewise.
105 (*snedi_special_vis3): Likewise.
106 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
107 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
108 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
109 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
110 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
111 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
112 (*sltu_extend_sp64): Likewise.
113 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
114 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
115 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
116 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
117 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
119 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
121 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
122 (aarch64_start_file): Use the new function.
124 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
125 Jason Merrill <jason@redhat.com>
127 * common.opt: Add -gdwarf.
128 * opts.c (common_handle_option): Handle it.
129 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
131 2013-04-10 Richard Biener <rguenther@suse.de>
133 * passes.c (execute_todo): Do not call ggc_collect conditional here.
134 (execute_one_ipa_transform_pass): But unconditionally here.
135 (execute_one_pass): And here.
136 (init_optimization_passes): Remove reload pass.
137 * tree-pass.h (TODO_ggc_collect): Remove.
138 (pass_reload): Likewise.
139 * ira.c (do_reload): Merge into ...
141 (rest_of_handle_reload): Remove.
142 (pass_reload): Likewise.
143 * config/i386/i386.c (ix86_option_override): Refer to ira instead
144 of reload for vzeroupper pass placement.
145 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
146 and todo_flags_finish of all passes.
148 2013-04-10 Richard Biener <rguenther@suse.de>
150 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
151 first_const_oprnd field, rename first_def_type to first_op_type.
152 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
153 (vect_get_and_check_slp_defs): Always use the type of the
154 operand. Allow mixed vect_external_def, vect_constant_def types.
155 (vect_get_constant_vectors): Handle mixed vect_external_def,
156 vect_constant_def types.
158 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
160 PR tree-optimization/55524
161 * tree-ssa-math-opts.c
162 (convert_mult_to_fma): Don't use an fms construct
163 when we don't have an fms operation, but fnma, and it looks
164 likely that we'll be able to use the latter.
166 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
168 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
170 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
171 inline fail caused by overwritable functions.
173 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
175 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
176 unnecessary bits in the constant power of two case.
178 2013-04-10 Richard Biener <rguenther@suse.de>
180 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
181 broken code swapping operands.
182 (vect_build_slp_tree): Do not compute load permutations here.
183 (vect_analyze_slp_instance): Compute load permutations here,
184 after building the SLP tree.
186 2013-04-09 Christian Bruel <christian.bruel@st.com>
188 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
189 of next/prev_real_insn.
191 2013-04-09 Jan Hubicka <jh@suse.cz>
193 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
194 Drop aliased parameter.
195 (function_and_variable_visibility): Do not handle alias pairs.
196 * cgraph.c (varpool_externally_visible_p): Update prototype.
197 * varpool.c (varpool_add_new_variable): Update.
199 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
201 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
203 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
205 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
207 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
209 2013-04-09 Marek Polacek <polacek@redhat.com>
211 PR tree-optimization/48762
212 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum
215 2013-04-09 Richard Biener <rguenther@suse.de>
217 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
219 (vect_build_slp_tree): Likewise.
220 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
221 calculating the cost of a SLP instance.
222 (vect_analyze_slp_instance): Use it from here, after building
225 2013-04-09 Jakub Jelinek <jakub@redhat.com>
228 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
229 expand_omp_for_static_chunk): Use simple_p = true in
230 force_gimple_operand_gsi calls when assigning to addressable decls.
232 2013-04-09 Jeff Law <law@redhat.com>
234 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
235 when the boolean was created by converting a wider object which
238 2013-04-09 Richard Biener <rguenther@suse.de>
240 * tree-vectorizer.h (slp_void_p): Remove.
241 (slp_tree): Typedef before _slp_tree declaration.
242 (struct _slp_tree): Use a vector of slp_tree as children.
243 (vect_get_place_in_interleaving_chain): Remove.
244 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
246 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
248 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
249 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
250 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
251 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
252 Use slp_node instead of slp_void_p and adjust.
254 2013-04-09 Richard Biener <rguenther@suse.de>
256 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
257 work that is not necessary.
259 2013-04-09 Jakub Jelinek <jakub@redhat.com>
261 PR tree-optimization/56854
262 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
263 forward into clobber stmts if it would change MEM_REF lhs into
266 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
268 * tree.c (type_hash_lookup, type_hash_add): Make static.
269 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
271 2013-04-09 Richard Biener <rguenther@suse.de>
273 * tree.h (unsave_expr_now): Remove.
274 * tree-inline.c (mark_local_for_remap_r): Remove.
275 (unsave_expr_1): Likewise.
276 (unsave_r): Likewise.
277 (unsave_expr_now): Likewise.
278 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
279 (propagate_tree_value): Likewise.
281 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
283 * doc/rtl.texi (sequence): Rewrite documentation to match the
284 current use of SEQUENCE rtl objects.
285 * rtl.def (SEQUENCE): Likewise.
287 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
288 Update documentation.
289 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
290 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
292 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
294 2013-04-08 Teresa Johnson <tejohnson@google.com>
296 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
297 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
299 (estimate_edge_size_and_time): Add comment to suggest using rounding
301 (estimate_node_size_and_time): Ditto.
302 (remap_edge_change_prob): Use helper rounding divide methods.
303 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
304 (gimple_mod_pow2_value_transform): Ditto.
305 (gimple_mod_subtract_transform): Ditto.
306 (gimple_ic_transform): Ditto.
307 (gimple_stringops_transform): Ditto.
308 * stmt.c (conditional_probability): Ditto.
309 (emit_case_dispatch_table): Ditto.
310 * lto-cgraph.c (merge_profile_summaries): Ditto.
311 * tree-optimize.c (execute_fixup_cfg): Ditto.
312 * cfgcleanup.c (try_forward_edges): Ditto.
313 * cfgloopmanip.c (scale_loop_profile): Ditto.
315 (duplicate_loop_to_header_edge): Ditto.
316 (lv_adjust_loop_entry_edge): Ditto.
317 * tree-vect-loop.c (vect_transform_loop): Ditto.
318 * profile.c (compute_branch_probabilities): Ditto.
319 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
320 * lto-streamer-in.c (input_cfg): Ditto.
321 * gimple-streamer-in.c (input_bb): Ditto.
322 * ipa-cp.c (update_profiling_info): Ditto.
323 (update_specialized_profile): Ditto.
324 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
325 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
327 * sched-rgn.c (compute_dom_prob_ps): Ditto.
328 (compute_trg_info): Ditto.
329 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
330 (purge_dead_edges): Ditto.
331 * loop-unswitch.c (unswitch_loop): Ditto.
332 * cgraphclones.c (cgraph_clone_edge): Ditto.
333 (cgraph_clone_node): Ditto.
334 * tree-inline.c (copy_bb): Ditto.
335 (copy_edges_for_bb): Ditto.
336 (initialize_cfun): Ditto.
337 (copy_cfg_body): Ditto.
338 (expand_call_inline): Ditto.
340 2013-04-08 Kai Tietz <ktietz@redhat.com>
342 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
343 TARGET_CYGWIN64 by TARGET_64BIT.
345 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
347 * config/epiphany/epiphany.md (GPR_1): New constant.
348 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
349 * config/epiphany/epiphany.c (gen_compare_reg):
350 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
352 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
353 Don't require being called during rtl expansion; If y operlaps r0,
355 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
356 (epiphany_expand_epilogue): Likewise.
358 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
359 Don't use CC_FPmode for ORDERED / UNORDERED.
360 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern
363 * config/epiphany/constraints.md (CnL): New constraint.
364 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
365 * config/epiphany/predicates.md (add_operand): Allow 1024.
367 * config/epiphany/epiphany.md (logical_op): New code iterator.
368 (op_mnc): New code attribute.
369 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
370 (mov_f+1, mov_f+2): New peephole2 patterns.
372 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
373 (cstoresi4): Also allow re-use of zero result when doing a NE
374 comparison to a non-zero operand.
375 Use (clobber (scratch)) for first insn if the gpr output is not needed.
377 * config/epiphany/epiphany.md (<insn_opname>v2si3):
378 Use gen_addsi3_i / gen_subsi3_i.
380 2013-04-08 Jakub Jelinek <jakub@redhat.com>
384 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
385 contain anything but clobbers, at most one __builtin_stack_restore,
386 optionally debug stmts and final resx, and if it has at least one
387 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
388 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
389 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
390 which isn't defaut definition, remove them.
391 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
392 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
393 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
394 with MEM_REF LHS with SSA_NAME address.
396 2013-04-08 Jeff Law <law@redhat.com>
398 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
400 2013-04-08 Richard Biener <rguenther@suse.de>
402 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
404 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
405 determined vector type.
406 (vect_analyze_data_refs): Likewise.
407 (vect_get_new_vect_var): Adjust.
408 (vect_create_destination_var): Preserve SSA name versions.
409 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
410 not dump anything here.
412 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
414 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
415 Add member lr_slot_known.
416 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
418 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
419 Remove code that sets lr_slot_offset according to what a previous
420 version of epiphany_emit_save_restore used to do.
421 (epiphany_emit_save_restore): When doing an lr save or restore,
422 set/verify lr_slot_known and lr_slot_offset.
424 2013-04-08 Xinyu Qi <xyqi@marvell.com>
427 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
430 2013-04-08 Richard Biener <rguenther@suse.de>
432 * alias.c (find_base_term): Fix thinko in previous change.
434 2013-04-08 Jakub Jelinek <jakub@redhat.com>
436 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
437 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
438 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
439 if possible to compute val.
440 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
441 For QImode integers don't require anything about precision. Use
442 const_with_all_bytes_same to find out if the constant doesn't have
443 repeated bytes in it.
445 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
447 * config/s390/s390.c (s390_expand_insv): Only accept insertions
450 2013-04-08 Marek Polacek <polacek@redhat.com>
452 PR rtl-optimization/48182
453 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
456 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
459 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
460 nuses, make sure we have a label.
462 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
465 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
466 (rs6000_emit_swdiv_low_precision): Remove.
467 (rs6000_emit_swdiv): Rewrite to handle between one and four
468 iterations of Newton-Raphson generally; modify required number of
469 iterations for some cases.
470 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
472 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
474 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
475 set-but-unused variable.
477 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
478 basic blocks of released function bodies garbage-collectable.
480 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
481 (struct rtl_opt_pass): Add TODO_df_finish.
483 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
485 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
487 * config/arm/constraints.md (q): New constraint.
488 * config/arm/ldrdstrd.md: New file.
489 * config/arm/arm.md (ldrdstrd.md) New include.
490 (arm_movdi): Use "q" instead of "r" constraint
491 for double-word memory access.
492 (movdf_soft_insn): Likewise.
493 * config/arm/vfp.md (movdi_vfp): Likewise.
494 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
495 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
496 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
497 (mem_ok_for_ldrd_strd): Likewise.
498 (output_move_double): Update assertion.
500 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
502 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
504 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
506 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
507 define_insn_and_split.
508 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
510 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
512 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
513 define_insn_and_split.
514 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
515 (shiftsi3_compare): New pattern.
517 * config/arm/unspecs.md (UNSPEC_RRX): New.
519 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
521 * config/arm/arm.md (negdi_extendsidi): New pattern.
522 (negdi_zero_extendsidi): Likewise.
524 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
526 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
527 define_insn_and_split.
528 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
529 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
531 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
533 * config/arm/arm.md (arm_subdi3): Convert define_insn into
534 define_insn_and_split.
535 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
536 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
538 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
540 * config/arm/arm.md (subsi3_carryin): New pattern.
541 (subsi3_carryin_const): Likewise.
542 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
543 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
545 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
547 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
549 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
551 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
552 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
554 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
556 * config/arm/arm.c (arm_expand_builtin): Change fcode
557 type to unsigned int.
559 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
561 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
563 2013-04-04 Ian Lance Taylor <iant@google.com>
565 * doc/standards.texi (Standards): The Go frontend supports the Go
568 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
571 * df-scan.c (df_insn_delete): Disable failing assert.
573 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
575 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
576 New function prototype.
577 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
578 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
579 (arm_builtin_vectorized_function): New function.
581 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
583 * config/arm/arm_neon_builtins.def: New file.
584 * config/arm/arm.c (neon_builtin_data): Move contents to
585 arm_neon_builtins.def.
586 (enum arm_builtins): Include neon builtin definitions.
587 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
588 * config/arm/t-arm (arm.o): Add dependency on
589 arm_neon_builtins.def.
591 2013-04-04 Marek Polacek <polacek@redhat.com>
593 PR tree-optimization/48186
594 * predict.c (maybe_hot_frequency_p): Return false if
595 HOT_BB_FREQUENCY_FRACTION is 0.
596 (cgraph_maybe_hot_edge_p): Likewise.
598 2013-04-04 Richard Biener <rguenther@suse.de>
600 PR tree-optimization/56826
601 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
604 2013-04-04 Richard Biener <rguenther@suse.de>
606 PR tree-optimization/56213
607 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
608 (vect_analyze_data_refs): Allow all non-nested loads as
611 2013-04-04 Richard Biener <rguenther@suse.de>
613 PR tree-optimization/56837
614 * tree-loop-distribution.c (classify_partition): For non-zero
615 values require that the value has the same precision as its
616 mode to be useful as memset value.
618 2013-04-03 Nick Clifton <nickc@redhat.com>
620 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5
622 (fmssf4): Use fmsf.s on E3V5 architectures.
623 (fnmasf4): Use fnmaf.s on E3V5 architectures.
624 (fnmssf4): Use fnmsf.s on E3V5 architectures.
626 2013-04-03 Jeff Law <law@redhat.com>
628 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
629 (lra-eliminations.o): Likewise.
631 2013-04-03 Teresa Johnson <tejohnson@google.com>
633 * gcov-io.c (compute_working_sets): Moved most of body of old
634 compute_working_sets here from profile.c.
635 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
636 (gcov_working_set_t): Moved typedef here from basic-block.h
637 (compute_working_set): Declare.
638 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
639 (get_working_sets): Renamed from compute_working_set,
640 replace most of body with call to new compute_working_sets.
641 (get_exec_counts): Replace call to compute_working_sets
643 * profile.h (get_working_sets): Renamed from
645 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
647 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
648 * gcov-dump.c (dump_working_sets): New function.
650 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
652 * hwint.c (sext_hwi, zext_hwi): New functions.
653 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
654 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
655 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
656 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
657 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
658 (sext_hwi, zext_hwi): New functions.
660 2013-04-03 Jeff Law <law@redhat.com>
662 PR tree-optimization/56799
663 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
664 back test for widening conversion erroneously dropped in prior
667 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
670 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
671 instead of next_real_insn.
673 2013-04-03 Marek Polacek <polacek@redhat.com>
676 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
679 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
682 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
684 (thumb1_output_casesi): Likewise.
685 (thumb2_output_casesi): Likewise.
687 2013-04-03 Richard Biener <rguenther@suse.de>
689 PR tree-optimization/56817
690 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
692 (tree_unroll_loops_completely_1): ... new function to manually
693 walk the loop tree, properly defering outer loops of unrolled
694 loops to later iterations.
696 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
698 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
699 (vectorizable_load): Likewise.
700 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
701 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
703 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
705 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
708 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
710 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
712 2013-04-03 Bin Cheng <bin.cheng@arm.com>
714 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
716 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
718 PR tree-optimization/56790
719 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant folding.
721 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
723 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
725 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
726 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
729 2013-04-03 Jakub Jelinek <jakub@redhat.com>
732 * tree.h (force_folding_builtin_constant_p): New decl.
733 * builtins.c (force_folding_builtin_constant_p): New variable.
734 (fold_builtin_constant_p): Fold immediately also if
735 force_folding_builtin_constant_p.
737 2013-04-03 Richard Biener <rguenther@suse.de>
739 PR tree-optimization/56812
740 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
741 DRs of the same interleaving chain are independent.
743 2013-04-02 Jason Merrill <jason@redhat.com>
745 * gdbinit.in (pbb): Use debug fn.
747 2013-04-02 Lawrence Crowl <crowl@google.com>
749 * sese.h (struct ivtype_map_elt_s): Remove unused.
750 (extern debug_ivtype_map): Remove unused.
751 (extern eq_ivtype_map_elts): Remove unused.
752 * sese.c (debug_ivtype_map): Removed unused.
753 (debug_ivtype_map_1): Removed unused.
754 (debug_ivtype_elt): Remove unused.
755 (eq_ivtype_map_elts): Remove unused.
758 2013-04-02 Kai Tietz <ktietz@redhat.com>
761 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
762 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
763 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static function.
764 (legitimize_pe_coff_symbol): Likewise.
765 (is_imported_p): New helper-function.
766 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
767 for Windows x64 targets.
768 (ix86_expand_prologue): Optimize for pe-coff targets.
769 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
770 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
771 medium/large code-model.
772 (legitimize_pic_address): Likewise.
773 (legitimize_tls_address): Likewise.
774 (ix86_expand_call): Likewise.
775 (x86_output_mi_thunk): Likewise.
776 (get_dllimport_decl): Add new beimport argument.
777 (construct_plt_address): Don't assert for x64 pe-coff targets.
778 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
780 (SYMBOL_FLAG_STUBVAR): New macro.
781 (SYMBOL_REF_STUBVAR_P): Likewise.
782 * config/i386/winnt.c (stub_list): New structure.
783 (stub_head): New local variable.
784 (i386_pe_record_stub): New function.
785 (i386_pe_file_end): Emit refptr-stubs.
787 2013-04-02 Jakub Jelinek <jakub@redhat.com>
789 PR rtl-optimization/56745
790 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
791 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
794 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
795 and both of them are MEM_REFs, just compare first argument for
796 equality and attempt to deal even with differing offsets.
799 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
800 of gimple_clobber_p to be MEM_REF.
801 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
802 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
803 after gimplification.
804 * asan.c (get_mem_ref_of_assignment): Don't instrument
805 gimple_clobber_p stmts.
806 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
807 gimple_clobber_p stmt if they have MEM_REF lhs and
808 are dead because of another gimple_clobber_p stmt.
809 * tree-ssa-live.c (clear_unused_block_pointer): Treat
810 gimple_clobber_p stmts like debug stmts.
811 (remove_unused_locals): Remove clobbers with MEM_REF lhs
812 that refer to unused VAR_DECLs or uninitialized values.
813 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
814 gimple_clobber_p stmts if they refer to removed parameters.
815 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
818 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
820 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
821 using SWI48 mode attribute.
823 2013-04-02 Wei Mi <wmi@google.com>
825 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
826 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
827 *<rotate_insn><mode>3_mask in i386.md.
829 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
831 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
833 2013-04-02 Richard Biener <rguenther@suse.de>
835 PR tree-optimization/56778
836 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
837 Runtime alias tests are not supported for gather loads.
838 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
839 stmts referenced from SSA operands before updating SSA form.
841 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
842 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
844 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
845 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
846 * config/arm/cortex-a53.md: New file.
847 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
848 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
849 * config/arm/arm.c (arm_issue_rate): Likewise.
850 * config/arm/arm-tune.md: Regenerate
851 * config/arm/arm-tables.opt: Regenerate.
852 * config/arm/arm-cores.def: Add cortex-a53.
854 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
856 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
859 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
861 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
862 scalar load/store operations using B/H registers.
863 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
865 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
867 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
869 * config/aarch64/aarch64.c
870 (aarch64_simd_scalar_immediate_valid_for_move): New.
871 * config/aarch64/aarch64-protos.h
872 (aarch64_simd_scalar_immediate_valid_for_move): New.
873 * config/aarch64/constraints.md (Dh, Dq): New.
874 * config/aarch64/iterators.md (hq): New.
876 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
878 * reorg.c (get_branch_condition): Deal with conditional returns.
879 (fill_simple_delay_slots): Remove dead code dealing with jumps.
881 2013-04-01 Wei Mi <wmi@google.com>
883 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
884 Truncate operand 2 using %b asm operand modifier.
885 (*<shift_insn><mode>3_mask): Ditto.
886 (*<rotate_insn><mode>3_mask): Ditto.
888 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
891 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
893 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
895 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
897 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
899 2013-03-30 Lawrence Crowl <crowl@google.com>
901 * dse.c (clear_alias_sets): Remove never set.
902 (disqualified_clear_alias_sets): Remove never set.
903 (clear_alias_mode_pool): Remove never set.
904 (dse_step0): Remove condition that is never true.
905 (canon_address): Remove condition that is never true.
906 (dse_step7): Remove condition that is never true.
907 (rest_of_handle_dse): Remove condition that is never true.
908 (rest_of_handle_dse::did_global): Remove never read from above.
909 (dse_step2_spill): Remove never called from above.
910 (dse_step5_spill): Remove never called from above.
912 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
914 * doc/md.texi (Standard Names) <casesi>: Update documentation for
915 JUMP_TABLE_DATA changes.
916 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
917 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
918 (Insns) <jump_table_data>: New entry.
919 * doc/tm.texi: Regenerate.
921 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
923 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
924 for table jump at the end of a basic block using tablejump_p.
925 * targhooks.c (default_invalid_within_doloop): Likewise.
926 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
927 target hook implementation that is identical to the default hook.
928 (rs6000_invalid_within_doloop): Remove.
930 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
931 unused variable from tablejump_p call.
933 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
934 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
935 (INSN_DELETED_P): Likewise.
936 (emit_jump_table_data): New prototype.
937 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
939 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
940 * sched-vis.c (print_insn): Likewise.
941 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
942 insn for compatibility with back ends that use next_active_insn to
943 identify jump table data.
944 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
945 (remove_insn): Likewise.
946 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
948 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
949 (emit_jump_table_data): New function.
951 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
952 basic block, a JUMP_TABLE_DATA never is.
953 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
954 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
955 off from code handling real insns.
956 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
957 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
958 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
959 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
960 is not a NONDEBUG_INSN_P.
961 * ira-costs.c (scan_one_insn): Likewise.
962 * jump.c (mark_all_labels): Likewise.
963 (mark_jump_label_1): Likewise.
964 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
965 * lra.c (get_insn_freq): Expect all insns reaching here to be in
967 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
968 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
969 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
970 JUMP_TABLE_DATA_P insns.
971 (calculate_elim_costs_all_insns): Likewise.
972 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
973 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
974 (delete_output_reload): Code style fixups.
975 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
976 insn flags on this non-insn.
977 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
978 as scheduling barriers, for pre-change compatibility.
979 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
980 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
982 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
983 redundant JUMP_TABLE_DATA_P test.
984 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
985 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
986 (frv_for_each_packet): Likewise.
987 * config/i386/i386.c (min_insn_size): Likewise.
988 (ix86_avoid_jump_mispredicts): Likewise.
989 * config/m32r/m32r.c (m32r_is_insn): Likewise.
990 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
991 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
992 (mips16_insn_length): Robustify.
993 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
994 (mips16_split_long_branches): Likewise.
995 * config/pa/pa.c (pa_combine_instructions): Likewise.
996 * config/rs6000/rs6000.c (get_next_active_insn): Treat
997 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
998 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
999 as contributing to pool range lengths.
1000 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
1001 Remove redundant JUMP_TABLE_DATA_P test.
1002 (sh_loop_align): Likewise.
1003 (split_branches): Likewise.
1004 (sh_insn_length_adjustment): Likewise.
1005 * config/spu/spu.c (get_branch_target): Likewise.
1007 2013-03-29 Jan Hubicka <jh@suse.cz>
1009 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
1010 gcov streaming; stream hot bb threshold to ltrans.
1011 * predict.c (get_hot_bb_threshold): Break out from ....
1012 (maybe_hot_count_p): ... here.
1013 (set_hot_bb_threshold): New function.
1014 * lto-section-in.c (lto_section_name): Add profile.
1015 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
1016 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
1018 (histogram_entry): New structure.
1019 (histogram, histogram_pool): New global vars.
1020 (histogram_hash): New structure.
1021 (histogram_hash::hash): New method.
1022 (histogram_hash::equal): Likewise.
1023 (account_time_size): New function.
1024 (cmp_counts): New function.
1025 (dump_histogram): New function.
1026 (ipa_profile_generate_summary): New function.
1027 (ipa_profile_write_summary): New function.
1028 (ipa_profile_read_summary): New function.
1029 (ipa_profile): Decide on threshold.
1030 (pass_ipa_profile): Add ipa_profile_write_summary and
1031 ipa_profile_read_summary.
1032 * Makefile.in (ipa.o): Update dependencies.
1033 * lto-streamer.h (LTO_section_ipa_profile): New section.
1035 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
1037 * tree.h (VAR_P): New.
1039 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
1042 * doc/invoke.texi ([-fwhole-program]): Fix typo.
1044 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
1046 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
1047 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1048 (control_flow_insn_p): Likewise.
1049 * cfgrtl.c (duplicate_insn_chain): Likewise.
1050 * final.c (get_attr_length_1): Likewise.
1051 (shorten_branches): Likewise.
1052 (final_scan_insn): Likewise.
1053 * function.c (instantiate_virtual_regs): Likewise.
1054 * gcse.c (insert_insn_end_basic_block): Likewise.
1055 * ira-costs.c (scan_one_insn): Likewise.
1056 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1057 * lra.c (check_rtl): Likewise.
1058 * reload1.c (elimination_costs_in_insn): Likewise.
1059 * reorg.c (follow_jumps): Likewise.
1061 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
1062 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
1063 (thumb_far_jump_used_p): Likewise.
1064 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
1065 (workaround_speculation): Likewise.
1066 (add_sched_insns_for_speculation): Likewise.
1067 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
1068 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
1069 (frv_for_each_packet): Likewise.
1070 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
1071 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
1072 (final_emit_insn_group_barriers): Likewise.
1073 * config/m32r/m32r.c (m32r_is_insn): Likewise.
1074 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
1075 (mips16_insn_length): Likewise.
1076 * config/pa/pa.c (pa_reorg): Likewise.
1077 (pa_combine_instructions): Likewise.
1078 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
1079 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
1080 (sh_reorg): Likewise.
1081 (split_branches): Likewise.
1082 * config/spu/spu.c (get_branch_target): Likewise.
1084 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
1087 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
1089 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
1090 Fix declaration name.
1092 2013-03-28 Lawrence Crowl <crowl@google.com>
1094 * graphds.h (struct graph.indicies): Remove unused.
1095 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
1096 (SCOP_ORIGINAL_PDDRS): Remove unused.
1097 * sese.h (extern insert_loop_close_phis): Removed unused.
1098 (extern insert_guard_phis): Removed unused.
1099 (extern ivtype_map_elt_info): Removed unused.
1100 (new_ivtype_map_elt): Removed unused.
1101 * sese.c (ivtype_map_elt_info): Removed unused.
1103 2013-03-28 Lawrence Crowl <crowl@google.com>
1105 * Makefile.in: Add several missing include dependences.
1107 (test-dump.o): New. This object is not added to any executable,
1108 but is present for ad-hoc testing.
1110 (debug (const bitmap_head_def &)): New.
1111 (debug (const bitmap_head_def *)): New.
1113 (extern debug (const bitmap_head_def &)): New.
1114 (extern debug (const bitmap_head_def *)): New.
1116 (debug (edge_def &)): New.
1117 (debug (edge_def *)): New.
1119 (debug (basic_block_def &)): New.
1120 (debug (basic_block_def *)): New.
1122 (dump_node (const_tree, int, FILE *)): Correct source file.
1124 (debug (die_struct &)): New.
1125 (debug (die_struct *)): New.
1127 (extern debug (die_struct &)): New.
1128 (extern debug (die_struct *)): New.
1129 * gimple-pretty-print.c
1130 (debug (gimple_statement_d &)): New.
1131 (debug (gimple_statement_d *)): New.
1132 * gimple-pretty-print.h
1133 (extern debug (gimple_statement_d &)): New.
1134 (extern debug (gimple_statement_d *)): New.
1136 (debug (ira_allocno_copy &)): New.
1137 (debug (ira_allocno_copy *)): New.
1138 (debug (ira_allocno &)): New.
1139 (debug (ira_allocno *)): New.
1141 (extern debug (ira_allocno_copy &)): New.
1142 (extern debug (ira_allocno_copy *)): New.
1143 (extern debug (ira_allocno &)): New.
1144 (extern debug (ira_allocno *)): New.
1146 (debug (live_range &)): New.
1147 (debug (live_range *)): New.
1149 (debug (lra_live_range &)): New.
1150 (debug (lra_live_range *)): New.
1152 (debug (lra_live_range &)): New.
1153 (debug (lra_live_range *)): New.
1155 (debug (omega_pb_d &)): New.
1156 (debug (omega_pb_d *)): New.
1158 (extern debug (omega_pb_d &)): New.
1159 (extern debug (omega_pb_d *)): New.
1161 (debug (const rtx_def &)): New.
1162 (debug (const rtx_def *)): New.
1164 (debug_tree (tree): Move within file.
1165 (debug_raw (const tree_node &)): New.
1166 (debug_raw (const tree_node *)): New.
1167 (dump_tree_via_hooks (const tree_node *, int)): New.
1168 (debug (const tree_node &)): New.
1169 (debug (const tree_node *)): New.
1170 (debug_verbose (const tree_node &)): New.
1171 (debug_verbose (const tree_node *)): New.
1172 (debug_head (const tree_node &)): New.
1173 (debug_head (const tree_node *)): New.
1174 (debug_body (const tree_node &)): New.
1175 (debug_body (const tree_node *)): New.
1176 (debug_vec_tree (tree): Move and reimplement in terms of dump.
1177 (debug (vec<tree, va_gc> &)): New.
1178 (debug (vec<tree, va_gc> *)): New.
1180 (extern debug (const rtx_def &)): New.
1181 (extern debug (const rtx_def *)): New.
1183 (debug_raw (simple_bitmap_def &)): New.
1184 (debug_raw (simple_bitmap_def *)): New.
1185 (debug (simple_bitmap_def &)): New.
1186 (debug (simple_bitmap_def *)): New.
1188 (extern debug (simple_bitmap_def &)): New.
1189 (extern debug (simple_bitmap_def *)): New.
1190 (extern debug_raw (simple_bitmap_def &)): New.
1191 (extern debug_raw (simple_bitmap_def *)): New.
1193 (debug (vinsn_def &)): New.
1194 (debug (vinsn_def *)): New.
1195 (debug_verbose (vinsn_def &)): New.
1196 (debug_verbose (vinsn_def *)): New.
1197 (debug (expr_def &)): New.
1198 (debug (expr_def *)): New.
1199 (debug_verbose (expr_def &)): New.
1200 (debug_verbose (expr_def *)): New.
1201 (debug (vec<rtx> &)): New.
1202 (debug (vec<rtx> *)): New.
1204 (extern debug (vinsn_def &)): New.
1205 (extern debug (vinsn_def *)): New.
1206 (extern debug_verbose (vinsn_def &)): New.
1207 (extern debug_verbose (vinsn_def *)): New.
1208 (extern debug (expr_def &)): New.
1209 (extern debug (expr_def *)): New.
1210 (extern debug_verbose (expr_def &)): New.
1211 (extern debug_verbose (expr_def *)): New.
1212 (extern debug (vec<rtx> &)): New.
1213 (extern debug (vec<rtx> *)): New.
1215 (_list_iter_cond_expr): Make inline instead of static.
1217 (debug (sreal &)): New.
1218 (debug (sreal *)): New.
1220 (extern debug (sreal &)): New.
1221 (extern debug (sreal *)): New.
1223 (extern debug_raw (const tree_node &)): New.
1224 (extern debug_raw (const tree_node *)): New.
1225 (extern debug (const tree_node &)): New.
1226 (extern debug (const tree_node *)): New.
1227 (extern debug_verbose (const tree_node &)): New.
1228 (extern debug_verbose (const tree_node *)): New.
1229 (extern debug_head (const tree_node &)): New.
1230 (extern debug_head (const tree_node *)): New.
1231 (extern debug_body (const tree_node &)): New.
1232 (extern debug_body (const tree_node *)): New.
1233 (extern debug (vec<tree, va_gc> &)): New.
1234 (extern debug (vec<tree, va_gc> *)): New.
1236 (debug (struct loop &)): New.
1237 (debug (struct loop *)): New.
1238 (debug_verbose (struct loop &)): New.
1239 (debug_verbose (struct loop *)): New.
1240 * tree-dump.c: Add header dependence.
1242 (extern debug (struct loop &)): New.
1243 (extern debug (struct loop *)): New.
1244 (extern debug_verbose (struct loop &)): New.
1245 (extern debug_verbose (struct loop *)): New.
1247 (debug (data_reference &)): New.
1248 (debug (data_reference *)): New.
1249 (debug (vec<data_reference_p> &)): New.
1250 (debug (vec<data_reference_p> *)): New.
1251 (debug (vec<ddr_p> &)): New.
1252 (debug (vec<ddr_p> *)): New.
1254 (extern debug (data_reference &)): New.
1255 (extern debug (data_reference *)): New.
1256 (extern debug (vec<data_reference_p> &)): New.
1257 (extern debug (vec<data_reference_p> *)): New.
1258 (extern debug (vec<ddr_p> &)): New.
1259 (extern debug (vec<ddr_p> *)): New.
1261 (debug (pt_solution &)): New.
1262 (debug (pt_solution *)): New.
1264 (extern debug (pt_solution &)): New.
1265 (extern debug (pt_solution *)): New.
1267 (debug (_var_map &)): New.
1268 (debug (_var_map *)): New.
1269 (debug (tree_live_info_d &)): New.
1270 (debug (tree_live_info_d *)): New.
1272 (extern debug (_var_map &)): New.
1273 (extern debug (_var_map *)): New.
1274 (extern debug (tree_live_info_d &)): New.
1275 (extern debug (tree_live_info_d *)): New.
1277 2013-03-28 Jan Hubicka <jh@suse.cz>
1279 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
1281 2013-03-28 Ian Bolton <ian.bolton@arm.com>
1283 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
1284 record only when desired or required.
1286 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
1288 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
1289 *vec_extractv2di_1_rex64. Use x64 isa attribute.
1291 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1293 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
1294 (*andsi3_compare0_uxtw): New pattern.
1295 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
1296 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
1298 2013-03-28 Jan Hubicka <jh@suse.cz>
1300 * data-streamer-in.c (streamer_read_gcov_count): New function.
1301 * gimple-streamer-out.c: Include value-prof.h.
1302 (output_gimple_stmt): Output histogram.
1303 (output_bb): Use streamer_write_gcov_count.
1304 * value-prof.c: Include data-streamer.h
1305 (dump_histogram_value): Add HIST_TYPE_MAX.
1306 (stream_out_histogram_value): New function.
1307 (stream_in_histogram_value): New function.
1308 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
1309 (stream_out_histogram_value, stream_in_histogram_value): Declare.
1310 * data-streamer-out.c (streamer_write_gcov_count): New function.
1311 (streamer_write_gcov_count_stream): New function.
1312 * lto-cgraph.c (lto_output_edge): Update counter streaming.
1313 (lto_output_node): Likewise.
1314 (input_node, input_edge): Likewise.
1315 * lto-streamer-out.c (output_cfg): Update streaming.
1316 * lto-streamer-in.c (input_cfg): Likewise.
1317 * data-streamer.h (streamer_write_gcov_count,
1318 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
1319 * gimple-streamer-in.c: Include value-prof.h
1320 (input_gimple_stmt): Input histograms.
1321 (input_bb): Update profile streaming.
1323 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
1325 * genmodes.c (emit_max_int): New function.
1326 (emit_insn_modes_h): Added call to emit_max_function.
1327 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
1329 * machmode.def: Fixed comment.
1331 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
1333 * combine.c (try_combine): Removed useless assert.
1334 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
1336 2013-03-28 Marek Polacek <polacek@redhat.com>
1337 Richard Biener <rguenther@suse.de>
1339 PR tree-optimization/56695
1340 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
1341 build signed result of a vector comparison.
1342 * tree-cfg.c (verify_gimple_comparison): Check that a result
1343 of a vector comparison has signed type.
1345 2013-03-28 Richard Biener <rguenther@suse.de>
1347 PR tree-optimization/37021
1348 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
1349 do not restrict gaps between groups.
1350 * tree-vect-stmts.c (vectorizable_load): Properly account for
1351 a gap between groups.
1353 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
1355 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
1356 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
1359 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
1361 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
1362 * doc/extend.texi (Named Address Spaces): Ditto.
1363 (Variable Attributes): Ditto.
1365 2013-03-27 Kai Tietz <ktietz@redhat.com>
1367 * config.build: Add support for cygwin x64 target.
1368 * config.gcc: Likewise.
1369 * config.host: Likewise.
1370 * configure.ac: Likewise
1371 * configure: Regenerated.
1373 2013-03-27 Kai Tietz <ktietz@redhat.com>
1375 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
1376 * config/i386/t-cygwin-w64: New file.
1377 * config/i386/cygwin-w64.h: New file.
1378 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
1379 and add support for x64-cygwin target.
1380 (CPP_SPEC): Likewise.
1381 (CXX_WRAP_SPEC_LIST): Undefine before define.
1382 (LIBGCJ_SONAME): Use 15 as version.
1384 2013-03-27 Richard Biener <rguenther@suse.de>
1386 PR tree-optimization/56716
1387 * tree-ssa-structalias.c (perform_var_substitution): Adjust
1388 dumping for ref nodes.
1390 2013-03-27 Martin Jambor <mjambor@suse.cz>
1392 PR tree-optimization/55334
1393 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
1394 restricted pointers to arrays.
1396 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1398 * Makefile.in (.SUFFIXES): Add .cc.
1399 (.c.o): Apply same recipe for implicit rule .cc.o.
1401 2013-03-27 Richard Biener <rguenther@suse.de>
1403 PR tree-optimization/37021
1404 * tree-vect-data-refs.c (vect_check_strided_load): Allow
1405 REALPART/IMAGPART_EXPRs around the supported refs.
1406 * tree-ssa-structalias.c (find_func_aliases): Assume that
1407 floating-point values are not used to transfer pointers.
1409 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1411 * target.def (TARGET_HAS_IFUNC_P): New target hook.
1412 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
1413 * doc/tm.texi: Regenerate.
1414 * targhooks.h (default_has_ifunc_p): New.
1415 * targhooks.c (default_has_ifunc_p): Ditto.
1416 * config/linux-protos.h: New file.
1417 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
1418 this hook for linux which disables support of indirect functions in
1420 * config/linux-android.c: New file.
1421 * config/t-linux-android.c: Ditto.
1422 * config.gcc: Added new object file linux-android.o.
1423 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
1424 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
1425 * varasm.c (do_assemble_alias): Likewise.
1426 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
1427 doesn't support indirect functions.
1428 * configure: Regenerate.
1430 2013-03-27 Bin Cheng <bin.cheng@arm.com>
1433 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
1434 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
1437 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1439 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
1441 2013-03-27 Terry Guo <terry.guo@arm.com>
1443 * config/arm/arm-cores.def: Added core cortex-r7.
1444 * config/arm/arm-tune.md: Regenerated.
1445 * config/arm/arm-tables.opt: Regenerated.
1446 * doc/invoke.texi: Added entry for core cortex-r7.
1448 2013-03-27 Walter Lee <walt@tilera.com>
1450 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
1451 double-decrement of next_scratch_regno.
1453 2013-03-27 Walter Lee <walt@tilera.com>
1455 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
1457 (insn_v1mulus): Ditto.
1458 (insn_v2muls): Ditto.
1460 2013-03-27 Walter Lee <walt@tilera.com>
1462 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
1463 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
1465 2013-03-27 Walter Lee <walt@tilera.com>
1467 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
1468 (*sibcall_value): Ditto.
1470 2013-03-27 Walter Lee <walt@tilera.com>
1472 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
1473 (insn_mnz_v8qi): ... this ...
1474 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
1476 (insn_v<n>mnz): Replaced by ...
1477 (insn_v1mnz): ... this ...
1478 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
1480 (insn_mz_<mode>): Replaced by ...
1481 (insn_mz_v8qi): ... this ...
1482 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
1484 (insn_v<n>mz): Replaced by ...
1485 (insn_v1mz): ... this ...
1486 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
1489 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
1491 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
1493 2013-03-26 Roland McGrath <mcgrathr@google.com>
1495 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
1496 than fprintf with a non-constant, non-format string.
1498 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
1500 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
1501 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
1502 operand 0 predicate.
1503 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
1504 attribute. Use general_x64nomem_operand as operand 1 predicate.
1505 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
1506 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
1507 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
1508 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
1509 (mov<mode>_insv_1): Remove expander. Merge insn with
1510 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
1511 Use general_x64nomem_operand as operand 1 predicate.
1512 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
1513 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
1514 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
1515 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
1516 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
1517 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
1518 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
1519 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
1520 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
1521 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
1522 (general_x64nomem_operand): Ditto.
1524 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
1526 * config/rtems.opt: Add -pthread option.
1528 2013-03-26 Richard Biener <rguenther@suse.de>
1530 * alias.c (find_base_term): Avoid redundant and not used recursion.
1531 (base_alias_check): Get the initial base term from the caller.
1532 (true_dependence_1): Compute and pass base terms to base_alias_check.
1533 (write_dependence_p): Likewise.
1534 (may_alias_p): Likewise.
1536 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
1538 * config/aarch64/aarch64.c (aarch64_classify_address): Support
1539 PC-relative load in SI modes and above only.
1541 2013-03-26 Xinyu Qi <xyqi@marvell.com>
1543 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
1544 * config/arm/iwmmxt.md (WCGR0): Update.
1545 (WCGR1, WCGR2, WCGR3): Likewise.
1547 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
1549 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
1550 Use x64 and nox64 isa attributes.
1552 2013-03-26 Richard Biener <rguenther@suse.de>
1554 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1555 alignment computations and rely on get_object_alignment_1
1556 for the !TYPE_P case.
1557 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
1559 2013-03-26 Walter Lee <walt@tilera.com>
1561 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
1562 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
1564 2013-03-25 Jeff Law <law@redhat.com>
1566 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
1567 check for INTEGRAL_TYPE_P that was missing due to checking in
1568 wrong version of prior patch.
1570 2013-03-25 Walter Lee <walt@tilera.com>
1572 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
1573 TILEGX_INSN_SHUFFLEBYTES1.
1574 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
1576 (tilegx_builtins): Ditto.
1577 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
1579 2013-03-25 Walter Lee <walt@tilera.com>
1581 * config/tilegx/tilegx.md (floatsisf2): New pattern.
1582 (floatunssisf2): New pattern.
1583 (floatsidf2): New pattern.
1584 (floatunssidf2): New pattern.
1586 2013-03-25 Walter Lee <walt@tilera.com>
1588 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
1589 tests for constraint J, K, N, P.
1591 2013-03-25 Walter Lee <walt@tilera.com>
1593 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
1594 Use indirect/pcrel encoding.
1595 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
1598 2013-03-25 Steve Ellcey <sellcey@mips.com>
1600 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
1601 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
1602 * config/mips/mips.c (mips_option_override): Set IMADD default.
1603 * config/mips/mips.h (PTF_AVOID_IMADD): New.
1604 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
1605 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
1606 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
1607 * doc/invoke.texi (-mimadd/-mno-imadd): New.
1609 2013-03-25 Jeff Law <law@redhat.com>
1611 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
1612 slightly to avoid creating and folding useless trees. Simplify
1613 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
1615 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
1617 * config/i386/i386.md (*zero_extendsidi2): Merge with
1618 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
1619 * config/i386/predicates.md (x86_64_zext_operand): Rename from
1620 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
1621 targets. Clarify comment.
1623 2013-03-25 Martin Jambor <mjambor@suse.cz>
1625 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
1626 pass-through jump functions differently.
1627 (ipa_read_jump_function): Likewise. Also use setter functions to set
1630 2013-03-25 Martin Jambor <mjambor@suse.cz>
1632 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
1633 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
1635 (ipa_get_indirect_edge_target): New function.
1636 (devirtualization_time_bonus): New parameter known_aggs, pass it to
1637 ipa_get_indirect_edge_target. Update all callers.
1638 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
1639 ipa_get_indirect_edge_target_1 instead of calling
1640 ipa_get_indirect_edge_target.
1641 (create_specialized_node): Pass aggvlas to
1642 ipcp_discover_new_direct_edges.
1644 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1646 * config/arm/arm.md (f_sels, f_seld): New types.
1647 (*cmov<mode>): New pattern.
1648 * config/arm/predicates.md (arm_vsel_comparison_operator): New
1651 2013-03-25 Kai Tietz <ktietz@redhat.com>
1653 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
1654 POSIX-printf for mingw-hosted builds.
1656 2013-03-25 Richard Biener <rguenther@suse.de>
1659 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
1660 must-not-throw stmt location.
1662 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1664 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
1665 Emit load-acquire versions when acq is true.
1666 (arm_emit_store_exclusive): Add rel parameter.
1667 Emit store-release versions when rel is true.
1668 (arm_split_compare_and_swap): Use acquire-release instructions
1670 of barriers when appropriate.
1671 (arm_split_atomic_op): Likewise.
1672 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
1673 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
1674 (VUNSPEC_SLX): Likewise.
1675 (VUNSPEC_LDA): Likewise.
1676 (VUNSPEC_STL): Likewise.
1677 * config/arm/sync.md (atomic_load<mode>): New pattern.
1678 (atomic_store<mode>): Likewise.
1679 (arm_load_acquire_exclusive<mode>): Likewise.
1680 (arm_load_acquire_exclusivesi): Likewise.
1681 (arm_load_acquire_exclusivedi): Likewise.
1682 (arm_store_release_exclusive<mode>): Likewise.
1684 2013-03-25 Catherine Moore <clm@codesourcery.com>
1686 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
1687 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
1688 * config/mip/predicates.md (lwsp_swsp_operand,
1689 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
1690 sb16_operand, db4_operand, db7_operand, ib3_operand,
1691 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
1692 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
1693 andi16_operand): New predicates.
1694 * config/mips/mips.md (compression): New attribute.
1695 (enabled): New attribute.
1696 (length): Consider compression in computing length.
1697 (shift_compression): New code attribute.
1698 (*add<mode>3): New operands. Record compression.
1699 (sub<mode>3): Likewise.
1700 (one_cmpl<mode>2): Likewise.
1701 (*and<mode>3): Likewise.
1702 (*ior<mode>3): Likewise.
1703 (unnamed pattern for xor): Likewise.
1704 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
1705 (*<optab><mode>3): Likewise.
1706 (*mov<mode>_internal: Likewise.
1707 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
1708 (mips_unsigned_immediate_p): New.
1709 (umips_lwsp_swsp_address_p): New.
1710 (m16_based_address_p): New.
1711 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
1712 (mips_unsigned_immediate_p): New prototype.
1713 (lwsp_swsp_address_p): New prototype.
1714 (m16_based_address_p): New prototype.
1715 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
1716 (mips_signed_immediate_p): New function.
1717 (m16_based_address_p): New function.
1718 (lwsp_swsp_address_p): New function.
1719 (mips_print_operand_punctuation): Recognize short delay slot insns
1720 for microMIPS.add<mode>3"
1722 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1725 * config/arm/iterators.md (v_cmp_result): New mode attribute.
1726 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
1728 2013-03-25 Richard Biener <rguenther@suse.de>
1730 PR tree-optimization/56689
1731 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
1734 2013-03-25 Richard Biener <rguenther@suse.de>
1736 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
1738 (memory_references): Likewise.
1739 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
1740 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
1741 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
1742 (gather_mem_refs_in_loops): Fold into ...
1743 (analyze_memory_references): ... this. Move initialization
1744 to tree_ssa_lim_initialize.
1745 (fill_always_executed_in): Rename to ...
1746 (fill_always_executed_in_1): ... this.
1747 (fill_always_executed_in): Move contains_call computation to
1748 this new function from ...
1749 (tree_ssa_lim_initialize): ... here.
1750 (tree_ssa_lim): Call fill_always_executed_in.
1752 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
1754 * postreload.c (reload_combine): Fix code detecting returns.
1756 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
1758 * function.c (emit_use_return_register_into_block): On cc0 targets,
1759 do not emit the sequence between cc0 setter and user.
1761 2013-03-25 Kai Tietz <ktietz@redhat.com>
1763 * config/i386/predicates.md (local_symbolic_operand): Interpret
1764 dll-imported symbols as none-local.
1766 2013-03-25 Richard Biener <rguenther@suse.de>
1768 * tree-ssa-loop-im.c (struct depend): Remove.
1769 (struct lim_aux_data): Make depends a vec of gimples.
1770 (free_lim_aux_data): Adjust.
1771 (add_dependency): Likewise.
1772 (set_level): Likewise.
1774 2013-03-25 Richard Biener <rguenther@suse.de>
1777 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
1778 the pointer returned by calls with ECF_MALLOC set.
1780 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
1782 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
1784 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
1786 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
1787 using MMXMODE mode iterator.
1788 (*move<mode>_internal): Merge with *movv2sf_internal and
1789 *movv2sf_internal_rex64 using MMXMODE mode iterator.
1791 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
1793 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
1794 (record_last_mem_set_info): Likewise.
1796 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
1797 of XNEWVEC followed by memset.
1798 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
1800 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
1802 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
1803 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
1804 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
1805 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
1806 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
1807 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
1808 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
1809 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
1810 BARRIER_P instead of GET_CODE.
1812 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
1814 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
1815 inaccuracy in the probing code.
1817 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
1818 (ctrapdi4): Likewise.
1820 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
1822 * calls.c (expand_call): Add missing guard to code handling return
1823 of non-BLKmode structures in MSB.
1824 * function.c (expand_function_end): Likewise.
1826 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
1828 * combine.c (try_combine): Adjust comment. Do not add the set of
1829 insn #0 if the destination indirectly is set or dies in insn #2.
1830 Tidy up code to distribute a new note.
1832 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
1834 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
1835 also for alternatives 16 and 17.
1837 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
1839 * config/i386/sse.md (*mov<mode>_internal): Merge with
1840 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
1841 Emit insn template depending on type attribute. Use
1842 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1843 movd instead of movq mnemonic for interunit moves. Rewrite mode
1844 attribute calculation. Remove unit attribute calculation.
1845 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
1846 Set prefix_data16 attribute for DImode ssemov types.
1847 Use Ym instead of y for SSE-MMX conversion alternatives.
1848 Reorder operand constraints.
1850 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
1852 * df.h (df_insn_delete): Adjust prototype.
1853 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
1854 and let it decide whether mark the basic block dirty.
1855 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
1856 * df-scan.c (df_insn_info_delete): New helper function, split
1857 off from df_insn_delete.
1858 (df_scan_free_bb_info): Use it.
1859 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
1861 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
1862 that the insn is actually an insn and it has a non-NULL basic block.
1863 Do not mark basic block dirty if only deleting a DEBUG_INSN.
1865 2013-03-22 Richard Biener <rguenther@suse.de>
1867 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
1869 (mem_ref_alloc): Do not allocate them.
1870 (refs_independent_p): Do not query or maintain a cache.
1872 2013-03-22 Richard Biener <rguenther@suse.de>
1874 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
1875 (gather_mem_refs_in_loops): Do not compute it.
1876 (analyze_memory_references): Do not allocate it.
1877 (tree_ssa_lim_finalize): Do not free it.
1878 (for_all_locs_in_loop): Do not query all_refs_in_loop.
1880 2013-03-22 Richard Biener <rguenther@suse.de>
1882 * is-a.h (as_a): Use gcc_checking_assert.
1884 2013-03-22 Ian Bolton <ian.bolton@arm.com>
1886 * config/aarch64/aarch64.c (aarch64_print_operand): New
1887 format specifier for printing a constant in hex.
1888 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
1889 format specifier for printing second operand.
1891 2013-03-22 Richard Biener <rguenther@suse.de>
1893 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
1895 (gather_mem_refs_in_loops): Perform store accumulation here.
1896 (create_vop_ref_mapping_loop): Remove.
1897 (create_vop_ref_mapping): Likewise.
1898 (analyze_memory_references): Initialize refs_stored_in_loop.
1899 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
1900 (record_indep_loop): Remove.
1901 (record_dep_loop): New function.
1902 (ref_indep_loop_p_1): Adjust to only walk over references
1903 in the loop, not its subloops.
1904 (ref_indep_loop_p): Rename to ...
1905 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
1906 maintaining a more fine-grained cache.
1907 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
1908 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
1910 2013-03-22 Richard Biener <rguenther@suse.de>
1912 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
1913 (struct mem_ref): Make accesses_in_loop a vec of a vec of
1914 aggregate mem_ref_loc.
1915 (free_mem_ref_locs): Inline into ...
1916 (memref_free): ... this and adjust.
1917 (mem_ref_alloc): Adjust.
1918 (mem_ref_locs_alloc): Remove.
1919 (record_mem_ref_loc): Adjust.
1920 (get_all_locs_in_loop): Rewrite into ...
1921 (for_all_locs_in_loop): ... this iterator.
1922 (rewrite_mem_ref_loc): New functor.
1923 (rewrite_mem_refs): Use for_all_locs_in_loop.
1924 (sm_set_flag_if_changed): New functor.
1925 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
1926 (ref_always_accessed): New functor.
1927 (ref_always_accessed_p): Use for_all_locs_in_loop.
1929 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
1931 * tree-pass.h (PROP_gimple_lvec): New.
1932 * passes.c (dump_properties): Handle PROP_gimple_lvec.
1933 (init_optimization_passes): Move pass_lower_vector.
1934 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
1936 (pass_lower_vector): Provide PROP_gimple_lvec.
1937 (pass_lower_vector_ssa): Likewise.
1938 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
1940 2013-03-21 Mark Wielaard <mjw@redhat.com>
1942 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
1944 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
1946 * config/i386/i386.md (*movdi_internal): Disparage slightly
1947 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
1948 conversion alternatives.
1950 2013-03-21 Jakub Jelinek <jakub@redhat.com>
1953 * diagnostic.def (DK_WERROR): New kind.
1954 * diagnostic.h (werrorcount): Define.
1955 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
1956 promoted to DK_ERROR, increment DK_WERROR counter instead of
1958 * toplev.c (toplev_main): Call print_ignored_options even if
1959 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
1960 even if just werrorcount is non-zero.
1963 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
1965 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
1966 (string_cst_pool_decl): New function.
1967 (optimize_one_addr_into_implicit_ptr): New function.
1968 (resolve_addr_in_expr): Optimize DWARF location expression
1969 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
1970 which doesn't live in memory, but has DW_AT_location or
1971 DW_AT_const_value, or refers to a string literal, into
1972 DW_OP_GNU_implicit_pointer.
1973 (optimize_location_into_implicit_ptr): New function.
1974 (resolve_addr): If removing DW_AT_location of a variable because
1975 it was DW_OP_addr of address of the variable, but the variable doesn't
1976 live in memory, try to emit const value attribute for the initializer.
1978 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
1980 * tree.h (VECTOR_TYPE_P): New macro.
1981 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
1983 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
1984 VEC_COND_EXPR cannot be lvalues.
1985 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
1987 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
1989 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
1990 Restrict the transformation to equal modes.
1992 2013-03-21 Richard Biener <rguenther@suse.de>
1994 PR tree-optimization/39326
1995 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
1996 (MEM_ANALYZABLE): Adjust.
1997 (record_mem_ref_loc): Move bitmap ops ...
1998 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
1999 unanalyzable refs, do not record locations for it.
2000 (analyze_memory_references): Allocate ref zero as shared
2002 (refs_independent_p): Do not test for unanalyzed mems here.
2003 (ref_indep_loop_p_1): Special-case disambiguation against
2005 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
2007 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
2009 * config/arm/arm-protos.h (tune_params): Add
2010 prefer_neon_for_64bits field.
2011 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
2012 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
2013 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2014 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2015 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
2016 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2017 (arm_option_override): Handle -mneon-for-64bits new option.
2018 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
2019 (prefer_neon_for_64bits): Declare new variable.
2020 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
2021 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
2022 (arch_enabled): Handle new arch types. Remove support for onlya8
2024 (one_cmpldi2): Use new arch names.
2025 (zero_extend<mode>di2, extend<mode>di2): Ditto.
2026 * config/arm/arm.opt (mneon-for-64bits): Add option.
2027 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
2028 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
2029 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
2031 * doc/invoke.texi (-mneon-for-64bits): Document.
2033 2013-03-21 Richard Biener <rguenther@suse.de>
2035 PR tree-optimization/39326
2036 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
2037 (sort_bbs_in_loop_postorder_cmp): New function.
2038 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
2040 2013-03-21 Richard Biener <rguenther@suse.de>
2042 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
2043 (vect_insert_into_interleaving_chain): Likewise.
2044 (vect_drs_dependent_in_basic_block): Inline ...
2045 (vect_slp_analyze_data_ref_dependence): ... here. New function,
2047 (vect_analyze_data_ref_dependence): ... here. Simplify.
2048 (vect_check_interleaving): Simplify.
2049 (vect_analyze_data_ref_dependences): Likewise. Split out ...
2050 (vect_slp_analyze_data_ref_dependences): ... this new function.
2051 (dr_group_sort_cmp): New function.
2052 (vect_analyze_data_ref_accesses): Compute data-reference groups
2053 here instead of in vect_analyze_data_ref_dependence. Use
2054 a more efficient algorithm.
2055 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
2056 vect_slp_analyze_data_ref_dependences. Call
2057 vect_analyze_data_ref_accesses earlier.
2058 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2059 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
2060 (vect_slp_analyze_data_ref_dependences): New prototype.
2062 2013-03-21 Richard Biener <rguenther@suse.de>
2064 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
2065 ref is stored in the loop.
2066 (find_refs_for_sm): Walk only over all stores.
2067 (store_motion_loop): Allocate from lim_bitmap_obstack.
2068 (store_motion): Likewise.
2070 2013-03-21 Richard Biener <rguenther@suse.de>
2072 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
2073 Update virtual SSA form.
2075 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2077 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
2078 * configure: Regenerate.
2079 * config.in: Regenerate.
2080 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
2081 if !HAVE_LD_EH_FRAME_CIEV3.
2083 2013-03-21 Richard Biener <rguenther@suse.de>
2085 * tree-cfg.c (verify_expr_no_block): New function.
2086 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
2087 nor DECL_VALUE_EXPR have locations with associated blocks.
2088 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
2089 (clear_unused_block_pointer): Remove code dealing with
2090 blocks in DECL_DEBUG_EXPR locations.
2092 2013-03-21 Richard Biener <rguenther@suse.de>
2094 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
2095 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
2096 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
2097 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
2098 instead of DECL_DEBUG_EXPR_IS_FROM.
2099 * gimplify.c (gimplify_modify_expr): Likewise.
2100 * tree-cfg.c (verify_expr_location_1): Likewise.
2101 * tree-complex.c (create_one_component_var): Likewise.
2102 * tree-sra.c (create_access_replacement): Likewise.
2103 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
2104 (clear_unused_block_pointer): Likewise.
2105 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
2106 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2107 * var-tracking.c (var_debug_decl): Likewise.
2108 (track_expr_p): Likewise.
2109 * tree-inline.c (add_local_variables): Likewise. Set
2110 DECL_HAS_DEBUG_EXPR_P after copying it.
2111 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2112 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
2114 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
2117 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
2118 * configure: Regenerate.
2119 * config.in: Regenerate.
2120 * config/i386/i386.md (*movdf_internal): Use
2121 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
2122 movd instead of movq mnemonic for interunit moves.
2123 (*movdi_internal): Ditto.
2125 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2127 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
2128 (abd<mode>_3): New pattern.
2129 (aba<mode>_3): New pattern.
2130 (fabd<mode>_3): New pattern.
2132 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2134 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
2135 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
2136 occurrence of REGISTER_PREFIX as its empty string.
2138 2013-03-20 Jeff Law <law@redhat.com>
2140 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
2141 addititional equivalences for equality comparisons between an SSA_NAME
2142 and a constant where the SSA_NAME was set from a widening conversion.
2144 2013-03-20 Walter Lee <walt@tilera.com>
2146 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
2148 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
2150 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
2151 depending on type attribute.
2152 (*movti_internal): Ditto.
2153 (*movtf_internal): Ditto.
2154 (*movxf_internal): Ditto.
2155 (*movdf_internal): Ditto.
2156 (*movsf_internal): Ditto.
2158 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
2160 * config/i386/i386.md (*movti_internal): Set prefix attribute to
2161 maybe_vex for sselog1 and ssemov types.
2162 (*movdi_internal): Reorder operand constraints.
2163 (*movsi_internal): Ditto. Set prefix attribute to
2164 maybe_vex for sselog1 and ssemov types.
2165 (*movtf_internal): Set prefix attribute to maybe_vex
2166 for sselog1 and ssemov types.
2167 (*movdf_internal): Ditto. Set prefix_data16 attribute for
2168 DImode ssemov types. Reorder operand constraints.
2169 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
2170 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
2171 attribute for SImode ssemov types. Reorder operand constraints.
2173 2013-03-20 Martin Jambor <mjambor@suse.cz>
2175 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
2176 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
2178 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
2180 * config/rs6000/predicates.md (indexed_address, update_address_mem
2181 update_indexed_address_mem): New predicates.
2182 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
2183 attribute for load/store instructions.
2184 * config/rs6000/dfp.md (movsd_store): Likewise.
2185 (movsd_load): Likewise.
2186 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
2187 (unnamed HI->DI extend define_insn): Likewise.
2188 (unnamed SI->DI extend define_insn): Likewise.
2189 (unnamed QI->SI extend define_insn): Likewise.
2190 (unnamed QI->HI extend define_insn): Likewise.
2191 (unnamed HI->SI extend define_insn): Likewise.
2192 (unnamed HI->SI extend define_insn): Likewise.
2193 (extendsfdf2_fpr): Likewise.
2194 (movsi_internal1): Likewise.
2195 (movsi_internal1_single): Likewise.
2196 (movhi_internal): Likewise.
2197 (movqi_internal): Likewise.
2198 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
2199 attribute for load/store instructions.
2200 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
2202 (mov<mode>_softfloat): Likewise.
2203 (mov<mode>_hardfloat32): Likewise.
2204 (mov<mode>_hardfloat64): Likewise.
2205 (mov<mode>_softfloat64): Likewise.
2206 (movdi_internal32): Likewise.
2207 (movdi_internal64): Likewise.
2208 (probe_stack_<mode>): Likewise.
2210 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2212 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
2213 floating point, and decimal floating point to reload iterator.
2215 * config/rs6000/constraints.md (wl constraint): New constraints to
2216 return FLOAT_REGS if certain options are used to reduce the number
2217 of separate patterns that exist in the file.
2218 (wx constraint): Likewise.
2219 (wz constraint): Likewise.
2221 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2222 -mdebug=reg, print wg, wl, wx, and wz constraints.
2223 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2224 Initialize the reload functions for 64-bit binary/decimal floating
2226 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2227 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2228 create the buffer on the stack to overcome not having a 32-bit
2230 (rs6000_emit_move): Likewise.
2231 (rs6000_secondary_memory_needed_rtx): Likewise.
2232 (rs6000_alloc_sdmode_stack_slot): Likewise.
2233 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2234 via xxlxor, just like DFmode 0.0.
2236 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
2237 define as 1 if we are running on a power7 or newer.
2238 (enum r6000_reg_class_enum): Add new constraints.
2240 * config/rs6000/dfp.md (movsd): Delete, combine with binary
2241 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
2242 with other moves by using conditional constraits (wg). Use LFIWZX
2243 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
2244 (movsd splitter): Likewise.
2245 (movsd_hardfloat): Likewise.
2246 (movsd_softfloat): Likewise.
2248 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
2249 binary and decimal floating point moves.
2250 (fmove_ok): New attributes to combine binary and decimal floating
2251 point moves, and to combine power6x (mfpgpr) moves along normal
2253 (real_value_to_target): Likewise.
2260 (movsf): Combine binary and decimal floating point moves. Combine
2261 power6x (mfpgpr) moves with other moves by using conditional
2262 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
2263 (mov<mode> for SFmode/SDmode); Likewise.
2264 (SFmode/SDmode splitters): Likewise.
2265 (movsf_hardfloat): Likewise.
2266 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
2267 (movsf_softfloat): Likewise.
2268 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
2270 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
2271 wx and wz constraints.
2273 * config/rs6000/constraints.md (wg constraint): New constraint to
2274 return FLOAT_REGS if -mmfpgpr (power6x) was used.
2276 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
2279 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
2280 -mdebug=reg, print wg, wl, wx, and wz constraints.
2281 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
2282 Initialize the reload functions for 64-bit binary/decimal floating
2284 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
2285 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
2286 create the buffer on the stack to overcome not having a 32-bit
2288 (rs6000_emit_move): Likewise.
2289 (rs6000_secondary_memory_needed_rtx): Likewise.
2290 (rs6000_alloc_sdmode_stack_slot): Likewise.
2291 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
2292 via xxlxor, just like DFmode 0.0.
2294 * config/rs6000/dfp.md (movdd): Delete, combine with binary
2295 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
2296 with other moves by using conditional constraits (wg). Use LFIWZX
2297 and STFIWX for loading SDmode on power7.
2298 (movdd splitters): Likewise.
2299 (movdd_hardfloat32): Likewise.
2300 (movdd_softfloat32): Likewise.
2301 (movdd_hardfloat64_mfpgpr): Likewise.
2302 (movdd_hardfloat64): Likewise.
2303 (movdd_softfloat64): Likewise.
2305 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
2306 64-bit binary and decimal floating point moves.
2307 (FMOVE64X): Likewise.
2308 (movdf): Combine 64-bit binary and decimal floating point moves.
2309 Combine power6x (mfpgpr) moves with other moves by using
2310 conditional constraits (wg).
2311 (mov<mode> for DFmode/DDmode): Likewise.
2312 (DFmode/DDmode splitters): Likewise.
2313 (movdf_hardfloat32): Likewise.
2314 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
2315 (movdf_softfloat32): Likewise.
2316 (movdf_hardfloat64_mfpgpr): Likewise.
2317 (movdf_hardfloat64): Likewise.
2318 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
2319 (movdf_softfloat64): Likewise.
2320 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
2321 (reload_<mode>_load): Move to later in the file so they aren't in
2322 the middle of the floating point move insns.
2323 (reload_<mode>_store): Likewise.
2325 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
2328 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
2329 constraint if -mdebug=reg.
2330 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
2331 Enable using dd reload support if needed.
2333 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
2334 binary and decimal floating point moves in rs6000.md.
2335 (movtd_internal): Likewise.
2337 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
2338 decimal floating point moves.
2340 (movtf_internal): Likewise.
2341 (mov<mode>_internal, TDmode/TFmode): Likewise.
2342 (movtf_softfloat): Likewise.
2343 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
2345 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
2346 movdi_internal64, using wg constraint for move direct operations.
2347 (movdi_internal64): Likewise.
2349 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
2350 MODES_TIEABLE_P for selected modes. Print the numerical value of
2351 the various virtual registers. Use GPR/FPR first/last values,
2352 instead of hard coding the register numbers. Print which modes
2353 have reload functions registered.
2354 (rs6000_option_override_internal): If -mdebug=reg, trace the options
2355 settings before/after setting cpu, target and subtarget settings.
2356 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
2357 and for secondary reload failures in rs6000_secondary_reload_inner.
2358 (rs6000_secondary_reload_fail): Likewise.
2359 (rs6000_secondary_reload_inner): Likewise.
2361 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
2362 macros for first/last GPR and FPR registers.
2363 (LAST_GPR_REGNO): Likewise.
2364 (FIRST_FPR_REGNO): Likewise.
2365 (LAST_FPR_REGNO): Likewise.
2367 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
2368 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
2369 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
2370 (vcond<mode><mode>): Likewise.
2371 (vcondu<mode><mode>): Likewise.
2372 (vector_gtu<mode>): Likewise.
2373 (vector_gte<mode>): Likewise.
2374 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
2375 to prevent the compiler from converting DImode operations to TImode.
2376 (ior<mode>3): Likewise.
2377 (and<mode>3): Likewise.
2378 (one_cmpl<mode>2): Likewise.
2379 (nor<mode>3): Likewise.
2380 (andc<mode>3): Likewise.
2382 * config/rs6000/constraints.md (wt constraint): New constraint
2383 that returns VSX_REGS if TImode is allowed in VSX registers.
2385 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
2388 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
2389 similar to TImode, but it is restricted to being in the GPRs.
2391 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
2392 TImode to occupy a single VSX register.
2394 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
2395 -mvsx-timode for power7/power8.
2396 (power7 cpu): Likewise.
2397 (power8 cpu): Likewise.
2399 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
2400 sure that TFmode/TDmode take up two registers if they are ever
2401 allowed in the upper VSX registers.
2402 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
2404 (rs6000_init_hard_regno_mode_ok): Likewise.
2405 (rs6000_debug_reg_global): Add debugging for PTImode and wt
2406 constraint. Print if LRA is turned on.
2407 (rs6000_option_override_internal): Give an error if -mvsx-timode
2408 and VSX is not enabled.
2409 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
2410 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
2411 to reg+offset addressing. Use PTImode when checking offset
2412 addresses for validity.
2413 (reg_offset_addressing_ok_p): Likewise.
2414 (rs6000_legitimate_offset_address_p): Likewise.
2415 (rs6000_legitimize_address): Likewise.
2416 (rs6000_legitimize_reload_address): Likewise.
2417 (rs6000_legitimate_address_p): Likewise.
2418 (rs6000_eliminate_indexed_memrefs): Likewise.
2419 (rs6000_emit_move): Likewise.
2420 (rs6000_secondary_reload): Likewise.
2421 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
2422 reloads to fpr registers to continue to use reg+offset addressing,
2423 but 64-bit reloads to altivec registers need reg+reg addressing.
2424 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
2425 it. Treat LO_SUM like a PLUS operation.
2426 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
2427 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
2428 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
2429 registers to share a register with a smaller sized type, since VSX
2430 puts scalars in the upper 64-bits.
2431 (print_operand): Add support for PTImode.
2432 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
2433 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
2434 registers, but don't have arithmetic support.
2435 (rs6000_memory_move_cost): Add test for VSX.
2436 (rs6000_opt_masks): Add -mvsx-timode.
2438 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
2441 (VSr): Use wt constraint for TImode.
2442 (VSv): Drop TImode support.
2443 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
2444 (vsx_movti_64bit): Likewise.
2445 (vsx_movti_32bit): Likewise.
2446 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
2447 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
2448 one '?' on the appropriate output constraint. Do not allow TImode
2449 logical operations on 32-bit systems.
2450 (vsx_ior<mode>3): Likewise.
2451 (vsx_xor<mode>3): Likewise.
2452 (vsx_one_cmpl<mode>2): Likewise.
2453 (vsx_nor<mode>3): Likewise.
2454 (vsx_andc<mode>3): Likewise.
2455 (vsx_concat_<mode>): Likewise.
2456 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
2458 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
2459 OPTION_MASK_VSX_TIMODE.
2460 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
2461 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
2463 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
2464 (TI2 iterator): New iterator for TImode, PTImode.
2465 (wd mode attribute): Add values for vector types.
2466 (movti_string): Replace TI move operations with operations for TImode
2467 and PTImode. Add support for TImode being allowed in VSX registers.
2468 (mov<mode>_string, TImode/PTImode): Likewise.
2469 (movti_ppc64): Likewise.
2470 (mov<mode>_ppc64, TImode/PTImode): Likewise.
2471 (TI mode splitters): Likewise.
2473 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
2476 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
2478 PR tree-optimization/56355
2479 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
2480 Also handle integers with undefined overflow.
2482 2013-03-20 Catherine Moore <clm@codesourcery.com>
2483 Maciej W. Rozycki <macro@codesourcery.com>
2484 Tom de Vries <tom@codesourcery.com>
2485 Nathan Sidwell <nathan@codesourcery.com>
2486 Iain Sandoe <iain@codesourcery.com>
2487 Nathan Froyd <froydnj@codesourcery.com>
2488 Chao-ying Fu <fu@mips.com>
2490 * doc/extend.texi: (micromips, nomicromips, nocompression):
2491 Document new function attributes.
2492 * doc/invoke.texi (minterlink-compressed, mmicromips,
2493 m14k, m14ke, m14kec): Document new options.
2494 (minterlink-mips16): Update documentation.
2495 * doc/md.texi (ZC, ZD): Document new constraints.
2496 * configure.ac (gcc_cv_as_micromips): Check if linker
2497 supports the .set micromips directive.
2498 * configure: Regenerate.
2499 * config.in: Regenerate.
2500 * config/mips/mips-tables.opt: Regenerate.
2501 * config/mips/micromips.md: New file.
2502 * constraints.md (ZC, ZD): New constraints.
2503 * config/mips/predicates.md (movep_src_register): New predicate.
2504 (movep_src_operand): New predicate.
2505 (non_volatile_mem_operand): New predicate.
2506 * config/mips/mips.md (multimem): New type.
2507 (length): Differentiate between 17-bit and 18-bit branch offsets.
2508 (MOVEP1, MOVEP2): New mode iterator.
2509 (mov_<load>l): Use ZC constraint.
2510 (mov_<load>r): Likewise.
2511 (mov_<store>l): Likewise.
2512 (mov_<store>r): Likewise.
2513 (*branch_equality<mode>_inverted): Add microMIPS support.
2514 (*branch_equality<mode>): Likewise.
2515 (*jump_absolute): Likewise.
2516 (indirect_jump_<mode>): Likewise.
2517 (tablejump_<mode>): Likewise.
2518 (<optab>_internal): Likewise.
2519 (sibcall_internal): Likewise.
2520 (sibcall_value_internal): Likewise.
2521 (prefetch): Use constraint ZD.
2522 * config/mips/mips.opt (minterlink-compressed): New option.
2523 (minterlink-mips16): Now an alias for minterlink-compressed.
2524 (mmicromips): New option.
2525 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2526 (compare_and_swap_12): Likewise.
2527 (sync_add<mode>): Likewise.
2528 (sync_<optab>_12): Likewise.
2529 (sync_old_<optab>_12): Likewise.
2530 (sync_new_<optab>_12): Likewise.
2531 (sync_nand_12): Likewise.
2532 (sync_old_nand_12): Likewise.
2533 (sync_new_nand_12): Likewise.
2534 (sync_sub<mode>): Likewise.
2535 (sync_old_add<mode>): Likewise.
2536 (sync_old_sub<mode>): Likewise.
2537 (sync_new_add<mode>): Likewise.
2538 (sync_new_sub<mode>): Likewise.
2539 (sync_<optab><mode>): Likewise.
2540 (sync_old_<optab><mode>): Likewise.
2541 (sync_new_<optab><mode>): Likewise.
2542 (sync_nand<mode>): Likewise.
2543 (sync_old_nand<mode>): Likewise.
2544 (sync_new_nand<mode>): Likewise.
2545 (sync_lock_test_and_set<mode>): Likewise.
2546 (test_and_set_12): Likewise.
2547 (atomic_compare_and_swap<mode>): Likewise.
2548 (atomic_exchange<mode>_llsc): Likewise.
2549 (atomic_fetch_add<mode>_llsc): Likewise.
2550 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2551 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2552 (umips_save_restore_pattern_p): Likewise.
2553 (umips_load_store_pair_p): Likewise.
2554 (umips_output_load_store_pair): Likewise.
2555 (umips_movep_target_p): Likewise.
2556 (umips_12bit_offset_address_p): Likewise.
2557 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2558 (mips_base_mips16): Rename this...
2559 (mips_base_compression_flags): ...to this. Update all uses.
2560 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2561 (mips_mips16_decl_p): Delete.
2562 (mips_nomips16_decl_p): Delete.
2563 (mips_get_compress_on_flags): New function.
2564 (mips_get_compress_off_flags): New function.
2565 (mips_get_compress_mode): New function.
2566 (mips_get_compress_on_name): New function.
2567 (mips_get_compress_off_name): New function.
2568 (mips_insert_attributes): Support multiple compression types.
2569 (mips_merge_decl_attributes): Likewise.
2570 (umips_12bit_offset_address_p): New function.
2571 (mips_start_function_definition): Emit .set micromips directive.
2572 (mips_call_may_need_jalx_p): New function.
2573 (mips_function_ok_for_sibcall): Add microMIPS support.
2574 (mips_print_operand_punctuation): Support short delay slots and
2576 (umips_swm_mask, umips_swm_encoding): New.
2577 (umips_build_save_restore): New function.
2578 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2579 (was_mips16_p): Remove.
2580 (old_compression_mode): New.
2581 (mips_set_compression_mode): New function.
2582 (mips_set_current_function): Add microMIPS support.
2583 (mips_option_override): Likewise.
2584 (umips_save_restore_pattern_p): New function.
2585 (umips_output_save_restore): New function.
2586 (umips_load_store_pair_p_1): New function.
2587 (umips_load_store_pair_p): New function.
2588 (umips_output_load_store_pair_1): New function.
2589 (umips_output_load_store_pair): New function.
2590 (umips_movep_target_p) New function.
2591 (mips_prepare_pch_save): Add microMIPS support.
2592 * config/mips/mips.h (TARGET_COMPRESSION): New.
2593 (TARGET_CPU_CPP_BUILTINS): Update macro
2594 to use new compression flags and to support microMIPS.
2595 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2596 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2597 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2598 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2599 (ASM_SPEC): Support mmicromips and mno-micromips.
2600 (M16STORE_REG_P): New macro.
2601 (MIPS_CALL): Support TARGET_MICROMIPS.
2602 (MICROMIPS_J): New macro.
2603 (mips_base_mips16): Rename this...
2604 (mips_base_compression_flags): ...to this.
2605 (UMIPS_12BIT_OFFSET_P): New macro.
2606 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2607 (MULTILIB_DIRNAMES): Likewise.
2608 2013-03-20 Richard Biener <rguenther@suse.de>
2610 PR tree-optimization/56661
2611 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
2612 the result does not have to be distinct.
2614 2013-03-20 Richard Biener <rguenther@suse.de>
2616 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
2619 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2620 Steven Bosscher <steven@gcc.gnu.org>
2622 PR rtl-optimization/56605
2623 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
2625 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
2628 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
2629 that require movd instead of movq.
2631 2013-03-20 Richard Biener <rguenther@suse.de>
2633 * tree-ssa-structalias.c (struct variable_info): Add pointer
2634 to the first field of an aggregate with sub-vars. Make
2635 this and the pointer to the next subfield its ID.
2636 (vi_next): New function.
2637 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
2638 storedanything_id, integer_id): Increment by one.
2639 (new_var_info, get_call_vi, lookup_call_clobber_vi,
2640 get_call_clobber_vi): Adjust.
2641 (solution_set_expand): Simplify and speedup.
2642 (solution_set_add): Inline into ...
2643 (set_union_with_increment): ... this. Adjust accordingly.
2644 (do_sd_constraint): Likewise.
2645 (do_ds_constraint): Likewise.
2646 (do_complex_constraint): Simplify.
2647 (build_pred_graph): Adjust.
2648 (solve_graph): Likewise. Simplify and speedup.
2649 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
2650 get_constraint_for_component_ref, get_constraint_for_1,
2651 first_vi_for_offset, first_or_preceding_vi_for_offset,
2652 create_function_info_for, create_variable_info_for_1,
2653 create_variable_info_for, intra_create_variable_infos): Adjust.
2654 (init_base_vars): Push NULL for ID zero.
2655 (compute_points_to_sets): Adjust.
2657 2013-03-20 Richard Biener <rguenther@suse.de>
2659 * cfgloop.c (verify_loop_structure): Streamline and avoid
2660 ICEing on corrupt loop tree.
2661 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
2664 2013-03-20 Richard Biener <rguenther@suse.de>
2666 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
2667 check whether an SSA update is needed.
2669 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
2671 * config/mips/constraints.md (T): Rename to...
2675 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
2676 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
2678 2013-03-19 Ian Bolton <ian.bolton@arm.com>
2680 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
2681 (*subsi3_carryin_uxtw): Likewise.
2683 2013-03-19 Ian Bolton <ian.bolton@arm.com>
2685 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
2686 (*rorsi3_insn_uxtw): Likewise.
2688 2013-03-19 Ian Bolton <ian.bolton@arm.com>
2690 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
2691 (*extrsi5_insn_uxtw): Likewise.
2693 2013-03-19 Richard Biener <rguenther@suse.de>
2695 PR tree-optimization/56273
2696 * passes.c (init_optimization_passes): Move second VRP after DOM.
2698 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
2700 * config/i386/i386.md (*movti_internal): Merge from
2701 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
2702 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
2703 nox64 isa attributes.
2705 2013-03-18 Richard Biener <rguenther@suse.de>
2707 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
2709 (merge_node_constraints): Likewise.
2710 (build_succ_graph): Likewise.
2711 (valid_graph_edge): Inline into single caller.
2712 (unify_nodes): Likewise. Use bitmap_set_bit return value
2714 (scc_visit): Fix formatting and variable use.
2715 (do_sd_constraint): Use gcc_checking_assert.
2716 (do_ds_constraint): Likewise.
2717 (do_complex_constraint): Likewise.
2718 (condense_visit): Likewise. Cleanup.
2719 (dump_pred_graph): New function.
2720 (perform_var_substitution): Dump the pred-graph before
2721 variable substitution.
2722 (find_equivalent_node): Use gcc_checking_assert.
2723 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
2725 2013-03-18 Richard Biener <rguenther@suse.de>
2727 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2728 Remove cond_expr_stmt_list argument and do not gimplify the
2730 (vect_loop_versioning): Adjust.
2731 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2732 Cleanup to use less temporaries.
2733 (vect_create_data_ref_ptr): Cleanup.
2735 2013-03-18 Jakub Jelinek <jakub@redhat.com>
2737 PR tree-optimization/56635
2738 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
2739 require types_compatible_p types.
2741 2013-03-18 Nick Clifton <nickc@redhat.com>
2743 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
2746 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
2747 Add missing line to comment describing function.
2749 2013-03-18 Richard Biener <rguenther@suse.de>
2751 PR tree-optimization/56210
2752 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2753 Handle string / character search functions.
2754 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2756 2013-03-18 Richard Biener <rguenther@suse.de>
2759 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
2760 and implement properly.
2761 * gimple.h (gimple_cond_single_var_p): Remove.
2763 2013-03-18 Richard Biener <rguenther@suse.de>
2765 * tree-data-ref.h (find_data_references_in_loop): Declare.
2766 * tree-data-ref.c (get_references_in_stmt): Use a stack
2767 vector pre-allocated in the callers.
2768 (find_data_references_in_stmt): Adjust.
2769 (graphite_find_data_references_in_stmt): Likewise.
2770 (create_rdg_vertices): Likewise.
2771 (find_data_references_in_loop): Export.
2772 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
2773 Compute dependences here...
2774 (vect_analyze_data_refs): ...not here. When we encounter
2775 a non-vectorizable data reference in basic-block vectorization
2776 truncate the data reference vector. Do not bother to
2777 fixup data-dependence information for gather loads.
2778 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
2779 of data references, as reported.
2781 2013-03-18 Richard Biener <rguenther@suse.de>
2783 PR tree-optimization/3713
2784 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
2785 has_constants and expr.
2786 (stmt_has_constants): Properly valueize SSA names when deciding
2787 whether the stmt has constants.
2789 2013-03-18 Richard Biener <rguenther@suse.de>
2791 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
2792 whole function when there is nothing to do.
2793 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
2794 * tree-vectorizer.c (vectorize_loops): Update virtual and
2795 loop-closed SSA once.
2796 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
2798 2013-03-18 Richard Biener <rguenther@suse.de>
2801 * domwalk.c (bb_postorder): New global static.
2802 (cmp_bb_postorder): New function.
2803 (walk_dominator_tree): Replace scheme imposing an order for
2804 visiting dominator sons by one sorting them at the time they
2805 are pushed on the stack.
2807 2013-03-18 Richard Biener <rguenther@suse.de>
2809 PR tree-optimization/39326
2810 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
2811 (struct mem_ref): Replace mem member with ao_ref typed member.
2812 (MEM_ANALYZABLE): Adjust.
2813 (memref_eq): Likewise.
2814 (mem_ref_alloc): Likewise.
2815 (gather_mem_refs_stmt): Likewise.
2816 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
2817 (execute_sm_if_changed_flag_set): Adjust.
2818 (execute_sm): Likewise.
2819 (ref_always_accessed_p): Likewise.
2820 (refs_independent_p): Likewise.
2821 (can_sm_ref_p): Likewise.
2823 2013-03-18 Jakub Jelinek <jakub@redhat.com>
2826 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
2827 return 1 even for !unsignedp.
2829 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
2831 * config/i386/i386.md (isa): Add x64 and nox64.
2832 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
2833 (*pushtf): Enable *roF alternative for x64 isa only.
2834 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
2835 mode attribute of integer alternatives to DImode for TARGET_64BIT.
2836 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
2837 (*movtf_internal): Merge from *movtf_internal_rex64 and
2838 *movtf_internal_sse. Use x64 and nox64 isa attributes.
2839 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
2840 nox64 isa attributes.
2841 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
2842 nox64 isa attributes.
2843 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
2845 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
2847 * config/alpha/alpha.c (TARGET_LRA_P): New define.
2849 2013-03-17 Jakub Jelinek <jakub@redhat.com>
2852 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
2853 class names. Remove trailing comma after "ALL_REGS".
2855 2013-03-16 Jan Hubicka <jh@suse.cz>
2857 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
2858 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
2859 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
2860 of cgraph_get_create_node.
2861 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2863 2013-03-16 Jason Merrill <jason@redhat.com>
2866 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
2867 with DW_AT_default_value.
2869 2013-03-16 Jakub Jelinek <jakub@redhat.com>
2871 * BASE-VER: Set to 4.9.0.
2873 2013-03-14 Andi Kleen <ak@linux.intel.com>
2876 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
2877 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
2878 Document _x* TSX intrinsics.
2880 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
2881 David Holsgrove <david.holsgrove@xilinx.com>
2883 * configure.ac: Add MicroBlaze TLS support detection.
2884 * configure: Regenerate.
2885 * config/microblaze/microblaze-protos.h
2886 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
2887 symbol_mentioned_p, label_mentioned_p): Add prototypes.
2888 * config/microblaze/microblaze.c (microblaze_address_type): Add
2889 ADDRESS_TLS and tls_reloc address types.
2890 (microblaze_address_info): Add tls_reloc.
2891 (TARGET_HAVE_TLS): Define.
2892 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
2893 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
2894 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
2895 load_tls_operand, microblaze_call_tls_get_addr,
2896 microblaze_legitimize_tls_address): New functions.
2897 (microblaze_classify_unspec): Handle UNSPEC_TLS.
2898 (get_base_reg): Use microblaze_tls_symbol_p.
2899 (microblaze_classify_address): Handle TLS.
2900 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
2901 label_mentioned_p and microblaze_tls_referenced_p.
2902 (microblaze_legitimize_address): Handle TLS.
2903 (microblaze_address_insns): Handle ADDRESS_TLS.
2904 (pic_address_needs_scratch): Handle TLS.
2905 (print_operand_address): Handle TLS.
2906 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
2907 (microblaze_expand_move): Handle TLS.
2908 (microblaze_legitimate_constant_p): Check
2909 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
2910 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2911 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
2912 (PIC_OFFSET_TABLE_REGNUM): Set.
2913 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
2914 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
2915 (addsi3, movsi_internal2, movdf_internal): Update constraints
2916 * config/microblaze/predicates.md (arith_plus_operand): Define
2917 (move_operand): Redefine as move_src_operand,
2918 check microblaze_tls_referenced_p.
2920 2013-03-14 Ian Bolton <ian.bolton@arm.com>
2922 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
2923 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
2925 2013-03-14 Ian Bolton <ian.bolton@arm.com>
2927 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
2930 2013-03-14 Jakub Jelinek <jakub@redhat.com>
2932 PR tree-optimization/53265
2933 * common.opt (Waggressive-loop-optimizations): New option.
2934 * tree-ssa-loop-niter.c: Include tree-pass.h.
2935 (do_warn_aggressive_loop_optimizations): New function.
2936 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
2937 if number_of_latch_executions returned constant.
2938 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
2939 early. If number_of_latch_executions returned constant, set
2940 nb_iterations_upper_bound back to it.
2941 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
2943 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
2944 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
2946 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
2947 (MULTILIB_OSDIRNAMES): Set.
2948 * genmultilib: If defaultosdirname doesn't start with :: , set
2949 defaultosdirname2 instead, clear it and emit two . multilib_raw
2950 entries instead of just one.
2952 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
2954 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2955 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
2956 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2957 (SUBTARGET_OVERRIDE_OPTIONS): New.
2959 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
2962 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
2963 (musermode): Convert to Var(TARGET_USERMODE).
2964 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
2965 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
2966 * config/sh/sh.c (sh_option_override): Use
2967 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
2968 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
2970 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
2972 (udivsi3_i4_single, divsi3_i4_single): Use
2973 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
2975 2013-03-13 Dave Korn <dave.korn.cygwin@....>
2977 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
2980 2013-03-13 Richard Biener <rguenther@suse.de>
2982 PR tree-optimization/56608
2983 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
2984 calls when vectorizing basic-blocks.
2986 2013-03-13 Jakub Jelinek <jakub@redhat.com>
2989 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
2992 2013-03-12 Jakub Jelinek <jakub@redhat.com>
2994 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
2996 2013-03-11 Jan Hubicka <jh@suse.cz>
2999 * lto-streamer-out.c (output_symbol_p): Skip references from
3000 constructors of external variables.
3002 2013-03-11 Jan Hubicka <jh@suse.cz>
3005 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3007 * emit-rtl.c (verify_rtx_sharing): Likewise.
3008 (copy_insn_1): Likewise.
3009 * rtl.c (copy_rtx): Likewise.
3011 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
3014 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3015 output_operand_lossage message.
3017 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
3020 * arm.c (shift_op): Validate RTL pattern on the fly.
3021 (arm_print_operand, case 'S'): Don't use shift_operator to validate
3024 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3027 * config/pa/pa.md (call_value): Check for calls to powf and direct to
3028 new call patterns that clobber %fr12.
3029 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3030 split and postreload patterns.
3031 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3032 registers %fr12 and %fr12R as call used.
3034 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
3036 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3037 (canon_address, record_store, replace_read, check_mem_read_rtx,
3038 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3039 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3040 rest_of_handle_dse): Likewise.
3042 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3045 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3047 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3048 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3049 (save_optabs_if_changed): Replace with...
3050 (init_tree_optimization_optabs): ...this.
3051 * optabs.c (save_optabs_if_changed): Rename to...
3052 (init_tree_optimization_optabs): ...this. Take the optimization node
3053 as argument. Do nothing if the base optabs are already correct.
3054 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3055 to recompute optabs.
3056 * function.h (function): Remove optabs field.
3057 * function.c (invoke_set_current_function_hook): Call
3058 init_tree_optimization_optabs. Use the result to initialize
3061 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
3063 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3064 if GTMA_HAS_NO_INSTRUMENTATION.
3065 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3066 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3067 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3068 * gimple-pretty-print.c (dump_gimple_transaction): Handle
3069 GTMA_HAS_NO_INSTRUMENTATION.
3071 2013-03-08 Jakub Jelinek <jakub@redhat.com>
3073 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3076 2013-03-08 Marek Polacek <polacek@redhat.com>
3077 Jakub Jelinek <jakub@redhat.com>
3079 PR tree-optimization/56478
3080 * predict.c (is_comparison_with_loop_invariant_p): Change the
3081 type of loop_step to tree.
3082 (predict_loops): Adjust.
3083 (predict_iv_comparison): Perform the computations on double_ints.
3085 2013-03-08 Richard Biener <rguenther@suse.de>
3087 PR tree-optimization/56570
3088 * tree-cfg.c (verify_expr_location_1): Verify locations for
3090 * tree-sra.c (create_access_replacement): Strip locations
3091 from DECL_DEBUG_EXPRs.
3093 2013-03-08 Richard Biener <rguenther@suse.de>
3095 * tree-inline.c (expand_call_inline): Do not associate
3096 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3097 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3099 2013-03-08 Richard Biener <rguenther@suse.de>
3101 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3102 or block changes with -Og. Fix for location / block encoding
3103 changes and PHI arguments with locations.
3105 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
3107 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
3109 (struct output_info): Likewise.
3110 (register_overhead): Remove bad gcc_assert.
3111 (bitmap_find_bit): If there is only a single bitmap element, do not
3112 count a miss as a search.
3113 (print_statistics): Update for counter type changes.
3114 (dump_bitmap_statistics): Likewise. Print headers such that they
3115 are properly lined up with the printed counters.
3117 2013-03-07 Jakub Jelinek <jakub@redhat.com>
3119 PR tree-optimization/56559
3120 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
3121 check that it has only a single use.
3123 2013-03-07 Richard Biener <rguenther@suse.de>
3125 * doc/invoke.texi (fwhole-program): Discourage use in combination
3128 2013-03-06 Jakub Jelinek <jakub@redhat.com>
3130 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
3132 PR tree-optimization/56539
3133 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
3134 instead of GSI_CONTINUE_LINKING as last argument to
3135 force_gimple_operand_gsi. Adjust function comment.
3137 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
3141 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
3142 promoted mode, convert the result back to the original mode.
3144 2013-03-06 Richard Biener <rguenther@suse.de>
3147 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
3148 (insert_updated_phi_nodes_compare_uids): New function.
3149 (update_ssa): Sort symbols_to_rename after UID before
3150 traversing it to insert PHI nodes.
3152 2013-03-06 Richard Biener <rguenther@suse.de>
3155 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3156 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
3159 2013-02-13 Richard Biener <rguenther@suse.de>
3162 * varasm.c (output_constant_def_1): Get the decl representing
3163 the constant as argument.
3164 (output_constant_def): Wrap output_constant_def_1.
3165 (make_decl_rtl): Use output_constant_def_1 with the decl
3166 representing the constant.
3167 (build_constant_desc): Optionally re-use a decl already
3168 representing the constant.
3169 (tree_output_constant_def): Adjust.
3171 2013-03-06 Joey Ye <joey.ye@arm.com>
3174 * gcc.c (convert_white_space): New function.
3175 (main): Handles white space in function name.
3177 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
3180 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
3181 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
3182 to SH_DIV_CALL_TABLE for TARGET_SH2.
3183 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
3185 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
3188 2013-03-05 Sterling Augustine <saugustine@google.com>
3189 Cary Coutant <ccoutant@google.com>
3192 * dwarf2out.c (resolve_addr): Don't call
3193 remove_loc_list_addr_table_entries a second time for the same
3196 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3199 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
3200 (avoid_complex_debug_insns): New function.
3201 (expand_debug_locations): Call it.
3203 PR rtl-optimization/56484
3204 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
3205 lifetimes of hard registers on small register class machines.
3207 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3209 * config/microblaze/microblaze-protos.h: Rename
3210 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
3211 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
3213 (microblaze_fast_interrupt_function_p): New function.
3214 (microblaze_is_interrupt_handler): Rename to
3215 microblaze_is_interrupt_variant and add fast_interrupt check.
3216 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
3217 (save_restore_insns): Likewise.
3218 (compute_frame_size): Likewise.
3219 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
3220 (microblaze_globalize_label): Likewise.
3221 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
3222 * config/microblaze/microblaze.md: Use wrapper
3223 microblaze_is_interrupt_variant.
3225 2013-03-05 Kai Tietz <ktietz@redhat.com>
3227 * sdbout.c (sdbout_one_type): Switch to current function's section
3228 supporting cold/hot.
3230 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3232 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
3235 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3238 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
3239 if VALGRIND_GET_VBITS is defined, temporarily make object
3240 memory all defined, and restore previous valgrind addressability
3241 and definability afterwards. Free this_object at the end.
3244 * lra.c (lra): Call lra_clear_live_ranges if live_p,
3245 right before calling lra_create_live_ranges, also call it
3246 when clearing live_p. Only call lra_clear_live_ranges
3247 at the end if live_p.
3250 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
3252 2013-03-05 Richard Biener <rguenther@suse.de>
3254 PR tree-optimization/56521
3255 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
3258 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
3261 * except.h (remove_unreachable_eh_regions): New prototype.
3262 * except.c (remove_eh_handler_splicer): New function, split out
3263 of remove_eh_handler.
3264 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
3265 warning about running it on many EH regions one at a time.
3266 (remove_unreachable_eh_regions_worker): New function, walk the
3267 EH tree in depth-first order and remove non-marked regions.
3268 (remove_unreachable_eh_regions): New function.
3269 * tree-eh.c (mark_reachable_handlers): New function, split out
3270 from remove_unreachable_handlers.
3271 (remove_unreachable_handlers): Use mark_reachable_handlers and
3272 remove_unreachable_eh_regions.
3273 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
3274 and remove_unreachable_eh_regions.
3276 2013-03-05 Richard Biener <rguenther@suse.de>
3279 * loop-init.c (fix_loop_structure): Remove loops in two stages,
3280 not freeing them until the end.
3282 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3284 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
3286 2013-03-05 Richard Biener <rguenther@suse.de>
3288 PR tree-optimization/56270
3289 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
3290 of loads after scheduling an SLP instance.
3292 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3294 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
3296 (check_gcc_parallelize): Run guality.exp as a separate job from
3297 vect.exp with unsorted.exp and $(dg_target_exps) separately from
3298 struct-layout-1.exp with stackalign.exp.
3300 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
3303 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
3304 load_index sbitmap even if some bit in it isn't set.
3307 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
3308 (discover_iteration_bound_by_body_walk): Change queues to
3309 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
3310 spelling in comment. Call safe_push on queues[bound_index] directly.
3311 Release queues[queue_index] in every iteration unconditionally.
3312 Release bounds vector.
3315 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
3316 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
3317 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
3320 2013-03-05 Richard Biener <rguenther@suse.de>
3323 * tree-inline.c (remap_blocks_to_null): New function.
3324 (expand_call_inline): When expanding a call stmt without
3325 an associated block inline remap all callee blocks to NULL.
3327 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3329 PR rtl-optimization/56494
3330 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
3331 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
3332 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
3335 * sel-sched-ir.c (free_sched_pools): Release
3336 succs_info_pool.stack[succs_info_pool.max_top] vectors too
3337 if succs_info_pool.max_top isn't -1.
3340 * opts.c (opts_obstack, opts_concat): Moved to...
3341 * opts-common.c (opts_obstack, opts_concat): ... here.
3343 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3346 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
3348 2013-03-04 Martin Jambor <mjambor@suse.cz>
3350 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
3351 all appropriate places.
3353 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
3355 PR tree-optimization/56424
3356 * ipa-split.c (split_function): Do not set the RSO flag if result is
3357 not by reference and its type is a register type.
3359 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
3361 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
3362 (microblaze_legitimate_pic_operand): Likewise
3363 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
3364 new function microblaze_legitimate_pic_operand
3365 * config/microblaze/microblaze-protos.h
3366 (microblaze_legitimate_pic_operand): Declare.
3368 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3370 * config/microblaze/predicates.md (call_insn_simple_operand):
3371 New predicate for supported rtx code types.
3372 * config/microblaze/microblaze.md (call_internal1): Use
3373 call_insn_simple_operand predicate.
3375 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3378 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
3379 partitions.ordered_remove.
3382 * tree-vect-stmts.c (vectorizable_conversion): Don't call
3383 vec_oprnds0.create (1) for modifier == NONE.
3386 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
3387 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
3388 vec_oprnds1 right before pushing anything to it for
3392 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
3393 set nbbs to 0 instead of having separate code path.
3394 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
3395 instead of false as last argument if returning NULL.
3397 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
3399 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
3400 the attribute is now called "target" instead of "option".
3401 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
3402 * doc/tm.texi.in (Target Attributes): Likewise document the correct
3403 attribute/pragma name for TARGET_OPTION_VALID_P and
3404 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
3405 * doc/tm.texi: Regenerated.
3407 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
3409 * config/microblaze/microblaze.c:
3410 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
3411 * config/microblaze/microblaze.h: Add -mxl-reorder to
3413 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
3414 instructions emitted if TARGET_REORDER.
3415 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
3416 or 0 for -m/-mno case, but initialises as 2 to detect default use case
3419 2013-03-01 Xinliang David Li <davidxl@google.com>
3421 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
3424 2013-03-01 Jakub Jelinek <jakub@redhat.com>
3427 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
3428 vector even when returning true. Fix up function comment formatting.
3431 * ira-build.c (ira_loop_nodes_count): New variable.
3432 (create_loop_tree_nodes): Initialize it.
3433 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
3436 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
3437 method on dr_chain and result_chain.
3438 * tree-vect-stmts.c (vectorizable_store): Only call
3439 result_chain.create if j == 0.
3442 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
3443 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
3444 before overwriting it.
3446 2013-03-01 Tobias Burnus <burnus@net-b.de>
3448 * doc/extended.texi (C Extensions): Change order in @menu
3450 (Other MIPS Built-in Functions): Move last MIPS entry before
3451 "picoChip Built-in Functions".
3452 (SH Built-in Functions): Move after RX Built-in Functions.
3453 * doc/gcc.texi (Introduction): Change order in @menu
3455 * doc/md.texi (Constraints): Ditto.
3456 * gty.texi (Type Information): Ditto.
3457 (User-provided marking routines for template types): Make
3459 * doc/invoke.texi (AArch64 Options): Move before
3460 "Adapteva Epiphany Options".
3462 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3463 Jakub Jelinek <jakub@redhat.com>
3466 * asan.c (gate_asan): Lookup no_sanitize_address instead of
3467 no_address_safety_analysis attribute.
3468 * doc/extend.texi (no_address_safety_attribute): Rename to
3469 no_sanitize_address attribute, mention no_address_safety_analysis
3470 attribute as deprecated alias.
3472 2013-02-28 Jakub Jelinek <jakub@redhat.com>
3475 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
3476 type to vec<vec<tree> > *.
3477 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
3478 to be vec<tree> instead of vec<tree> *, set vec_defs
3479 to vNULL and call vec_defs.create (number_of_vects), adjust other
3481 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
3482 vectorizable_condition): Adjust vect_get_slp_defs callers.
3484 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3486 * config/aarch64/aarch64.c
3487 (aarch64_float_const_representable): Remove unused variable.
3489 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3491 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
3493 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3495 * config/aarch64/aarch64-builtins.c
3496 (aarch64_init_simd_builtins): Make static.
3498 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3500 * config/aarch64/aarch64.c
3501 (aarch64_simd_make_constant): Make static.
3503 2013-02-28 Martin Jambor <mjambor@suse.cz>
3505 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
3506 with no initialization to the RHS of debug statements.
3508 2013-02-28 Martin Jambor <mjambor@suse.cz>
3510 PR tree-optimization/56294
3511 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
3513 (get_access_replacement): Do not call create_access_replacement.
3514 Assert a replacement exists.
3515 (get_repl_default_def_ssa_name): Create the replacement declaration
3518 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3520 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
3523 2013-02-28 Marek Polacek <polacek@redhat.com>
3525 PR rtl-optimization/56466
3526 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
3527 if we're changing a loop.
3528 (peel_loops_completely): Likewise.
3530 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
3533 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
3535 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3538 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
3539 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
3540 INTX_FTYPE_FX, FX_FTYPE_INTX.
3541 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
3543 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3545 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
3546 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
3547 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
3548 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
3549 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
3550 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
3551 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
3552 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
3553 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
3554 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
3555 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
3556 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
3557 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
3558 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
3559 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
3560 (avrxmega6): Increase max flash segments from 5 to 6.
3561 * config/avr/t-multilib: Regenerate.
3562 * config/avr/avr-tables.opt: Regenerate.
3563 * doc/avr-mmcu.texi: Regenerate.
3565 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3567 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
3568 (avr_device_to_arch): Rename to avr_device_to_ld.
3569 (avr_device_to_as): New prototype.
3570 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
3571 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
3572 * config/avr/driver-avr.c (avr_device_to_as): New.
3573 (avr_device_to_arch): Rename to avr_device_to_ld.
3575 2013-02-27 Jakub Jelinek <jakub@redhat.com>
3578 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
3579 method on dr_chain and result_chain.
3582 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
3583 pointer_set_destroy on not_executed_last_iteration.
3586 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
3589 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
3590 FOR_EACH_DEFINED_FUNCTION when freeing state.
3593 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
3595 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
3599 * ipa-cp.c (decide_whether_version_node): Call vec_free on
3600 known_aggs[i].items and release known_aggs vector.
3603 * ipa-reference.c (propagate): Free node_info even for alias nodes.
3605 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3607 * config/microblaze/microblaze.c (microblaze_emit_compare):
3608 Use xor for EQ/NE comparisions.
3609 * config/microblaze/microblaze.md (cstoresf4): Add constraints
3610 (cbranchsf4): Adjust operator to comparison_operator.
3612 2013-02-27 Jakub Jelinek <jakub@redhat.com>
3615 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
3617 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
3618 vec_safe_push, always update *slot.
3619 (redirect_edge_var_map_clear): Use vec_free.
3620 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
3621 (free_var_map_entry): Use vec_free.
3622 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
3623 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
3625 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
3628 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
3629 when the may_trap_p bit of the exprs being merged differs.
3630 Reorder tests for speculativeness in the logical and operator.
3632 2013-02-27 Jakub Jelinek <jakub@redhat.com>
3634 * incpath.c (add_standard_paths): Use reconcat instead of concat
3635 where appropriate and avoid leaking memory.
3637 * opts.h: Include obstack.h.
3638 (opts_concat): New prototype.
3639 (opts_obstack): New declaration.
3640 * opts.c (opts_concat): New function.
3641 (opts_obstack): New variable.
3642 (init_options_struct): Call gcc_init_obstack on opts_obstack.
3643 (finish_options): Use opts_concat instead of concat
3644 and XOBNEWVEC instead of XNEWVEC.
3645 * opts-common.c (generate_canonical_option, decode_cmdline_option,
3646 generate_option): Likewise.
3647 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
3648 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
3651 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
3652 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
3654 2013-02-26 Jakub Jelinek <jakub@redhat.com>
3657 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
3659 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
3661 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
3662 (arm_block_move_unaligned_straight): Likewise.
3663 (arm_adjust_block_mem): Likewise.
3665 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
3668 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
3669 temp, cond and label.
3670 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
3673 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
3674 * config/c6x/c6x.h (dbx_register_map): Update declaration.
3677 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
3678 of prologue/epilogue functions.
3681 * config/tilegx/tilegx.c (tilegx_expand_prologue):
3682 Remove unused variable cfa_offset.
3683 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
3686 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
3687 type promotion to unsigned.
3690 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
3691 for HOST_WIDE_INT of 32 bit / same size as int.
3692 (arm_block_move_unaligned_straight): Likewise.
3693 (arm_adjust_block_mem): Likewise.
3696 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
3699 2013-02-26 Marek Polacek <polacek@redhat.com>
3701 PR tree-optimization/56426
3702 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
3704 2013-02-26 Richard Biener <rguenther@suse.de>
3707 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
3708 unused variable loops.
3710 2013-02-26 Jakub Jelinek <jakub@redhat.com>
3712 PR tree-optimization/56448
3713 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
3714 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
3715 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
3716 later operands of the references, or even first operand for
3717 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
3719 PR tree-optimization/56443
3720 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
3721 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
3722 to type_for_mode langhook.
3724 2013-02-25 Matt Turner <mattst88@gmail.com>
3726 * doc/invoke.texi: Document r4700.
3728 2013-02-25 Richard Biener <rguenther@suse.de>
3730 PR tree-optimization/56175
3731 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
3733 (simplify_bitwise_binary): ... here. Also guard the conversion
3734 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
3736 2013-02-25 Catherine Moore <clm@codesourcery.com>
3739 2013-02-24 Catherine Moore <clm@codesourcery.com>
3740 Maciej W. Rozycki <macro@codesourcery.com>
3741 Tom de Vries <tom@codesourcery.com>
3742 Nathan Sidwell <nathan@codesourcery.com>
3743 Iain Sandoe <iain@codesourcery.com>
3744 Nathan Froyd <froydnj@codesourcery.com>
3745 Chao-ying Fu <fu@mips.com>
3747 * doc/extend.texi: (micromips, nomicromips, nocompression):
3748 Document new function attributes.
3749 * doc/invoke.texi (minterlink-compressed, mmicromips,
3750 m14k, m14ke, m14kec): Document new options.
3751 (minterlink-mips16): Update documentation.
3752 * doc/md.texi (ZC, ZD): Document new constraints.
3753 * configure.ac (gcc_cv_as_micromips): Check if linker
3754 supports the .set micromips directive.
3755 * configure: Regenerate.
3756 * config.in: Regenerate.
3757 * config/mips/mips-tables.opt: Regenerate.
3758 * config/mips/micromips.md: New file.
3759 * constraints.md (ZC, AD): New constraints.
3760 * config/mips/predicates.md (movep_src_register): New predicate.
3761 (movep_src_operand): New predicate.
3762 (non_volatile_mem_operand): New predicate.
3763 * config/mips/mips.md (multimem): New type.
3764 (length): Differentiate between 17-bit and 18-bit branch offsets.
3765 (MOVEP1, MOVEP2): New mode iterator.
3766 (mov_<load>l): Use ZC constraint.
3767 (mov_<load>r): Likewise.
3768 (mov_<store>l): Likewise.
3769 (mov_<store>r): Likewise.
3770 (*branch_equality<mode>_inverted): Add microMIPS support.
3771 (*branch_equality<mode>): Likewise.
3772 (*jump_absolute): Likewise.
3773 (indirect_jump_<mode>): Likewise.
3774 (tablejump_<mode>): Likewise.
3775 (<optab>_internal): Likewise.
3776 (sibcall_internal): Likewise.
3777 (sibcall_value_internal): Likewise.
3778 (prefetch): Use constraint ZD.
3779 * config/mips/mips.opt (minterlink-compressed): New option.
3780 (minterlink-mips16): Now an alias for minterlink-compressed.
3781 (mmicromips): New option.
3782 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3783 (compare_and_swap_12): Likewise.
3784 (sync_add<mode>): Likewise.
3785 (sync_<optab>_12): Likewise.
3786 (sync_old_<optab>_12): Likewise.
3787 (sync_new_<optab>_12): Likewise.
3788 (sync_nand_12): Likewise.
3789 (sync_old_nand_12): Likewise.
3790 (sync_new_nand_12): Likewise.
3791 (sync_sub<mode>): Likewise.
3792 (sync_old_add<mode>): Likewise.
3793 (sync_old_sub<mode>): Likewise.
3794 (sync_new_add<mode>): Likewise.
3795 (sync_new_sub<mode>): Likewise.
3796 (sync_<optab><mode>): Likewise.
3797 (sync_old_<optab><mode>): Likewise.
3798 (sync_new_<optab><mode>): Likewise.
3799 (sync_nand<mode>): Likewise.
3800 (sync_old_nand<mode>): Likewise.
3801 (sync_new_nand<mode>): Likewise.
3802 (sync_lock_test_and_set<mode>): Likewise.
3803 (test_and_set_12): Likewise.
3804 (atomic_compare_and_swap<mode>): Likewise.
3805 (atomic_exchange<mode>_llsc): Likewise.
3806 (atomic_fetch_add<mode>_llsc): Likewise.
3807 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3808 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3809 (umips_save_restore_pattern_p): Likewise.
3810 (umips_load_store_pair_p): Likewise.
3811 (umips_output_load_store_pair): Likewise.
3812 (umips_movep_target_p): Likewise.
3813 (umips_12bit_offset_address_p): Likewise.
3814 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3815 (mips_base_mips16): Rename this...
3816 (mips_base_compression_flags): ...to this. Update all uses.
3817 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3818 (mips_mips16_decl_p): Delete.
3819 (mips_nomips16_decl_p): Delete.
3820 (mips_get_compress_on_flags): New function.
3821 (mips_get_compress_off_flags): New function.
3822 (mips_get_compress_mode): New function.
3823 (mips_get_compress_on_name): New function.
3824 (mips_get_compress_off_name): New function.
3825 (mips_insert_attributes): Support multiple compression types.
3826 (mips_merge_decl_attributes): Likewise.
3827 (umips_12bit_offset_address_p): New function.
3828 (mips_start_function_definition): Emit .set micromips directive.
3829 (mips_call_may_need_jalx_p): New function.
3830 (mips_function_ok_for_sibcall): Add microMIPS support.
3831 (mips_print_operand_punctuation): Support short delay slots and
3833 (umips_swm_mask, umips_swm_encoding): New.
3834 (umips_build_save_restore): New function.
3835 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3836 (was_mips16_p): Remove.
3837 (old_compression_mode): New.
3838 (mips_set_compression_mode): New function.
3839 (mips_set_current_function): Add microMIPS support.
3840 (mips_option_override): Likewise.
3841 (umips_save_restore_pattern_p): New function.
3842 (umips_output_save_restore): New function.
3843 (umips_load_store_pair_p_1): New function.
3844 (umips_load_store_pair_p): New function.
3845 (umips_output_load_store_pair_1): New function.
3846 (umips_output_load_store_pair): New function.
3847 (umips_movep_target_p) New function.
3848 (mips_prepare_pch_save): Add microMIPS support.
3849 * config/mips/mips.h (TARGET_COMPRESSION): New.
3850 (TARGET_CPU_CPP_BUILTINS): Update macro
3851 to use new compression flags and to support microMIPS.
3852 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3853 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3854 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3855 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3856 (ASM_SPEC): Support mmicromips and mno-micromips.
3857 (M16STORE_REG_P): New macro.
3858 (MIPS_CALL): Support TARGET_MICROMIPS.
3859 (MICROMIPS_J): New macro.
3860 (mips_base_mips16): Rename this...
3861 (mips_base_compression_flags): ...to this.
3862 (UMIPS_12BIT_OFFSET_P): New macro.
3863 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3864 (MULTILIB_DIRNAMES): Likewise.
3866 2013-02-25 Tom de Vries <tom@codesourcery.com>
3868 PR rtl-optimization/56131
3869 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
3870 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
3871 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
3873 2013-02-25 Tobias Burnus <burnus@net-b.de>
3875 * doc/invoke.texi (-fsanitize=): Move from optimization
3876 to debugging options.
3878 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
3880 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
3882 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
3883 Alexander Monakov <amonakov@ispras.ru>
3886 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
3887 flush pending lists also on non-jumps. Adjust comment.
3889 2013-02-24 Catherine Moore <clm@codesourcery.com>
3890 Maciej W. Rozycki <macro@codesourcery.com>
3891 Tom de Vries <tom@codesourcery.com>
3892 Nathan Sidwell <nathan@codesourcery.com>
3893 Iain Sandoe <iain@codesourcery.com>
3894 Nathan Froyd <froydnj@codesourcery.com>
3895 Chao-ying Fu <fu@mips.com>
3897 * doc/extend.texi: (micromips, nomicromips, nocompression):
3898 Document new function attributes.
3899 * doc/invoke.texi (minterlink-compressed, mmicromips,
3900 m14k, m14ke, m14kec): Document new options.
3901 (minterlink-mips16): Update documentation.
3902 * doc/md.texi (ZC, ZD): Document new constraints.
3903 * configure.ac (gcc_cv_as_micromips): Check if linker
3904 supports the .set micromips directive.
3905 * configure: Regenerate.
3906 * config.in: Regenerate.
3907 * config/mips/mips-tables.opt: Regenerate.
3908 * config/mips/micromips.md: New file.
3909 * constraints.md (ZC, AD): New constraints.
3910 * config/mips/predicates.md (movep_src_register): New predicate.
3911 (movep_src_operand): New predicate.
3912 (non_volatile_mem_operand): New predicate.
3913 * config/mips/mips.md (multimem): New type.
3914 (length): Differentiate between 17-bit and 18-bit branch offsets.
3915 (MOVEP1, MOVEP2): New mode iterator.
3916 (mov_<load>l): Use ZC constraint.
3917 (mov_<load>r): Likewise.
3918 (mov_<store>l): Likewise.
3919 (mov_<store>r): Likewise.
3920 (*branch_equality<mode>_inverted): Add microMIPS support.
3921 (*branch_equality<mode>): Likewise.
3922 (*jump_absolute): Likewise.
3923 (indirect_jump_<mode>): Likewise.
3924 (tablejump_<mode>): Likewise.
3925 (<optab>_internal): Likewise.
3926 (sibcall_internal): Likewise.
3927 (sibcall_value_internal): Likewise.
3928 (prefetch): Use constraint ZD.
3929 * config/mips/mips.opt (minterlink-compressed): New option.
3930 (minterlink-mips16): Now an alias for minterlink-compressed.
3931 (mmicromips): New option.
3932 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3933 (compare_and_swap_12): Likewise.
3934 (sync_add<mode>): Likewise.
3935 (sync_<optab>_12): Likewise.
3936 (sync_old_<optab>_12): Likewise.
3937 (sync_new_<optab>_12): Likewise.
3938 (sync_nand_12): Likewise.
3939 (sync_old_nand_12): Likewise.
3940 (sync_new_nand_12): Likewise.
3941 (sync_sub<mode>): Likewise.
3942 (sync_old_add<mode>): Likewise.
3943 (sync_old_sub<mode>): Likewise.
3944 (sync_new_add<mode>): Likewise.
3945 (sync_new_sub<mode>): Likewise.
3946 (sync_<optab><mode>): Likewise.
3947 (sync_old_<optab><mode>): Likewise.
3948 (sync_new_<optab><mode>): Likewise.
3949 (sync_nand<mode>): Likewise.
3950 (sync_old_nand<mode>): Likewise.
3951 (sync_new_nand<mode>): Likewise.
3952 (sync_lock_test_and_set<mode>): Likewise.
3953 (test_and_set_12): Likewise.
3954 (atomic_compare_and_swap<mode>): Likewise.
3955 (atomic_exchange<mode>_llsc): Likewise.
3956 (atomic_fetch_add<mode>_llsc): Likewise.
3957 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3958 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3959 (umips_save_restore_pattern_p): Likewise.
3960 (umips_load_store_pair_p): Likewise.
3961 (umips_output_load_store_pair): Likewise.
3962 (umips_movep_target_p): Likewise.
3963 (umips_12bit_offset_address_p): Likewise.
3964 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3965 (mips_base_mips16): Rename this...
3966 (mips_base_compression_flags): ...to this. Update all uses.
3967 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3968 (mips_mips16_decl_p): Delete.
3969 (mips_nomips16_decl_p): Delete.
3970 (mips_get_compress_on_flags): New function.
3971 (mips_get_compress_off_flags): New function.
3972 (mips_get_compress_mode): New function.
3973 (mips_get_compress_on_name): New function.
3974 (mips_get_compress_off_name): New function.
3975 (mips_insert_attributes): Support multiple compression types.
3976 (mips_merge_decl_attributes): Likewise.
3977 (umips_12bit_offset_address_p): New function.
3978 (mips_start_function_definition): Emit .set micromips directive.
3979 (mips_call_may_need_jalx_p): New function.
3980 (mips_function_ok_for_sibcall): Add microMIPS support.
3981 (mips_print_operand_punctuation): Support short delay slots and
3983 (umips_swm_mask, umips_swm_encoding): New.
3984 (umips_build_save_restore): New function.
3985 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3986 (was_mips16_p): Remove.
3987 (old_compression_mode): New.
3988 (mips_set_compression_mode): New function.
3989 (mips_set_current_function): Add microMIPS support.
3990 (mips_option_override): Likewise.
3991 (umips_save_restore_pattern_p): New function.
3992 (umips_output_save_restore): New function.
3993 (umips_load_store_pair_p_1): New function.
3994 (umips_load_store_pair_p): New function.
3995 (umips_output_load_store_pair_1): New function.
3996 (umips_output_load_store_pair): New function.
3997 (umips_movep_target_p) New function.
3998 (mips_prepare_pch_save): Add microMIPS support.
3999 * config/mips/mips.h (TARGET_COMPRESSION): New.
4000 (TARGET_CPU_CPP_BUILTINS): Update macro
4001 to use new compression flags and to support microMIPS.
4002 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4003 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4004 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4005 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4006 (ASM_SPEC): Support mmicromips and mno-micromips.
4007 (M16STORE_REG_P): New macro.
4008 (MIPS_CALL): Support TARGET_MICROMIPS.
4009 (MICROMIPS_J): New macro.
4010 (mips_base_mips16): Rename this...
4011 (mips_base_compression_flags): ...to this.
4012 (UMIPS_12BIT_OFFSET_P): New macro.
4013 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4014 (MULTILIB_DIRNAMES): Likewise.
4016 2013-02-24 Jakub Jelinek <jakub@redhat.com>
4019 * target-globals.c (save_target_globals): For init_reg_sets and
4020 target_reinit remporarily set this_fn_optabs to this_target_optabs.
4022 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
4024 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4025 * config/aarch64/t-aarch64
4026 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4028 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
4031 * lra-constraints.c (process_alt_operands): Reload operand
4032 conflicting with earlier clobber only if no more other conflicting
4035 2013-02-22 Jakub Jelinek <jakub@redhat.com>
4038 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4039 if not linking a shared library.
4041 2013-02-22 Seth LaForge <sethml@google.com>
4043 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4045 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
4047 * config/arm/arm.md (split for extendsidi): Update condition.
4048 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4049 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4050 (qhs_zextenddi_cstr): Likewise.
4052 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4055 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4056 avoid signed wrapping.
4057 (expand_mult): Handle properly multiplication by
4058 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
4059 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
4060 in the compiler if coeff is HOST_WIDE_INT_MIN.
4061 (expand_divmod): Don't make ext_op1 static, change it's type to
4062 uhwi. Avoid undefined behavior in -INTVAL (op1).
4064 PR rtl-optimization/50339
4065 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4067 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4068 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4069 into splitting_ashiftrt field.
4070 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4072 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4075 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
4078 * trans-mem.c (execute_tm_mark): Do not expand transactions that
4079 are sure to go irrevocable.
4081 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
4083 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4084 scalars are valid operands.
4086 2013-02-21 Martin Jambor <mjambor@suse.cz>
4088 PR tree-optimization/56310
4089 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4090 only matching indices and non-negative final offsets.
4091 (intersect_aggregates_with_edge): Pass src_idx to
4092 agg_replacements_to_vector. Pass src_idx insstead of index to
4093 intersect_with_agg_replacements.
4095 2013-02-21 Martin Jambor <mjambor@suse.cz>
4097 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4098 instead of hard-wired defaults.
4100 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
4102 * doc/invoke.texi (MIPS Options): Update documentation of the
4103 floating-point multiply-accumulate instruction restrictions.
4105 2013-02-21 Kostya Serebryany <kcc@google.com>
4107 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4108 asan_shadow_offset on x86_64 linux.
4110 2013-02-21 Richard Biener <rguenther@suse.de>
4112 PR tree-optimization/56415
4114 2013-02-11 Richard Biener <rguenther@suse.de>
4116 PR tree-optimization/56273
4117 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4120 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4123 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
4127 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
4128 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
4130 2013-02-20 Jan Hubicka <jh@suse.cz>
4132 PR tree-optimization/56265
4133 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
4134 when target is referenced for first time.
4136 2013-02-20 Richard Biener <rguenther@suse.de>
4138 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
4139 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
4140 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4141 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
4142 not return anything.
4143 (rename_ssa_copies): Do not remove unused locals.
4144 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
4145 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
4146 * passes.c (execute_function_todo): Do not schedule unused locals
4147 removal if cleanup_tree_cfg did something.
4148 * tree-ssa-live.c (remove_unused_locals): Dump statistics
4149 about the number of removed locals.
4151 2013-02-20 Richard Biener <rguenther@suse.de>
4153 PR tree-optimization/56398
4154 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
4156 2013-02-20 Martin Jambor <mjambor@suse.cz>
4158 PR tree-optimization/55334
4159 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
4160 restricted pointers to arrays.
4162 2013-02-20 Richard Biener <rguenther@suse.de>
4163 Jakub Jelinek <jakub@redhat.com>
4165 PR tree-optimization/56396
4166 * tree-ssa-ccp.c (n_const_val): New static variable.
4167 (get_value): Return NULL for SSA names we don't have a lattice
4169 (ccp_initialize): Initialize n_const_val.
4170 * tree-ssa-copy.c (n_copy_of): New static variable.
4171 (init_copy_prop): Initialize n_copy_of.
4172 (get_value): Return NULL_TREE for SSA names we don't have a
4175 2013-02-20 Martin Jambor <mjambor@suse.cz>
4177 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
4179 2013-02-20 Richard Biener <rguenther@suse.de>
4181 * genpreds.c (write_lookup_constraint): Do not compare first
4182 letter of the constraint again.
4184 2013-02-20 Richard Biener <rguenther@suse.de>
4186 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
4188 (get_use_iv_cost): Terminate hashtable walk when coming across
4191 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
4193 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
4194 reassociation for avx2 targets.
4196 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4198 * config/microblaze/microblaze.c: microblaze_has_clz = 0
4199 Add version check for v8.10.a to enable microblaze_has_clz
4200 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
4201 version and TARGET_PATTERN_COMPARE check
4202 * config/microblaze/microblaze.md: New clzsi2 instruction
4204 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4206 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
4207 function before branching.
4209 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4211 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
4213 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
4215 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4218 * sel-sched.c: Include ira.h.
4219 (implicit_clobber_conflict_p): New function.
4220 (moveup_expr): Use it.
4221 * Makefile.in (sel-sched.o): Depend on ira.h.
4223 2013-02-19 Richard Biener <rguenther@suse.de>
4225 PR tree-optimization/56384
4226 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
4227 (vn_hash_type): Split out from ...
4228 (vn_hash_constant_with_type): ... here.
4229 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
4230 (vn_phi_eq): Compare types from vn_phi_s structure.
4231 (vn_phi_lookup): Populate vn_phi_s type.
4232 (vn_phi_insert): Likewise.
4234 2013-02-19 Jakub Jelinek <jakub@redhat.com>
4236 PR tree-optimization/56350
4237 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
4238 if haven't found reduction or nested cycle operand, rather than
4239 asserting we must find it.
4241 PR tree-optimization/56381
4242 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
4245 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
4246 Jakub Jelinek <jakub@redhat.com>
4249 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
4250 (swap_optab_enable): Same.
4251 (init_all_optabs): Use argument instead of global.
4252 * tree.h (struct tree_optimization_option): New field target_optabs.
4253 * expr.h (init_all_optabs): Add argument to prototype.
4254 (TREE_OPTIMIZATION_OPTABS): New.
4255 (save_optabs_if_changed): Protoize.
4256 * optabs.h: Declare this_fn_optabs.
4257 * optabs.c (save_optabs_if_changed): New.
4258 Declare this_fn_optabs.
4259 (init_optabs): Add argument to init_all_optabs() call.
4260 * function.c (invoke_set_current_function_hook): Handle per
4262 * function.h (struct function): New field optabs.
4263 * config/mips/mips.c (mips_set_mips16_mode): Handle when
4264 optimization_current_node has changed.
4265 * target-globals.h (save_target_globals_default_opts): Protoize.
4266 * target-globals.c (save_target_globals_default_opts): New.
4268 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4271 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
4272 registers %fr12 and %fr12R as call used.
4275 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
4276 and HImode, require all displacements to be an integer multiple of
4278 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
4279 only allow QImode and HImode when reload is in progress and strict is
4280 true. Likewise for symbolic addresses. Use base14_operand to check
4281 displacements in REG+BASE addresses.
4283 2013-02-18 Richard Biener <rguenther@suse.de>
4285 PR tree-optimization/56366
4286 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4287 handle sign-conversion of outer-loop initial induction value.
4289 2013-02-18 Richard Biener <rguenther@suse.de>
4292 * cfghooks.c (merge_blocks): If we merge a latch into another
4293 block adjust references to it.
4294 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
4295 (verify_loop_structure): Verify that a recorded latch is in fact
4298 2013-02-18 Richard Biener <rguenther@suse.de>
4300 PR tree-optimization/56321
4301 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
4302 order SSA name release and virtual operand unlinking.
4304 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4306 * config/microblaze/microblaze.md (save_stack_block): Define.
4307 (restore_stack_block): Likewise.
4309 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4311 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
4312 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
4313 * config/microblaze/microblaze.c (microblaze_option_override):
4314 Bail out early for PIC modes when target does not support PIC.
4316 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4318 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
4319 Replace with a microblaze version.
4320 (microblaze_trampoline_init): Adapt for microblaze.
4321 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
4324 2013-02-16 Jakub Jelinek <jakub@redhat.com>
4325 Dodji Seketeli <dodji@redhat.com>
4328 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
4329 (instrument_mem_region_access): Do not forget to always put
4330 instrumentation of the of 'base' and 'base + len' in a "if (len !=
4331 0) statement, even for cases where either 'base' or 'base + len'
4332 are not instrumented -- because they have been previously
4333 instrumented. Simplify the logic by putting all the statements
4334 instrument 'base + len' inside a sequence, and then insert that
4335 sequence right before the current insertion point. Then, to
4336 instrument 'base + len', just get an iterator on that statement.
4337 And do not forget to update the pointer to iterator the function
4338 received as argument.
4340 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
4342 PR rtl-optimization/56348
4343 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
4345 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
4347 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
4348 (clean_graph_dump_file): Pass base to start_graph_dump.
4350 2013-02-14 Richard Henderson <rth@redhat.com>
4353 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
4355 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
4357 * collect2-aix.h: Define F_LOADONLY.
4359 2013-02-14 Richard Biener <rguenther@suse.de>
4362 * varasm.c (output_constant_def_1): Get the decl representing
4363 the constant as argument.
4364 (output_constant_def): Wrap output_constant_def_1.
4365 (make_decl_rtl): Use output_constant_def_1 with the decl
4366 representing the constant.
4367 (build_constant_desc): Optionally re-use a decl already
4368 representing the constant.
4369 (tree_output_constant_def): Adjust.
4371 2013-02-14 Dodji Seketeli <dodji@redhat.com>
4374 * asan.c (instrument_builtin_call): Really put the length of the
4375 second source argument into src1_len.
4377 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4379 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
4380 argument. If it is false, don't create edge from then_bb to
4382 (insert_if_then_before_iter): Pass true to it.
4383 (build_check_stmt): Pass false to it.
4384 (transform_statements): Flush hash table only on extended basic
4385 block boundaries, rather than at the beginning of every bb.
4386 Don't flush hash table on nonfreeing_call_p calls.
4387 * tree-flow.h (nonfreeing_call_p): New prototype.
4388 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
4390 2013-02-13 David S. Miller <davem@davemloft.net>
4392 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
4394 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
4397 * ira.c (max_regno_before_ira): Move from ...
4399 (fix_reg_equiv_init): Use max_regno_before_ira instead of
4402 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4404 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
4406 2013-02-13 Richard Biener <rguenther@suse.de>
4409 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
4410 globals in MEM_REFs.
4412 2013-02-13 Richard Biener <rguenther@suse.de>
4414 * loop-init.c (loop_optimizer_init): Clear loop state when
4415 re-initializing preserved loops.
4416 * loop-unswitch.c (unswitch_single_loop): Return whether
4417 we unswitched the loop. Do not verify loop state here.
4418 (unswitch_loops): When we unswitched a loop discover new loops.
4420 2013-02-13 Kostya Serebryany <kcc@google.com>
4422 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
4424 * sanitizer.def: Rename __asan_init to __asan_init_v1.
4426 2013-02-12 Dodji Seketeli <dodji@redhat.com>
4428 Avoid instrumenting duplicated memory access in the same basic block
4429 * Makefile.in (asan.o): Add new dependency on hash-table.h
4430 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
4431 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
4432 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
4433 (free_mem_ref_resources, has_mem_ref_been_instrumented)
4434 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
4435 (get_mem_ref_of_assignment): New functions.
4436 (get_mem_refs_of_builtin_call): Extract from
4437 instrument_builtin_call and tweak a little bit to make it fit with
4439 (instrument_builtin_call): Use the new
4440 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
4441 of is_gimple_builtin_call.
4442 (instrument_derefs, instrument_mem_region_access): Insert the
4443 instrumented memory reference into the hash table.
4444 (maybe_instrument_assignment): Renamed instrument_assignment into
4445 this, and change it to advance the iterator when instrumentation
4446 actually happened and return true in that case. This makes it
4447 homogeneous with maybe_instrument_assignment, and thus give a
4448 chance to callers to be more 'regular'.
4449 (transform_statements): Clear the memory reference hash table
4450 whenever we enter a new BB, when we cross a function call, or when
4451 we are done transforming statements. Use
4452 maybe_instrument_assignment instead of instrumentation. No more
4453 need to special case maybe_instrument_assignment and advance the
4454 iterator after calling it; it's now handled just like
4455 maybe_instrument_call. Update comment.
4457 2013-02-13 Richard Biener <rguenther@suse.de>
4459 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4460 Fix loop discovery code.
4462 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
4465 * lra-constraints.c (process_alt_operands): Match early clobber
4466 operand with itself. Check conflicts with earlyclobber only if
4467 the operand is not reloaded. Prefer to reload conflicting operand
4468 if earlyclobber and matching operands are the same.
4470 2013-02-12 Richard Biener <rguenther@suse.de>
4473 * lto-streamer-out.c (write_symbol): Do not output symbols
4474 for hard register variables.
4476 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
4479 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
4480 (umulsidi3_insn, mulsidi3_insn): New insns.
4482 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
4484 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
4485 (struct tune_params): Add vec_costs field.
4486 * config/arm/arm.c (arm_builtin_vectorization_cost)
4487 (arm_add_stmt_cost): New functions.
4488 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
4489 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
4490 (arm_default_vec_cost): New struct of type cpu_vec_costs.
4491 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4492 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
4493 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
4494 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
4496 2013-02-12 Richard Biener <rguenther@suse.de>
4499 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
4500 decls again if possible.
4502 2013-02-12 Richard Biener <rguenther@suse.de>
4505 * tree-ssa.c (verify_ssa_name): Fix check, move
4506 SSA_NAME_IN_FREE_LIST check up.
4508 2013-02-12 Jakub Jelinek <jakub@redhat.com>
4509 Steven Bosscher <steven@gcc.gnu.org>
4511 PR rtl-optimization/56151
4512 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
4513 equal to op0 or op1, and last_insn pattern is CODE operation
4514 with MEM dest and one of the operands matches that MEM.
4516 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
4518 * doc/extend.texi: Document Function Multiversioning and "default"
4519 parameter string to target attribute.
4520 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
4521 target attribute parameter is "default".
4522 (ix86_compare_version_priority): Remove checks for target attribute.
4523 (ix86_mangle_function_version_assembler_name): Change error to sorry.
4524 Remove check for target attribute equal to NULL. Add assert.
4525 (ix86_generate_version_dispatcher_body): Change error to sorry.
4527 2013-02-11 Iain Sandoe <iain@codesourcery.com>
4528 Jack Howarth <howarth@bromo.med.uc.edu>
4529 Patrick Marlier <patrick.marlier@gmail.com>
4532 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
4533 define ENDFILE_SPEC as TM_DESTRUCTOR.
4534 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
4536 2013-02-11 Alexander Potapenko <glider@google.com>
4537 Jack Howarth <howarth@bromo.med.uc.edu>
4538 Jakub Jelinek <jakub@redhat.com>
4541 * config/darwin.c (cdtor_record): Rename ctor_record.
4542 (sort_cdtor_records): Rename sort_ctor_records.
4543 (finalize_dtors): New routine to sort destructors by
4544 priority before use in assemble_integer.
4545 (machopic_asm_out_destructor): Use finalize_dtors if needed.
4547 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
4549 PR rtl-optimization/56275
4550 * simplify-rtx.c (avoid_constant_pool_reference): Check that
4551 offset is non-negative and less than cmode size before
4552 calling simplify_subreg.
4554 2013-02-11 Richard Biener <rguenther@suse.de>
4556 PR tree-optimization/56264
4557 * cfgloop.h (fix_loop_structure): Adjust prototype.
4558 * loop-init.c (fix_loop_structure): Return the number of
4559 newly discovered loops.
4560 * tree-cfgcleanup.c (repair_loop_structures): When new loops
4561 are discovered, do a full loop-closed SSA rewrite.
4563 2013-02-11 Richard Biener <rguenther@suse.de>
4565 PR tree-optimization/56273
4566 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4568 (check_array_ref): Fix missing newline in dumps.
4569 (search_for_addr_array): Likewise.
4571 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
4573 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
4575 2013-02-09 Jakub Jelinek <jakub@redhat.com>
4578 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
4580 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
4582 PR rtl-optimization/56246
4583 * lra-constraints.c (simplify_operand_subreg): Try to reuse
4585 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
4586 constraints are satisfied.
4588 2013-02-08 Jeff Law <law@redhat.com>
4591 * emit-rtl.c (reg_is_parm_p): New function.
4592 * regs.h (reg_is_parm_p): New prototype.
4593 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
4594 callee-clobbered registers.
4596 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4599 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
4600 If there is no implicit builtin declaration, just return NULL.
4602 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
4604 * config/i386/sse.md (FMAMODEM): New mode iterator.
4605 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
4606 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
4608 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
4610 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
4611 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
4612 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
4614 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4616 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
4617 (microblaze*-*-elf): Likewise.
4618 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
4620 * config/microblaze/microblaze-c.c: Add builtin defines for
4621 _LITTLE_ENDIAN and _BIG_ENDIAN.
4622 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
4623 add to TARGET_DEFAULT flags.
4624 Expand ASM_SPEC and LINK_SPEC.
4625 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
4626 * config/microblaze/microblaze.md: Update extendsidi2 and
4627 movdi_internal instructions to use low-order / high-order reg
4629 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
4630 options and inversemask / mask of LITTLE_ENDIAN.
4631 * config/microblaze/t-microblaze: Expand multilib options to
4632 include mlittle-endian (le) and update exceptions patterns.
4634 2013-02-08 Jakub Jelinek <jakub@redhat.com>
4636 PR rtl-optimization/56195
4637 * lra-constraints.c (get_reload_reg): Don't reuse regs
4638 if they have smaller mode than requested, if they have
4639 wider mode than requested, try to return a SUBREG.
4641 PR tree-optimization/56250
4642 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
4643 if type is unsigned and code isn't MULT_EXPR.
4645 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
4647 PR tree-optimization/56064
4648 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
4649 bits according to mode.
4650 * fixed-value.h (fixed_from_double_int)
4651 (const_fixed_from_double_int): Adjust comments.
4653 2013-02-08 Richard Biener <rguenther@suse.de>
4656 * lto-streamer.h (struct data_in): Remove current_file, current_line
4657 and current_col members.
4658 * lto-streamer-out.c (lto_output_location): Stream changed bits
4659 en-block for efficiency.
4660 * lto-streamer-in.c (clear_line_info): Remove.
4661 (lto_input_location): Cache current file, line and column
4662 globally via local statics. Read changed bits en-block.
4663 (input_function): Do not call clear_line_info.
4664 (lto_read_body): Likewise.
4665 (lto_input_toplevel_asms): Likewise.
4667 2013-02-08 Michael Matz <matz@suse.de>
4669 PR tree-optimization/52448
4670 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
4671 (nt_call_phase): New static.
4672 (add_or_mark_expr): Only mark accesses with newer phase than any
4674 (nonfreeing_call_p): New.
4675 (nt_init_block): Update nt_call_phase, mark blocks as visited.
4676 (nt_fini_block): Keep blocks marked as visited.
4677 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
4679 2013-02-08 Richard Biener <rguenther@suse.de>
4681 * ira.c (ira): Free broken dominator information.
4683 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
4685 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
4687 2013-02-08 Marek Polacek <polacek@redhat.com>
4689 * cfgloop.c (verify_loop_structure): Add more checking of headers.
4691 2013-02-08 Richard Biener <rguenther@suse.de>
4694 * cfgloop.h (flow_loops_find): Adjust.
4695 (bb_loop_header_p): Declare.
4696 * cfgloop.c (bb_loop_header_p): New function split out from ...
4697 (flow_loops_find): ... here. Adjust function signature,
4698 support incremental loop structure update.
4699 (verify_loop_structure): Cleanup. Verify a loop is a loop.
4700 * cfgloopmanip.c (fix_loop_structure): Move ...
4701 * loop-init.c (fix_loop_structure): ... here.
4702 (apply_loop_flags): Split out from ...
4703 (loop_optimizer_init): ... here.
4704 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
4705 in incremental mode, only remove dead loops here.
4707 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
4710 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
4711 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
4712 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
4713 (*round<mode>3.libgcc): New insns for fixed-modes.
4714 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
4715 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
4716 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
4717 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
4718 implementations. Define to __builtin_avr_absFX,
4719 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
4720 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
4721 __builtin_avr_countlsFX, respectively.
4722 * config/avr/avr-c.c (target.h): Include it.
4723 (enum avr_builtin_id): New enum.
4724 (avr_resolve_overloaded_builtin): New static function.
4725 (avr_register_target_pragmas): Use it to set
4726 targetm.resolve_overloaded_builtin.
4727 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
4728 tree nodes used by DEF_BUILTIN.
4729 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
4730 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
4731 <AVR_BUILTIN_xxBITS>: Same.
4733 2013-02-08 Richard Biener <rguenther@suse.de>
4735 * cfgloop.c (verify_loop_structure): Properly handle
4736 a loop exiting to another loop header.
4737 * ira-int.h (ira_loops): Remove.
4738 * ira.c (ira_loops): Remove.
4739 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
4740 (do_reload): Use loop_optimizer_finalize.
4741 * ira-build.c (create_loop_tree_nodes): Use get_loops and
4742 number_of_loops to access the loop tree.
4743 (more_one_region_p): Likewise.
4744 (finish_loop_tree_nodes): Likewise.
4745 (rebuild_regno_allocno_maps): Likewise.
4746 (mark_loops_for_removal): Likewise.
4747 (mark_all_loops_for_removal): Likewise.
4748 (remove_unnecessary_regions): Likewise.
4749 (ira_build): Likewise.
4750 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4752 2013-02-08 Richard Biener <rguenther@suse.de>
4754 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
4755 * ipa-pure-const.c (analyze_function): Avoid calling
4756 mark_irreducible_loops twice.
4757 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
4759 2013-02-07 David S. Miller <davem@davemloft.net>
4761 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
4763 * var-tracking.c (vt_add_function_parameter): Test the presence of
4764 HAVE_window_save properly and do not remap argument registers when
4765 we have a leaf function.
4767 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
4770 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
4772 * config/i386/i386.c (ix86_print_operand): Ditto.
4774 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
4776 * lra-constraints.c (process_alt_operands): Fix recently added comment.
4778 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
4780 PR rtl-optimization/56225
4781 * lra-constraints.c (process_alt_operands): Check that reload hard
4782 reg can hold value for strict_low_part.
4784 2013-02-07 Jakub Jelinek <jakub@redhat.com>
4787 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
4788 dwarf2out_end_function.
4789 (in_first_function_p, maybe_at_text_label_p,
4790 first_loclabel_num_not_at_text_label): New variables.
4791 (dwarf2out_var_location): In the first function find out
4792 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
4793 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
4796 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
4798 PR rtl-optimization/56178
4799 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
4800 SUBREG of a register. Tidy up related block of code.
4801 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
4802 note if the source is a register or a SUBREG of a register.
4804 2013-02-07 Jakub Jelinek <jakub@redhat.com>
4807 * config/rs6000/rs6000.md (ptrm): New mode attr.
4808 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
4809 call_value_indirect_aix<pttrsize>,
4810 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
4813 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4815 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
4816 if -bnortl. Convert to strcmp and strncmp.
4818 2013-02-07 Alan Modra <amodra@gmail.com>
4821 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
4822 addresses won't wrap when offsetting.
4823 (rs6000_secondary_reload): Provide secondary reloads needed for
4824 wrapping LO_SUM addresses.
4826 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
4828 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
4829 MACH, just __MACH__.
4831 2013-02-06 Richard Biener <rguenther@suse.de>
4833 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
4834 instead of calling fix_loop_structure.
4836 2013-02-06 Jakub Jelinek <jakub@redhat.com>
4839 * omp-low.c (use_pointer_for_field): Return false if
4840 lower_send_shared_vars doesn't generate any copy-out code.
4842 2013-02-06 Tom de Vries <tom@codesourcery.com>
4844 PR rtl-optimization/56131
4845 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
4846 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
4847 of the label is NULL. Add comment.
4849 2013-02-05 Jakub Jelinek <jakub@redhat.com>
4851 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
4854 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
4855 (STATIC_LIBTSAN_LIBS): Likewise.
4856 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
4857 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
4858 is defined, don't add anything else beyond that.
4859 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
4860 (LINK_COMMAND_SPEC): Use them.
4862 PR tree-optimization/56205
4863 * tree-stdarg.c (check_all_va_list_escapes): Return true if
4864 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
4865 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
4867 2013-02-05 Richard Biener <rguenther@suse.de>
4869 PR tree-optimization/53342
4870 PR tree-optimization/53185
4871 * tree-vectorizer.h (vect_check_strided_load): Remove.
4872 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
4873 not disallow peeling for vectorized strided loads.
4874 (vect_check_strided_load): Make static and simplify.
4875 (vect_analyze_data_refs): Adjust.
4876 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
4877 correctly when vectorizing strided loads.
4879 2013-02-05 Richard Biener <rguenther@suse.de>
4881 * doc/install.texi: Refer to ISL, not PPL.
4883 2013-02-05 Jan Hubicka <jh@suse.cz>
4885 PR tree-optimization/55789
4886 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
4888 2013-02-05 Jan Hubicka <jh@suse.cz>
4890 PR tree-optimization/55789
4891 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
4892 the dead call anyway.
4894 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
4897 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
4899 2013-02-04 Alexander Potapenko <glider@google.com>
4900 Jack Howarth <howarth@bromo.med.uc.edu>
4901 Jakub Jelinek <jakub@redhat.com>
4904 * config/darwin.c (sort_ctor_records): Stabilized qsort
4905 on constructor priority by using original position.
4906 (finalize_ctors): New routine to sort constructors by
4907 priority before use in assemble_integer.
4908 (machopic_asm_out_constructor): Use finalize_ctors if needed.
4910 2013-02-04 Jakub Jelinek <jakub@redhat.com>
4913 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
4914 about visibility on artificial decls.
4915 * config/sol2.c (solaris_assemble_visibility): Likewise.
4917 2013-02-04 Kai Tietz <ktietz@redhat.com>
4920 * config/i386/i386.c (function_value_ms_64): Add additional valtype
4921 argument and improve checking of return-argument types for 16-byte
4923 (ix86_function_value_1): Add additional valtype argument on call
4924 of function_value_64.
4925 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
4926 handling infunction_value_64 function.
4928 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
4930 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
4932 2013-02-04 Richard Biener <rguenther@suse.de>
4934 PR tree-optimization/56188
4935 * tree-ssa-structalias.c (label_visit): Consider case with
4936 initially non-empty points-to set.
4937 (perform_var_substitution): Dump node mapping and clean up.
4939 2013-02-04 Richard Guenther <rguenther@suse.de>
4942 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
4943 node prevail as last resort.
4944 (lto_symtab_merge_decls): Remove guard on LTRANS here.
4945 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
4947 2013-02-04 Richard Biener <rguenther@suse.de>
4949 PR tree-optimization/56113
4950 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
4952 (equiv_class_lookup_or_add): ... this.
4953 (label_visit): Adjust and fix error in previous patch.
4954 (perform_var_substitution): Adjust.
4956 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
4958 * config/sh/divtab.c: Fix formatting and comments throughout the file.
4959 * config/sh/sh4-300.md: Likewise.
4960 * config/sh/sh4a.md: Likewise.
4961 * config/sh/constraints.md: Likewise.
4962 * config/sh/sh.md: Likewise.
4963 * config/sh/netbsd-elf.h: Likewise.
4964 * config/sh/predicates.md: Likewise.
4965 * config/sh/sh-protos.h: Likewise.
4966 * config/sh/ushmedia.h: Likewise.
4967 * config/sh/linux.h: Likewise.
4968 * config/sh/sh.c: Likewise.
4969 * config/sh/superh.h: Likewise.
4970 * config/sh/elf.h: Likewise.
4971 * config/sh/sh4.md: Likewise.
4972 * config/sh/sh.h: Likewise.
4974 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4976 * config/pa/constraints.md: Adjust unused letters. Change "T"
4977 constraint to match_test floating_point_store_memory_operand().
4978 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
4979 (base14_operand): New.
4980 (floating_point_store_memory_operand): New.
4981 (integer_store_memory_operand): Revise to use base14_operand and
4982 reg_plus_base_memory_operand.
4983 (move_dest_operand): Allow symbolic_memory_operands.
4984 (symbolic_memory_operand): Check for LO_SOM.
4985 (symbolic_operand): Change default case to break.
4986 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
4987 CONST_DOUBLE values to be reloaded by putting them into memory when
4988 the destination is a floating point register.
4989 (movdf): Remove code to handle CONST_DOUBLE.
4991 (reload_indf_r1): New.
4992 (reload_insf_r1): New.
4993 Consistently use "Q" and "T" constraints with integer and floating
4994 point move instructions, respectively.
4995 (movdi): Remove FAIL.
4996 Change predicate for source operand unamed DImode move from
4997 general_operand to move_src_operand.
4998 (umulsidi3): Change predicate for destination operand to
5000 Likewise for similar unamed patterns.
5001 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5002 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5003 (hppa_legitimize_address): Simplify mask calculation.
5004 (pa_emit_move_sequence): Revised handling of secondary reloads from
5005 REG+D addresses for floating point loads and stores. Directly handle
5006 loading CONST0_RTX (mode) to a floating point register.
5007 (pa_secondary_reload): Handle reloading DF and SFmode constant values
5008 to floating point registers. Don't restrict secondary reloads to
5009 floating point registers to integer modes. Revise some comments and
5011 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5012 (pa_legitimate_address_p): New.
5013 (pa_legitimize_reload_address): New.
5014 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5015 (STRICT_REG_OK_FOR_BASE_P): New.
5016 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
5017 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5019 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
5020 Andrew Dixie <andrewd@gentrack.com>
5022 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5025 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
5027 * expmed.c (extract_bit_field_1): Pass the full width of the
5028 structure to get_best_reg_extraction_insn.
5030 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5033 * configure.ac (use_cxa_atexit): Add AIX.
5034 * configure: Regenerate.
5036 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5038 2013-02-01 Jakub Jelinek <jakub@redhat.com>
5041 * final.c (need_profile_function): New variable.
5042 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5043 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5044 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5045 notes, targetm.asm_out.function_prologue doesn't emit anything,
5046 HAVE_prologue and profiler should be emitted before prologue,
5047 set need_profile_function instead of emitting it.
5048 (final_scan_insn): If need_profile_function, emit
5049 profile_function on the first NOTE_INSN_BASIC_BLOCK or
5050 NOTE_INSN_FUNCTION_BEG note.
5052 2013-02-01 Richard Henderson <rth@redhat.com>
5054 * config/rs6000/rs6000.md (smulditi3): New.
5057 * config/alpha/alpha.md (umulditi3): New.
5059 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5061 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5062 (ASM_OUTPUT_ALIGNED_LOCAL): New.
5064 2013-02-01 Richard Biener <rguenther@suse.de>
5066 PR tree-optimization/56113
5067 * tree-ssa-structalias.c (label_visit): Reduce work for
5068 single-predecessor nodes.
5070 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
5072 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5073 range isn't testing for zero.
5075 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
5078 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5080 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
5081 Nick Clifton <nickc@redhat.com>
5083 * config/v850/constraints.md (Q): Define as a memory constraint.
5084 * config/v850/predicates.md (label_ref_operand): New predicate.
5085 (e3v5_shift_operand): New predicate.
5086 (ior_operator): New predicate.
5087 * config/v850/t-v850: Add e3v5 multilib.
5088 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5089 (v850_gen_movdi): Prototype.
5090 * config/v850/v850.c: Add support for e3v5 architecture.
5091 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5093 (construct_save_jarl): Add e3v5 long JARL support.
5094 (v850_adjust_insn_length): New function. Adjust length of call
5095 insns when using e3v5 instructions.
5096 (v850_gen_movdi): New function: Generate instructions to move a
5098 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5099 (CPP_SPEC): Define __v850e3v5__ as appropriate.
5100 (TARGET_USE_FPU): Enable for e3v5.
5101 (CONST_OK_FOR_W): New macro.
5102 (ADJUST_INSN_LENGTH): Define.
5103 * config/v850/v850.md (UNSPEC_LOOP): Define.
5104 (attr cpu): Add v850e3v5.
5105 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
5106 (movdi): New pattern.
5107 (movdi_internal): New pattern.
5108 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
5109 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
5110 (cstoresf4): Likewise.
5111 (cstoredf4): Likewise.
5112 (insv): New pattern.
5113 (rotlso3_a): New pattern.
5114 (rotlsi3_b): New pattern
5115 (rotlsi3_v850e3v5): New pattern.
5116 (doloop_begin): New pattern.
5117 (fix_loop_counter): New pattern.
5118 (doloop_end): New pattern.
5119 (branch_normal): Add e3v5 long branch support.
5120 (branch_invert): Likewise.
5121 (branch_z_normal): Likewise.
5122 (branch_z_invert): Likewise.
5123 (branch_nz_normal): Likewise.
5124 (branch_nz_invert): Likewise.
5125 (call_internal_short): Add e3v5 register-indirect JARL support.
5126 (call_internal_long): Likewise.
5127 (call_value_internal_short): Likewise.
5128 (call_value_internal_long): Likewise.
5129 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
5130 (mloop): New option.
5131 * config.gcc: Add support for configuring v840e3v5 target.
5132 * doc/invoke.texi: Document new v850 specific command line options.
5134 2013-01-31 Paul Koning <ni1d@arrl.net>
5138 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
5139 children if parent is a class.
5140 (prune_unused_types_prune): Don't add DW_AT_declaration.
5142 2013-01-31 Richard Biener <rguenther@suse.de>
5144 PR tree-optimization/56157
5145 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
5146 match up operand with SLP child.
5148 2013-01-31 Jason Merrill <jason@redhat.com>
5151 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
5152 parameters the first time.
5153 (gen_scheduled_generic_parms_dies): Check completeness here.
5155 2013-01-31 Richard Biener <rguenther@suse.de>
5158 * common.opt (faggressive-loop-optimizations): New flag,
5160 * doc/invoke.texi (faggressive-loop-optimizations): Document.
5161 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
5162 infer_loop_bounds_from_undefined by it.
5164 2013-01-31 Richard Biener <rguenther@suse.de>
5166 PR tree-optimization/56150
5167 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
5168 visit virtual operands.
5169 (find_uses_to_rename_bb): Likewise.
5171 2013-01-31 Richard Biener <rguenther@suse.de>
5173 PR tree-optimization/56150
5174 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
5175 mixed store non-store stmts.
5177 2013-01-30 Jakub Jelinek <jakub@redhat.com>
5180 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
5181 LIBASAN_EARLY_SPEC is defined.
5182 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
5183 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
5185 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
5188 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
5189 invalid args instead of ICEing on it.
5190 (ix86_valid_target_attribute_tree): Return error_mark_node if
5191 ix86_valid_target_attribute_inner_p failed.
5192 (ix86_valid_target_attribute_p): Return false only if
5193 ix86_valid_target_attribute_tree returned error_mark_node. Allow
5194 target("default") attribute.
5195 (sorted_attr_string): Change argument from const char * to tree,
5196 merge in all target attribute arguments rather than just one.
5197 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
5198 instead of free. Avoid using strcat.
5199 (ix86_mangle_function_version_assembler_name): Mangle
5200 target("default") as if no target attribute is present. Adjust
5201 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
5202 instead of xmalloc and XDELETEVEC instead of free.
5203 (ix86_function_versions): Don't return true if one of the decls
5204 doesn't have target attribute. If they don't and one of the decls
5205 is DECL_FUNCTION_VERSIONED, report an error. Adjust
5206 sorted_attr_string caller. Use XDELETEVEC instead of free.
5207 (ix86_supports_function_versions): Remove.
5208 (make_name): Fix up formatting.
5209 (make_dispatcher_decl): Remove resolver_name and its initialization.
5210 Avoid leaking memory.
5211 (is_function_default_version): Return true if there is
5212 target("default") attribute rather than no target attribute at all.
5213 (make_resolver_func): Avoid leaking memory.
5214 (ix86_generate_version_dispatcher_body): Likewise.
5215 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
5216 * target.def (supports_function_versions): Remove.
5217 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
5218 * doc/tm.texi: Regenerated.
5220 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
5222 PR rtl-optimization/56144
5223 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
5224 for values with side effects.
5226 2013-01-30 Richard Biener <rguenther@suse.de>
5228 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
5229 (sparseset_pop): Likewise.
5230 * cfganal.c (compute_idf): Likewise. Increase work-stack size
5231 to be able to use quick_push in the worker loop.
5233 2013-01-30 Marek Polacek <polacek@redhat.com>
5235 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
5237 2013-01-30 Richard Biener <rguenther@suse.de>
5240 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
5242 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
5244 PR tree-optimization/56064
5245 * fixed-value.c (fixed_from_double_int): New function.
5246 * fixed-value.h (fixed_from_double_int): New prototype.
5247 (const_fixed_from_double_int): New static inline function.
5248 * fold-const.c (native_interpret_fixed): New static function.
5249 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
5250 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
5251 (native_encode_fixed): New static function.
5252 (native_encode_expr) <FIXED_CST>: Use it.
5253 (native_interpret_int): Move double_int worker code to...
5254 * double-int.c (double_int::from_buffer): ...this new static method.
5255 * double-int.h (double_int::from_buffer): Prototype it.
5257 2013-01-30 Richard Biener <rguenther@suse.de>
5259 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
5260 New pointer-map and obstack.
5261 (init_alias_vars): Allocate pointer-map and obstack.
5262 (delete_points_to_sets): Free them.
5263 (find_what_var_points_to): Cache result.
5264 (find_what_p_points_to): Adjust for changed interface of
5265 find_what_var_points_to.
5266 (compute_points_to_sets): Likewise.
5267 (ipa_pta_execute): Likewise.
5269 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5271 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
5272 * configure: Regenerate.
5273 * config.in: Regenerate.
5274 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
5275 #nobits/#progbits if supported.
5277 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
5280 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
5281 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
5282 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
5284 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5286 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
5287 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
5289 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5291 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
5292 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
5294 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5296 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
5298 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
5299 * config/arm/cortex-a7.md: New bypasses using
5300 arm_mac_accumulator_is_result.
5302 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5304 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
5305 (cortex_a7_neon_mla): Likewise.
5306 (cortex_a7_fpfmad): New reservation.
5307 (cortex_a7_fpmacs): Use ffmas and update required units.
5308 (cortex_a7_fpmuld): Update required units and latency.
5309 (cortex_a7_fpmacd): Likewise.
5310 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
5311 (cortex_a7_neon). Likewise.
5312 (bypass) Update participating units.
5314 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5316 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
5317 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
5319 * config/arm/vfp11.md (vfp_farith): Use ffmas.
5320 (vfp_fmul): Use ffmad.
5321 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
5322 (cortex_r4_fmacd): Use ffmad.
5323 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
5324 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
5325 (cortex_a9_fmacd): Use ffmad.
5326 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
5327 (cortex_a8_vfp_macd): Use ffmad.
5328 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
5329 (cortex_a5_fpmacd): Use ffmad.
5330 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
5331 (cortex_a15_vfp_macd): Use ffmad.
5332 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
5334 2013-01-29 Jason Merrill <jason@redhat.com>
5337 * varasm.c (default_assemble_visibility): Don't warn about
5338 visibility on artificial decls.
5340 2013-01-29 Richard Biener <rguenther@suse.de>
5342 PR tree-optimization/56113
5343 * tree-ssa-structalias.c (equiv_class_lookup): Also return
5345 (label_visit): Free duplicate bitmaps and record the leader instead.
5346 (perform_var_substitution): Adjust.
5348 2013-01-29 Richard Biener <rguenther@suse.de>
5350 PR tree-optimization/55270
5351 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
5352 the CFG, schedule loops for fixup.
5354 2013-01-29 Nick Clifton <nickc@redhat.com>
5356 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
5359 2013-01-28 Leif Ekblad <leif@rdos.net>
5361 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
5362 * config/i386/i386.h (TARGET_RDOS): New macro.
5363 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
5364 * config/i386/i386.c (ix86_option_override_internal): For 64bit
5365 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
5366 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
5367 DEFAULT_LARGE_SECTION_THRESHOLD.
5368 * config/i386/i386.md (R14_REG, R15_REG): New constants.
5369 * config/i386/rdos.h: New file.
5370 * config/i386/rdos64.h: New file.
5372 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
5375 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
5378 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5380 PR rtl-optimization/56117
5381 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
5382 call cselib_lookup_from_insn on the MEM before calling
5383 add_insn_mem_dependence.
5385 2013-01-28 Richard Biener <rguenther@suse.de>
5387 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
5388 to a stmt that didn't have one.
5389 (copy_phis_for_bb): Likewise for PHI arguments.
5390 (copy_debug_stmt): Likewise for debug stmts.
5392 2013-01-28 Richard Biener <rguenther@suse.de>
5394 PR tree-optimization/56034
5395 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
5396 (partition_builtin_p): Adjust.
5397 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
5398 it is the last partition.
5399 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
5400 up the vertex for the definition.
5401 (classify_partition): Classify whether a partition is a
5402 PKIND_REDUCTION, thus has uses outside of the loop.
5403 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
5404 Merge all PKIND_REDUCTION partitions into the last partition.
5405 (tree_loop_distribution): Seed partitions from reductions as well.
5407 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5409 PR tree-optimization/56125
5410 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
5411 pow(x,c) into sqrt(x) * powi(x, n/2) or
5412 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
5413 optimizing for size.
5414 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
5415 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
5418 PR tree-optimization/56094
5419 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
5420 to UNKNOWN_LOCATION while gimplifying expr.
5422 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
5425 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
5426 operand 0 in movabs insn template for -masm=intel asm alternative.
5427 (*movabs<mode>_2): Ditto for operand 1.
5429 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
5432 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
5435 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5437 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
5440 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5442 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
5443 Undef to avoid warning.
5445 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5447 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
5448 * configure: Regenerate.
5450 2013-01-25 Jakub Jelinek <jakub@redhat.com>
5452 PR tree-optimization/56098
5453 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
5454 for stmts with volatile ops.
5455 (cond_store_replacement): Don't optimize if assign has volatile ops.
5456 (cond_if_else_store_replacement_1): Don't optimize if either
5457 then_assign or else_assign have volatile ops.
5458 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
5461 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5463 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
5465 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5467 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
5468 missing ':' in asm example.
5470 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
5472 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
5473 entries into lane and laneq entries.
5474 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
5475 Remove AdvSIMD scalar modes.
5476 (aarch64_sq<r>dmulh_laneq<mode>): New.
5477 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
5479 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
5480 builtin implementations to relfect changes in RTL in aarch64-simd.md.
5481 * config/aarch64/iterators.md (VCOND): New.
5484 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5487 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
5488 Add NULL LIBNAME argument to existing definitions.
5489 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
5490 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
5491 * config/avr/avr.c (DEF_BUILTIN): Same.
5492 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
5493 (avr_expand_builtin): Expand to a vanilla call if a libgcc
5494 implementation is available (DECL_ASSEMBLER_NAME is set).
5495 (avr_fold_absfx): New static function.
5496 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
5497 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
5498 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
5500 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
5501 (abshk, absk, abslk, absllk): Provide as static inline functions.
5503 2013-01-25 Marek Polacek <polacek@redhat.com>
5505 PR tree-optimization/56035
5506 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
5508 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
5510 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
5511 (*movtf_internal_rex64): Add (!o,C) alternative
5512 (*movxf_internal_rex64): Ditto.
5513 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
5515 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
5517 * doc/invoke.texi: fix typo.
5518 * doc/objc.texi: fix typo.
5520 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
5522 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
5523 for the first two alternatives.
5525 2013-01-24 Diego Novillo <dnovillo@google.com>
5527 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
5528 (ggc-zone.o): Remove.
5529 * configure.ac: Remove option --with-gc.
5530 * configure: Re-generate.
5531 * doc/install.texi: Remove documentation for --with-gc.
5532 * gengtype.c (write_enum_defn): Remove. Update all users.
5533 (write_Types_process_field): Remove generation of gt_e_* argument.
5534 (output_type_enum): Remove. Update all users.
5535 (write_enum_defn): Remove. Update all users.
5536 (enum alloc_zone): Remove. Update all users.
5537 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
5538 * ggc-common.c (ggc_splay_alloc): Remove first argument.
5540 (struct ptr_data): Remove field TYPE. Update all users.
5541 (gt_pch_note_object): Remove argument TYPE. Update all users.
5542 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
5544 * ggc-none.c (ggc_alloc_typed_stat): Remove.
5545 (struct alloc_zone): Remove.
5546 (ggc_internal_alloc_zone_stat): Remove.
5547 (ggc_internal_cleared_alloc_zone_stat): Remove.
5548 * ggc-page.c (ggc_alloc_typed_stat): Remove.
5549 (ggc_pch_count_object): Remove last argument. Update all users.
5550 (ggc_pch_alloc_object): Remove last argument. Update all users.
5551 (struct alloc_zone): Remove.
5552 * ggc-zone.c: Remove.
5553 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
5554 (struct alloc_zone): Remove.
5555 (ggc_alloc_typed_stat): Remove.
5556 (ggc_alloc_typed): Remove.
5557 (ggc_splay_alloc): Remove first argument.
5558 (rtl_zone): Remove. Update all users.
5559 (tree_zone): Remove. Update all users.
5560 (tree_id_zone): Remove. Update all users.
5561 (ggc_internal_zone_alloc_stat): Remove. Update all users.
5562 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
5563 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
5564 * tree-ssanames.c: Remove references to zone allocator in comments.
5566 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
5568 * config/avr/avr.c (avr_out_fract): Make register numbers that
5569 might be outside of source operand signed.
5571 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
5573 * config/i386/constraints.md (Yf): New constraint.
5574 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
5575 of f constraint to conditionaly disable x87 register preferences.
5576 (*movdf_internal): Ditto.
5577 (*movsf_internal): Ditto.
5579 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
5582 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
5583 that have operands with impossible constraints.
5584 Add a FIXME for a speed-up opportunity.
5585 * lra-constraints.c (process_alt_operands): Verify that a class
5586 selected from constraints on asms is valid for the operand mode.
5587 (curr_insn_transform): Remove incorrect comment.
5589 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
5591 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
5592 TOC operand is a valid symbol ref in the constant pool.
5594 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5596 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
5598 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
5601 * config/avr/stdfix.h: New file.
5602 * t-avr (stdfix-gcc.h): New rule to build it.
5603 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
5605 2013-01-23 Kostya Serebryany <kcc@google.com>
5607 * config/darwin.h: remove dependency on
5608 CoreFoundation (asan on Mac OS).
5610 2013-01-23 Jakub Jelinek <jakub@redhat.com>
5613 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
5614 instead of cmpdi_operand for first comparison operand.
5615 Don't assert that comparison operands aren't both constants.
5617 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
5619 * doc/install.texi (Downloading the Source): Update references to
5620 downloading separate components.
5622 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
5624 * doc/extend.texi (__int128): Improve grammar.
5626 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
5629 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
5630 alternative to (o,r).
5631 (*movdi_internal_rex64): Remove (!o,n) alternative.
5632 (DImode immediate->memory splitter): Remove.
5633 (DImode immediate->memory peephole2): Remove.
5634 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
5635 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
5636 alternative to (!o,*r).
5637 (*movtf_internal_sse): New pattern.
5638 (*movxf_internal_rex64): New pattern.
5639 (*movxf_internal): Disable for TARGET_64BIT.
5640 (*movdf_internal_rex64): Remove (!o,F) alternative.
5642 2013-01-22 Jakub Jelinek <jakub@redhat.com>
5645 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
5646 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
5647 * tree-vect-loop-manip.c (find_loop_location): Also ignore
5648 stmt locations where LOCATION_LOCUS of the stmt location is
5649 UNKNOWN_LOCATION or BUILTINS_LOCATION.
5652 * config/i386/i386.md (UNSPEC_STOS): New.
5653 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
5654 *strsetqi_1): Add UNSPEC_STOS.
5656 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
5659 * doc/invoke.texi: Remove left over -Wsynth example.
5661 2013-01-21 Jakub Jelinek <jakub@redhat.com>
5663 PR tree-optimization/56051
5664 * fold-const.c (fold_binary_loc): Don't fold
5665 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
5666 a narrowing conversion, or widening conversion from signed
5669 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
5671 PR rtl-optimization/56023
5672 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
5673 dependent on debug instruction.
5675 2013-01-21 Martin Jambor <mjambor@suse.cz>
5678 * function.c (allocate_struct_function): Call
5679 invoke_set_current_function_hook earlier.
5681 2013-01-21 Jakub Jelinek <jakub@redhat.com>
5683 * reload1.c (init_reload): Only initialize reload_obstack
5684 during the first call.
5686 2013-01-21 Marek Polacek <polacek@redhat.com>
5688 * cfgloop.c (verify_loop_structure): Fix up grammar.
5690 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
5692 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
5693 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
5695 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5698 * config/arm/marvell-pj4.md: Update copyright year.
5699 Fix up use of alu to alu_reg and simple_alu_imm.
5701 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
5703 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
5705 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
5708 * lra-constraints.c (curr_insn_transform): Don't reuse original
5709 insn for secondary memory move when memory mode should be different.
5711 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5713 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
5714 atomic_storedi_1): New patterns.
5716 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5718 btver2 pipeline descriptions.
5719 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
5721 * config/i386/i386.md (btver2_decode): New type attributes.
5722 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
5724 * config/i386/btver2.md: New file describing btver2 pipelines.
5726 2013-01-19 Andrew Pinski <apinski@cavium.com>
5728 PR tree-optimization/52631
5729 * tree-ssa-sccvn (visit_use): Before looking up the original
5730 statement, try looking up the simplified expression.
5732 2013-01-19 Anthony Green <green@moxielogic.com>
5734 * config/moxie/moxie.c (moxie_expand_prologue): Set
5735 current_function_static_stack_size.
5737 2013-01-18 Jakub Jelinek <jakub@redhat.com>
5739 PR tree-optimization/56029
5740 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
5741 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
5743 2013-01-18 Sharad Singhai <singhai@google.com>
5745 PR tree-optimization/55995
5746 * dumpfile.c (dump_loc): Print location only if available.
5747 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
5749 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
5752 * lra-constraints.c (curr_insn_transform): Reuse original insn for
5753 secondary memory move.
5754 (inherit_reload_reg): Use rclass instead of cl for
5755 check_secondary_memory_needed_p.
5757 2013-01-18 Jakub Jelinek <jakub@redhat.com>
5760 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
5761 the case where writing real complex part of target modifies op1.
5763 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
5765 * config/aarch64/aarch64-simd.md
5766 (aarch64_vcond_internal<mode>): Handle unordered cases.
5767 * config/aarch64/iterators.md (v_cmp_result): New.
5769 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
5770 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5772 * config/arm/marvell-pj4.md: New file.
5773 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
5774 * config/arm/arm.md (generic_sched): Add marvell_pj4.
5775 (generic_vfp): Likewise.
5776 * config/arm/arm-cores.def: Add marvell-pj4.
5777 * config/arm/arm-tune.md: Regenerate.
5778 * config/arm/arm-tables.opt: Regenerate.
5779 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
5780 * doc/invoke.texi: Document marvell-pj4.
5782 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
5784 * config/aarch64/arm_neon.h: Map scalar types to standard types.
5786 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
5791 * var-tracking.c (negative_power_of_two_p): New.
5792 (global_get_addr_cache, local_get_addr_cache): New.
5793 (get_addr_from_global_cache, get_addr_from_local_cache): New.
5794 (vt_canonicalize_addr): Rewrite using the above. Adjust the
5796 (vt_stack_offset_p): Remove.
5797 (vt_canon_true_dep): Always canonicalize loc's address.
5798 (clobber_overlapping_mems): Make sure we have a MEM.
5799 (local_get_addr_clear_given_value): New.
5800 (val_reset): Clear local cached entries.
5801 (compute_bb_dataflow): Create and release the local cache.
5802 Disable duplicate MEMs clobbering.
5803 (emit_notes_in_bb): Clobber MEMs likewise.
5804 (vt_emit_notes): Create and release the local cache.
5805 (vt_initialize, vt_finalize): Create and release the global
5806 cache, respectively.
5807 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
5809 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
5812 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
5813 not found in the symtab.
5815 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
5818 PR rtl-optimization/55547
5819 PR rtl-optimization/53827
5822 * alias.c (offset_overlap_p): New, factored out of...
5823 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
5824 the conservative special case for symbolic constants. Don't
5825 adjust zero sizes on alignment.
5827 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
5829 PR rtl-optimization/52573
5830 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
5831 REG_UNUSED for the same register.
5833 2013-01-17 Richard Biener <rguenther@suse.de>
5834 Marek Polacek <polacek@redhat.com>
5836 PR rtl-optimization/55833
5837 * loop-unswitch.c (unswitch_loops): Move loop verification...
5838 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
5839 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
5840 Set it to true when we're removing a loop from hierarchy tree in
5841 an irreducible region.
5842 (fix_bb_placements): Adjust caller.
5843 (fix_loop_placements): Likewise.
5845 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
5847 * config/avr/builtins.def (DEF_BUILTIN): Factor out
5848 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
5849 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
5850 Remove ID. Adjust comments.
5851 * config/avr/avr-c.c (avr_builtin_name): Remove.
5852 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
5853 * config/avr/avr.c (avr_tolower): New static function.
5854 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
5855 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
5856 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
5859 2013-01-17 Jan Hubicka <jh@suse.cz>
5861 PR tree-optimization/55273
5862 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
5864 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
5867 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
5868 store through atomic_store<mode>_1.
5869 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
5871 2013-01-17 Martin Jambor <mjambor@suse.cz>
5873 PR tree-optimizations/55264
5874 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
5875 for virtual methods.
5876 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
5877 virtual methods before inlining is over.
5878 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
5880 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
5883 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
5885 PR rtl-optimization/56005
5886 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
5887 pending reads for prefetch.
5889 2013-01-16 Ian Bolton <ian.bolton@arm.com>
5891 * config/aarch64/aarch64.md
5892 (*cstoresi_neg_uxtw): New pattern.
5893 (*cmovsi_insn_uxtw): New pattern.
5894 (*<optab>si3_uxtw): New pattern.
5895 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
5896 (*<optab>si3_insn_uxtw): New pattern.
5897 (*bswapsi2_uxtw): New pattern.
5899 2013-01-16 Richard Biener <rguenther@suse.de>
5901 * tree-inline.c (tree_function_versioning): Remove set but
5902 never used variable.
5904 2013-01-16 Richard Biener <rguenther@suse.de>
5906 PR tree-optimization/55964
5907 * tree-flow.h (rename_variables_in_loop): Remove.
5908 (rename_variables_in_bb): Likewise.
5909 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
5910 (copy_loop_before): Adjust and delete update-ssa status.
5911 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
5912 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
5913 (rename_variables_in_loop): Remove.
5914 (slpeel_update_phis_for_duplicate_loop): Likewise.
5915 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
5916 use available cfg machinery instead of duplicating it.
5917 Update PHI nodes and perform poor-mans SSA update here.
5918 (slpeel_tree_peel_loop_to_edge): Adjust.
5920 2013-01-16 Richard Biener <rguenther@suse.de>
5922 PR tree-optimization/54767
5923 PR tree-optimization/53465
5924 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
5925 (vrp_visit_phi_node): For PHI arguments coming via backedges
5926 drop all symbolical range information.
5927 (execute_vrp): Compute backedges.
5929 2013-01-16 Richard Biener <rguenther@suse.de>
5931 * doc/install.texi: Update CLooG and ISL requirements to
5934 2013-01-16 Christian Bruel <christian.bruel@st.com>
5937 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
5938 (broken_move): Handle UNSPECV_SP_SWITCH_B.
5939 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
5941 2013-01-16 DJ Delorie <dj@redhat.com>
5943 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
5944 (UNSPECV_SP_SWITCH_E): New.
5945 (sp_switch_1): Change to an unspec.
5946 (sp_switch_2): Change to an unspec. Don't use post-inc when we
5949 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
5951 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
5952 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
5953 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
5954 (expand_mem_thread_fence): Ditto.
5955 (expand_mem_signal_fence): Ditto.
5956 (expand_atomic_load): Ditto.
5957 (expand_atomic_store): Ditto.
5959 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
5961 PR rtl-optimization/55547
5962 PR rtl-optimization/53827
5965 * alias.c (memrefs_conflict_p): Set sizes to negative after
5968 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5971 * function.c (thread_prologue_and_epilogue_insns): Always
5972 add crtl->drap_reg to set_up_by_prologue.set, even if
5973 stack_realign_drap is false.
5975 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5977 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
5978 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
5979 *call): Fix indention.
5981 2013-01-15 Tom de Vries <tom@codesourcery.com>
5984 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
5987 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
5989 PR rtl-optimization/55153
5990 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
5992 2013-01-15 Martin Jambor <mjambor@suse.cz>
5994 PR tree-optimization/55920
5995 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
5996 accesses as grp_to_be_debug_replaced.
5998 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6000 PR tree-optimization/55920
6001 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6002 there is non-useless type conversion needed from debug rhs to lhs,
6003 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6005 2013-01-15 Joseph Myers <joseph@codesourcery.com>
6006 Mikael Pettersson <mikpe@it.uu.se>
6009 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6011 (ASM_OUTPUT_CASE_LABEL): Remove.
6012 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6013 * final.c (shorten_branches): Update alignment of labels before
6014 jump tables if CASE_VECTOR_SHORTEN_MODE.
6016 2013-01-15 Richard Biener <rguenther@suse.de>
6019 * system.h: Do not include gmp.h for building host tools.
6021 2013-01-15 Richard Biener <rguenther@suse.de>
6024 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6025 account for bitpos when computing alignment.
6027 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
6029 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6030 (ix86_target_macros_internal): Likewise.
6032 * config/i386/i386.c (m_CORE2I7): Removed.
6033 (m_CORE_HASWELL): New macro.
6034 (m_CORE_ALL): Likewise.
6035 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6036 (initial_ix86_arch_features): Likewise.
6037 (processor_target_table): Initializations for Core avx2.
6038 (cpu_names): New names "core-avx2".
6039 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6040 PROCESSOR_CORE_HASWELL.
6041 (ix86_issue_rate): New case.
6042 (ia32_multipass_dfa_lookahead): Likewise.
6043 (ix86_sched_init_global): Likewise.
6045 * config/i386/i386.h (TARGET_HASWELL): New macro.
6046 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6047 (processor_type): New PROCESSOR_HASWELL.
6049 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6051 PR tree-optimization/55955
6052 * tree-vect-loop.c (vectorizable_reduction): Give up early on
6053 *SHIFT_EXPR and *ROTATE_EXPR codes.
6055 PR tree-optimization/48766
6056 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6057 -ftrapv disable -fwrapv.
6059 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6062 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6063 etc. to 1 and not to __flash.
6064 Use LL suffix for __INT24_MAX__ with -mint8.
6065 Use ULL suffix for __UINT24_MAX__ with -mint8.
6067 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6069 * config/avr/avr-arch.h
6070 (struct base_arch_s): Use typedef avr_arch_t instead.
6071 (struct arch_info_s): Use typedef avr_arch_info_t instead.
6072 (struct mcu_type_s): Use typedef avr_mcu_t instead.
6073 * config/avr/avr.c: Same.
6074 * config/avr/avr-devices.c: Same.
6075 * config/avr/driver-avr.c: Same.
6076 * config/avr/gen-avr-mmcu-texi.c: Same.
6077 * config/avr/avr-mcus.def: Adjust comment.
6079 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
6081 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6082 * config/aarch64/iterators.md (VALLDI): New.
6084 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
6085 Andi Kleen <ak@linux.intel.com>
6088 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6089 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6092 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6094 * config/avr/avr-stdint.h: Remove trailing blanks.
6095 * config/avr/avr-log.h: Same.
6096 * config/avr/avr-arch.h: Same.
6097 * config/avr/avr-devices.c: Same.
6098 * config/avr/avr-dimode.md: Same.
6099 * config/avr/predicates.md: Same.
6100 * config/avr/avr-c.c: Same. And fix typo.
6102 * config/avr/avr-protos.h: Same. And:
6103 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6104 (init_cumulative_args): Rename to avr_init_cumulative_args.
6105 (expand_prologue): Rename to avr_expand_prologue.
6106 (expand_epilogue): Rename to avr_expand_epilogue.
6107 (adjust_insn_length): Rename to avr_adjust_insn_length.
6108 (notice_update_cc): Rename to avr_notice_update_cc.
6109 (final_prescan_insn): Rename to avr_final_prescan_insn.
6110 * config/avr/avr.c: Same.
6111 * config/avr/avr.h: Same.
6112 * config/avr/avr.md: Remove trailing blanks.
6113 (prologue): Use avr_expand_prologue.
6114 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
6116 2013-01-14 Richard Biener <rguenther@suse.de>
6118 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
6119 verify_location, collect_subblocks): New functions.
6120 (verify_gimple_in_cfg): Verify that locations only reference
6121 BLOCKs in the functions BLOCK tree.
6123 2013-01-14 Richard Biener <rguenther@suse.de>
6125 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
6127 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
6129 (insert_out_of_ssa_copy_on_edge): Likewise.
6130 (rewrite_close_phi_out_of_ssa): Likewise.
6131 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
6133 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
6134 propagated constants.
6135 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
6138 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6140 * config/avr/avr-modes.def: Add GPL copyright notice.
6142 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
6144 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
6145 MEMMODEL_MASK to determine memory model.
6146 (atomic_store<mode>): Ditto from operands[2].
6147 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
6149 2013-01-13 Jakub Jelinek <jakub@redhat.com>
6152 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
6153 (fold_gimple_assign): Don't call unshare_expr here.
6154 (fold_ctor_reference): Call unshare_expr.
6156 2013-01-13 Terry Guo <terry.guo@arm.com>
6158 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
6159 * doc/fragments.texi: Document MULTILIB_REUSE.
6160 * gcc.c (multilib_reuse): New internal spec.
6161 (set_multilib_dir): Also search multilib from multilib_reuse.
6162 * genmultilib (tmpmultilib3): Refactor code.
6163 (tmpmultilib4): Ditto.
6164 (multilib_reuse): New multilib argument.
6166 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
6168 * Makefile.in: Update copyright.
6170 2013-01-12 Tom de Vries <tom@codesourcery.com>
6173 * calls.c (expand_call): Check if arg_nr is valid.
6175 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6177 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
6178 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
6179 documentation. Add missing '__' in front of
6180 __builtin_ia32_packssdw256.
6182 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6185 * config/s390/s390.c (s390_preferred_reload_class): Do not return
6186 NO_REGS for larl operands.
6187 (s390_reload_larl_operand): Use s390_load_address instead of
6190 2013-01-11 Richard Biener <rguenther@suse.de>
6192 * tree-cfg.c (verify_node_sharing_1): Split out from ...
6193 (verify_node_sharing): ... here.
6194 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
6196 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
6198 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
6199 Substitute TREECHECKING.
6200 * configure: Regenerate.
6201 * Makefile.in (TREECHECKING): New.
6203 2013-01-11 Richard Guenther <rguenther@suse.de>
6205 PR tree-optimization/44061
6206 * tree-vrp.c (extract_range_basic): Compute zero as
6207 value-range for __builtin_constant_p of function parameters.
6209 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
6211 Update copyright years.
6213 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
6215 PR rtl-optimization/55672
6216 * lra-eliminations.c (mark_not_eliminable): Permit addition with
6217 const to be eliminable.
6219 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
6221 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
6222 * configure: Regenerate.
6224 2013-01-10 Richard Biener <rguenther@suse.de>
6226 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
6228 2013-01-10 Richard Biener <rguenther@suse.de>
6231 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
6232 locations for virtual PHI arguments.
6233 (rewrite_update_phi_arguments): Likewise.
6235 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
6237 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
6240 2013-01-10 Jakub Jelinek <jakub@redhat.com>
6242 PR tree-optimization/55921
6243 * tree-complex.c (expand_complex_asm): New function.
6244 (expand_complex_operations_1): Call it for GIMPLE_ASM.
6246 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6249 * config/s390/s390.c (s390_symref_operand_p)
6250 (s390_loadrelative_operand_p): Merge the two functions.
6251 (s390_check_qrst_address, print_operand_address): Add parameters
6252 to s390_loadrelative_operand_p invokation.
6253 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
6254 (s390_reload_larl_operand, s390_secondary_reload): Use
6255 s390_loadrelative_operand_p instead of s390_symref_operand_p.
6256 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
6258 2013-01-09 Mike Stump <mikestump@comcast.net>
6260 * dse.c (record_store): Remove unnecessary assert.
6262 2013-01-09 Jan Hubicka <jh@suse.cz>
6264 PR tree-optimization/55569
6265 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
6266 * cfgloop.h (scale_loop_profile): Likewise.
6268 2013-01-09 Jan Hubicka <jh@suse.cz>
6271 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
6273 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
6275 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
6278 * expr.h (maybe_emit_group_store): Declare.
6279 * expr.c (maybe_emit_group_store): New function.
6280 * builtins.c (expand_builtin_int_roundingfn): Call it.
6281 (expand_builtin_int_roundingfn_2): Likewise.
6283 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
6285 PR rtl-optimization/55829
6286 * lra-constraints.c (match_reload): Add code for absent output.
6287 (curr_insn_transform): Add code for reloads of matched inputs
6290 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
6292 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
6293 attribute of movddup insn to DF.
6294 (*vec_interleave_lowv2df): Ditto.
6295 (vec_dupv2df): Ditto.
6297 2013-01-09 Jan Hubicka <jh@suse.cz>
6299 PR tree-optimiation/55875
6300 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
6301 EVERY_ITERATION parameter.
6302 (number_of_iterations_exit): Check if exit is executed every iteration.
6303 (idx_infer_loop_bounds): Similarly here.
6304 (n_of_executions_at_most): Simplify
6305 to only test for cases where statement is dominated by the
6306 particular bound; handle correctly the "postdominance" test.
6307 (scev_probably_wraps_p): Use max loop iterations info
6308 as a global bound first.
6310 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
6311 Nick Clifton <nickc@redhat.com>
6313 * config/v850/v850.md (cbranchsf4): New pattern.
6314 (cstoresf4): New pattern.
6315 (cbranchdf4): New pattern.
6316 (cstoredf4): New pattern.
6317 (movsicc): Disallow floating point comparisons.
6318 (cmpsf_le_insn): Fix order of operators.
6319 (cmpsf_lt_insn): Likewise.
6320 (cmpsf_eq_insn): Likewise.
6321 (cmpdf_le_insn): Likewise.
6322 (cmpdf_lt_insn): Likewise.
6323 (cmpdf_eq_insn): Likewise.
6324 (cmpsf_ge_insn): Use LE comparison.
6325 (cmpdf_ge_insn): Likewise.
6326 (cmpsf_gt_insn): Use LT comparison.
6327 (cmpdf_gt_insn): Likewise.
6328 (cmpsf_ne_insn): Delete pattern.
6329 (cmpdf_ne_insn): Delete pattern.
6330 * config/v850/v850.c (v850_gen_float_compare): Use
6331 gen_cmpdf_eq_insn for NE comparison.
6332 (v850_float_z_comparison_operator)
6333 (v850_float_nz_comparison_operator): Move from here ...
6334 * config/v850/predicates.md: ... to here. Move GT and GE
6335 comparisons into v850_float_z_comparison_operator.
6336 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
6338 (v850_float_nz_comparison_operator): Likewise.
6340 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6342 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
6343 with calls to gen_insvsi/gen_insvdi.
6345 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6347 * config/i386/i386.c (initial_ix86_tune_features): Set up
6348 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
6350 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
6351 Jakub Jelinek <jakub@redhat.com>
6353 PR tree-optimization/48189
6354 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
6355 If nitercst is 0, don't predict the exit edge.
6357 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6359 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
6360 in asm_fprintf with reg_names.
6361 (aarch64_print_operand_address): Likewise.
6362 (aarch64_return_addr): Likewise.
6363 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
6365 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6367 * config/pa/pa.h (VAL_U6_BITS_P): Define.
6368 (INT_U6_BITS): Likewise.
6369 * config/pa/predicates.md (uint6_operand): New predicate.
6370 (shift5_operand, shift6_operand): Likewise.
6371 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
6373 (lshrdi3): Use shift6_operand.
6374 (shrpsi4, shrpdi4): New insn patterns.
6375 (extzv): Delete expander.
6376 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
6377 predicates in unamed zero extract patterns. Tighten common constraint.
6378 (extv): Delete expander.
6379 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
6380 predicates in unamed sign extract patterns. Tighten common constraint.
6381 (insv): Delete expander.
6382 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
6383 predicates in unamed insert patterns. Tighten common constraint.
6384 Change uint32_operand predicate to uint6_operand predicate in unamed
6385 DImode pattern to insert constant values of type 1...1xxxx.
6387 2013-01-04 Jan Hubicka <jh@suse.cz>
6389 PR tree-optimization/55823
6390 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
6393 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6394 Uros Bizjak <ubizjak@gmail.com>
6396 PR rtl-optimization/55845
6397 * df-problems.c (can_move_insns_across): Stop scanning at
6398 volatile_insn_p source instruction or give up if
6399 across_from .. across_to range contains any volatile_insn_p
6402 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6404 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
6405 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
6407 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
6408 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
6410 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6413 * asan.c (asan_clear_shadow): New function.
6414 (asan_emit_stack_protection): Use it.
6416 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6418 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
6419 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
6420 with tab instead of space.
6422 2013-01-08 Nick Clifton <nickc@redhat.com>
6424 * config/rl78/rl78.c (rl78_expand_prologue): Always select
6425 register bank 0 at the start of an interrupt handler.
6426 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
6429 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6431 * config/aarch64/aarch64-simd.md
6432 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
6433 (aarch64_simd_bsl): Likewise.
6434 (aarch64_vcond_internal<mode>): Likewise.
6435 (vcond<mode><mode>): Likewise.
6436 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
6437 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
6439 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6441 * config/aarch64/aarch64-builtins.c
6442 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
6444 2013-01-08 Martin Jambor <mjambor@suse.cz>
6447 * tree-sra.c (analyze_access_subtree): Return true also after
6448 potentially creating a debug-only replacement.
6450 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6453 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
6455 PR tree-optimization/54120
6456 * tree-vrp.c (range_fits_type_p): Don't allow
6457 src_precision < precision from signed vr to unsigned_p
6458 if vr->min or vr->max is negative.
6459 (simplify_float_conversion_using_ranges): Test can_float_p
6460 against CODE_FOR_nothing.
6462 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6463 Richard Biener <rguenther@suse.de>
6466 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
6467 types instead of just INTEGER_TYPE types.
6469 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
6471 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
6474 2013-01-07 Steve Ellcey <sellcey@mips.com>
6477 * config/mips/mips.opt: Change mad to mmad to match documentation.
6479 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6482 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
6485 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6488 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
6489 (avr_addrspace_t): Add .section_name field.
6490 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
6492 (avr_addrspace): Same. Initialize .section_name. Remove last
6493 NULL entry. Put __memx into .progmemx.data.
6494 (progmem_section_prefix): Remove.
6495 (avr_asm_init_sections): No need to initialize progmem_section.
6496 (avr_asm_named_section): Use avr_addrspace[].section_name to get
6497 section name prefix.
6498 (avr_asm_select_section): Ditto. And use get_unnamed_section to
6499 retrieve the progmem section.
6500 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
6501 boundary to run over avr_addrspace[].
6502 (avr_register_target_pragmas): Ditto.
6504 2013-01-06 Jakub Jelinek <jakub@redhat.com>
6506 * varasm.c (output_constant_def_contents): For asan_protect_global
6507 protected strings, adjust DECL_ALIGN if needed, before testing for
6509 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
6510 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
6512 (output_object_block): For asan protected decls, emit asan padding
6513 after their contents.
6514 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
6515 (asan_finish_file): Test it here instead.
6517 2013-01-07 Nick Clifton <nickc@redhat.com>
6518 Matthias Klose <doko@debian.org>
6519 Doug Kwan <dougkwan@google.com>
6520 H.J. Lu <hongjiu.lu@intel.com>
6523 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
6525 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
6527 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
6529 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
6531 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
6533 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6536 * doc/install.texi (Cross-Compiler-Specific Options): Document
6539 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
6541 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
6542 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
6543 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
6544 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
6545 vqmovun_high_s64): Fix source operand number and update copyright.
6547 2013-01-07 Richard Biener <rguenther@suse.de>
6550 * gimple.h (gimple_call_builtin_p): New overload.
6551 * gimple.c (validate_call): New function.
6552 (gimple_call_builtin_p): Likewise.
6553 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6554 Use gimple_call_builtin_p.
6555 (find_func_clobbers): Likewise.
6556 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
6557 (strlen_optimize_stmt): Likewise.
6559 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
6561 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
6562 (vld1q_dup_*): Likewise.
6564 (vld1q_*): Likewise.
6565 (vld1_lane_*): Likewise.
6566 (vld1q_lane_*): Likewise.
6568 2013-01-07 Richard Biener <rguenther@suse.de>
6570 * lto-streamer.h (LTO_minor_version): Bump to 2.
6572 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
6574 * config/aarch64/aarch64-protos.h
6575 (aarch64_const_double_zero_rtx_p): Rename to...
6576 (aarch64_float_const_zero_rtx_p): ...this.
6577 (aarch64_float_const_representable_p): New.
6578 (aarch64_output_simd_mov_immediate): Likewise.
6579 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
6580 move immediate case.
6581 * config/aarch64/aarch64.c
6582 (aarch64_const_double_zero_rtx_p): Rename to...
6583 (aarch64_float_const_zero_rtx_p): ...this.
6584 (aarch64_print_operand): Allow printing of new constants.
6585 (aarch64_valid_floating_const): New.
6586 (aarch64_legitimate_constant_p): Check for valid floating-point
6588 (aarch64_simd_valid_immediate): Likewise.
6589 (aarch64_vect_float_const_representable_p): New.
6590 (aarch64_float_const_representable_p): Likewise.
6591 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
6592 (aarch64_output_simd_mov_immediate): New.
6593 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
6594 (*movdf_aarch64): Likewise.
6595 * config/aarch64/constraints.md (Ufc): New.
6596 (Y): call aarch64_float_const_zero_rtx.
6597 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
6599 2013-01-07 Richard Biener <rguenther@suse.de>
6601 PR tree-optimization/55888
6602 PR tree-optimization/55862
6603 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
6604 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
6605 not if it is contained therein.
6607 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6609 * config/avr/t-avr: Typo.
6611 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6614 * config/avr/t-avr: Don't automatically rebuild
6615 $(srcdir)/config/avr/t-multilib
6616 $(srcdir)/config/avr/avr-tables.opt
6617 $(srcdir)/doc/avr-mmcu.texi
6618 (avr-mcus): New phony target to build them on request.
6619 (s-avr-mlib, s-avr-mmcu-texi): Remove.
6620 * avr/avr-mcus.def: Adjust comments.
6622 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
6624 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
6626 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
6628 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
6630 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
6632 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
6634 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
6636 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
6637 to generate profiling.
6638 * config/rs6000/aix64.h (LIB_SPEC): Same.
6640 2013-01-04 Andrew Pinski <apinski@cavium.com>
6642 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
6644 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6646 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
6648 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
6650 (ix86_expand_move): Ditto.
6651 (ix86_zero_extend_to_Pmode): Ditto.
6652 (ix86_expand_call): Ditto.
6653 (ix86_expand_special_args_builtin): Ditto.
6654 (ix86_expand_builtin): Ditto.
6656 2013-01-04 Richard Biener <rguenther@suse.de>
6658 PR tree-optimization/55862
6659 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
6660 translating them through PHI nodes.
6662 2013-01-04 Martin Jambor <mjambor@suse.cz>
6664 PR tree-optimization/55755
6665 * tree-sra.c (sra_modify_assign): Do not check that an access has no
6666 children when trying to avoid producing a VIEW_CONVERT_EXPR.
6668 2013-01-04 Marek Polacek <polacek@redhat.com>
6671 * opts.c (default_options_optimization): Clarify error message.
6673 2013-01-04 Richard Biener <rguenther@suse.de>
6676 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
6679 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6682 * config/pa/pa.md (movsi): Revert previous change.
6683 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
6686 2013-01-03 Richard Henderson <rth@redhat.com>
6688 * config/i386/i386.c (ix86_expand_move): Always assign to op1
6689 after eliminating TLS symbols.
6691 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
6694 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
6695 * graphite-poly.c (debug_gmp_value): Likewise.
6697 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
6700 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
6701 selected code model, define __code_mode_small__, __code_model_medium__,
6702 __code_model_large__, __code_model_32__ or __code_model_kernel__.
6703 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
6704 xchg temporary register with %k. Declare temporary register as
6706 [__x86_64__]: For medium and large code models, preserve %rbx register.
6708 2013-01-03 Richard Biener <rguenther@suse.de>
6710 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
6711 (dump_subscript): Adjust.
6712 (finalize_ddr_dependent): Do not dump redundant info.
6713 (analyze_siv_subscript): Adjust.
6714 (subscript_dependence_tester): Likewise.
6715 (compute_affine_dependence): Likewise.
6717 2013-01-03 Richard Biener <rguenther@suse.de>
6720 2013-01-03 Richard Biener <rguenther@suse.de>
6722 PR tree-optimization/55857
6723 * tree-vect-stmts.c (vectorizable_load): Do not setup
6724 re-alignment for invariant loads.
6726 2013-01-02 Richard Biener <rguenther@suse.de>
6728 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
6729 invariant load do not generate a vector load from the scalar location.
6731 2013-01-03 Richard Biener <rguenther@suse.de>
6733 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
6734 for not vectorizing.
6735 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6736 not build INDIRECT_REFs, call get_name once only.
6737 (vect_create_data_ref_ptr): Likewise. Dump base object kind
6738 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
6740 2013-01-03 Richard Biener <rguenther@suse.de>
6742 PR tree-optimization/55857
6743 * tree-vect-stmts.c (vectorizable_load): Do not setup
6744 re-alignment for invariant loads.
6746 2013-01-03 Richard Biener <rguenther@suse.de>
6749 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
6750 prefer a built-in decl.
6752 2013-01-03 Jakub Jelinek <jakub@redhat.com>
6754 * gcc.c (process_command): Update copyright notice dates.
6755 * gcov.c (print_version): Likewise.
6756 * gcov-dump.c (print_version): Likewise.
6758 PR rtl-optimization/55838
6759 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
6760 iv0.step, iv1.step and step.
6762 2013-01-03 Jakub Jelinek <jakub@redhat.com>
6763 Marc Glisse <marc.glisse@inria.fr>
6765 PR tree-optimization/55832
6766 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
6767 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
6768 integer_{one,zero}_node.
6770 2013-01-03 Jakub Jelinek <jakub@redhat.com>
6773 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
6774 * var-tracking.c (reverse_op): Don't add reverse ops to
6775 VALUEs that have already
6776 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
6778 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
6780 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
6782 2013-01-02 Teresa Johnson <tejohnson@google.com>
6784 * dumpfile.c (dump_loc): Print filename with location.
6785 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
6786 new location_t parameter to emit complete unroll message with
6788 (canonicalize_loop_induction_variables): Compute loops location
6789 and pass to try_unroll_loop_completely.
6790 * loop-unroll.c (report_unroll_peel): New function.
6791 (peel_loops_completely): Use new dump format with location
6792 for main dumpfile message, and invoke report_unroll_peel on success.
6793 (decide_unrolling_and_peeling): Ditto.
6794 (decide_peel_once_rolling): Remove old dumpfile message subsumed
6795 by report_unroll_peel.
6796 (decide_peel_completely): Ditto.
6797 (decide_unroll_constant_iterations): Ditto.
6798 (decide_unroll_runtime_iterations): Ditto.
6799 (decide_peel_simple): Ditto.
6800 (decide_unroll_stupid): Ditto.
6801 * cfgloop.c (get_loop_location): New function.
6802 * cfgloop.h (get_loop_location): Declare.
6804 2013-01-02 Sriraman Tallam <tmsriram@google.com>
6806 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
6809 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6812 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
6813 BLKmode objects when EXPAND_MEMORY is specified.
6815 2013-01-02 Sriraman Tallam <tmsriram@google.com>
6817 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
6819 (fold_builtin_cpu): Do not share cpu model decls across statements.
6821 2013-01-02 Jason Merrill <jason@redhat.com>
6824 * tree.c (build_array_type_1): Revert earlier change.
6826 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
6828 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
6830 * config/aarch64/aarch64-tune.md: Re-generate.
6832 2013-01-02 Richard Biener <rguenther@suse.de>
6834 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
6835 invariant load do not generate a vector load from the scalar location.
6837 2013-01-02 Richard Biener <rguenther@suse.de>
6840 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
6841 * configure: Regenerate.
6843 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6845 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
6846 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
6847 (expand_builtin_int_roundingfn_2): Keep the original target around
6848 for the fallback case.
6850 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6852 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
6853 to be clear for sign changes.
6855 2013-01-01 Jan Hubicka <jh@suse.cz>
6857 * ipa-inline-analysis.c: Fix formatting.
6859 2013-01-01 Jakub Jelinek <jakub@redhat.com>
6861 PR tree-optimization/55831
6862 * tree-vect-loop.c (get_initial_def_for_induction): Use
6863 gsi_after_labels instead of gsi_start_bb.
6865 Copyright (C) 2013 Free Software Foundation, Inc.
6867 Copying and distribution of this file, with or without modification,
6868 are permitted in any medium without royalty provided the copyright
6869 notice and this notice are preserved.