1 2011-10-20 Dehao Chen <dehao@google.com>
3 * profile.c (compute_branch_probabilities): Compute and dump the
4 overlap between the static estimation and the instrumentation profile.
5 (OVERLAP_BASE): New macro.
6 (compute_frequency_overlap): New function
8 2011-10-19 Jakub Jelinek <jakub@redhat.com>
10 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
11 d->op1 instead of d->op0 for the second vpshufb.
12 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
13 (ix86_expand_vec_perm_const): If mask indicates two operands are
14 needed, but both are the same and expanding them as d.op0 == d.op1
15 failed, retry with d.op0 != d.op1.
16 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
17 also for d.nelt == 32.
20 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
23 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
25 * regrename.h: New file.
26 * regrename.c: Include it. Also include "emit-rtl.h".
27 (struct du_head, struct du_chain, du_head_p DEF_VEC and
28 DEF_VEC_ALLOC_P): Move to regrename.h.
29 (do_replace): Remove declaration.
30 (insn_rr): New variable.
31 (cur_operand): New static variable.
32 (regrename_chain_from_id): Renamed from chain_from_id and no longer
33 static. All callers changed.
34 (record_operand_use): New static function.
35 (scan_rtx_reg): Use it.
36 (find_best_rename_reg): New function, broken out of rename_chains.
37 (rename_chains): Use it. Don't update chain regno and nregs here, ...
38 (regrename_do_replace): ... do it here instead. Renamed from
39 do_replace, and no longer static. All callers changed.
40 (regrename_analyze): No longer static. New arg bb_mask.
41 All callers changed. If bb_mask is nonzero, use it to limit the
42 number of basic blocks we analyze. If we failed to analyze a block,
43 clear insn operand data.
44 (record_out_operands): New arg insn_info. Update cur_operand if it is
46 (build_def_use): If insn_rr is nonnull, pass an insn_info to
47 record_out_operands, and update cur_operand here as well.
48 (regrename_init, regrename_finish): New functions.
49 (regrename_optimize): Use them.
50 * Makefile.in (regrename.o): Adjust dependencies.
52 2011-10-19 Tom de Vries <tom@codesourcery.com>
54 PR tree-optimization/50769
55 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
56 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
57 dummy argument .MEM to phi when increasing number of arguments of phi by
58 redirecting edges to the block with phi.
60 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
63 * configure.ac: Save and restore CXXFLAGS around
64 gcc_AC_CHECK_DECLS uses.
65 Check for madvise() declaration with g++ if --enable-build-with-cxx.
66 * configure: Regenerate.
67 * config.in: Regenerate.
68 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
70 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
73 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
74 (variable_part): Replace offset with union.
75 (enum onepart_enum, onepart_enum_t): New.
76 (variable_def): Drop cur_loc_changed, add onepart.
77 (value_chain_def, const_value_chain): Remove.
78 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
79 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
80 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
81 (value_chain_pool, value_chains): Remove.
82 (dropped_values): New.
83 (struct parm_reg): Only if HAVE_window_save.
84 (vt_stack_adjustments): Don't record register arguments.
86 (dv_onepart_p): Return a onepart_enum_t.
90 (variable_htab_free): Release onepart aux data. Reset flags.
91 (value_chain_htab_hash, value_chain_htab_eq): Remove.
92 (unshare_variable): Use onepart field. Propagate onepart aux
93 data or offset. Drop cur_loc_changed.
94 (val_store): Cope with NULL insn. Rephrase dump output. Check
95 for unsuitable locs. Add FIXME on using cselib locs.
96 (val_reset): Remove FIXME of unfounded concerns.
97 (val_resolve): Check for unsuitable locs. Add FIXME on using
99 (variable_union): Use onepart field, adjust access to offset.
101 (VALUE_CHANGED, DECL_CHANGED): Update doc.
102 (set_dv_changed): Clear NO_LOC_P when changed.
103 (find_loc_in_1pdv): Use onepart field.
104 (intersect_loc_chains): Likewise.
105 (unsuitable_loc): New.
106 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
107 (add_value_chain, add_value_chains): Remove.
108 (add_cselib_value_chains, remove_value_chain): Likewise.
109 (remove_value_chains, remove_cselib_value_chains): Likewise.
110 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
111 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
112 (variable_merge_over_cur): Likewise. Adjust access to offset.
113 Drop cur_loc_changed.
114 (variable_merge_over_src): Use onepart field.
115 (remove_duplicate_values): Likewise.
116 (variable_post_merge_new_vals): Likewise.
117 (find_mem_expr_in_1pdv): Likewise.
118 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
120 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
121 (variable_different_p): Use onepart field. Move onepart test out
123 (argument_reg_set): Drop.
124 (add_uses, add_stores): Preserve but do not record in dynamic
125 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
126 Avoid unsuitable address expressions.
127 (EXPR_DEPTH): Unlimit.
128 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
129 (prepare_call_arguments): Use DECL_RTL_IF_SET.
130 (dump_var): Adjust access to offset.
131 (variable_from_dropped, recover_dropped_1paux): New.
132 (variable_was_changed): Drop cur_loc_changed. Use onepart.
133 Preserve onepart aux in empty_var. Recover empty_var and onepart
134 aux from dropped_values.
135 (find_variable_location_part): Special-case onepart. Adjust
137 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
138 access to offset. Initialize onepaux. Drop value chains.
139 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
140 (VEC (variable, heap), VEC (rtx, stack)): Define.
141 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
142 ignore_cur_loc. Add expanding, pending, depth.
143 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
144 (loc_exp_dep_insert, loc_exp_dep_set): New.
145 (notify_dependents_of_resolved_value): New.
146 (update_depth, vt_expand_var_loc_chain): New.
147 (vt_expand_loc_callback): Revamped.
148 (resolve_expansions_pending_recursion): New.
149 (INIT_ELCD, FINI_ELCD): New.
150 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
151 parameter, adjust all callers.
152 (vt_expand_loc_dummy): Drop.
153 (vt_expand_1pvar): New.
154 (emit_note_insn_var_location): Operate on non-debug decls only.
155 Revamp multi-part cur_loc recomputation and one-part expansion.
156 Drop cur_loc_changed. Adjust access to offset.
157 (VEC (variable, heap)): Drop.
158 (changed_variables_stack, changed_values_stack): Drop.
159 (check_changed_vars_0, check_changed_vars_1): Remove.
160 (check_changed_vars_2, check_changed_vars_3): Remove.
161 (values_to_stack, remove_value_from_changed_variables): New.
162 (notify_dependents_of_changed_value, process_changed_values): New.
163 (emit_notes_for_changes): Revamp onepart updates.
164 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
165 and value chains. Propagate onepaux. Recover empty_var and onepaux
167 (emit_notes_for_differences_2): Drop value chains.
168 (emit_notes_in_bb): Adjust.
169 (vt_emit_notes): Drop value chains, changed_variables_stack.
170 Initialize and release dropped_values.
171 (create_entry_value): Revamp.
172 (vt_add_function_parameter): Use new interface.
173 (note_register_arguments): Remove.
174 (vt_initialize): Drop value chains and register arguments.
175 (vt_finalize): Drop value chains. Release windowed_parm_regs only
177 * rtl.h: Document various pass-local uses of RTL flags.
178 * tree.h (DECL_RTL_KNOWN_SET): New.
179 * doc/invoke.texi (param max-vartrack-expr-depth): Update
180 description and default.
182 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
185 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
187 (addhi3): Don't pipe through short; use gen_int_mode instead.
188 Prior to reload, expand to gen_addhi3_clobber.
189 (*addhi3): Use avr_out_plus_noclobber if applicable, use
190 out_plus_noclobber in cc and adjust_len attribute.
191 (addhi3_clobber): 2 new RTL peepholes.
192 (addhi3_clobber): New insn.
193 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
194 * config/avr/avr.c (avr_out_plus_noclobber): New function.
195 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
196 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
197 Set cc0 to set_zn for adiw on 16-bit values.
198 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
199 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
201 2011-10-19 Richard Guenther <rguenther@suse.de>
204 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
205 the condition is properly gimple before using it.
206 * tree-eh (stmt_could_throw_1_p): Properly extract the
207 operation type from comparisons.
209 2011-10-19 Roland Stigge <stigge@antcom.de>
212 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
214 2011-10-19 Roland Stigge <stigge@antcom.de>
217 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
219 2011-10-19 Richard Guenther <rguenther@suse.de>
222 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
224 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
226 PR rtl-optimization/50340
227 * sel-sched-ir.c (update_target_availability): LHS register
228 availability is not known if the unavailable LHS of the other
229 expression is a different register.
231 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
234 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
235 floating-point comparisons.
237 2011-10-19 Jan Hubicka <jh@suse.cz>
239 * cgraphunit.c (handle_alias_pairs): Also handle wekref with destination
241 (output_weakrefs): New function.
242 * varpool.c (varpool_create_variable_alias): Handle external aliases.
244 2011-10-19 Jakub Jelinek <jakub@redhat.com>
246 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
247 second argument instead of mode.
249 2011-10-18 Jakub Jelinek <jakub@redhat.com>
251 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
252 mode SUBREG of operands[0] as target.
253 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
254 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
255 (expand_vec_perm_1): Handle identity and some broadcast
257 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
258 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
259 For d->testing_p return true earlier to avoid creating more GC
261 (expand_vec_perm_vpermq_perm_1): New function.
262 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
263 earlier to avoid creating more GC garbage. Fix handling of
264 V16HImode. Avoid some SUBREGs in SET_DEST.
265 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
267 (expand_vec_perm_vpshufb4_vpermq2): New function.
268 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
269 and expand_vec_perm_vpshufb4_vpermq2.
271 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
273 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
276 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
278 PR tree-optimization/50717
280 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
281 parameter. Calculate 'type' from stmt.
282 (convert_mult_to_widen): Update call the is_widening_mult_p.
283 (convert_plusminus_to_widen): Likewise.
285 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
287 * config/spu/spu.c (struct machine_function): New data structure.
288 (spu_init_machine_status): New function.
289 (spu_option_override): Install it.
290 (get_pic_reg): Set and use cfun->machine->pic_reg.
291 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
292 (need_to_save_reg): Use cfun->machine->pic_reg instead of
293 checking crtl->uses_pic_offset_table.
294 (spu_expand_prologue): Likewise.
296 2011-10-18 Jakub Jelinek <jakub@redhat.com>
298 PR tree-optimization/50735
299 * function.c (gimplify_parameters): Use create_tmp_var instead of
300 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
301 or vector type, set DECL_GIMPLE_REG_P.
303 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
305 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
306 * config/arm/arm.opt: Add 'native' processor_type and
307 arm_arch enum values.
308 * config/arm/arm.h (host_detect_local_cpu): New prototype.
309 (EXTRA_SPEC_FUNCTIONS): New define.
310 (MCPU_MTUNE_NATIVE_SPECS): New define.
311 (DRIVER_SELF_SPECS): New define.
312 * config/arm/driver-arm.c: New file.
313 * config/arm/x-arm: New file.
314 * doc/invoke.texi (ARM Options): Document -mcpu=native,
315 -mtune=native and -march=native.
317 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
319 PR rtl-optimization/50205
320 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
321 p->x is a register. Forbid substitution when the same register is
322 found in a different mode.
323 (count_occurrences_equiv): Assert that 'what' is a register.
325 2011-10-18 Richard Guenther <rguenther@suse.de>
327 PR tree-optimization/50767
328 * tree-ssa-pre.c (create_expression_by_pieces): Update the
331 2011-10-18 Julian Brown <julian@codesourcery.com>
333 * config/arm/arm.c (arm_block_move_unaligned_straight)
334 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
335 (arm_movmemqi_unaligned): New.
336 (arm_gen_movmemqi): Support unaligned block copies.
338 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
340 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
341 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
342 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
343 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
344 (op_code_prio): Likewise.
345 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
346 * optabs.c (optab_for_tree_code): Handle
347 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
348 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
349 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
350 * genopinit.c (optabs): Initialize the new optabs.
351 * expr.c (expand_expr_real_2): Handle
352 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
353 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
354 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
355 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
356 VEC_WIDEN_LSHIFT_LO_EXPR): New.
357 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
358 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
359 vect_recog_widen_shift_pattern.
360 (vect_handle_widen_mult_by_const): Rename...
361 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
362 Add a new argument, update documentation.
363 (vect_recog_widen_mult_pattern): Assume that only second
364 operand can be constant. Update call to
365 vect_handle_widen_op_by_const.
366 (vect_recog_over_widening_pattern): Fix typo.
367 (vect_recog_widen_shift_pattern): New.
368 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
370 (supportable_widening_operation): Likewise.
371 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
372 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
373 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
374 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
375 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
376 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
378 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
380 * config/arm/iterators.md (V_innermode): New.
381 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
384 2011-10-18 Richard Guenther <rguenther@suse.de>
386 * tree-ssa-alias.h (struct pt_solution): Remove
387 vars_contains_restrict member.
388 (pt_solutions_same_restrict_base): Remove.
389 (pt_solution_set): Adjust.
390 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
391 vars_contains_restrict handling.
392 (dump_points_to_solution): Likewise.
393 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
394 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
396 (new_var_info): Do not initialize it.
397 (ipa_escaped_pt): Adjust.
398 (make_constraint_from_restrict): Make the tag global.
399 (make_constraint_from_global_restrict): New function.
400 (make_constraint_from_heapvar): Remove.
401 (create_variable_info_for): Do not make restrict vars point
403 (intra_create_variable_infos): Likewise.
404 (find_what_var_points_to): Remove vars_contains_restrict handling.
405 (pt_solution_set): Adjust.
406 (pt_solution_ior_into): Likewise.
407 (pt_solutions_same_restrict_base): Remove.
408 (compute_points_to_sets): Do not test is_restrict_var.
409 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
410 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
412 2011-10-18 Tom de Vries <tom@codesourcery.com>
414 PR tree-optimization/50672
415 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
417 (mark_virtual_phi_result_for_renaming): Use
418 mark_virtual_operand_for_renaming.
419 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
420 * tree-ssa-tail-merge.c (release_last_vdef): New function.
421 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
423 (tail_merge_optimize): Add argument to call to purge_bbs.
425 2011-10-18 Richard Guenther <rguenther@suse.de>
428 * expr.c (get_object_or_type_alignment): New function.
429 (expand_assignment): Use it.
430 (expand_expr_real_1): Likewise.
432 2011-10-18 Dodji Seketeli <dodji@redhat.com>
435 * input.c (dump_line_table_statistics): Use long, not size_t.
437 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
439 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
441 2011-10-17 Simon Baldwin <simonb@google.com>
442 Ian Lance Taylor <iant@google.com>
444 * configure.ac: Add --with-native-system-header-dir. Set and
445 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
446 when setting target_header_dir.
447 * config.gcc: Always set native_system_header_dir.
448 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
449 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
451 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
452 native_system_header_dir.
453 (spu-*-elf*): Set native_system_header_dir.
454 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
455 @NATIVE_SYSTEM_HEADER_DIR@.
456 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
457 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
458 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
459 STANDARD_INCLUDE_COMPONENT.
460 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
461 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
462 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
463 STANDARD_INCLUDE_COMPONENT.
464 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
465 * config/i386/t-mingw-w32: Likewise.
466 * config/i386/t-mingw-w64: Likewise.
467 * config/spu/t-spu-elf: Likewise.
468 * config/i386/t-djgpp: Remove.
469 * config/t-gnu: Remove.
470 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
471 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
472 STANDARD_INCLUDE_COMPONENT.
473 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
474 * config/spu/spu-elf.h: Likewise.
475 * config/vms/xm-vms.h: Likewise.
476 * config/gnu.h: Likewise.
477 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
478 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
479 NATIVE_SYSTME_HEADER_COMPONENT.
480 * doc/install.texi (Configuration): Document
481 --with-native-system-header-dir. Mention it in the documentation
482 for --with-sysroot and --with-build-sysroot.
483 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
484 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
485 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
486 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
487 * doc/fragments.texi (Target Fragment): Don't document
488 NATIVE_SYSTEM_HEADER_DIR.
489 * configure, doc/tm.texi: Rebuild.
491 2011-10-17 Richard Henderson <rth@redhat.com>
493 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
496 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
498 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
499 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
501 2011-10-17 David S. Miller <davem@davemloft.net>
503 * config/sparc/sparc-modes.def: Add single entry vector modes for
505 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
507 (mov<V32:mode>): Revert back to plain SFmode pattern.
508 (*movsf_insn): Likewise.
509 (mov<V64:mode>): Revert back to plain DFmode pattern.
510 (*movdf_insn_sp32): Likewise.
511 (*movdf_insn_sp32_v9): Likewise.
512 (*movdf_insn_sp64): Likewise.
513 (V64 mode splitters) Likewise.
514 (addsi3): Remove VIS alternatives.
516 (and<V64I:mode>3): Revert to DImode only pattern.
517 (and<V64I:mode>3_sp32): Likewise.
518 (*and<V64I:mode>3_sp64): Likewise.
519 (and<V32I:mode>3): Likewise.
520 (*and_not_<V64I:mode>_sp32): Likewise.
521 (*and_not_<V64I:mode>_sp64): Likewise.
522 (*and_not_<V32I:mode>): Likewise.
523 (ior<V64I:mode>3): Likewise.
524 (*ior<V64I:mode>3_sp32): Likewise.
525 (*ior<V64I:mode>3_sp64): Likewise.
526 (ior<V32I:mode>3): Likewise.
527 (*or_not_<V64I:mode>_sp32): Likewise.
528 (*or_not_<V64I:mode>_sp64): Likewise.
529 (*or_not_<V32I:mode>): Likewise.
530 (xor<V64I:mode>3): Likewise.
531 (*xor<V64I:mode>3_sp32): Likewise.
532 (*xor<V64I:mode>3_sp64): Likewise.
533 (xor<V32I:mode>3): Likewise.
534 (V64I mode splitters): Likewise.
535 (*xor_not_<V64I:mode>_sp32): Likewise.
536 (*xor_not_<V64I:mode>_sp64): Likewise.
537 (*xor_not_<V32I:mode>): Likewise.
538 (one_cmpl<V64I:mode>2): Likewise.
539 (*one_cmpl<V64I:mode>2_sp32): Likewise.
540 (*one_cmpl<V64I:mode>2_sp64): Likewise.
541 (one_cmpl<V32I:mode>2): Likewise.
542 (VM32, VM64, VMALL): New mode iterators.
543 (vbits, vconstr, vfptype): New mode attributes.
544 (mov<VMALL:mode>): New expander.
545 (*mov<VM32:mode>_insn): New insn.
546 (*mov<VM64:mode>_insn_sp64): New insn.
547 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
548 specifically for the register to memory case.
549 (vec_init<mode>): New expander.
550 (VADDSUB): New mode iterator.
551 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
553 (<plusminus_insn><mode>3): New consolidated pattern.
554 (VL): New mode iterator for logical operations.
555 (vlsuf): New more attribute.
556 (vlop): New code iterator.
557 (vlinsn, vlninsn): New code attributes.
558 (<code><mode>3): New insn to non-negated vector logical ops.
559 (*not_<code><mode>3): Likewise for negated variants.
560 (*nand<mode>_vis): New insn.
561 (vlnotop): New code iterator.
562 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
563 (one_cmpl<mode>2): New insn.
564 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
565 (bshuffle<VM64:mode>_vis): Likewise.
566 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
567 (fp<plusminus_insn>64_vis): Use V1DI mode.
568 (VASS mode iterator): Use V1SI not SI mode.
569 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
570 single-entry vector mode changes.
571 (sparc_expand_builtin): Likewise.
572 (sparc_expand_vector_init): New function.
573 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
575 2011-10-17 Kai Tietz <ktietz@redhat.com>
577 * fold-const.c (simple_operand_p_2): New function.
578 (fold_truthop): Rename to
579 (fold_truth_andor_1): function name.
580 Additionally remove branching creation for logical and/or.
581 (fold_truth_andor): Handle branching creation for logical and/or here.
583 2011-10-17 Andi Kleen <ak@linux.intel.com>
585 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
587 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
589 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
590 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
591 (adjust_len): Add alternative "call".
592 (isa, enabled): New insn attributes.
593 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
595 (*sbrx_branch<mode>): Ditto.
596 (*sbrx_and_branch<mode>): Ditto.
597 (*sbix_branch): Ditto.
598 (*sbix_branch_bit7): Ditto.
599 (*sbix_branch_tmp): Ditto.
600 (*sbix_branch_tmp_bit7): Ditto.
602 (negsi2): Use attribute "isa" instead of assembler dialect.
603 (extendhisi2): Ditto.
604 (call_insn, call_value_insn): Set adjust_len attribute.
605 (indirect_jump): Indent to coding rules.
606 (call_prologue_saves): Use isa attribute instead of mcu_mega.
607 (epilogue_restores): Ditto. Fix setting of SP as described in the
609 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
610 and *indirect_jump_avr6.
611 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
612 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
613 (*tablejump_rjmp, *tablejump_lib): Remove.
614 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
616 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
619 * doc/invoke.texi ([Wnonnull]): Update.
621 2011-10-17 Richard Henderson <rth@redhat.com>
624 * optabs.c (expand_vec_perm_expr): Fix indexing error.
626 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
628 * configure.ac: Display `yes' if the SystemTap header has been
630 * configure: Regenerate.
632 2011-10-08 Andi Kleen <ak@linux.intel.com>
635 * config.in, configure: Regenerate.
636 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
637 * ggc-page.c (USING_MADVISE): Add.
638 (page_entry): Add discarded field.
639 (alloc_page): Check for discarded pages.
640 (release_pages): Add USING_MADVISE branch.
642 2011-10-17 Richard Guenther <rguenther@suse.de>
644 PR tree-optimization/50729
645 * tree-vrp.c (extract_range_from_unary_expr_1): Remove
647 (simplify_conversion_using_ranges): Properly test the
650 2011-10-15 Tom Tromey <tromey@redhat.com>
651 Dodji Seketeli <dodji@redhat.com>
653 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
654 * ggc-none.c (ggc_round_alloc_size): New public stub function.
655 * ggc-page.c (ggc_alloced_size_order_for_request): New static
656 function. Factorized from ggc_internal_alloc_stat.
657 (ggc_round_alloc_size): New public function. Uses
658 ggc_alloced_size_order_for_request.
659 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
660 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
661 from ggc_internal_alloc_zone_stat.
662 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
663 * toplev.c (general_init): Initialize
664 line_table->alloced_size_for_request.
666 2011-10-15 Tom Tromey <tromey@redhat.com>
667 Dodji Seketeli <dodji@redhat.com>
669 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New
671 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
673 (dump_line_table_statistics): Define new function.
674 * input.h (dump_line_table_statistics): Declare new function.
675 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
677 2011-10-15 Tom Tromey <tromey@redhat.com>
678 Dodji Seketeli <dodji@redhat.com>
680 * doc/cppopts.texi: Document -fdebug-cpp.
681 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor
684 2011-10-15 Tom Tromey <tromey@redhat.com>
685 Dodji Seketeli <dodji@redhat.com>
687 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
689 * diagnostic.c (diagnostic_report_current_module): Add a location
690 parameter to the function definition. Use it instead of
691 input_location. Resolve the virtual location rather than just
692 looking up its map and risking to touch a resulting macro map.
693 (default_diagnostic_starter): Pass the relevant diagnostic
694 location to diagnostic_report_current_module.
695 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
696 (virt_loc_aware_diagnostic_finalizer): Likewise.
697 (diagnostic_report_current_function): Pass the
698 relevant location to diagnostic_report_current_module.
699 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
701 * toplev.c (general_init): By default, use the new
702 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
703 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
705 2011-10-15 Tom Tromey <tromey@redhat.com>
706 Dodji Seketeli <dodji@redhat.com>
708 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
709 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
710 preprocessor related options.
712 2011-10-15 Tom Tromey <tromey@redhat>
713 Dodji Seketeli <dodji@redhat.com>
715 * input.h (struct expanded_location): Move to libcpp/line-map.h.
716 (LOCATION_COLUMN): New accessor
717 (in_system_header_at): Use linemap_location_in_system_header_p.
718 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
719 touching the internals of struct line_map. Use the public API.
721 (diagnostic_report_diagnostic): Don't use relational operator '<'
722 on virtual locations. Use linemap_location_before_p instead.
723 * input.c (expand_location): Adjust to expand to the tokens'
724 spelling location when macro location tracking is on.
727 2011-10-08 Andi Kleen <ak@linux.intel.com>
729 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
731 2011-10-13 Andi Kleen <ak@linux.intel.com>
733 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
735 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
737 PR tree-optimization/50727
738 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
739 DEF_STMT to the list of statements to be replaced by the
742 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
744 PR rtl-optimization/50615
745 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
747 2011-10-16 Jakub Jelinek <jakub@redhat.com>
749 PR tree-optimization/50596
750 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
751 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
752 vect_recog_bool_pattern.
753 (check_bool_pattern, adjust_bool_pattern_cast,
754 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
756 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
758 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
759 treat the first load of the node as the first element in its
761 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
762 necessary and possible.
763 (vect_build_slp_tree): Add new argument. Allow load groups of any size
764 in basic blocks. Keep all the loads for further permutation check.
765 Use the new argument to determine if there is a permutation. Update
767 (vect_supported_load_permutation_p): Allow subchains of interleaving
768 chains in basic block vectorization.
769 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
770 Check load permutation based on the new parameter.
771 (vect_schedule_slp_instance): Don't start from the first element in
772 interleaving chain unless the loads are permuted.
774 2011-10-15 Jan Hubicka <jh@suse.cz>
778 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
781 2011-10-15 Richard Henderson <rth@redhat.com>
783 * tree-vect-slp.c: Include langhooks.h.
784 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
785 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
786 mask creation for VEC_PERM_EXPR.
787 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
789 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
790 * Makefile.in (tree-vect-slp.o): Update dependency.
791 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
793 2011-10-15 Alan Modra <amodra@gmail.com>
796 * ifcvt.c (dead_or_predicable): Revert accidental commit with
797 HAVE_simple_return test.
799 2011-10-15 Alan Modra <amodra@gmail.com>
801 * ifcvt.c (dead_or_predicable): Disable if-conversion when
802 doing so is likely to kill a shrink-wrapping opportunity.
804 PR rtl-optimization/49941
805 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
807 * rtl.h (set_return_jump_label): Declare.
808 * function.c (set_return_jump_label): New function, extracted..
809 (thread_prologue_and_epilogue_insns): ..from here. Use it in
810 another instance to set return jump_label.
811 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
812 * reorg.c (find_end_label): Likewise.
814 2011-10-14 David S. Miller <davem@davemloft.net>
816 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
817 with a more complete cpp test.
818 * config/sparc/linux64.h: Likewise.
819 * config/sparc/linux.h: Likewise.
820 * config/sparc/sparc.opt (sparc_debug): New target variable.
821 (mdebug): New target option.
822 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
823 TARGET_DEBUG_OPTIONS): New defines.
824 * config/sparc/sparc.c (debug_target_flag_bits,
825 debug_target_flags): New functions.
826 (sparc_option_override): Add name strings back to cpu_table[].
827 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
828 out the target flags before and after override processing as well
829 as the selected cpu. If MASK_V8PLUS, make sure that the selected
832 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
835 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
836 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
837 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
838 and instruction commutative.
839 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
840 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
841 tstsi_t_zero_extract_subreg_xor_little,
842 tstsi_t_zero_extract_subreg_xor_big): New insns.
843 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
845 (*andsi_compact): Reorder alternatives so that K08 is considered first.
847 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
850 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
851 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
853 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
855 * invoke.texi (AVR Options): Avoid \leq{}.
857 2011-10-14 Kai Tietz <ktietz@redhat.com>
859 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
860 transformation the operands have compatible types.
862 2011-10-14 Jakub Jelinek <jakub@redhat.com>
864 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
865 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
866 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
867 mode iterator and any_extend code iterator.
868 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
869 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
870 also for TARGET_SSE4_1 using pmuldq insn.
871 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
872 (sse2_sse4_1): New code attr.
873 (udot_prodv4si): Macroize using any_extend code iterator.
874 (<s>dot_prodv8si): New expander.
876 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
878 * config/i386/i386.c (atom_cost): Changed cost for loading
881 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
883 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
884 change on October 11th, 2011.
886 2011-10-14 Jakub Jelinek <jakub@redhat.com>
888 * config/i386/sse.md (vec_interleave_high<mode>,
889 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
890 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
891 (ix86_expand_vec_perm_builtin_1): Call it.
893 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
895 Fix thinko from r179765
896 * config/avr/avr.c (avr_option_override): Don't override
897 flag_omit_frame_pointer if not actually needed.
899 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
902 * doc/invoke.texi (AVR Options): Document -mstrict-X.
904 * config/avr/avr.opt (-mstrict-X): New option.
905 (avr_strict_X): New variable reflecting -mstrict-X.
906 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
907 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
908 (avr_legitimate_address_p): Pass outer_code to
909 avr_reg_ok_for_addr_p and use that function in case PLUS.
910 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
911 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
912 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
914 2011-10-14 Jakub Jelinek <jakub@redhat.com>
916 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
919 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
920 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
921 Use <sseinsnmode> instead of TI in mode attr.
923 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
925 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
926 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
927 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
928 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
930 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
932 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
933 (arm_output_strex): Support strexd.
934 (arm_output_it): New helper to output it in Thumb2 mode only.
935 (arm_output_sync_loop): Support DI mode. Change comment to
936 not support const_int.
937 (arm_expand_sync): Support DI mode.
938 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
940 * config/arm/iterators.md (NARROW): move from sync.md.
941 (QHSD): New iterator for all current ARM integer modes.
942 (SIDI): New iterator for SI and DI modes only.
943 * config/arm/sync.md (sync_predtab): New mode_attr.
944 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
945 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
946 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
947 (sync_nandsi): Fold into sync_nand<mode>.
948 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
949 (sync_new_nandsi): Fold into sync_new_nand<mode>.
950 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
951 (sync_old_nandsi): Fold into sync_old_nand<mode>.
952 (sync_compare_and_swap<mode>): Support SI & DI.
953 (sync_lock_test_and_set<mode>): Likewise.
954 (sync_<sync_optab><mode>): Likewise.
955 (sync_nand<mode>): Likewise.
956 (sync_new_<sync_optab><mode>): Likewise.
957 (sync_new_nand<mode>): Likewise.
958 (sync_old_<sync_optab><mode>): Likewise.
959 (sync_old_nand<mode>): Likewise.
960 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
961 (arm_sync_lock_test_and_setsi): Likewise.
962 (arm_sync_new_<sync_optab>si): Likewise.
963 (arm_sync_new_nandsi): Likewise.
964 (arm_sync_old_<sync_optab>si): Likewise.
965 (arm_sync_old_nandsi): Likewise.
966 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
967 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
968 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
969 (arm_sync_new_nand<mode> NARROW): Likewise.
970 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
971 (arm_sync_old_nand<mode> NARROW): Likewise.
973 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
976 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
978 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
980 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
982 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
984 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
986 2011-10-14 Jakub Jelinek <jakub@redhat.com>
988 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
989 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
991 2011-10-14 Richard Guenther <rguenther@suse.de>
993 PR tree-optimization/50723
994 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
996 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
998 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
1001 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1004 * doc/invoke.texi ([Wformat-zero-length]): Update.
1006 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
1009 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
1010 build for powerpc targets. (darwin_patch_builtins): Only build for
1013 2011-10-14 Jakub Jelinek <jakub@redhat.com>
1015 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
1016 (avx_cvtdq2pd256_2): ... this.
1017 (sseunpackfltmode): New mode attr.
1018 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
1019 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
1020 using VI2_AVX2 iterator.
1021 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
1023 2011-10-13 David S. Miller <davem@davemloft.net>
1025 * config/sparc/sparc.md (plusminus): New code iterator.
1026 (plusminus_insn): New code attr.
1027 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
1028 using plusminus and plusminus_insn.
1029 (fpadd64_vis, fpsub64_vis): Likewise.
1031 2011-10-13 Richard Henderson <rth@redhat.com>
1033 * doc/md.texi (vec_perm): Document fallback to byte permutation.
1034 * genopinit.c (optabs): Add vec_perm_const.
1035 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
1036 Reject non-vector modes. Allow fallback to byte permutation.
1037 (expand_vec_perm_expr_1): Split out from ...
1038 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
1039 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
1040 * tree-vect-generic.c (lower_vec_perm): Update for name change.
1042 2011-10-13 Richard Henderson <rth@redhat.com>
1044 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
1046 * config/rs6000/spu.md (vec_permv16qi): New pattern.
1048 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
1049 * config/i386/i386-protos.h: Update.
1050 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
1051 (vec_perm_const<VEC_PERM_CONST>): New expander.
1053 * optabs.c (expand_vector_broadcast): New.
1054 (expand_binop): Expand scalar shifts of vectors to vector shifts
1055 of vectors, if the former isn't supported.
1056 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
1057 here; always simplify to scalar shift of vector if possible.
1059 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
1060 test for vector splat.
1062 2011-10-13 Jakub Jelinek <jakub@redhat.com>
1064 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
1066 2011-10-13 Jakub Jelinek <jakub@redhat.com>
1067 Richard Guenther <rguenther@suse.de>
1069 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
1070 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
1072 2011-10-13 Jakub Jelinek <jakub@redhat.com>
1074 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
1075 * config/i386/i386.c (ix86_build_const_vector): Handle
1076 also V32QI, V16QI, V16HI and V8HI modes.
1077 (emit_reduc_half): New function.
1078 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
1079 Use emit_reduc_half helper function.
1081 2011-10-13 Lawrence Crowl <crowl@google.com>
1082 Diego Novillo <dnovillo@google.com>
1084 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
1085 (input_function): ... here.
1086 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
1087 (output_function): ... here.
1089 2011-10-13 Gabriel Charette <gchare@google.com>
1090 Diego Novillo <dnovillo@google.com>
1092 * streamer-hooks.h (struct streamer_hooks): Add hooks
1093 input_location and output_location.
1094 * lto-streamer-in.c (lto_input_location): Use
1095 streamer_hooks.input_location, if set.
1096 * lto-streamer-out.c (lto_output_location): Use
1097 streamer_hooks.output_location, if set.
1099 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
1101 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
1102 * config/sparc/sparc.opt (mfix-at697f): New option.
1103 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1104 (sparc_reorg): New function.
1106 2011-10-13 Richard Guenther <rguenther@suse.de>
1108 PR tree-optimization/50712
1109 * ipa-split.c (split_function): Always re-gimplify parameters
1110 when they are not gimple vals before passing them. Properly
1111 check for type compatibility.
1113 2011-10-13 Tom de Vries <tom@codesourcery.com>
1115 * function.c (gimplify_parameters): Set number of arguments of call to
1116 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
1118 2011-10-13 Tom de Vries <tom@codesourcery.com>
1120 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
1121 for static const strings.
1122 * varasm.c (build_constant_desc): Generate the memory location of the
1123 constant using gen_const_mem.
1125 2011-10-13 Richard Guenther <rguenther@suse.de>
1127 PR tree-optimization/50698
1128 * tree-data-ref.c (split_constant_offset_1): Also process
1131 2011-10-12 David S. Miller <davem@davemloft.net>
1133 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
1134 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
1136 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
1138 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
1139 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
1140 Reimplement as unspecs and remove inaccurate comments.
1141 (vis3_shift_patname): New code attr.
1142 (<vis3_shift_insn><vbits>_vis): Rename to
1143 "v<vis3_shift_patname><mode>3".
1144 (vis3_addsub_ss_patname): New code attr.
1145 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
1146 "<vis3_addsub_ss_patname><mode>3".
1147 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
1148 accommodate pattern name changes.
1150 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
1151 to zero when assembler lacks support for such instructions.
1152 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
1153 and MASK_FMAF in defaults when assembler lacks necessary support.
1155 2011-10-12 Jakub Jelinek <jakub@redhat.com>
1157 * config/i386/sse.md (vec_unpacks_lo_<mode>,
1158 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
1159 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
1160 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
1161 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
1163 * config/i386/sse.md (vec_avx2): New mode_attr.
1164 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
1165 (mul<mode>3): ... this.
1167 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
1168 * config/i386/i386.c (ix86_expand_vec_perm): Handle
1169 V16QImode and V32QImode for TARGET_AVX2.
1170 (MAX_VECT_LEN): Increase to 32.
1171 (expand_vec_perm_blend): Add support for 32-byte integer
1172 vectors with TARGET_AVX2.
1173 (valid_perm_using_mode_p): New function.
1174 (expand_vec_perm_pshufb): Add support for 32-byte integer
1175 vectors with TARGET_AVX2.
1176 (expand_vec_perm_vpshufb2_vpermq): New function.
1177 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
1178 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
1180 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
1181 and expand_vec_perm_vpshufb2_vpermq_even_odd.
1182 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
1183 32-byte integer vector modes.
1184 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
1185 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
1186 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
1188 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
1189 match_dup, instead add 4 new operands and require they have
1190 right cross-lane values.
1191 (avx2_permv4di): Change into define_expand.
1192 (avx2_permv4di_1): New instruction.
1193 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
1194 for "xm" constrained operand.
1195 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
1197 * config/i386/sse.md (avx2_gathersi<mode>,
1198 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
1199 match_scratch, change memory_operand to register_operand,
1200 add (mem:BLK (scratch)) use.
1201 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
1202 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
1203 add earlyclobber to the output operand and match_scratch,
1204 add (mem:BLK (scratch)) use, change the other mem to match_operand.
1205 Use %p6 instead of %c6 in the pattern.
1206 * config/i386/i386.c (ix86_expand_builtin): Adjust for
1207 operand 2 being a Pmode register_operand instead of memory_operand.
1209 2011-10-12 Kai Tietz <ktietz@redhat.com>
1211 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
1213 2011-10-12 Steve Ellcey <sje@cup.hp.com>
1215 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
1217 2011-10-12 Richard Guenther <rguenther@suse.de>
1219 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
1220 of the first store we visit in a basic-block.
1221 (get_continuation_for_phi): Search for a candidate VUSE that
1222 might dominates all others. Do pairwise disambiguation against
1225 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
1227 PR tree-optimization/50189
1228 * tree-vrp.c (extract_range_from_assert): Use the type of
1229 the variable, not the limit.
1231 2011-10-12 Richard Guenther <rguenther@suse.de>
1233 PR tree-optimization/50700
1234 * tree-object-size.c (addr_object_size): Simplify and treat
1235 MEM_REF bases consistently.
1237 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
1239 * function.c (prepare_shrink_wrap, bb_active_p): New function.
1240 (thread_prologue_and_epilogue_insns): Use bb_active_p.
1241 Call prepare_shrink_wrap, then recompute bb_active_p for the
1244 2011-10-12 Joseph Myers <joseph@codesourcery.com>
1247 * convert.c (convert_to_integer): Do not narrow operands of
1248 pointer subtraction.
1250 2011-10-12 Nick Clifton <nickc@redhat.com>
1252 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
1253 emit a .eabi_attribute assembler directive, possibly with a
1255 * config/arm/arm.c (arm_file_start): Use the new macro.
1256 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
1258 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
1261 * config/avr/avr.md (*movqi): Rename to movqi_insn.
1262 (*call_insn): Rename to call_insn.
1263 (*call_value_insn): Rename to call_value_insn.
1264 * config/avr/avr.c (avr_2word_insn_p): New static function.
1265 (jump_over_one_insn_p): Use it.
1267 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
1269 * expr.h (copy_blkmode_to_reg): Declare.
1270 * expr.c (copy_blkmode_to_reg): New function.
1271 (expand_assignment): Don't expand register RESULT_DECLs before
1272 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
1273 RESULT_DECL register.
1274 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
1275 * stmt.c (expand_return): Move BLKmode-to-register code into
1276 copy_blkmode_to_reg.
1278 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
1281 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
1282 (mov<F:mode>cc): Likewise.
1284 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1286 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
1288 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1290 * tree.h (built_in_decls): Delete old interface with two parallel
1291 arrays to hold standard builtin declarations, and replace it with
1292 a function based interface that can support creating builtins on
1293 the fly in the future. Change all uses, and poison the old
1294 names. Make sure 0 is not a legitimate builtin index.
1295 (implicit_built_in_decls): Ditto.
1296 (built_in_info): Ditto.
1297 (BUILTIN_VALID_P): Ditto.
1298 (builtin_decl_explicit): Ditto.
1299 (builtin_decl_implicit): Ditto.
1300 (set_builtin_decl): Ditto.
1301 (set_builtin_decl_implicit_p): Ditto.
1302 (builtin_decl_explicit_p): Ditto.
1303 (builtin_decl_implicit_p): Ditto.
1304 * tree-complex.c (expand_complex_libcall): Ditto.
1305 * tree-loop-distribution.c (generate_memset_zero): Ditto.
1306 * tree-ssa-strlen.c (get_string_length): Ditto.
1307 (handle_builtin_strcpy): Ditto.
1308 (handle_builtin_strcat): Ditto.
1309 * tree.c (iterative_hash_expr): Ditto.
1310 (local_define_builtin): Ditto.
1311 (build_common_builtin_nodes): Ditto.
1312 * builtins.c (built_in_decls): Ditto.
1313 (implicit_built_in_decls): Ditto.
1314 (built_in_info): Ditto
1315 (expand_builtin_classify_type): Ditto.
1316 (mathfn_built_in_1): Ditto.
1317 (expand_builtin_cexpi): Ditto.
1318 (expand_builtin_mempcpy_args): Ditto.
1319 (expand_builtin_stpcpy): Ditto.
1320 (gimplify_va_arg_expr): Ditto.
1321 (expand_builtin_sync_operation): Ditto.
1322 (build_builtin_expect_predicate): Ditto.
1323 (fold_builtin_memory_op): Ditto.
1324 (fold_builtin_strcpy): Ditto.
1325 (fold_builtin_stpcpy): Ditto.
1326 (fold_builtin_strncpy): Ditto.
1327 (fold_builtin_interclass_mathfn): Ditto.
1328 (fold_builtin_classify): Ditto.
1329 (fold_builtin_2): Ditto.
1330 (fold_builtin_strstr): Ditto.
1331 (fold_builtin_strrchr): Ditto.
1332 (fold_builtin_strpbrk): Ditto.
1333 (fold_builtin_strcat): Ditto.
1334 (fold_builtin_strncat): Ditto.
1335 (fold_builtin_strcspn): Ditto.
1336 (fold_builtin_fputs): Ditto.
1337 (fold_builtin_sprintf): Ditto.
1338 (fold_builtin_snprintf): Ditto.
1339 (expand_builtin_memory_chk): Ditto.
1340 (fold_builtin_memory_chk): Ditto.
1341 (fold_builtin_stxcpy_chk): Ditto.
1342 (fold_builtin_strncpy_chk): Ditto.
1343 (fold_builtin_strcat_chk): Ditto.
1344 (fold_builtin_strncat_chk): Ditto.
1345 (fold_builtin_sprintf_chk_1): Ditto.
1346 (fold_builtin_snprintf_chk_1): Ditto.
1347 (fold_builtin_printf): Ditto.
1348 (fold_builtin_fprintf): Ditto.
1349 (fold_call_stmt): Ditto.
1350 (set_builtin_user_assembler_name): Ditto.
1351 * tree-emutls.c (emutls_common_1): Ditto.
1352 * omp-low.c (scan_omp): Ditto.
1353 (lower_rec_input_clauses): Ditto.
1354 (lower_reduction_clauses): Ditto.
1355 (expand_parallel_call): Ditto.
1356 (expand_task_call): Ditto.
1357 (maybe_catch_exception): Ditto.
1358 (optimize_omp_library_calls): Ditto.
1359 (expand_omp_for_generic): Ditto.
1360 (expand_omp_for_static_nochunk): Ditto.
1361 (expand_omp_for_static_chunk): Ditto.
1362 (expand_omp_sections): Ditto.
1363 (expand_omp_atomic_fetch_op): Ditto.
1364 (expand_omp_atomic_pipeline): Ditto.
1365 (expand_omp_atomic_mutex): Ditto.
1366 (lower_omp_single_simple): Ditto.
1367 (lower_omp_single_copy): Ditto.
1368 (lower_omp_master): Ditto.
1369 (lower_omp_ordered): Ditto.
1370 (lower_omp_critical): Ditto.
1371 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
1372 * builtins.c (DEF_BUILTIN_STUB): Ditto.
1373 (BUILT_IN_NONE): Ditto.
1374 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
1375 * gimple-low.c (lower_function_body): Ditto.
1376 (lower_builtin_setjmp): Ditto.
1377 * c-decl.c (merge_decls): Ditto.
1378 * tree-eh.c (lower_resx): Ditto.
1379 (lower_resx): Ditto.
1380 (lower_eh_dispatch): Ditto.
1381 * function (gimplify_parameters): Ditto.
1382 * c-typeck.c (build_function_call_vec): Ditto.
1383 * gimplify.c (build_stack_save_restore): Ditto.
1384 (gimplify_vla_decl): Ditto.
1385 (gimplify_modify_expr_to_memcpy): Ditto.
1386 (gimplify_modify_expr_to_memset): Ditto.
1387 (gimplify_variable_sized_compare): Ditto.
1388 (gimplify_function_tree): Ditto.
1389 * calls.c (emit_call_1): Ditto.
1390 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
1391 * tree-nested.c (convert_nl_goto_reference): Ditto.
1392 (convert_tramp_reference_op): Ditto.
1393 (finalize_nesting_tree_1): Ditto.
1394 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1395 (tree_ssa_prefetch_arrays): Ditto.
1396 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
1397 * system.h (built_in_decls): Ditto.
1398 (implicit_built_in_decls): Ditto.
1399 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1400 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
1401 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1402 (ix86_veclibabi_svml): Ditto.
1403 (ix86_veclibabi_acml): Ditto.
1404 * config/vms/vms.c (vms_patch_builtins): Ditto.
1405 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
1406 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
1407 (rs6000_builtin_vectorized_libmass): Ditto.
1408 (rs6000_init_builtins): Ditto.
1409 * config/darwin.c (darwin_override_options): Ditto.
1410 (darwin_patch_builtin): Ditto.
1411 (darwin_rename_builtins): Ditto.
1412 * config/pa/pa.c (pa_init_builtins): Ditto.
1414 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1416 * tree.h (copy_ref_info): Expose existing function.
1417 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
1418 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
1420 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
1422 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
1424 (avr_regno_mode_code_ok_for_base_p): New prototype.
1425 * config/avr/avr.h (BASE_REG_CLASS): Remove.
1426 (REGNO_OK_FOR_BASE_P): Remove.
1427 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
1428 (REG_OK_FOR_BASE_STRICT_P): Remove.
1429 (MODE_CODE_BASE_REG_CLASS): New define.
1430 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
1431 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
1432 (avr_regno_mode_code_ok_for_base_p): New function.
1433 (avr_reg_ok_for_addr_p): New static function.
1434 (avr_legitimate_address_p): Use it. Beautify.
1436 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
1439 * config/avr/avr.md (cc): Add out_plus attribute alternative.
1440 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
1441 avr_out_plus for all CONST_INT addends.
1442 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
1443 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
1445 (avr_out_plus_1): Change prototype and report effect on cc0.
1446 (avr_out_plus): Ditto.
1447 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
1449 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
1451 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
1454 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1456 * doc/invoke.texi: Document new warning.
1457 * common.opt (Wvector-operation-performance): Define new warning.
1458 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
1460 (exapnd_vector_parallel): Warn about expanded vector operation.
1461 (lower_vec_shuffle): Warn about expanded vector operation.
1462 * c-typeck.c (c_build_vec_perm_expr): Store correct location
1463 when creating VEC_PERM_EXPR.
1465 2011-10-11 Richard Guenther <rguenther@suse.de>
1467 PR tree-optimization/50204
1468 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
1469 two argument handling from ...
1470 (get_continuation_for_phi): ... here. Handle arbitrary number
1473 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
1475 * modulo-sched.c: Fix comment typo. Mention the possibility
1476 of using scheduling windows of II+1 cycles.
1478 2011-10-11 Tristan Gingold <gingold@adacore.com>
1480 * doc/invoke.texi (C Dialect Options): Document
1481 -fallow-parameterless-variadic-functions.
1482 * c-parser.c (c_parser_parms_list_declarator): Handle it.
1484 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1486 * config/avr/avr.c (avr_option_override): Set
1487 flag_omit_frame_pointer to 0 if frame pointer is needed for unwinding.
1489 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
1492 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
1493 optab_index to enum direct_optab_index.
1494 (vec_perm_optab): Update.
1496 2011-10-10 Anatoly Sokolov <aesok@post.ru>
1498 * config/cris/cris.c (cris_preferred_reload_class): New function.
1499 (TARGET_PREFERRED_RELOAD_CLASS): Define.
1500 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
1502 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1504 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
1506 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
1507 (*tablejump_enh, *tablejump): Remove insns.
1508 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
1509 EIJMP for indirect jump. Use LPM Z+ where available.
1511 2011-10-10 Richard Henderson <rth@redhat.com>
1513 * doc/md.texi (vec_perm_const): Fix typo in cindex.
1515 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
1516 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
1518 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
1520 2011-10-10 Richard Guenther <rguenther@suse.de>
1523 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1524 mark symbols for renaming. Append the VUSE to all statements
1525 that possibly can have one.
1527 2011-10-10 Richard Guenther <rguenther@suse.de>
1529 * ipa-split.c (pass_split_functions): Add verification TODOs.
1530 (pass_feedback_split_functions): Likewise.
1532 2011-10-10 Richard Guenther <rguenther@suse.de>
1535 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
1536 only when optimizing.
1538 2011-10-10 Nick Clifton <nickc@redhat.com>
1541 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
1542 df_get_live_out instead of accessing the bitmaps directly.
1543 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
1544 df_live_add_problem and df_analyze.
1546 2011-10-10 Michael Matz <matz@suse.de>
1549 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
1551 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1553 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
1554 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
1555 (node_sched_params): Remove first_reg_move and nreg_moves.
1556 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
1557 (update_node_sched_params): Move up file.
1558 (print_node_sched_params): Print the stage. Don't dump info related
1559 to first_reg_move and nreg_moves.
1560 (set_columns_for_row): New function.
1561 (set_columns_for_ps): Move up file and use set_columns_for_row.
1562 (schedule_reg_move): New function.
1563 (schedule_reg_moves): Call extend_node_sched_params and
1564 schedule_reg_move. Extend size of uses bitmap. Initialize
1565 num_consecutive_stages. Return false if a move could not be
1567 (apply_reg_moves): Don't emit moves here.
1568 (permute_partial_schedule): Handle register moves.
1569 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
1570 to the same stage-count test as ddg nodes.
1571 (generate_prolog_epilog): Update calls accordingly.
1572 (sms_schedule): Allow move-scheduling to add a new first stage.
1574 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1576 * modulo-sched.c (ps_insn): Adjust comment.
1577 (ps_reg_move_info): New structure.
1578 (partial_schedule): Add reg_moves field.
1579 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
1580 (node_sched_params): Turn first_reg_move into an identifier.
1581 (ps_reg_move): New function.
1582 (ps_rtl_insn): Cope with register moves.
1583 (ps_first_note): Adjust comment and assert that the instruction
1584 isn't a register move.
1585 (node_sched_params): Replace with...
1586 (node_sched_param_vec): ...this vector.
1587 (set_node_sched_params): Adjust accordingly.
1588 (print_node_sched_params): Take a partial schedule instead of a ddg.
1589 Use ps_rtl_insn and ps_reg_move.
1590 (generate_reg_moves): Rename to...
1591 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
1592 move in the partial schedule, but don't emit it here. Don't perform
1593 register substitutions here either.
1594 (apply_reg_moves): New function.
1595 (duplicate_insns_of_cycles): Use register indices directly,
1596 rather than finding instructions using PREV_INSN. Use ps_reg_move.
1597 (sms_schedule): Call schedule_reg_moves before committing to
1598 a partial schedule. Try the next ii if the schedule fails.
1599 Use apply_reg_moves instead of generate_reg_moves. Adjust
1600 call to print_node_sched_params. Free node_sched_param_vec
1601 instead of node_sched_params.
1602 (create_partial_schedule): Initialize reg_moves.
1603 (free_partial_schedule): Free reg_moves.
1605 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1607 * modulo-sched.c (ps_insn): Replace node field with an identifier.
1608 (SCHED_ASAP): Replace with..
1609 (NODE_ASAP): ...this macro.
1610 (SCHED_PARAMS): New macro.
1611 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
1612 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
1613 (node_sched_params): Remove asap.
1614 (ps_rtl_insn, ps_first_note): New functions.
1615 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
1617 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
1618 (generate_reg_moves): Pass ids to the SCHED_* macros.
1619 (update_node_sched_params): Take a ps insn identifier rather than
1620 a node as parameter. Use ps_rtl_insn.
1621 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
1622 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
1623 (optimize_sc): Update for above field and SCHED_* macro changes.
1624 Update calls to try_scheduling_node_in_cycle and
1625 update_node_sched_params.
1626 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
1627 macro changes. Use ps_rtl_insn and ps_first_note.
1628 (sms_schedule): Pass ids to the SCHED_* macros.
1629 (get_sched_window): Adjust for above field and SCHED_* macro changes.
1630 Use NODE_ASAP instead of SCHED_ASAP.
1631 (try_scheduling_node_in_cycle): Remove node parameter. Update
1632 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
1633 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
1634 (ps_insert_empty_row): Adjust for above field changes.
1635 (compute_split_row): Use ids rather than nodes.
1636 (verify_partial_schedule): Adjust for above field changes.
1637 (print_partial_schedule): Use ps_rtl_insn.
1638 (create_ps_insn): Take an id rather than a node.
1639 (ps_insn_find_column): Adjust for above field changes.
1641 (ps_insn_advance_column): Adjust for above field changes.
1642 (add_node_to_ps): Remove node parameter. Update call to
1644 (ps_has_conflicts): Use ps_rtl_insn.
1645 (ps_add_node_check_conflicts): Replace node parameter than an id.
1647 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1649 * modulo-sched.c (undo_replace_buff_elem): Delete.
1650 (generate_reg_moves): Don't build and return an undo list.
1651 (free_undo_replace_buff): Delete.
1652 (sms_schedule): Adjust call to generate_reg_moves.
1653 Don't call free_undo_replace_buff.
1655 2011-10-10 Matthias Klose <doko@ubuntu.com>
1657 * common/config/m32c: Remove empty directory.
1659 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1661 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
1663 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
1666 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
1667 atmega164a to 0x100.
1669 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
1671 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
1672 the replacement if the conversion to the LHS type is not useless.
1674 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
1676 PR tree-optimization/50635
1677 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
1678 DEF_STMT to the list of statements to be replaced by the
1680 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
1682 2011-10-09 Anatoly Sokolov <aesok@post.ru>
1684 * system.h: Commit forgotten hunk in previous patch.
1685 (OUTPUT_ADDR_CONST_EXTRA): Poison.
1687 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
1690 * doc/objc.texi (Garbage Collection): Updated example to protect
1691 +initialize against execution in subclasses.
1693 2011-10-07 Richard Henderson <rth@redhat.com>
1695 * doc/extend.texi (__builtin_shuffle): Improve the description to
1696 include the modulus of the selector. Mention OpenCL.
1697 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
1699 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
1700 * genopinit.c (optabs): Rename vshuffle to vec_perm.
1701 * c-typeck.c (c_build_vec_perm_expr): Rename from
1702 c_build_vec_shuffle_expr. Update for name changes.
1703 * optabs.c (expand_vec_perm_expr_p): Rename from
1704 expand_vec_shuffle_expr_p.
1705 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
1706 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
1707 (vec_perm_optab): Rename from vshuffle_optab.
1708 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
1709 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
1710 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
1712 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
1713 ix86_expand_vshuffle.
1714 * config/i386/i386-protos.h: Update.
1715 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
1716 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
1718 2011-10-07 Richard Henderson <rth@redhat.com>
1720 * config/i386/predicates.md (avx2_pblendw_operand): New.
1721 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
1722 (avx2_pblendw, *avx2_pblendw): New expander and insn.
1724 2011-10-07 Richard Henderson <rth@redhat.com>
1726 * config/i386/i386.c (bdesc_args): Update code for
1727 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
1728 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
1729 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
1730 * config/i386/sse.md (mode iterator V16): Add V2TI.
1731 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
1732 (mode attr ssse3_avx2): Add V2TI.
1733 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
1735 2011-10-07 David S. Miller <davem@davemloft.net>
1738 * configure.ac: Add .register directives to VIS3 test.
1739 * configure: Regenerate.
1741 2011-10-07 Richard Henderson <rth@redhat.com>
1743 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
1745 2011-10-07 Richard Henderson <rth@redhat.com>
1748 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
1750 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
1752 * config/arm/predicates.md (shift_amount_operand): Remove constant
1754 (shift_operator): Check range of constants for all shift operators.
1756 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1758 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
1759 Load GOT pointer for non-pic builds.
1760 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
1761 (s390_emit_call): Likewise.
1763 2011-10-07 Tom de Vries <tom@codesourcery.com>
1766 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
1767 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
1769 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
1770 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
1771 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1772 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1773 * tree-ssa-ccp.c (evaluate_stmt): Set align for
1774 BUILT_IN_ALLOCA_WITH_ALIGN.
1775 (fold_builtin_alloca_for_var): Rename to ...
1776 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
1777 BUILT_IN_ALLOCA_WITH_ALIGN argument.
1778 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
1779 fold_builtin_alloca_with_align.
1780 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1781 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
1783 * ipa-pure-const.c (special_builtin_state): Handle
1784 BUILT_IN_ALLOCA_WITH_ALIGN.
1785 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
1786 (call_may_clobber_ref_p_1): Same.
1787 * function.c (gimplify_parameters): Lower vla to
1788 BUILT_IN_ALLOCA_WITH_ALIGN.
1789 * gimplify.c (gimplify_vla_decl): Same.
1790 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1791 * tree-mudflap.c (mf_xform_statements): Same.
1792 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1793 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
1794 * varasm.c (incorporeal_function_p): Same.
1795 * tree-object-size.c (alloc_object_size): Same.
1796 * gimple.c (gimple_build_call_from_tree): Same.
1798 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
1800 * function.c (frame_required_for_rtx): Remove function.
1801 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
1802 changed. Compute a set of mentioned registers and compare against
1803 the new arg rather than calling frame_required_for_rtx.
1804 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
1805 reg set. Convert the unconverted_simple_returns mechanism to store
1806 jump insns rather than their basic blocks. Also check the
1807 orig_entry_edge destination for new blocks.
1809 2011-10-07 Jakub Jelinek <jakub@redhat.com>
1811 PR tree-optimization/50650
1812 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
1813 call vect_is_simple_cond here, instead fail if cond_expr isn't
1814 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
1815 for cond_expr's first operand.
1816 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
1817 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
1819 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1821 * config/s390/s390.md (DWH, dwh): New mode macros.
1822 ("umulsidi3"): Extend to support "umulditi3" as well.
1824 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
1825 H.J. Lu <hongjiu.lu@intel.com>
1828 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
1829 integer PLUS RTX to a register to improve address combine.
1831 2011-10-06 Richard Henderson <rth@redhat.com>
1833 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
1834 parameter; use it to decide whether to merge two notes.
1835 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
1836 for the deallocation case as well.
1838 2011-10-06 Anatoly Sokolov <aesok@post.ru>
1840 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
1841 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
1842 * doc/tm.texi: Regenerate.
1843 * target.def (output_addr_const_extra): Use
1844 hook_bool_FILEptr_rtx_false.
1845 * targhooks.c (default_asm_output_addr_const_extra): Remove.
1846 * targhooks.h (default_asm_output_addr_const_extra): Remove.
1847 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
1848 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
1850 2011-10-06 David S. Miller <davem@davemloft.net>
1852 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
1853 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
1854 SI mode 64-bit code gen case explicitly zero-extend and truncate.
1855 (*popcount<mode>_sp64): Split up into...
1856 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
1857 SImode case use truncate.
1858 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
1859 subtract so the compiler can optimize it.
1860 (SIDI): Remove unused mode iterator.
1862 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1864 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
1865 on the orig_entry_edge. Don't account for it in prologue_clobbered.
1867 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1869 PR tree-optimization/50596
1870 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
1871 (NUM_PATTERNS): Change to 6.
1872 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
1874 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
1875 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
1876 if it already has one, and don't set STMT_VINFO_VECTYPE in it
1877 if it is already set.
1878 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
1879 COND_EXPR in pattern stmts.
1880 (vect_is_simple_cond): No longer static.
1882 2001-10-06 Richard Henderson <rth@redhat.com>
1884 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
1885 * config/i386/sse.md (sseshuffint): Remove.
1886 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
1887 (VSHUFFLE_AVX2): New mode iterator.
1888 (vshuffle<mode>): Use it.
1889 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1891 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1892 for vector_all_ones_operand.
1893 (ix86_expand_int_vcond): Distinguish between comparison mode
1894 and data mode. Allow them to differ.
1895 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1897 2001-10-06 Richard Henderson <rth@redhat.com>
1899 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1900 mask operand. Tidy the code.
1902 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1904 * tree-vect-patterns.c (vect_pattern_recog_1): Use
1905 vect_recog_func_ptr typedef for the first argument.
1906 (vect_pattern_recog): Rename vect_recog_func_ptr variable
1907 to vect_recog_func, use vect_recog_func_ptr typedef for it.
1909 PR tree-optimization/49279
1910 * tree-ssa-structalias.c (find_func_aliases): Don't handle
1912 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1913 restrict propagation.
1914 * tree-ssa.c (useless_type_conversion_p): Don't return false
1915 if TYPE_RESTRICT differs.
1917 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1919 * function.c (thread_prologue_and_epilogue_insns): Build a vector
1920 of unconverted simple return blocks rather than trying to
1921 recompute them later based on bb_flags bitmap tests.
1923 2011-10-06 Michael Matz <matz@suse.de>
1925 * tree-flow.h (get_var_ann): Don't declare.
1926 * tree-flow-inline.h (get_var_ann): Remove.
1927 (set_is_used): Use var_ann, not get_var_ann.
1928 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1929 * tree-profile.c (gimple_gen_edge_profiler): Call
1930 find_referenced_var_in.
1931 (gimple_gen_interval_profiler): Ditto.
1932 (gimple_gen_pow2_profiler): Ditto.
1933 (gimple_gen_one_value_profiler): Ditto.
1934 (gimple_gen_average_profiler): Ditto.
1935 (gimple_gen_ior_profiler): Ditto.
1936 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1937 (gimple_gen_ic_func_profiler): Call add_referenced_var.
1938 * tree-mudflap.c (execute_mudflap_function_ops): Call
1941 2011-10-06 Jakub Jelinek <jakub@redhat.com>
1943 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1944 don't set SSA_NAME_DEF_STMT that has been already set by
1945 gimple_build_assign_with_ops.
1946 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1947 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1950 * tree.h (avoid_folding_inline_builtin): New prototype.
1951 * builtins.c (avoid_folding_inline_builtin): No longer static.
1952 * gimple-fold.c (gimple_fold_builtin): Give up if
1953 avoid_folding_inline_builtin returns true.
1955 2011-10-06 Richard Guenther <rguenther@suse.de>
1957 * tree-vect-generic.c (vector_element): Look at previous
1960 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
1963 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1964 __powerpc__, __PPC__, __unix__.
1966 2011-10-06 Michael Matz <matz@suse.de>
1968 * i386/i386.opt (recip_mask, recip_mask_explicit,
1969 x_recip_mask_explicit): New variables and cl_target member.
1970 (mrecip=): New option.
1971 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1972 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1973 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1974 TARGET_RECIP_VEC_SQRT): New tests.
1975 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1976 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1977 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1978 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
1979 * i386/i386.c (ix86_option_override_internal): Set recip_mask
1980 for -mrecip and -mrecip=options.
1981 (ix86_function_specific_save): Save recip_mask_explicit.
1982 (ix86_function_specific_restore): Restore recip_mask_explicit.
1984 * doc/invoke.texi (ix86 Options): Document the new option.
1986 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
1989 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
1991 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
1994 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
1995 output of a previous pass through legitimize_reload_address.
1996 Do not attempt to optimize addresses if the base register is
1997 equivalent to a constant.
1999 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2001 * function.c (thread_prologue_and_epilogue_insns): Mark
2002 last_bb_active as possibly unused. It is unused for targets which
2003 do neither have "return" nor "simple_return" expanders.
2005 2011-10-06 Richard Guenther <rguenther@suse.de>
2007 * fold-const.c (fold_ternary_loc): Also fold non-constant
2008 vector CONSTRUCTORs. Make more efficient.
2009 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
2010 (cprop_into_stmt): Don't propagate into virtual operands.
2011 (optimize_stmt): Really dump original statement.
2013 2011-10-06 Nick Clifton <nickc@redhat.com>
2015 * config/rx/rx.md (smin3): Revert previous delta.
2017 2011-10-06 Richard Guenther <rguenther@suse.de>
2019 PR tree-optimization/38884
2020 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
2021 reads from aggregate SSA names.
2023 2011-10-05 Jakub Jelinek <jakub@redhat.com>
2025 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
2026 argument, truncate it at the beginning instead of allocating there
2027 and freeing at the end.
2028 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
2029 pass its address to vect_pattern_recog_1.
2031 2011-10-05 David S. Miller <davem@davemloft.net>
2033 * config/sparc/sparc.opt (POPC): New option.
2034 * doc/invoke.texi: Document it.
2035 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
2036 default on Niagara-2 and later.
2037 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2038 * config/sparc/sparc.md (SIDI): New mode iterator.
2039 (ffsdi2): Delete commented out pattern and comments.
2040 (popcount<mode>2, clz<mode>2): New expanders.
2041 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
2042 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
2044 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2047 * c-tree.h (c_expr_t): New typedef for struct c_expr.
2048 (C_EXPR_APPEND): New macro.
2049 * c-parser.c (c_parser_get_builtin_args): Preserve
2050 original_tree_code of c_expr structure.
2051 (c_parser_postfix_expression): Adjust to the new function.
2053 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
2055 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
2056 if profiling after the prologue.
2058 2011-10-05 Jakub Jelinek <jakub@redhat.com>
2060 PR tree-optimization/50613
2061 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
2062 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
2063 and if it is neither that not SSA_NAME, give up.
2065 2011-10-05 Richard Henderson <rth@redhat.com>
2067 * tree-vect-generic.c (vector_element): Never fail. Use
2068 build_zero_cst. Tidy up type references.
2069 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
2070 code duplication. Do update_stmt here ...
2071 (expand_vector_operations_1): ... not here.
2073 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
2074 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
2075 duplication. Handle V2DI without SSE4.1.
2076 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
2077 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
2079 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
2081 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
2082 of "found". Simplify return value calculation.
2083 (distance_agu_use): Ditto.
2085 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
2088 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
2089 if the function was not shrink-wrapped.
2090 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
2092 * function.c (thread_prologue_and_epilogue_insns): Make sure the
2093 shrink_wrapped flag is set even if there is no dump file.
2095 2011-10-05 DJ Delorie <dj@redhat.com>
2096 Nick Clifton <nickc@redhat.com>
2098 * config/rx/rx.opt (mpid): Define.
2099 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
2100 (MULTILIB_DIRNAMES): Add pid.
2101 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
2102 (rx_num_interrupt_regs): New variable.
2103 (rx_gp_base_regnum): New function. Returns the number of the
2104 small data area register.
2105 (rx_pid_base_regnum): New function. Returns the number of the pid
2107 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
2108 (rx_pid_data_operand): New function. Returns whether an object is
2109 in the position independent data area.
2110 (rx_legitimize_address): New function. Puts undecided PID
2111 objects in the PID data area.
2112 (rx_is_legitimate_address): Add support for PID operands.
2113 (rx_print_operand_address): Likewise.
2114 (rx_print_operand): Likewise.
2115 (rx_maybe_pidify_operand): New function. Determine if an operand
2116 is suitable for PID addressing.
2117 (rx_gen_move_template): Add PID support.
2118 (rx_conditional_register_usage): Likewise.
2119 (rx_option_override): Initialise rx_num_interrupt_regs.
2120 (rx_is_legitimate_constant): Add support for PID constants.
2121 (TARGET_LEGITIMIZE_ADDRESS): Define.
2122 * config/rx/constraints.md (Rpid): Define.
2124 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
2125 (tablejump): Add PID support.
2127 (mov<>_internal): Likewise.
2128 (addsi3): Convert to an expander. Add PID support.
2129 (pid_addr): New pattern.
2130 * config/rx/rx.h (CPP_SPEC): Define.
2131 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
2132 (CASE_VECTOR_PC_RELATIVE): Define.
2133 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
2134 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
2135 * doc/invoke.texi (RX Options): Document -mpid command line option.
2137 2011-10-05 Richard Guenther <rguenther@suse.de>
2139 PR tree-optimization/38885
2140 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
2143 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
2145 * doc/invoke.texi (-fshrink-wrap): Document.
2146 * opts.c (default_options_table): Add it.
2147 * common.opt (fshrink-wrap): Add.
2148 * function.c (emit_return_into_block): Remove useless declaration.
2149 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
2150 requires_stack_frame_p, gen_return_pattern): New static functions.
2151 (emit_return_into_block): New arg simple_p. All callers changed.
2152 Use gen_return_pattern.
2153 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
2154 * config/i386/i386.md (return): Expand into a simple_return.
2155 (simple_return): New expander):
2156 (simple_return_internal, simple_return_internal_long,
2157 simple_return_pop_internal_long, simple_return_indirect_internal):
2158 Renamed from return_internal, return_internal_long,
2159 return_pop_internal_long and return_indirect_internal; changed to use
2161 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
2163 (ix86_pad_returns): Likewise.
2164 * function.h (struct rtl_data): Add member shrink_wrapped.
2165 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
2166 are not jumps or sibcalls can't be compared.
2168 2011-10-05 Richard Guenther <rguenther@suse.de>
2170 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
2172 (simplify_unary_expression): Handle BIT_FIELD_REFs.
2173 (try_to_simplify): Handle BIT_FIELD_REFs.
2175 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
2177 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
2178 * config/avr/avr.c (avr_out_addto_sp): New function.
2179 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
2180 * config/avr/avr.md (adjust_len): Add "addto_sp".
2181 (*movhi_sp): Remove insn.
2182 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
2184 2011-10-05 Richard Guenther <rguenther@suse.de>
2186 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
2187 with an embedded expression valueize and fold that as well.
2188 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
2189 results from gimple_fold_stmt_to_constant_1.
2191 2011-10-05 Nick Clifton <nickc@redhat.com>
2193 * config/rx/rx.md (tablejump): Add missing label.
2194 (adddi3_internal): Mark operand 0 as early-clobbered.
2195 (smaxsi3): Revert previous delta.
2196 (adc_internal): Fix whitespace in generated asm.
2197 (adc_flags): Likewise.
2199 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2201 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
2202 with the new widening_optab_handler.
2204 2011-10-05 Richard Guenther <rguenther@suse.de>
2206 PR tree-optimization/50609
2207 * gimple-fold.c (fold_array_ctor_reference): Also handle
2208 vector typed constructors.
2209 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
2210 for vector typed constructors.
2212 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
2214 * config/i386/i386.c (ix86_emit_binop): New static function.
2215 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
2217 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
2219 2011-10-04 David S. Miller <davem@davemloft.net>
2221 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
2222 UNSPEC_XMUL): New unspecs.
2223 (muldi3_v8plus): Use output_v8plus_mult.
2224 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
2225 New VIS 3.0 combiner patterns.
2226 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
2227 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
2228 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
2229 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
2231 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
2232 (output_v8plus_mult): New function.
2233 * config/sparc/sparc-protos.h: Declare it.
2234 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
2235 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
2236 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
2237 * doc/extend.texi: Document new builtins.
2239 2011-10-04 Richard Henderson <rth@redhat.com>
2241 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
2242 Avoid save_expr unless two_arguments.
2244 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
2246 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
2247 * config/i386/mingw32.h (CPP_SPEC): Likewise.
2249 2011-10-04 David S. Miller <davem@davemloft.net>
2251 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
2254 2011-10-04 Jakub Jelinek <jakub@redhat.com>
2256 PR tree-optimization/50604
2257 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
2258 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
2259 last argument to memcpy has size_type_node type instead of ssizetype.
2260 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
2261 instead of TREE_TYPE (len) as type for newlen.
2263 PR tree-optimization/50522
2264 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
2266 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
2269 * fold-const.c (fold_unary_loc): Don't optimize
2270 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
2271 casting the inner pointer if it isn't TYPE_RESTRICT.
2272 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
2273 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
2275 2011-10-04 Joseph Myers <joseph@codesourcery.com>
2277 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
2279 2011-10-04 Jan Hubicka <jh@suse.cz>
2281 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
2282 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
2283 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
2284 * lto-cgraph.c (order_base): New static var.
2285 (lto_output_node): Stream in order.
2286 (lto_output_varpool_node): Stream out order.
2287 (input_node): Stream in order.
2288 (input_varpool_node): Stream out order.
2289 (input_cgraph_1): Initialize order base; update call of
2290 lto_input_toplevel_asms.
2292 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
2295 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
2297 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
2299 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
2300 function. Log if avr_log.legitimize_reload_address.
2302 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
2304 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
2306 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2308 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
2309 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
2311 2011-10-03 David S. Miller <davem@davemloft.net>
2313 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
2314 GSR_REG an input operand to UNSPEC instead of a parallel USE.
2315 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
2316 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
2317 Reference GSR_REG in DI mode, simplify convoluted expressions by using
2319 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
2321 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
2323 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
2325 2011-10-03 Jakub Jelinek <jakub@redhat.com>
2326 Ian Lance Taylor <iant@google.com>
2328 * godump.c (go_output_typedef): Support printing enum values that
2329 don't fit in a signed HOST_WIDE_INT.
2331 2011-10-03 Anatoly Sokolov <aesok@post.ru>
2333 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
2334 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2335 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2336 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
2338 2011-10-03 Anatoly Sokolov <aesok@post.ru>
2340 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
2341 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2342 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2343 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
2345 2011-10-03 Steve Ellcey <sje@cup.hp.com>
2348 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
2349 (gcc_cv_ld_static_option): Ditto.
2350 (gcc_cv_ld_dynamic_option): Ditto.
2351 * configure: Regenerate.
2353 2011-10-03 David S. Miller <davem@davemloft.net>
2355 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
2356 and 'si' patterns which describe the GSR changes explicitly in the
2357 RTL using zero_extract.
2358 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
2360 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
2361 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
2363 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2365 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
2366 if given expression can be expanded by the target.
2367 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
2368 using target vector instructions.
2369 * optabs.h: New optab vshuffle.
2370 (expand_vec_shuffle_expr_p): New prototype.
2371 (expand_vec_shuffle_expr): New prototype.
2372 (vshuffle_optab): New optab.
2373 * genopinit.c: Adjust to support vecshuffle.
2374 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
2375 * expr.c (expand_expr_real_2): Adjust.
2376 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
2377 recognizing the cases of two and three arguments.
2378 (convert_arguments) (build_binary_op)
2379 (scalar_to_vector) (build_array_ref): Spurious whitespace.
2380 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
2381 * tree.def: New tree code VEC_SHUFFLE_EXPR.
2382 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
2383 * tree-vect-generic.c (vector_element): New function. Returns an
2384 element of the vector at the given position.
2385 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
2386 by the backend or expand an expression piecewise.
2387 (expand_vector_operations_1): Adjusted.
2388 (gate_expand_vector_operations_noop): New gate function.
2389 * Makefile.in (tree-vect-generic.o): New include.
2390 * gimple.c (get_gimple_rhs_num_ops): Adjust.
2391 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
2392 * passes.c: Move veclower down.
2393 * tree-pretty-print.c (dump_generic_node): Recognize
2394 VEC_SHUFFLE_EXPR as valid expression.
2395 * c-parser.c (c_parser_get_builtin_args): Helper function for the
2396 builtins with variable number of arguments.
2397 (c_parser_postfix_expression): Use a new helper function for
2398 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
2399 * tree-ssa-operands: Adjust.
2400 * c-family/c-common.c: New __builtin_shuffle keyword.
2401 * c-family/c-common.h: New __builtin_shuffle keyword.
2402 * gcc/doc/extend.texi: Adjust.
2404 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
2405 between the vector and the type of the mask when shuffling.
2406 (vecshuffle<mode>): New expansion.
2407 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
2408 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
2409 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
2411 2011-10-03 Jakub Jelinek <jakub@redhat.com>
2413 PR tree-optimization/50587
2414 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
2415 arg0 is not a SSA_NAME.
2417 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
2419 * ipa-inline-analysis.c (MAX_TIME): Update comment.
2421 2011-10-02 Richard Henderson <rth@redhat.com>
2422 David S. Miller <davem@davemloft.net>
2424 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
2425 conditional insn type setting, we always emit a shift.
2426 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
2427 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
2428 * config/sparc/predicates.md (const_one_operand): Delete.
2430 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
2432 * invoke.texi (SPARC Options): Refer to GNU/Linux.
2434 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
2436 * config/mips/mips.c (mips_frame_barrier): New function.
2437 (mips_expand_prologue): Call it after allocating stack space.
2438 (mips_deallocate_stack): New function.
2439 (mips_expand_epilogue): Call mips_frame_barrier and
2440 mips_deallocate_stack.
2442 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
2445 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
2446 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
2447 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
2449 2011-10-02 Jan Hubicka <jh@suse.cz>
2451 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
2453 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
2454 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
2455 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
2456 functions are reachable when address is taken.
2457 * tree-sra.c (modify_function): Free dominance info.
2459 2011-10-02 Jan Hubicka <jh@suse.cz>
2461 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
2463 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
2464 (reset_inline_summary): New function.
2465 (compute_inline_parameters, inline_node_removal_hook,
2466 inline_edge_removal_hook): Use it.
2467 (inline_free_summary): Reset holders correctly.
2468 (inline_generate_summary): Free summary before computing it.
2470 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
2472 PR preprocessor/36819
2473 * incpath.c (merge_include_chains): Call free_path on
2474 heads[QUOTE] and tails[QUOTE].
2476 2011-10-02 Jan Hubicka <jh@suse.cz>
2479 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
2480 when resolution is already availbale from plugin.
2481 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
2482 * cgraph.c (ld_plugin_symbol_resolution): Add
2483 prevailing_def_ironly_exp.
2484 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
2485 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
2487 * varasm.c (resolution_to_local_definition_p): Add
2488 LDPR_PREVAILING_DEF_IRONLY_EXP.
2489 (resolution_local_p): Likewise.
2491 2011-10-01 David S. Miller <davem@davemloft.net>
2493 * config/sparc/sparc.opt (VIS3): New option.
2494 * doc/invoke.texi: Document it.
2495 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
2496 not capable of such instructions.
2497 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2498 to 0x300 when TARGET_VIS3.
2499 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
2500 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
2501 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
2502 (V64N8, VASS): New mode iterators.
2503 (vis3_shift, vis3_addsub_ss): New code iterators.
2504 (vbits, vconstr): New mode attributes.
2505 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
2506 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
2507 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
2508 fmean16_vis, fpadd64_vis, fpsub64_vis,
2509 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
2510 VIS 3.0 instruction patterns.
2511 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
2512 default when targetting capable cpus. TARGET_VIS3 implies
2513 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
2514 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
2515 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
2517 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
2518 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
2519 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
2520 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
2521 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
2522 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
2523 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
2524 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
2525 * doc/extend.texi: Document new VIS 3.0 builtins.
2527 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
2529 * ira-color.c (assign_hard_reg): Fix typo.
2531 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
2533 * doc/extend.texi: Add missing ','.
2535 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
2537 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
2538 Enable -fmodulo-sched at -O2 and above.
2539 * config/c6x/c6x.md (doloop_end): New expander.
2540 (mvilc, sploop, spkernel, loop_end): New patterns.
2541 (loop_end with memory destination splitter): New.
2542 * config/c6x/c6x.c: Include "hw-doloop.h".
2543 (enum unitreqs): New.
2544 (unit_req_table): New typedef.
2545 (unit_reqs): New static variable.
2546 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
2547 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
2548 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
2549 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
2550 (struct c6x_sched_context): New member last_scheduled_iter0.
2551 (init_sched_state): Initialize it.
2552 (c6x_variable_issue): Update it.
2553 (sploop_max_uid_iter0): New static variable.
2554 (c6x_sched_reorder_1): Be careful about issuing sploop.
2555 (c6x_reorg): Call c6x_hwlooops before the final schedule.
2557 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
2560 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
2561 * config/avr/avr.c (avr_address_cost): Use it.
2562 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2563 (avr_log_vadump): Unknown %-codes finish printing.
2565 2011-09-30 Jakub Jelinek <jakub@redhat.com>
2568 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
2569 input constraints allow mem and not reg, pass true instead of
2570 false as second argument to maybe_fold_reference.
2572 PR tree-optimization/46309
2573 * fold-const.c (make_range, merge_ranges): Remove prototypes.
2574 (make_range_step): New function.
2575 (make_range): Use it.
2576 * tree.h (make_range_step): New prototypes.
2577 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
2578 * tree-ssa-reassoc.c: Include diagnostic-core.h.
2579 (struct range_entry): New type.
2580 (init_range_entry, range_entry_cmp, update_range_test,
2581 optimize_range_tests): New functions.
2582 (reassociate_bb): Call optimize_range_tests.
2584 2011-09-30 Jakub Jelinek <jakub@redhat.com>
2585 Richard Guenther <rguenther@suse.de>
2587 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
2588 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2589 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
2590 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
2591 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
2592 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
2594 2011-09-30 Jan Beulich <jbeulich@suse.com>
2596 * lto-cgraph.c (output_cgraph): Remove processing of
2597 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
2598 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
2599 lto_input_toplevel_asms() instead.
2600 * lto-section-in.c (lto_section_name): Add "asm" entry.
2601 * lto-streamer-in.c (lto_input_toplevel_asms): New.
2602 * lto-streamer-out.c (lto_output_toplevel_asms): New.
2603 * lto-streamer.h (LTO_minor_version): Bump.
2604 (enum lto_section_type): Add LTO_section_asm.
2605 (struct lto_asm_header): New.
2606 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
2607 * tree-streamer.h (streamer_write_string_cst): Declare.
2608 * tree-streamer-out.c (write_string_cst): Rename to
2609 streamer_write_string_cst and make global. Handle incoming string
2611 (streamer_write_tree_header): Adjust call to renamed function.
2613 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
2615 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
2616 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
2617 modulo_last_stage): New static variables.
2618 (set_modulo_params, discard_delay_pairs_above): New functions.
2619 (struct delay_pair): New member stages.
2620 (htab_i2_traverse, htab_i1_traverse): New static functions.
2621 (record_delay_slot_pair): New arg stages. All callers changed.
2623 (pair_delay): Take stages into account.
2624 (add_delay_dependencies): Don't do so for stage pairs.
2625 (struct sched_block_state): New member modulo_epilogue.
2626 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
2627 (unschedule_insns_until): Decrease modulo_insns_scheduled.
2628 Set HARD_DEP without using or.
2629 (resolve_dependencies): New static function.
2630 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
2631 If it is true, allow only insns with INSN_EXACT_TICK set.
2632 (schedule_block): Return bool, always true for normal scheduling,
2633 true or false depending on modulo scheduling success otherwise.
2634 Add bookkeeping for modulo scheduling, and call resolve_dependencies
2635 on everything left over after a modulo schedule.
2636 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
2637 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
2639 (set_modulo_params, discard_delay_pairs_above): Declare.
2640 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
2641 * doc/invoke.texi (--param): Document it.
2643 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
2644 New arg modulo_scheduling. All callers changed. Move note handling
2645 code here from schedule_ebbs.
2646 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
2647 out of schedule_ebbs.
2648 (schedule_ebbs): Call them. Remove note handling code moved to
2650 * sched-int.h (schedule_ebb, schedule_ebbs_init,
2651 schedule_ebbs_finish): Declare.
2653 2011-09-30 Richard Guenther <rguenther@suse.de>
2656 * tree-cfg.c (verify_gimple_comparison): Compare component
2657 mode sizes for vector comparisons.
2659 2011-09-30 Revital Eres <revital.eres@linaro.org>
2661 * ddg.c (autoinc_var_is_used_p): New function.
2662 (create_ddg_dep_from_intra_loop_link,
2663 add_cross_iteration_register_deps): Call it.
2664 * ddg.h (autoinc_var_is_used_p): Declare.
2665 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
2666 (sms_schedule): Handle instructions with REG_INC.
2668 2011-09-30 Revital Eres <revital.eres@linaro.org>
2670 * modulo-sched.c (generate_reg_moves): Skip instructions that
2671 do not set a register and verify no regmoves are created for
2672 !single_set instructions.
2674 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
2676 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
2679 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2682 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
2683 (qhs_zextenddi_op): New.
2684 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
2685 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
2686 Distinguish between ARM and Thumb2 states.
2688 2011-09-30 David S. Miller <davem@davemloft.net>
2690 * config/sparc/sparc.opt (VIS2): New option.
2691 * doc/invoke.texi: Document it.
2692 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
2693 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
2694 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
2695 (define_attr type): New insn type 'edgen'.
2696 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
2697 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
2698 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
2700 * niagara.md: Handle edgen.
2701 * niagara2.md: Likewise.
2702 * ultra1_2.md: Likewise.
2703 * ultra3.md: Likewise.
2704 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2705 to 0x200 when TARGET_VIS2.
2706 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
2707 default when targetting capable cpus. TARGET_VIS2 implies
2708 TARGET_VIS, clear and it when TARGET_FPU is disabled.
2709 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
2710 (sparc_expand_builtin): Fix predicate indexing when builtin returns
2712 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
2713 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
2714 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
2715 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
2716 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
2717 * doc/extend.texi: Document new VIS 2.0 builtins.
2719 2011-09-29 Nick Clifton <nickc@redhat.com>
2720 Bernd Schmidt <bernds@codesourcery.com>
2722 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
2723 * config/frv/frvend.c: Likewise.
2724 * config/frv/frv.c (frv_function_prologue): Move misplaced
2725 CALL_ARG_LOCATION notes back to their proper locations.
2727 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
2730 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
2731 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
2733 (avr_legitimate_address_p): Use avr_edump to print log information
2734 filtered by avr_log.
2735 (extra_constraint_Q): Ditto.
2736 (avr_legitimize_address): Ditto.
2737 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
2738 (final_prescan_insn): Use avr_log.rtx_costs as filter.
2740 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
2742 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
2743 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
2744 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
2745 NEON vector and structure modes to be tied.
2747 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2749 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
2750 forward declaration.
2751 (remove_duplicate_close_phi): Detect and repair creation of
2752 duplicate close-phis for a containing loop.
2754 2011-09-27 Andi Kleen <ak@linux.intel.com>
2756 * gcc.c (get_local_tick). Rename to get_random_number. Read from
2757 /dev/urandom. Add getpid call.
2758 (compare_debug_dump_opt_spec_function): Drop getpid call.
2760 2011-09-26 Andi Kleen <ak@linux.intel.com>
2762 * toplev.c (init_local_tick): Try reading random seed
2765 2011-09-26 Andi Kleen <ak@linux.intel.com>
2767 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
2768 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
2769 Handle numerical random seed.
2770 * lto-streamer.h (lto_file_decl_data): Change id to
2771 unsigned HOST_WIDE_INT.
2772 * toplev.c (random_seed): Add.
2773 (init_random_seed): Change for numerical random seed.
2774 (get_random_seed): Return as HOST_WIDE_INT.
2775 (set_random_seed): Crc32 existing string.
2776 * toplev.h (get_random_seed): Change to numercal return.
2777 * tree.c (get_file_function_name): Remove CRC. Handle
2778 numerical random seed.
2780 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
2783 * config.gcc (extra_objs): Add avr-log.o for $target in:
2784 avr-*-rtems*, avr-*-*.
2785 * config/avr/t-avr (avr-log.o): New rule to compile...
2786 * config/avr/avr-log.c: ...this new file.
2787 * config/avr/avr.opt (mlog=): New option.
2788 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
2789 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
2790 (avr_log_set_avr_log): New prototype.
2791 (avr_log_t): New typedef.
2792 (avr_log): New declaration.
2793 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
2795 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2797 * expr.c (do_store_flag): Expand vector comparison by
2798 building an appropriate VEC_COND_EXPR.
2799 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
2800 (c_objc_common_truthvalue_conversion): Adjust.
2801 * tree-vect-generic.c (do_compare): Helper function.
2802 (expand_vector_comparison): Check if hardware supports
2803 vector comparison of the given type or expand vector piecewise.
2804 (expand_vector_operation): Treat comparison as binary
2805 operation of vector type.
2806 (expand_vector_operations_1): Adjust.
2808 2011-09-29 Richard Guenther <rguenther@suse.de>
2810 * tree.c (build_opaque_vector_type): Make opaque vectors
2811 variant types of the corresponding non-opaque type. Make
2812 sure to share opaque vector types properly.
2814 2011-09-29 David S. Miller <davem@davemloft.net>
2816 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
2817 UNSPEC_ARRAY32): New unspec.
2818 (define_attr type): New type 'array'.
2819 (array{8,16,32}<P:mode>_vis): New patterns.
2820 * config/sparc/ultra1_2.md: Add reservations for 'array'.
2821 * config/sparc/ultra3.md: Likewise.
2822 * config/sparc/niagara.md: Likewise.
2823 * config/sparc/niagara2.md: Likewise.
2824 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
2826 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
2827 __vis_array32): New.
2828 * doc/extend.texi: Document new VIS builtins.
2830 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
2831 (VIS pixel-compare insn): Just use <gcond:name>.
2833 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
2834 code iterator used, so just use <code>. There are two mode iterators
2835 so explicitly use <GCM:gcm_name>.
2837 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
2839 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
2842 2011-09-28 David S. Miller <davem@davemloft.net>
2844 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
2845 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
2846 (UNSPEC_FCMP): New unspec.
2847 (gcond): New code iterator.
2848 (gcond_name): New code attr.
2849 (GCM): New mode iterator.
2850 (gcm_name): New mode attr.
2851 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
2853 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
2856 * config/sh/sh.md (negdi2): Move expansion into split to
2857 allow more combination options. Add T_REG clobber.
2858 (abssi2): New expander.
2859 (*negdi2, *abssi2, *negabssi2): New insns.
2860 (cneg): Change from insn to insn_and_split. Rename to
2861 negsi_cond. Add alternative for non-SH4.
2863 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
2865 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
2866 (neon_move_hi_quad_<mode>): Likewise.
2867 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
2869 2011-09-28 Nick Clifton <nickc@redhat.com>
2871 * config/rx/predicates.md (rx_minmax_operand): New predicate.
2872 Accepts immediates and a restricted subset of MEMs.
2873 * config/rx/rx.md (int_modes): New iterator.
2874 (smaxsi3, sminsi3): Delete and replace with...
2875 (smax<int_mode>3, smin<int_mode>3): New patterns.
2876 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
2878 2011-09-28 Richard Guenther <rguenther@suse.de>
2881 * fold-const.c (try_move_mult_to_index): Handle &a.array the
2882 same as &a.array[0].
2884 2011-09-28 Kai Tietz <ktietz@redhat.com>
2886 * configure.ac: Add test for new section attribute
2887 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
2888 * config.in: Regenerated.
2889 * configure: Regenerated.
2890 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2891 new section flag "e" for excluded sections, if supported.
2892 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2894 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
2896 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2899 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
2901 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2904 2011-09-27 Sriraman Tallam <tmsriram@google.com>
2906 * output.h (SECTION_EXCLUDE): New macro.
2907 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2909 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
2911 * fwprop.c (forward_propagate_and_simplify): After checking
2912 reg/subreg combinations, check whether the modes are the same.
2914 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
2915 Richard Sandiford <rdsandiford@googlemail.com>
2917 * config/mips/mips.c (mips_add_cfa_restore): New function.
2918 (mips16e_save_restore_reg): Use it.
2919 (mips_restore_reg): Likewise. Split double FPRs for
2920 REG_CFA_RESTORE notes.
2922 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
2926 * tree-sra.c (build_ref_for_model): Use the type of the field as
2927 the type of the COMPONENT_REF.
2929 2011-09-27 Jeff Law <law@redhat.com>
2931 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
2932 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2933 (find_if_case_1): Use the probability of the THEN clause when
2934 determining if speculation is profitable.
2935 (find_if_case_2): Similarly for the ELSE clause.
2937 2011-09-27 Jakub Jelinek <jakub@redhat.com>
2939 * common.opt: Add -foptimize-strlen option.
2940 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2941 (tree-sssa-strlen.o): Add dependencies.
2942 * opts.c (default_options_table): Enable -foptimize-strlen
2943 by default at -O2 if not -Os.
2944 * passes.c (init_optimization_passes): Add pass_strlen
2945 after pass_object_sizes.
2946 * timevar.def (TV_TREE_STRLEN): New timevar.
2947 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2948 * tree-pass.h (pass_strlen): Declare.
2949 * tree-ssa-strlen.c: New file.
2950 * c-decl.c (merge_decls): If compatible stpcpy prototype
2951 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2953 2011-09-27 Tom de Vries <tom@codesourcery.com>
2956 * tree-ssa-tail-merge.c: New file.
2957 (struct same_succ_def): Define.
2958 (same_succ, const_same_succ): New typedef.
2959 (struct bb_cluster_def): Define.
2960 (bb_cluster, const_bb_cluster): New typedef.
2961 (struct aux_bb_info): Define.
2962 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2963 (gvn_uses_equal): New function.
2964 (same_succ_print, same_succ_print_traverse, update_dep_bb)
2965 (stmt_update_dep_bb, local_def, same_succ_hash)
2966 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2967 (same_succ_reset): New function.
2968 (same_succ_htab, same_succ_edge_flags)
2969 (deleted_bbs, deleted_bb_preds): New var.
2970 (debug_same_succ): New function.
2971 (worklist): New var.
2972 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2973 (init_worklist, delete_worklist, delete_basic_block_same_succ)
2974 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2975 (print_cluster, debug_cluster, update_rep_bb)
2976 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2977 (all_clusters): New var.
2978 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
2979 (merge_clusters, set_cluster): New function.
2980 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
2981 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
2982 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
2983 (find_clusters_1, find_clusters): New function.
2984 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
2985 (update_bbs): New var.
2986 (apply_clusters): New function.
2987 (update_debug_stmt, update_debug_stmts): New function.
2988 (tail_merge_optimize): New function.
2989 tree-pass.h (tail_merge_optimize): Declare.
2990 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
2991 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
2992 (tree-ssa-tail-merge.o): New rule.
2993 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
2994 default at OPT_LEVELS_2_PLUS.
2995 * tree-ssa-sccvn.c (vn_valueize): Move to ...
2996 * tree-ssa-sccvn.h (vn_valueize): Here.
2997 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
2998 * common.opt (ftree-tail-merge): New switch.
2999 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
3000 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
3001 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
3002 (-ftree-tail-merge, max-tail-merge-comparisons)
3003 (max-tail-merge-iterations): New item.
3005 2011-09-27 Jan Hubicka <jh@suse.cz>
3007 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
3009 2011-09-27 Jan Hubicka <jh@suse.cz>
3011 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
3012 parameters passed by reference; handle loads from non-SSA scalars
3013 and update comments.
3015 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
3017 PR rtl-optimization/50249
3018 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
3019 instead of opnum and type. All callers changed. Remove useless
3021 Search forward for other reloads of the same type for the same operand
3022 using the same register; if any are found, return false.
3023 (reload_regs_reach_end_p): Same argument changes; all callers changed.
3025 2011-09-27 Andi Kleen <ak@linux.intel.com>
3026 Jan Hubicka <jh@suse.cz>
3028 * doc/invoke.texi (ffat-lto-objects): Document.
3029 * toplev.c (compile_file): Do not output assembly when doing slim lto;
3030 Output __gnu_slim_lto when doing slim lto.
3031 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
3032 (cgraph_optimize): Return early when doing slim lto.
3033 * opts.c (finish_options): Complain about lack of linker plugin
3034 when doing slim lto.
3035 * common.opt (ffat-lto-objects): New.
3037 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
3039 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
3040 between signed and unsigned.
3042 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
3044 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
3046 (vectorizable_type_promotion): Likewise.
3047 (vect_analyze_stmt): Call vectorizable_type_demotion and
3048 vectorizable_type_promotion for basic blocks.
3049 (supportable_widening_operation): Don't assume loop vectorization.
3050 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
3051 basic blocks. Update vectorization factor for basic block
3053 (vect_analyze_slp_instance): Allow multiple types for basic block
3054 vectorization. Recheck unrolling factor after construction of SLP
3057 2011-09-27 Richard Guenther <rguenther@suse.de>
3059 * tree-object-size.c (compute_object_sizes): Fix dumping of
3062 2011-09-27 Richard Guenther <rguenther@suse.de>
3064 PR tree-optimization/50363
3065 * tree-ssa-pre.c (create_expression_by_pieces): Handle
3066 pointer conversions in POINTER_PLUS_EXPRs properly.
3068 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
3070 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
3071 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
3072 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
3073 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
3074 that produce subreg moves. Define using VQX iterators.
3076 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
3078 * config/avr/avr.md (ashrqi3): Split alternative "n"
3079 into its remaining parts C03, C04, C05, C06, C07 and describe
3080 impact in CC by attribute "cc" appropriately.
3081 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
3084 2011-09-27 Jakub Jelinek <jakub@redhat.com>
3086 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
3087 from 3 x MAX_MACHINE_MODE.
3088 (CONSTM1_RTX): Define.
3089 * emit-rtl.c (const_tiny_rtx): Change into array of
3090 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
3091 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
3093 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
3094 MODE_VECTOR_INT modes.
3095 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
3096 Optimize if one operand is CONSTM1_RTX.
3097 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
3100 2011-09-26 David S. Miller <davem@davemloft.net>
3102 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
3103 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
3104 * config/sparc/visintrin.h: Update edge and pixel-compare
3105 intrinsics to return 'long' instead of 'int'.
3106 * doc/extend.texi: Update documentation to match.
3107 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
3108 flat, allow any instruction. Otherwise, when V9 allow parallels
3109 which consist only of sets to registers outside of %o0 to %o5.
3110 (sparc_vis_init_builtins): Update VIS builtin types for edge
3113 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
3114 is enabled, mark %gsr as global.
3115 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
3116 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
3118 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
3119 which will now define __VIS and __VIS__ when -mvis is enabled.
3120 * config/sparc/t-sparc: Likewise.
3121 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
3122 and add t-sparc to tmake_file for all sparc targets.
3123 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
3124 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
3126 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
3127 builtins for VIS vector addition and subtraction.
3128 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
3129 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
3130 __vis_fpsub32, __vis_fpsub32s): New.
3131 * doc/extend.texi: Document new VIS intrinsics.
3133 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
3135 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
3136 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
3137 EQ/NE comparisons against +/-1 in the case of unused-after,
3140 2011-09-26 Jakub Jelinek <jakub@redhat.com>
3142 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
3143 gctx.into_ssa after push_gimplify_context.
3145 * gimple.c (gimple_build_call_valist): New function.
3146 * gimple.h (gimple_build_call_valist): New prototype.
3147 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
3148 (update_gimple_call): Likewise.
3149 (update_call_from_tree): Use finish_update_gimple_call.
3150 * tree-ssa-propagate.h (update_gimple_call): New prototype.
3152 2011-09-26 Richard Guenther <rguenther@suse.de>
3154 PR tree-optimization/50472
3155 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
3156 volatile references.
3158 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
3160 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
3161 * target.def: (addr_space_subset_p): Likewise.
3163 2011-09-26 Tom de Vries <tom@codesourcery.com>
3165 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
3166 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
3167 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
3170 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
3173 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
3174 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
3175 output_reload_insisf.
3176 (adjust_len): Set default to "no".
3177 Remove alternative "yes". Add alternatives: "mov8", "mov16",
3178 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
3179 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
3180 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
3181 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
3182 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
3183 *lshrsi3_const): Set attribute "adjust_len".
3184 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
3185 (output_movsisf): Don't pass insn to output_reload_insisf.
3186 (adjust_insn_length): Handle new alternatives to adjust_len.
3187 Remove handling of ADJUST_LEN_YES. Clean-up code.
3189 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3191 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
3192 may_trap_p to detect loads that may trap of fault.
3194 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
3196 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
3197 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
3198 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
3200 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
3201 * config/avr/avr.c: Rename output_reload_insisf_1 to
3202 output_reload_in_const.
3203 (avr_popcount_each_byte): Handle SFmode, too.
3204 (output_reload_in_const): Change so it can handle HI loads, too.
3205 Use avr_popcount_each_byte to work out if scratch register must be
3207 (output_reload_inhi): Rewrite using output_reload_in_const and...
3208 (output_movhi): ...use it to print constants' loads.
3209 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
3211 2011-09-25 David S. Miller <davem@davemloft.net>
3213 * config/sparc/constraints.md (C, P, Z): New constraints for
3214 const_doube, const_int, and const_vector "all ones" values.
3215 Make unused constraint letters comment match reality.
3216 * config/sparc/predicates.md (const_all_ones_operand,
3217 register_or_zero_or_all_ones_operand): New predicates.
3218 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
3219 as well as zero constants when VIS.
3220 (sparc_legitimate_constant_p): Likewise.
3221 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
3222 (movsf_insn): Likewise
3223 (movdi_insn_sp64): Add fone alternative.
3224 (movdf_insn_sp32_v9): Likewise.
3225 (movdf_insn_sp64): Likewise.
3227 * configure.ac: Add feature check to make sure the assembler
3228 supports the FMAF, HPC, and VIS 3.0 instructions found on
3229 Niagara-3 and later cpus.
3230 * configure: Rebuild.
3231 * config.in: Likewise.
3232 * config/sparc/sparc.opt: New option '-mfmaf'.
3233 * config/sparc/sparc.md: Add float fused multiply-add patterns.
3234 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
3235 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
3236 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
3237 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
3238 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
3239 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
3241 (sparc_rtx_costs): Handle 'FMA'.
3242 * doc/invoke.texi: Document -mfmaf.
3244 2011-09-25 Jakub Jelinek <jakub@redhat.com>
3246 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
3247 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
3248 DECL_BY_REFERENCE parameters.
3250 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
3252 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
3253 if there is no outgoing edge.
3255 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
3258 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
3260 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
3261 of vect_analyze_bb here.
3262 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
3264 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
3266 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
3267 Allow not simple iv if analyzing basic block.
3268 (create_data_ref): Update call to dr_analyze_innermost.
3269 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
3270 * tree-loop-distribution.c (generate_memset_zero): Likewise.
3271 * tree-predcom.c (find_looparound_phi): Likewise.
3272 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
3274 2011-09-24 David S. Miller <davem@davemloft.net>
3276 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
3277 (SPARC_GSR_REG): Define.
3278 (FIXED_REGISTERS): Mark GSR as fixed.
3279 (CALL_USED_REGISTERS): Mark GSR as call used.
3280 (HARD_REGNO_NREGS): GSR is always 1 register.
3281 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
3282 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
3283 (REGISTER_NAMES): Add "%gsr".
3284 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
3285 (UNSPEC_WRGSR): New unspec.
3286 (GSR_REG): New constant.
3287 (type): Add new insn type 'gsr'.
3288 (fpack16_vis, fpackfix_vis, fpack32_vis,
3289 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
3290 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
3291 rdgsr_v8plus): New expanders and insns.
3292 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
3293 using patterns which show that this is a plus in addition to a
3294 modification of GSR_REG, instead of an unspec.
3295 * config/sparc/ultra1_2.md: Handle 'gsr'.
3296 * config/sparc/ultra3.md: Likewise.
3297 * config/sparc/niagara.md: Likewise.
3298 * config/sparc/niagara2.md: Likewise.
3299 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
3301 (sparc_option_override): Make -mvis imply -mv8plus.
3302 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
3304 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
3305 __builtin_vis_read_gsr.
3306 (sparc_expand_buildin): Handle builtins that take one argument and
3308 (sparc_fold_builtin): Never fold writes to %gsr.
3309 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
3310 * doc/extend.texi: Document new VIS intrinsics.
3312 2011-09-23 Jan Hubicka <jh@suse.cz>
3314 * ipa-inline-transform.c (inline_call): Add comment.
3315 * ipa-inline.h (inline_param_summary): New structure and vector.
3316 (struct inline_edge_summary): Add param field.
3317 * ipa-inline-analysis.c (CHANGED): New constant.
3318 (add_clause): Handle CHANGED and NOT_CONSTANT.
3319 (predicate_probability): New function.
3320 (dump_condition): Dump CHANGED predicate.
3321 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
3322 of unknown function wide invariant.
3323 (evaluate_conditions_for_edge): Handle change probabilities.
3324 (inline_edge_duplication_hook): Copy param summaries.
3325 (inline_edge_removal_hook): Free param summaries.
3326 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
3327 sizes; dump param summaries.
3328 (will_be_nonconstant_predicate): Use CHANGED predicate.
3329 (record_modified_bb_info): New structure.
3330 (record_modified): New function.
3331 (param_change_prob): New function.
3332 (estimate_function_body_sizes): Compute param summaries.
3333 (estimate_edge_size_and_time): Add probability argument.
3334 (estimate_node_size_and_time): Add inline_param_summary argument;
3335 handle predicate probabilities.
3336 (remap_predicate): Fix formating.
3337 (remap_edge_change_prob): New function.
3338 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
3339 (remap_edge_predicates): ... this one.
3340 (inline_merge_summary): Remap edge summaries; handle predicate
3341 probabilities; remove param summaries after we are done.
3342 (do_estimate_edge_time): Update.
3343 (do_estimate_edge_growth): Update.
3344 (read_inline_edge_summary): Read param info.
3345 (inline_read_summary): Fix formating.
3346 (write_inline_edge_summary): Write param summaries.
3348 2011-09-23 Jakub Jelinek <jakub@redhat.com>
3350 * config/i386/i386.c (ix86_print_operand): Handle %~.
3351 (ix86_print_operand_punct_valid_p): Return true also for '~'.
3352 * config/i386/sse.md (i128): New mode_attr.
3353 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
3354 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
3355 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
3356 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
3357 patterns, use "<sseinsnmode>" for "mode" attribute.
3358 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
3359 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
3360 %~128 in the patterns, use "OI" for "mode" attribute.
3362 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
3365 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
3367 (*cmpqi_sign_extend): Use s8_operand.
3368 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
3369 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
3371 (out_tsthi, out_tstsi): Remove prototypes.
3372 (avr_out_tsthi, avr_out_tstsi): New prototypes.
3373 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
3374 (avr_asm_len): Negative length now sets *plen to -length.
3375 (compare_sign_p): Return bool instead of int.
3376 (compare_diff_p, compare_eq_p): Ditto and make static.
3377 (avr_out_tsthi): New function.
3378 (avr_out_tstsi): New function.
3379 (avr_out_compare): New function.
3380 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
3383 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
3386 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
3387 (addsi3): Rewrite using QI scratch register. Adjust text
3388 peepholes using plus:SI.
3389 (*addsi3_zero_extend.hi): New insn.
3390 (*subsi3_zero_extend.hi): New insn.
3391 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
3392 (*subsi3_zero_extend): Ditto.
3393 (subsi3): Change predicate #2 to register_operand.
3394 * config/avr/avr-protos.h (avr_out_plus): New prototype.
3395 (avr_out_plus_1): New static function.
3396 (avr_out_plus): New function.
3397 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
3399 2011-09-23 Jakub Jelinek <jakub@redhat.com>
3401 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
3402 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
3404 2011-09-23 Ian Lance Taylor <iant@google.com>
3406 * godump.c (go_define): Treat a single character in single quotes,
3407 or a string, as an operand.
3409 2011-09-23 Martin Jambor <mjambor@suse.cz>
3411 * ipa-prop.h (jump_func_type): Updated comments.
3412 (ipa_known_type_data): New type.
3413 (ipa_jump_func): Use it to describe known type jump functions.
3414 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
3415 reflect the new known type jump function contents.
3416 (compute_known_type_jump_func): Likewise.
3417 (combine_known_type_and_ancestor_jfs): Likewise.
3418 (try_make_edge_direct_virtual_call): Likewise.
3419 (ipa_write_jump_function): Likewise.
3420 (ipa_read_jump_function): Likewise.
3421 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
3422 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
3423 (propagate_accross_jump_function): Likewise.
3425 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
3428 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
3429 (rotlqi3_4): Turn insn into expander.
3430 (*rotlqi3): New insn.
3431 (rotlhi3, rotlsi3): Support rotate left/right by 1.
3432 (*rotlhi2.1, *rotlhi2.15): New insns.
3433 (*rotlsi2.1, *rotlsi2.31): New insns.
3434 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
3436 2011-09-23 Bin Cheng <bin.cheng@arm.com>
3438 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
3440 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
3442 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
3444 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3446 * reload.c (find_reloads): Set operand_mode to Pmode for address
3447 operands consisting of just a CONST_INT.
3449 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
3452 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3453 blendv, force op_true to register if it doesn't satisfy
3454 nonimmediate_operand predicate.
3456 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
3460 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
3461 get the locate.where_pad value for register-only arguments.
3462 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
3463 (arm_pad_reg_upward): Handle null types.
3465 2011-09-22 Jan Hubicka <jh@suse.cz>
3467 * ipa-inline-analysis.c: Fix overly long lines.
3469 2011-09-22 Jan Hubicka <jh@suse.cz>
3471 * ipa-inline-transform.c (inline_call): Always update jump functions
3473 * ipa-inline.c (ipa_inline): Likewise; do not call
3474 ipa_create_all_structures_for_iinln.
3475 (ipa_inline): Always free jump functions.
3476 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
3477 (remap_edge_predicates): Fix pasto.
3478 (inline_merge_summary): Remove nlined edge predicate; remove hack.
3479 (inline_analyze_function): Always initialize jump functions.
3480 (inline_generate_summary): Likewise.
3481 (inline_write_summary): Always write jump functions when ipa-cp
3483 (inline_read_summary): Always read jump functions when ipa-cp
3485 * ipa-prop.c (iinlining_processed_edges): Remove.
3486 (update_indirect_edges_after_inlining): Do not use
3487 iinlining_processed_edges; instead set param_index to -1.
3488 (propagate_info_to_inlined_callees): Only try to indirect inlining
3489 when asked to do so; update jump functions of indirect calls, too;
3490 remove jump functions of the inlined edge.
3491 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
3492 (ipa_create_all_structures_for_iinln): Remove.
3493 (ipa_free_all_structures_after_iinln): Do not free
3494 iinlining_processed_edges.
3495 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
3497 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
3499 * config/arm/predicates.md (expandable_comparison_operator): New
3500 predicate, extracted from...
3501 (arm_comparison_operator): ...here.
3502 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
3503 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
3504 (movdfcc): Use expandable_comparison_operator.
3506 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
3510 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
3511 (avr_popcount_each_byte): New prototype.
3512 * config/avr/avr.c (avr_popcount): New static function.
3513 (avr_popcount_each_byte): New function.
3514 (avr_out_bitop): New function.
3515 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
3516 avr_out_bitop. Cleanup code.
3517 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
3518 (Ca4, Co4, Cx4): New constraints.
3519 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
3521 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
3522 (andsi3, iorsi3, xorsi3): Ditto.
3523 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
3525 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
3527 PR tree-optimization/50451
3528 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
3529 constant operands in reduction.
3530 (vect_get_slp_defs): Don't create vector operand for NULL scalar
3533 2011-09-22 David S. Miller <davem@davemloft.net>
3535 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
3536 fpack16, fpack32, fpackfix as const.
3538 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
3539 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
3540 constants. Use them everywhere.
3542 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
3544 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
3545 Added AND special case. Adapted comments.
3546 (sh_rtx_costs): Added XOR and IOR case.
3548 2011-09-21 Jan Hubicka <jh@suse.cz>
3550 * ipa-inline-analsis.c (compute_inline_parameters): Set
3551 cfun and current_function_decl.
3553 2011-09-21 Jan Hubicka <jh@suse.cz>
3555 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
3556 handled components in parameter of builtin_constant_p.
3557 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
3559 2011-09-21 Jan Hubicka <jh@suse.cz>
3561 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
3562 * ipa-inline.h (estimate_edge_time): Fix pasto.
3563 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
3565 2011-09-21 Jakub Jelinek <jakub@redhat.com>
3567 * config/i386/i386.c (ix86_expand_sse_movcc): Use
3568 blendvps, blendvpd and pblendvb if possible.
3570 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
3573 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
3574 operand 1 predicate to register_operand and operand 2 predicate
3575 to nonimmediate_operand.
3576 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3577 xop_pcmov, force op_true to register. Also, force op_false to
3578 register if it doesn't satisfy nonimmediate_operand predicate.
3580 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
3582 * config/i386/bmi2intrin.h (_mulx_u64): New.
3585 2011-09-21 Jan Hubicka <jh@suse.cz>
3587 PR tree-optimization/50433
3588 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
3589 Use get_base_address.
3591 2011-09-21 Jakub Jelinek <jakub@redhat.com>
3593 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
3594 nonimmediate_operand instead of register_operand predicate for operands
3595 1 and 2, force them into registers if expanding them as comparison.
3596 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
3597 V8HImode force into register just operand 1.
3599 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
3602 * config/avr/avr.c (avr_function_arg_advance): Change error to
3603 warning if a fixed register is needed as function argument.
3605 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
3609 * config/avr/avr.md (adjust_len): New insn attribute.
3610 (*reload_insi, *reload_insf): Use it.
3611 (*movsi, *movsf): Use new interface of output_movsisf.
3612 * config/avr/avr-protos.h (output_movsisf): Change prototype.
3613 * config/avr/avr.c (output_movsisf): Ditto.
3614 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
3615 lengths of insns *reload_insi, *reload_insf.
3616 (output_reload_insisf_1): New static function.
3617 (output_reload_insisf): Use it.
3619 2011-09-21 David S. Miller <davem@davemloft.net>
3621 * config/sparc/sparc.c (def_builtin): Change from macro into function.
3622 (def_builtin_const): New.
3623 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
3624 other than alignaddr and falignaddr.
3626 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
3627 UNSPEC_FCMPEQ): New unspec codes.
3628 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
3629 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
3630 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
3631 new pixel compare VIS patterns.
3632 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
3633 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
3634 __vis_fcmpeq16, __vis_fcmpeq32): New.
3635 * doc/extend.texi: Document new pixel compare VIS intrinsics.
3637 2011-09-21 Tom de Vries <tom@codesourcery.com>
3639 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
3641 2011-09-20 David S. Miller <davem@davemloft.net>
3643 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
3644 (aligneddrl<P:mode>_vis): New pattern.
3645 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3646 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
3647 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
3648 alignaddrl insn, and adjust edge operations for updated types.
3649 * config/sparc/visintrin.h: Likewise.
3650 * doc/extend.texi: Make typing in VIS documentation match reality.
3652 2011-09-20 Terry Guo <terry.guo@arm.com>
3654 * config/arm/arm-arches.def: Add armv6s-m.
3655 * config/arm/arm-tables.opt: Regenerate.
3657 2011-09-20 Wei Guozhi <carrot@google.com>
3659 PR rtl-optimization/49452
3660 * postreload.c (reload_combine): Invalidate use information when across
3663 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
3665 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
3666 Remove maintenance overhead.
3667 (haifa_sched_init, sched_finish): Update.
3669 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
3671 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
3672 to calculate unit, prefix_rep and prefix_data16 attributes.
3673 (*mov<mode>_internal): Ditto for unit attribute.
3674 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
3675 (*movv2sf_internal): Ditto.
3676 * config/i386/sse.md (VI1248_256): Remove mode iterator.
3677 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
3678 (*avx2_eq<mode>3): Ditto.
3679 (avx2_gt<mode>3): Ditto.
3681 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
3683 * config/i386/i386.md (maxmin): New code iterator.
3684 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
3685 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
3687 (*avx2_<maxmin:code><mode>3): Macroize isn from
3688 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
3689 maxmin code iterator.
3690 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
3691 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
3692 <umaxmin:code>v16qi3.
3694 2011-09-19 Alan Modra <amodra@gmail.com>
3695 Michael Meissner <meissner@linux.vnet.ibm.com>
3698 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
3699 split the load of the indirect function's TOC from the call to
3700 prevent the compiler from moving the load of the new TOC above
3701 code that references the current function's TOC.
3702 (call_indirect_aix<ptrsize>_internal): Ditto.
3703 (call_indirect_aix<ptrsize>_nor11): Ditto.
3704 (call_indirect_aix<ptrsize>_internal2): Ditto.
3705 (call_value_indirect_aix<ptrsize>): Ditto.
3706 (call_value_indirect_aix<ptrsize>_internal): Ditto.
3707 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3708 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3710 2011-09-19 Jakub Jelinek <jakub@redhat.com>
3712 * config/i386/sse.md (*sse4_1_extractps): Change into
3713 define_insn_and_split, add =x 0 n and =x x n alternatives
3714 and split them after reload.
3716 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
3718 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
3720 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
3722 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
3724 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
3726 PR tree-optimization/50413
3727 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
3728 a basic block if one of its data-refs can't be analyzed.
3730 2011-09-19 Paul Brook <paul@codesourcery.com>
3732 * config/arm/predicates.md (shift_amount_operand): Check constant
3733 shift count is in range.
3734 (const_shift_operand): Remove.
3736 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
3737 Iain Sandoe <developer@sandoe-acoustics.co.uk>
3740 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
3741 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
3743 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
3745 * config/i386/bmiintrin.h: Remove tmp.
3746 * config/i386/tbmintrin.h: Likewise.
3748 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
3750 PR tree-optimization/50414
3751 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
3754 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
3756 PR tree-optimization/50412
3757 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
3758 acceses that require epilogue loop if vectorizing outer loop.
3760 2011-09-17 David S. Miller <davem@davemloft.net>
3762 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
3763 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
3765 (define_attr type): New type 'edge'.
3766 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3767 edge32l_vis): New patterns.
3768 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
3769 * config/sparc/ultra3.md: Likewise.
3770 * config/sparc/niagara.md: Likewise.
3771 * config/sparc/niagara2.md: Likewise.
3772 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
3773 builtins for VIS edge instructions.
3774 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
3775 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
3777 (__v8qi, __v4qi): Make unsigned.
3778 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
3779 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
3780 __vis_fpack32): Fix types.
3781 * doc/extend.texi: Document new 'edge' VIS intrinsics.
3783 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
3785 (niagara3_costs): New.
3786 (sparc_option_override): Use it.
3787 * gcc/config/sparc/niagara2.md: Adjust with more accurate
3788 Niagara-3 reservations.
3790 2011-09-17 Jakub Jelinek <jakub@redhat.com>
3792 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
3793 (sse2_avx, sseinsnmode): Add V2TI.
3794 (REDUC_SMINMAX_MODE): New mode iterator.
3795 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
3796 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
3797 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
3798 (sse2_lshrv1ti3): Rename to...
3799 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
3800 iterator. Move before umaxmin expanders.
3801 * config/i386/i386.h (VALID_AVX256_REG_MODE,
3802 SSE_REG_MODE_P): Accept V2TImode.
3803 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
3804 V16HImode, V8SImode and V4DImode.
3806 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
3808 (ix86_build_signbit_mask): Likewise.
3809 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
3810 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
3811 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
3812 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
3813 (<code><mode>3) ... this.
3814 (avx2_<code><mode>3 smaxmin expand): Rename to...
3815 (<code><mode>3) ... this.
3816 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
3817 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
3818 VI8_AVX2 mode iterator.
3819 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
3820 VI8_AVX2 mode iterator.
3821 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
3824 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
3826 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
3829 2011-09-16 David S. Miller <davem@davemloft.net>
3831 * config/sparc/visintrin.h: New file.
3832 * config.gcc: Add it to extra_headers on sparc.
3834 2011-09-16 Jakub Jelinek <jakub@redhat.com>
3836 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
3837 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
3838 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
3839 reduc_smin_v4sf): Adjust callers.
3840 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
3843 * config/i386/sse.md (vec_extract_hi_<mode>,
3844 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
3845 vextracti128 instead of vextractf128 for -mavx2 and
3846 integer vectors. For V4DFmode fix up mode attribute.
3847 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
3848 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
3849 instead of V8SF mode attribute.
3850 (avx2_extracti128): Change into define_expand.
3851 * config/i386/i386.c (ix86_expand_vector_extract): Handle
3852 32-byte vector modes if TARGET_AVX.
3854 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
3856 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
3857 (umulqi3_highpart, smulqi3_highpart): Ditto.
3858 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
3859 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
3860 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
3862 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
3865 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
3866 (*maddqi4, *maddqi4.const): New insns.
3867 (*msubqi4, *msubqi4.const): New insns.
3868 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
3869 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
3870 HImode by 1 in the case of multiplying with a CONST_INT.
3871 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
3873 2011-09-15 Jan Hubicka <jh@suse.cz>
3876 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
3877 error_mark_node in the DECL_INITIAL of vtable.
3879 2011-09-15 Diego Novillo <dnovillo@google.com>
3881 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
3882 @SYSROOT_CFLAGS_FOR_TARGET@.
3883 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
3884 * configure: Regenerate.
3885 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
3886 Remove setting of GCC_UNDER_TEST.
3888 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
3890 * config/i386/i386.c (output_fp_compare): Return %v prefixed
3891 instruction mnemonics for TARGET_AVX.
3893 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3894 "type" attribute calculation.
3895 (*movdf_internal): Ditto.
3896 (*movsf_internal): Ditto.
3898 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
3900 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3902 2011-09-15 Jason Merrill <jason@redhat.com>
3905 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3907 2011-09-15 Jan Hubicka <jh@suse.cz>
3909 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3910 simplify obviously true clauses.
3911 (and_predicates, or_predicates): Add conditions parameter.
3912 (inline_duplication_hoook): Update.
3913 (mark_modified): New function.
3914 (unmodified_parm): New function.
3915 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3916 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3917 Use unmodified_parm.
3918 (estimate_function_body_sizes): Update.
3919 (remap_predicate): Update.
3921 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
3923 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3924 read-after-read dependencies in basic block SLP.
3926 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3928 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3931 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3933 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3936 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3938 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3941 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3943 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3945 * config/rs6000/constraints.md: Likewise.
3947 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3949 * config/microblaze/microblaze.md: Use match_test rather than
3950 eq/ne symbol_ref throughout file.
3952 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3954 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3957 2011-09-14 Tom de Vries <tom@codesourcery.com>
3960 * explow.c (emit_stack_restore): Set crtl->need_drap if
3961 stack_restore is emitted.
3963 2011-09-14 Julian Brown <julian@codesourcery.com>
3965 * config/arm/arm.c (arm_override_options): Add unaligned_access
3967 (arm_file_start): Emit attribute for unaligned access as appropriate.
3968 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3969 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3970 (insv, extzv): Add unaligned-access support.
3971 (extv): Change to expander. Likewise.
3972 (extzv_t1, extv_regsi): Add helpers.
3973 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3974 (unaligned_storesi, unaligned_storehi): New.
3975 (*extv_reg): New (previous extv implementation).
3976 * config/arm/arm.opt (munaligned_access): Add option.
3977 * config/arm/constraints.md (Uw): New constraint.
3978 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
3979 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
3980 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
3981 volatile accesses when -fstrict-volatile-bitfields is in effect.
3982 (extract_bit_field_1): Likewise.
3984 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
3986 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
3987 a scalar integer before applying integer-only optimisations to
3990 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
3992 * config/mips/mips.c (mips_expand_epilogue): Generate a
3993 simple_return only if the return address is in r31.
3995 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
3997 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
3998 NULL for a jump that is a cc0 insn, pick the previous insn for
4001 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4003 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
4006 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4008 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
4011 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4013 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
4014 symbol_ref throughout file.
4016 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4018 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
4021 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4023 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
4026 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4028 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
4030 * config/arm/neon.md: Likewise.
4031 * config/arm/vfp.md: Likewise.
4032 * config/arm/thumb2.md: Likewise.
4033 * config/arm/cortex-m4.md: Likewise.
4035 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
4037 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
4038 define_insn patterns for combine.
4040 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
4042 * reorg.c: Always define make_return_insns.
4044 2011-09-13 Jan Hubicka <jh@suse.cz>
4047 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
4049 2011-09-13 Jan Hubicka <jh@suse.cz>
4052 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
4054 2011-09-13 Paul Brook <paul@codesourcery.com>
4056 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4057 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
4058 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
4059 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
4060 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
4061 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
4062 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
4063 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
4064 enabling unwind tables.
4065 (c6x_debug_unwind_info): New function.
4066 (TARGET_ARM_EABI_UNWINDER): Define.
4067 (TARGET_DEBUG_UNWIND_INFO): Define.
4068 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
4069 (TARGET_EXTRA_CFI_SECTION): Remove.
4070 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
4071 * ginclude/unwind-arm-common.h: New file.
4073 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
4076 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
4077 * config/avr/avr.md: (extend_s): New code attribute.
4078 (mul_r_d): New code attribute.
4079 (*maddqihi4, *umaddqihi4): New insns.
4080 (*msubqihi4, *umsubqihi4): New insns.
4081 (*usmaddqihi4, *sumaddqihi4): New insns.
4082 (*usmsubqihi4, *susubdqihi4): New insns.
4083 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
4084 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
4085 (*umsubqihi4.uconst.ashift): New insn-and-split.
4086 (*msubqihi4.sconst.ashift): New insn-and-split.
4087 (*sumaddqihi4.uconst): New insn-and-split.
4088 (*sumsubqihi4.uconst): New insn-and-split.
4089 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
4090 PLUS:HI and MINUS:HI.
4092 2011-09-13 Revital Eres <revital.eres@linaro.org>
4094 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
4095 (optimize_sc): Adjust call to remove_node_from_ps.
4096 (sms_schedule): Add print info.
4098 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
4100 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
4103 2011-09-12 Jakub Jelinek <jakub@redhat.com>
4106 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
4107 NOTE_INSN_CFI notes, with the exception of
4108 NOTE_INSN_SWITCH_TEXT_SECTIONS.
4110 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
4111 Richard Sandiford <rdsandiford@googlemail.com>
4113 * config/mips/mips.c (mips_epilogue): New structure.
4114 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
4115 restoring registers.
4116 (mips_epilogue_emit_cfa_restores): New function.
4117 (mips_epilogue_set_cfa): Likewise.
4118 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
4119 the current CFA register from the stack, redefine the CFA in terms
4120 of the stack pointer.
4121 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
4122 to the epilogue instructions.
4124 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
4126 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
4128 (mips16e_build_save_restore): Update accordingly.
4130 2011-09-12 Jakub Jelinek <jakub@redhat.com>
4132 PR rtl-optimization/50212
4133 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4134 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
4137 * calls.c (load_register_parameters): Use use_reg_mode instead
4138 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
4140 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
4141 for stack CALL_INSN_FUNCTION_USAGE uses.
4142 * expr.h (use_reg_mode): New prototype.
4143 (use_reg): Changed into inline around use_reg_mode.
4144 * expr.c (use_reg): Renamed to...
4145 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
4146 mode to that mode instead of VOIDmode.
4147 * var-tracking.c (prepare_call_arguments): Don't track parameters
4148 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
4149 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
4152 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
4155 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
4156 (progmem_section): New Variable.
4157 (avr_asm_init_sections): Initialize it.
4158 (TARGET_ASM_SELECT_SECTION): Define to...
4159 (avr_asm_select_section): ... this new Function.
4160 (avr_replace_prefix): New Function.
4161 (avr_asm_function_rodata_section): Use it.
4162 (avr_insert_attributes): Don't add section attribute for PROGMEM.
4163 (avr_section_type_flags): Use avr_progmem_p instead of section
4164 name to detect if object is in PROGMEM.
4165 (avr_asm_named_section): Set section name prefix for objects in
4168 2011-09-12 Jakub Jelinek <jakub@redhat.com>
4171 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
4172 sprintf format string.
4174 2011-09-12 Richard Guenther <rguenther@suse.de>
4176 PR tree-optimization/50343
4177 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
4178 that the reduction is over an SSA name before checking its definition.
4180 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
4182 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
4185 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
4187 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
4189 * config/mips/sb1.md: Likewise.
4190 * config/mips/predicates.md: Replace (match_test "!...")
4191 with (not (match_test "..."))
4192 * config/mips/constraints.md: Likewise.
4194 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
4196 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
4197 * config/arm/arm-tables.opt: Regenerate.
4198 * config/arm/arm-tune.md: Regenerate.
4199 * config/arm/arm.c (arm_file_start): Output .arch directive when
4200 user passes -mcpu=generic-*.
4201 (arm_issue_rate): Add genericv7a support.
4202 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
4203 (ASM_CPU_SPEC): New define.
4204 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
4205 * config/arm/semi.h (ASM_SPEC): Likewise.
4206 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
4207 and -mtune=generic-*.
4209 2011-09-09 Richard Guenther <rguenther@suse.de>
4211 PR tree-optimization/50328
4212 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
4213 constant or default-def operand.
4215 2011-09-09 Richard Guenther <rguenther@suse.de>
4217 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
4220 2011-09-09 Richard Guenther <rguenther@suse.de>
4222 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
4223 instead of a statement.
4224 * gimple-fold.c (fold_stmt_inplace): Likewise.
4225 * sese.c (graphite_copy_stmts_from_block): Adjust.
4226 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
4227 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
4229 (forward_propagate_addr_into_variable_array_index): Likewise.
4230 (forward_propagate_addr_expr_1): adjust.
4231 (associate_plusminus): Likewise.
4232 (ssa_forward_propagate_and_combine): Likewise.
4233 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
4234 (execute_cse_reciprocals): Likewise.
4235 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
4237 2011-09-09 Nick Clifton <nickc@redhat.com>
4239 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
4240 Return a positive value to indicate that the bits at the
4241 bottom of the register should be cleared.
4243 2011-09-09 Richard Guenther <rguenther@suse.de>
4245 * tree-ssa-operands.c (swap_tree_operands): Always adjust
4246 existing operand positions.
4248 2011-09-09 Richard Guenther <rguenther@suse.de>
4251 * tree-data-ref.c (split_constant_offset): Do not try to handle
4254 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
4256 PR tree-optimization/50318
4257 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
4258 typo in use of mult_rhs1 and mult_rhs2.
4260 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
4262 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
4263 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
4265 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
4267 * config/arm/arm.md (push_multi): Emit predicates.
4268 (push_fp_multi): Likewise.
4269 * config/arm/arm.c (vfp_output_fstmd): Likewise.
4271 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4273 PR c++/33255 - Support -Wunused-local-typedefs warning
4274 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
4275 (pushdecl): Use the new record_locally_defined_typedef.
4276 (store_parm_decls): Allocate cfun->language.
4277 (finish_function): Use the new maybe_warn_unused_local_typedefs,
4278 and free cfun->language.
4279 (c_push_function_context): Allocate cfun->language here only if needed.
4280 (c_pop_function_context): Likewise, mark cfun->language
4281 for collection only when it should be done.
4282 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
4283 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
4284 maybe_record_local_typedef_use.
4285 * doc/invoke.texi: Update documentation for
4286 -Wunused-local-typedefs.
4288 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
4290 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
4291 (ix86_avoid_lea_for_add): Likewise.
4292 (ix86_avoid_lea_for_addr): Likewise.
4293 (ix86_split_lea_for_addr): Likewise.
4295 * config/i386/i386.c (LEA_MAX_STALL): New.
4296 (increase_distance): Likewise.
4297 (insn_defines_reg): Likewise.
4298 (insn_uses_reg_mem): Likewise.
4299 (distance_non_agu_define_in_bb): Likewise.
4300 (distance_agu_use_in_bb): Likewise.
4301 (ix86_lea_outperforms): Likewise.
4302 (ix86_ok_to_clobber_flags): Likewise.
4303 (ix86_avoid_lea_for_add): Likewise.
4304 (ix86_avoid_lea_for_addr): Likewise.
4305 (ix86_split_lea_for_addr): Likewise.
4306 (distance_non_agu_define): Search in pred BBs added.
4307 (distance_agu_use): Search in succ BBs added.
4308 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
4309 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
4310 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
4312 * config/i386/i386.md: Split added to transform non destructive
4313 add into move and add.
4314 (lea_1): transformed into insn_and_split to avoid AGU stalls.
4315 (lea<mode>_2): Likewise.
4317 2011-09-08 Martin Jambor <mjambor@suse.cz>
4319 PR tree-optimization/50287
4320 * ipa-split.c (split_function): Do not create SSA names for
4321 non-gimple-registers.
4323 2011-09-08 Richard Guenther <rguenther@suse.de>
4325 PR tree-optimization/19831
4326 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
4327 skip builtins with vdefs that do not really store something.
4328 (propagate_necessity): For calls to free that we can associate
4329 with an allocation function do not mark the freed pointer
4330 definition necessary.
4331 (eliminate_unnecessary_stmts): Remove a call to free if
4332 the associated call to an allocation function is not necessary.
4334 2011-09-08 Richard Guenther <rguenther@suse.de>
4336 PR tree-optimization/19831
4337 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
4338 allocation functions as necessary.
4340 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
4342 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
4344 (darwin_default_min_version): Amended to provide defaults
4345 for the cross directory case.
4346 (darwin_driver_init): call darwin_default_min_version unconditionally.
4347 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
4348 * config/darwin9.h: Likewise.
4349 * config/darwin10.h: Likewise.
4350 * config/rs6000/darwin7.h: Likewise.
4352 2011-09-08 Jakub Jelinek <jakub@redhat.com>
4355 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
4356 code early if TARGET_AVX.
4357 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
4359 2011-09-07 Jakub Jelinek <jakub@redhat.com>
4361 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
4365 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
4366 "mode" attribute computation.
4368 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
4370 * regrename.c (struct du_head): Make nregs signed.
4371 (closed_chains): Remove.
4372 (create_new_chain): Return the new chain.
4373 (chain_from_id): New static function.
4374 (dump_def_use_chain): Change argument to be an int, indicating
4375 the first ID to print. All callers changed.
4376 (merge_overlapping_regs): Use chain_from_id. Assert that
4377 chains don't conflict with themselves.
4378 (rename_chains): Take no argument. Iterate over id_to_chain
4379 rather to find chains to rename. Clear tick before the main loop.
4380 (struct incoming_reg_info): New struct.
4381 (struct bb_rename_info): New struct.
4382 (init_rename_info, set_incoming_from_chain, merge_chains): New
4384 (regrename_analyze): New static function, broken out of
4385 regrename_optimize. Record and make use of open chain information
4386 at basic block boundaries, and merge chains where possible.
4387 (scan_rtx_reg): Make this_nregs signed. Don't update
4389 (build_def_use): Return a bool to indicate success. All callers
4390 changed. Don't initialize global data here.
4391 (regrename_optimize): Move most code out of here into
4393 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
4394 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
4395 static inline functions.
4396 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
4398 * bb-reorder.c (insert_section_boundary_note): Don't check
4399 optimize_function_for_speed_p.
4400 (gate_handle_partition_blocks): Do it here instead.
4401 (gate_handle_reorder_blocks): Move preliminary checks here ...
4402 (rest_of_handle_reorder_blocks): ... from here.
4404 2011-09-07 Martin Jambor <mjambor@suse.cz>
4407 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
4408 function index bounds.
4409 (perhaps_add_new_callers): Likewise.
4411 2011-09-07 Martin Jambor <mjambor@suse.cz>
4413 PR tree-optimization/49911
4414 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
4415 enumerations to the corresponding plain integer type.
4417 2011-09-07 Richard Guenther <rguenther@suse.de>
4419 PR tree-optimization/50319
4420 * tree-if-conv.c (set_bb_predicate): Assert we only set
4421 canonical predicates.
4422 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
4423 around canonical predicates.
4424 (predicate_bbs): Do not re-gimplify already canonical
4425 predicates. Properly unshare them though.
4426 (find_phi_replacement_condition): Simplify.
4428 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
4431 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
4432 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
4433 reusing the old code from get_arm_condition_code. Return ARM_NV
4434 for invalid comparison codes.
4435 (get_arm_condition_code): Redefine in terms of
4436 maybe_get_arm_condition_code.
4437 * config/arm/predicates.md (arm_comparison_operator): Use
4438 maybe_get_arm_condition_code.
4440 2011-09-07 Richard Guenther <rguenther@suse.de>
4442 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4443 Canonicalize negated predicates by swapping edges.
4444 (forward_propagate_into_cond): Likewise.
4446 2011-09-07 Richard Guenther <rguenther@suse.de>
4448 PR tree-optimization/50213
4449 * tree-flow.h (simple_iv_increment_p): Declare.
4450 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
4452 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
4453 not propagate simple IV counter increments.
4455 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
4456 Iain Sandoe <iains@gcc.gnu.org>
4458 * config/rs6000/rs6000.c (compute_save_world_info): Test
4459 cfun->has_nonlocal_label to determine if the out-of-line save
4460 world call may be used.
4462 2011-09-07 Nick Clifton <nickc@redhat.com>
4464 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
4465 label on the parallel part of the insn.
4467 2011-09-07 Jakub Jelinek <jakub@redhat.com>
4470 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
4471 avoid_constant_pool_reference first instead of last.
4473 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4475 * doc/configfiles.texi (Configuration Files): Update documentation
4476 about tm_p.h and remove FIXME comment.
4478 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
4480 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
4481 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
4483 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
4485 * config/darwin10.h Remove duplicate LIB_SPEC.
4487 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
4490 * target.def (reassociation_width): New hook.
4492 * doc/tm.texi.in (reassociation_width): Likewise.
4494 * doc/tm.texi (reassociation_width): Likewise.
4496 * doc/invoke.texi (tree-reassoc-width): New param documented.
4498 * hooks.h (hook_int_uint_mode_1): New default hook.
4500 * hooks.c (hook_int_uint_mode_1): Likewise.
4502 * config/i386/i386.h (ix86_tune_indices): Add
4503 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4505 (TARGET_REASSOC_INT_TO_PARALLEL): New.
4506 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
4508 * config/i386/i386.c (initial_ix86_tune_features): Add
4509 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4511 (ix86_reassociation_width): New function.
4513 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
4515 * tree-ssa-reassoc.c (get_required_cycles): New function.
4516 (get_reassociation_width): Likewise.
4517 (swap_ops_for_binary_stmt): Likewise.
4518 (rewrite_expr_tree_parallel): Likewise.
4520 (rewrite_expr_tree): Refactored. Part of code moved into
4521 swap_ops_for_binary_stmt.
4523 (reassociate_bb): Now checks reassociation width to be used and
4524 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
4526 2011-09-06 Richard Guenther <rguenther@suse.de>
4528 PR tree-optimization/47025
4529 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
4531 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
4533 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
4534 definitely points to.
4535 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4536 BUILT_IN_VA_START doesn't let its va_list argument escape.
4537 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
4538 not make any previous stores necessary.
4540 2011-09-06 Martin Jambor <mjambor@suse.cz>
4542 * ipa-inline.h (struct inline_summary): Move versionable flag...
4543 * cgraph.h (struct cgraph_local_info): ...here
4544 * ipa-cp.c (determine_versionability): Use the new versionable flag.
4545 (determine_versionability): Likewise.
4546 (ipcp_versionable_function_p): Likewise.
4547 (ipcp_generate_summary): Likewise.
4548 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
4550 (compute_inline_parameters): Do not clear the versionable flag.
4551 (inline_read_section): Do not stream the versionable flag.
4552 (inline_write_summary): Likewise.
4553 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
4554 (input_overwrite_node): Likewise.
4556 2011-09-06 Richard Guenther <rguenther@suse.de>
4558 PR tree-optimization/48149
4559 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
4560 (vn_valueize): Move earlier.
4561 (valueize_expr): Use vn_valueize.
4562 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
4564 (simplify_unary_expression): Simplify.
4566 2011-09-06 Richard Guenther <rguenther@suse.de>
4568 PR tree-optimization/48317
4569 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
4571 (sizeof_vn_nary_op): New inline function.
4572 (vn_nary_op_lookup_pieces): Adjust.
4573 (vn_nary_op_insert_pieces): Likewise.
4574 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
4575 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
4576 any number of operands.
4577 (vn_nary_length_from_stmt): New function.
4578 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
4579 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
4581 (vn_nary_op_lookup): Likewise.
4582 (vn_nary_op_lookup_stmt): Likewise.
4583 (vn_nary_op_insert_into): Likewise.
4584 (vn_nary_op_insert_stmt): Likewise.
4585 (visit_use): Handle CONSTRUCTOR as nary.
4586 * tree-ssa-pre.c (phi_translate_1): Adjust.
4587 (create_expression_by_pieces): Likewise.
4588 (compute_avail): Likewise.
4590 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
4592 * config/arm/arm.c (arm_preferred_simd_mode): Check
4593 TARGET_NEON_VECTORIZE_DOUBLE instead of
4594 TARGET_NEON_VECTORIZE_QUAD.
4595 (arm_autovectorize_vector_sizes): Likewise.
4596 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
4597 mask of mvectorize-with-neon-double. Add RejectNegative.
4598 (mvectorize-with-neon-double): New.
4600 2011-09-06 Richard Guenther <rguenther@suse.de>
4602 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
4604 2011-09-06 Tom de Vries <tom@codesourcery.com>
4606 * recog.c (asm_labels_ok): New function.
4607 (check_asm_operands): Use asm_labels_ok.
4609 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
4612 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
4613 (PMODE_INSN): New macro.
4614 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
4615 (mips_got_load, mips_expand_synci_loop): Likewise.
4616 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
4618 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
4619 copygp_mips16 patterns.
4620 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
4621 and use_cprestore patterns.
4622 (mips_override_options): Check for incompatible -mabi and -mlong
4624 * config/mips/mips.md (unspec_got<mode>): Rename to...
4625 (unspec_got_<mode>): ...this.
4626 (copygp_mips16): Use the Pmode iterator.
4627 (potential_cprestore, cprestore, use_cprestore): Likewise.
4628 (clear_cache, indirect_jump): Use PMODE_INSN.
4629 (indirect_jump<mode>): Rename to...
4630 (indirect_jump_<mode>): ...this.
4631 (tablejump): Use PMODE_INSN.
4632 (tablejump<mode>): Rename to...
4633 (tablejump_<mode>): ...this.
4634 (exception_receiver): Handle restore_gp_si and restore_gp_di.
4635 (restore_gp): Use the Pmode iterator.
4636 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
4639 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
4641 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
4642 Fix the type of the BIT_AND_EXPR.
4644 2011-09-05 David S. Miller <davem@davemloft.net>
4646 * config.host: Add driver-sparc.o and sparc/x-sparc on
4647 native sparc*-*-linux* builds.
4648 * config/sparc/driver-sparc.c: Correct Linux strings.
4649 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
4650 * config/sparc/linux64.h: Likewise.
4651 * doc/invoke.texi: Document that Linux also supports
4652 -mcpu=native and -mtune=native on sparc.
4654 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
4655 PROCESSOR_NIAGARA4): New.
4656 * config/sparc/sparc.opt: Handle new processor types.
4657 * config/sparc/sparc.md: Add to "cpu" attribute.
4658 * config/sparc/sparc.h (TARGET_CPU_niagara3,
4659 TARGET_CPU_niagara4): New, treat as niagara2.
4660 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
4661 * config/sparc/sol2.h: Likewise.
4662 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
4663 * config/sparc/sparc.c (sparc_option_override): Add
4664 niagara3 and niagara4 handling.
4665 (sparc32_initialize_trampoline): Likewise.
4666 (sparc64_initialize_trampoline): Likewise.
4667 (sparc_use_sched_lookahead): Likewise.
4668 (sparc_issue_rate): Likewise.
4669 (sparc_register_move_cost): Likewise.
4670 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
4671 and niagara4 as appropriate.
4672 * doc/invoke.texi: Document new processor types.
4673 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
4674 and --with-tune options.
4676 * config/sparc/sol2-64.h: Move ...
4677 * config/sparc/default-64.h: ... to here. Update comment.
4678 * config.gcc: Update Solaris sparc to use default-64.h, also
4679 prefix this header into the list on sparc64-*-linux.
4680 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
4681 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
4684 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
4687 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
4688 that contain global register variable.
4690 2011-09-05 Richard Guenther <rguenther@suse.de>
4692 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4694 2011-09-05 Richard Guenther <rguenther@suse.de>
4696 * stor-layout.c (layout_type): Use size_binop for array size
4699 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
4701 * config/avr/avr.h (progmem_section): Remove Declaration.
4702 * config/avr/avr.c (progmem_section): Make static and rename to
4703 progmem_swtable_section.
4704 (avr_output_addr_vec_elt): No need to switch sections.
4705 (avr_asm_init_sections): Use output_section_asm_op as section
4706 callback for progmem_swtable_section.
4707 (avr_output_progmem_section_asm_op): Remove Function.
4708 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
4709 (avr_asm_function_rodata_section): New static Function.
4710 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
4711 alignment 2**1 for jump tables.
4713 2011-09-04 Jan Hubicka <jh@suse.cz>
4715 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
4716 parameter is SSA name.
4718 2011-09-04 Richard Guenther <rguenther@suse.de>
4721 2011-08-31 Richard Guenther <rguenther@suse.de>
4723 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4726 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
4729 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
4731 2011-09-04 Jakub Jelinek <jakub@redhat.com>
4732 Ira Rosen <ira.rosen@linaro.org>
4734 PR tree-optimization/50208
4735 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
4736 argument. Check that def_stmt is inside the loop.
4737 (vect_recog_widen_mult_pattern): Update calls to
4738 vect_handle_widen_mult_by_cons.
4739 (vect_operation_fits_smaller_type): Check that def_stmt is
4742 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
4744 * tree-vectorizer.c (vect_print_dump_info): Print line
4745 number when dumping to a file.
4746 (vectorize_loops): Add new messages to dump file.
4748 2011-09-03 Martin Jambor <mjambor@suse.cz>
4750 * ipa-prop.h (ipa_jump_func_t): New typedef.
4751 (struct ipa_edge_args): Removed field argument_count, field
4752 jump_functions turned into a vector.
4753 (ipa_set_cs_argument_count): Removed.
4754 (ipa_get_cs_argument_count): Updated to work on vectors.
4755 (ipa_get_ith_jump_func): Likewise.
4756 * ipa-prop.c (ipa_count_arguments): Removed.
4757 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
4758 jump functions. Update caller.
4759 (compute_pass_through_member_ptrs): Likewise.
4760 (compute_cst_member_ptr_arguments): Likewise.
4761 (ipa_compute_jump_functions_for_edge): Get number of arguments from
4762 the statement, allocate vector.
4763 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
4764 (duplicate_ipa_jump_func_array): Removed.
4765 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
4766 (ipa_read_node_info): Allocate vector.
4768 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4771 * config/pa/pa.md (return): Define "return" insn pattern.
4772 (epilogue): Use it when no epilogue is needed.
4773 * config/pa/pa.c (pa_can_use_return_insn): New function.
4774 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
4776 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
4778 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
4779 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
4780 Force at least BITS_PER_UNIT alignment on the new variable.
4782 2011-09-02 Gary Funck <gary@intrepid.com>
4784 * opts.c (print_specific_help): Fix off-by-one compare in
4786 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4787 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
4788 Increase by +5 to allow for more languages.
4789 * optc-gen.awk: Generate #if that ensures that the number of
4790 languages is within the implementation-defined limit.
4792 2011-09-02 Michael Matz <matz@suse.de>
4795 * ipa-split.c (split_function): Call add_referenced_var.
4797 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
4798 (cond_if_else_store_replacement_1): Ditto.
4799 * tree-ssa-pre.c (get_representative_for): Ditto.
4800 (create_expression_by_pieces): Ditto.
4801 (insert_into_preds_of_block): Ditto.
4802 * tree-sra.c (create_access_replacement): Ditto.
4803 (get_replaced_param_substitute): Ditto.
4805 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
4807 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
4809 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
4810 (l1w, s1w, l2w, s2w): Define in the main automaton.
4811 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
4813 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
4814 (c6x_unit_names): Add the new units.
4815 (c6x_unit_codes): New static array.
4816 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
4817 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
4818 UNIT_QID_SIDE_OFFSET): New macros.
4819 (RESERVATION_S2): Adjust value.
4820 (c6x_option_override): Compute c6x_unit_codes.
4821 (assign_reservations): Take the unit_mask of the last instruction
4822 into account. Detect floating point reservations by looking for
4823 the new units. Don't assign reservations if the field is already
4825 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
4826 (init_sched_state): Initialize it.
4827 (c6x_clear_sched_context): Free it.
4828 (insn_set_clock): Clear reservation.
4829 (prev_cycle_state): New static variable.
4830 (c6x_init_sched_context): Save it.
4831 (c6x_sched_init): Allocate space for it and clear it.
4832 (c6x_sched_dfa_pre_cycle_insn): New static function.
4833 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
4834 (c6x_variable_issue): Only record units in the unit_mask that
4835 were not set at the start of the cycle.
4836 (c6x_variable_issue): Compute and store the unit_mask from the
4838 (reorg_split_calls): Ensure the new information remains correct.
4839 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
4840 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
4841 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
4842 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
4843 Add special reservations.
4844 * config/c6x/c6x-sched.md: Regenerate.
4846 2011-09-02 Martin Jambor <mjambor@suse.cz>
4848 * ipa-prop.h (ipa_node_params): Removed fields
4849 called_with_var_arguments and node_versionable.
4850 (ipa_set_called_with_variable_arg): Removed.
4851 (ipa_is_called_with_var_arguments): Likewise.
4852 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
4853 (determine_versionability): Do not check for type attributes and va
4854 builtins. Record versionability into inline summary.
4855 (initialize_node_lattices): Do not check
4856 ipa_is_called_with_var_arguments.
4857 (propagate_constants_accross_call): Likewise, ignore arguments we do
4858 not have PARM_DECLs for, set variable flag for parameters that were
4860 (create_specialized_node): Dump info that we cannot change signature.
4861 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
4862 number of arguments.
4863 (ipa_make_edge_direct_to_target): Likewise.
4864 (ipa_update_after_lto_read): Likewise.
4865 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
4866 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
4869 2011-09-02 Richard Guenther <rguenther@suse.de>
4871 PR tree-optimization/27460
4873 * doc/md.texi (vcond): Document.
4874 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
4875 optab with two modes.
4876 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
4877 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
4878 (vcond_optab): Adjust.
4879 (vcondu_optab): Likewise.
4880 (expand_vec_cond_expr_p): Adjust prototype.
4881 * optabs.c (get_vcond_icode): Adjust.
4882 (expand_vec_cond_expr_p): Likewise.
4883 (expand_vec_cond_expr): Likewise.
4884 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
4886 (vectorizable_condition): Allow differing types for comparison
4888 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
4890 * config/i386/sse.md (vcond<mode>): Split to
4891 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4892 vcond<V_128:mode><VI124_128:mode> and
4893 vcondu<V_128:mode><VI124_128:mode>.
4894 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4895 (vconduv2di): Likewise.
4896 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4897 (vcondu<mode>): Likewise.
4898 * config/ia64/vect.md (vcond<mode>): Likewise.
4899 (vcondu<mode>): Likewise.
4900 (vcondv2sf): Likewise.
4901 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4902 * config/rs6000/paired.md (vcondv2sf): Likewise.
4903 * config/rs6000/vector.md (vcond<mode>): Likewise.
4904 (vcondu<mode>): Likewise.
4905 * config/spu/spu.md (vcond<mode>): Likewise.
4906 (vcondu<mode>): Likewise.
4908 2011-09-02 Richard Guenther <rguenther@suse.de>
4910 * pretty-print.h (pp_unsigned_wide_integer): New.
4911 * tree-pretty-print.c (dump_generic_node): Print unsigned
4912 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4914 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
4917 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4918 valid CONST_VECTOR operands.
4919 (rs6000_expand_vector_init): Likewise.
4921 2011-09-02 Martin Jambor <mjambor@suse.cz>
4923 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4924 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4925 BINFO_VTABLE. Parameter delta removed, all callers updated.
4926 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4928 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4930 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4931 handling of thunk_delta.
4932 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4933 (devirtualization_time_bonus): Do not handle thunk deltas.
4934 (ipcp_discover_new_direct_edges): Likewise.
4935 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4936 (try_make_edge_direct_simple_call): Likewise.
4937 (try_make_edge_direct_virtual_call): Likewise.
4938 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
4939 parameter set as unused.
4940 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
4941 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
4942 parameter set as unused.
4943 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
4944 (input_edge_opt_summary): Likewise.
4945 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4946 BINFO_VIRTUALS at all.
4947 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4949 2011-09-02 Richard Guenther <rguenther@suse.de>
4951 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4952 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4954 2011-08-31 Richard Guenther <rguenther@suse.de>
4956 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4957 handling here, from ...
4958 (expand_expr_real_1): ... here.
4959 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4961 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4962 a GIMPLE_TERNARY_RHS.
4963 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4964 and VEC_COND_EXPR here ...
4965 (verify_gimple_assign_single): ... not here.
4966 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4967 * tree-object-size.c (cond_expr_object_size): Adjust.
4968 (collect_object_sizes_for): Likewise.
4969 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4970 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4971 (ssa_forward_propagate_and_combine): Adjust.
4972 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4974 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4975 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4976 * tree-vect-stmt.c (vectorizable_condition): Likewise.
4977 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4978 (extract_range_from_assignment): Likewise.
4980 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4982 * config/i386/i386.md: Use (match_test ...) for attribute tests.
4983 * config/i386/mmx.md: Likewise.
4984 * config/i386/sse.md: Likewise.
4985 * config/i386/predicates.md (call_insn_operand): Use
4986 (not (match_test "...")) instead of (match_test "!...")
4987 * config/i386/constraints.md (w): Likewise.
4989 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4991 * doc/md.texi: Describe the use of match_tests in attribute tests.
4992 * rtl.def (MATCH_TEST): Update commentary.
4993 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
4994 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
4996 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
4998 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
4999 (attr_string): Use copy_md_ptr_loc.
5001 2011-08-31 Martin Jambor <mjambor@suse.cz>
5004 * ipa-inline-analysis.c (compute_inline_parameters): Set
5005 can_change_signature of noes with typde attributes.
5006 * ipa-split.c (split_function): Do not skip any arguments if
5007 can_change_signature is set.
5009 2011-08-31 Martin Jambor <mjambor@suse.cz>
5011 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
5014 2011-08-31 Richard Guenther <rguenther@suse.de>
5016 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
5019 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
5021 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
5023 2011-08-31 Tom de Vries <tom@codesourcery.com>
5026 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
5027 * tree-ssa-ccp.c (params.h): Include.
5028 (fold_builtin_alloca_for_var): New function.
5029 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
5031 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
5033 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5036 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
5038 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
5041 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
5043 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
5046 2011-08-30 Richard Guenther <rguenther@suse.de>
5049 * gimple.h (maybe_fold_offset_to_address): Remove.
5050 (maybe_fold_offset_to_reference): Likewise.
5051 (maybe_fold_stmt_addition): Likewise.
5052 (may_propagate_address_into_dereference): Likewise.
5053 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
5055 * gimple-fold.c (canonicalize_constructor_val): Likewise.
5056 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
5058 (may_propagate_address_into_dereference): Remove.
5059 (maybe_fold_offset_to_array_ref): Likewise.
5060 (maybe_fold_offset_to_reference): Likewise.
5061 (maybe_fold_offset_to_address): Likewise.
5062 (maybe_fold_stmt_addition): Likewise.
5063 (fold_gimple_assign): Do not reconstruct array references but
5064 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
5066 (gimple_fold_stmt_to_constant_1): Likewise.
5067 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5068 * gimplify.c (gimplify_conversion): Likewise.
5069 (gimplify_expr): Likewise.
5071 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
5073 * config/i386/fmaintrin.h: New.
5074 * config.gcc: Add fmaintrin.h.
5075 * config/i386/i386.c
5076 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
5077 <IX86_BUILTIN_VFMADDSD3>: Likewise.
5078 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
5079 (*fmai_fmadd_<mode>): Likewise.
5080 (*fmai_fmsub_<mode>): Likewise.
5081 (*fmai_fnmadd_<mode>): Likewise.
5082 (*fmai_fnmsub_<mode>): Likewise.
5083 * config/i386/immintrin.h: Add fmaintrin.h.
5085 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
5087 * genautomata.c (NO_COMB_OPTION): New macro.
5088 (no_comb_flag): New static variable.
5089 (gen_automata_option): Handle NO_COMB_OPTION.
5090 (comb_vect_p): False if no_comb_flag.
5091 (add_vect): Move computation of min/max values. Return early if
5093 * doc/md.texi (automata_option): Document no-comb-vect.
5095 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
5096 "__x86.get_pc_thunk".
5098 * bb-reorder.c (insert_section_boundary_note): Only do it if
5099 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
5101 2011-08-30 Christian Bruel <christian.bruel@st.com>
5103 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
5106 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
5108 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
5109 to off. Document switch.
5110 * doc/invoke.texi (-msave-toc-indirect): Ditto.
5112 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5114 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
5115 conditionals and comments inside macro arguments.
5117 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
5118 Richard Guenther <rguenther@suse.de>
5120 * tree.h (constant_boolean_node): Adjust prototype.
5121 * fold-const.c (fold_convert_loc): Move aggregate conversion
5123 (constant_boolean_node): Make value parameter boolean, add
5124 vector type handling.
5125 (fold_unary_loc): Use constant_boolean_node.
5126 (fold_binary_loc): Preserve types properly when folding
5127 COMPLEX_EXPR <__real x, __imag x>.
5128 * gimplify.c (gimplify_expr): Handle vector comparison.
5129 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
5131 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
5134 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5137 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
5138 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
5139 (verify_rtl_sharing): Likewise and verify_rtx_sharing
5141 (unshare_all_rtl_in_chain): For CALL_INSNs
5142 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
5144 2011-08-29 Richard Guenther <rguenther@suse.de>
5146 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
5147 on the built ADDR_EXPR.
5149 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5152 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
5153 before adding ENTRY_VALUE to val->locs.
5155 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
5158 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
5161 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
5163 * doc/rtl.texi (simple_return): Document.
5164 (parallel, PATTERN): Here too.
5165 * doc/md.texi (return): Mention it's allowed to expand to simple_return
5167 (simple_return): Document standard pattern.
5168 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
5169 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
5170 * reorg.c (function_return_label, function_simple_return_label):
5171 New static variables, replacing...
5172 (end_of_function_label): ... this.
5173 (simplejump_or_return_p): New static function.
5174 (optimize_skip, steal_delay_list_from_fallthrough,
5175 fill_slots_from_thread): Use it.
5176 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
5177 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
5178 (find_end_label): Take a new arg which is one of the two return
5179 rtxs. Depending on which, set either function_return_label or
5180 function_simple_return_label. All callers changed.
5181 (make_return_insns): Make both kinds.
5182 (dbr_schedule): Adjust for two kinds of end labels.
5183 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
5184 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
5185 (gen_expand, gen_split): Use ANY_RETURN_P.
5186 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
5187 * rtl.def (SIMPLE_RETURN): New code.
5188 * ifcvt.c (find_if_case_1): Be more careful about
5189 redirecting jumps to the EXIT_BLOCK.
5190 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
5191 returnjump_p_1): Handle SIMPLE_RETURNs.
5192 * print-rtl.c (print_rtx): Likewise.
5193 * rtl.c (copy_rtx): Likewise.
5194 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
5195 * combine.c (simplify_set): Likewise.
5196 * resource.c (find_dead_or_set_registers, mark_set_resources):
5198 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
5199 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
5200 (init_emit_regs): Initialize simple_return_rtx.
5201 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
5202 force_nonfallthru_and_redirect.
5203 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
5204 (GR_SIMPLE_RETURN): New enum value.
5205 (simple_return_rtx): New macro.
5206 * basic-block.h (force_nonfallthru_and_redirect): Adjust
5208 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
5209 argument. All callers changed. Be careful about what kinds of
5210 returnjumps to generate.
5211 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
5212 ix86_pad_short_function): Likewise.
5213 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
5215 * config/mips/mips.md (any_return): New code_iterator.
5216 (optab): Add cases for return and simple_return.
5217 (return): Expand to a simple_return.
5218 (simple_return): New pattern.
5219 (*<optab>, *<optab>_internal for any_return): New patterns.
5220 (return_internal): Remove.
5221 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
5222 a simple_return_internal.
5224 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5226 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
5227 (vec_extract_lo_<mode>): Prevent both operands in memory.
5228 (vec_extract_lo_v16hi): Ditto.
5229 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
5231 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5233 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
5234 (*sse2_mulv4si3): Ditto.
5236 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
5239 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
5242 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
5243 when all outputs are unused.
5244 (sse4_2_pcmpistr): Ditto.
5246 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
5248 * config/i386/i386.md (round<mode>2): New expander.
5249 * config/i386/i386.c (enum ix86_builtins): Add
5250 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
5251 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
5253 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
5254 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
5256 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
5259 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
5260 only when TARGET_C99_FUNCTIONS.
5261 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
5262 <BUILT_IN_RINT{,F,L}>: Ditto.
5264 2011-08-26 Michael Matz <matz@suse.de>
5265 Jakub Jelinek <jakub@redhat.com>
5268 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
5269 don't call strlen twice, use memcpy.
5271 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
5273 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
5274 * config/i386/bmiintrin.h: Likewise.
5275 * config/i386/lzcntintrin.h: Likewise.
5277 * config/i386/immintrin.h: Include <lzcntintrin.h>,
5278 <bmiintrin.h> and <bmi2intrin.h>.
5280 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5283 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
5284 * configure: Regenerate.
5286 2011-08-26 Jakub Jelinek <jakub@redhat.com>
5289 * c-typeck.c (c_process_expr_stmt): Skip over nops and
5290 call mark_exp_read even if exprv is ADDR_EXPR.
5292 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
5294 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
5295 to df_set_dead_notes_for_mw.
5297 2011-08-26 Richard Guenther <rguenther@suse.de>
5299 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
5301 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
5302 Tom de Vries <tom@codesourcery.com>
5304 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
5305 (struct ivopts_data): Add loop_single_exit_p field.
5306 (niter_for_exit): Change parameter desc_p into return value. Return
5307 desc if desc->may_be_zero. Free desc if unused.
5308 (niter_for_single_dom_exit): Change return type.
5309 (find_induction_variables): Handle changed return type of
5310 niter_for_single_dom_exit. Dump may_be_zero.
5311 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
5312 (set_use_iv_cost): Add and handle comp parameter.
5313 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
5314 comp argument to set_use_iv_cost.
5315 (strip_wrap_conserving_type_conversions, expr_equal_p)
5316 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
5317 (may_eliminate_iv): Add comp parameter. Handle new return type of
5318 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
5319 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
5320 and may_eliminate_iv.
5321 (rewrite_use_compare): Move call to iv_elimination_compare to ...
5322 (may_eliminate_iv): Here.
5323 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
5325 2011-08-26 Tom de Vries <tom@codesourcery.com>
5327 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
5328 accessing TREE_TYPE.
5330 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
5332 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
5333 (*ior_scc_scc_cmp): Likewise
5334 (*and_scc_scc): Likewise.
5335 (*and_scc_scc_cmp): Likewise.
5336 (*and_scc_scc_nodom): Likewise.
5337 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
5339 2011-08-26 Jakub Jelinek <jakub@redhat.com>
5341 * rtlanal.c (nonzero_bits1): Handle CLRSB.
5343 2011-08-26 Richard Guenther <rguenther@suse.de>
5345 * expr.c (string_constant): Handle &MEM_REF.
5347 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
5349 * config/arm/arm.c (struct four_ints): New type.
5350 (count_insns_for_constant): Delete function.
5351 (find_best_start): Delete function.
5352 (optimal_immediate_sequence): New function.
5353 (optimal_immediate_sequence_1): New function.
5354 (arm_gen_constant): Move constant splitting code to
5355 optimal_immediate_sequence.
5356 Rewrite constant negation/invertion code.
5358 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
5360 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
5361 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
5362 Remove prototype. Remove static function type.
5363 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
5365 * config/arm/constraints.md (Pj, PJ): New constraints.
5367 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5369 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
5370 ("cortex_a9_multiply_long"): New and use above. Handle all
5371 long multiply cases.
5372 ("cortex_a9_multiply"): Handle smmul and smmulr.
5373 ("cortex_a9_mac"): Handle smmla.
5375 2011-08-25 Richard Henderson <rth@redhat.com>
5379 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
5380 non-constant stack adjutment.
5381 * expr.c (find_args_size_adjust): Break out from ...
5382 (fixup_args_size_notes): ... here.
5383 * rtl.h (find_args_size_adjust): Declare.
5385 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
5387 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
5388 sse4 and sse4_noavx.
5389 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
5390 (*pushdf_rex64): Change Y2 register constraint to x.
5391 (*movdf_internal_rex64): Ditto.
5392 (*zero_extendsidi2_rex64): Ditto.
5393 (*movdi_internal): Change Y2 register constraint to x
5394 and update "isa" attribute.
5396 (*movdf internal): Ditto.
5397 (zero_extendsidi2_1): Ditto.
5398 (*truncdfdf_mixed): Ditto.
5399 (*truncxfdf2_mixed): Ditto.
5400 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
5401 register constraint to x.
5402 (*movv2sf_internal_rex64): Ditto.
5403 (*mov<mode>_internal): Change Y2 register constraint to x
5404 and add "isa" attribute.
5405 (*movv2sf_internal): Ditto.
5406 (*vec_extractv2si_1): Ditto.
5407 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
5408 constraints to x and update "isa" attribute.
5409 (*vec_interleave_highv2df): Change Y3 registerconstraint
5410 to x and update "isa" attribute.
5411 (*vec_interleave_lowv2df): Ditto.
5412 (*vec_concatv2df): Change Y2 register constraint to x and
5413 update "isa" attribute.
5414 (sse2_loadld): Ditto.
5415 (*vec_extractv2di_1): Ditto.
5416 (*vec_dupv4si): Ditto.
5417 (*vec_dupv2di): Ditto.
5418 (*vec_concatv4si): Ditto.
5419 (vec_concatv2di): Ditto.
5420 * config/i386/constraints.md (Y2): Remove.
5424 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
5426 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
5427 dump_def_use_chain): Don't declare.
5428 (mark_conflict, create_new_chain): Move before users.
5429 (regrename_optimize): Move to near end of file.
5431 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5433 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
5434 (secondary_input_reload_class): Remove Prototype.
5435 * config/avr/avr.c (byte_immediate_operand): Remove Function.
5436 * config/avr/avr.md (setmemhi): Use u8_operand.
5437 (strlenhi): Use const0_rtx for comparison.
5438 * config/avr/avr.h (avr_reg_order): Remove Declaration.
5440 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5442 * config/avr/avr.c (reg_class_tab): Make local to
5443 avr_regno_reg_class. Return smallest register class available.
5445 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5447 * config/avr/avr.c (STR_PREFIX_P): New Define.
5448 (avr_asm_declare_function_name): Use it.
5449 (avr_asm_named_section): Use it.
5450 (avr_section_type_flags): Use it.
5452 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
5454 * doc/md.texi (automata_option): Document collapse-ndfa.
5455 * genautomata.c (COLLAPSE_OPTION): New macro.
5456 (collapse_flag): New static variable.
5457 (struct description): New member normal_decls_num.
5458 (struct automaton): New members advance_ainsn and collapse_ainsn.
5459 (gen_automata_option): Check for COLLAPSE_OPTION.
5460 (collapse_ndfa_insn_decl): New static variable.
5461 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
5462 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
5463 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
5464 necessary. Use normal_decls_num rather than decls_num, remove
5465 test for special decls.
5466 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
5467 (make_automaton); Likewise. Use the new advance_cycle_insn member
5468 of struct automaton.
5469 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
5471 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
5472 transition. Create the necessary transitions for it.
5473 (create_ainsns): Return void. Take an automaton_t argument, and
5474 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
5476 (COLLAPSE_NDFA_VALUE_NAME): New macro.
5477 (output_tables): Output code to define it.
5478 (output_internal_insn_code_evaluation): Output code to accept
5479 const0_rtx as collapse-ndfa transition.
5480 (output_default_latencies, output_print_reservation_func,
5481 output_print_description): Reorganize loops to use normal_decls_num
5482 as loop bound; remove special case for advance_cycle_insn_decl.
5483 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
5484 (check_automata_insn_issues): Check for collapse_ainsn.
5485 (expand_automate): Allocate sufficient space. Initialize
5488 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
5490 * config/avr/avr.md: Fix indentation from r177991.
5492 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
5494 * regrename.c (struct du_head): Remove member terminated.
5495 (create_new_chain): Don't initialize it.
5496 (scan_rtx_reg): Don't set or test it, test the open_chains_set
5498 (tick, this_tick): New global variables, moved out of
5500 (current_id, open_chains, closed_chains, open_chains_set,
5501 live_in_chains, live_hard_regs): Reorder declarations.
5502 (dump_def_use_chain): Move function earlier in the file.
5503 (rename_chains): New static function, broken out of
5505 (regrename_optimize): Use it. Remove #if 0'ed code.
5507 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5509 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
5511 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
5514 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
5516 2011-08-24 Richard Guenther <rguenther@suse.de>
5518 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
5519 ref in the basic-block case. Move stripping array-refs
5520 to the place we create an access-function for it. Remove
5521 bogus stripping down a MEM_REF to its base.
5523 2011-08-24 Richard Guenther <rguenther@suse.de>
5525 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
5526 with -fno-strict-overflow.
5528 2011-08-24 Richard Guenther <rguenther@suse.de>
5530 * tree-vectorizer.c (vect_print_dump_info): Avoid the
5531 file and location clutter when dumping to dump files.
5533 2011-08-24 Simon Baldwin <simonb@google.com>
5535 * gengtype-state.c (write_state): Remove timestamped header line.
5537 2011-08-24 Joseph Myers <joseph@codesourcery.com>
5539 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
5540 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
5541 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
5542 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
5543 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
5544 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
5545 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
5547 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
5549 2011-08-24 Joseph Myers <joseph@codesourcery.com>
5551 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
5553 2011-08-24 Richard Guenther <rguenther@suse.de>
5555 PR tree-optimization/50067
5556 * tree-data-ref.c (dr_analyze_indices): Do not add an access
5557 function for a MEM_REF base that has no evolution in the loop
5558 nest or that is not analyzable.
5560 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
5562 * ira.c (ira_init_register_move_cost): Check small subclasses
5563 through ira_reg_class_max_nregs and ira_available_class_regs.
5565 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
5567 * config/i386/constraints.md (Yp): New register constraint.
5568 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
5569 Yp register constraint.
5570 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
5571 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
5572 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
5574 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5576 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
5578 2011-08-23 Mark Heffernan <meheff@google.com>
5581 * common.opt (Wfree-nonheap-object): New option.
5582 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
5583 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
5585 (expand_builtin): Make warning conditional.
5587 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
5589 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
5590 (length_immediate): Handle imulx, ishiftx and rotatex.
5593 (enabled): Handle bmi2.
5594 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
5595 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
5596 (*bmi2_umulditi3_1): New insn pattern.
5597 (*bmi2_umulsidi3_1): Ditto.
5598 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
5599 (*bmi2_ashl<mode>3_1): New insn pattern.
5600 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
5601 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
5602 (*bmi2_ashlsi3_1_zext): New insn pattern.
5603 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
5604 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
5605 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
5606 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
5607 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
5609 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
5610 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
5611 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
5613 (*bmi2_rorx<mode>3_1): New insn pattern.
5614 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
5615 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
5616 (*rotatert<mode>3_1 splitter): Ditto.
5617 (*bmi2_rorxsi3_1_zext): New insn pattern.
5618 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
5619 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
5620 (*rotatertsi3_1_zext splitter): Ditto.
5622 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5624 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
5625 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
5626 (ix86_handle_option): Handle OPT_mbmi2 case.
5627 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
5628 (x86_64-*-*): Likewise.
5629 * config/i386/bmi2intrin.h: New file.
5630 * config/i386/cpuid.h (bit_BMI2): New.
5631 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5633 * config/i386/i386-c.c (ix86_target_macros_internal):
5634 Conditionally define __BMI2__.
5635 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
5637 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
5638 (print_reg): New code.
5639 (ix86_print_operand): Likewise.
5640 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5641 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5642 IX86_BUILTIN_PEXT64.
5643 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5644 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5645 IX86_BUILTIN_PEXT64.
5646 * config/i386/i386.h (TARGET_BMI2): New.
5647 * config/i386/i386.md (UNSPEC_PDEP): New.
5648 (UNSPEC_PEXT): Likewise.
5649 (*bmi2_bzhi_<mode>3): Likewise.
5650 (*bmi2_pdep_<mode>3): Likewise.
5651 (*bmi2_pext_<mode>3): Likewise.
5652 * config/i386/i386.opt (mbmi2): New.
5653 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
5655 * doc/extend.texi: Document BMI2 built-in functions.
5656 * doc/invoke.texi: Document -mbmi2.
5658 2011-08-23 Jakub Jelinek <jakub@redhat.com>
5661 * simplify-rtx.c (simplify_const_unary_operation): If
5662 op is CONST_INT, don't look at op_mode, but use instead mode.
5663 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
5664 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
5665 operation and TRUNCATE/ZERO_EXTEND if needed.
5666 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
5667 Document that operand mode must be same as operation mode,
5669 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
5670 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
5671 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
5672 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
5673 use the mode of operand for the operation and add truncate
5674 or zero_extend around if needed.
5675 * config/c6x/c6x.md (ctzdi2): Likewise.
5676 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
5678 2011-08-12 Michael Matz <matz@suse.de>
5680 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
5681 (gimple_expand_cfg): Merge alignment info for coalesced pointer
5684 2011-08-23 Richard Guenther <rguenther@suse.de>
5686 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
5687 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
5688 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
5690 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
5691 (mem_refs_may_alias_p): Adjust.
5692 * tree-data-ref.h (dr_may_alias_p): Adjust.
5693 * tree-data-ref.c: Include tree-affine.h.
5694 (dr_analyze_indices): Do nothing for the non-loop case.
5695 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
5696 more cases in the non-loop case.
5697 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
5698 calls to dr_may_alias_p.
5699 (write_alias_graph_to_ascii_ecc): Likewise.
5700 (write_alias_graph_to_ascii_dot): Likewise.
5701 (build_alias_set_optimal_p): Likewise.
5703 2011-08-23 Richard Guenther <rguenther@suse.de>
5705 PR tree-optimization/50162
5706 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
5708 2011-08-23 Richard Guenther <rguenther@suse.de>
5710 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
5711 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
5712 (create_data_ref): Also dump access functions for the created data-ref.
5714 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
5715 Kirill Yukhin <kirill.yukhin@intel.com>
5718 * config/i386/sse.md (VI_AVX2): New.
5719 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
5720 (*<plusminus_insn><mode>3): Ditto.
5721 (<sse2_avx2>_andnot<mode>3): Ditto.
5722 (*andnot<mode>3): Fix order of cond operands.
5723 Add asserts for correct TARGET_xxx.
5724 (*<any_logic:code><mode>3): Ditto.
5726 2011-08-22 Anatoly Sokolov <aesok@post.ru>
5728 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
5729 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
5730 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
5731 regclass argument type to reg_class_t. Change 'max' and 'v' vars
5732 and return types to unsigned char. Use reg_class_contents instead
5734 (TARGET_CLASS_MAX_NREGS): Define.
5736 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
5738 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
5739 to make computed_jump_p return true.
5741 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5743 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
5744 (PICFLAG_FOR_TARGET): Substitute.
5745 * aclocal.m4: Regenerate.
5746 * configure: Regenerate.
5748 2011-08-22 Dodji Seketeli <dodji@redhat.com>
5750 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
5751 after reading in the pch.
5753 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
5755 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
5756 * configure: Regenerated.
5758 2011-08-22 Jakub Jelinek <jakub@redhat.com>
5760 PR tree-optimization/50133
5761 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
5762 from stmt instead of some statement around gsi.
5765 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5766 innerdecl is a VAR_DECL.
5768 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
5770 * config/i386/avx2intrin.h: New file.
5771 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
5772 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
5773 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
5774 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
5775 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
5776 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
5777 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
5778 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
5779 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
5780 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
5781 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
5782 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
5783 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
5784 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
5785 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
5786 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
5787 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
5788 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
5789 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
5790 VOID_FTYPE_PV8SI_V8SI_V8SI,
5791 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
5792 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
5793 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
5794 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
5795 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
5796 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
5797 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
5798 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
5799 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
5800 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
5801 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
5802 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
5803 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
5804 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
5805 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
5806 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
5807 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
5808 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
5809 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
5810 V4DI_FTYPE_V4DI_INT_CONVERT,
5811 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
5812 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
5813 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5814 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5815 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5816 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5817 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5818 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5819 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5820 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5821 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5822 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5823 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5824 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5825 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5826 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5827 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5828 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5829 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5830 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5831 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5832 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5833 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5834 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5835 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5836 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5837 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5838 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5839 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5840 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5841 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5842 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5843 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5844 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5845 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5846 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5847 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5848 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5849 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5850 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5851 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5852 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5853 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5854 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5855 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5856 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5857 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5858 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5859 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5860 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5861 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5862 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5863 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5864 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5865 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5866 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5867 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5868 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5869 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5870 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
5871 IX86_BUILTIN_VBROADCASTSS_PS256,
5872 IX86_BUILTIN_VBROADCASTSD_PD256,
5873 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5874 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5875 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5876 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5877 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5878 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5879 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5880 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5881 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5882 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5883 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5884 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5885 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
5886 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5887 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5888 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5889 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5890 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5891 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5892 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5893 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5894 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5895 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5896 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5897 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5898 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5899 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5900 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5901 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5902 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5903 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5904 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
5905 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5906 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5907 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5908 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5909 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5910 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5911 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5912 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5913 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5914 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5915 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5916 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5917 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5918 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5919 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5920 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5921 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5922 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5923 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5924 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5925 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5926 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5927 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5928 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5929 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5930 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5931 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5932 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5933 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5934 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5935 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5936 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5937 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5938 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5939 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5940 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5941 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5942 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5943 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5944 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5945 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5946 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5947 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5948 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5949 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5950 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5951 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5952 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5953 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5954 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5955 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5956 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5957 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5958 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5959 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5960 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5961 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5962 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5963 IX86_BUILTIN_VBROADCASTSD_PD256,
5964 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5965 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5966 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5967 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5968 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5969 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5970 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5971 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5972 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5973 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5974 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5975 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5976 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5977 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5978 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
5979 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
5980 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
5981 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
5982 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
5983 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
5984 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
5985 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
5986 IX86_BUILTIN_GATHERDIV8SI.
5987 (ix86_preferred_simd_mode): Support AVX2 modes.
5988 (ix86_expand_args_builtin): Support AVX2 builtins.
5989 (ix86_expand_special_args_builtin): Likewise.
5990 (ix86_expand_builtin): Likewise.
5991 * config/i386/i386.md (UNSPEC_VPERMSI): New.
5992 (UNSPEC_VPERMDF): Likewise.
5993 (UNSPEC_VPERMSF): Likewise.
5994 (UNSPEC_VPERMDI): Likewise.
5995 (UNSPEC_VPERMTI): Likewise.
5996 (UNSPEC_GATHER): Likewise.
5997 (ssemodesuffix): Extend.
5998 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
6000 * config/i386/predicates.md (const1248_operand): New.
6001 * config/i386/sse.md (VI1_AVX2): New mode iterator.
6002 (VI2_AVX2): Likewise.
6003 (VI4_AVX2): Likewise.
6004 (VI8_AVX2): Likewise.
6005 (VIMAX_AVX2): Likewise.
6006 (SSESCALARMODE): Likewise.
6007 (VI12_AVX2): Likewise.
6008 (VI24_AVX2): Likewise.
6009 (VI124_AVX2): Likewise.
6010 (VI248_AVX2): Likewise.
6011 (VI48_AVX2): Likewise.
6012 (VI4SD_AVX2): Likewise.
6013 (V48_AVX2): Likewise.
6014 (AVX256MODE2P): Likewise.
6015 (AVXMODE48P_DI): Likewise.
6016 (sse2_avx2): New mode attribute.
6017 (ssse3_avx2): Likewise.
6018 (sse4_1_avx2): Likewise.
6019 (avx_avx2): Likewise.
6020 (ssebytemode): Likewise.
6021 (AVXTOSSEMODE): Likewise.
6022 (AVXMODE48P_DI): Likewise.
6023 (gthrfirstp): Likewise.
6024 (gthrlastp): Likewise.
6025 (lshift): New code_iterator
6026 (lshift): New code attribute.
6028 (ssescalarmodesuffix): Update.
6029 (sseunpackmode): Likewise.
6030 (ssepackmode): Likewise.
6031 (avx2_vec_dupv4sf): New insn pattern.
6032 (avx2_vec_dupv8sf): Likewise.
6033 (avx2_interleave_highv4di): Likewise.
6034 (avx2_interleave_lowv4di): Likewise.
6035 (avx2_umulv4siv4di3): Likewise
6036 (*avx2_umulv4siv4di3): Likewise
6037 (avx2_pmaddwd): Likewise.
6038 (*avx2_pmaddwd): Likewise.
6039 (avx2_lshrqv4di3): Likewise.
6040 (avx2_lshlqv4di3): Likewise.
6041 (avx2_lshl<mode>3): Likewise.
6042 (avx2_<umaxmin:code><mode>3): Likewise.
6043 (*avx2_<umaxmin:code><mode>3): Likewise.
6044 (avx2_<smaxmin:code><mode>3): Likewise.
6045 (*avx2_<smaxmin:code><mode>3): Likewise.
6046 (avx2_eq<mode>3): Likewise.
6047 (*avx2_eq<mode>3): Likewise.
6048 (avx2_gt<mode>3): Likewise.
6049 (avx2_interleave_highv32qi): New.
6050 (avx2_interleave_lowv32qi): Likewise.
6051 (avx2_interleave_highv16hi): Likewise.
6052 (avx2_interleave_lowv16hi): Likewise.
6053 (avx2_interleave_highv8si): Likewise.
6054 (avx2_interleave_lowv8si): Likewise.
6055 (avx2_pshufd): Likewise.
6056 (avx2_pshufd_1): Likewise.
6057 (avx2_pshuflwv3): Likewise.
6058 (avx2_pshuflw_1): Likewise.
6059 (avx2_pshufhwv3): Likewise.
6060 (avx2_pshufhw_1): Likewise.
6061 (avx2_uavgv32qi3): Likewise.
6062 (*avx2_uavgv32qi3): Likewise.
6063 (avx2_uavgv16hi3): Likewise.
6064 (*avx2_uavgv16hi3): Likewise.
6065 (avx2_pmovmskb): Likewise.
6066 (avx2_phaddwv16hi3): Likewise.
6067 (avx2_phadddv8si3): Likewise.
6068 (avx2_phaddswv16hi3): Likewise.
6069 (avx2_phsubwv16hi3): Likewise.
6070 (avx2_phsubdv8si3): Likewise.
6071 (avx2_phsubswv16hi3): Likewise.
6072 (avx2_pmaddubsw256): Likewise.
6073 (avx2_umulhrswv16hi3): Likewise.
6074 (*avx2_umulhrswv16hi3): Likewise.
6075 (avx2_packusdw): Likewise.
6076 (avx2_pblendd<mode>): Likewise.
6077 (avx2_<code>v16qiv16hi2): Likewise.
6078 (avx2_<code>v8qiv8si2): Likewise.
6079 (avx2_<code>v8hiv8si2): Likewise.
6080 (avx2_<code>v4qiv4di2): Likewise.
6081 (avx2_<code>v4hiv4di2): Likewise.
6082 (avx2_<code>v4siv4di2): Likewise.
6083 (avx2_pbroadcast<mode>): Likewise.
6084 (avx2_permvarv8si): Likewise.
6085 (avx2_permv4df): Likewise.
6086 (avx2_permvarv8sf): Likewise.
6087 (avx2_permv4di): Likewise.
6088 (avx2_permv2ti): Likewise.
6089 (avx2_vec_dupv4df): Likewise.
6090 (avx2_vbroadcasti128_<mode>): Likewise.
6091 (avx2_vec_set_lo_v4di): Likewise.
6092 (avx2_vec_set_hi_v4di): Likewise.
6093 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
6094 (avx2_extracti128): Likewise.
6095 (avx2_inserti128): Likewise.
6096 (avx2_ashrvv8si): Likewise.
6097 (avx2_ashrvv4si): Likewise.
6098 (avx2_<lshift>vv8si): Likewise.
6099 (avx2_<lshift>v<mode>): Likewise.
6100 (avx2_<lshift>vv2di): Likewise.
6101 (avx2_gathersi<mode>): Likewise.
6102 (*avx2_gathersi<mode>): Likewise.
6103 (avx2_gatherdi<mode>): Likewise.
6104 (*avx2_gatherdi<mode>): Likewise.
6105 (avx2_gatherdi<mode>256): Likewise.
6106 (*avx2_gatherdi<mode>256): Likewise.
6107 (<plusminus_insn><mode>3): Use VI mode iterator.
6108 (*<plusminus_insn><mode>3): Use VI mode iterator.
6109 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
6110 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
6111 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
6112 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
6113 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
6114 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
6115 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
6116 Use VI2_AVX2 mode iterator.
6117 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
6118 Use VI2_AVX2 mode iterator.
6119 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
6120 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
6121 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
6122 Use VI4_AVX2 mode iterator.
6123 (ashr<mode>3): Use VI24_AVX2 mode iterator.
6124 (lshr<mode>3): Use VI248_AVX2 mode iterator.
6125 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
6126 Use VIMAX_AVX2 mode iterator.
6127 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
6128 Use VI mode iterator.
6129 (*andnot<mode>3): Update for AVX2.
6130 (*<any_logic:code><mode>3): Likewise.
6131 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
6132 Use VI1_AVX mode iterator.
6133 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
6134 Use VI2_AVX mode iterator.
6135 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
6136 Use VI1_AVX mode iterator.
6137 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
6138 Use VI8_AVX2 mode iterator.
6139 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
6140 Use VI1_AVX2 mode iterator.
6141 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
6142 Use VI124_AVX2 mode iterator.
6143 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
6144 Use SSESCALARMODE mode iterator.
6145 (abs<mode>2): Use VI124_AVX2 mode iterator.
6146 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
6147 Use VI8_AVX2 mode iterator.
6148 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
6149 Use VI1_AVX2 mode iterator.
6150 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
6151 Use VI1_AVX2 mode iterator.
6152 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
6153 Use VI2_AVX2 mode iterator.
6154 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
6155 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
6156 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
6157 avx_maskstore<ssemodesuffix><avxsizesuffix>.
6158 Use V48_AVX2 mode iterator.
6159 * doc/extend.texi: Document AVX2 built-in functions.
6160 * doc/invoke.texi: Document -mavx2.
6162 2011-08-22 Matthias Klose <doko@debian.org>
6165 2011-07-11 Arthur Loiret <aloiret@debian.org>
6166 Matthias Klose <doko@debian.org>
6167 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6168 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6170 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6172 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
6175 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
6176 to #ifndef HONOR_REG_ALLOC_ORDER block.
6178 2011-08-21 Richard Henderson <rth@redhat.com>
6180 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
6181 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
6182 * resource.c (next_insn_no_annul): Likewise.
6183 (mark_set_resources): Likewise.
6184 * reorg.c (delete_from_delay_slot): Likewise.
6185 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
6186 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
6188 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
6190 * config/i386/i386.md (any_div): Remove.
6191 (sgnprefix): Update for removal.
6194 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
6196 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
6197 for ira_reg_class_max_nregs. Increase pressure by 1.
6198 (mark_pseudo_regno_subword_dead): Use allocno class
6199 for ira_reg_class_max_nregs.
6201 2011-08-20 Richard Henderson <rth@redhat.com>
6203 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
6204 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
6205 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
6206 config/c6x/ltf.c: Adjust include path for soft-fp.
6208 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
6211 * config.gcc (tm_file): Add initfini-array.h if
6212 .init_arrary/.fini_array are supported.
6214 * crtstuff.c: Don't generate .ctors nor .dtors sections if
6215 USE_INITFINI_ARRAY is defined.
6217 * output.h (default_elf_init_array_asm_out_constructor): New.
6218 (default_elf_fini_array_asm_out_destructor): Likewise.
6219 * varasm.c (elf_init_array_section): Likewise.
6220 (elf_fini_array_section): Likewise.
6221 (get_elf_initfini_array_priority_section): Likewise.
6222 (default_elf_init_array_asm_out_constructor): Likewise.
6223 (default_elf_fini_array_asm_out_destructor): Likewise.
6225 * config/initfini-array.h: New.
6227 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
6229 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
6230 OK for ST_REGS and FP_REGS before taking those classes into account.
6232 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
6234 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
6235 before checking for annulled branches.
6237 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
6239 * config/i386/i386.c (ix86_binary_operator_ok): Use
6240 satisfies_constraint_L.
6242 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
6243 Michael Matz <matz@suse.de>
6245 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
6246 trunc (a + copysign (nextafter (0.5, 0.0), a)).
6248 2011-08-20 Anatoly Sokolov <aesok@post.ru>
6250 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6251 * doc/tm.texi: Regenerate.
6252 * targhooks.c (default_preferred_output_reload_class): Don't use
6253 PREFERRED_OUTPUT_RELOAD_CLASS macro.
6254 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
6256 2011-08-20 Jakub Jelinek <jakub@redhat.com>
6258 PR tree-optimization/48739
6259 * tree-ssa.c: Include cfgloop.h.
6260 (execute_update_addresses_taken): When updating ssa, if in loop closed
6261 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
6262 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
6264 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
6266 PR rtl-optimization/49936
6267 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
6268 for calculation of max register move costs.
6270 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6272 * c-parser.c (c_parser_postfix_expression): Convert operands of
6273 __builtin_complex to their semantic types.
6275 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
6278 * explow.c (convert_memory_address_addr_space): Also permute the
6279 conversion and addition of constant for zero-extend.
6281 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6283 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
6284 * doc/extend.texi (__builtin_complex): Document.
6286 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6288 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
6290 (convert_mult_to_widen): Convert constant inputs to the right type.
6291 (convert_plusminus_to_widen): Don't automatically reject inputs that
6292 are not an SSA_NAME.
6293 Convert constant inputs to the right type.
6295 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6297 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
6298 to the correct type.
6300 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6302 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
6303 unsigned inputs of different modes.
6304 (convert_plusminus_to_widen): Likewise.
6306 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6308 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
6310 Use 'type' from caller, not inferred from 'rhs'.
6311 Don't reject non-conversion statements. Do return lhs in this case.
6312 (is_widening_mult_p): Add new argument 'type'.
6313 Use 'type' from caller, not inferred from 'stmt'.
6314 Pass type to is_widening_mult_rhs_p.
6315 (convert_mult_to_widen): Pass type to is_widening_mult_p.
6316 (convert_plusminus_to_widen): Likewise.
6318 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6320 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
6321 Ensure the the larger type is the first operand.
6323 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6325 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
6326 unsupported unsigned multiplies to signed.
6327 (convert_plusminus_to_widen): Likewise.
6329 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6331 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
6332 conversion statement separating multiply-and-accumulate.
6334 2011-08-19 Richard Guenther <rguenther@suse.de>
6336 PR tree-optimization/50067
6337 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
6338 offset only if we accounted for it.
6340 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6342 * config/arm/arm.md (maddhidi4): Remove '*' from name.
6343 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
6344 * optabs.c (find_widening_optab_handler_and_mode): New function.
6345 (expand_widen_pattern_expr): Use find_widening_optab_handler.
6346 (expand_binop_directly): Likewise.
6347 (expand_binop): Likewise.
6348 * optabs.h (find_widening_optab_handler): New macro define.
6349 (find_widening_optab_handler_and_mode): New prototype.
6350 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
6351 type precision rules.
6352 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
6353 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
6354 (is_widening_mult_rhs_p): Allow widening by more than one mode.
6355 Explicitly disallow mis-matched input types.
6356 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
6357 input types to fit the new handler.
6358 (convert_plusminus_to_widen): Likewise.
6360 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
6362 * expr.c (expand_expr_real_2): Use widening_optab_handler.
6363 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
6364 (gen_insn): $N now means $a must be wider than $b, not consecutive.
6365 * optabs.c (widened_mode): New function.
6366 (expand_widen_pattern_expr): Use widening_optab_handler.
6367 (expand_binop_directly): Likewise.
6368 (expand_binop): Likewise.
6369 * optabs.h (widening_optab_handlers): New struct.
6370 (optab_d): New member, 'widening'.
6371 (widening_optab_handler): New function.
6372 (set_widening_optab_handler): New function.
6373 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
6374 widening_optab_handler.
6375 (convert_plusminus_to_widen): Likewise.
6377 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6379 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
6381 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
6382 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
6384 2011-08-19 Joseph Myers <joseph@codesourcery.com>
6386 * opth-gen.awk: Do not declare target save/restore structures and
6387 functions if IN_RTS defined.
6389 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6392 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
6393 when stack was realigned in interrupt handler prologue.
6395 2011-08-18 Joseph Myers <joseph@codesourcery.com>
6397 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
6398 (quals_from_declspecs): Assert _Noreturn not present.
6399 (grokdeclarator): Handle _Noreturn.
6400 (build_null_declspecs): Initialize noreturn_p.
6401 (declspecs_add_scspec): Handle RID_NORETURN.
6402 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
6403 (c_parser_attributes): Handle RID_NORETURN.
6404 * c-tree.h (struct c_declspecs): Add noreturn_p.
6405 * ginclude/stdnoreturn.h: New.
6406 * Makefile.in (USER_H): Add stdnoreturn.h.
6408 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
6410 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
6411 (OPTION_MASK_ISA_AVX_UNSET): Update.
6412 (OPTION_MASK_ISA_AVX2_UNSET): New.
6413 (ix86_handle_option): Handle OPT_mavx2 case.
6414 * config/i386/cpuid.h (bit_AVX2): New.
6415 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6417 * config/i386/i386-c.c (ix86_target_macros_internal):
6418 Conditionally define __AVX2__.
6419 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
6420 Define "core-avx2" processor alias. Handle avx2 option.
6421 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
6422 * config/i386/i386.h (TARGET_AVX2): New.
6423 * config/i386/i386.opt (mavx2): New.
6424 * doc/invoke.texi: Document -mavx2.
6426 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
6428 PR rtl-optimization/49890
6429 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
6430 subclasses of class which is superset of a pressure class.
6432 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
6433 Igor Zamyatin <igor.zamyatin@intel.com>
6435 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
6436 with HOST_WIDE_INT for isa_flag.
6437 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
6440 * config/i386/i386.c (ix86_target_string): Replace int with
6441 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
6442 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
6443 (pta_flags): Removed.
6444 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
6445 (pta): Use HOST_WIDE_INT on flags.
6446 (builtin_isa): Use HOST_WIDE_INT on isa.
6447 (ix86_add_new_builtins): Likewise.
6448 (def_builtin): Use HOST_WIDE_INT on mask.
6449 (def_builtin_const): Likewise.
6450 (builtin_description): Likewise.
6452 * config/i386/i386.opt (ix86_isa_flags): Replace int with
6454 (ix86_isa_flags_explicit): Likewise.
6455 (x_ix86_isa_flags_explicit): Likewise.
6457 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
6459 PR rtl-optimization/50107
6460 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
6461 (ira_hard_reg_in_set_p): New.
6463 * ira-color.c (calculate_saved_nregs): New.
6464 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
6466 (allocno_reload_assign, fast_allocation): Use
6467 ira_hard_reg_set_intersection_p instead of
6468 ira_hard_reg_not_in_set_p.
6470 * ira.c (setup_reg_renumber): Use
6471 ira_hard_reg_set_intersection_p instead of
6472 ira_hard_reg_not_in_set_p.
6473 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
6474 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
6476 * ira-costs.c (ira_tune_allocno_costs): Use
6477 ira_hard_reg_set_intersection_p instead of
6478 ira_hard_reg_not_in_set_p.
6480 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
6481 Igor Zamyatin <igor.zamyatin@intel.com>
6483 * hwint.h (HOST_WIDE_INT_1): New.
6485 * opt-functions.awk (switch_bit_fields): Initialize the
6486 host_wide_int field.
6487 (host_wide_int_var_name): New.
6488 (var_type_struct): Check and return HOST_WIDE_INT.
6490 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
6492 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
6494 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
6495 check masks for HOST_WIDE_INT.
6497 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
6498 (option_enabled): Likewise.
6499 (get_option_state): Likewise.
6501 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
6504 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6505 Marc Glisse <marc.glisse@normalesup.org>
6507 PR libstdc++-v3/1773
6508 * target.def (decl_mangling_context): New C++ hook.
6509 * doc/tm.texi: Regenerate.
6510 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
6511 * config/sol2-protos.h: Group by source file.
6512 (solaris_cxx_decl_mangling_context): Declare.
6513 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
6514 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
6516 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
6517 Add sol2-stubs.o to extra_objs.
6519 2011-08-18 Jakub Jelinek <jakub@redhat.com>
6522 * stor-layout.c (update_alignment_for_field): Don't ICE on
6523 packed flexible array members if ms_bitfield_layout_p.
6526 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
6527 on the result before returning it.
6530 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
6531 is a debug stmt, use location of the first non-debug stmt after it.
6533 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6535 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
6536 (arm_size_rtx_costs): Likewise.
6538 2011-08-18 Richard Guenther <rguenther@suse.de>
6540 * tree.h (tree_int_cst_msb): Remove.
6541 * tree.c (tree_int_cst_msb): Likewise.
6542 (tree_int_cst_sign_bit): Move from ...
6543 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
6545 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6547 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
6548 * doc/tm.texi: Regenerate.
6549 * target.def (rtx_costs): Add an opno parameter.
6550 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6551 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6552 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6553 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6554 * cse.c (COST_IN): Add an opno parameter.
6555 (notreg_cost): Likewise. Update call to rtx_cost.
6556 (COST, fold_rtx): Update accordingly.
6557 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
6558 * expmed.c (emit_store_flag): Likewise.
6559 * optabs.c (avoid_expensive_constant): Add an opno parameter.
6560 Update call to rtx_cost.
6561 (expand_binop_directly, expand_binop): Likewise.
6562 (expand_twoval_binop, prepare_cmp_insn): Likewise.
6563 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
6564 (set_src_cost, get_full_set_src_cost): Update accordingly.
6565 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
6567 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
6568 (default_adress_cost): Update calls to rtx_cost.
6570 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
6571 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
6572 (arm_rtx_costs): Add an opno parameter.
6573 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
6574 adjust any recursive rtx-cost calls.
6575 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
6576 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6577 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6578 * config/cris/cris.c (cris_rtx_costs): Likewise.
6579 * config/frv/frv.c (frv_rtx_costs): Likewise.
6580 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6581 * config/i386/i386.c (ix86_rtx_costs): Likewise.
6582 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6583 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6584 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6585 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6586 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6587 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6588 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6589 * config/mep/mep.c (mep_rtx_cost): Likewise.
6590 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6591 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
6592 (mips_zero_extend_cost): Add an opno parameter.
6593 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6594 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
6596 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
6598 * config/pa/pa.c (hppa_rtx_costs): Likewise.
6599 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6600 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
6601 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6602 (rs6000_debug_rtx_costs): Likewise.
6603 * config/s390/s390.c (s390_rtx_costs): Likewise.
6604 * config/score/score-protos.h (score_rtx_costs): Likewise.
6605 * config/score/score.c (score_rtx_costs): Likewise.
6606 * config/sh/sh.c (andcosts): Update call to rtx_cost.
6607 (sh_rtx_costs): Add an opno parameter.
6608 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6609 * config/spu/spu.c (spu_rtx_costs): Likewise.
6610 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6611 * config/v850/v850.c (v850_rtx_costs): Likewise.
6612 * config/vax/vax.c (vax_rtx_costs): Likewise.
6613 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6615 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6617 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
6618 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
6620 * calls.c (precompute_register_parameters): Likewise.
6621 * combine.c (expand_compound_operation, make_extraction): Likewise.
6622 (force_to_mode, distribute_and_simplify_rtx): Likewise.
6623 * dse.c (find_shift_sequence): Likewise.
6624 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
6625 * expr.c (compress_float_constant): Likewise.
6626 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6627 * gcse.c (want_to_gcse_p): Likewise.
6628 * ifcvt.c (noce_try_sign_mask): Likewise.
6629 * loop-doloop.c (doloop_optimize): Likewise.
6630 * loop-invariant.c (create_new_invariant): Likewise.
6631 * optabs.c (avoid_expensive_constant): Likewise.
6632 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
6633 (try_replace_in_use, reload_cse_move2add): Likewise.
6634 * reload1.c (calculate_elim_costs_all_insns): Likewise.
6635 (note_reg_elim_costly): Likewise.
6636 * rtlanal.c (insn_rtx_cost): Likewise.
6637 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6638 * stmt.c (lshift_cheap_p): Likewise.
6639 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
6640 * config/avr/avr.c (final_prescan_insn): Likewise.
6641 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6642 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
6644 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
6646 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
6647 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
6648 * cfgloopanal.c (seq_cost): Likewise.
6649 * loop-invariant.c (create_new_invariant): Likewise.
6650 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
6651 (reload_cse_move2add): Use get_full_set_rtx_cost.
6653 2011-08-18 Richard Guenther <rguenther@suse.de>
6655 * expr.c (get_inner_reference): Fix typo in last change.
6657 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
6658 Joseph Myers <joseph@codesourcery.com>
6660 PR tree-optimization/49963
6661 * hwint.c (absu_hwi): Define.
6662 * hwint.h (absu_hwi): Declare.
6663 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
6665 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6666 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6668 2011-08-18 Richard Guenther <rguenther@suse.de>
6670 * expr.c (get_inner_reference): Sign-extend the constant
6671 twos-complement offset before doing arbitrary precision
6673 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
6674 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
6675 to get_constraint_for_ptr_offset.
6677 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
6680 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
6682 2011-08-17 Richard Guenther <rguenther@suse.de>
6684 * tree.h (convert_to_ptrofftype_loc): New function.
6685 (convert_to_ptrofftype): Define.
6686 * builtins.c (expand_builtin_bzero): Use size_type_node.
6687 (fold_builtin_bzero): Likewise.
6688 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
6689 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
6690 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
6691 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
6692 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
6693 * fold-const.c (build_range_check): Negate using the original type.
6694 (fold_unary_loc): Use fold_build_pointer_plus_loc.
6695 * gimple-fold.c (gimple_adjust_this_by_delta): Use
6696 convert_to_ptrofftype.
6697 * gimplify.c (gimplify_self_mod_expr): Likewise.
6698 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
6699 (graphite_create_new_loop_guard): Likewise.
6700 * graphite-sese-to-poly.c (my_long_long): Remove.
6701 (scop_ivs_can_be_represented): Adjust.
6702 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
6703 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
6704 * tree-loop-distribution.c (build_size_arg_loc): Use
6706 (generate_memset_zero): Simplify.
6707 * tree-mudflap.c: Use fold_convert, not convert.
6708 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
6710 (determine_offset): Likewise for DR_STEP.
6711 (valid_initializer_p): Likewise.
6712 * tree-profile.c (prepare_instrumented_value): Convert the pointer
6713 to an integer type of same size.
6714 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
6715 to sizetype without need.
6716 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6717 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
6718 * tree-ssa-loop-manip.c (create_iv): Likewise.
6719 (determine_exit_conditions): Adjust comment.
6720 * tree-ssa-pre.c (create_expression_by_pieces): Use
6721 convert_to_ptrofftype.
6722 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
6723 * varasm.c (array_size_for_constructor): Compute using double_ints.
6725 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6727 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
6728 when generating an integer result where possible. Short-cut
6729 comparison against 0 also for QImode.
6731 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6733 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
6734 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
6736 * config/spu/spu.c (spu_legitimize_reload_address): New function.
6737 (spu_legitimate_address_p): Do not check displacement if the base
6738 is an eliminable stack register.
6740 2011-08-16 Anatoly Sokolov <aesok@post.ru>
6742 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
6743 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6744 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
6745 m32c_preferred_output_reload_class): Remove.
6746 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
6747 Change rclass argument and return types to reg_class_t. Use
6748 reg_class_subset_p instead of class_sizes.
6749 (m32c_preferred_output_reload_class): Make static. Change rclass
6750 argument and return types to reg_class_t.
6751 (TARGET_PREFERRED_RELOAD_CLASS,
6752 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6754 2011-08-16 Kai Tietz <ktietz@redhat.com>
6756 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
6758 2011-08-16 Richard GUenther <rguenther@suse.de>
6760 PR tree-optimization/50082
6761 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
6762 warnings here, instead of ...
6763 (ssa_forward_propagate_and_combine): ... here.
6764 (forward_propagate_into_comparison_1): Adjust.
6765 (forward_propagate_into_comparison): Likewise.
6766 (forward_propagate_into_gimple_cond): Likewise.
6767 (forward_propagate_into_cond): Likewise.
6769 2011-08-16 Andreas Schwab <schwab@redhat.com>
6771 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
6772 instead of ggc_alloc_zone_vec_rtvec_def.
6774 2011-08-16 Richard Guenther <rguenther@suse.de>
6776 * tree.h (ptrofftype_p): New helper function.
6777 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
6778 offset verification.
6779 (verify_gimple_assign_binary): Likewise.
6780 * tree.c (build2_stat): Likewise.
6781 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
6782 (reset_evolution_in_loop): Likewise.
6783 * tree-chrec.h (build_polynomial_chrec): Likewise.
6785 2011-08-16 Liang Wang <lwang1@marvell.com>
6787 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
6788 ggc_alloc_zone_vec_rtvec_def.
6790 2011-08-16 Richard Guenther <rguenther@suse.de>
6792 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
6793 helper factored out from ...
6794 (extract_range_from_binary_expr_1): ... here. Re-structure
6795 to not glob handling too different tree codes.
6797 2011-08-15 Richard Henderson <rth@redhat.com>
6800 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
6801 setting out to include allocate_stack named pattern as well.
6802 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
6803 * stmt.c (expand_stack_restore): Likewise.
6805 2011-08-15 Richard Guenther <rguenther@suse.de>
6808 * fold-const.c (maybe_canonicalize_comparison_1): Properly
6809 convert the modified operand to the other operand type.
6810 (fold_comparison): Call maybe_canonicalize_comparison_1 with
6811 useless conversions stripped from comparison operands.
6813 2011-08-15 Richard Guenther <rguenther@suse.de>
6815 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
6816 (extract_range_from_unary_expr_1): Restructure.
6818 2011-08-15 Richard Guenther <rguenther@suse.de>
6820 PR tree-optimization/50058
6821 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
6824 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6827 * config/arm/arm.c (output_move_double): Add 2 parameters
6828 to count the number of insns emitted and whether to emit or not.
6829 Use the flag to decide when to emit and count number of instructions
6830 that will be emitted.
6831 Handle case where output_move_double might be called for calculating
6832 lengths with an invalid constant.
6833 (arm_count_output_move_double_insns): Define.
6834 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
6835 (output_move_double): Adjust prototype.
6836 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
6838 ("*movdi_vfp_cortexa8"): Likewise and add attribute
6840 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
6841 ("*movdf_soft_insn"): Likewise.
6842 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
6843 ("*cirrus_thumb2_movdi"): Likewise.
6844 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
6845 ("*cirrus_movdf_hard_insn"): Likewise.
6846 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
6847 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
6848 ("mov<mode>_internal VMMX"): Likewise.
6849 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
6851 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
6853 * config/i386/i386.c (ix86_expand_round_sse4): New function.
6854 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
6855 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
6858 (rint<mode>2): Simplify TARGET_ROUND check.
6859 (floor<mode>2): Ditto.
6860 (ceil<mode>2): Ditto.
6861 (btrunc<mode>2): Ditto.
6863 2011-08-14 Anatoly Sokolov <aesok@post.ru>
6865 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
6866 as mmix_preferred_output_reload_class.
6868 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
6871 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
6872 (branch_unspec): New insn.
6873 (branch): Beauty farm.
6874 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
6876 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
6877 New static functions.
6878 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
6879 Use CONST_INT_P. Beauty.
6881 2011-08-12 Richard Henderson <rth@redhat.com>
6884 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
6885 * sched-deps.c (init_deps): Clear it.
6886 (deps_analyze_insn): Consume it.
6887 (sched_analyze_insn): Fill it.
6889 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6892 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6893 for tbh instructions.
6895 2011-08-12 Diego Novillo <dnovillo@google.com>
6897 * data-streamer.h (streamer_write_zero): Rename from output_zero.
6898 (streamer_write_uhwi): Rename from lto_output_uleb128.
6899 (streamer_write_hwi): Rename from output_sleb128.
6900 (streamer_write_string): Rename from lto_output_string.
6901 (streamer_string_index): Rename from lto_string_index.
6902 (streamer_write_string_with_length): Rename from
6903 lto_output_string_with_length.
6904 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6905 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6906 (streamer_read_string): Rename from lto_input_string.
6907 (streamer_read_indexed_string): Rename from input_string_internal.
6908 (streamer_read_uhwi): Rename from lto_input_uleb128.
6909 (streamer_read_hwi): Rename from lto_input_sleb128.
6910 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6911 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6912 (streamer_write_enum): Rename from lto_output_enum.
6913 (streamer_read_enum): Rename from lto_input_enum.
6914 (streamer_write_record_start): Rename from output_record_start.
6915 (streamer_read_record_start): Rename from input_record_start.
6916 (streamer_write_bitpack): Rename from lto_output_bitpack.
6917 (streamer_read_bitpack): Rename from lto_input_bitpack.
6918 (streamer_write_char_stream): Rename from lto_output_1_stream.
6919 (streamer_read_uchar): Rename from lto_input_1_unsigned.
6920 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6921 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6922 (streamer_read_string_cst): Rename from input_string_cst.
6923 (streamer_read_chain): Rename from lto_input_chain.
6924 (streamer_alloc_tree): Rename from lto_materialize_tree.
6925 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6926 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6927 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6928 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6929 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6930 (streamer_write_chain): Rename from lto_output_chain.
6931 (streamer_write_tree_header): Rename from lto_output_tree_header.
6932 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6933 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6934 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6935 (streamer_write_builtin): Rename from lto_output_builtin_tree.
6936 (streamer_check_handled_ts_structures): Rename from
6937 check_handled_ts_structures.
6938 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6939 (streamer_tree_cache_insert_at): Rename from
6940 lto_streamer_cache_insert_at.
6941 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6942 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6943 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6944 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6945 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6946 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6947 (write_identifier): Rename from output_identifier.
6948 (write_ts_common_tree_pointers): Rename from
6949 lto_output_ts_common_tree_pointers.
6950 (write_ts_vector_tree_pointers): Rename from
6951 lto_output_ts_vector_tree_pointers.
6952 (write_ts_complex_tree_pointers): Rename from
6953 lto_output_ts_complex_tree_pointers.
6954 (write_ts_decl_minimal_tree_pointers): Rename from
6955 lto_output_ts_decl_minimal_tree_pointers.
6956 (write_ts_decl_common_tree_pointers): Rename from
6957 lto_output_ts_decl_common_tree_pointers.
6958 (write_ts_decl_non_common_tree_pointers): Rename from
6959 lto_output_ts_decl_non_common_tree_pointers.
6960 (write_ts_decl_with_vis_tree_pointers): Rename from
6961 lto_output_ts_decl_with_vis_tree_pointers.
6962 (write_ts_field_decl_tree_pointers): Rename from
6963 lto_output_ts_field_decl_tree_pointers.
6964 (write_ts_function_decl_tree_pointers): Rename from
6965 lto_output_ts_function_decl_tree_pointers.
6966 (write_ts_type_common_tree_pointers): Rename from
6967 lto_output_ts_type_common_tree_pointers.
6968 (write_ts_type_non_common_tree_pointers): Rename from
6969 lto_output_ts_type_non_common_tree_pointers.
6970 (write_ts_list_tree_pointers): Rename from
6971 lto_output_ts_list_tree_pointers.
6972 (write_ts_vec_tree_pointers): Rename from
6973 lto_output_ts_vec_tree_pointers.
6974 (write_ts_exp_tree_pointers): Rename from
6975 lto_output_ts_exp_tree_pointers.
6976 (write_ts_block_tree_pointers): Rename from
6977 lto_output_ts_block_tree_pointers.
6978 (write_ts_binfo_tree_pointers): Rename from
6979 lto_output_ts_binfo_tree_pointers.
6980 (write_ts_constructor_tree_pointers): Rename from
6981 lto_output_ts_constructor_tree_pointers.
6982 (write_ts_target_option): Rename from lto_output_ts_target_option.
6983 (write_ts_translation_unit_decl_tree_pointers): Rename from
6984 lto_output_ts_translation_unit_decl_tree_pointers.
6985 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
6986 Rename from lto_streamer_cache_add_to_node_array.
6987 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
6988 (record_common_node): Rename from lto_record_common_node.
6990 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
6992 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
6994 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
6996 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
6997 (ipa-reference.o): Likewise.
6998 * lto-section-out.c: Include data-streamer.h.
6999 * ipa-reference.c: Include data-streamer.h.
7001 2011-08-12 Nick Clifton <nickc@redhat.com>
7003 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
7004 * doc/md.texi (cmpstrn): Note that the comparison stops if both
7005 fetched bytes are zero.
7007 (cmpmem): Note that the comparison does not stop if both of the
7008 fetched bytes are zero.
7010 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
7012 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
7013 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
7014 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
7015 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
7016 to integer_type_node.
7017 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
7018 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
7019 * builtins.c (expand_builtin_in): Ditto.
7020 (mathfn_built_in_1): Ditto.
7021 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
7023 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
7025 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
7026 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
7027 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
7029 2011-08-12 Richard Guenther <rguenther@suse.de>
7031 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
7033 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
7035 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
7037 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
7039 * config/arm/arm.c (get_label_padding): New function.
7040 (create_fix_barrier, arm_reorg): Use it.
7042 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
7045 * config/i386/i386.md (*lea_5_zext): New.
7046 (*lea_6_zext): Ditto.
7047 * config/i386/predicates.md (const_32bit_mask): New predicate.
7048 (lea_address_operand): Reject AND.
7049 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
7050 const_32bit_mask immediate.
7051 (ix86_print_operand_address): Handle AND.
7052 (memory_address_length): Ditto.
7054 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
7055 Brian Hackett <bhackett1024@gmail.com>
7057 * plugin.def: Add event for finish_decl.
7058 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
7059 * c-decl.c (finish_decl): Invoke callbacks on above event.
7060 * doc/plugins.texi: Document above event.
7062 2011-08-11 Richard Guenther <rguenther@suse.de>
7064 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
7065 lookups, make looking through aggregate copies stronger.
7067 2011-08-11 Richard Henderson <rth@redhat.com>
7070 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
7072 2011-08-11 Richard Guenther <rguenther@suse.de>
7074 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
7075 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
7076 (vrp_visit_stmt): Likewise.
7078 2011-08-11 Richard Guenther <rguenther@suse.de>
7081 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
7082 load of the other piece with TREE_NO_WARNING.
7083 * tree-flow.h (warn_uninit): Adjust prototype.
7084 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
7085 the base variable and the expression that is used separately.
7086 Properly query all TREE_NO_WARNING flags.
7087 (struct walk_data): Remove.
7088 (warn_uninitialized_var): Likewise.
7089 (warn_uninitialized_vars): Do not walk gimple pieces but simply
7090 look at all SSA uses of the statement. Handle unused memory
7092 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
7094 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
7096 * config/rx/rx.md (movsicc): Allow register to register transfers.
7097 (*movsicc): Likewise.
7098 (*stcc): Restrict this pattern to EQ and NE compares.
7099 (*stcc_reg): New pattern. Works for any comparison but only for
7102 2011-08-11 Diego Novillo <dnovillo@google.com>
7104 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
7105 Call stream_write_tree instead of output_record_start.
7106 (lto_output_ts_binfo_tree_pointers): Likewise.
7108 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
7109 Convert it to a macro.
7110 (stream_read_tree): Likewise.
7112 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
7113 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
7115 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
7116 and tree_read_bitfields.
7117 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
7118 (lto_write_tree): Call it.
7119 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
7120 * streamer-hooks.h (struct streamer_hooks): Remove fields
7121 name, is_streamable and alloc_tree. Update all users.
7122 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
7123 (lto_materialize_tree): ... here.
7124 Handle CALL_EXPR codes.
7125 Remove call to lto_streamer_cache_append.
7126 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
7127 * tree-streamer.h (tree_read_bitfields): Declare.
7129 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
7130 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
7131 * tree-streamer.h (stream_read_tree): New. Replace all calls
7132 to lto_input_tree with it.
7133 (stream_write_tree): New. Replace all calls to lto_output_tree,
7134 lto_output_tree_ref and lto_output_tree_or_ref with it.
7135 * lto-streamer-in.c (lto_read_tree): Inline code from
7136 lto_streamer_read_tree.
7137 (lto_input_tree): Move from tree-streamer-in.c.
7138 * lto-streamer-out.c (lto_output_tree_ref): Make static.
7139 Remove handling of NULL values for EXPR.
7140 Do not handle EXPRs that are not indexable.
7141 (lto_write_tree): Move from tree-streamer-out.c.
7142 Inline lto_streamer_write_tree.
7143 (lto_output_tree): Move from tree-streamer-out.c.
7144 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
7145 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
7146 (lto_preload_common_nodes): Likewise.
7147 Remove assertions and adjustments for nodes
7148 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
7149 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
7150 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
7151 * lto-streamer.h (lto_input_tree): Declare.
7152 (lto_output_tree_ref): Remove.
7153 * streamer-hooks.h (struct streamer_hooks): Remove fields
7154 preload_common_nodes, indexable_with_decls_p,
7155 pack_value_fields, unpack_value_fields and output_tree_header.
7157 * tree-streamer-in.c (lto_materialize_tree): Make extern.
7158 (lto_input_tree_pointers): Likewise.
7159 (lto_read_tree): Move to lto-streamer-in.c.
7160 (lto_input_integer_cst): Make extern.
7161 (lto_get_pickled_tree): Likewise.
7162 (lto_get_builtin_tree): Likewise.
7163 (lto_input_tree): Move to lto-streamer-in.c.
7164 * tree-streamer-out.c (pack_value_fields): Make extern.
7165 (lto_output_tree_or_ref): Remove. Replace all callers with
7166 calls to stream_write_tree.
7167 (lto_output_builtin_tree): Make extern.
7168 (lto_streamer_write_tree): Inline into lto_write_tree.
7169 (lto_output_tree_pointers): Make extern.
7170 (lto_output_tree_header): Likewise.
7171 (lto_output_integer_cst): Likewise.
7172 (lto_write_tree): Move to lto-streamer-out.c.
7173 (lto_output_tree): Likewise.
7174 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
7175 (preload_common_nodes): Likewise.
7176 (lto_streamer_cache_create): Call it.
7177 * tree-streamer.h: Include streamer-hooks.h.
7178 (stream_write_tree): New.
7179 (stream_read_tree): New.
7180 (lto_input_tree): Remove.
7181 (lto_materialize_tree): Declare.
7182 (lto_input_tree_pointers): Declare.
7183 (lto_get_pickled_tree): Declare.
7184 (lto_get_builtin_tree): Declare.
7185 (lto_input_integer_cst): Declare.
7186 (lto_output_tree_header): Declare.
7187 (pack_value_fields): Declare.
7188 (lto_output_tree_pointers): Declare.
7189 (lto_output_integer_cst): Declare.
7190 (lto_output_builtin_tree): Declare.
7192 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7194 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
7195 only if producer writes to the register given by regno.
7197 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7198 Alexander Monakov <amonakov@ispras.ru>
7200 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
7201 (sched_get_condition_with_rev_uncached): ... this. Factor out
7202 condition caching logic into ...
7203 (sched_get_condition_with_rev): ... this. Reimplement. Do not
7204 attempt to use cache for instructions with zero luid.
7205 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
7206 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
7208 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7210 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
7211 get_seqno_for_a_jump. Update the caller.
7212 (get_seqno_by_succs): New. Use it ...
7213 (get_seqno_for_a_jump): ... here to find a seqno if looking at
7214 predecessors was not sufficient.
7215 (get_seqno_by_preds): Include head in iteration range, exclude insn.
7217 2011-08-11 Dmitry Melnik <dm@ispras.ru>
7219 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
7221 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7223 * sel-sched-ir.h (register_unavailable_p): Declare.
7224 * sel-sched-ir.c (register_unavailable_p): New. Use it...
7225 (set_unavailable_target_for_expr): ... here to properly test
7226 availability of a register.
7227 (speculate_expr): Ditto.
7228 * sel-sched.c (substitute_reg_in_expr): Ditto.
7229 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
7231 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
7233 * sel-sched.c (verify_target_availability): Fix usage of
7236 2011-08-11 Dmitry Melnik <dm@ispras.ru>
7238 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
7239 recognized by cannot_copy_insn_p hook and volatile instructions.
7241 2011-08-11 Dmitry Melnik <dm@ispras.ru>
7243 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
7245 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
7247 * doc/md.texi (define_bypass): Say that the instruction names can
7248 be filename-style globs.
7249 * Makefile.in (FNMATCH_H): Define.
7250 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
7251 * genattrtab.c: Include fnmatch.h.
7252 (bypass_list): Change field name from "insn" to "pattern".
7253 (gen_bypass_1): Update accordingly.
7254 (process_bypasses): Use fnmatch to check for matches between
7255 insn reservations and define_bypasses.
7256 * genautomata.c: Include fnmatch.h.
7257 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
7258 and out_pattern respectively.
7259 (gen_bypass, insert_bypass): Update accordingly.
7260 (for_each_matching_insn, process_bypass_2, process_bypass_1)
7261 (process_bypass): New functions.
7262 (process_decls): Use process_bypass. Update after field name changes.
7264 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
7267 * config/avr/avr.md (smulqi3_highpart): New insn.
7268 (umulqi3_highpart): New insn.
7269 (*subqi3.ashiftrt7): New insn.
7270 (smulhi3_highpart): New expander.
7271 (umulhi3_highpart): Nex expander.
7272 (*smulhi3_highpart_call): New insn.
7273 (*umulhi3_highpart_call): New insn.
7274 (extend_u): New code attribute.
7275 (extend_prefix): Rename code attribute to extend_su.
7276 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
7277 widening QI/HI multiply.
7279 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
7281 PR tree-optimization/50039
7282 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
7283 that DEF_STMT has a stmt_vec_info.
7285 2011-08-10 Richard Guenther <rguenther@suse.de>
7287 * tree.h (can_trust_pointer_alignment): Remove.
7288 * builtins.c (can_trust_pointer_alignment): Remove.
7290 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7292 * c-typeck.c (scalar_to_vector): New function. Try scalar to
7294 (stv_conv): New enum for scalar_to_vector return type.
7295 (build_binary_op): Adjust.
7296 * doc/extend.texi: Description of scalar to vector expansion.
7298 2011-08-10 Richard Guenther <rguenther@suse.de>
7300 * tree.h (get_pointer_alignment): Remove max-align argument.
7301 (get_object_alignment): Likewise.
7302 * builtins.c (get_object_alignment_1): Adjust.
7303 (get_object_alignment): Remove max-align argument.
7304 (get_pointer_alignment): Likewise.
7305 (expand_builtin_strlen): Adjust.
7306 (expand_builtin_memcpy): Likewise.
7307 (expand_builtin_mempcpy_args): Likewise.
7308 (expand_builtin_strncpy): Likewise.
7309 (expand_builtin_memset_args): Likewise.
7310 (expand_builtin_memcmp): Likewise.
7311 (expand_builtin_strcmp): Likewise.
7312 (expand_builtin_strncmp): Likewise.
7313 (get_builtin_sync_mem): Likewise.
7314 (fold_builtin_memset): Likewise.
7315 (fold_builtin_memory_op): Likewise.
7316 (expand_builtin_memory_chk): Likewise.
7317 * emit-rtl.c (get_mem_align_offset): Likewise.
7318 (set_mem_attributes_minus_bitpos): Likewise.
7319 * expr.c (expand_assignment): Likewise.
7320 (expand_expr_real_1): Likewise.
7321 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
7322 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7323 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
7324 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
7325 * value-prof.c (gimple_stringops_transform): Likewise.
7327 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
7329 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
7330 * doc/tm.texi: Regenerate.
7332 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
7335 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
7336 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
7337 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
7338 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
7339 shift target is unused.
7341 2011-08-10 Richard Guenther <rguenther@suse.de>
7343 PR tree-optimization/49937
7344 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
7345 using get_object_alignment_1.
7347 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
7349 * config/i386/i386.c (ix86_emit_i387_round): New function.
7350 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
7351 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
7352 Use ix86_emit_i387_round to expand round function for i387 math.
7353 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
7354 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
7356 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7358 * config/sync.c: Move to ../libgcc.
7359 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
7360 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
7363 2011-08-09 Anatoly Sokolov <aesok@post.ru>
7365 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
7366 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
7367 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
7368 Change 'from' and 'to' arguments type to reg_class_t.
7369 (TARGET_REGISTER_MOVE_COST): Define.
7371 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
7375 PR rtl-optimization/49990
7376 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7377 ignore classes which can not change mode.
7378 (find_costs_and_classes): Ditto.
7380 2011-08-09 Richard Guenther <rguenther@suse.de>
7382 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
7383 information for ranges with only negative values.
7384 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
7385 BIT_AND_EXPR handling to handle ranges with negative values.
7387 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
7389 * config/i386/i386.c: Remove traling spaces.
7390 * config/i386/sse.md: Likewise.
7391 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
7392 (*fma_fmsub_<mode>): Likewise.
7393 (*fma_fnmadd_<mode>): Likewise.
7394 (*fma_fnmsub_<mode>): Likewise.
7396 2011-08-09 Nick Clifton <nickc@redhat.com>
7398 * config/rx/rx.md: Disable extender peepholes at -O3.
7400 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
7403 * config/i386/i386.md (reload_noff_load): New.
7404 (reload_noff_store): Ditto.
7405 * config/i386/i386.c (ix86_secondary_reload): Use
7406 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
7407 double-word moves from/to non-offsetable addresses instead of
7408 generating XMM temporary.
7410 2011-08-09 Anatoly Sokolov <aesok@post.ru>
7412 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
7414 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
7416 PR tree-optimization/50014
7417 * tree-vect-loop.c (vectorizable_reduction): Get def type before
7418 calling vect_get_vec_def_for_stmt_copy ().
7420 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
7422 PR rtl-optimization/49990
7423 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7424 ignore classes which can not change mode.
7425 (find_costs_and_classes): Ditto.
7427 2011-08-08 Richard Henderson <rth@redhat.com>
7430 * config/i386/i386.c (ix86_expand_prologue): Call
7431 for SEH target gen_prologue_use instead of gen_blockage
7434 2011-08-08 Martin Jambor <mjambor@suse.cz>
7437 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
7440 2011-08-08 Diego Novillo <dnovillo@google.com>
7442 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
7443 (DATA_STREAMER_H): New.
7444 (GIMPLE_STREAMER_H): New.
7445 (TREE_STREAMER_H): New.
7446 (STREAMER_HOOKS_H): New.
7447 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
7448 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
7449 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
7450 (data-streamer.o): New.
7451 (data-streamer-in.o): New.
7452 (data-streamer-out.o): New.
7453 (gimple-streamer-in.o): New.
7454 (gimple-streamer-out.o): New.
7455 (streamer-hooks.o): New.
7456 (tree-streamer.o): New.
7457 (tree-streamer-in.o): New.
7458 (tree-streamer-out.o): New.
7459 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7460 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
7461 GIMPLE_STREAMER_H and TREE_STREAMER_H.
7462 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
7463 GIMPLE_STREAMER_H and TREE_STREAMER_H.
7464 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
7465 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7466 (ipa-inline-analysis.o): Likewise.
7467 (ipa-pure-const.o): Likewise.
7468 * data-streamer-in.c: New.
7469 * data-streamer-out.c: New.
7470 * data-streamer.c: New.
7471 * data-streamer.h: New.
7472 * gimple-streamer-in.c: New.
7473 * gimple-streamer-out.c: New.
7474 * gimple-streamer.h: New.
7475 * ipa-inline-analysis.c: Include data-streamer.h.
7476 * ipa-prop.c: Include data-streamer.h.
7477 * ipa-pure-const.c: Include data-streamer.h.
7478 * lto-cgraph.c: Include data-streamer.h.
7479 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
7480 (lto_input_widest_uint_uleb128): Likewise.
7481 (lto_input_sleb128): Likewise.
7482 (bp_unpack_var_len_unsigned): Likewise.
7483 (bp_unpack_var_len_int): Likewise.
7484 * lto-section-out.c (lto_output_uleb128_stream): Move to
7485 data-streamer-out.c.
7486 (lto_output_widest_uint_uleb128_stream): Likewise.
7487 (lto_output_sleb128_stream): Likewise.
7488 (bp_pack_var_len_unsigned): Likewise.
7489 (bp_pack_var_len_int): Likewise.
7490 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
7491 (struct string_slot): Remove. Update all users.
7492 (lto_tag_check_set): Make extern.
7493 (lto_tag_check_range): Move to lto-streamer.h.
7494 (lto_tag_check): Likewise.
7495 (hash_string_slot_node): Remove. Update all users.
7496 (eq_string_slot_node): Remove. Update all users.
7497 (string_for_index): Move to data-streamer-in.c
7498 (input_string_internal): Likewise.
7499 (input_string_cst): Move to tree-streamer-in.c.
7500 (input_identifier): Likewise.
7501 (lto_input_string): Move to data-streamer-in.c
7502 (input_record_start): Move to data-streamer.h
7503 (canon_file_name): Use new definition of struct string_slot
7504 from data-streamer.h. Set S_SLOT.LEN.
7505 (lto_input_location): Make extern.
7506 (lto_input_chain): Move to tree-streamer-in.c.
7507 (lto_init_eh): Make extern.
7508 (input_phi): Move to gimple-streamer-in.c.
7509 (input_gimple_stmt): Likewise.
7510 (input_bb): Likewise.
7511 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
7512 (unpack_ts_real_cst_value_fields): Likewise.
7513 (unpack_ts_fixed_cst_value_fields): Likewise.
7514 (unpack_ts_decl_common_value_fields): Likewise.
7515 (unpack_ts_decl_wrtl_value_fields): Likewise.
7516 (unpack_ts_decl_with_vis_value_fields): Likewise.
7517 (unpack_ts_function_decl_value_fields): Likewise.
7518 (unpack_ts_type_common_value_fields): Likewise.
7519 (unpack_ts_block_value_fields): Likewise.
7520 (unpack_ts_translation_unit_decl_value_fields): Likewise.
7521 (unpack_value_fields): Likewise.
7522 (lto_materialize_tree): Likewise.
7523 (lto_input_ts_common_tree_pointers): Likewise.
7524 (lto_input_ts_vector_tree_pointers): Likewise.
7525 (lto_input_ts_complex_tree_pointers): Likewise.
7526 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
7527 (lto_input_ts_decl_common_tree_pointers): Likewise.
7528 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
7529 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
7530 (lto_input_ts_field_decl_tree_pointers): Likewise.
7531 (lto_input_ts_function_decl_tree_pointers): Likewise.
7532 (lto_input_ts_type_common_tree_pointers): Likewise.
7533 (lto_input_ts_type_non_common_tree_pointers): Likewise.
7534 (lto_input_ts_list_tree_pointers): Likewise.
7535 (lto_input_ts_vec_tree_pointers): Likewise.
7536 (lto_input_ts_exp_tree_pointers): Likewise.
7537 (lto_input_ts_block_tree_pointers): Likewise.
7538 (lto_input_ts_binfo_tree_pointers): Likewise.
7539 (lto_input_ts_constructor_tree_pointers): Likewise.
7540 (lto_input_ts_target_option): Likewise.
7541 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
7542 (lto_input_tree_pointers): Likewise.
7543 (lto_get_pickled_tree): Likewise.
7544 (lto_get_builtin_tree): Likewise.
7545 (lto_read_tree): Likewise.
7546 (lto_input_integer_cst): Likewise.
7547 (lto_input_tree): Likewise.
7548 * lto-streamer-out.c: Include data-streamer.h,
7549 gimple-streamer.h and streamer-hooks.h.
7550 (struct string_slot): Move to data-streamer.h.
7551 (hash_string_slot_node): Likewise.
7552 (eq_string_slot_node): Likewise.
7553 (lto_string_index): Move to data-streamer-out.c.
7554 (lto_output_string_with_length): Likewise.
7555 (lto_output_string): Likewise.
7556 (output_string_cst): Move to tree-streamer-out.c.
7557 (output_identifier): Likewise.
7558 (output_zero): Move to data-streamer-out.c
7559 (output_uleb128): Likewise.
7560 (output_sleb128): Likewise.
7561 (output_record_start): Move to data-streamer.h
7562 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
7563 (pack_ts_real_cst_value_fields): Likewise.
7564 (pack_ts_fixed_cst_value_fields): Likewise.
7565 (pack_ts_decl_common_value_fields): Likewise.
7566 (pack_ts_decl_wrtl_value_fields): Likewise.
7567 (pack_ts_decl_with_vis_value_fields): Likewise.
7568 (pack_ts_function_decl_value_fields): Likewise.
7569 (pack_ts_type_common_value_fields): Likewise.
7570 (pack_ts_block_value_fields): Likewise.
7571 (pack_ts_translation_unit_decl_value_fields): Likewise.
7572 (pack_value_fields): Likewise.
7573 (lto_output_chain): Likewise.
7574 (lto_output_ts_common_tree_pointers): Likewise.
7575 (lto_output_ts_vector_tree_pointers): Likewise.
7576 (lto_output_ts_complex_tree_pointers): Likewise.
7577 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
7578 (lto_output_ts_decl_common_tree_pointers): Likewise.
7579 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
7580 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
7581 (lto_output_ts_field_decl_tree_pointers): Likewise.
7582 (lto_output_ts_function_decl_tree_pointers): Likewise.
7583 (lto_output_ts_type_common_tree_pointers): Likewise.
7584 (lto_output_ts_type_non_common_tree_pointers): Likewise.
7585 (lto_output_ts_list_tree_pointers): Likewise.
7586 (lto_output_ts_vec_tree_pointers): Likewise.
7587 (lto_output_ts_exp_tree_pointers): Likewise.
7588 (lto_output_ts_block_tree_pointers): Likewise.
7589 (lto_output_ts_binfo_tree_pointers): Likewise.
7590 (lto_output_ts_constructor_tree_pointers): Likewise.
7591 (lto_output_ts_target_option): Likewise.
7592 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
7593 (lto_output_tree_pointers): Likewise.
7594 (lto_output_tree_header): Likewise.
7595 (lto_output_builtin_tree): Likewise.
7596 (lto_write_tree): Likewise.
7597 (lto_output_integer_cst): Likewise.
7598 (lto_output_tree): Likewise.
7599 (output_phi): Move to gimple-streamer-out.c.
7600 (output_gimple_stmt): Likewise.
7601 (output_bb): Likewise.
7602 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
7603 (streamer_hooks): Move to streamer-hooks.c.
7604 (check_handled_ts_structures): Move to tree-streamer.c
7605 (lto_streamer_cache_add_to_node_array): Likewise.
7606 (lto_streamer_cache_insert_1): Likewise.
7607 (lto_streamer_cache_insert): Likewise.
7608 (lto_streamer_cache_insert_at): Likewise.
7609 (lto_streamer_cache_append): Likewise.
7610 (lto_streamer_cache_lookup): Likewise.
7611 (lto_streamer_cache_get): Likewise.
7612 (lto_record_common_node): Likewise.
7613 (lto_preload_common_nodes): Likewise.
7614 (lto_streamer_cache_create): Likewise.
7615 (lto_streamer_cache_delete): Likewise.
7616 (streamer_hooks_init): Move to streamer-hooks.c.
7617 * lto-streamer.h: Include diagnostic.h
7618 (struct output_block, struct lto_input_block,
7619 struct data_in, struct bitpack_d): Remove forward declarations.
7620 (struct bitpack_d): Move to data-streamer.h.
7621 (struct lto_streamer_cache_d): Move to tree-streamer.h.
7622 (struct streamer_hooks): Move to streamer-hooks.h.
7623 (bp_pack_var_len_unsigned): Move to data-streamer.h.
7624 (bp_pack_var_len_int): Likewise.
7625 (bp_unpack_var_len_unsigned): Likewise.
7626 (bp_unpack_var_len_int): Likewise.
7627 (lto_input_location): Declare.
7628 (lto_tag_check_set): Declare.
7629 (lto_init_eh): Declare.
7630 (lto_output_tree_ref): Declare.
7631 (lto_output_location): Declare.
7632 (bitpack_create): Move to data-streamer.h.
7633 (bp_pack_value): Likewise.
7634 (lto_output_bitpack): Likewise.
7635 (lto_input_bitpack): Likewise.
7636 (bp_unpack_value): Likewise.
7637 (lto_output_1_stream): Likewise.
7638 (lto_input_1_unsigned): Likewise.
7639 (lto_output_int_in_range): Likewise.
7640 (lto_input_int_in_range): Likewise.
7641 (bp_pack_int_in_range): Likewise.
7642 (bp_unpack_int_in_range): Likewise.
7643 (lto_output_enum): Likewise.
7644 (lto_input_enum): Likewise.
7645 (bp_pack_enum): Likewise.
7646 (bp_unpack_enum): Likewise.
7647 * streamer-hooks.c: New.
7648 * streamer-hooks.h: New.
7649 * tree-streamer-in.c: New.
7650 * tree-streamer-out.c: New.
7651 * tree-streamer.c: New.
7652 * tree-streamer.h: New.
7654 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7656 * gthr-posix95.h: Remove.
7657 * gthr.h [_PTHREADS95]: Remove.
7658 * configure.ac (enable_threads): Remove posix95.
7659 * configure: Regenerate.
7660 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
7662 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
7665 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
7667 (ix86_print_operand_address): Handle zero-extended addresses.
7668 (memory_address_length): Add length of addr32 prefix for
7669 zero-extended addresses.
7670 (ix86_secondary_reload): Handle moves to/from double-word general
7671 registers from/to zero-extended addresses.
7672 * config/i386/predicates.md (lea_address_operand): Reject
7673 zero-extended operands.
7675 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
7678 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
7680 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
7681 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
7683 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
7684 (_Unwind_Context_Reg_Val): Likewise.
7685 (_Unwind_Get_Unwind_Word): Likewise.
7686 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
7687 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
7688 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
7689 for EXTENDED_CONTEXT_BIT.
7690 (__frame_state_for): Likewise.
7691 (uw_init_context_1): Likewise.
7692 (_Unwind_GetGR): Updated.
7693 (_Unwind_SetGR): Likewise.
7694 (_Unwind_GetGRPtr): Likewise.
7695 (_Unwind_SetGRPtr): Likewise.
7696 (_Unwind_SetGRValue): Likewise.
7697 (_Unwind_GRByValue): Likewise.
7698 (uw_install_context_1): Likewise.
7700 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
7701 ASSUME_EXTENDED_UNWIND_CONTEXT.
7702 * doc/tm.texi: Regenerated.
7704 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7706 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
7708 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7710 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
7712 (DEC Alpha Options, -mtune): Likewise.
7713 (MIPS Options, -march): native is supported on IRIX.
7715 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7717 * config/sparc/driver-sparc.c: New file.
7718 * config/sparc/x-sparc: New file.
7719 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
7720 * config/sparc/sparc.opt (native): New value for enum processor_type.
7721 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
7722 * config/sparc/sparc.c (sparc_option_override): Abort if
7723 PROCESSOR_NATIVE gets here.
7724 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
7725 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
7726 DRIVER_SELF_SPECS): Define.
7727 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
7728 (SPARC Options, -mtune): Likewise.
7729 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
7731 * configure: Regenerate.
7732 * Makefile.in (EXTRA_GCC_LIBS): Set.
7733 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
7734 (cpp$(exeext)): Likewise.
7736 2011-08-08 Richard Guenther <rguenther@suse.de>
7738 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
7740 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
7743 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
7745 PR tree-optimization/50005
7746 * ipa-inline-analysis (remap_predicate): Add cast to
7747 silence signed/unsigned comparison warning.
7749 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
7751 * modulo-sched.c (get_sched_window): Use a table for the debug output.
7752 Print the current ii.
7753 (sms_schedule_by_order): Reduce whitespace in dump line.
7755 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
7757 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
7758 and one loop for successors. Fix upper bound of memory range.
7760 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7763 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
7764 (TARGET_INSTANTIATE_DECLS): New define.
7766 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
7767 Mikael Morin <mikael.morin@sfr.fr>
7769 * Makefile.in (INCLUDES_FOR_TARGET): New.
7770 (LIBGCC2_CFLAGS): Use it.
7771 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
7773 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7775 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
7776 frame->save_regs_using_mov calculation.
7778 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
7780 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
7781 * config/i386/sse.md (castmode): New mode attribute.
7782 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
7783 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
7785 2011-08-05 Jan Hubicka <jh@suse.cz>
7788 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
7790 2011-08-05 Jan Hubicka <jh@suse.cz>
7793 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
7795 (create_emultls_var):New function.
7796 (ipa_lower_emutls): Handle aliases correctly.
7798 2011-08-05 Jan Hubicka <jh@suse.cz>
7801 * ipa-inline.c (recursive_inlining): Look through aliases.
7803 2011-08-05 Jason Merrill <jason@redhat.com>
7805 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
7806 declarations to beginning of function.
7808 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
7810 PR rtl-optimization/49900
7811 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
7812 ensure basic blocks stay in the same order.
7814 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
7816 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
7818 (s390_expand_atomic): Same.
7820 2011-08-05 Richard Henderson <rth@redhat.com>
7823 * dwarf2cfi.c (scan_insn_after): Split out of ...
7824 (scan_trace): ... here. Correctly place notes wrt sequences.
7826 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
7827 Richard Henderson <rth@redhat.com>
7830 * expr.c (fixup_args_size_notes): Look through no-op moves.
7832 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7834 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
7835 of "m" for operand 0. Add type and mode attribute.
7836 (*pushxf_nointeger"): Use "<" constraint for operand 0.
7837 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
7838 constraint instead of "o" for opreand 1.
7839 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
7840 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
7841 operand 0, alternative 4.
7842 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
7844 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7846 * config/i386/predicates.md (lea_address_operand): Rename from
7847 no_seg_address_operand.
7848 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
7849 (*lea_1_zext): Ditto.
7851 (*lea_2_zext): Ditto.
7853 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
7855 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
7856 parts.base and parts.index.
7857 * config/i386/predicates.md (aligned_operand): Ditto.
7858 (cmpxchg8b_pic_memory_operand): Ditto.
7860 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7862 * config/soft-fp: Move to ../libgcc.
7863 * Makefile.in (SFP_MACHINE): Remove.
7864 (libgcc-support): Remove $(SFP_MACHINE) dependency.
7865 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
7866 * config/arm/t-arm-softfp: Move to
7867 ../libgcc/config/arm/t-softfp.
7868 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
7869 * config/c6x/t-c6x-softfp: Remove.
7870 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
7871 * config/i386/t-fprules-softfp: Move to
7872 ../libgcc/config/t-softfp-tf.
7873 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
7874 * config/ia64/t-fprules-softfp: Remove.
7875 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
7876 * config/lm32/t-fprules-softfp: Remove.
7877 * config/moxie/sfp-machine.h: Remove.
7878 * config/moxie/t-moxie-softfp: Remove.
7879 * config/rs6000/darwin-ldouble-format: Move to
7880 ../libgcc/config/rs6000/ibm-ldouble-format.
7881 * config/rs6000/darwin-ldouble.c: Move to
7882 ../libgcc/config/rs6000/ibm-ldouble.c
7883 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
7884 * config/rs6000/libgcc-ppc64.ver: Likewise.
7885 * config/rs6000/sfp-machine.h: Likewise.
7886 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
7887 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
7888 (LIB2FUNCS_EXTRA): Remove.
7889 (TARGET_LIBGCC2_CFLAGS): Remove.
7890 * config/rs6000/t-aix52: Likewise
7891 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7892 $(srcdir)/config/rs6000/darwin-ldouble.c.
7893 (SHLIB_MAPFILES): Remove.
7894 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7895 $(srcdir)/config/rs6000/darwin-ldouble.c.
7896 * config/rs6000/t-fprules-softfp: Move to
7897 ../libgcc/config/t-softfp-sfdf.
7898 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7899 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7900 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7901 $(srcdir)/config/rs6000/darwin-ldouble.c.
7902 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7903 * config/score/t-score-softfp: Remove.
7904 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7905 soft-fp/t-softfp from tmake_file.
7906 (arm*-*-uclinux*): Likewise.
7907 (arm*-*-ecos-elf): Likewise.
7908 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7909 (arm*-*-rtems*): Likewise.
7910 (arm*-*-elf): Likewise.
7911 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7913 (moxie-*-uclinux*): Likewise.
7914 (moxie-*-rtems*): Likewise.
7915 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7917 (lm32-*-rtems*): Likewise.
7918 (lm32-*-uclinux*): Likewise.
7919 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7920 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7921 (powerpc-*-linux*, powerpc64-*-linux*): Remove
7922 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7923 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7925 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7927 (tic6x-*-uclinux): Likewise.
7928 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7929 soft-fp/t-softfp from tmake_file.
7930 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7931 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7932 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7933 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7934 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7936 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7938 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7939 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7940 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7942 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7943 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7945 * config/arm/t-vxworks: Likewise.
7946 * config/arm/t-wince-pe: Likewise.
7947 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7948 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7949 * config/bfin/t-bfin-elf: Likewise.
7950 * config/bfin/t-bfin-linux: Likewise.
7951 * config/bfin/t-bfin-uclinux: Likewise.
7952 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7954 * config/fr30/t-fr30: Likewise.
7955 * config/frv/t-frv: Likewise.
7956 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7957 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7958 * config/m32c/t-m32c: Likewise.
7959 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7960 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7961 * config/mcore/t-mcore: Likewise.
7962 * config/mep/t-mep: Likewise.
7963 * config/microblaze/t-microblaze: Likewise.
7964 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7965 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7966 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7967 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7968 * config/mn10300/t-linux: Remove.
7969 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7970 * config/pdp11/t-pdp11: Likewise.
7971 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7972 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7973 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7974 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7975 * config/rs6000/t-aix52: Likewise.
7976 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7977 $(srcdir)/config/rs6000/ppc64-fp.c.
7978 * config/rs6000/t-fprules-fpbit: Remove.
7979 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
7980 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7981 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
7982 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7983 * config/sparc/t-elf: Likewise.
7984 * config/sparc/t-leon: Likewise.
7985 * config/sparc/t-leon3: Likewise.
7986 * config/spu/t-spu-elf: Likewise.
7987 (DPBIT_FUNCS): Remove.
7988 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7989 * config/v850/t-v850: Likewise.
7990 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
7991 (avr-*-*): Likewise.
7992 (h8300-*-rtems*): Set libgcc_tm_file.
7993 (h8300-*-elf*): Likewise.
7994 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
7996 (powerpc-*-eabisim*): Likewise.
7997 (powerpc-*-elf*): Likewise.
7998 (powerpc-*-eabialtivec*): Likewise.
7999 (powerpc-xilinx-eabi*): Likewise.
8000 (powerpc-*-eabi*): Likewise.
8001 (powerpc-*-rtems*): Likewise.
8002 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
8003 (powerpcle-*-elf*): Likewise.
8004 (powerpcle-*-eabisim*): Likewise.
8005 (powerpcle-*-eabi*): Likewise.
8006 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
8007 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
8008 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
8011 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8013 * Makefile.in (UNWIND_H): Remove.
8014 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
8015 ../libgcc/Makefile.in.
8016 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
8017 (LIBUNWINDDEP): Remove.
8018 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
8019 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
8020 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
8021 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
8022 Don't copy $(UNWIND_H).
8023 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
8024 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
8025 * aclocal.m4: Regenerate.
8026 * configure: Regenerate.
8027 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
8028 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
8029 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
8030 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
8031 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
8032 * config/arm/libunwind.S, config/arm/pr-support.c,
8033 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
8034 ../libgcc/config/arm.
8035 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
8036 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
8037 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
8038 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
8039 ($(T)frvend$(objext)): Likewise.
8040 * config/ia64/t-glibc (LIB2ADDEH): Remove.
8041 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
8042 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
8043 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
8044 ../libgcc/config/ia64.
8045 * config/ia64/t-hpux (LIB2ADDEH): Remove.
8046 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
8047 * config/ia64/t-vms (LIB2ADDEH): Remove.
8048 * config/ia64/vms.h (UNW_IVMS_MODE,
8049 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
8050 * config/picochip/t-picochip (LIB2ADDEH): Remove.
8051 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
8052 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
8053 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
8054 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
8055 $(srcdir)/../libgcc to refer to unwinder sources.
8056 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
8057 * config/t-darwin (LIB2ADDEH): Remove.
8058 * config/t-freebsd (LIB2ADDEH): Remove.
8059 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
8060 * config/t-libunwind-elf: Move to ../libgcc/config.
8061 * config/t-linux (LIB2ADDEH): Remove.
8062 * config/t-sol2 (LIB2ADDEH): Remove.
8063 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
8064 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
8066 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
8068 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
8070 * doc/invoke.texi: Document core-avx-i.
8072 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8074 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
8076 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
8078 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
8079 result of multiple results reduction when extracting the final
8080 value using scalar code.
8082 2011-08-05 Richard Guenther <rguenther@suse.de>
8084 PR tree-optimization/49984
8085 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
8087 2011-08-05 Richard Guenther <rguenther@suse.de>
8089 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
8090 return true for constant integer ranges.
8091 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
8092 BIT_IOR_EXPR handling.
8094 2011-08-04 Kai Tietz <ktietz@redhat.com>
8096 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
8097 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
8099 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
8101 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
8102 pattern def statement, and its access macro.
8103 (NUM_PATTERNS): Set to 5.
8104 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8105 pattern def statement.
8106 (vect_transform_loop): Likewise.
8107 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
8108 function vect_recog_over_widening_pattern ().
8109 (vect_operation_fits_smaller_type): New function.
8110 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
8112 (vect_pattern_recog_1): Move the code that marks pattern
8113 statements to vect_mark_pattern_stmts (), and call it. Update
8115 * tree-vect-stmts.c (vect_supportable_shift): New function.
8116 (vect_analyze_stmt): Handle pattern def statement.
8117 (new_stmt_vec_info): Initialize pattern def statement.
8119 2011-08-04 Richard Henderson <rth@redhat.com>
8122 * config/i386/i386.c (ix86_expand_call): Don't create nested
8123 PARALLELs for TARGET_VZEROUPPER.
8124 (ix86_split_call_vzeroupper): Fix extraction of the original call.
8125 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
8126 recognize nested PARALLELs.
8127 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
8128 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
8129 *sibcall_value_pop_vzeroupper): Likewise.
8131 2011-08-04 Richard Henderson <rth@redhat.com>
8134 * calls.c (expand_call): Use fixup_args_size_notes for
8136 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
8137 in non-standard modes.
8139 2011-08-04 Jakub Jelinek <jakub@redhat.com>
8141 * gcc.c (self_spec): New variable.
8142 (static_specs): Add self_spec.
8143 (main): Call do_self_spec on "self_spec" specs after reading
8144 user specs files. Move compare_debug handling right after that.
8146 2011-08-04 Richard Guenther <rguenther@suse.de>
8148 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
8149 (value_range_nonnegative_p): New function.
8150 (ssa_name_nonnegative_p): Use it.
8151 (value_range_constant_singleton): New function.
8152 (op_with_constant_singleton_value_range): Use it.
8153 (extract_range_from_binary_expr_1): New function, split out from ...
8154 (extract_range_from_binary_expr): ... this. Remove fallback
8155 constant folding done here.
8157 2011-08-04 Richard Guenther <rguenther@suse.de>
8159 PR tree-optimization/49806
8160 * tree-vrp.c (op_with_boolean_value_range_p): New function.
8161 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
8162 a new statement for a final conversion to bool.
8164 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
8166 * gengtype-state.c: Include "bconfig.h" if
8167 GENERATOR_FILE is defined, "config.h" otherwise.
8168 * gengtype.c: Likewise.
8169 * gengtype-lex.l: Likewise.
8170 * gengtype-parse.c: Likewise.
8171 * Makefile.in (gengtype-lex.o-warn): New variable.
8172 (plugin_resourcesdir): Likewise.
8173 (plugin_bindir): Likewise.
8174 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
8175 (MOSTLYCLEANFILES): Add gengtype$(exeext).
8176 (native): Depend on gengtype$(exeext) is $enable_plugin
8178 (gtype.state): Depend on s-gtype. Use temporary file.
8179 (gengtype-lex.o): New rule.
8180 (gengtype-parse.o): Likewise.
8181 (gengtype-state.o): Likewise.
8182 (gengtype$(exeext)): Likewise.
8183 (install-gengtype): Likewise.
8184 (gengtype.o): Likewise.
8185 (build/gengtype.o): Depend on version.h.
8186 (build/gengtype-state): Depend on double-int.h, version.h,
8187 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
8188 (install-plugin): Depend on install-gengtype.
8190 2011-08-04 Jakub Jelinek <jakub@redhat.com>
8193 * tree.h (init_attributes): New prototype.
8194 * attribs.c (init_attributes): No longer static.
8196 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8198 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
8201 2011-08-03 David Li <davidxl@google.com>
8203 * tree-optimize.c (execute_fixup_cfg): Fix up entry
8204 outgoing edge counts after inlining.
8206 2011-08-03 David Li <davidxl@google.com>
8208 * profile.c (compute_branch_probabilities): Compute
8209 function frequency after profile annotation.
8211 2011-08-04 Alan Modra <amodra@gmail.com>
8213 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
8214 use_backchain_to_restore_sp initialisation.
8215 (rs6000_legitimate_offset_address_p): Simplify offset test.
8217 2011-08-03 Richard Henderson <rth@redhat.com>
8219 * config/spu/spu.md: Use define_c_enum instead of define_constants.
8220 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
8223 2011-08-03 Richard Henderson <rth@redhat.com>
8226 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
8228 2011-08-03 Jakub Jelinek <jakub@redhat.com>
8230 PR tree-optimization/49948
8231 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
8233 2011-08-03 Anatoly Sokolov <aesok@post.ru>
8235 * config/m32c/m32c.c (class_sizes): Remove.
8236 (reduce_class): Change arguments and return type to reg_class_t.
8237 Change type cc var to HARD_REG_SET. Change type best var to
8238 reg_class_t. Change type best_size var to unsigned int. Remove
8239 initialization class_sizes var. Use reg_class_size array instead
8240 of class_sizes. Use reg_class_contents array instead
8243 2011-08-03 Richard Guenther <rguenther@suse.de>
8246 * fold-const.c (fold_binary_loc): Only associate
8247 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
8250 2011-08-03 Alan Modra <amodra@gmail.com>
8252 PR rtl-optimization/49941
8253 * jump.c (mark_jump_label): Comment.
8254 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
8255 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
8256 (mark_used_flags): Don't mark RETURN.
8258 2011-08-03 Richard Guenther <rguenther@suse.de>
8260 PR tree-optimization/49938
8261 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
8262 deal with a POLYNOMIAL_CHREC.
8264 2011-08-03 Revital Eres <revital.eres@linaro.org>
8266 * modulo-sched.c (calculate_stage_count,
8267 calculate_must_precede_follow, get_sched_window,
8268 try_scheduling_node_in_cycle, remove_node_from_ps): Add
8270 (update_node_sched_params, set_must_precede_follow, optimize_sc):
8272 (reset_sched_times): Call update_node_sched_params.
8273 (sms_schedule): Call optimize_sc.
8274 (get_sched_window): Change function arguments.
8275 (sms_schedule_by_order): Update call to get_sched_window.
8276 Call set_must_precede_follow.
8277 (calculate_stage_count): Add function argument.
8279 2011-08-02 Richard Henderson <rth@redhat.com>
8283 * reg-notes.def (REG_ARGS_SIZE): New.
8284 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
8285 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
8286 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
8287 different stack levels.
8288 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
8289 (maybe_move_args_size_note): New.
8290 (combine_stack_adjustments_for_block): Use it.
8291 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
8292 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
8293 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
8294 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
8296 (queued_args_size): Remove.
8297 (add_cfi_args_size): Assert size is non-negative.
8298 (stack_adjust_offset, dwarf2out_args_size): Remove.
8299 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
8300 (notice_args_size, notice_eh_throw): New.
8301 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
8302 (dwarf2out_frame_debug_adjust_cfa): Likewise.
8303 (dwarf2out_frame_debug_cfa_offset): Likewise.
8304 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
8305 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
8306 (change_cfi_row): Don't emit args_size.
8307 (maybe_record_trace_start_abnormal): Split out from ...
8308 (maybe_record_trace_start): Here. Set args_size_undefined.
8309 (create_trace_edges): Update to match.
8310 (scan_trace): Handle REG_ARGS_SIZE.
8311 (connect_traces): Connect args_size between EH insns.
8312 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
8313 * explow.c (suppress_reg_args_size): New.
8314 (adjust_stack_1): Split out from ...
8315 (adjust_stack): ... here.
8316 (anti_adjust_stack): Use it.
8317 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
8318 * expr.c (mem_autoinc_base): New.
8319 (fixup_args_size_notes): New.
8320 (emit_single_push_insn_1): Rename from emit_single_push_insn.
8321 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
8322 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
8323 * reload1.c (reload_as_needed): Likewise.
8324 * rtl.h (fixup_args_size_notes): Declare.
8326 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
8329 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
8331 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8332 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8334 2011-08-02 Richard Henderson <rth@redhat.com>
8336 * config/h8300/h8300.c (push, pop): Return the insn.
8337 (h8300_swap_into_er6): Generate correct unwind info.
8338 (h8300_swap_out_of_er6): Likewise.
8339 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
8340 complex cfa expression.
8341 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8343 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8345 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8347 2011-08-02 Richard Henderson <rth@redhat.com>
8350 * config/h8300/h8300.c (h8300_move_ok): New.
8351 * config/h8300/h8300-protos.h: Declare it.
8352 * config/h8300/h8300.md (P): New mode iterator.
8353 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
8354 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
8355 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
8356 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
8357 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
8358 and pushqi1_h8300hs_normal; use PRE_MODIFY and
8359 register_no_sp_elim_operand.
8360 (*pushhi1_h8300hs_<P>): Similarly.
8361 (pushqi1, pushhi1, pushhi1_h8300): Remove.
8362 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
8364 2011-08-02 Richard Henderson <rth@redhat.com>
8367 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
8369 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8371 * c-parser.c (enum c_parser_prec): New enum, moved from within
8372 c_parser_binary_expression.
8373 (c_parser_binary_expression): Add PREC argument. Stop parsing
8374 if operator has lower or equal precedence than PREC.
8375 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
8377 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
8378 Adjust c_finish_omp_atomic caller.
8379 (c_parser_omp_taskyield): New function.
8380 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
8381 (c_parser_omp_clause_name): Handle final and mergeable clauses.
8382 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
8384 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
8385 and PRAGMA_OMP_CLAUSE_MERGEABLE.
8386 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
8387 (c_parser_omp_clause_reduction): Handle min and max.
8388 * c-typeck.c (c_finish_omp_clauses): Don't complain about
8389 const qualified predetermined vars in firstprivate clause.
8390 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8391 Handle MIN_EXPR and MAX_EXPR.
8392 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
8393 and OMP_CLAUSE_MERGEABLE.
8394 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
8395 and OMP_ATOMIC_CAPTURE_NEW.
8396 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
8397 OMP_CLAUSE_MERGEABLE.
8398 (omp_clause_code_name): Likewise.
8399 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8400 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
8401 and OMP_CLAUSE_MERGEABLE.
8402 (OMP_CLAUSE_FINAL_EXPR): Define.
8403 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
8404 OMP_CLAUSE_MERGEABLE.
8405 (expand_task_call): Likewise.
8406 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
8407 (expand_omp_atomic_fetch_op): Handle cases where old or new
8408 value is needed afterwards.
8409 (expand_omp_atomic): Call expand_omp_atomic_load resp.
8410 expand_omp_atomic_store.
8411 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
8412 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
8413 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8414 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8415 * tree-nested.c (convert_nonlocal_omp_clauses,
8416 convert_local_omp_clauses): Likewise.
8417 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
8418 OMP_ATOMIC_CAPTURE_NEW): New.
8419 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
8420 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
8422 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
8423 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
8424 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8426 2011-08-02 Kai Tietz <ktietz@redhat.com>
8428 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
8430 (ssa_forward_propagate_and_combine): Interprete result of
8431 forward_propagate_comparison.
8432 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
8433 boolean-typed operands for comparisons.
8435 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
8437 * config/avr/libgcc.S: Gather related function in the
8439 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
8440 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
8442 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
8443 __udivmodsi4, __divmodsi4, __prologue_saves__,
8444 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
8445 __do_copy_data, __do_clear_bss, __do_global_ctors,
8446 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
8448 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
8451 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
8452 (stack_protect_test): The pattern compares ptr_mode value.
8454 2011-08-02 Alan Modra <amodra@gmail.com>
8456 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
8457 note for save_LR_around_toc_setup sequence.
8459 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
8461 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
8463 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
8464 Joseph Myers <joseph@codesourcery.com>
8466 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
8467 * hwint.c: Include diagnostic-core.h.
8469 (gcd): Moved here...
8472 (least_common_multiple): Moved here...
8473 * hwint.h (gcd): ... from here.
8474 (least_common_multiple): ... from here.
8475 (HOST_WIDE_INT_MIN): New.
8476 (HOST_WIDE_INT_MAX): New.
8477 (abs_hwi): Declared.
8479 (pos_mul_hwi): Declared.
8480 (mul_hwi): Declared.
8481 (least_common_multiple): Declared.
8482 * omega.c (check_pos_mul): Removed.
8483 (check_mul): Removed.
8484 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
8485 mul_hwi instead of check_mul.
8487 2011-08-01 Richard Henderson <rth@redhat.com>
8490 * config/avr/avr.h (PUSH_ROUNDING): New.
8491 * config/avr/avr.md (pushqi1): Rename from *pushqi.
8492 (*pushhi, *pushsi, *pushsf): Remove.
8493 (MPUSH): New mode iterator.
8494 (push<MPUSH>1): New expander.
8496 2011-08-01 Anatoly Sokolov <aesok@post.ru>
8498 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
8499 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8500 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
8501 mmix_preferred_output_reload_class): Remove.
8502 * config/mmix/mmix.c (mmix_preferred_reload_class,
8503 mmix_preferred_output_reload_class): Make static. Change rclass
8504 argument and return type to reg_class_t.
8505 (TARGET_PREFERRED_RELOAD_CLASS,
8506 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8508 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
8510 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
8513 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
8516 * config/i386/i386.md (PTR): New.
8517 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
8518 (stack_protect_test): Likewise.
8519 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
8520 (stack_tls_protect_set_<mode>): Likewise.
8521 (stack_tls_protect_test_<mode>): Likewise.
8523 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
8526 * config/i386/i386.c (ix86_address_subreg_operand): New.
8527 (ix86_decompose_address): Use ix86_address_subreg_operand.
8528 (ix86_legitimate_address_p): Do not assert that subregs satisfy
8529 register_no_elim_operand in DImode.
8531 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
8533 PR tree-optimization/49926
8534 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
8535 in a chain doesn't have uses both inside and outside the loop.
8537 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
8539 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
8540 * config/avr/avr-devices.c (avr_mcu_types): Use it.
8541 * config/avr/avr-mcus.def (AVR_MCU): Use it.
8542 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
8543 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
8544 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
8545 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
8546 to detect if XJMP must not be skipped.
8548 2011-08-02 Alan Modra <amodra@gmail.com>
8550 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
8552 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
8553 (rs6000_emit_prologue): Don't prematurely return when
8554 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
8555 save_toc_in_prologue case.
8556 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
8559 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
8561 * config/avr/avr-devices.c: Delete SVN property svn:executable.
8562 * config/avr/predicates.md: Ditto.
8563 * config/avr/driver-avr.c: Ditto.
8564 * config/avr/genopt.sh: Set SVN property svn:executable to *.
8566 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
8568 * calls.c (emit_library_call_value_1): Declare size only if
8569 BLOCK_REG_PADDING is defined.
8571 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
8574 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
8575 (x86_64-*-*): Likewise.
8576 * config/i386/i386.opt (mlzcnt): New.
8577 * config/i386/abmintrin.h: File removed.
8578 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
8579 * config/i386/lzcntintrin.h: ... here. New file.
8580 (__lzcnt): Rename to ...
8581 (__lzcnt32): ... this.
8582 * config/i386/bmiintrin.h (head): Update copyright year.
8583 (__lzcnt_u16): Removed.
8584 (__lzcnt_u32): Likewise.
8585 (__lzcnt_u64): Likewise.
8586 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
8587 is defined, remove abmintrin.h.
8588 * config/i386/cpuid.h (bit_LZCNT): New.
8589 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8591 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8592 __LZCNT__ if needed.
8593 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
8594 (ix86_option_override_internal): Handle LZCNT option.
8595 (ix86_valid_target_attribute_inner_p): Likewise.
8596 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
8597 * config/i386/i386.h (TARGET_LZCNT): New.
8598 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
8599 * config/i386/i386.md (clz<mode>2): Update insn constraint.
8600 (clz<mode>2_lzcnt): Likewise.
8601 * doc/invoke.texi: Mention -mlzcnt option.
8602 * doc/extend.texi: Likewise.
8604 2011-08-01 Julian Brown <julian@codesourcery.com>
8606 * configure.ac (fixed-point): Add ARM support.
8607 * configure: Regenerate.
8608 * config/arm/arm.c (arm_fixed_mode_set): New struct.
8609 (arm_set_fixed_optab_libfunc): New.
8610 (arm_set_fixed_conv_libfunc): New.
8611 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
8613 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
8614 return values in SImode.
8615 (arm_return_in_msb): Return fixed-point types in the msb.
8616 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
8618 (arm_scalar_mode_supported_p): Support fixed-point modes.
8619 (arm_vector_mode_supported_p): Support vector fixed-point modes.
8620 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
8621 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
8622 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
8623 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
8624 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
8626 (qaddsub_suf): New mode attribute.
8627 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
8629 * config/arm/predicates.md (sat_shift_operator): New predicate.
8630 * config/arm/arm-fixed.md: New.
8631 * config/arm/arm.md: Include arm-fixed.md.
8632 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
8634 2011-08-01 Julian Brown <julian@codesourcery.com>
8636 * calls.c (emit_library_call_value_1): Support padding for libcall
8637 arguments and return values.
8638 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
8639 downwards in big-endian mode.
8641 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8644 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
8645 * config/sol2-protos.h: Likewise.
8646 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
8648 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
8649 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
8651 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
8653 2011-08-01 Julian Brown <julian@codesourcery.com>
8655 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
8657 2011-08-01 Julian Brown <julian@codesourcery.com>
8659 * final.c (output_addr_const): Print fixed-point constants as
8662 2011-08-01 Richard Guenther <rguenther@suse.de>
8664 * stor-layout.c (initialize_sizetypes): Properly sign-extend
8665 bitsiztype TYPE_MAX_VALUE.
8667 2011-08-01 Julian Brown <julian@codesourcery.com>
8669 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
8672 2011-07-31 Richard Henderson <rth@redhat.com>
8674 * config/h8300/crti.asm: Add flags to .section directive.
8675 * config/h8300/crtn.asm: Likewise.
8677 2011-07-31 Richard Henderson <rth@redhat.com>
8679 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
8680 * tree.c (build_common_tree_nodes): Likewise.
8682 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
8685 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
8686 (divsi3_i1): Likewise.
8688 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8690 PR tree-optimization/49749
8691 * tree-ssa-reassoc.c (get_rank): New forward declaration.
8692 (PHI_LOOP_BIAS): New macro.
8693 (phi_rank): New function.
8694 (loop_carried_phi): Likewise.
8695 (propagate_rank): Likewise.
8696 (get_rank): Add calls to phi_rank and propagate_rank.
8698 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
8700 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
8702 (PTRDIFF_TYPE): Likewise.
8704 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
8707 * config/i386/i386.md (strset): Do not expand strset_singleop
8708 when %eax or $edi are fixed.
8709 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
8710 (*strsetsi_1): Ditto.
8711 (*strsethi_1): Ditto.
8712 (*strsetqi_1): Ditto.
8713 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
8714 (*rep_stossi): Ditto.
8715 (*rep_stosqi): Ditto.
8716 (*strlenqi_1): Ditto.
8717 (cmpstrnsi): Also fail when %ecx is fixed.
8718 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
8719 (*cmpstrnqi_1): Ditto.
8720 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
8721 (*strmovsi_1): Ditto.
8722 (*strmovhi_1): Ditto.
8723 (*strmovqi_1): Ditto.
8724 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
8725 (*rep_movsi): Ditto.
8726 (*rep_movqi): Ditto.
8728 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
8731 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
8732 Disable instruction scheduling for non-ColdFire targets.
8733 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8735 2011-07-31 Revital Eres <revital.eres@linaro.org>
8737 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
8738 of anti-dep edge from a branch.
8739 (add_cross_iteration_register_deps): Create anti-dep edge from
8742 2011-07-31 Revital Eres <revital.eres@linaro.org>
8744 * modulo-sched.c: Change comment.
8745 (reset_sched_times): Fix print message.
8746 (print_partial_schedule): Add print info.
8748 2011-07-31 Tom de Vries <tom@codesourcery.com>
8751 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
8752 get_object_alignment and TYPE_ALIGN.
8754 2011-07-30 Tom de Vries <tom@codesourcery.com>
8757 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
8758 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
8760 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8762 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
8764 (cpu_types): New array.
8765 (cputype): New function.
8766 (host_detect_local_cpu): Only define buf, f if !__sgi__.
8767 Use scaninvent instead of /proc/cpuinfo if __sgi__.
8768 * config.host: Also use driver-native.o, mips/x-native on
8770 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
8771 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
8772 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
8774 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8778 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
8779 in nested parallel and outer is a gimple_reg, mark it as addressable
8780 and set its bit in task_shared_vars bitmap too.
8782 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
8784 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
8786 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8788 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
8789 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
8790 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
8791 AMASK_LOCKPFTCHOK): Define.
8792 (host_detect_local_cpu): Remove buf, f, cpu_names.
8793 Define cpu_types, implver, amask.
8794 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
8796 * config.host: Also use driver-alpha.o, alpha/x-alpha on
8798 * config/alpha/osf5.h [__alpha__ || __alpha]
8799 (host_detect_local_cpu): Declare.
8800 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
8801 (DRIVER_SELF_SPECS): Define.
8803 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
8806 * config/i386/i386.md (*load_tp_x32): New.
8807 (*load_tp_x32_zext): Ditto.
8808 (*add_tp_x32): Ditto.
8809 (*add_tp_x32_zext): Ditto.
8810 (*load_tp_<mode>): Disable for TARGET_X32 targets.
8811 (*add_tp_<mode>): Ditto.
8812 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
8813 ptr_mode and convert to Pmode if needed.
8815 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
8818 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
8819 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
8820 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
8821 Add X to register footprint: Clobber r26/r27.
8823 2011-07-29 Richard Guenther <rguenther@suse.de>
8825 * builtins.c (fold_builtin_signbit): Build the comparison
8828 2011-07-29 Richard Guenther <rguenther@suse.de>
8830 PR tree-optimization/49893
8831 * tree-predcom.c (suitable_reference_p): Volatile references
8834 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
8837 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8838 (__ctzsi2): Result for 0 may be undefined.
8839 (__ctzhi2): Result for 0 may be undefined.
8840 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8841 (__popcountsi2): Ditto. And don't clobber r26.
8842 (__popcountdi2): Ditto. And don't clobber r27.
8843 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8844 (parityhi2): New expand.
8845 (paritysi2): New expand.
8846 (popcounthi2): New expand.
8847 (popcountsi2): New expand.
8848 (clzhi2): New expand.
8849 (clzsi2): New expand.
8850 (ctzhi2): New expand.
8851 (ctzsi2): New expand.
8852 (ffshi2): New expand.
8853 (ffssi2): New expand.
8854 (copysignsf3): New insn.
8855 (bswapsi2): New expand.
8856 (*parityhi2.libgcc): New insn.
8857 (*parityqihi2.libgcc): New insn.
8858 (*paritysihi2.libgcc): New insn.
8859 (*popcounthi2.libgcc): New insn.
8860 (*popcountsi2.libgcc): New insn.
8861 (*popcountqi2.libgcc): New insn.
8862 (*popcountqihi2.libgcc): New insn-and-split.
8863 (*clzhi2.libgcc): New insn.
8864 (*clzsihi2.libgcc): New insn.
8865 (*ctzhi2.libgcc): New insn.
8866 (*ctzsihi2.libgcc): New insn.
8867 (*ffshi2.libgcc): New insn.
8868 (*ffssihi2.libgcc): New insn.
8869 (*bswapsi2.libgcc): New insn.
8871 2011-07-29 Richard Guenther <rguenther@suse.de>
8873 * tree-vrp.c (get_value_range): Only set parameter default
8874 definitions to varying, leave others at undefined.
8875 (extract_range_from_binary_expr): Fix undefined handling.
8876 (vrp_visit_phi_node): Handle merged undefined state.
8878 2011-07-29 Wei Guozhi <carrot@google.com>
8880 PR rtl-optimization/49799
8881 * combine.c (make_compound_operation): Check if the bit field is valid
8882 before change it to bit field extraction.
8884 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
8886 PR rtl-optimization/49891
8887 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
8888 newly created returnjumps.
8890 2011-07-28 DJ Delorie <dj@redhat.com>
8892 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8893 local frame in a naked function, and produce a suitable error for
8896 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8897 registers to be reloaded in HI classes when the target is HI.
8899 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8901 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8902 bound_one, bound_two.
8904 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8907 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8909 (translate_clast): Same.
8910 (translate_clast_assignment): New.
8912 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
8914 PR tree-optimization/49876
8915 * sese.c (rename_uses): Do not return false on gloog_error: set
8916 the new_expr to integer_zero_node and continue code generation.
8917 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8919 2011-07-28 Jakub Jelinek <jakub@redhat.com>
8922 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8923 arguments also check if they aren't initialized with a MODE_INT
8924 mode of the same size.
8926 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
8928 * expr.c (get_bit_range): Handle *MEM_REF's.
8930 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
8932 * rtlanal.c (tablejump_p): False for returns.
8933 * reorg.c (first_active_target_insn): New static function.
8934 (find_end_label): Set JUMP_LABEL for a new returnjump.
8935 (optimize_skip, get_jump_flags, rare_destination,
8936 mostly_true_jump, get_branch_condition,
8937 steal_delay_list_from_target, own_thread_p,
8938 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8939 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8940 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8941 * jump.c (delete_related_insns): Likewise.
8942 (jump_to_label_p): New function.
8943 (redirect_target): New static function.
8944 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
8945 (redirect_jump_1): Assert that the new label is nonnull.
8946 (redirect_jump): Likewise.
8947 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8948 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8950 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
8951 changed. Ensure that the right label is passed to redirect_jump.
8952 * function.c (emit_return_into_block,
8953 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8954 ret_rtx in their JUMP_LABEL.
8955 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8956 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8957 pass ret_rtx as label.
8958 * cfglayout.c (fixup_reorder_chain): Use
8959 force_nonfallthru_and_redirect rather than force_nonfallthru.
8960 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8961 * rtl.h (ANY_RETURN_P): New macro.
8962 (jump_to_label_p): Declare.
8963 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8965 (mark_target_live_regs): Likewise.
8966 * basic-block.h (force_nonfallthru_and_redirect): Declare.
8967 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8968 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8969 alpha_tablejump_best_label): Remove functions.
8970 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8971 alpha_tablejump_best_label): Remove declarations.
8972 * config/sh/sh.c (barrier_align, split_branches): Adjust for
8973 ret_rtx in JUMP_LABELs.
8974 * config/arm/arm.c (is_jump_table): Likewise.
8976 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8978 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
8979 special predicate. Remove explicit mode checks.
8981 2011-07-28 Jakub Jelinek <jakub@redhat.com>
8983 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
8984 DW_AT_data_member_location containing just DW_OP_plus_uconst.
8987 * dwarf2out.c (size_of_die, value_format, output_die): Use
8988 DW_FORM_udata instead of DW_FORM_data[48] for
8989 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
8991 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8993 * config/i386/i386.md (*tls_global_dynamic_64): Update
8996 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
8999 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
9000 tls_symbolic_operand check. Update code sequence for TARGET_X32.
9001 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
9002 (tls_dynamic_gnu2_64): Ditto.
9003 (*tls_dynamic_gnu2_lea_64): Ditto.
9004 (*tls_dynamic_gnu2_call_64): Ditto.
9005 (*tls_dynamic_gnu2_combine_64): Ditto.
9007 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9009 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
9011 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9014 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
9016 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9018 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
9019 before the core constraints. Adjust attributes.
9020 ("*thumb2_movdf_vfp"): Likewise.
9022 2011-07-28 Kai Tietz <ktietz@redhat.com>
9024 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
9025 (simplify_truth_ops_using_ranges): Likewise.
9026 (build_assert_expr_for): Likewise.
9027 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
9028 and handle BIT_NOT_EXPR for truth-operation.
9030 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
9033 Undo r176835 from trunk
9034 2011-07-27 Georg-Johann Lay
9036 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
9039 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
9040 Add _muluhisi3, _mulshisi3, _usmulhisi3.
9041 * config/avr/libgcc.S (__mulsi3): Rewrite.
9042 (__mulhisi3): Rewrite.
9043 (__umulhisi3): Rewrite.
9044 (__usmulhisi3): New.
9048 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
9050 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
9051 (pseudo_register_or_const_int_operand): New.
9052 (combine_pseudo_register_operand): New.
9056 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
9057 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
9058 (any_extend, any_extend2): New code iterators.
9059 (extend_prefix): New code attribute.
9060 (mulsi3): Rewrite. Turn insn to expander.
9063 (usmulhisi3): New expander.
9064 (*mulsi3): New insn-and-split.
9065 (mulu<mode>si3): New insn-and-split.
9066 (muls<mode>si3): New insn-and-split.
9067 (mulohisi3): New insn-and-split.
9068 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
9069 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
9070 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
9071 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
9073 (*mulsi3_call): Rewrite.
9074 (*mulhisi3_call): Rewrite.
9075 (*umulhisi3_call): Rewrite.
9076 (*usmulhisi3_call): New insn.
9077 (*muluhisi3_call): New insn.
9078 (*mulshisi3_call): New insn.
9079 (*mulohisi3_call): New insn.
9080 (extendqihi2): Use combine_pseudo_register_operand as predicate
9082 (extendqisi2): Ditto.
9083 (zero_extendqihi2): Ditto.
9084 (zero_extendqisi2): Ditto.
9085 (zero_extendhisi2): Ditto.
9086 (extendhisi2): Ditto. Don't early-clobber operand 0.
9088 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
9090 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
9092 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
9094 PR tree-optimization/49471
9095 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
9096 iv only when the largest type is unsigned. Do not call
9097 lang_hooks.types.type_for_size.
9099 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
9102 * graphite-poly.c (apply_poly_transforms): Disable legality check
9103 after an openscop read.
9105 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
9108 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
9109 copy_bb_and_scalar_dependences.
9110 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
9111 (graphite_copy_stmts_from_block): Update call to rename_uses.
9112 (copy_bb_and_scalar_dependences): Update call to
9113 graphite_copy_stmts_from_block.
9114 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
9116 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
9119 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
9120 (__ctzsi2): Result for 0 may be undefined.
9121 (__ctzhi2): Result for 0 may be undefined.
9122 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
9123 (__popcountsi2): Ditto. And don't clobber r26.
9124 (__popcountdi2): Ditto. And don't clobber r27.
9125 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
9126 (parityhi2): New expand.
9127 (paritysi2): New expand.
9128 (popcounthi2): New expand.
9129 (popcountsi2): New expand.
9130 (clzhi2): New expand.
9131 (clzsi2): New expand.
9132 (ctzhi2): New expand.
9133 (ctzsi2): New expand.
9134 (ffshi2): New expand.
9135 (ffssi2): New expand.
9136 (copysignsf3): New insn.
9137 (bswapsi2): New expand.
9138 (*parityhi2.libgcc): New insn.
9139 (*parityqihi2.libgcc): New insn.
9140 (*paritysihi2.libgcc): New insn.
9141 (*popcounthi2.libgcc): New insn.
9142 (*popcountsi2.libgcc): New insn.
9143 (*popcountqi2.libgcc): New insn.
9144 (*popcountqihi2.libgcc): New insn-and-split.
9145 (*clzhi2.libgcc): New insn.
9146 (*clzsihi2.libgcc): New insn.
9147 (*ctzhi2.libgcc): New insn.
9148 (*ctzsihi2.libgcc): New insn.
9149 (*ffshi2.libgcc): New insn.
9150 (*ffssihi2.libgcc): New insn.
9151 (*bswapsi2.libgcc): New insn.
9153 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
9155 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
9156 the mode of symbolic_opreand RTXes.
9158 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
9160 * config/i386/predicates.md (x86_64_movabs_operand): Return false
9161 for pic_32bit_operand RTXes.
9162 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
9165 2011-07-27 Kai Tietz <ktietz@redhat.com>
9167 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
9169 (ix86_handle_abi_attribute): Allow function attributes
9170 ms_abi/sysv_abi in 32-bit mode, too.
9171 * doc/extend.texi: Adjust attribute documentation.
9173 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
9174 expression handling.
9175 (and_var_with_comparison_1): Likewise.
9177 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
9179 * params.h (ALLOW_STORE_DATA_RACES): New.
9180 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
9181 * Makefile.in (expr.o): Depend on PARAMS_H.
9182 * machmode.h (get_best_mode): Add argument.
9183 * fold-const.c (optimize_bit_field_compare): Add argument to
9185 (fold_truthop): Same.
9186 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
9187 * expr.c (emit_group_store): Same.
9188 (copy_blkmode_from_reg): Same.
9189 (write_complex_part): Same.
9190 (optimize_bitfield_assignment_op): Add argument.
9191 Add argument to get_best_mode.
9192 (get_bit_range): New.
9193 (expand_assignment): Calculate maxbits and pass it down accordingly.
9194 (store_field): New argument.
9195 (expand_expr_real_2): New argument to store_field. Include params.h.
9196 * expr.h (store_bit_field): New argument.
9197 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
9198 into account maxbits.
9199 * calls.c (store_unaligned_arguments_into_pseudos): New argument
9201 * expmed.c (store_bit_field_1): New argument. Use it.
9202 (store_bit_field): Same.
9203 (store_fixed_bit_field): Same.
9204 (store_split_bit_field): Same.
9205 (extract_bit_field_1): Pass new argument to get_best_mode.
9206 (extract_bit_field): Same.
9207 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
9208 * doc/invoke.texi: Document parameter allow-store-data-races.
9210 2011-07-27 Jakub Jelinek <jakub@redhat.com>
9212 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
9214 2011-07-27 Kai Tietz <ktietz@redhat.com>
9216 * tree-vrp.c (extract_range_from_binary_expr): Remove
9217 TRUTH-binary cases and add new bitwise-cases.
9218 (extract_range_from_assignment): Likewise.
9219 (register_edge_assert_for_1): Likeiwise.
9220 (register_edge_assert_for): Likewise.
9221 (simplify_truth_ops_using_ranges): Likewise.
9222 (simplify_stmt_using_ranges): Likewise.
9224 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
9227 * config/i386/i386.c (ix86_delegitimize_address): Call
9228 simplify_gen_subreg for PIC with mode of x only if modes of
9229 x and orig_x are different.
9231 2011-07-26 Jakub Jelinek <jakub@redhat.com>
9233 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
9234 to GC allocated copy of the string.
9235 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
9236 before .debug_line, not after it.
9238 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9241 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
9242 evolution_function_is_affine_p on CHREC_RIGHT.
9244 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9246 * tree-data-ref.c (max_stmt_executions_tree): Do not call
9247 lang_hooks.types.type_for_size.
9249 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9252 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
9253 loops using wrapping semantics.
9255 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
9258 * tree-scalar-evolution.c (instantiate_scev_r): Return
9259 chrec_dont_know for ADDR_EXPR.
9261 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
9262 H.J. Lu <hongjiu.lu@intel.com>
9266 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
9267 if legitimize_tls_address returned operand in wrong mode. Allow
9268 SImode and DImode symbolic operand for PIC. Call convert_to_mode
9269 if legitimize_pic_address returned operand in wrong mode.
9271 2011-07-26 Martin Jambor <mjambor@suse.cz>
9273 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
9274 return false for invariants.
9276 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
9278 * config/i386/i386.md (add->lea splitter): Implement using SWI
9279 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
9280 (add->lea zext splitter): Change operand 2 predicate to
9281 x86_64_nonmemory_operand.
9283 2011-07-26 Richard Guenther <rguenther@suse.de>
9285 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
9286 frequency makes everything hot.
9288 2011-07-26 Richard Guenther <rguenther@suse.de>
9290 PR tree-optimization/49840
9291 * tree-vrp.c (range_fits_type_p): Properly handle full
9292 double-int precision.
9294 2011-07-26 Martin Jambor <mjambor@suse.cz>
9297 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
9299 (update_specialized_profile): Likewise.
9301 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
9302 H.J. Lu <hongjiu.lu@intel.com>
9307 * config/i386/i386.md (i): Change SImode attribute to "e".
9308 (g): Change SImode attribute to "rme".
9309 (di): Change SImode attribute to "nF".
9310 (general_operand): Change SImode attribute to x86_64_general_operand.
9311 (general_szext_operand): Change SImode attribute to
9312 x86_64_szext_general_operand.
9313 (immediate_operand): Change SImode attribute to
9314 x86_64_immediate_operand.
9315 (nonmemory_operand): Change SImode attribute to
9316 x86_64_nonmemory_operand.
9317 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
9318 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
9319 (*lea_1): Use SWI48 mode iterator.
9320 (*lea_1_zext): New insn pattern.
9321 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
9323 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
9324 Update operand constraints.
9325 (addsi_1_zext): Ditto.
9326 (*add<mode>2): Ditto.
9327 (*addsi_3_zext): Ditto.
9328 (*subsi_1_zext): Ditto.
9329 (*subsi_2_zext): Ditto.
9330 (*subsi_3_zext): Ditto.
9331 (*addsi3_carry_zext): Ditto.
9332 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
9333 (*mulsi3_1_zext): Ditto.
9335 (*andsi_1_zext): Ditto.
9336 (*andsi_2_zext): Ditto.
9337 (*<any_or:code>si_1_zext): Ditto.
9338 (*<any_or:code>si_2_zext): Ditto.
9339 (*test<mode>_1): Use <general_operand> predicate for operand 1.
9340 (*and<mode>_2): Ditto.
9341 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
9342 (add->lea splitter): Check operand modes in insn constraint. Extend
9343 operands less than SImode wide to SImode.
9344 (add->lea zext splitter): Do not extend input operands to DImode.
9345 (*lea_general_1): Handle only QImode and HImode operands.
9346 (*lea_general_2): Ditto.
9347 (*lea_general_3): Ditto.
9348 (*lea_general_1_zext): Remove.
9349 (*lea_general_2_zext): Ditto.
9350 (*lea_general_3_zext): Ditto.
9351 (*lea_general_4): Check operand modes in insn constraint. Extend
9352 operands less than SImode wide to SImode.
9353 (ashift->lea splitter): Ditto.
9354 * config/i386/i386.c (ix86_print_operand_address): Print address
9355 registers with 'q' modifier on 64bit targets.
9356 * config/i386/predicates.md (pic_32bit_opreand): Define as special
9357 predicate. Reject non-SI and non-DI modes.
9359 2011-07-25 Andrew Pinski <apinski@cavium.com>
9362 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
9363 TREE_THIS_NOTRAP into the inner most MEM_REF.
9364 Always copy TREE_THIS_VOLATILE.
9365 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
9366 arguments are not volatile references.
9368 2011-07-25 Richard Henderson <rth@redhat.com>
9370 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
9371 * final.c (final_scan_insn): Don't test for it.
9372 (rest_of_clean_state): Likewise.
9374 2011-07-25 Richard Henderson <rth@redhat.com>
9377 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
9378 (emit_frame_save): Likewise.
9379 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
9380 insn onto a dummy blockage insn after the join label.
9382 2011-07-25 Richard Henderson <rth@redhat.com>
9384 * dwarf2cfi.c (dw_trace_info): Add ID member.
9385 (get_trace_index): Remove. Change users to use ID member.
9386 (before_next_cfi_note): New.
9387 (connect_traces): Remove unreachable traces before the main loop.
9388 Look across one trace and generate remember/restore_state if needed.
9390 2011-07-25 Richard Henderson <rth@redhat.com>
9392 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
9394 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
9396 * genattr.c (write_upcase, gen_attr <enum definition writing>):
9398 * genattr-common.c ... here.
9399 (main): Call gen_attr.
9400 * optc-gen.awk: Make generated program include insn-attr-common.h .
9401 * Makefile.in (oprions.o): Depend on insn-attr-common.h
9403 2011-07-25 Anatoly Sokolov <aesok@post.ru>
9405 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9406 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9407 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
9408 m32c_print_operand, m32c_print_operand_address): Remove.
9409 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
9410 Change return type to bool. Change argument type to bool.
9411 (m32c_print_operand, m32c_print_operand_address): Make static.
9412 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9413 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9415 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9417 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9418 attributes): Document mmap.
9420 2011-07-25 Anatoly Sokolov <aesok@post.ru>
9422 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9423 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9424 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
9425 mmix_print_operand, mmix_print_operand_address): Remove.
9426 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
9427 Change return type to bool. Change argument type to bool.
9428 (mmix_print_operand, mmix_print_operand_address): Make static.
9429 (mmix_intval, mmix_output_condition): Change 'x' argument type
9431 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9432 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9434 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
9437 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
9438 shift counter for x << x and x >> x shifts.
9440 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9443 * config.gcc: Reject *-*-solaris2 configuration.
9445 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
9447 PR tree-optimization/49809
9448 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
9449 gimple_get_lhs instead of gimple_assign_lhs.
9451 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9453 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
9455 2011-07-25 Richard Guenther <rguenther@suse.de>
9457 PR tree-optimization/49822
9458 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9459 more. Make sure to preserve stmts with side-effects. Properly
9460 handle virtual defs, follow a longer def chain.
9462 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
9467 * Makefile.in: Do not flatten c-family directory when installing
9470 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
9472 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
9473 original nodes if we are dealing with virtual clones.
9475 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
9477 * common/config/c6x/c6x-common.c: New file.
9479 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
9481 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
9483 2011-07-25 Richard Guenther <rguenther@suse.de>
9485 PR tree-optimization/49715
9486 * tree-vrp.c: Include expr.h and optabs.h.
9487 (range_fits_type_): New function.
9488 (simplify_float_conversion_using_ranges): Likewise.
9489 (simplify_stmt_using_ranges): Call it.
9490 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
9491 * optabs.c (can_float_p): Export.
9492 * optabs.h (can_float_p): Declare.
9494 2011-07-25 Richard Guenther <rguenther@suse.de>
9496 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
9497 (get_value_range): For out-of-range SSA names or names created
9498 after propagation return a read-only varying range.
9499 (dump_all_value_ranges): Adjust.
9500 (vrp_initialize): Likewise.
9501 (vrp_finalize): Likewise.
9503 2011-07-24 Richard Henderson <rth@redhat.com>
9506 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
9509 2011-07-24 Richard Henderson <rth@redhat.com>
9512 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
9513 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
9515 2011-07-24 Richard Henderson <rth@redhat.com>
9518 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
9520 2011-07-24 Richard Henderson <rth@redhat.com>
9522 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
9523 Zero args_size for abnormal edges. Adjust all callers.
9525 2011-07-24 Richard Henderson <rth@redhat.com>
9528 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
9530 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
9533 * collect2.c (demangle_flag): Removed.
9535 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
9537 * configure.ac (demangler_in_ld): Default to yes.
9538 * configure: Regenerated.
9539 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
9540 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
9541 --no-demangle options straight through to ld. When
9542 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
9543 way that has the intended effect on Windows.
9545 2011-07-23 Richard Henderson <rth@redhat.com>
9547 * dwarf2cfi.c: Include basic-block.h.
9548 (dw_label_info): Remove.
9549 (trace_work_list, trace_index): New.
9550 (remember_row, emit_cfa_remember): Remove.
9551 (dw_trace_info_hash, dw_trace_info_eq): New.
9552 (get_trace_index, get_trace_info): New.
9553 (save_point_p): New.
9554 (free_cfi_row): Remove.
9555 (add_cfi): Do not emit DW_CFA_remember_state.
9556 (cfa_row_equal_p): New.
9557 (barrier_args_size): Remove.
9558 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
9559 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
9560 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
9561 (dwarf2out_cfi_begin_epilogue): Remove.
9562 (dwarf2out_frame_debug_restore_state): Remove.
9563 (connect_traces, create_pseudo_cfg): New.
9564 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
9565 * Makefile.in (dwarf2cfi.o): Update.
9567 2011-07-23 Richard Henderson <rth@redhat.com>
9569 * dwarf2cfi.c (dw_trace_info): New.
9570 (dw_label_info): New.
9571 (cie_return_save): New.
9573 (queued_args_size): Rename from args_size. Update all users.
9574 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
9575 (def_cfa_1): Use cur_trace instead of cfa_*.
9576 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
9577 (clobbers_queued_reg_save, reg_saved_in): Likewise.
9578 (dwarf2out_frame_debug_expr): Likewise.
9579 (create_cie_data): Split out from ...
9580 (execute_dwarf2_frame): ... here. Initialize cur_trace.
9582 2011-07-23 Richard Henderson <rth@redhat.com>
9584 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
9585 Update all users to match.
9586 (execute_dwarf2_frame): Free reg_saved_in_data.
9588 2011-07-23 Richard Henderson <rth@redhat.com>
9590 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
9591 (queued_reg_saves): Don't GTY. Change to a VEC.
9592 (queue_reg_save): Update to match.
9593 (dwarf2out_flush_queued_reg_saves): Likewise.
9594 (clobbers_queued_reg_save): Likewise.
9595 (reg_saved_in): Likewise.
9596 (execute_dwarf2_frame): Free queued_reg_saves.
9598 2011-07-23 Richard Henderson <rth@redhat.com>
9600 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
9602 2011-07-23 Richard Henderson <rth@redhat.com>
9604 * dwarf2cfi.c (add_cfi_args_size): Split out from...
9605 (dwarf2out_args_size): ... here.
9606 (add_cfi_restore): Split out from ...
9607 (dwarf2out_frame_debug_cfa_restore): ... here.
9608 (def_cfa_0): Split out from ...
9609 (def_cfa_1): ... here.
9610 (cfi_oprnd_equal_p, cfi_equal_p): New.
9611 (change_cfi_row): New.
9612 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
9613 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
9614 (output_cfis): Remove.
9615 * dwarf2out.c (output_fde): Simplify output_cfi loop.
9616 (dwarf2out_switch_text_section): Don't call output_cfis.
9617 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
9618 * dwarf2out.h: Update decls.
9619 (enum dw_val_class): Add dw_val_class_none.
9621 2011-07-23 Richard Henderson <rth@redhat.com>
9623 * dwarf2cfi.c (update_row_reg_save): New.
9624 (dwarf2out_frame_debug_cfa_expression): Use it.
9625 (dwarf2out_frame_debug_cfa_restore): Likewise.
9626 (reg_save): Likewise. Do not emit DW_CFA_same_value.
9628 2011-07-23 Richard Henderson <rth@redhat.com>
9630 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
9632 2011-07-23 Richard Henderson <rth@redhat.com>
9634 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
9636 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
9637 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
9638 (cur_row, remember_row): New.
9639 (def_cfa_1): Use cur_row instead of the old_* variables.
9640 (dwarf2out_frame_debug_restore_state): Similarly.
9641 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
9642 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
9643 (dwarf2out_frame_debug_adjust_cfa): Likewise.
9644 (dwarf2out_frame_debug_cfa_offset): Likewise.
9645 (dwarf2out_frame_debug_expr): Likewise.
9646 (execute_dwarf2_frame): Set up cur_row.
9647 * dwarf2out.h (struct cfa_loc): Mark for GTY.
9649 2011-07-23 Richard Henderson <rth@redhat.com>
9651 * basic-block.h (EDGE_PRESERVE): New.
9652 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
9653 * bb-reorder.c: Include except.h.
9654 (fix_up_crossing_landing_pad): New.
9655 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
9656 landing pads in the right partition. Duplicate as necessary.
9657 (partition_hot_cold_basic_blocks): Fix up DF info after
9658 duplicating landing pads.
9659 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
9660 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
9661 is set properly. Validate that EH edges are not CROSSING.
9662 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
9663 (dw2_build_landing_pads): ... here.
9664 (convert_to_eh_region_ranges): Remove code to fixup crossing
9666 * except.h (expand_dw2_landing_pad_for_region): Declare.
9667 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
9669 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
9672 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
9674 2011-07-22 Jason Merrill <jason@redhat.com>
9676 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
9678 2011-07-22 Richard Henderson <rth@redhat.com>
9680 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
9682 2011-07-22 Richard Henderson <rth@redhat.com>
9684 * jump.c (maybe_propagate_label_ref): Split out of...
9685 (mark_all_labels): ... here. Do not attempt label_ref
9686 propagation while in cfglayout mode.
9688 2011-07-22 Jakub Jelinek <jakub@redhat.com>
9690 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
9691 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
9692 (dwarf_attr_name): Handle DW_AT_GNU_macros.
9693 (dwarf2out_define): If the vector is empty and
9694 lineno is 0, emit a dummy entry first.
9695 (dwarf2out_undef): Likewise. Remove redundant semicolon.
9696 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
9697 optimize_macinfo_range): New functions.
9698 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
9699 mergeable, optimize longer strings using
9700 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
9701 optimize longer sequences of define/undef ops from headers
9702 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
9703 emit a section headers.
9704 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
9705 and macinfo_section_label to DEBUG_MACRO_SECTION
9706 resp. DEBUG_MACRO_SECTION_LABEL.
9707 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
9708 instead of DW_AT_macro_info.
9711 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
9713 * dwarf2out.c: Include opts.h.
9714 (dchar_p): New typedef. Define heap VEC for it.
9715 (producer_string): New variable.
9716 (gen_producer_string): New function.
9717 (gen_compile_unit_die): Use it.
9718 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
9719 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
9720 * doc/invoke.texi: Document -grecord-gcc-switches and
9721 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
9722 to -frecord-gcc-switches description.
9724 2011-07-22 Jason Merrill <jason@redhat.com>
9727 * c-decl.c (c_linkage_bindings): Define.
9729 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
9732 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
9734 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
9736 * config/i386/i386.c (ix86_option_override_internal): Disallow
9738 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
9739 only for TARGET_LP64.
9740 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
9742 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9744 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
9745 avoid warnings when GCC is built with a C++ compiler.
9747 2011-07-22 Martin Jambor <mjambor@suse.cz>
9750 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
9751 if decl node is in another partition, call cgraph_get_node only once.
9753 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
9755 * config.gcc (x86_64-*-linux*): Set
9756 default_gnu_indirect_function to yes.
9758 2011-07-22 Richard Guenther <rguenther@suse.de>
9760 PR tree-optimization/45819
9761 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
9762 preserve volatile and notrap flags.
9764 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9765 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9768 * configure.ac: Test AM_ICONV with CXX.
9769 * configure: Regenerate.
9770 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
9772 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9775 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
9776 (set_cloog_options): Use it.
9778 2011-07-22 Jakub Jelinek <jakub@redhat.com>
9781 * gcc.c (main): Call stack_limit_increase (64MB).
9782 * toplev.c (toplev_main): Likewise.
9784 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9786 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
9787 instead of force_reg.
9789 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9791 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9792 needed and use force_reg after convert.
9793 (ix86_expand_call): Likewise.
9794 (ix86_expand_special_args_builtin): Likewise.
9795 (ix86_expand_builtin): Likewise.
9797 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9801 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
9802 in parameter. Initialize v1 and v2 based on the values returned
9803 by clast_name_to_lb_ub.
9804 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
9806 (type_for_clast_bin): Same.
9807 (type_for_clast_expr): Same.
9808 (type_for_clast_eq): Update calls to type_for_clast_expr.
9809 (type_for_clast_for): Same.
9810 (build_iv_mapping): Same.
9811 * graphite-ppl.h (value_min): New.
9813 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9815 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
9816 types whenever possible.
9818 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9820 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
9822 (new_clast_name_index): Add lb and ub parameters.
9823 (free_clast_name_index): New.
9824 (clast_name_to_lb_ub): New.
9825 (save_clast_name_index): Add lb and ub parameters.
9826 (compute_bounds_for_param): New.
9827 (type_for_level): Removed.
9828 (type_for_clast_for): Removed level parameter. Do not call
9830 (graphite_create_new_loop): Store the lb and ub for the clast_name
9831 of the iterator of the loop that has been generated.
9832 (graphite_create_new_loop_guard): Remove parameter level.
9833 (create_params_index): Store the lb and ub of each parameter.
9834 (gloog): Use free_clast_name_index. Pass to create_params_index
9837 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9839 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
9840 (max_precision_type): Inline max_signed_precision_type.
9841 (type_for_clast_red): Use max_precision_type.
9842 (type_for_clast_bin): Same.
9843 (type_for_clast_for): Same.
9845 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9847 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
9849 (gcc_type_for_value): Renamed type_for_value.
9850 (gcc_type_for_clast_term): Renamed type_for_clast_term.
9851 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
9852 (gcc_type_for_clast_red): Renamed type_for_clast_red.
9853 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
9854 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
9855 (graphite_translate_clast_equation): Update calls.
9856 (compute_type_for_level): Renamed type_for_level.
9857 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
9858 (build_iv_mapping): Update calls.
9859 (graphite_create_new_loop_guard): Same.
9861 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9863 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
9866 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9868 * graphite-clast-to-gimple.c (struct ivs_params): New.
9869 (clast_name_to_gcc): Use ivs_params to pass around parameters.
9870 (clast_to_gcc_expression): Same.
9871 (clast_to_gcc_expression_red): Same.
9872 (gcc_type_for_clast_term): Same.
9873 (gcc_type_for_clast_expr): Same.
9874 (gcc_type_for_clast_red): Same.
9875 (gcc_type_for_clast_bin): Same.
9876 (gcc_type_for_clast_eq): Same.
9877 (graphite_translate_clast_equation): Same.
9878 (graphite_create_guard_cond_expr): Same.
9879 (graphite_create_new_guard): Same.
9880 (graphite_create_new_loop): Same.
9881 (build_iv_mapping): Same.
9882 (translate_clast_user): Same.
9883 (graphite_create_new_loop_guard): Same.
9884 (translate_clast): Same.
9885 (translate_clast_for_loop): Same.
9886 (translate_clast_for): Same.
9887 (translate_clast_guard): Same.
9888 (initialize_cloog_names): Fix typo.
9889 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9891 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9893 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9894 (new_clast_name_index): Add level parameter.
9895 (clast_name_to_level): New.
9896 (save_clast_name_index): Add level parameter.
9897 (newivs_to_depth_to_newiv): Removed.
9898 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9899 (graphite_create_new_loop): Add level parameter. Pass level to
9900 save_clast_name_index.
9901 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9902 (create_params_index): Pass level to save_clast_name_index.
9904 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9906 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9907 recompute type, lb, and ub. Get them from...
9908 (graphite_create_new_loop_guard): ...here. Pass in parameter
9909 pointers to type, lb, and ub.
9910 (translate_clast_for_loop): Update function calls.
9911 (translate_clast_for): Same.
9913 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
9915 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9917 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9918 (gcc_type_for_iv_of_clast_loop): Update use of level.
9919 (gloog): Start counting nesting level from 0.
9920 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9921 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9922 psct_dynamic_dim on level.
9924 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9926 * config/i386/i386.c (ix86_legitimize_address): Convert to
9929 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
9931 * config/i386/i386.c (function_value_64): Always return pointers
9933 (ix86_promote_function_mode): New.
9934 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9936 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9938 PR tree-optimization/49749
9939 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9940 remove no-longer-used maxrank variable.
9942 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
9944 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9946 2011-07-21 Jason Merrill <jason@redhat.com>
9948 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9949 * recog.h (struct insn_data_d): Check it instead of
9950 HAVE_DESIGNATED_INITIALIZERS.
9951 * genoutput.c (output_insn_data): Likewise.
9953 2011-07-21 Richard Guenther <rguenther@suse.de>
9955 PR tree-optimization/49770
9956 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9957 valueized any operand. Renamed from ...
9958 (valueize_refs): ... this. New wrapper around valueize_refs_1.
9959 (valueize_shared_reference_ops_from_ref): Return whether we
9960 valueized any operand.
9961 (vn_reference_lookup): Only when we valueized any operand
9962 use the valueized reference for alias analysis. Do not preserve
9963 the original reference tree in this case.
9965 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
9967 * config/i386/i386.c (ix86_decompose_address): Reject all but
9968 register operands and subregs of DImode hard registers in index.
9970 2011-07-21 Kai Tietz <ktietz@redhat.com>
9972 * fold-const.c (fold_unary_loc): Preserve indirect
9973 comparison cast to none-boolean type.
9974 * tree-ssa.c (useless_type_conversion_p): Preserve cast
9975 from/to boolean-type.
9976 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9977 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9978 * tree-cfg.c (verify_gimple_comparison): Check result
9979 type of comparison expression.
9980 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
9981 of condition result and disallow type-cast sinking into comparison.
9983 2011-07-21 Richard Guenther <rguenther@suse.de>
9985 * tree-ssa-forwprop.c (combine_conversions): Return whether
9986 we have to run cfg-cleanup. Properly remove dead stmts.
9987 (ssa_forward_propagate_and_combine): Adjust.
9989 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
9991 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
9993 2011-07-21 Kai Tietz <ktietz@redhat.com>
9995 * tree-ssa-propagate.c (substitute_and_fold): Use
9996 do_dce flag to deside, if BB's statements are scanned
9997 in last to first, or first to last order.
9999 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
10001 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
10003 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
10004 Uros Bizjak <ubizjak@gmail.com>
10005 Richard Henderson <rth@redhat.com>
10007 * config/i386/constraints.md (w): New.
10009 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
10010 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
10012 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
10013 instead of TARGET_64BIT.
10015 * config/i386/i386.md (indirect_jump): Replace
10016 nonimmediate_operand with indirect_branch_operand.
10017 (*indirect_jump): Likewise. Replace constraint "m" with "w".
10018 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
10019 Convert operand 0 to Pmode for x32 if not PIC.
10020 (*tablejump_1): Replace nonimmediate_operand with
10021 indirect_branch_operand. Replace constraint "m" with "w".
10022 (*call_vzeroupper): Replace constraint "m" with "w".
10024 (*call_rex64_ms_sysv_vzeroupper): Likewise.
10025 (*call_rex64_ms_sysv): Likewise.
10026 (*call_value_vzeroupper): Likewise.
10027 (*call_value): Likewise.
10028 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
10029 (*call_value_rex64_ms_sysv): Likewise.
10030 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
10032 * config/i386/predicates.md (indirect_branch_operand): New.
10033 (call_insn_operand): Support x32.
10035 2011-07-20 Michael Eager <eager@eagercon.com>
10037 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
10039 2011-07-20 Richard Henderson <rth@redhat.com>
10041 * cfg.c (dump_bb_info): Dump basic_block->flags.
10042 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
10044 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
10046 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10047 of DImode hard registers in index.
10048 (ix86_legitimate_address_p): Allow subregs of base and index to span
10049 more than a word. Assert that subregs of base and index satisfy
10050 register_no_elim_operand predicates. Reject addresses where
10051 base and index have different modes.
10053 2011-07-20 Robert Millan <rmh@gnu.org>
10055 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
10057 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10059 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
10060 removing now-unnecessary assignment.
10062 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10064 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
10065 memory address space to the type's address space.
10067 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
10071 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
10072 and expand appropriately if there is a CONST_INT in operand2.
10073 (usmulqihi3): New insn.
10074 (*sumulqihi3): New insn.
10075 (*osmulqihi3): New insn.
10076 (*oumulqihi3): New insn.
10077 (*muluqihi3.uconst): New insn_and_split.
10078 (*muluqihi3.sconst): New insn_and_split.
10079 (*mulsqihi3.sconst): New insn_and_split.
10080 (*mulsqihi3.uconst): New insn_and_split.
10081 (*mulsqihi3.oconst): New insn_and_split.
10082 (*ashifthi3.signx.const): New insn_and_split.
10083 (*ashifthi3.signx.const7): New insn_and_split.
10084 (*ashifthi3.zerox.const): New insn_and_split.
10085 (mulsqihi3): New insn.
10086 (muluqihi3): New insn.
10087 (muloqihi3): New insn.
10088 * config/avr/predicates.md (const_2_to_7_operand): New.
10089 (const_2_to_6_operand): New.
10094 (register_or_s9_operand): New.
10096 2011-07-20 Kai Tietz <ktietz@redhat.com>
10098 * builtins.c (fold_builtin_expect): See through the cast
10099 from truthvalue_type_node to long.
10101 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10103 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
10104 where we can use them from the standard and altivec instruction
10105 sets, instead of always using the 3 operand VSX forms that require
10106 the destination to overlap one of the inputs.
10108 (vsx_fnma*): Ditto.
10109 (vsx_fnms*): Ditto.
10111 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
10113 (fmsdf4_fpr): Ditto.
10114 (nfmadf4_fpr): Ditto.
10115 (nfmsdf4_fpr): Ditto.
10117 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
10119 * genrecog.c (make_insn_sequence): Correct position numbering
10120 when filtering out match_scratch and match_dup.
10122 2011-07-20 Richard Guenther <rguenther@suse.de>
10124 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
10125 against already removed statements.
10126 (forward_propagate_into_comparison): Remove dead defining stmts.
10127 (forward_propagate_into_gimple_cond): Likewise.
10128 (forward_propagate_into_cond): Simplify.
10129 (ssa_forward_propagate_and_combine): Handle changed cfg from
10130 forward_propagate_into_comparison.
10131 * tree-ssa-phiopt.c (conditional_replacement): Use proper
10132 locations for newly built statements.
10134 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
10136 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
10138 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10140 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
10141 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
10143 2011-07-20 Richard Guenther <rguenther@suse.de>
10145 PR middle-end/18908
10146 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
10147 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
10148 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
10150 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
10152 * config/frv/frv.c (frv_register_move_cost): Define explicitly
10153 costs for subclasses of GR_REGS.
10155 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
10158 * config/i386/predicates.md (no_seg_addres_operand): No more special.
10159 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10160 of DImode hard registers in base.
10161 (ix86_legitimate_address_p): Allow SImode and DImode base and index
10164 2011-07-20 Richard Guenther <rguenther@suse.de>
10166 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
10167 (unify_nodes): Deal with that.
10168 (solve_graph): Likewise.
10170 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
10172 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
10173 canonicalize left operand from ZERO_EXTEND to AND.
10175 2011-07-20 Anatoly Sokolov <aesok@post.ru>
10177 * target.def (class_max_nregs): New hook.
10178 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
10179 * doc/tm.texi: Regenerate.
10180 * targhooks.c (default_class_max_nregs): New function.
10181 * targhooks.h (default_class_max_nregs): Declare.
10182 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
10183 x_ira_reg_class_min_nregs arrays to unsigned char.
10184 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
10185 hook instead of CLASS_MAX_NREGS macro.
10186 * reginfo.c (restore_register_info): Ditto.
10187 * ira-conflicts.c (process_regs_for_copy): Use
10188 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
10189 Change type rclass and aclass vars to reg_class_t.
10190 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
10191 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
10193 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
10194 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
10196 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
10197 * config/i386/i386.c (ix86_class_max_nregs): New function.
10198 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
10199 instead of CLASS_MAX_NREGS macro.
10200 (TARGET_CLASS_MAX_NREGS): Define.
10201 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
10202 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
10203 * config/avr/avr.c (class_max_nregs): Remove function.
10204 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
10205 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
10206 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
10207 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
10208 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
10209 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
10210 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
10211 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
10212 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
10213 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
10214 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
10215 * config/score/score.h (CLASS_MAX_NREGS): Remove.
10216 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
10217 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
10218 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
10220 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
10222 * cif-code.def (OVERWRITABLE): Fix typo and move around.
10223 (TARGET_OPTIMIZATION_MISMATCH): Delete.
10224 (EH_PERSONALITY): Fix typo.
10225 (NON_CALL_EXCEPTIONS): Fix message.
10226 (OPTIMIZATION_MISMATCH): Adjust message.
10227 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
10229 2011-07-19 Ian Lance Taylor <iant@google.com>
10231 * doc/install.texi (Configuration): Document
10232 --enable-build-poststage1-with-cxx.
10234 2011-07-19 Robert Millan <rmh@gnu.org>
10236 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
10237 (GLIBC_DYNAMIC_LINKER): Remove.
10239 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
10240 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10241 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10242 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
10243 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
10244 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
10246 * config/mips/linux.h: Remove everything except for ...
10247 (GLIBC_DYNAMIC_LINKER): ... this macro.
10249 * config/mips/linux64.h: Remove everything except for ...
10250 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10251 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10252 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
10253 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
10254 (GNU_USER_LINK_EMULATIONN32): New macros.
10256 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
10257 Use the new headers.
10259 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10261 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
10262 Add offset_known_p and size_known_p fields.
10263 (MEM_OFFSET_KNOWN_P): Update accordingly.
10264 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
10265 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
10266 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
10267 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
10268 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
10269 (init_emit_regs): Likewise.
10271 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10273 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
10274 (MEM_OFFSET): Change from returning an rtx to returning a
10276 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
10277 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
10278 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10279 (clear_mem_offset): Declare.
10280 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
10281 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
10282 MEM_OFFSET to get a HOST_WIDE_INT offset.
10283 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
10284 (adjust_offset_for_component_ref): Take a bool "known_p"
10285 parameter and a HOST_WIDE_INT "offset" parameter.
10286 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
10287 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
10288 than an rtx. Use clear_mem_offset to clear the offset.
10289 * cfgcleanup.c (merge_memattrs): Likewise.
10290 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
10291 * function.c (assign_parm_find_stack_rtl): Likewise.
10292 (assign_parm_setup_stack): Likewise.
10293 * print-rtl.c (print_rtx): Likewise.
10294 * reload.c (find_reloads_subreg_address): Likewise.
10295 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10296 * var-tracking.c (INT_MEM_OFFSET): Likewise.
10297 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10298 (get_mem_align_offset): Likewise.
10299 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10300 (clear_mem_offset): New function.
10301 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
10302 offset rather than an rtx. Assume both the expressio and offset
10304 (r10k_needs_protection_p_1): Update accordingly, checking the
10305 expression and offset availability here instead.
10307 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10309 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
10310 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
10311 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
10312 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
10313 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10314 (clear_mem_size): Declare.
10315 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10316 (clear_mem_size): New function.
10317 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
10318 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
10319 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
10320 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
10322 (nonoverlapping_memrefs_p): Likewise.
10323 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
10324 (expand_builtin_init_trampoline): Likewise.
10325 * calls.c (compute_argument_addresses): Likewise.
10326 * cfgcleanup.c (merge_memattrs): Likewise.
10327 * dce.c (find_call_stack_args): Likewise.
10328 * dse.c (record_store, scan_insn): Likewise.
10329 * dwarf2out.c (dw_sra_loc_expr): Likewise.
10330 * expr.c (emit_block_move_hints): Likewise.
10331 * function.c (assign_parm_find_stack_rtl): Likewise.
10332 * print-rtl.c (print_rtx): Likewise.
10333 * reload.c (find_reloads_subreg_address): Likewise.
10334 * rtlanal.c (may_trap_p_1): Likewise.
10335 * var-tracking.c (track_expr_p): Likewise.
10336 * varasm.c (assemble_trampoline_template): Likewise.
10337 * config/arm/arm.c (arm_print_operand): Likewise.
10338 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
10339 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
10340 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
10341 (expand_constant_setmem_prologue): Likewise.
10342 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
10343 * config/rs6000/rs6000.c (expand_block_move): Likewise.
10344 (adjacent_mem_locations): Likewise.
10345 * config/s390/s390.c (s390_expand_setmem): Likewise.
10346 (s390_expand_insv): Likewise.
10347 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
10348 (*extendqi<mode>2_short_displ): Likewise.
10349 * config/sh/sh.c (expand_block_move): Likewise.
10350 * config/sh/sh.md (extv, extzv): Likewise.
10352 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10354 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
10355 (mem_attrs_htab_eq): ...here.
10356 (find_mem_attrs): Replace with...
10357 (set_mem_attrs): ...this function. Take a mem_attrs structure
10358 rather than individual fields.
10359 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10360 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10361 (set_mem_size, change_address, adjust_address_1, offset_address)
10362 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10363 Update accordingly.
10365 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
10367 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
10368 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
10369 Provide a dummy definition of MEM_ADDR_SPACE for generators.
10370 (target_rtl): Add x_mode_mem_attrs.
10371 (mode_mem_attrs): New macro.
10372 (get_mem_attrs): New function.
10373 * emit-rtl.c (get_mem_attrs): Rename to...
10374 (find_mem_attrs): ...this.
10375 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10376 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10377 (set_mem_size, change_address, adjust_address_1, offset_address)
10378 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10379 Update accordingly.
10380 (init_emit_regs): Initialize mode_mem_attrs.
10382 2011-07-19 Richard Guenther <rguenther@suse.de>
10384 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
10385 TRUTH_*_EXPR handling.
10386 * tree-ssa-operands.c (get_expr_operands): Likewise.
10387 * tree-ssa-pre.c (fully_constant_expression): Likewise.
10388 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
10390 (is_and_or_or): Likewise.
10391 (is_norm_cond_subset_of): Likewise.
10393 2011-07-19 Richard Guenther <rguenther@suse.de>
10395 * tree.h (fold_build_pointer_plus_loc): New helper function.
10396 (fold_build_pointer_plus_hwi_loc): Likewise.
10397 (fold_build_pointer_plus): Define.
10398 (fold_build_pointer_plus_hwi): Likewise.
10399 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
10400 (fold_builtin_memory_op): Likewise.
10401 (fold_builtin_stpcpy): Likewise.
10402 (fold_builtin_memchr): Likewise.
10403 (fold_builtin_strstr): Likewise.
10404 (fold_builtin_strchr): Likewise.
10405 (fold_builtin_strrchr): Likewise.
10406 (fold_builtin_strpbrk): Likewise.
10407 (fold_builtin_strcat): Likewise.
10408 (expand_builtin_memory_chk): Likewise.
10409 (fold_builtin_memory_chk): Likewise.
10410 * c-typeck.c (build_unary_op): Likewise.
10411 * cgraphunit.c (thunk_adjust): Likewise.
10412 * fold-const.c (build_range_check): Likewise.
10413 (fold_binary_loc): Likewise.
10414 * omp-low.c (extract_omp_for_data): Likewise.
10415 (expand_omp_for_generic): Likewise.
10416 (expand_omp_for_static_nochunk): Likewise.
10417 (expand_omp_for_static_chunk): Likewise.
10418 * tree-affine.c (add_elt_to_tree): Likewise.
10419 * tree-data-ref.c (split_constant_offset_1): Likewise.
10420 * tree-loop-distribution.c (generate_memset_zero): Likewise.
10421 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
10422 * tree-predcom.c (ref_at_iteration): Likewise.
10423 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10424 (add_to_parts): Likewise.
10425 (create_mem_ref): Likewise.
10426 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10427 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
10428 (number_of_iterations_le): Likewise.
10429 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
10430 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
10431 (vect_create_addr_base_for_vector_ref): Likewise.
10432 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
10433 (vect_create_cond_for_alias_checks): Likewise.
10434 * tree-vrp.c (extract_range_from_assert): Likewise.
10435 * config/alpha/alpha.c (alpha_va_start): Likewise.
10436 (alpha_gimplify_va_arg_1): Likewise.
10437 * config/i386/i386.c (ix86_va_start): Likewise.
10438 (ix86_gimplify_va_arg): Likewise.
10439 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10440 * config/mep/mep.c (mep_expand_va_start): Likewise.
10441 (mep_gimplify_va_arg_expr): Likewise.
10442 * config/mips/mips.c (mips_va_start): Likewise.
10443 (mips_gimplify_va_arg_expr): Likewise.
10444 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10445 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
10446 (rs6000_gimplify_va_arg): Likewise.
10447 * config/s390/s390.c (s390_va_start): Likewise.
10448 (s390_gimplify_va_arg): Likewise.
10449 * config/sh/sh.c (sh_va_start): Likewise.
10450 (sh_gimplify_va_arg_expr): Likewise.
10451 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
10452 * config/spu/spu.c (spu_va_start): Likewise.
10453 (spu_gimplify_va_arg_expr): Likewise.
10454 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10456 (xstormy16_gimplify_va_arg_expr): Likewise.
10457 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
10458 (xtensa_gimplify_va_arg_expr): Likewise.
10460 2011-07-19 Richard Guenther <rguenther@suse.de>
10462 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
10463 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
10466 PR middle-end/18908
10467 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
10468 result of BIT_*_EXPR to bitfield precision.
10470 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
10472 PR tree-optimization/49742
10473 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
10474 as a potential write.
10476 2011-07-19 Richard Guenther <rguenther@suse.de>
10478 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
10479 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
10480 (forward_propagate_comparison): Simplify, remove obsolete code.
10482 2011-07-19 Richard Guenther <rguenther@suse.de>
10484 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
10485 BIT_XOR_EXPR, same as the RTL expander does.
10486 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
10487 (verify_gimple_assign_unary): Likewise.
10488 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
10489 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
10490 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
10492 2011-07-19 Jakub Jelinek <jakub@redhat.com>
10494 PR tree-optimization/49768
10495 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
10496 if offset is smaller than bitoffset, but offset+size is bigger
10499 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
10501 PR tree-optimization/49771
10502 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
10503 zero step, set segment length to the size of the data-ref's type.
10505 2011-07-18 Martin Jambor <mjambor@suse.cz>
10507 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
10509 (ipcp_values_pool): Declare.
10510 (ipcp_sources_pool): Likewise.
10511 (ipcp_lattice): Changed to forward declaration.
10512 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
10513 cannot_devirtualize.
10514 (ipa_node_params): New fields descriptors, lattices, known_vals,
10515 clone_for_all_contexts and node dead, removed fields params and
10517 (ipa_set_param_count): Removed.
10518 (ipa_get_param_count): Made to work with descriptors vector.
10519 (ipa_get_param): Updated.
10520 (ipa_param_cannot_devirtualize_p): Removed.
10521 (ipa_param_types_vec_empty): Likewise.
10522 (ipa_set_param_used): New function.
10523 (ipa_get_param_used): Updated to use descriptors vector.
10524 (ipa_func_list): Removed.
10525 (ipa_init_func_list): Removed declaration.
10526 (ipa_push_func_to_list_1): Likewise.
10527 (ipa_pop_func_from_list): Likewise.
10528 (ipa_push_func_to_list): Removed.
10529 (ipa_lattice_from_jfunc): Remove declaration.
10530 (ipa_get_jf_pass_through_result): Declare.
10531 (ipa_get_jf_ancestor_result): Likewise.
10532 (ipa_value_from_jfunc): Likewise.
10533 (ipa_get_lattice): Update.
10534 (ipa_lat_is_single_const): New function.
10535 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
10536 (ipa_init_func_list): Likewise.
10537 (ipa_pop_func_from_list): Likewise.
10538 (ipa_get_param_decl_index): Fix coding style.
10539 (count_formal_params): Removed.
10540 (count_formal_params_1): Renamed to count_formal_params.
10541 (ipa_populate_param_decls): Update to use descriptors vector.
10542 (ipa_initialize_node_params): Likewise.
10543 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
10544 (ipa_analyze_params_uses): Likewise.
10545 (ipa_free_node_params_substructures): Likewise and free also lattices
10547 (duplicate_array): Removed.
10548 (ipa_edge_duplication_hook): Add the new edge to the list of edge
10550 (ipa_node_duplication_hook): Update to use new lattices.
10551 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
10552 (ipa_free_all_structures_after_iinln): Likewise.
10553 (ipa_write_node_info): Update to use new lattices.
10554 (ipa_read_node_info): Likewise.
10555 (ipa_get_jf_pass_through_result): New function.
10556 (ipa_get_jf_ancestor_result): Likewise.
10557 (ipa_value_from_jfunc): Likewise.
10558 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
10559 * ipa-cp.c: Reimplemented.
10560 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
10561 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
10562 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
10563 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
10564 * doc/invoke.texi (devirt-type-list-size): Removed description.
10565 (ipa-cp-value-list-size): Added description.
10567 2011-07-18 Richard Henderson <rth@redhat.com>
10569 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
10570 before calling create_basic_block.
10572 2011-07-18 Jakub Jelinek <jakub@redhat.com>
10574 PR middle-end/49675
10575 * tree.c (build_common_builtin_nodes): Register
10576 __builtin_return_address, __cyg_profile_func_enter
10577 and __cyg_profile_func_exit.
10579 2011-07-18 Richard Henderson <rth@redhat.com>
10581 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
10582 (add_labels_and_missing_jumps): ... here.
10583 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
10585 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
10588 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10589 of DImode hard registers in PLUS address chains.
10591 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10594 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
10595 (alpha*-*-freebsd*): Likewise.
10596 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10597 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10598 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
10599 crtprec80.o, crtfastmath.o to extra_parts for all targets.
10600 (ia64*-*-elf*): Remove extra_parts.
10601 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
10602 (sparc64-*-linux*): Likewise.
10603 (sparc64-*-freebsd*): Likewise.
10606 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
10607 (ia64*-*-linux*): Likewise.
10608 (mips64*-*-linux*): Likewise.
10609 (mips*-*-linux*): Likewise.
10611 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
10613 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
10615 2011-07-18 Richard Guenther <rguenther@suse.de>
10617 * gimplify.c (gimplify_expr): Use input_location, not saved_location
10618 when building new trees.
10620 2011-07-18 Richard Guenther <rguenther@suse.de>
10622 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
10623 expansion result to bitfield precision if required.
10625 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10627 * config.gcc (i[3456x]86-*-netware*): Remove.
10629 * gthr-nks.h: Remove.
10630 * configure.ac (enable_threads): Remove nks.
10631 * configure: Regenerate.
10633 * config/i386/i386.c (ix86_encode_section_info): Remove netware
10635 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
10636 <netware.h> reference.
10638 * config/i386/netware-libgcc.c,
10639 gcc/config/i386/netware-libgcc.def,
10640 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
10641 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
10642 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
10643 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
10645 * doc/extend.texi (Function Attributes,
10646 callee_pop_aggregate_return): Remove i?86-netware reference.
10647 * doc/install.texi (Configuration, --enable-threads): Remove nks.
10649 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10653 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10655 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
10658 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
10660 PR middle-end/49732
10661 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
10663 2011-07-16 Matthias Klose <doko@ubuntu.com>
10665 * doc/install.texi: Document --enable-static-libjava.
10667 2011-07-15 Richard Henderson <rth@redhat.com>
10669 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10670 Replace all three arguments by returning a VEC of edges.
10671 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
10672 pointers and counts.
10673 (fix_edges_for_rarely_executed_code): Merge ...
10674 (rest_of_handle_partition_blocks): ... into...
10675 (partition_hot_cold_basic_blocks): ... here. Return todo items if
10676 any work was performed.
10677 (pass_partition_blocks): Clear todo_flags_finish.
10679 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
10680 Jakub Jelinek <jakub@redhat.com>
10681 Jonathan Wakely <jwakely.gcc@gmail.com>
10684 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
10685 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
10687 2011-07-15 Jason Merrill <jason@redhat.com>
10690 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
10691 rather than --tool_opts.
10693 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
10695 * doc/plugins.texi (Building GCC plugins): gengtype needs its
10696 corresponding gtype.state.
10698 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10701 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
10703 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
10706 * doc/md.texi (Standard Names): Document window_save.
10707 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
10708 expand_debug_expr and expand_debug_source_expr. If the target has
10709 a window_save instruction, adjust the ENTRY_VALUE_EXP.
10710 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
10711 SSA_NAME_VAR is a parameter.
10712 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
10713 * var-tracking.c (parm_reg_t): New type and associated vector type.
10714 (windowed_parm_regs): New variable.
10715 (adjust_insn): If the target has a window_save instruction and this
10716 is the instruction, make its effect on parameter registers explicit.
10717 (next_non_note_insn_var_location): New function.
10718 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
10719 (vt_add_function_parameter): If the target has a window_save insn,
10720 adjust the incoming RTL and record that in windowed_parm_regs.
10721 (vt_finalize): Free windowed_parm_regs.
10723 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
10725 * doc/invoke.texi (C6X Options): New section.
10726 * doc/md.texi (TI C6X family): New section.
10727 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
10729 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
10730 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
10731 Provide C6X definitions.
10732 * config/c6x/c6x.md: New file.
10733 * config/c6x/constraints.md: New file.
10734 * config/c6x/predicates.md: New file.
10735 * config/c6x/c6x-sched.md.in: New file.
10736 * config/c6x/c6x-sched.md: New file.
10737 * config/c6x/gensched.sh: New file.
10738 * config/c6x/c6x-mult.md.in: New file.
10739 * config/c6x/genmult.sh: New file.
10740 * config/c6x/c6x-mult.md: New file.
10741 * config/c6x/sync.md: New file.
10742 * config/c6x/c6x-protos.h: New file.
10743 * config/c6x/sfp-machine.h: New file.
10744 * config/c6x/c6x.c: New file.
10745 * config/c6x/c6x.h: New file.
10746 * config/c6x/crti.s: New file.
10747 * config/c6x/crtn.s: New file.
10748 * config/c6x/lib1funcs.asm: New file.
10749 * config/c6x/c6x-modes.def: New file.
10750 * config/c6x/genopt.sh: New file.
10751 * config/c6x/c6x.opt: New file.
10752 * config/c6x/c6x-tables.opt: New file.
10753 * config/c6x/c6x-opts.h: New file.
10754 * config/c6x/c6x-isas.def: New file.
10755 * config/c6x/elf.h: New file.
10756 * config/c6x/elf-common.h: New file.
10757 * config/c6x/uclinux-elf.h: New file.
10758 * config/c6x/t-c6x: New file.
10759 * config/c6x/t-c6x-elf: New file.
10760 * config/c6x/t-c6x-uclinux: New file.
10761 * config/c6x/t-c6x-softfp: New file.
10762 * config/c6x/gtd.c: New file.
10763 * config/c6x/gtf.c: New file.
10764 * config/c6x/ltd.c: New file.
10765 * config/c6x/ltf.c: New file.
10766 * config/c6x/ged.c: New file.
10767 * config/c6x/gef.c: New file.
10768 * config/c6x/led.c: New file.
10769 * config/c6x/lef.c: New file.
10770 * config/c6x/eqd.c: New file.
10771 * config/c6x/eqf.c: New file.
10772 * config/c6x/libgcc-c6xeabi.ver: New file.
10775 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
10776 PR rtl-optimization/11320
10777 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10778 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10779 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10780 current_sched_info->compute_jump_reg_dependencies. Record which
10781 registers are used and which registers are set by the jump.
10782 Clear deps->reg_conditional_sets after a barrier.
10783 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10784 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10785 (init_deps): Initialize reg_conditional_sets.
10786 (free_deps): Clear reg_conditional_sets.
10787 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10788 Mark registers live on entry of the fallthrough block and conditionally
10789 set as set by the jump. Mark registers live on entry of non-fallthrough
10790 blocks as used by the jump.
10791 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10792 Mark new parameters as unused.
10794 2011-07-14 Andrew Pinski <pinskia@gmail.com>
10797 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
10798 Use fold_build2_loc instead of build2.
10799 Use the correct type for the new tree.
10801 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10803 PR rtl-optimization/11320
10804 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
10805 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
10807 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
10810 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
10812 (*rotw<mode>): Use const_int_operand for operand2.
10813 Use match_scatch for operand3.
10814 (*rotb<mode>): Ditto
10815 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
10817 2011-07-14 Richard Guenther <rguenther@suse.de>
10819 PR tree-optimization/49651
10820 * tree-ssa-structalias.c (get_constraint_for_1): Properly
10821 handle dereferences with subvariables.
10823 2011-07-14 Richard Guenther <rguenther@suse.de>
10825 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
10826 (fold_stmt_1): Do it here directly on gimple and as a first thing.
10828 2011-07-14 Richard Guenther <rguenther@suse.de>
10830 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
10831 not bool_var when folding bool_var != 1 or bool_var == 0.
10833 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10835 * haifa-sched.c (schedule_insns): Remove outdated comment.
10836 (schedule_block): When computing a known value for TODO_SPEC,
10837 just set it rather than using logical operations.
10838 (try_ready): Likewise. Use a local variable rather than a
10839 pointer to TODO_SPEC. Reorder an if statement to move the
10840 easy case to the then block.
10841 * sched-deps.c (dep_spec_p): New static function.
10842 (update_dep): Use it to decide whether to call
10843 change_spec_dep_to_hard.
10844 (get_back_and_forw_lists): Use it.
10845 (sd_resolve_dep): Likewise.
10846 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
10847 (haifa_note_mem_dep): Likewise.
10848 (check_dep): Likewise.
10849 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
10850 (sched_free_deps): Free in two passes.
10852 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
10854 PR middle-end/49736
10855 * expr.c (all_zeros_p): Undo bogus part of last change.
10857 2011-07-14 Matthias Klose <doko@ubuntu.com>
10859 * doc/extend.texi (optimize attribute): Fix typo.
10861 2011-07-14 Richard Guenther <rguenther@suse.de>
10863 * gimplify.c (gimplify_expr): Only do required conversions.
10865 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
10868 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
10869 i.e. use default_elf_select_section.
10870 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
10871 (READONLY_DATA_SECTION_ASM_OP): Remove.
10872 (TARGET_ASM_NAMED_SECTION): Move from here...
10873 * config/avr/avr.c: ...to here.
10874 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
10875 (avr_asm_named_section): Make static.
10877 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10880 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
10881 and crtfastmath.o for Linux/x86.
10883 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
10885 * haifa-sched.c: Include "hashtab.h"
10886 (sched_no_dce): New global variable.
10887 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
10888 SHADOW_P): New macros.
10889 (last_clock_var, cycle_issued_insns): Move declarations.
10890 (must_backtrack): New static variable.
10891 (struct delay_pair): New structure.
10892 (delay_htab, delay_htab_i2): New static variables.
10893 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10894 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10896 (dep_cost_1): If delay pairs exist, try to look up the insns and
10897 use the correct pair delay if we find them.
10898 (rank-for_schedule): Tweak priority for insns that must be scheduled
10899 soon to avoid backtracking.
10900 (queue_insn): Detect conditions which force backtracking.
10901 (ready_add): Likewise.
10902 (struct sched_block_state): Add member shadows_only_p.
10903 (struct haifa_save_data): New structure.
10904 (backtrack_queue): New static variable.
10905 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10906 unschedule_insns_until, restore_last_backtrack_point,
10907 free_topmost_backtrack_point, free_backtrack_queue,
10908 estimate_insn_tick, estimate_shadow_tick): New functions.
10909 (prune_ready_list): New arg shadows_only_p. All callers changed.
10910 If true, remove everything that isn't SHADOW_P. Look up delay
10911 pairs and estimate ticks to avoid scheduling the first insn too early.
10912 (verify_shadows): New function.
10913 (schedule_block): Add machinery to enable backtracking.
10914 (sched_init): Take sched_no_dce into account when setting
10916 (free_delay_pairs): New function.
10917 (init_h_i_d): Initialize INSN_EXACT_TICK.
10918 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10919 * sched-deps.c (sd_unresolve_dep): New function.
10920 * sched-int. (struct haifa_sched_info): New fields save_state
10922 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10923 feeds_backtrack_insn and shadow_p.
10924 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10925 (sched_no_dce): Declare variable.
10926 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10927 sd_unresolve_dep): Declare functions.
10928 * modulo-sched.c (sms_sched_info): Clear the two new fields.
10929 * sched-rgn.c (rgn_const_sched_info): Likewise.
10930 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10931 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10932 (ebb_sched_info): Add them for the two new fields.
10933 (add_deps_for_risky_insns): Call add_delay_dependencies.
10935 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10937 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10939 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10940 (rs6000_call_indirect_aix): Ditto.
10941 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10942 (call_indirect_aix<ptrsize>_internal): Ditto.
10943 (call_indirect_aix<ptrsize>_nor11): Ditto.
10944 (call_indirect_aix<ptrsize>_internal2): Ditto.
10945 (call_value_indirect_aix<ptrsize>): Ditto.
10946 (call_value_indirect_aix<ptrsize>_internal): Ditto.
10947 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10948 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10949 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10951 2011-07-13 Jason Merrill <jason@redhat.com>
10953 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10955 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10957 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10958 * config/spu/spu.md ("clrsb<mode>2"): New expander.
10960 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
10962 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10963 * configure: Regenerate.
10965 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10967 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10968 (asm_file_start): Remove.
10969 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10970 free_bb_for_insn around code that modifies insns before
10971 restarting df analysis.
10973 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10976 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
10977 (LINK_SPEC): ... here.
10979 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
10981 * haifa-sched.c (struct sched_block_state): New.
10982 (schedule_block): Move some local variables into such a structure.
10984 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10986 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
10987 * config/i386/t-crtpc: Remove.
10988 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10989 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
10991 (x86_64-*-darwin*): Likewise.
10992 (i[34567]86-*-linux*): Likewise.
10993 (x86_64-*-linux*): Likewise.
10995 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
10996 Handle -mpc32, -mpc64, -mpc80.
10998 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11000 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
11001 * config/alpha/t-crtfm: Remove.
11002 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
11003 * config/i386/t-crtfm: Remove.
11004 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
11005 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
11006 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
11007 * config/sparc/t-crtfm: Remove.
11009 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
11010 (alpha*-*-freebsd*): Likewise.
11011 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
11012 (x86_64-*-darwin*): Likewise.
11013 (i[34567]86-*-linux*): Likewise.
11014 (x86_64-*-linux*): Likewise.
11015 (x86_64-*-mingw*): Likewise.
11016 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
11017 (ia64*-*-freebsd*): Likewise.
11018 (ia64*-*-linux*): Likewise.
11019 (mips64*-*-linux*): Likewise.
11020 (mips*-*-linux*): Likewise.
11021 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
11022 (sparc64-*-linux*): Likewise.
11023 (sparc64-*-freebsd*): Likewise.
11025 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11027 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
11028 * config/darwin-crt3.c: Move to ../libgcc/config.
11029 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
11030 ($(T)crt3$(objext)): Remove.
11031 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
11032 ($(T)crt2$(objext)): Remove.
11033 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
11034 (powerpc64-*-darwin*): Likewise.
11036 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
11038 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
11040 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
11041 (addsi_1_zext): This.
11043 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
11045 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
11046 * doc/tm.texi: Regenerate.
11047 * target.def (mergeable_rodata_prefix): New defhookpod.
11048 * varasm.c (mergeable_string_section, mergeable_constant_section):
11049 Use it. Allocate name with alloca.
11051 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
11053 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
11055 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
11057 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
11060 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
11062 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
11063 (count_type_elements): Delete.
11064 (complete_ctor_at_level_p): Declare.
11065 * expr.c (flexible_array_member_p): New function, split out from...
11066 (count_type_elements): ...here. Make static. Replace allow_flexarr
11067 parameter with for_ctor_p. When for_ctor_p is true, return the
11068 number of elements that should appear in the top-level constructor,
11069 otherwise return an estimate of the number of scalars.
11070 (categorize_ctor_elements): Replace p_must_clear with p_complete.
11071 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
11072 (complete_ctor_at_level_p): New function, borrowing union logic
11073 from old categorize_ctor_elements_1.
11074 (mostly_zeros_p): Return true if the constructor is not complete.
11075 (all_zeros_p): Update call to categorize_ctor_elements.
11076 * gimplify.c (gimplify_init_constructor): Update call to
11077 categorize_ctor_elements. Don't call count_type_elements.
11078 Unconditionally prevent clearing for variable-sized types,
11079 otherwise rely on categorize_ctor_elements to detect
11080 incomplete initializers.
11082 2011-07-13 Richard Guenther <rguenther@suse.de>
11084 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
11085 the final type is integral.
11087 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
11089 * sched-int.h (struct _dep): Add member cost.
11090 (DEP_COST, UNKNOWN_DEP_COST): New macros.
11091 * sched-deps.c (init_dep_1): Initialize DEP_COST.
11092 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
11093 (sched_change_pattern): Reset it for dependent insns.
11095 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11097 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
11098 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
11099 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
11100 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
11101 (CRT0_S, MCRT0_S): Remove.
11102 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
11105 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
11107 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
11109 * cse.c (insert_with_costs): Put semi-colon after empty loop body
11111 * emit-rtl.c (push_to_sequence): Likewise.
11112 * haifa-sched.c (max_issue): Likewise.
11113 * matrix-reorg.c (add_allocation_site): Likewise.
11114 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
11115 * reload.c (alternative_allows_const_pool_ref): Likewise.
11116 * sched-rgn.c (rgn_add_block): Likewise.
11117 (rgn_fix_recovery_cfg): Likewise.
11118 * tree.c (attribute_list_contained): Likewise.
11120 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
11122 * config/i386/i386.c: Tidy processor feature bitmasks.
11123 (m_P4_NOCONA): New.
11125 2011-07-12 Andrew Pinski <pinskia@gmail.com>
11128 * cprop.c (find_implicit_sets): Correct the condition.
11130 2011-07-12 Richard Henderson <rth@redhat.com>
11133 * dwarf2out.h (dwarf_frame_regnum): Remove.
11134 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
11135 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
11136 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
11137 (execute_dwarf2_frame): Initialize them.
11138 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
11139 users of the macros with the variables.
11140 (expand_builtin_dwarf_sp_column): Revert last change.
11141 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
11142 result of DWARF_FRAME_REGNUM into a local variable.
11144 2011-07-12 Richard Henderson <rth@redhat.com>
11147 * config/i386/i386.c (x86_output_mi_thunk): Use
11148 machopic_indirect_call_target instead of machopic_indirection_name
11151 2011-07-12 Laurent GUERBY <laurent@guerby.net>
11152 Eric Botcazou <ebotcazou@adacore.com>
11154 * prefix.h: Wrap up in extern "C" block.
11156 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
11158 AMD bdver2 Enablement
11159 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
11160 (case ${target}): Add bdver2.
11161 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11162 -march=native recognize bdver2 processors.
11163 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11164 bdver2 def_and_undef
11165 * config/i386/i386.c (struct processor_costs bdver2_cost): New
11167 (m_BDVER2): New definition.
11168 (m_AMD_MULTIPLE): Includes m_BDVER2.
11169 (initial_ix86_tune_features): Add bdver2 tuning.
11170 (processor_target_table): Add bdver2 entry.
11171 (static const char *const cpu_names): Add bdver2 entry.
11172 (ix86_option_override_internal): Add bdver2 instruction sets.
11173 (ix86_issue_rate): Add bdver2.
11174 (ix86_adjust_cost): Add bdver2.
11175 (has_dispatch): Add bdver2.
11176 * config/i386/i386.h (TARGET_BDVER2): New definition.
11177 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
11178 (enum processor_type): Add PROCESSOR_BDVER2.
11179 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
11180 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
11183 2011-07-12 Richard Henderson <rth@redhat.com>
11186 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
11187 destination address in memory on some paths.
11189 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
11191 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
11192 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
11193 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
11194 * function.c (locate_and_pad_parm): Take it into account.
11195 * target.def (function_arg_round_boundary): New hook.
11196 * targhooks.c (default_function_arg_round_boundary): New function.
11197 * targhooks.h (default_function_arg_round_boundary): Declare.
11198 * doc/tm.texi: Regenerate.
11200 2011-07-12 Richard Guenther <rguenther@suse.de>
11202 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
11203 Do not perform no-op changes.
11205 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
11207 * config/arm/predicates.md (neon_struct_operand): Make a normal
11209 (neon_struct_or_register_operand): New predicate.
11210 * config/arm/neon.md (movmisalign<mode>): Replace predicates
11211 with neon_struct_or_register_operand.
11212 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
11213 neon_struct_operand instead of memory_operand.
11215 2011-07-12 Martin Jambor <mjambor@suse.cz>
11217 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
11218 * cgraph.c (cgraph_get_node_or_alias): Removed.
11219 (change_decl_assembler_name): Changed all calls to
11220 cgraph_get_node_or_alias to a call to cgraph_get_node.
11221 (cgraph_make_decl_local): Likewise.
11222 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
11223 * varasm.c (default_binds_local_p_1): Likewise.
11224 (decl_binds_to_current_def_p): Likewise.
11226 2011-07-12 Jakub Jelinek <jakub@redhat.com>
11228 PR tree-optimization/49712
11229 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
11231 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
11233 * genautomata.c (add_arc): Return void. All callers changed.
11234 (make_automaton): Remove dead code.
11236 2011-07-11 Richard Henderson <rth@redhat.com>
11238 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
11239 (DW_FRAME_POINTER_REGNUM): New.
11240 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
11241 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
11243 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
11244 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
11245 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
11247 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
11248 * dwarf2out.h (dwarf_frame_regnum): New.
11249 (struct cfa_loc): Document the domain of the reg member.
11251 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
11253 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
11254 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
11256 2011-07-11 Jakub Jelinek <jakub@redhat.com>
11259 * dwarf2out.c (int_shift_loc_descriptor): New function.
11260 (int_loc_descriptor): If shorter, emit i as
11261 (i >> shift), shift, DW_OP_shl for suitable shift value.
11262 Similarly, try to optimize large negative values using
11263 DW_OP_neg of a positive value if shorter.
11264 (size_of_int_shift_loc_descriptor): New function.
11265 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
11267 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
11268 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
11269 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
11271 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
11272 addend as added DW_OP_plus if it is shorter.
11274 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11276 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
11277 (DTORS_SECTION_ASM_OP): Define.
11279 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11281 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
11282 * config/t-dfprules: Move to ../libgcc/config.
11283 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
11284 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
11285 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
11286 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
11288 (i[34567]86-*-cygwin*): Likewise.
11289 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
11290 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
11291 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
11292 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
11293 D64PBIT_FUNCS, D128PBIT_FUNCS.
11295 2011-07-11 Richard Guenther <rguenther@suse.de>
11297 * tree-vrp.c (simplify_conversion_using_ranges): Manually
11298 translate the source value-range through the conversion chain.
11300 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
11302 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
11304 2011-07-11 Arthur Loiret <aloiret@debian.org>
11306 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
11307 a bi-arch compiler defaulting to 31-bit. In this case:
11308 (tmake_file): Add s390/t-linux64.
11309 * doc/install.texi: Add s390-linux to the list of targets supporting
11310 --enable-targets=all.
11312 2011-07-11 Arthur Loiret <aloiret@debian.org>
11313 Matthias Klose <doko@debian.org>
11315 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
11316 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
11317 (tm_file): Add mips/linux64.h.
11318 (tmake_file): Add mips/t-linux64.
11319 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
11320 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
11321 instead of hardcoded mabi=n32.
11322 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
11323 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
11326 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11328 * passes.c (init_optimization_passes): Add invariant motion pass
11329 after induction variable optimization.
11331 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
11334 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
11335 offsets 1..5 set cc0 in a usable way.
11337 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
11339 * tree.h (call_expr_arg): Remove.
11340 (call_expr_argp): Likewise.
11342 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
11344 * config/sparc/sparc.md (save_register_window_1): Rename to...
11345 (window_save): ...this.
11346 * config/sparc/sparc.c (emit_save_register_window): Rename to...
11347 (emit_window_save): ...this.
11348 (sparc_expand_prologue): Adjust to above renaming.
11350 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
11352 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
11355 2011-07-10 Richard Henderson <rth@redhat.com>
11357 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
11358 run final, instead of emitting text directly.
11360 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
11362 * config/i386/i386.c (ix86_option_override_internal): Turn on
11363 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
11364 small PIC models for TARGET_X32.
11366 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
11369 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
11373 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
11374 stray notes and debug insns by using prev_nonnote_nondebug_insn
11375 instead of PREV_INSN.
11377 2011-07-09 Richard Henderson <rth@redhat.com>
11379 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
11380 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
11381 * dwarf2out.c: ... here.
11382 (output_all_cfis): Remove.
11383 (dwarf2out_switch_text_section): Use output_cfis directly.
11384 (size_of_locs): Export.
11385 (output_loc_sequence, output_loc_sequence_raw): Export.
11386 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
11387 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
11388 output_cfa_loc_raw): Move to ...
11389 * dwarfcfi.c: ... here.
11390 * dwarf2out.h: Update decls.
11392 2011-07-09 Richard Henderson <rth@redhat.com>
11394 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
11395 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
11396 * dwarf2cfi.c: ... here.
11397 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
11398 (DWARF_ROUND, DWARF_CIE_ID): Remove.
11399 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
11400 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
11401 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
11403 2011-07-09 Richard Henderson <rth@redhat.com>
11405 * dwarf2cfi.c (cie_return_save): New.
11406 (queue_reg_save): Use compare_reg_or_pc.
11407 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
11408 (dwarf2out_frame_debug_expr): Likewise.
11409 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
11410 (initial_return_save): Likewise.
11411 (execute_dwarf2_frame): Save and restore initial return save from
11412 the cie to the fde.
11413 * config/mips/mips.c (mips_frame_set): Remove special case for
11414 DWARF_FRAME_RETURN_COLUMN.
11416 2011-07-09 Richard Henderson <rth@redhat.com>
11418 * dwarf2cfi.c (lookup_cfa): Remove.
11419 (execute_dwarf2_frame): Assert queues are empty on entry.
11420 Setup initial cfa directly, not via lookup_cfa.
11421 Don't clear args_size state here.
11423 2011-07-09 Richard Henderson <rth@redhat.com>
11425 * dwarf2cfi.c (add_cfi_vec): New.
11426 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
11427 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
11428 (execute_dwarf2_frame): Set add_cfi_vec.
11430 2011-07-09 Richard Henderson <rth@redhat.com>
11432 * defaults.h (ASM_COMMENT_START): Move here...
11433 * dwarf2asm.c: ... from here.
11434 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
11435 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
11436 * varasm.c: Likewise.
11438 2011-07-09 Richard Henderson <rth@redhat.com>
11441 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
11442 (create_cfi_notes): ... do it here instead.
11444 2011-07-09 Jakub Jelinek <jakub@redhat.com>
11447 * dwarf2out.c (size_of_int_loc_descriptor): New function.
11448 (address_of_int_loc_descriptor): Use it.
11449 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
11451 2011-07-09 Richard Henderson <rth@redhat.com>
11453 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
11454 (prologue, epilogue): New.
11455 (return, *rts): New.
11456 (blockage, setd, seti): New.
11457 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11458 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
11459 (pdp11_saved_regno): New.
11460 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
11461 generate rtl instead of text.
11462 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
11463 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
11464 * config/pdp11/pdp11-protos.h: Update.
11466 2011-07-09 Richard Henderson <rth@redhat.com>
11468 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
11469 try to insert an rtl prologue here.
11470 (rs6000_output_function_epilogue): Similarly.
11471 * config/rs6000/rs6000.md (prologue): Emit a barrier to
11472 satisfy !TARGET_SCHED_PROLOG.
11473 (epilogue, sibcall_epilogue): Likewise.
11475 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
11477 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
11478 (FP_REG_P): Delete.
11479 (IN_OR_GLOBAL_P): Likewise.
11481 2011-07-08 Jason Merrill <jason@redhat.com>
11484 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
11485 compound assignment.
11487 * cgraph.c (cgraph_add_to_same_comdat_group): New.
11488 * cgraph.h: Declare it.
11489 * ipa.c (function_and_variable_visibility): Make sure thunks
11490 have the right visibility.
11492 2011-07-08 Richard Henderson <rth@redhat.com>
11495 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
11496 any tablejump vector.
11499 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
11500 end of the prologue.
11502 2011-07-08 Jakub Jelinek <jakub@redhat.com>
11505 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
11506 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
11507 * config/rs6000/vector.md (vector_select_<mode>,
11508 vector_select_<mode>_uns): Change second operand of NE to
11509 CONST0_RTX (<MODE>mode) instead of const0_rtx.
11510 * config/rs6000/altivec.md (*altivec_vsel<mode>,
11511 *altivec_vsel<mode>_uns): Expect second operand of NE to be
11512 zero_constant of the corresponding vector mode.
11513 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
11516 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
11518 * graphite-dependences.c (build_alias_set_powerset): Remove
11519 continue from loop, add one more assert.
11521 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
11524 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
11525 In particular, allow 8-bit values in r28 and r29.
11526 (avr_hard_regno_scratch_ok): Disallow any register that might be
11527 part of the frame pointer.
11528 (avr_hard_regno_rename_ok): Same.
11529 (avr_legitimate_address_p): Don't allow SUBREGs.
11531 2011-07-08 Julian Brown <julian@codesourcery.com>
11533 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
11535 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
11536 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
11537 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
11538 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
11539 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
11540 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
11541 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
11542 registers in big-endian mode.
11544 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
11546 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
11547 in terms of another.
11548 (write_attr_value): Write a cast if necessary.
11550 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
11551 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
11552 (REG_WORDS_BIG_ENDIAN): Document.
11553 * doc/tm.texi: Regenerate.
11554 * reload.c (operands_match_p): Take it into account.
11555 (reload_adjust_reg_for_mode): Likewise.
11556 * rtlanal.c (subreg_get_info): Likewise.
11558 2011-07-08 Richard Guenther <rguenther@suse.de>
11560 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
11563 2011-07-08 Kai Tietz <ktietz@redhat.com>
11565 * fold-const.c (fold_truth_andor): Factored out truth_andor
11566 label from fold_binary as function.
11567 (fold_binary_loc): Replace truth_andor lable
11568 by function fold_truth_andor.
11570 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
11572 PR middle-end/49519
11573 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
11574 check if address is stored in register. If so - give up.
11575 (check_sibcall_argument_overlap_1): Do not perform check of
11576 overlapping when it is call to address.
11578 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
11580 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
11583 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
11585 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
11586 GET_MODE_BITSIZE where appropriate.
11587 (widen_leading, expand_parity, expand_ctz, expand_ffs,
11588 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
11589 expand_float, expand_fix): Likewise.
11590 * expr.c (convert_move, convert_modes, expand_expr_real_2,
11591 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
11592 * stor-layout.c (get_mode_bounds): Likewise.
11593 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
11595 * convert.c (convert_to_integer): Likewise.
11596 * expmed.c (expand_shift_1): Likewise.
11598 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
11601 * optabs.c (expand_binop): Tighten conditions for doubleword
11603 (widen_bswap): Assert that mode bitsize and precision are the same.
11604 * stor-layout.c (get_best_mode): Skip modes that have lower
11605 precision than bitsize.
11606 * recog.c (simplify_while_replacing): Assert that bitsize and
11607 precision are the same.
11609 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11611 * Makefile.in (LIBGCOV): Remove.
11612 (libgcc.mvars): Remove LIBGCOV.
11613 * libgov.c: Move to ../libgcc.
11615 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11617 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
11619 2011-07-08 Martin Jambor <mjambor@suse.cz>
11621 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
11622 is too big for total scalarization.
11624 2011-07-07 Richard Henderson <rth@redhat.com>
11626 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
11627 (DBX_DEBUGGING_INFO): Undef.
11629 2011-07-07 Richard Henderson <rth@redhat.com>
11631 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
11632 Handle some opcodes specially for debugging.
11633 * print-rtl.c: Include dwarf2out.h
11634 (print_rtx): Handle NOTE_INSN_CFI.
11635 * Makefile.in (print-rtl.o): Update.
11637 2011-07-07 Richard Henderson <rth@redhat.com>
11639 * tree-pass.h (pass_dwarf2_frame): Declare.
11640 * passes.c (init_optimization_passes): Add it.
11641 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
11642 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
11643 make static, do not call add_cfis_to_fde.
11644 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
11645 dwarf2out_frame_init): Merge into...
11646 (execute_dwarf2_frame): ... here. New function.
11647 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
11648 saved_do_cfi_asm to a tri-state variable.
11649 (gate_dwarf2_frame, pass_dwarf2_frame): New.
11650 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
11651 if it has yet to be done. Don't call dwarf2cfi_function_init.
11652 * dwarf2out.h, debug.h: Update decls.
11653 * final.c (final_start_function): Don't call
11654 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
11655 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
11656 * toplev.c (lang_dependent_init): Likewise.
11658 2011-07-07 Richard Henderson <rth@redhat.com>
11660 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
11661 FDE_TABLE_INCREMENT): Replace with...
11662 (fde_vec): ... this, a new vector.
11663 (current_fde): Remove. Replace all users with cfun->fde.
11664 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
11665 (size_of_aranges, dwarf2out_finish): Likewise.
11666 (dwarf2out_alloc_current_fde): Break out from ...
11667 (dwarf2out_begin_prologue): ... here.
11668 (dwarf2out_frame_init): Remove.
11669 * dwarf2cfi.c: Update all users of current_fde.
11670 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
11671 * dwarf2out.h: Update decls.
11672 (dw_fde_node): Add fde_index member.
11673 * function.h (struct function): Add fde member.
11675 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11676 Richard Henderson <rth@redhat.com>
11678 * dwarf2cfi.c (add_cfi): Remove.
11679 (dwarf2out_cfi_label): Remove force argument. Only generate the
11681 (add_fde_cfi): Simplify the different code paths.
11682 (add_cie_cfi): New.
11683 (old_cfa, old_cfa_remember): New.
11684 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
11685 (last_reg_save_label): Remove.
11686 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
11687 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11688 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11689 dwarf2out_frame_debug_cfa_expression,
11690 dwarf2out_frame_debug_cfa_restore,
11691 dwarf2out_frame_debug_cfa_window_save,
11692 dwarf2out_frame_debug_expr): Remove label parameter.
11693 (cfi_label_required_p, add_cfis_to_fde): New.
11694 (dwarf2out_frame_debug_after_prologue): New.
11695 (dwarf2cfi_frame_init): Initialize old_cfa.
11696 (dwarf2out_frame_debug_restore_state): Likewise.
11697 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
11698 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
11699 * final.c (final_start_function): Call
11700 dwarf2out_frame_debug_after_prologue.
11702 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11703 Richard Henderson <rth@redhat.com>
11705 * dwarf2cfi.c (cfi_insn): New.
11706 (dwarf2out_cfi_label): Don't emit cfi label here.
11707 (add_fde_cfi): Create a NOTE_INSN_CFI.
11708 (dwarf2out_frame_debug): Setup cfi_insn.
11709 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
11710 (dwarf2out_cfi_begin_epilogue): Make static.
11711 (dwarf2out_frame_debug_restore_state): Make static.
11712 * dwarf2out.c (output_cfi_directive): Make static.
11713 (dwarf2out_emit_cfi): New.
11714 * dwarf2out.h: Update.
11715 * final.c (final): Remove CFI notes.
11716 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
11717 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
11718 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
11719 * insn-notes.def (NOTE_INSN_CFI): New.
11720 (NOTE_INSN_CFI_LABEL): New.
11721 * rtl.h (union rtunion_def): Add rt_cfi member.
11722 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
11724 2011-07-07 Richard Henderson <rth@redhat.com>
11726 * dwarf2cfi.c: New file.
11727 * Makefile.in (OBJS): Add it.
11728 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
11729 * gengtype.c (open_base_files): Include dwarf2out.h.
11730 * coretypes.h (enum var_init_status): Move from ...
11732 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
11733 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11734 expand_builtin_dwarf_sp_column, init_return_column_size,
11735 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
11736 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
11737 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
11738 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
11739 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
11740 compute_barrier_args_size, dwarf2out_args_size,
11741 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
11742 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
11743 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
11744 queue_reg_save, dwarf2out_flush_queued_reg_saves,
11745 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
11746 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11747 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11748 dwarf2out_frame_debug_cfa_expression,
11749 dwarf2out_frame_debug_cfa_restore,
11750 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
11751 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
11752 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
11753 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
11754 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
11755 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
11756 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
11757 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
11758 dw_loc_descr_node): Move to dwarf2out.h.
11759 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
11760 mem_loc_descriptor): Export.
11761 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
11762 (dwarf2out_frame_init): Extract CIE generation code to
11763 dwarf2cfi_frame_init.
11765 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
11768 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
11769 MASK_V8PLUS, remove commented out flag and reorder.
11771 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11774 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
11775 one non-complex and one complex argument, call c_save_expr on both
11778 2011-07-07 Martin Jambor <mjambor@suse.cz>
11780 PR middle-end/49495
11781 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
11782 (verify_cgraph_node): Some functinality moved to
11783 verify_edge_corresponds_to_fndecl, call it.
11785 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11787 * config.gcc (*local*): Remove.
11788 * doc/install-old.texi: Don't mention local configurations.
11790 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11793 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
11794 referencing debug insns that have been reset.
11795 (dead_debug_insert_before): Don't assert reg is non-NULL,
11796 instead return immediately if it is NULL.
11798 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11800 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
11802 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11804 * hw-doloop.c: New file.
11805 * hw-doloop.h: New file.
11806 * Makefile.in (OBJS): Add hw-doloop.o.
11807 (hw-doloop.o): New rule.
11808 ($(obj_out_file)): Add hw-doloop.h dependency.
11809 * config/bfin/bfin.c: Include "hw-doloop.h".
11810 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
11811 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
11812 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
11813 type changed to hwloop_info. Return bool, true if the loop was
11814 successfully optimized. Remove code that was moved to
11815 hw-doloop.c, and adjust other parts.
11816 (hwloop_fail): New static function, containing parts that used
11817 to be in bfin_optimize_loop.
11818 (bfin_discover_loop, bfin_discover_loops, free_loops,
11819 bfin_reorder_loops): Remove.
11820 (hwloop_pattern_reg): New static function.
11821 (bfin_doloop_hooks): New variable.
11822 (bfin_reorg_loops): Remove most code, call reorg_loops.
11823 * config/bfin/bfin.md (doloop_end splitter): Also enable if
11824 loop counter is a memory_operand.
11826 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
11828 * config.gcc: Support --with-multilib-list for x86 Linux targets.
11830 * configure.ac: Mention x86-64 for --with-multilib-list.
11831 * configure: Regenerated.
11833 * config/i386/gnu-user64.h (SPEC_64): Support x32.
11834 (SPEC_32): Likewise.
11835 (ASM_SPEC): Likewise.
11836 (LINK_SPEC): Likewise.
11837 (TARGET_THREAD_SSP_OFFSET): Likewise.
11838 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
11841 * config/i386/i386.h (TARGET_X32): New.
11842 (TARGET_LP64): New.
11843 (LONG_TYPE_SIZE): Likewise.
11844 (POINTER_SIZE): Likewise.
11845 (POINTERS_EXTEND_UNSIGNED): Likewise.
11846 (OPT_ARCH64): Support x32.
11847 (OPT_ARCH32): Likewise.
11849 * config/i386/i386.opt (mx32): New.
11851 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
11852 (GLIBC_DYNAMIC_LINKERX32): Likewise.
11853 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
11854 (GLIBC_DYNAMIC_LINKERX32): Likewise.
11856 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
11857 (BIONIC_DYNAMIC_LINKERX32): Likewise.
11858 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
11860 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
11862 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
11864 * doc/invoke.texi: Document -mx32.
11866 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
11868 * doc/invoke.texi (mwords-little-endian): Deprecate.
11869 * config/arm/arm.opt (mwords-little-endian): Likewise.
11870 * config/arm/arm.c (arm_option_override): Warn about the deprecation
11871 of -mwords-little-endian.
11873 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
11875 * reload1.c (choose_reload_regs): Use mode sizes to check whether
11876 an old reload register completely defines the required value.
11878 2011-07-07 Richard Guenther <rguenther@suse.de>
11880 * fold-const.c (fold_unary_loc): Do not strip sign-changes
11883 2011-07-07 Richard Guenther <rguenther@suse.de>
11885 * tree-vrp.c (simplify_conversion_using_ranges): New function.
11886 (simplify_stmt_using_ranges): Call it.
11888 2011-07-07 Kai Tietz <ktietz@redhat.com>
11890 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11891 (lookup_logical_inverted_value): Likewise.
11892 (simplify_bitwise_binary_1): Likewise.
11893 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11895 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11897 * gcc.c (%[Spec]): Don't document.
11898 (struct spec_list): Update comment.
11899 (do_spec_1): Don't handle %[Spec].
11900 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11902 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11904 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11905 default based on TARGET_ASM_NAMED_SECTION.
11906 * common/common-target.def (have_named_sections): Default to true.
11907 * common/config/default-common.c: Don't include tm.h.
11908 * common/config/picochip/picochip-common.c
11909 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11910 * common/config/m32c/m32c-common.c: Remove.
11911 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11912 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11913 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11914 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11915 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11916 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11917 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11919 2011-07-07 Jakub Jelinek <jakub@redhat.com>
11921 PR middle-end/49640
11922 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11923 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11925 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11927 PR libmudflap/49550
11928 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11930 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11933 * configure.ac (gcc_cv_as_hidden): Also accept
11934 x86_64-*-solaris2.1[0-9]*.
11935 (gcc_cv_as_cfi_directive): Likewise.
11936 (gcc_cv_as_comdat_group_group): Likewise.
11937 (set_have_as_tls): Likewise.
11938 * configure: Regenerate.
11939 * config.gcc (i[34567]86-*-solaris2*): Also handle
11940 x86_64-*-solaris2.1[0-9]*.
11941 * config.host (i[34567]86-*-solaris2*): Likewise.
11942 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11943 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11944 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11945 (TARGET_LD_EMULATION): Use it.
11946 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11947 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11948 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11949 (ASM_CPU64_DEFAULT_SPEC): Define.
11950 (ASM_CPU_SPEC): Use %(asm_cpu_default).
11951 (ASM_SPEC): Redefine.
11952 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11953 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11954 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11955 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11957 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11959 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11961 * config/sol2.h (ASM_SPEC): Split into ...
11962 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11963 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11964 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11965 (ASM_SPEC): Use ASM_SPEC_BASE.
11966 * config/sparc/sol2.h (ASM_SPEC): Redefine.
11968 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
11970 * config/avr/avr.md (*reload_insi): Change predicate #1 to
11971 const_int_operand. Ditto for peep2 producing this insn.
11972 Add argument to output_reload_insisf call.
11973 (*movsi,*movsf): Add argument to output_movsisf call.
11974 (*reload_insf): New insn and new peep2 to produce it.
11975 * config/avr/avr-protos.h (output_movsisf): Change prototype.
11976 (output_reload_insisf): Change prototype.
11977 * config/avr/avr.c (avr_asm_len): New function.
11978 (output_reload_insisf): Rewrite.
11979 (output_movsisf): Change prototype. output_reload_insisf for
11980 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
11981 (adjust_insn_length): Add argument to output_movsisf and
11982 output_reload_insisf call.
11984 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
11986 * emit-rtl.c (paradoxical_subreg_p): New function.
11987 * rtl.h (paradoxical_subreg_p): Declare.
11988 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
11989 apply_distributive_law, simplify_comparison, simplify_set): Use it.
11990 * cse.c (record_jump_cond, cse_insn): Likewise.
11991 * expr.c (force_operand): Likewise.
11992 * rtlanal.c (num_sign_bit_copies1): Likewise.
11993 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
11994 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
11995 (push_reload): Use precision to check for paradoxical subregs.
11996 * expmed.c (extract_bit_field_1): Likewise.
11998 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
11999 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
12000 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
12001 simplify_set, simplify_logical, expand_compound_operation,
12002 make_extraction, force_to_mode, if_then_else_cond, extended_count,
12003 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
12004 record_value_for_reg): Likewise.
12005 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
12006 * simplify-rtx. c (simplify_unary_operation_1,
12007 simplify_binary_operation_1, simplify_const_relational_operation):
12010 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
12011 instead of GET_MODE_BITSIZE where appropriate.
12012 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
12013 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
12014 init_num_sign_bit_copies_in_rep): Likewise.
12015 * cse.c (fold_rtx, cse_insn): Likewise.
12016 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
12017 * simplify-rtx.c (simplify_unary_operation_1,
12018 simplify_const_unary_operation, simplify_binary_operation_1,
12019 simplify_const_binary_operation, simplify_ternary_operation,
12020 simplify_const_relational_operation, simplify_subreg): Likewise.
12021 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
12022 simplify_if_then_else, simplify_set, expand_compound_operation,
12023 expand_field_assignment, make_extraction, if_then_else_cond,
12024 make_compound_operation, force_to_mode, make_field_assignment,
12025 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
12026 extended_count, try_widen_shift_mode, simplify_shift_const_1,
12027 simplify_comparison, record_promoted_value, simplify_compare_const,
12028 record_dead_and_set_regs_1): Likewise.
12031 * simplify-rtx.c (simplify_const_binary_operation): Use the
12032 shift_truncation_mask hook instead of performing modulo by width.
12033 Compare against mode precision, not bitsize.
12034 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
12035 Use shift_truncation_mask instead of constructing the value manually.
12037 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12039 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
12041 (rs6000_save_toc_in_prologue_p): Ditto.
12043 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
12044 up the static chain (r11) during indirect function calls.
12045 (-msave-toc-indirect): New undocumented debug switch.
12047 * config/rs6000/rs6000.c (struct machine_function): Add
12048 save_toc_in_prologue field to note whether the prologue needs to
12049 save the TOC value in the reserved stack location.
12050 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
12051 to save the TOC in the prologue, do so.
12052 (rs6000_trampoline_init): Don't allow creating AIX style
12053 trampolines if -mno-r11 is in effect.
12054 (rs6000_call_indirect_aix): New function to create AIX style
12055 indirect calls, adding support for -mno-r11 to suppress loading
12056 the static chain, and saving the TOC in the prologue instead of
12058 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
12059 TOC in the prologue.
12061 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
12063 (TOC_REGNUM): Ditto.
12064 (STATIC_CHAIN_REGNUM): Ditto.
12065 (ARG_POINTER_REGNUM): Ditto.
12066 (SFP_REGNO): Delete, unused.
12067 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
12068 function descriptor offsets.
12069 (TOC_SAVE_OFFSET_64BIT): Ditto.
12070 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
12071 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
12072 (AIX_FUNC_DESC_SC_32BIT): Ditto.
12073 (AIX_FUNC_DESC_SC_64BIT): Ditto.
12074 (ptrload): New mode attribute for the appropriate load of a pointer.
12075 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
12076 (call_indirect_aix64): Ditto.
12077 (call_value_indirect_aix32): Ditto.
12078 (call_value_indirect_aix64): Ditto.
12079 (call_indirect_nonlocal_aix32_internal): Ditto.
12080 (call_indirect_nonlocal_aix32): Ditto.
12081 (call_indirect_nonlocal_aix64_internal): Ditto.
12082 (call_indirect_nonlocal_aix64): Ditto.
12083 (call): Rewrite AIX indirect function calls. Add support for
12084 eliminating the static chain, and for moving the save of the TOC
12085 to the function prologue.
12086 (call_value): Ditto.
12087 (call_indirect_aix<ptrsize>): Ditto.
12088 (call_indirect_aix<ptrsize>_internal): Ditto.
12089 (call_indirect_aix<ptrsize>_internal2): Ditto.
12090 (call_indirect_aix<ptrsize>_nor11): Ditto.
12091 (call_value_indirect_aix<ptrsize>): Ditto.
12092 (call_value_indirect_aix<ptrsize>_internal): Ditto.
12093 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
12094 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
12095 (call_nonlocal_aix32): Relocate in the rs6000.md file.
12096 (call_nonlocal_aix64): Ditto.
12098 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
12099 -mno-r11 documentation.
12101 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12104 * doc/extend.texi (Compound Literals): Fix typo.
12106 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
12108 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
12110 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
12112 * configure.ac (plugin-version.h): Generate
12113 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
12114 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
12117 * configure: Regenerate.
12119 * doc/plugins.texi (Building GCC plugins): Mention
12120 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
12122 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
12124 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
12125 * combine.c (make_extraction, gen_lowpart_or_truncate,
12126 apply_distributive_law, simplify_comparison,
12127 reg_truncated_to_mode, record_truncated_value): Use it.
12128 * cse.c (notreg_cost): Likewise.
12129 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12130 * expr.c (convert_move, convert_modes): Likewise.
12131 * optabs.c (expand_binop, expand_unop): Likewise.
12132 * postreload.c (move2add_last_label): Likewise.
12133 * regmove.c (optimize_reg_copy_3): Likewise.
12134 * rtlhooks.c (gen_lowpart_general): Likewise.
12135 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12137 2011-07-06 Joseph Myers <joseph@codesourcery.com>
12139 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
12141 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
12143 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
12144 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
12145 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
12146 (simplify_const_unary_operation, simplify_binary_operation_1,
12147 simplify_const_binary_operation, simplify_const_relational_operation):
12148 Use them. Use GET_MODE_MASK for masking and sign-extensions.
12149 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
12150 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
12151 simplify_shift_const_1, simplify_comparison): Likewise.
12152 * expr.c (convert_modes): Likewise.
12153 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
12154 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
12155 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
12157 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
12159 2011-07-06 Richard Guenther <rguenther@suse.de>
12161 PR tree-optimization/49645
12162 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
12163 register variables.
12164 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
12165 in type qualification here ...
12166 (copy_reference_ops_from_ref): ... not here.
12167 (vn_reference_lookup_3): ... or here.
12168 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
12169 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
12171 2011-07-06 Ian Lance Taylor <iant@google.com>
12173 * doc/install.texi (Configuration): It's
12174 --enable-gnu-indirect-function, not --enable-indirect-function.
12176 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
12178 * simplify-rtx.c (simplify_const_binary_operation): Use the
12179 shift_truncation_mask hook instead of performing modulo by width.
12180 Compare against mode precision, not bitsize.
12181 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
12182 Use shift_truncation_mask instead of constructing the value manually.
12184 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
12186 PR middle-end/47383
12187 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
12188 address computation and convert to address_mode if needed.
12190 2011-07-06 Richard Guenther <rguenther@suse.de>
12192 * tree.c (build_common_tree_nodes_2): Merge with
12193 build_common_tree_nodes.
12194 * tree.h (build_common_tree_nodes): Adjust prototype.
12195 (build_common_tree_nodes_2): Remove.
12196 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
12197 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
12199 2011-07-05 Jakub Jelinek <jakub@redhat.com>
12201 PR tree-optimization/49618
12202 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
12203 t recurse on the decl.
12204 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
12205 return true if expr isn't known to be defined in current
12206 TU or some other LTO partition.
12208 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12210 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
12211 override CASE_VALUES_THRESHOLD.
12213 * stmt.c (toplevel): Include params.h.
12214 (case_values_threshold): Use the --param case-values-threshold
12215 value if non-zero, otherwise use machine dependent value.
12216 (expand_case): Use case_values_threshold.
12218 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
12220 * doc/invoke.texi (--param case-values-threshold): Document.
12222 2011-07-05 Richard Henderson <rth@redhat.com>
12224 * dwarf2out.c (dwarf2out_cfi_label): Make static.
12225 (dwarf2out_flush_queued_reg_saves): Make static.
12226 (dwarf2out_reg_save): Remove.
12227 (dwarf2out_return_save): Remove.
12228 (dwarf2out_return_reg): Remove.
12229 (dwarf2out_reg_save_reg): Remove.
12230 (dwarf2out_def_cfa): Merge into ...
12231 (dwarf2out_frame_init): ... here.
12232 * dwarf2out.h, tree.h: Remove declarations as necessary.
12234 2011-07-05 Richard Henderson <rth@redhat.com>
12236 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
12237 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12238 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
12241 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
12242 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
12243 (process_epilogue): Don't call dwarf2out_def_cfa.
12245 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
12246 indicate the return address save.
12247 (process_cfa_register): Likewise.
12249 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
12250 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
12252 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
12253 for ar.pfs save at alloc insn.
12255 2011-07-05 Richard Henderson <rth@redhat.com>
12257 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
12258 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12259 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
12260 stack pointer save.
12261 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
12262 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
12263 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
12264 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
12266 2011-07-05 Richard Henderson <rth@redhat.com>
12268 * config/vax/vax.md (define_c_enum unspecv): New. Define the
12269 VUNSPEC_* constants here instead of via define_constants.
12270 (VUNSPEC_PEM): New constant.
12271 (procedure_entry_mask): New insn.
12272 (prologue): New expander.
12273 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
12274 (vax_expand_prologue): Rename from vax_output_function_prologue;
12275 emit rtl instead of text.
12276 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12277 (print_operand): Add 'x' prefix.
12279 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
12281 PR middle-end/47715
12282 * calls.c (precompute_register_parameters): Promote the function
12283 argument before checking non-legitimate constant.
12285 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12287 PR tree-optimization/47654
12288 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
12289 (lst_do_strip_mine_loop): Return an int.
12290 (lst_do_strip_mine): Same.
12291 (scop_do_strip_mine): Same.
12292 (scop_do_block): Loop blocking should strip-mine at least two loops.
12293 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
12294 (scop_do_interchange): Same.
12295 * graphite-poly.h (scop_do_interchange): Update declaration.
12296 (scop_do_strip_mine): Same.
12298 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12300 * graphite-clast-to-gimple.c (precision_for_value): Removed.
12301 (precision_for_interval): Removed.
12302 (gcc_type_for_interval): Use mpz_sizeinbase.
12304 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12306 * graphite-ppl.h (value_max): Correct computation of max.
12308 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
12310 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
12312 2011-07-05 Richard Guenther <rguenther@suse.de>
12314 * c-decl.c (c_init_decl_processing): Defer building common
12315 tree nodes to c_common_nodes_and_builtins.
12317 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
12319 PR tree-optimization/49580
12320 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12321 the loop's number of iterations.
12322 * tree-parloops.c (transform_to_exit_first_loop): Add the
12323 handling of the loop's number of iterations before the call
12324 to gimple_duplicate_sese_tail.
12325 Insert the stmt caclculating the new rhs of the loop's
12326 condition stmt to the preheader instead of iters_bb.
12328 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
12330 PR rtl-optimization/47449
12331 * fwprop.c (forward_propagate_subreg): Don't propagate hard
12332 register nor zero/sign extended hard register.
12334 2011-07-05 Richard Guenther <rguenther@suse.de>
12336 PR tree-optimization/49518
12337 PR tree-optimization/49628
12338 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
12339 irrelevant and invariant data-references.
12340 (vect_analyze_data_ref_access): For invariant loads clear the
12343 2011-07-04 Jakub Jelinek <jakub@redhat.com>
12345 PR rtl-optimization/49619
12346 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
12347 pass VOIDmode as op0_mode to recursive call, and return temp even
12348 when different from tor, just if it is not IOR of the original
12351 PR rtl-optimization/49472
12352 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
12353 negating MULT, negate the second operand instead of first.
12354 (simplify_binary_operation_1) <case MULT>: If one operand is
12355 a NEG and the other is MULT, don't attempt to optimize by negation
12356 of the MULT operand if it only moves the NEG operation around.
12359 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
12360 get_current_def return value if it can't be trusted to be
12361 the current value of the variable in the current bb.
12363 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
12366 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
12367 general register to memory for !TARGET_INTER_UNIT_MOVES.
12369 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
12372 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
12373 instead of TREE_READONLY.
12375 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
12377 * doc/extend.texi (AVR Built-in Functions): Update documentation
12378 of __builtin_avr_fmul*.
12379 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
12380 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
12381 * config/avr/avr.md (fmul): Rename to fmul_insn.
12382 (fmuls): Rename to fmuls_insn.
12383 (fmulsu): Rename to fmulsu_insn.
12384 (fmul,fmuls,fmulsu): New expander.
12385 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
12386 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
12387 * config/avr/libgcc.S (__fmul): New function.
12388 (__fmuls): New function.
12389 (__fmulsu,__fmulsu_exit): New function.
12391 2011-07-04 Richard Guenther <rguenther@suse.de>
12393 PR tree-optimization/49615
12394 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
12395 basic-block index check.
12397 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
12399 * longlong.h (count_leading_zeros, count_trailing_zeros,
12400 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
12403 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
12405 PR tree-optimization/49610
12406 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
12409 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
12410 Olivier Hainque <hainque@adacore.com>
12411 Nicolas Setton <setton@adacore.com>
12413 * tree.h (TYPE_ARTIFICIAL): New flag.
12414 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
12415 the DIE of the type if it is artificial.
12416 (gen_array_type_die): Likewise.
12417 (gen_enumeration_type_die): Likewise.
12418 (gen_struct_or_union_type_die): Likewise.
12419 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
12420 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
12422 2011-07-01 Jakub Jelinek <jakub@redhat.com>
12424 * tree-object-size.c (pass_through_call): Handle
12425 BUILT_IN_ASSUME_ALIGNED.
12427 2011-07-01 Martin Jambor <mjambor@suse.cz>
12429 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
12431 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
12433 PR middle-end/48016
12434 * explow.c (update_nonlocal_goto_save_area): Use proper mode
12435 for stack save area.
12436 * function.c (expand_function_start): Likewise.
12438 2011-07-01 Richard Guenther <rguenther@suse.de>
12440 PR middle-end/49596
12441 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
12442 may have unknown refs.
12444 2011-07-01 Kai Tietz <ktietz@redhat.com>
12446 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
12448 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12450 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
12451 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
12452 (Specific, mips-sgi-irix6): Likewise.
12454 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12456 PR libmudflap/49549
12457 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
12459 2011-07-01 Jakub Jelinek <jakub@redhat.com>
12461 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
12462 [idx]= and [idx1 ... idx2]= before initializers if needed for
12463 array initializers.
12465 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
12467 * config.gcc (score-*-elf): Remove score7.o.
12468 * config/score/t-score-elf: Likewise.
12469 * config/score/score.c: Merge score7 to score.c and
12470 remove forwarding functions.
12471 * config/score/score7.c: Deleted.
12472 * config/score/score7.h: Deleted.
12474 2011-07-01 Richard Guenther <rguenther@suse.de>
12476 PR tree-optimization/49603
12477 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
12479 2011-06-30 Martin Jambor <mjambor@suse.cz>
12481 * tree-sra.c (struct access): Rename total_scalarization to
12482 grp_total_scalarization
12483 (completely_scalarize_var): New function.
12484 (sort_and_splice_var_accesses): Set total_scalarization in the
12485 representative access.
12486 (analyze_access_subtree): Propagate total scalarization accross the
12487 tree, no holes in totally scalarized trees, simplify coverage
12489 (analyze_all_variable_accesses): Call completely_scalarize_var instead
12490 of completely_scalarize_record.
12492 2011-06-30 Richard Henderson <rth@redhat.com>
12494 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
12495 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
12496 * config/i386/i386.c: Don't include dwarf2out.h.
12497 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
12498 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
12499 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
12500 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
12501 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
12503 2011-06-30 Richard Henderson <rth@redhat.com>
12505 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
12506 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12507 * final.c (final_scan_insn): Look for it, and invoke
12508 dwarf2out_frame_debug before the insn if found.
12510 2011-06-30 Richard Henderson <rth@redhat.com>
12512 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
12513 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
12515 2011-06-30 Richard Henderson <rth@redhat.com>
12517 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
12518 Define a vector of this type.
12519 (regs_saved_in_regs): Use a VEC.
12520 (num_regs_saved_in_regs): Remove.
12521 (compare_reg_or_pc): New.
12522 (record_reg_saved_in_reg): Split out from...
12523 (dwarf2out_flush_queued_reg_saves): ... here.
12524 (clobbers_queued_reg_save): Update for VEC.
12525 (reg_saved_in): Likewise.
12526 (dwarf2out_frame_debug_init): Likewise.
12527 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
12528 (dwarf2out_frame_debug_cfa_register): Likewise.
12530 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
12532 PR tree-optimization/49572
12533 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
12534 type of the RHS instead of that of the LHS for the expression type.
12536 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
12538 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
12541 2011-06-30 Richard Guenther <rguenther@suse.de>
12543 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
12544 * tree-ssa-structalias.c (create_variable_info_for): Do not
12545 add initial constraints for non-var-decls. Properly handle
12546 globals in other ltrans partitions.
12547 (intra_create_variable_infos): Manually create constraints for
12548 the fake no-alias parameter.
12549 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
12550 and assert there are no clones.
12552 2011-06-30 Richard Guenther <rguenther@suse.de>
12554 PR tree-optimization/46787
12555 * tree-data-ref.c (dr_address_invariant_p): Remove.
12556 (find_data_references_in_stmt): Invariant accesses are ok now.
12557 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
12558 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12561 2011-06-30 Martin Jambor <mjambor@suse.cz>
12563 PR tree-optimization/49094
12564 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
12565 (build_accesses_from_assign): Use it.
12567 2011-06-30 Jakub Jelinek <jakub@redhat.com>
12569 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12570 handling of BUILT_IN_ASSUME_ALIGNED.
12573 * dwarf2out.c (output_abbrev_section): Don't return early
12574 if abbrev_die_table_in_use is 1.
12575 (dwarf2out_finish): Instead don't call output_abbrev_section
12576 nor emit abbrev_section_label in that case.
12578 2011-06-30 Nick Clifton <nickc@redhat.com>
12580 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
12583 2011-06-30 Jakub Jelinek <jakub@redhat.com>
12585 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12586 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
12588 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
12590 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12591 both pattern and original statements if necessary.
12592 (vect_transform_loop): Likewise.
12593 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
12594 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
12595 Mark the pattern statement only if the original statement doesn't
12597 (process_use): Call vect_mark_relevant with additional parameter.
12598 (vect_mark_stmts_to_be_vectorized): Likewise.
12599 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
12600 (vect_analyze_stmt): Handle both pattern and original statements
12602 (vect_transform_stmt): Don't store vectorized pattern statement
12603 in the original statement.
12604 (vect_is_simple_use_1): Use related pattern statement only if the
12605 original statement is irrelevant.
12606 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12608 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
12610 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
12612 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
12614 (TARGET_AVX128_OPTIMAL): New definition.
12615 * config/i386/i386.c (initial_ix86_tune_features): Initialize
12616 X86_TUNE_AVX128_OPTIMAL entry.
12617 (ix86_option_override_internal): Enable the generation
12618 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
12619 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
12620 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
12622 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
12624 PR tree-optimization/49539
12625 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
12626 names by means of stmt_references_abnormal_ssa_name.
12627 (associate_plusminus): Call can_propagate_from before propagating
12628 from definition statements.
12629 (ssa_forward_propagate_and_combine): Remove superfluous newline.
12631 2011-06-29 Richard Guenther <rguenther@suse.de>
12633 * doc/invoke.texi: Document -scev dump modifier.
12634 * tree-pass.h (TDF_SCEV): New dump flag.
12635 * tree-dump.c (dump_option_value_in): Add scev.
12636 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
12637 * tree-scalar-evolution.c: Likewise.
12639 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
12641 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
12642 (cxa_type_match): Correct declaration.
12643 (__gnu_unwind_pr_common): Reconstruct additional indirection
12644 when __cxa_type_match returns succeeded_with_ptr_to_base.
12646 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12648 PR rtl-optimization/49114
12649 * reload.c (struct replacement): Remove SUBREG_LOC member.
12650 (push_reload): Do not set it.
12651 (push_replacement): Likewise.
12652 (subst_reload): Remove dead code.
12653 (copy_replacements): Remove assertion.
12654 (copy_replacements_1): Do not handle SUBREG_LOC.
12655 (move_replacements): Likewise.
12656 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
12657 Detect subregs via recursive descent instead of via SUBREG_LOC.
12659 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12661 * config/avr/avr.c (avr_encode_section_info): Dispatch to
12662 default_encode_section_info.
12664 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
12666 PR tree-optimization/49545
12667 * builtins.c (get_object_alignment_1): Update function comment.
12668 Do not use DECL_ALIGN for functions, but test
12669 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
12670 * fold-const.c (get_pointer_modulus_and_residue): Don't check
12671 for functions here.
12672 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12674 2011-06-29 Jakub Jelinek <jakub@redhat.com>
12677 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
12678 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
12680 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12683 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
12684 about uninitialized data attributed 'progmem' from here...
12685 (avr_encode_section_info): ...to this new function.
12686 (TARGET_ENCODE_SECTION_INFO): New define.
12687 (avr_section_type_flags): For data in ".progmem.data", remove
12688 section flag SECTION_WRITE.
12690 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
12692 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
12694 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
12695 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
12696 (__umulhisi3): Ditto.
12697 * config/avr/avr.md (mulhisi3): New insn expender.
12698 (umulhisi3): New insn expender.
12699 (*mulhisi3_call): New insn.
12700 (*umulhisi3_call): New insn.
12702 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12704 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
12706 2011-06-28 Richard Henderson <rth@redhat.com>
12708 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
12709 all code and arguments that handled pushes. Update all callers.
12711 2011-06-28 Richard Henderson <rth@redhat.com>
12713 * config/arm/arm.c (arm_output_function_prologue): Don't call
12714 thumb1_output_function_prologue.
12715 (arm_expand_prologue): Avoid dead store.
12716 (number_of_first_bit_set): Use ctz_hwi.
12717 (thumb1_emit_multi_reg_push): New.
12718 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
12719 to emit the entire prologue as rtl.
12720 (thumb1_output_interwork): Split out from
12721 thumb1_output_function_prologue.
12722 (thumb1_output_function_prologue): Remove.
12723 (arm_attr_length_push_multi): Handle thumb1.
12724 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
12725 (prologue_thumb1_interwork): New.
12726 (*push_multi): Allow thumb1; use push_mult_memory_operand.
12727 * config/arm/predicates.md (push_mult_memory_operand): New.
12729 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
12731 * config/sparc/sync.md (*stbar): Delete.
12732 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
12734 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
12736 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
12738 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12740 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
12741 (TARGET_64BIT_DEFAULT): Define.
12742 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
12744 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
12746 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12748 * common.opt (in_lto_p): New Variable entry.
12749 * flags.h (in_lto_p): Move to common.opt.
12750 * gcc.c: Include params.h.
12751 (set_option_handlers): Also use common_handle_option and
12752 target_handle_option.
12753 (main): Call global_init_params, finish_params and init_options_struct.
12754 * opts.c (debug_type_names): Move from toplev.c.
12755 (print_filtered_help): Access quiet_flag through opts pointer.
12756 (common_handle_option): Return early in the driver for some options.
12757 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
12759 * toplev.c (in_lto_p): Move to common.opt.
12760 (debug_type_names): Move to opts.c.
12761 * Makefile.in (OBJS): Remove opts.o.
12762 (OBJS-libcommon-target): Add opts.o.
12763 (gcc.o): Update dependencies.
12765 2011-06-28 Kai Tietz <ktietz@redhat.com>
12767 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
12769 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12771 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
12772 with '=' constraint modifier.
12773 (*divdf3_vfp): Likewise.
12774 ("*mulsf3_vfp"): Likewise.
12775 ("*muldf3_vfp"): Likewise.
12776 ("*mulsf3negsf_vfp"): Likewise.
12777 ("*muldf3negdf_vfp"): Likewise.
12779 2011-06-28 Nick Clifton <nickc@redhat.com>
12781 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
12782 relaxation when performing an incremental link.
12784 2011-06-28 Kai Tietz <ktietz@redhat.com>
12786 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
12787 within BB from last to first.
12789 2011-06-28 Joseph Myers <joseph@codesourcery.com>
12791 * genattr-common.c: New. Based on genattr.c.
12792 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
12793 (MOSTLYCLEANFILES): Add insn-attr-common.h.
12794 (opts.o): Update dependencies.
12795 (.PRECIOUS): Add insn-attr-common.h.
12796 (simple_rtl_generated_h): Add insn-attr-common.h.
12797 (build/genattr-common.o): New.
12798 (genprogrtl): Add attr-common.
12799 * genattr.c (main): Include insn-attr-common.h. Don't generate
12800 definitions of DELAY_SLOTS or INSN_SCHEDULING.
12801 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
12803 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
12805 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
12806 avr-*-* and avr-*-rtems* targets.
12808 * config/avr/elf.h: New file.
12809 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
12810 (TARGET_ASM_SELECT_SECTION): Define.
12811 (INIT_SECTION_ASM_OP): Undefine.
12812 (FINI_SECTION_ASM_OP): Undefine.
12813 (READONLY_DATA_SECTION_ASM_OP): Undefine.
12814 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
12815 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
12816 * config/avr/avr.h:
12817 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
12818 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
12819 (MAX_OFILE_ALIGNMENT): Move to elf.h.
12820 (STRING_LIMIT): Move to elf.h.
12821 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
12822 (ASM_DECLARE_OBJECT_NAME): Remove.
12824 (ASM_OUTPUT_SKIP): Remove.
12825 (DWARF2_DEBUGGING_INFO): Remove.
12826 (OBJECT_FORMAT_ELF): Remove.
12827 (USER_LABEL_PREFIX): Remove.
12828 (ASM_OUTPUT_EXTERNAL): Remove.
12829 (ASM_OUTPUT_ASCII): Remove.
12830 (TYPE_ASM_OP): Remove.
12831 (SIZE_ASM_OP): Remove.
12832 (WEAK_ASM_OP): Remove.
12833 (STRING_ASM_OP): Remove.
12834 (SET_ASM_OP): Remove.
12835 (ASM_WEAKEN_LABEL): Remove.
12836 (TYPE_OPERAND_FMT): Remove.
12837 (ASM_DECLARE_FUNCTION_SIZE): Remove.
12838 (ASM_FINISH_DECLARE_OBJECT): Remove.
12839 (NO_DOLLAR_IN_LABEL): Remove.
12840 (ASM_GENERATE_INTERNAL_LABEL): Remove.
12841 (ASM_OUTPUT_CASE_LABEL): Remove.
12842 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
12843 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
12844 (gas_output_ascii): Remove.
12845 (gas_output_limited_string): Remove.
12846 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12847 * config/avr/avr-protos.h
12848 (gas_output_ascii): Remove prototye.
12849 (gas_output_limited_string): Remove prototype.
12851 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
12854 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
12857 2011-06-27 Jan Hubicka <jh@suse.cz>
12859 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
12860 node instead of references in node.
12862 2011-06-27 Richard Henderson <rth@redhat.com>
12864 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
12865 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
12868 2011-06-27 Jakub Jelinek <jakub@redhat.com>
12870 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
12872 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
12873 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
12874 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
12875 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
12876 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
12877 (evaluate_stmt, execute_fold_all_builtins): Handle
12878 BUILT_IN_ASSUME_ALIGNED.
12879 * tree-ssa-dce.c (propagate_necessity): Likewise.
12880 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12881 call_may_clobber_ref_p_1): Likewise.
12882 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
12883 (expand_builtin_assume_aligned): New function.
12884 * doc/extend.texi (__builtin_assume_aligned): Document.
12887 * cselib.c (promote_debug_loc): If cselib_preserve_constants
12888 and l has two DEBUG_INSN owned locs instead of just one, adjust
12889 the second location's setting_insn too.
12891 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12893 PR libmudflap/38738
12894 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12896 2011-06-27 Nick Clifton <nickc@redhat.com>
12898 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12899 bit position of highest bit set into a count of the high zero bits.
12901 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12903 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12905 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12908 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12911 2011-06-27 Richard Guenther <rguenther@suse.de>
12913 PR tree-optimization/49394
12914 * passes.c (execute_one_pass): Restore current_pass after
12915 applying IPA transforms.
12917 2011-06-27 Kai Tietz <ktietz@redhat.com>
12919 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12920 out of type precision after operation.
12921 (find_bswap): Take for limit value the integer auto-promotion
12924 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12926 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12927 forward scan as well.
12929 2011-06-27 Tristan Gingold <gingold@adacore.com>
12932 * config/vms/vms-protos.h: New file.
12933 * config/vms/vms-crtlmap.map: New file.
12934 * config/vms/vms.c: New file.
12935 * config/vms/make-crtlmap.awk: New file.
12936 * config/vms/vms-crtl.h: File removed.
12937 * config/vms/vms-crtl-64.h: File removed.
12938 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12939 * config/alpha/vms64.h: Do not include vms-crtl-64.h
12940 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12941 clear some builtins on VMS. Calls vms_patch_builtins.
12942 (avms_asm_output_external): Remove.
12943 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12944 (struct crtl_name_spec): Remove
12945 (DO_CTRL_NAMES): Remove.
12946 * config/ia64/vms.h (struct crtl_name_spec): Remove
12947 (DO_CTRL_NAMES): Remove.
12948 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12949 clear some builtins on VMS. Calls vms_patch_builtins.
12950 (ia64_asm_output_external): Remove DO_CRTL_NAME.
12951 * config/ia64/vms64.h: Do not include vms-crtl-64.h
12952 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12954 2011-06-27 Tristan Gingold <gingold@adacore.com>
12956 * config/alpha/alpha.c (alpha_end_function): Always generate .end
12959 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
12961 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12962 the function receives nonlocal gotos.
12964 2011-06-27 Richard Guenther <rguenther@suse.de>
12966 PR tree-optimization/49536
12967 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12968 For non-scalar inner types use a scalar type according to
12969 the scalar inner mode.
12971 2011-06-27 Richard Guenther <rguenther@suse.de>
12973 PR tree-optimization/49365
12974 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12976 2011-06-27 Richard Guenther <rguenther@suse.de>
12978 PR tree-optimization/49169
12979 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
12980 the alignment of function decls.
12982 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
12985 * config/darwin.c (darwin_mergeable_string_section): Place string
12986 constants in '.cstring' rather than '.const' when CF/NSStrings are
12989 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
12991 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
12992 (emit_save_register_window): Likewise.
12993 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
12994 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
12995 Swap back %o7/%i7 in register naming.
12997 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
13000 * config/darwin.c (darwin_override_options): Improve warning when
13001 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
13002 is given with fpie/fPIE.
13003 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
13004 * config/darwin9.h (PIE_SPEC): New.
13006 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
13008 * timevar.c (timevar_print): Increase width for display of timevar
13011 2011-06-24 Jakub Jelinek <jakub@redhat.com>
13014 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
13015 instead of TYPE_CHAIN for chain_next for types.
13017 2011-06-24 Richard Henderson <rth@redhat.com>
13019 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
13020 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
13021 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
13022 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
13023 (sparc_flat_expand_prologue): Emit individual instructions
13024 instead of one of the above.
13026 2011-06-24 Easwaran Raman <eraman@google.com>
13028 PR rtl-optimization/49429
13030 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
13031 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
13032 used to copy y into x.
13033 * calls.c (initialize_argument_information): Mark
13034 an argument addressable if it is passed by invisible reference.
13035 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
13036 if it is passed by reference.
13038 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
13040 PR rtl-optimization/49504
13041 * rtlanal.c (nonzero_bits1): Properly handle addition or
13042 subtraction of a pointer in Pmode if pointers extend unsigned.
13043 (num_sign_bit_copies1): Likewise.
13045 2011-06-24 Martin Jambor <mjambor@suse.cz>
13047 PR tree-optimizations/49516
13048 * tree-sra.c (sra_modify_assign): Choose the safe path for
13049 aggregate copies if we also did scalar replacements.
13051 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13054 * config/arm/predicates.md (add_operator): New.
13055 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
13057 2011-06-24 Andi Kleen <ak@linux.intel.com>
13059 * tree-sra.c (type_internals_preclude_sra_p): Add msg
13060 parameter. Split up ifs and report reason in *msg.
13062 (find_var_candiate): Add msg variable.
13063 Split up ifs and report reason to reject.
13064 (find_param_candidates): Add msg variable.
13065 Pass msg to type_internals_preclude_sra_p.
13067 2011-06-23 Jeff Law <law@redhat.com>
13069 PR middle-end/48770
13070 * reload.h (reload): Change to return a bool.
13071 * ira.c (ira): If requested by reload, run a fast DCE pass after
13072 reload has completed. Fix comment typo.
13073 * reload1.c (need_dce): New file scoped static.
13074 (reload): Set reload_completed here. Return whether or not a DCE
13075 pass after reload is needed.
13076 (delete_dead_insn): Set need_dce as needed.
13078 PR middle-end/49465
13079 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
13080 to detect threading through joiner block. If there was already
13081 an edge to the new target, then do not change the PHI nodes.
13083 2011-06-23 Jakub Jelinek <jakub@redhat.com>
13085 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
13086 get_pointer_alignment to see if base isn't sufficiently aligned.
13088 2011-06-23 Jan Hubicka <jh@suse.cz>
13090 PR tree-optimize/49373
13091 * tree-pass.h (all_late_ipa_passes): Declare.
13092 * cgraphunit.c (init_lowered_empty_function): Fix properties.
13093 (cgraph_optimize): Execute late passes; remove unreachable funcions
13094 after materialization.
13095 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
13097 * passes.c (all_late_ipa_passes): Declare.
13098 (dump_passes, register_pass): Handle late ipa passes.
13099 (init_optimization_passes): Move ipa_pta to late passes; schedule
13100 fixup_cfg at beggining of all_passes.
13101 (apply_ipa_transforms): New function.
13102 (execute_one_pass): When doing simple ipa pass, apply all transforms.
13104 2011-06-23 Joseph Myers <joseph@codesourcery.com>
13106 * params.c: Include common/common-target.h. Don't include tm.h.
13107 (lang_independent_params): Move from toplev.c.
13108 (global_init_params): New.
13109 * params.h (global_init_params): Declare.
13110 * target.def (default_params): Move to common-target.def.
13111 * toplev.c (lang_independent_options): Remove.
13112 (lang_independent_params): Move to params.c.
13113 (general_init): Use global_init_params.
13114 * common/common-target.def (option_default_params): Move from
13116 * common/config/ia64/ia64-common.c: Include params.h.
13117 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13119 * common/config/rs6000/rs6000-common.c: Include params.h.
13120 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13122 * common/config/sh/sh-common.c: Include params.h.
13123 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13125 * common/config/spu/spu-common.c: Include params.h.
13126 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13128 * config/ia64/ia64.c (ia64_option_default_params,
13129 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
13130 * config/rs6000/rs6000.c (rs6000_option_default_params,
13131 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
13132 * config/sh/sh.c (sh_option_default_params,
13133 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
13134 * config/spu/spu.c (spu_option_default_params,
13135 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
13136 * Makefile.in (OBJS): Remove params.o.
13137 (OBJS-libcommon-target): Add params.o.
13138 (params.o, $(common_out_object_file)): Update dependencies.
13139 * doc/tm.texi: Regenerate.
13141 2011-06-23 Alan Modra <amodra@gmail.com>
13144 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
13145 invocation for 2011-06-09 changes.
13147 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13150 * omp-low.c (expand_omp_for_static_nochunk): Only
13151 use n ceil/ nthreads size for the first n % nthreads threads in the
13152 team instead of all threads except for the last few ones which
13153 get less work or none at all.
13156 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
13159 2011-06-22 Richard Guenther <rguenther@suse.de>
13161 PR tree-optimization/49493
13162 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
13163 Refer to the alias target of variables.
13164 (associate_varinfo_to_alias_1): Remove.
13165 (ipa_pta_execute): Do not associate aliases with anything.
13166 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
13167 (cgraph_function_node): Likewise.
13168 (cgraph_function_or_thunk_node): Likewise.
13169 (varpool_variable_node): Likewise.
13171 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
13173 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
13174 * config.gcc (arm*-*-linux*): Default to gnu tls.
13175 (arm*-*-*): Add --with-tls option.
13176 (all_defaults): Add 'tls'.
13178 2011-06-22 Richard Henderson <rth@redhat.com>
13180 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
13181 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13182 (dwarf2out_frame_debug_cfa_window_save): Rename from
13183 dwarf2out_window_save; make static.
13184 * tree.h (dwarf2out_window_save): Don't declare.
13186 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
13187 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13188 (emit_save_register_window): Rename from gen_save_register_window;
13189 emit the insn and add REG_CFA_* notes.
13190 (sparc_expand_prologue): Update to match.
13191 * config/sparc/sparc.md (save_register_window_1): Simplify from
13192 save_register_window<P:mode>.
13194 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
13197 * config/i386/i386.md (*lea_general_2): Always allow SImode.
13198 (*lea_general_2_zext): Likewise.
13199 (imul to lea peepholes): Use const359_operand and check
13200 TARGET_PARTIAL_REG_STALL.
13202 * config/i386/predicates.md (const359_operand): New.
13204 2011-06-22 Michael Matz <matz@suse.de>
13206 * cgraphunit.c (assemble_thunk): Use correct return type.
13208 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
13209 Dmitry Melnik <dm@ispras.ru>
13211 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
13212 (neon_output_shift_immediate): Ditto.
13213 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
13215 (neon_output_shift_immediate): Ditto.
13216 * config/arm/neon.md (vashl<mode>3): Modified constraint.
13217 (vashr<mode>3_imm): New insn pattern.
13218 (vlshr<mode>3_imm): Ditto.
13219 (vashr<mode>3): Modified constraint.
13220 (vlshr<mode>3): Ditto.
13221 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
13223 (imm_for_neon_rshift_operand): Ditto.
13224 (imm_lshift_or_reg_neon): Ditto.
13225 (imm_rshift_or_reg_neon): Ditto.
13227 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
13229 2011-06-22 Jakub Jelinek <jakub@redhat.com>
13231 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
13232 builtin calls even if likelyvalue is not CONSTANT.
13233 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
13234 Return get_value_for_expr of first operand
13235 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
13236 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13237 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
13238 their non-checking counterparts.
13239 (call_may_clobber_ref_p_1): Likewise.
13240 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
13241 like their non-checking counterparts.
13242 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13243 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
13244 like their non-checking counterparts.
13245 (find_func_clobbers): Likewise.
13246 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
13247 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
13249 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
13250 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
13251 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
13252 of base type reference as argument.
13253 (resolve_addr_in_expr): Likewise. Fix keep computation.
13254 (convert_descriptor_to_signed): Renamed to...
13255 (convert_descriptor_to_mode): ... this. For wider types convert to
13256 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
13257 (typed_binop): New function.
13258 (scompare_loc_descriptor, ucompare_loc_descriptor,
13259 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
13260 default to unsigned type instead of signed.
13263 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
13264 (gimple_build_debug_source_bind_stat): New prototype.
13265 (gimple_build_debug_source_bind): Define.
13266 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
13267 gimple_debug_source_bind_get_value,
13268 gimple_debug_source_bind_get_value_ptr,
13269 gimple_debug_source_bind_set_var,
13270 gimple_debug_source_bind_set_value): New inlines.
13271 * gimple.c (gimple_build_debug_source_bind_stat): New function.
13272 * gimple-pretty-print.c (dump_gimple_debug): Handle
13273 GIMPLE_DEBUG_SOURCE_BIND.
13274 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
13275 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13276 * tree-parloops.c (eliminate_local_variables,
13277 separate_decls_in_region): Likewise.
13278 (separate_decls_in_region_debug): Renamed from
13279 separate_decls_in_region_debug_bind. Handle
13280 gimple_debug_source_bind_p.
13281 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
13283 (DECL_HAS_DEBUG_ARGS_P): Define.
13284 (struct tree_function_decl): Add has_debug_args_flag field.
13285 * tree.c (debug_args_for_decl): New variable.
13286 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
13287 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
13288 (rewrite_debug_stmt_uses): New function.
13289 (rewrite_stmt): Use it to rewrite debug stmt uses.
13290 * rtl.def (DEBUG_PARAMETER_REF): New.
13291 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
13292 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
13293 DEBUG_PARAMETER_REF.
13294 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
13295 * print-rtl.c (print_rtx): Likewise.
13296 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
13297 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
13298 debug stmts in the first bb.
13299 * tree-inline.c (remap_ssa_name): If remapping default def
13300 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
13301 a source bind debug stmt.
13302 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
13303 (maybe_move_debug_stmts_to_successors): Likewise.
13304 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
13305 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
13306 debug args vector from old_decl to new_decl.
13307 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
13308 or modified parameters, add debug bind stmts before call
13309 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
13310 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
13311 on DECL_DEBUG_EXPRs from debug args vector.
13312 (expand_debug_source_expr): New function.
13313 (expand_debug_locations): Use it for source bind insns.
13314 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
13315 * var-tracking.c (prepare_call_arguments): Add debug args
13316 to call_arguments if any.
13317 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
13318 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
13319 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
13320 (get_ref_die_offset, parameter_ref_descriptor): New functions.
13321 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
13322 (gen_subprogram_die): Handle parameters identified by
13323 DEBUG_PARAMETER_REF.
13325 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
13327 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
13328 * doc/install.texi (Configuration): Document --with-tls.
13329 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
13330 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
13331 (arm_tls_descseq_addr): New.
13332 (legitimize_tls_address): Add tlsdesc support.
13333 (arm_cannot_copy_insn_p): Check for tlscall.
13334 (arm_emit_tls_decoration): Likewise.
13335 * config/arm/arm.h (TARGET_GNU2_TLS): New.
13336 (OPTION_DEFAULT_SPECS): Add with-tls support.
13337 * config/arm/arm.md (R1_REGNUM): Define.
13339 * config/arm/arm.opt (tls_type): New enumeration type and values.
13340 (mtls-dialect): New switch.
13341 * config/arm/arm-opts.h (enum tls_type): New.
13343 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
13345 * attribs.c (register_attribute): Added assert to check that all
13346 attribute specs are registered with a name that is not empty and
13347 does not start with '_'.
13348 (decl_attributes): Avoid the lookup of the "naked" attribute spec
13349 if the function has no attributes.
13350 * tree.c (is_attribute_with_length_p): Removed.
13351 (is_attribute_p): Removed.
13352 (private_is_attribute_p): New.
13353 (private_lookup_attribute): New.
13354 (lookup_attribute): Removed.
13355 (lookup_ident_attribute): New.
13356 (remove_attribute): Require the first argument to be in the form
13357 'text', not '__text__'. Updated asserts.
13358 (merge_attributes): Use lookup_ident_attributes instead of
13360 (merge_dllimport_decl_attributes): Use remove_attribute.
13361 (attribute_list_contained): Likewise.
13362 (attribute_list_equal): Immediately return 1 if the arguments are
13363 identical pointers.
13364 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
13365 'int'. Require the first argument to be in the form 'text', not
13366 '__text__'. Require the second argument to be an identifier.
13367 (lookup_attribute): Made inline. Require the first argument to be
13368 in the form 'text', not '__text__'.
13369 (private_is_attribute_p, private_lookup_attribute): New.
13372 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
13374 * builtins.c: Add sync_ or SYNC__ to builtin names.
13375 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
13376 * omp-low.c: Add sync_ or SYNC__ to builtin names.
13378 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
13381 * config/avr/avr.md (extzv): New expander.
13382 (*extzv): New insn.
13383 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
13384 * config/avr/constraints.md (C04): New constraint.
13385 * doc/md.texi (Machine Constraints): Document it.
13387 2011-06-21 Jakub Jelinek <jakub@redhat.com>
13389 PR middle-end/49489
13390 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
13391 unsignedp argument instead of 1 for clrsb_optab.
13392 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
13393 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
13394 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
13395 * optabs.c (widen_leading): Call widen_operand and expand_unop
13396 with 0 as unsignedp argument instead of 1 for clrsb_optab.
13397 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
13399 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
13401 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
13403 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
13405 * gensupport.c (add_define_attr): New static function.
13406 (is_predicable): Allow multi-alternative lists for the "predicable"
13408 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
13409 (process_one_cond_exec): Call alter_attrs_for_insn.
13410 * doc/md.texi (Defining Attributes): Mention some standard names.
13411 (Conditional Execution): Update documentation for "predicable".
13413 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
13414 __builtin_clrsbll): Document.
13415 * doc/rtl.texi (clrsb): New entry.
13416 * optabs.c (widen_leading): Renamed from widen_clz. New argument
13417 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
13418 (expand_unop): Handle clrsb_optab.
13419 (init_optabs): Initialize it.
13420 * optabs.h (enum optab_index): New entry OTI_clrsb.
13421 (clrsb_optab): Define.
13422 * genopinit.c (optabs): Add an entry for it.
13423 * builtins.c (expand_builtin): Handle clrsb builtin functions.
13424 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
13425 BUILT_IN_CLRSBLL): New.
13426 * rtl.def (CLRSB): New code.
13427 * dwarf2out.c (mem_loc_descriptor): Handle it.
13428 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13429 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
13431 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
13432 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
13433 (__ctzDI2): Move declaration.
13434 * config/bfin/bfin.md (clrsbsi2): New expander.
13435 (signbitssi2): Use the CLRSB rtx.
13436 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
13437 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
13439 2011-06-21 Richard Guenther <rguenther@suse.de>
13441 * ipa-inline-transform.c (inline_transform): Fix previous change.
13443 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
13445 PR tree-optimization/49478
13446 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
13447 with constant operand.
13449 2011-06-21 Richard Guenther <rguenther@suse.de>
13451 * ipa-inline-transform.c (inline_transform): Fix typo.
13453 2011-06-21 Richard Guenther <rguenther@suse.de>
13455 PR tree-optimization/49483
13456 * tree-vect-stmts.c (vectorizable_assignment): Also handle
13457 VIEW_CONVERT_EXPR conversions.
13459 2011-06-21 Joseph Myers <joseph@codesourcery.com>
13461 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
13462 * config/avr/avr-tables.opt: New file (generated).
13463 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
13464 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
13466 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
13467 (avr_option_override): Don't process -mmcu= argument here. Set
13468 avr_current_device using avr_mcu_index.
13469 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
13470 * config/avr/avr.opt (mmcu=): Use Enum.
13471 * config/avr/t-avr (avr-devices.o): Update dependencies.
13472 ($(srcdir)/config/avr/avr-tables.opt): New.
13473 * target.def (help): Remove.
13474 * doc/tm.texi.in (TARGET_HELP): Remove.
13475 * doc/tm.texi: Regenerate.
13476 * opts.c: Don't include target.h.
13477 (common_handle_option): Don't call targetm.help.
13478 * system.h (TARGET_HELP): Poison.
13479 * Makefile.in (opts.o): Update dependencies.
13481 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13483 * config/usegld.h: New file.
13484 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
13485 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
13486 (LIB_SPEC): Likewise. Search /lib.
13487 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
13488 (RDYNAMIC_SPEC): Handle GNU ld.
13489 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
13491 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
13492 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
13493 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
13494 (STACK_CHECK_STATIC_BUILTIN): Define.
13495 * config/sol2.opt (compat-bsd): Remove.
13496 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
13497 * config/sol2-bi.h: New file.
13498 * config/sol2-gld.h: Remove.
13499 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
13500 (NO_DBX_BNSYM_ENSYM): Remove.
13501 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13502 (STACK_CHECK_STATIC_BUILTIN): Remove.
13503 Test USE_GLD instead of TARGET_GNU_LD.
13504 * config/i386/sol2-10.h: Rename to ...
13505 * config/i386/sol2-bi.h .. this.
13506 (SUBTARGET_EXTRA_SPECS): Redefine.
13507 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
13508 (MULTILIB_DEFAULTS): Remove.
13509 (DEFAULT_ARCH32_P): Define.
13510 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
13511 (ARCH64_SUBDIR): Define.
13512 Test USE_GLD instead of TARGET_GNU_LD.
13513 (I386_EMULATION): Rename to ...
13514 (ARCH32_EMULATION): ... this.
13515 (X86_64_EMULATION): Rename to ...
13516 (ARCH64_EMULATION): ... this.
13517 (TARGET_LD_EMULATION): Remove.
13518 (LINK_ARCH_SPEC): Remove.
13519 * config/i386/sol2-gas.h: Remove.
13520 * config/i386/t-sol2-10: Rename to ...
13521 * config/i386/t-sol2-64: ... this.
13522 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
13523 (AS_SPARC64_FLAG): Define.
13524 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
13525 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
13526 depending on TARGET_CPU_DEFAULT.
13527 (CPP_CPU_SPEC): Redefine.
13528 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
13529 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
13530 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
13531 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
13532 ASM_ARCH_DEFAULT_SPEC): Redefine.
13533 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13534 LINK_ARCH_DEFAULT_SPEC.
13535 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
13536 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
13537 (ARCH64_SUBDIR): Define.
13538 (LINK_ARCH64_SPEC): Redefine.
13539 (CC1_SPEC): Redefine.
13540 (OPTION_DEFAULT_SPECS): Redefine.
13541 (MULTILIB_DEFAULTS): Define.
13542 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
13543 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
13544 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
13545 (NO_DBX_BNSYM_ENSYM): Remove.
13546 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13547 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
13548 (TARGET_ASM_NAMED_SECTION): Likewise.
13549 (STACK_CHECK_STATIC_BUILTIN): Remove.
13550 * config/sparc/sol2-bi.h: Remove.
13551 * config/sparc/sol2-gas-bi.h: Remove.
13552 * config/sparc/sol2-gas.h: Remove.
13553 * config/sparc/sol2-gld-bi.h: Remove.
13554 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
13556 (*-*-solaris2*): ... here.
13558 2011-06-21 Christian Bruel <christian.bruel@st.com>
13561 * ipa-inline.c (can_inline_edge_p): Check
13562 !DECL_DISREGARD_INLINE_LIMITS.
13564 2011-06-21 Christian Bruel <christian.bruel@st.com>
13566 PR middle-end/49139
13567 * cgraphunit.c (process_function_and_variable_attributes): warn when
13568 always_inline functions that are not inline.
13569 * ipa-inline-transform.c (inline_transform): Always call
13571 * tree-inline.c (tree_inlinable_function_p): Use error instead
13573 (expand_call_inline): Likewise.
13575 2011-06-21 Jakub Jelinek <jakub@redhat.com>
13577 * Makefile.in (dg_target_exps): Set.
13578 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
13579 instead of 7, try to divide it more evenly.
13581 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
13584 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
13585 (avx256_split_unaligned_store): New definition.
13586 (ix86_option_override_internal): Enable avx256 unaligned load/store
13587 splitting only when avx256_split_unaligned_load/store is set.
13589 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
13591 * regrename.c (scan_rtx_reg): Handle the case where we write to an
13592 open chain in a smaller mode without failing the entire block.
13594 2011-06-21 Alan Modra <amodra@gmail.com>
13596 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
13597 CONST high part large-toc address.
13598 (rs6000_tls_referenced_p): Make static.
13599 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
13601 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13604 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
13605 one of the operands is a register.
13607 2011-06-20 Kai Tietz <ktietz@redhat.com>
13609 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
13610 operations in combination with binary and.
13612 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
13614 * regrename.c (do_replace): Don't update notes.
13616 2011-06-20 Alan Modra <amodra@gmail.com>
13618 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
13619 of toc-relative address in CONST.
13620 (rs6000_delegitimize_address): Recognize changed address.
13621 (rs6000_legitimize_reload_address): Likewise.
13622 (rs6000_emit_move): Don't force these constants to memory.
13623 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
13624 toc-relative address in CONST.
13625 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
13626 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
13628 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
13630 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
13631 (count_trailing_zeros): Likewise.
13633 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
13636 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
13637 .init_array can be used with .ctors on targets.
13638 * configure: Regenerated.
13640 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13642 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
13643 if the element type is volatile.
13645 2011-06-18 Jan Hubicka <jh@suse.cz>
13647 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
13648 extra name aliases.
13649 (lto_symtab_resolve_can_prevail_p): Likewise.
13650 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
13651 * cgraphbuild.c (record_reference): Remove extra body alias code.
13652 (mark_load): Likewise.
13653 (mark_store): Likewise.
13654 * cgraph.h (varpool_node): Remove extra_name filed;
13655 add alias_of and extraname_alias.
13656 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
13657 (varpool_alias_aliased_node): New inline function.
13658 (varpool_variable_node): New function.
13659 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
13660 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
13661 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
13662 (input_varpool_node): Likewise.
13663 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
13664 (varpool_externally_visible_p): Remove extra body alias code.
13665 (function_and_variable_visibility): Likewise.
13666 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
13667 (ipa_pta_execute): Use it.
13668 * varpool.c (varpool_remove_node): Remove extra name alias code.
13669 (varpool_mark_needed_node): Likewise.
13670 (varpool_analyze_pending_decls): Analyze aliases.
13671 (assemble_aliases): New functoin.
13672 (varpool_assemble_decl): Use it.
13673 (varpool_create_variable_alias): New function.
13674 (varpool_extra_name_alias): Rewrite.
13675 (varpool_for_node_and_aliases): New function.
13677 2011-06-18 Jakub Jelinek <jakub@redhat.com>
13680 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
13681 last_arg_constant and last argument doesn't match its predicate,
13682 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
13683 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
13684 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
13685 spelling of error message.
13686 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
13687 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
13688 const_0_to_255_operand instead of const_int_operand.
13691 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13693 * config/i386/sse.md (blendbits): Remove mode attribute.
13694 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13695 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13696 Check integer value of operand 3 in insn constraint.
13698 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
13700 PR rtl-optimization/48542
13701 * reload.c (find_equiv_reg): Stop looking when finding a
13703 * reload1.c (reload_as_needed): Invalidate all reload
13704 registers when crossing a setjmp-type call.
13706 2011-06-16 Jeff Law <law@redhat.com>
13708 * tree-ssa-threadupdate.c (struct redirection_data): New field
13710 (THREAD_TARGET2): Define.
13711 (redirection_data_eq): Also check that the intermediate edge is equal.
13712 (lookup_redirection_data): Drop useless argument. Extract the
13713 outgoing_edge and intermediate edge from E. Callers updated.
13714 (copy_phi_args, update_destination_phis): New functions.
13715 (fix_duplicate_block_edges): Likewise.
13716 (create_edge_and_update_destination_phis): Duplicate all the edges
13717 hung off e->aux. Use copy_phi_args.
13718 (create_duplicates): Use fix_duplicate_block_edges.
13719 (fixup_template_block): Likewise.
13720 (redirect_edges): If necessary, redirect the joiner block's incoming
13721 edge to the duplicate of the joiner block.
13722 (thread_block): Don't muck up loops when threading through a joiner
13724 (thread_through_loop_header): Handle threading through a joiner block.
13725 (mark_threaded_blocks, register_jump_thread): Likewise.
13726 * tree-flow.h (register_jump_thread): Add new argument. Callers
13728 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
13729 (thread_across_edge): Handle threading through a joiner block.
13731 2011-06-16 Martin Jambor <mjambor@suse.cz>
13733 PR tree-optimization/49343
13734 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
13735 calculate offset, provide 2nd operand for the new COMPONENT_REF.
13737 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
13739 * config/darwin-protos.h (machopic_select_rtx_section): Move to
13740 inside RTX_CODE ifdef.
13742 2011-06-16 Tom de Vries <tom@codesourcery.com>
13745 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
13746 Disallow NULL pointer for pointer arithmetic.
13748 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13752 2011-06-10 Wei Guozhi <carrot@google.com>
13755 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13756 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13757 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13759 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13761 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13762 (arm_legitimate_ldrd_p): New prototype.
13763 (arm_output_ldrd): New prototype.
13764 * config/arm/arm.c (arm_check_ldrd_operands): New function.
13765 (arm_legitimate_ldrd_p): New function.
13766 (arm_output_ldrd): New function.
13768 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
13770 PR middle-end/46500
13771 * doc/tm.texi.in: Update Copyright date.
13772 * doc/tm.texi: Regenerate.
13773 * targhooks.c (default_setup_incoming_varargs): Replace
13774 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13775 (default_pretend_outgoing_varargs_named): Likewise.
13776 (hook_pass_by_reference_must_pass_in_stack): Likewise.
13777 (hook_callee_copies_named): Likewise.
13778 (default_function_arg_advance): Likewise.
13779 (default_function_arg): Likewise.
13780 (default_function_incoming_arg): Likewise.
13781 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13782 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13783 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13784 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13785 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13786 * targhooks.h (default_setup_incoming_varargs): Likewise.
13787 (default_pretend_outgoing_varargs_named): Likewise.
13788 (hook_pass_by_reference_must_pass_in_stack): Likewise.
13789 (hook_callee_copies_named): Likewise.
13790 (default_function_arg_advance): Likewise.
13791 (default_function_arg): Likewise.
13792 (default_function_incoming_arg): Likewise.
13793 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13794 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13795 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13796 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13797 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13798 * target.def (pass_by_reference): Likewise.
13799 (setup_incoming_varargs, strict_argument_naming): Likewise.
13800 (pretend_outgoing_varargs_named, callee_copies): Likewise.
13801 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
13802 (function_incoming_arg): Likewise.
13803 * target.h: Don't include "tm.h" .
13804 (cumulative_args_t): New typedef.
13805 [GCC_TM_H] (get_cumulative_args): New static inline function.
13806 [GCC_TM_H] (pack_cumulative_args): Likewise.
13807 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
13808 argument type with cumulative_args_t.
13809 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
13810 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
13811 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13812 (frv_arg_partial_bytes, frv_function_arg): Likewise.
13813 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
13814 (frv_function_arg_1): Likewise.
13815 * config/s390/s390.c (s390_pass_by_reference): Likewise.
13816 (s390_function_arg_advance, s390_function_arg): Likewise.
13817 * config/m32c/m32c.c (m32c_function_arg): Likewise.
13818 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
13819 (m32c_strict_argument_naming): Likewise.
13820 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
13821 (spu_function_arg_advance): Likewise.
13822 (spu_setup_incoming_varargs): Likewise. Make static.
13823 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
13825 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
13826 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13827 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
13828 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
13829 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
13830 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
13831 (mep_pass_by_reference, mep_function_arg): Likewise.
13832 (mep_function_arg_advance): Likewise.
13833 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13834 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
13835 (m32r_function_arg, m32r_function_arg_advance): Likewise.
13836 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
13837 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13838 (ix86_function_arg, ix86_pass_by_reference): Likewise.
13839 (ix86_setup_incoming_varargs): Likewise.
13840 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13841 (sh_strict_argument_naming): Likewise.
13842 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
13843 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
13844 (sh_function_arg_advance, sh_function_arg): Likewise.
13845 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13846 (pdp11_function_arg_advance): Likewise.
13847 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13849 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
13850 * config/avr/avr.c (avr_function_arg): Likewise.
13851 (avr_function_arg_advance): Likewise.
13852 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13853 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
13854 (xtensa_function_arg_1): Likewise.
13855 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
13857 (xstormy16_function_arg): Likewise.
13858 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13859 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13860 (fr30_function_arg_advance): Likewise.
13861 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13862 (lm32_function_arg, lm32_function_arg_advance): Likewise.
13863 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13864 (moxie_function_arg, moxie_function_arg_advance): Likewise.
13865 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
13866 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13867 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
13868 (cris_function_arg, cris_function_incoming_arg): Likewise.
13869 (cris_function_arg_advance, cris_function_arg_1): Likewise.
13870 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13871 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
13872 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
13873 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13874 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
13875 (mn10300_arg_partial_bytes): Likewise.
13876 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13877 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
13878 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
13879 (ia64_function_arg_1): Likewise.
13880 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13881 (m68k_function_arg): Likewise.
13882 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
13883 (rs6000_function_arg, setup_incoming_varargs): Likewise.
13884 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
13885 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
13886 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
13887 (picochip_arg_advance): Likewise.
13888 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13889 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13890 (mcore_function_arg_advance): Likewise.
13891 * config/score/score.c (score_pass_by_reference): Likewise.
13892 (score_function_arg_advance): Likewise.
13893 (score_arg_partial_bytes): Likewise. Make static.
13894 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13895 * config/arm/arm.c (arm_arg_partial_bytes): Replace
13896 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13897 (arm_function_arg, arm_function_arg_advance): Likewise.
13898 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13899 * config/pa/pa.c (pa_pass_by_reference): Likewise.
13900 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13901 (pa_function_arg): Likewise.
13902 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13903 (mips_function_arg, mips_function_arg_advance): Likewise.
13904 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13905 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13906 * config/vax/vax.c (vax_function_arg): Likewise.
13907 (vax_function_arg_advance): Likewise.
13908 * config/h8300/h8300.c (h8300_function_arg): Likewise.
13909 (h8300_function_arg_advance): Likewise.
13910 * config/v850/v850.c (v850_pass_by_reference): Likewise.
13911 (v850_strict_argument_naming, v850_function_arg): Likewise.
13912 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13913 (v850_setup_incoming_varargs): Likewise.
13914 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13915 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13916 (mmix_function_arg, mmix_pass_by_reference): Likewise.
13917 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13919 * config/bfin/bfin.c (setup_incoming_varargs): Replace
13920 CUMULATIVE_ARGS* argument type with cumulative_args_t.
13921 (bfin_function_arg_advance, bfin_function_arg): Likewise.
13922 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13923 * calls.c (emit_call_1): Change type of args_so_far to
13924 cumulative_args_t. Changed all callers.
13925 (initialize_argument_information): Likewise.
13926 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13927 * dse.c (get_call_args): Likewise.
13928 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13929 * function.c (pass_by_reference, reference_callee_copied): Likewise.
13930 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13931 New member args_so_far_v. Changed all users.
13932 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13933 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13934 * config/mips/mips.c (mips_output_args_xfer): Likewise.
13935 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13936 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13937 * config/microblaze/microblaze.c (microblaze_expand_prologue):
13939 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13940 m32r_pass_by_reference.
13942 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
13944 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13945 argument to be a VEC of statements.
13946 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13947 assert that pattern statements have to have their vector type set.
13948 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13949 Change the first argument to be a VEC of statements. Update
13951 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13952 (vect_handle_widen_mult_by_const): New function.
13953 (vect_recog_widen_mult_pattern): Change the first argument to be a
13954 VEC of statements. Update documentation. Check that the constant is
13955 INTEGER_CST. Support multiplication by a constant that fits an
13956 intermediate type - call vect_handle_widen_mult_by_const.
13957 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13958 call. Handle additional pattern statements if necessary.
13960 2011-06-16 Nick Clifton <nickc@redhat.com>
13963 * config.gcc: Set cpu_type to v850 for any V850 architecture.
13964 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13965 md_file, extra_modes, out_file and extra_options are these are all
13966 deduced from cpu_type.
13968 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
13970 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13971 truncation mask to 63.
13973 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
13977 * longlong.h: Add AVR support:
13978 (count_leading_zeros): New macro.
13979 (count_trailing_zeros): New macro.
13980 (COUNT_LEADING_ZEROS_0): New macro.
13981 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
13982 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
13983 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
13984 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
13985 (LIB2FUNCS_EXCLUDE): Add _clz.
13986 * config/avr/libgcc.S (XCALL): Move up in file.
13987 (XJMP): New C Macro.
13988 (DEFUN): New asm macro.
13989 (ENDF): New asm macro.
13990 (__ffssi2): New function.
13991 (__ffshi2): New function.
13992 (__loop_ffsqi2): New function.
13993 (__ctzsi2): New function.
13994 (__ctzhi2): New function.
13995 (__clzdi2): New function.
13996 (__clzsi2): New function.
13997 (__clzhi2): New function.
13998 (__paritydi2): New function.
13999 (__paritysi2): New function.
14000 (__parityhi2): New function.
14001 (__parityqi2): New function.
14002 (__popcounthi2): New function.
14003 (__popcountsi2): New function.
14004 (__popcountdi2): New function.
14005 (__popcountqi2): New function.
14006 (__bswapsi2): New function.
14007 (__bswapdi2): New function.
14008 (__ashldi3): New function.
14009 (__ashrdi3): New function.
14010 (__lshrdi3): New function.
14011 Fix suspicous lines.
14013 2011-06-16 Richard Guenther <rguenther@suse.de>
14015 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
14016 the same as x != 0.
14017 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
14019 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
14020 equality compares against zero for the lower bit.
14022 2011-06-16 Jakub Jelinek <jakub@redhat.com>
14024 PR tree-optimization/49419
14025 * tree-vrp.c (execute_vrp): Call init_range_assertions
14026 before estimate_numbers_of_iterations, call
14027 free_number_of_iterations_estimates before calling
14028 remove_range_assertions.
14030 2011-06-16 Revital Eres <revital.eres@linaro.org>
14032 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
14033 (struct partial_schedule): Add rows_length field.
14034 (verify_partial_schedule): Check rows_length.
14035 (ps_insert_empty_row): Handle rows_length.
14036 (create_partial_schedule): Likewise.
14037 (free_partial_schedule): Likewise.
14038 (reset_partial_schedule): Likewise.
14039 (create_ps_insn): Remove rest_count argument.
14040 (remove_node_from_ps): Update rows_length.
14041 (add_node_to_ps): Update rows_length and call create_ps_insn
14042 without passing row_rest_count.
14043 (rotate_partial_schedule): Update rows_length.
14045 2011-06-16 Revital Eres <revital.eres@linaro.org>
14047 * ddg.c (add_intra_loop_mem_dep): New function.
14048 (build_intra_loop_deps): Call it.
14050 2011-06-13 Jeff Law <law@redhat.com>
14052 * df-problems.c (df_lr_local_compute): Manually CSE
14053 PIC_OFFSET_TABLE_REGNUM.
14054 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
14055 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
14057 2011-06-13 Jan Hubicka <jh@suse.cz>
14059 * cgraphunit.c (handle_alias_pairs): New function.
14060 (cgraph_finalize_compilation_unit): Use it.
14061 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
14062 as externally visible.
14064 2011-06-15 Richard Guenther <rguenther@suse.de>
14066 * expr.c (expand_expr_real_2): Reduce all integral types to
14067 bitfield precision.
14068 (expand_expr_real_1): Likewise.
14070 2011-06-15 Martin Jambor <mjambor@suse.cz>
14072 PR tree-optimization/48613
14073 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
14074 ipa_node_params_vector is NULL.
14076 2011-06-15 Jakub Jelinek <jakub@redhat.com>
14079 * dwarf2out.c (dw_loc_list_node): Add force field.
14080 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
14081 location in the list, even if it is modified before first real insn.
14082 (output_loc_list): Emit empty ranges with force flag set.
14083 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
14085 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
14088 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
14089 (fence_to_rewind). Use it to notice when bookkeeping will be placed
14090 above a fence. Update comments.
14091 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
14092 placed just above it. Do not allow NULL place_to_insert.
14094 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
14096 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
14097 (slpeel_tree_peel_loop_to_edge): Don't call
14098 remove_dead_stmts_from_loop.
14099 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14100 remove irrelevant pattern statements. For irrelevant statements
14101 check if it is the last statement of a detected pattern, use
14102 corresponding pattern statement instead.
14103 (destroy_loop_vec_info): No need to remove pattern statements,
14104 only free stmt_vec_info.
14105 (vect_transform_loop): For irrelevant statements check if it is
14106 the last statement of a detected pattern, use corresponding
14107 pattern statement instead.
14108 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
14109 pattern statements. Set basic block for the new statement.
14110 (vect_pattern_recog): Update documentation.
14111 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
14112 operands of pattern statements.
14113 (vectorizable_call): Fix printing. In case of a pattern statement
14114 use the lhs of the original statement when creating a dummy
14115 statement to replace the original call.
14116 (vect_analyze_stmt): For irrelevant statements check if it is
14117 the last statement of a detected pattern, use corresponding
14118 pattern statement instead.
14119 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
14120 statements use gsi of the original statement.
14122 2011-06-14 Joseph Myers <joseph@codesourcery.com>
14124 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
14125 common/common-target-def.h.
14126 * target.def (default_target_flags, handle_option,
14127 supports_split_stack, optimization_table, init_struct,
14128 except_unwind_info, unwind_tables_default, have_named_sections):
14129 Move to common/common-target.def.
14130 * target.h (enum opt_levels, struct default_options): Move to
14131 common/common-target.h.
14132 * targhooks.c (default_except_unwind_info,
14133 dwarf2_except_unwind_info, sjlj_except_unwind_info,
14134 default_target_handle_option, empty_optimization_table): Move to
14135 common/common-targhooks.c.
14136 * targhooks.h (default_except_unwind_info,
14137 dwarf2_except_unwind_info, sjlj_except_unwind_info,
14138 default_target_handle_option, empty_optimization_table): Move to
14139 common/common-targhooks.h.
14140 * common/common-target-def.h: Include common/common-targhooks.h.
14141 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
14143 * common/common-target.def (handle_option, option_init_struct,
14144 option_optimization_table, default_target_flags,
14145 except_unwind_info, supports_split_stack, unwind_tables_default,
14146 have_named_sections): Move from target.def.
14147 (HOOK_PREFIX): Undefine at end of file.
14148 * common/common-target.h: Include input.h.
14149 (enum opt_levels, struct default_options): Move from target.h.
14150 * common/common-targhooks.c, common/common-targhooks.h: New.
14151 * config.gcc (target_has_targetm_common): Default to yes.
14152 (moxie*): Set target_has_targetm_common=no.
14153 (hppa*-*-*): Don't set target_has_targetm_common=yes.
14154 * doc/tm.texi: Regenerate.
14155 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
14156 (C_TARGET_DEF_H): Add common/common-targhooks.h.
14157 (GCC_OBJS): Remove vec.o.
14158 (OBJS): Remove hooks.o and vec.o.
14159 (OBJS-libcommon-target): Add vec.o, hooks.o and
14160 common/common-targhooks.o.
14161 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
14162 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
14163 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
14164 cfglayout.o, $(out_object_file), $(common_out_object_file)):
14165 Update dependencies.
14166 (common/common-targhooks.o): New.
14167 * common/config/default-common.c: Include tm.h. Add FIXME comment.
14168 * common/config/pa/pa-common.c: Include more headers. Take
14169 copyright dates from pa.c.
14170 (pa_option_optimization_table, pa_handle_option,
14171 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
14172 TARGET_HANDLE_OPTION): Move from pa.c.
14173 * common/config/alpha/alpha-common.c,
14174 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
14175 common/config/bfin/bfin-common.c,
14176 common/config/cris/cris-common.c,
14177 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
14178 common/config/h8300/h8300-common.c,
14179 common/config/i386/i386-common.c,
14180 common/config/ia64/ia64-common.c,
14181 common/config/iq2000/iq2000-common.c,
14182 common/config/lm32/lm32-common.c,
14183 common/config/m32c/m32c-common.c,
14184 common/config/m32r/m32r-common.c,
14185 common/config/m68k/m68k-common.c,
14186 common/config/mcore/mcore-common.c,
14187 common/config/mep/mep-common.c,
14188 common/config/microblaze/microblaze-common.c,
14189 common/config/mips/mips-common.c,
14190 common/config/mmix/mmix-common.c,
14191 common/config/mn10300/mn10300-common.c,
14192 common/config/pdp11/pdp11-common.c,
14193 common/config/picochip/picochip-common.c,
14194 common/config/rs6000/rs6000-common.c,
14195 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
14196 common/config/score/score-common.c, common/config/sh/sh-common.c,
14197 common/config/sparc/sparc-common.c,
14198 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
14199 common/config/vax/vax-common.c,
14200 common/config/xstormy16/xstormy16-common.c,
14201 common/config/xtensa/xtensa-common.c: New.
14202 * config/alpha/alpha.c: Include common/common-target.h.
14203 (alpha_option_optimization_table, alpha_handle_option,
14204 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14205 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
14206 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
14207 * config/arm/arm.c (arm_option_optimization_table,
14208 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14209 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
14211 * config/avr/avr.c (avr_option_optimization_table,
14212 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14214 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
14215 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
14216 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
14217 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
14218 * config/cris/cris.c (cris_option_optimization_table,
14219 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14220 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
14222 * config/fr30/fr30.c (fr30_option_optimization_table,
14223 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
14225 * config/frv/frv.c (frv_option_optimization_table,
14226 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
14227 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
14228 * config/h8300/h8300.c (h8300_option_optimization_table,
14229 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14230 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
14231 * config/i386/i386-protos.h (ix86_handle_option): Declare.
14232 * config/i386/i386.c: Include common/common-target.h.
14233 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
14234 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
14235 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
14236 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
14237 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
14238 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
14239 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
14240 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
14241 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
14242 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
14243 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
14244 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
14245 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
14246 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
14247 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
14248 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
14249 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
14250 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
14251 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
14252 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
14253 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
14254 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
14255 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
14256 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
14257 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
14258 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
14259 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
14260 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
14261 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
14262 ix86_option_optimization_table, ix86_option_init_struct,
14263 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
14264 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14265 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
14267 * config/i386/t-i386 (i386.o): Update dependencies.
14268 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
14269 * config/ia64/ia64.c (ia64_option_optimization_table,
14270 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14271 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14272 ia64_handle_option): Move to ia64-common.c.
14273 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
14274 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
14275 * config/lm32/lm32.c (lm32_option_optimization_table,
14276 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14278 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
14280 * config/m32r/m32r.c (m32r_option_optimization_table,
14281 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14282 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14283 m32r_handle_option): Move to m32r-common.c.
14284 (m32r_memory_move_cost): Remove comment referring to
14285 TARGET_HANDLE_OPTION.
14286 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
14287 Move to m68k-common.c.
14288 * config/mcore/mcore.c (mcore_option_optimization_table,
14289 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14290 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
14291 * config/mep/mep.c (mep_option_optimization_table,
14292 mep_handle_option, TARGET_HANDLE_OPTION,
14293 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
14294 Move to mep-common.c.
14295 * config/microblaze/microblaze.c
14296 (microblaze_option_optimization_table,
14297 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14298 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
14299 * config/mips/mips.c (mips_handle_option,
14300 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14301 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
14303 * config/mmix/mmix.c (mmix_option_optimization_table,
14304 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14305 Move to mmix-common.c.
14306 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
14307 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
14308 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14309 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
14310 * config/pa/pa.c: Include common/common-target.h.
14311 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14312 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14313 pa_handle_option): Move to pa-common.c.
14314 (pa_option_override): Use targetm_common.except_unwind_info.
14315 (pa_asm_output_mi_thunk, pa_function_section): Use
14316 targetm_common.have_named_sections.
14317 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
14318 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14319 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14320 pdp11_handle_option, pdp11_option_init_struct): Move to
14322 * config/picochip/picochip.c (picochip_option_optimization_table,
14323 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
14324 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
14325 * config/rs6000/rs6000.c: Include common/common-target.h.
14326 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
14327 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
14328 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
14329 rs6000_handle_option): Move to rs6000-common.c.
14330 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14331 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
14332 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14333 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
14334 * config/s390/s390.c (processor_flags_table,
14335 s390_option_optimization_table, s390_option_init_struct,
14336 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
14337 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14338 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
14339 * config/s390/s390.h (processor_flags_table): Declare.
14340 * config/score/score.c (score_option_optimization_table,
14341 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14342 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
14343 score_handle_option): Move to score-common.c.
14344 * config/sh/sh.c (sh_option_optimization_table,
14345 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14346 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14347 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
14348 * config/sparc/sparc.c: Include common/common-target.h.
14349 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14350 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
14351 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
14352 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
14353 spu_option_init_struct): Move to spu-common.c.
14354 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
14355 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
14356 * config/v850/v850.c (small_memory_physical_max,
14357 v850_handle_memory_optionn v850_handle_option,
14358 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14359 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
14361 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
14362 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
14363 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14364 Move to xtensa-common.c.
14365 * cfglayout.c: Include common/common-target.h.
14366 (fixup_reorder_chain): Use targetm_common.have_named_sections.
14367 * cfgrtl.c: Include common/common-target.h.
14368 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
14369 targetm_common.have_named_sections.
14370 * dbxout.c: Include common/common-target.h.
14371 (dbxout_function_end): Use targetm_common.have_named_sections.
14372 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
14373 targetm_common.except_unwind_info.
14374 * dwarf2out.c: Include common/common-target.h.
14375 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
14376 dwarf2out_begin_prologue, dwarf2out_frame_init,
14377 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
14378 targetm_common.except_unwind_info.
14379 * except.c: Include common/common-target.h.
14380 (init_eh, finish_eh_generation,
14381 output_one_function_exception_table): Use
14382 targetm_common.except_unwind_info.
14383 (switch_to_exception_section): Use targetm_common.have_named_sections.
14384 * explow.c: Include common/common-target.h.
14385 * expr.c: Include common/common-target.h.
14386 (build_personality_function): Use targetm_common.except_unwind_info.
14387 * function.c: Include common/common-target.h.
14388 (expand_function_end): Use targetm_common.except_unwind_info.
14389 * haifa-sched.c: Include common/common-target.h.
14390 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
14391 * lto-opts.c: Include common/common-target.h instead of target.h.
14392 (lto_reissue_options): Use targetm_common.handle_option.
14393 * opts.c: Include common/common-target.h.
14394 (target_handle_option): Use targetm_common.handle_option.
14395 (init_options_struct): Update comment referring to
14396 targetm.target_option.optimization. Use
14397 targetm_common.default_target_flags,
14398 targetm_common.unwind_tables_default and
14399 targetm_common.option_init_struct.
14400 (default_options_optimization): Use
14401 targetm_common.option_optimization_table.
14402 (finish_options): Use targetm_common.except_unwind_info,
14403 targetm_common.unwind_tables_default,
14404 targetm_common.have_named_sections and
14405 targetm_common.supports_split_stack.
14406 * toplev.c: Include common/common-target.h.
14407 (process_options): Use targetm_common.have_named_sections.
14408 * tree-tailcall.c: Include common/common-target.h.
14409 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
14410 * tree.c: Include common/common-target.h.
14411 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
14412 * varasm.c: Include common/common-target.h.
14413 (resolve_unique_section, hot_function_section,
14414 default_function_section): Use targetm_common.have_named_sections.
14416 2011-06-14 Easwaran Raman <eraman@google.com>
14418 PR rtl-optimization/44194
14419 * dse.c: Include tree-flow.h
14420 (insn_info): Add new field non_frame_wild_read.
14421 (group_info): Add new fields escaped_n and escaped_p.
14422 (kill_on_calls): New variable.
14423 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
14424 (dse_step0): Initialize kill_on_calls.
14425 (can_escape): New function.
14426 (set_usage_bits): Add additional parameter; record information
14427 about escaped locations.
14428 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
14429 (dse_step2_nospill): Set kill_on_calls based on
14430 group->escaped_n and group->escaped_n.
14431 (add_wild_read): Refactor into...
14432 (reset_active_stores): ... New function, and
14433 (free_read_records): ... New function.
14434 (add_non_frame_wild_read): New function.
14435 (scan_insn): Call add_non_frame_wild_read on non-const calls.
14436 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
14437 (dse_step5_nospill): Call scan_reads_nospill for instructions
14438 marked as non_frame_wild_read.
14439 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
14441 2011-06-14 Joseph Myers <joseph@codesourcery.com>
14443 * common/common-target-def.h, common/common-target.def,
14444 common/common-target.h, common/config/default-common.c,
14445 common/config/pa/pa-common.c: New files.
14446 * Makefile.in (common_out_file, common_out_object_file,
14447 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
14448 (OBJS-libcommon-target): Include $(common_out_object_file).
14449 (prefix.o): Update dependencies.
14450 ($(common_out_object_file), common/common-target-hooks-def.h,
14451 s-common-target-hooks-def-h): New.
14452 (s-tm-texi): Also check timestamp on common-target.def.
14453 (build/genhooks.o): Update dependencies.
14454 * config.gcc (common_out_file, target_has_targetm_common): Define.
14455 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
14456 TARGET_ALWAYS_STRIP_DOTDOT.
14457 * configure.ac (common_out_object_file): Define.
14458 (common_out_file, common_out_object_file): Substitute.
14459 (common): Create directory.
14460 * configure: Regenerate.
14461 * doc/tm.texi.in (targetm_common): Document.
14462 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
14463 * doc/tm.texi: Regenerate.
14464 * genhooks.c (hook_array): Also include common/common-target.def.
14465 * prefix.c (tm.h): Don't include.
14466 (common/common-target.h): Include.
14467 (ALWAYS_STRIP_DOTDOT): Don't define.
14468 (update_path): Use targetm_common.always_strip_dotdot instead of
14469 ALWAYS_STRIP_DOTDOT.
14470 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
14472 2011-06-14 David Li <davidxl@google.com>
14474 * passes.c (execute_function_todo): Remove TODO_dump_func.
14475 (execute_one_pass): Remove TODO_dump_func.
14476 (execute_function_dump): New function.
14477 * tree-vrp.c: Remove TODO_dump_func.
14478 * regrename.c: Remove TODO_dump_func.
14479 * fwprop.c: Remove TODO_dump_func.
14480 * tree-into-ssa.c: Remove TODO_dump_func.
14481 * tree-complex.c: Remove TODO_dump_func.
14482 * tracer.c: Remove TODO_dump_func.
14483 * tree-loop-distribution.c: Remove TODO_dump_func.
14484 * postreload-gcse.c: Remove TODO_dump_func.
14485 * postreload.c: Remove TODO_dump_func.
14486 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
14487 * tree-tailcall.c: Remove TODO_dump_func.
14488 * ipa-cp.c: Remove TODO_dump_func.
14489 * final.c: Remove TODO_dump_func.
14490 * tree-emutls.c: Remove TODO_dump_func.
14491 * omp-low.c: Remove TODO_dump_func.
14492 * tree-ssa-dse.c: Remove TODO_dump_func.
14493 * tree-ssa-uncprop.c: Remove TODO_dump_func.
14494 * auto-inc-dec.c: Remove TODO_dump_func.
14495 * reorg.c: Remove TODO_dump_func.
14496 * tree-ssa-copyrename.c: Remove TODO_dump_func.
14497 * tree-ssa-ccp.c: Remove TODO_dump_func.
14498 * compare-elim.c: Remove TODO_dump_func.
14499 * mode-switching.c: Remove TODO_dump_func.
14500 * modulo-sched.c: Remove TODO_dump_func.
14501 * tree-call-cdce.c: Remove TODO_dump_func.
14502 * cse.c: Remove TODO_dump_func.
14503 * web.c: Remove TODO_dump_func.
14504 * tree-stdarg.c: Remove TODO_dump_func.
14505 * lto-streamer-out.c: Remove TODO_dump_func.
14506 * tree-ssa-math-opts.c: Remove TODO_dump_func.
14507 * tree-ssa-dom.c: Remove TODO_dump_func.
14508 * tree-nrv.c: Remove TODO_dump_func.
14509 * loop-init.c: Remove TODO_dump_func.
14510 * gimple-low.c: Remove TODO_dump_func.
14511 * ipa-inline.c: Remove TODO_dump_func.
14512 * tree-ssa-sink.c: Remove TODO_dump_func.
14513 * jump.c: Remove TODO_dump_func.
14514 * ifcvt.c: Remove TODO_dump_func.
14515 * tree-ssa-loop.c: Remove TODO_dump_func.
14516 * recog.c: Remove TODO_dump_func.
14517 * dse.c: Remove TODO_dump_func.
14518 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
14519 * matrix-reorg.c: Remove TODO_dump_func.
14520 * tree-eh.c: Remove TODO_dump_func.
14521 * regmove.c: Remove TODO_dump_func.
14522 * function.c: Remove TODO_dump_func.
14523 * tree-vectorizer.c: Remove TODO_dump_func.
14524 * ipa-split.c: Remove TODO_dump_func.
14525 * gcse.c: Remove TODO_dump_func.
14526 * tree-if-conv.c: Remove TODO_dump_func.
14527 * init-regs.c: Remove TODO_dump_func.
14528 * tree-ssa-phiopt.c: Remove TODO_dump_func.
14529 * implicit-zee.c: Remove TODO_dump_func.
14530 * lower-subreg.c: Remove TODO_dump_func.
14531 * bt-load.c: Remove TODO_dump_func.
14532 * tree-dfa.c: Remove TODO_dump_func.
14533 * except.c: Remove TODO_dump_func.
14534 * emit-rtl.c: Remove TODO_dump_func.
14535 * store-motion.c: Remove TODO_dump_func.
14536 * cfgexpand.c: Remove TODO_dump_func.
14537 * tree-cfgcleanup.c: Remove TODO_dump_func.
14538 * cfgcleanup.c: Remove TODO_dump_func.
14539 * tree-ssa-pre.c: Remove TODO_dump_func.
14540 * tree-sra.c: Remove TODO_dump_func.
14541 * tree-mudflap.c: Remove TODO_dump_func.
14542 * tree-ssa-copy.c: Remove TODO_dump_func.
14543 * cfglayout.c: Remove TODO_dump_func.
14544 * tree-ssa-forwprop.c: Remove TODO_dump_func.
14545 * tree-ssa-dce.c: Remove TODO_dump_func.
14546 * ira.c: Remove TODO_dump_func.
14547 * tree-ssa.c: Remove TODO_dump_func.
14548 * integrate.c: Remove TODO_dump_func.
14549 * tree-optimize.c: Remove TODO_dump_func.
14550 * tree-ssa-phiprop.c: Remove TODO_dump_func.
14551 * tree-object-size.c: Remove TODO_dump_func.
14552 * combine.c: Remove TODO_dump_func.
14553 * bb-reorder.c: Remove TODO_dump_func.
14554 * cprop.c: Remove TODO_dump_func.
14555 * var-tracking.c: Remove TODO_dump_func.
14556 * tree-profile.c: Remove TODO_dump_func.
14557 * tree-vect-generic.c: Remove TODO_dump_func.
14558 * reg-stack.c: Remove TODO_dump_func.
14559 * sched-rgn.c: Remove TODO_dump_func.
14560 * tree-ssa-structalias.c: Remove TODO_dump_func.
14561 * tree-switch-conversion.c: Remove TODO_dump_func.
14562 * tree-cfg.c: Remove TODO_dump_func.
14563 * tree-ssa-reassoc.c: Remove TODO_dump_func.
14564 * combine-stack-adj.c: Remove TODO_dump_func.
14565 * dce.c: Remove TODO_dump_func.
14566 * tree-ssanames.c: Remove TODO_dump_func.
14567 * regcprop.c: Remove TODO_dump_func.
14569 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
14571 PR middle-end/47364
14572 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
14573 and properly handle result not in Pmode.
14575 2011-06-14 Robert Millan <rmh@gnu.org>
14577 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
14578 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
14581 * config/i386/kfreebsd-gnu64.h: New file.
14582 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
14583 with `i386/kfreebsd-gnu64.h'.
14585 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
14586 (GNU_USER_LINK_EMULATION64): New macros.
14587 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
14588 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
14589 of hardcoding `elf_i386' and `elf_x86_64'.
14591 2011-06-14 Nick Clifton <nickc@redhat.com>
14594 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
14597 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
14599 2011-06-14 Jakub Jelinek <jakub@redhat.com>
14602 * tree.h (DECL_NONSHAREABLE): Define.
14603 (struct tree_decl_common): Change decl_common_unused to
14604 decl_nonshareable_flag.
14605 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
14606 Ignore vars with DECL_NONSHAREABLE bit set.
14607 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
14608 on stores to automatic aggregate vars.
14610 PR rtl-optimization/49390
14612 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
14614 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14617 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
14618 Tom de Vries <tom@codesourcery.com>
14621 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
14622 Document changed semantics.
14623 (max_stmt_executions, max_stmt_executions_int): Declare.
14624 * tree-data-ref.c (estimated_loop_iterations)
14625 (estimated_loop_iterations_int): Move functions...
14626 * tree-ssa-loop-niter.c (estimated_loop_iterations)
14627 (estimated_loop_iterations_int): here.
14628 (record_estimate): Change nb_iterations_upper_bound and
14629 nb_iterations_estimate semantics.
14630 (max_stmt_executions, max_stmt_executions_int): New function.
14631 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
14632 (max_stmt_executions_tree): this.
14633 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
14634 estimated_loop_iterations_tree.
14635 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
14636 max_stmt_executions_int instead of estimated_loop_iterations_int.
14637 * predict.c (predict_loops): Idem.
14638 * tree-parloops.c (parallelize_loops): Idem.
14639 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
14640 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
14641 (init_omega_for_ddr_1): Idem.
14642 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
14643 (loop_prefetch_arrays): Idem
14644 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
14645 max_stmt_executions instead of estimated_loop_iterations.
14646 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
14647 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
14648 instead of nb_iterations_upper_bound.
14650 2011-06-13 Jan Hubicka <jh@suse.cz>
14652 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
14654 2011-06-14 Richard Henderson <rth@redhat.com>
14657 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
14658 (based_loc_descr): Assert it's true.
14659 (compute_frame_pointer_to_fb_displacement): Set it, rather than
14660 aborting immediately.
14662 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
14663 Mingfeng Wu <mingfeng@faraday-tech.com>
14665 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
14667 2011-06-13 Jan Hubicka <jh@suse.cz>
14669 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
14671 2011-06-13 Jan Hubicka <jh@suse.cz>
14673 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
14674 similarly to DECL_COMDAT.
14675 * cgraphunit.c (cgraph_analyze_function): Likewise.
14676 * ipa.c (function_and_variable_visibility): Likewise.
14678 2011-06-13 Jan Hubicka <jh@suse.cz>
14680 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
14681 BINFO_VIRTUALS when streaming for ltrans unit.
14683 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
14685 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
14686 (movdi_internal64): Same.
14688 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
14691 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
14692 a set of similar patterns, where the MATCH_OPERAND for the function
14693 argument is replaced with individual references to hardware registers.
14694 (save_fpregs_<mode>): Ditto
14695 (restore_gpregs_<mode>): Ditto
14696 (return_and_restore_gpregs_<mode>): Ditto
14697 (return_and_restore_fpregs_<mode>): Ditto
14698 (return_and_restore_fpregs_aix_<mode>): Ditto
14700 2011-06-13 Jan Hubicka <jh@suse.cz>
14702 * ipa-utils.c (postorder_stack): New structure.
14703 (ipa_reverse_postorder): Handle aliases.
14705 2011-06-13 Jan Hubicka <jh@suse.cz>
14707 * ipa-inline.c (reset_edge_caches): Walk aliases.
14708 (update_caller_keys): Do not test inlinability of aliases.
14709 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
14710 (do_estimate_growth): Fix typo.
14712 2011-06-13 Jan Hubicka <jh@suse.cz>
14714 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
14715 (can_remove_node_now_p): ... here; handle same comdat groups.
14716 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
14717 (inline_call): Update use of can_remove_node_now_p.
14719 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14721 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
14722 condition to disallow non-identical memory locations.
14723 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
14724 preference to bit manipulation instructions.
14726 2011-06-13 Jan Hubicka <jh@suse.cz>
14728 * cgraph.c (cgraph_for_node_thunks_and_aliases,
14729 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
14730 (nonremovable_p): New function.
14731 (cgraph_can_remove_if_no_direct_calls_p): New function.
14732 (used_from_object_file_p): New functoin.
14733 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
14734 references from aliases.
14735 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
14736 * ipa-inline.c (check_caller_edge): New function.
14737 (want_inline_function_called_once_p): Use it; accept aliases called
14739 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
14741 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14744 * config/arm/neon.md (vec_pack_trunc): Set the lengths
14745 correctly for the case with Quad vectors.
14747 2011-06-13 Jakub Jelinek <jakub@redhat.com>
14748 Ira Rosen <ira.rosen@linaro.org>
14750 PR tree-optimization/49352
14751 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
14752 all, make sure loop_use_stmt after the loop is a def stmt of a used
14753 SSA_NAME that is the only one defined inside of the loop. Don't
14754 check for COND_EXPR and GIMPLE_BINARY_RHS.
14755 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
14756 check_reduction is true.
14758 2011-06-11 Jan Hubicka <jh@suse.cz>
14760 PR middle-end/49373
14761 * ipa.c (cgraph_externally_visible_p): Check resolution info.
14763 2011-06-11 Jan Hubicka <jh@suse.cz>
14765 PR middle-end/48836
14766 * ipa-inline-transform.c: Include tree-pass.h
14767 (inline_transform): Set TODO_update_ssa_only_virtuals.
14768 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
14770 2011-06-11 Jan Hubicka <jh@suse.cz>
14772 PR middle-end/49378
14773 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
14774 aliases and thunks.
14776 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
14778 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
14779 Take number of iterations to peel into account for equally frequent
14780 misalignment values.
14782 2011-06-11 Jan Hubicka <jh@suse.cz>
14784 * lto-streamer-out.c (produce_symtab): Stream out the newly
14785 represented aliases.
14787 2011-06-11 Jan Hubicka <jh@suse.cz>
14789 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
14791 (ipa_update_after_lto_read): Likewise.
14792 (ipa_write_node_info): Do not sream call_with_var_arguments.
14793 (ipa_read_node_info): Likewise.
14795 2011-06-11 Jan Hubicka <jh@suse.cz>
14797 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
14799 2011-06-11 Jan Hubicka <jh@suse.cz>
14801 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
14802 (lto_symtab_resolve_can_prevail_p): Likewise.
14803 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
14804 * cgraph.c (same_body_aliases_done): New global var.
14805 (cgraph_same_body_alias_1): Rename to ...
14806 (cgraph_create_function_alias): ... this one; reorg to new
14808 (cgraph_same_body_alias): Use cgraph_create_function_alias;
14809 record references when asked to.
14810 (cgraph_add_thunk): Fix formating.
14811 (cgraph_get_node): Kill same body alias code.
14812 (cgraph_node_for_asm): Likewise.
14813 (cgraph_remove_same_body_alias): Remove.
14814 (cgraph_remove_node): Kill same body alias code.
14815 (cgraph_mark_address_taken_node): Mark also the aliased function
14816 as having address taken.
14817 (dump_cgraph_node): Dump same body aliases.
14818 (cgraph_for_node_thunks_and_aliases): Update for new alias
14820 (cgraph_for_node_and_aliases): Likewise.
14821 * cgraph.h (same_body): Kll pointer.
14822 (same_body_alias): Update comment.
14823 (same_body_aliases_done): Declare.
14824 (cgraph_remove_same_body_alias): Remove declaration.
14825 (cgraph_create_function_alias): Declare.
14826 (cgraph_process_same_body_aliases): Declare.
14827 (cgraph_function_with_gimple_body_p): Check for alias.
14828 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
14829 (cgraph_alias_aliased_node): New function.
14830 (cgraph_function_node): Update for new aliases.
14831 (cgraph_function_or_thunk_node): Likewise.
14832 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
14833 (inline_call): Remove dead aliases.
14834 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
14835 name hack for same body aliases.
14836 (clone_of_p): Look through aliases.
14837 (verify_cgraph_node): Verify aliases.
14838 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
14839 (cgraph_process_same_body_aliases): New function.
14840 (process_function_and_variable_attributes): Disable weakref warning on
14842 (cgraph_analyze_functions): Handle aliases.
14843 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
14844 (assemble_thunks): Rename to ...
14845 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
14846 (cgraph_expand_function): Remove alias output code.
14847 (cgraph_output_in_order): Skip aliases.
14848 (cgraph_preserve_function_body_p): Aliases don't need preserving.
14849 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
14850 (ipa_record_reference): Do not assert on alias references.
14851 (ipa_ref_has_aliases_p): New function.
14852 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
14853 (ipa_ref_has_aliases_p): Declare.
14854 * lto-cgraph.c (lto_output_node): Handle aliases.
14855 (input_node): Likewise.
14856 * lto-streamer-out.c (lto_output): Skip aliases.
14857 (produce_symtab): Kill same_body_alias code.
14858 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
14859 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
14860 * ipa-inline.c (update_caller_keys): Walk aliases.
14861 (inline_small_functions): Fix thinko in previous patch.
14862 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
14863 (function_and_variable_visibility): Do not walk same body aliases.
14864 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
14865 (ipa_pta_execute): Use it.
14867 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14869 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
14870 (*vec_dupv2df): Rename from vec_dupv2df.
14871 (vec_dupv2df): New expander.
14873 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14875 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
14877 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
14879 * config/i386/i386.md: Use default value in "isa" attribute.
14880 * config/i386/sse.md: Ditto.
14881 * config/i386/mmx.md: Ditto.
14883 2011-06-10 Wei Guozhi <carrot@google.com>
14886 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14887 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14888 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14890 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14892 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14893 (arm_legitimate_ldrd_p): New prototype.
14894 (arm_output_ldrd): New prototype.
14895 * config/arm/arm.c (arm_check_ldrd_operands): New function.
14896 (arm_legitimate_ldrd_p): New function.
14897 (arm_output_ldrd): New function.
14899 2011-06-10 David Li <davidxl@google.com>
14901 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14902 * passes.c (passr_eq): New function.
14903 (create_pass_tab): New function.
14904 (pass_traverse): New function.
14905 (dump_one_pass): New function.
14906 (dump_pass_list): New function.
14907 (dump_passes): New function.
14909 2011-06-10 Jan Hubicka <jh@suse.cz>
14911 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14912 setting the nothrow flag.
14913 * ipa-reference.c (propagate): Skip aliases.
14914 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14915 (propagate_nothrow): Skip aliases; do not update cgraph.
14916 (local_pure_const): Do not update cgraph.
14917 * tree-profile.c (tree_profiling): Do fixup_cfg.
14919 2011-06-10 Jan Hubicka <jh@suse.cz>
14921 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14922 (cgraph_local_node_p): ... here; handle aliases.
14923 (has_addr_references_p): Break out from ...;
14924 (cgraph_remove_unreachable_nodes) ... here.
14926 2011-06-10 Jan Hubicka <jh@suse.cz>
14928 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14929 * common.opt (flag_inline_functions_called_once): Do not
14932 2011-06-10 Jan Hubicka <jh@suse.cz>
14934 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14935 (ipcp_initialize_node_lattices): Do not deal with aliases;
14936 Do not try to propagate through thunks.
14937 (ipcp_change_tops_to_bottom): Do not deal with aliases.
14939 2011-06-10 Jan Hubicka <jh@suse.cz>
14941 * ipa-prop.c (ipa_write_node_info): Stream jump functions
14942 for indirect calls.
14943 (ipa_read_node_info): Likewise.
14945 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14948 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14949 (build_and_insert_call): Likewise.
14950 (build_and_insert_ref): New.
14951 (gimple_expand_builtin_pow): Minor cleanup.
14952 (gimple_expand_builtin_cabs): New.
14953 (execute_cse_sincos): Add case for BUILT_IN_CABS.
14955 2011-06-10 Jan Hubicka <jh@suse.cz>
14957 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14958 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14959 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14960 (ipcp_propagate_stage): Skip aliases when propagating.
14961 (ipcp_need_redirect_p): Skip aliases.
14962 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14963 collect_callers_of_node.
14964 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14966 (ipa_compute_jump_functions): Look through aliases.
14968 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14970 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14972 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
14974 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14976 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14978 2011-06-10 Jan Hubicka <jh@suse.cz>
14980 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
14981 Update call of gimple_get_virt_method_for_binfo.
14982 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
14983 refuse_thunks parameter.
14984 (gimple_fold_call): Update.
14985 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
14987 2011-06-10 Jan Hubicka <jh@suse.cz>
14989 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
14990 (not_all_callers_have_enough_arguments_p): ... this one; turn into
14991 worker for cgraph_for_node_and_aliases.
14992 (convert_callers_for_node): Break out from ...
14993 (convert_callers): ... here.
14994 (modify_function): Use collect_callers_of_node.
14995 (ipa_early_sra): Use cgraph_for_node_and_aliases.
14997 2011-06-10 Richard Guenther <rguenther@suse.de>
14999 PR tree-optimization/49361
15000 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
15001 when not already in gimple form.
15003 2011-06-10 Richard Guenther <rguenther@suse.de>
15006 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
15007 FOR_EACH_PHI_OR_STMT_USE.
15009 2011-06-10 Jan Hubicka <jh@suse.cz>
15011 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
15012 (clone_inlined_nodes): ... here.
15013 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
15014 to real destination prior inlining.
15015 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
15016 can_early_inline_edge_p, want_early_inline_function_p,
15017 want_early_inline_function_p, want_inline_small_function_p,
15018 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
15019 edge_badness, update_all_callee_keys, lookup_recursive_calls,
15020 add_new_edges_to_heap, inline_small_functions, flatten_function,
15021 inline_always_inline_functions, early_inline_small_functions): Use
15022 cgraph_function_or_thunk_node.
15023 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
15024 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
15025 (do_estimate_edge_growth_1): Break out from ...
15026 (do_estimate_growth) ... here; walk aliases.
15027 (inline_generate_summary): Skip aliases.
15029 2011-06-10 Richard Guenther <rguenther@suse.de>
15031 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
15032 forward when combining, visit inserted stmts when a stmt was changed.
15034 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
15036 * tree.h (error_operand_p): Add.
15037 * dbxout.c (dbxout_type_fields): Use the latter.
15038 * c-decl.c (add_stmt): Likewise.
15039 * gimplify.c (omp_add_variable, omp_notice_variable,
15040 gimplify_scan_omp_clauses): Likewise.
15042 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
15044 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
15045 when a value is actually passed in regs.
15047 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
15048 Laurent Rougé <laurent.rouge@menta.fr>
15050 * doc/invoke.texi (SPARC options): Add -mflat.
15051 * config/sparc/sparc.opt: Likewise.
15052 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
15053 (sparc_flat_expand_prologue): Declare.
15054 (sparc_flat_expand_epilogue): Likewise.
15055 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
15056 (CPP_ENDIAN_SPEC): Replace with...
15057 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
15058 (CPP_SPEC): Adjust to above change.
15059 (EXTRA_SPECS): Likewise.
15060 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
15061 (INCOMING_REGNO): Likewise.
15062 (OUTGOING_REGNO): Likewise.
15063 (LOCAL_REGNO): Likewise.
15064 (SETUP_FRAME_ADDRESSES): Likewise.
15065 (FIXED_REGISTERS): Set 0 for %fp.
15066 (CALL_USED_REGISTERS): Likewise.
15067 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
15068 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
15069 (RETURN_ADDR_REGNUM): Define.
15070 (RETURN_ADDR_RTX): Use it.
15071 (INCOMING_RETURN_ADDR_REGNUM): Define.
15072 (INCOMING_RETURN_ADDR_RTX): Use it.
15073 (DWARF_FRAME_RETURN_COLUMN): Likewise.
15074 (EH_RETURN_REGNUM): Define.
15075 (EH_RETURN_STACKADJ_RTX): Use it.
15076 (EH_RETURN_HANDLER_RTX): Delete.
15077 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
15078 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
15080 (struct machine_function): Add frame_size, apparent_frame_size,
15081 frame_base_reg, frame_base_offset, n_global_fp_regs and
15082 save_local_in_regs_p fields.
15083 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
15084 sparc_frame_base_offset, sparc_n_global_fp_regs,
15085 sparc_save_local_in_regs_p): New macros.
15086 (sparc_option_override): Error out if -fcall-saved-REG is specified
15088 (eligible_for_restore_insn): Fix formatting.
15089 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
15090 (eligible_for_sibcall_delay): Likewise.
15091 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
15092 (sparc_legitimate_address_p): Adjust to above change.
15093 (save_global_or_fp_reg_p): New predicate.
15094 (return_addr_reg_needed_p): Likewise.
15095 (save_local_or_in_reg_p): Likewise.
15096 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
15097 (SORR_SAVE, SORR_RESTORE): Delete.
15098 (sorr_pred_t): New typedef.
15099 (sorr_act_t): New enum.
15100 (save_or_restore_regs): Rename to...
15101 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
15102 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
15103 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
15104 mechanism. Add CFI information for double-word saves in 32-bit mode.
15105 (emit_adjust_base_to_offset): New function extracted from...
15106 (emit_save_or_restore_regs): ...this. Rename the rest to...
15107 (emit_save_or_restore_regs_global_fp_regs): ...this.
15108 (emit_save_or_restore_regs_local_in_regs): New function.
15109 (gen_create_flat_frame_[123]): New functions.
15110 (sparc_expand_prologue): Use SIZE local variable. Adjust.
15111 (sparc_flat_expand_prologue): New function.
15112 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
15113 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
15114 (sparc_flat_expand_epilogue): New function.
15115 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
15116 (output_return): Likewise.
15117 (output_sibcall): Likewise.
15118 (sparc_output_mi_thunk): Likewise.
15119 (sparc_frame_pointer_required): Likewise.
15120 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
15121 function optimization.
15122 * config/sparc/sparc.md (flat): New attribute.
15123 (prologue): Add TARGET_FLAT handling.
15124 (save_register_window): Disable if TARGET_FLAT.
15125 (create_flat_frame_[123]): New patterns.
15126 (epilogue): Add TARGET_FLAT handling.
15127 (sibcall_epilogue): Likewise.
15128 (eh_return): New expander.
15129 (eh_return_internal): New insn and splitter.
15130 (return_internal): Add TARGET_FLAT handling.
15131 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
15132 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
15133 (nonlocal_goto): Add TARGET_FLAT handling.
15134 * config/sparc/t-elf: Add -mflat multilib.
15135 * config/sparc/t-leon: Likewise.
15137 2011-06-10 Jan Hubicka <jh@suse.cz>
15139 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
15140 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
15141 (self_recursive_p): Use cgraph_function_node.
15142 (propagate_pure_const): Likewise.
15143 (propagate_nothrow): Likewise.
15144 * ipa-reference.c (ipa_reference_get_not_read_global): Use
15145 cgraph_function_node.
15146 (propagate_bits): Likewise.
15147 (propagate): Likewise.
15149 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15150 Richard Earnshaw <rearnsha@arm.com>
15152 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
15153 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
15154 (*thumb2_movdi_vfp): Delete.
15155 (*arm_movdi_vfp_cortexa8): Delete.
15156 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
15157 (*movdi_vfp_cortexa8): Likewise.
15159 2011-06-10 Richard Guenther <rguenther@suse.de>
15161 * stor-layout.c (initialize_sizetypes): Give names to all
15164 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
15166 PR tree-optimization/49318
15167 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
15168 irrelevant pattern statements.
15170 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15172 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
15175 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
15176 to last assignment.
15178 2011-06-09 Jan Hubicka <jh@suse.cz>
15180 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
15181 do not recompute reachable flag.
15182 (cgraph_finalize_function, cgraph_analyze_functions): Set
15183 redefined_extern_inline here.
15185 2011-06-09 Jan Hubicka <jh@suse.cz>
15187 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
15188 (cgraph_only_called_directly_p): ... this one; bring offline.
15189 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
15190 varpool_used_from_object_file_p): Drop names from the declaratoin.
15191 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
15192 collect_callers_of_node): New.
15193 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
15194 (cgraph_edge_recursive_p): Use cgraph_function_node.
15195 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
15196 (cgraph_node_cannot_be_local_p_1): Break out from ...
15197 (cgraph_node_can_be_local_p): ... here; walk aliases.
15198 (cgraph_for_node_thunks_and_aliases): New function.
15199 (cgraph_for_node_and_aliases): New function.
15200 (cgraph_make_node_local_1): Break out from ...
15201 (cgraph_make_node_local) ... here; use
15202 cgraph_for_node_thunks_and_aliases.
15203 (cgraph_set_nothrow_flag_1): Break out from ...
15204 (cgraph_set_nothrow_flag) ... here;
15205 use cgraph_for_node_thunks_and_aliases.
15206 (cgraph_set_const_flag_1): Break out from ...
15207 (cgraph_set_const_flag) ... here;
15208 use cgraph_for_node_thunks_and_aliases.
15209 (cgraph_set_pure_flag_1): Break out from ...
15210 (cgraph_set_pure_flag) ... here;
15211 use cgraph_for_node_thunks_and_aliases.
15212 (cgraph_propagate_frequency_1): Break out from ...
15213 (cgraph_propagate_frequency) ... here; use
15214 cgraph_for_node_thunks_and_aliases.
15215 (cgraph_used_from_object_file_p): Do not care about aliases.
15216 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
15218 (collect_callers_of_node_1, collect_callers_of_node): New functions.
15220 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15222 PR rtl-optimization/49154
15223 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
15224 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
15225 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
15226 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
15227 * config/cris/cris.h (cris_register_move_cost): Remove
15228 !TARGET_V32 code. Tweak comments.
15230 2011-06-09 Jan Hubicka <jh@suse.cz>
15232 * cgraphbuild.c (record_eh_tables): Mark personality function as having
15235 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
15237 PR rtl-optimization/49154
15238 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
15239 is a matching slot in the hashtable, assign it to classes_ptr.
15241 PR rtl-optimization/49154
15242 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
15244 * doc/tm.texi: Regenerate.
15246 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
15249 * config/sh/sh.md (UNSPEC_CHKADD): New.
15250 (chk_guard_add): New define_insn_and_split.
15251 (symGOT_load): Use chk_guard_add instead of blockage.
15253 2011-06-09 Kai Tietz <ktietz@redhat.com>
15255 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
15257 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
15259 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
15261 2011-06-09 Wei Guozhi <carrot@google.com>
15264 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
15265 (peephole2 for conditional move): Generate 16 bit instructions.
15267 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
15269 * config/i386/i386.md (*movdi_internal_rex64): Merge
15270 alternatives 6 and 8.
15272 2011-06-09 David Li <davidxl@google.com>
15274 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
15275 * passes.c (passr_eq): New function.
15276 (create_pass_tab): New function.
15277 (pass_traverse): New function.
15278 (dump_one_pass): New function.
15279 (dump_pass_list): New function.
15280 (dump_passes): New function.
15282 2011-06-09 David Li <davidxl@google.com>
15284 * tree-complex.c (tree_lower_complex): Gate cleanup.
15285 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
15286 (execute_optimize_stdarg): Ditto.
15287 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
15288 (execute_cleanup_eh_1): Ditto.
15289 (execute_cleanup_eh): Ditto.
15290 * gcse.c (gate_rtl_pre): Ditto.
15291 (execute_rtl_pre): Ditto.
15292 * except.c (finish_eh_generation): Ditto.
15293 (convert_to_eh_region_ranges): Ditto.
15294 * cprop.c (one_cprop_pass): Ditto.
15296 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
15299 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
15300 in all basic blocks.
15302 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15304 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
15305 (HAVE_ENABLE_EXECUTE_STACK): Define.
15306 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
15307 (HAVE_ENABLE_EXECUTE_STACK): Define.
15308 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
15309 (HAVE_ENABLE_EXECUTE_STACK): Define.
15310 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
15311 (ENABLE_EXECUTE_STACK): Remove.
15312 (HAVE_ENABLE_EXECUTE_STACK): Define.
15313 [IN_LIBGCC2]: Don't include <windows.h>.
15314 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15315 (HAVE_ENABLE_EXECUTE_STACK): Define.
15316 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
15317 (HAVE_ENABLE_EXECUTE_STACK): Define.
15318 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
15319 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
15320 (HAVE_ENABLE_EXECUTE_STACK): Define.
15321 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
15322 (HAVE_ENABLE_EXECUTE_STACK): Define.
15323 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
15324 (HAVE_ENABLE_EXECUTE_STACK): Define.
15325 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15326 (HAVE_ENABLE_EXECUTE_STACK): Define.
15327 * config/alpha/alpha.c (alpha_trampoline_init): Test
15328 HAVE_ENABLE_EXECUTE_STACK.
15329 * config/i386/i386.c (ix86_trampoline_init): Likewise.
15330 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15331 (sparc64_initialize_trampoline): Likewise.
15332 * libgcc2.c [L_enable_execute_stack]: Remove.
15333 * system.h (ENABLE_EXECUTE_STACK): Poison.
15334 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
15335 * doc/tm.texi: Regenerate.
15336 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
15338 2011-06-09 Jakub Jelinek <jakub@redhat.com>
15340 PR middle-end/49308
15341 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
15342 variable. After resetting and rescanning insn continue with previous
15345 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15347 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
15348 (gcc_cv_ld_hidden): Likewise.
15349 * configure: Regenerate.
15350 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
15351 (ix86_stack_protect_fail): Mark unused.
15352 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
15353 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
15354 [TARGET_MACHO]: Don't define.
15355 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
15356 (TARGET_STACK_PROTECT_FAIL): Likewise.
15357 (rs6000_stack_protect_fail): Mark unused.
15358 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
15359 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
15361 2011-06-08 Andi Kleen <ak@linux.intel.com>
15363 * varasm.c (get_section): Print location of other conflict
15364 for section conflicts.
15366 2011-06-08 Andi Kleen <ak@linux.intel.com>
15368 * config/i386/driver-i386.c (host_detect_local_cpu):
15369 Add model 0x2d Intel CPU.
15371 2011-06-08 Andi Kleen <ak@linux.intel.com>
15373 * reginfo.c (global_regs_decl): Add.
15374 (globalize_reg): Add decl parameter. Compute location. Pass location
15375 to warnings and add inform. Store decl in global_regs_decl.
15376 * rtl.h (globalize_reg): Update prototype.
15377 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
15379 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
15381 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
15383 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15386 * config/sh/predicates.md (general_movsrc_operand): Check
15387 mode for memory with indexed address for QI and HImode.
15388 (general_movdst_operand): Likewise.
15390 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
15392 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
15394 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
15396 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
15397 (num_ssa_operands): Likewise.
15398 (op_iter_init_phiuse): Forward-declare.
15399 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
15401 2011-06-08 Nick Clifton <nickc@redhat.com>
15403 * doc/invoke.texi (ARM Options): Update description of
15406 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
15408 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15409 unknown Intel family 0x6 CPUs.
15411 2011-06-08 Martin Jambor <mjambor@suse.cz>
15413 * tree-sra.c (mark_rw_status): Removed.
15414 (analyze_access_subtree): New parameter parent instead of
15415 mark_read and mark_write, propagate from that.
15417 2011-06-08 Julian Brown <julian@codesourcery.com>
15419 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15420 for double-precision helper functions in hard-float mode if only
15421 single-precision arithmetic is supported in hardware.
15423 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
15425 PR rtl-optimization/49303
15426 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
15427 code_motion_path_driver returned 0 or 1.
15428 (sel_region_finish): Clear h_d_i_d.
15430 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15432 * config/sh/sh.c (prepare_move_operands): Set pic register
15433 appropriately for global and local dynamic tls models even
15434 if flag_pic is unset.
15436 2011-06-07 Jason Merrill <jason@redhat.com>
15438 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
15440 2011-06-07 Xinliang David Li <davidxl@google.com>
15441 * passes.c (enable_disable_pass): Handle assembler name.
15442 (is_pass_explicitly_enabled_or_disabled): Ditto.
15444 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15446 PR tree-optimization/48497
15447 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
15449 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15451 PR tree-optimization/46728
15452 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
15453 to use gimple_val_nonnegative_real_p.
15454 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
15455 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
15457 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
15459 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
15461 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
15463 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
15466 2011-06-07 Richard Guenther <rguenther@suse.de>
15468 * stor-layout.c (initialize_sizetypes): Initialize all
15469 sizetypes based on target definitions.
15470 (set_sizetype): Remove.
15471 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
15472 * tree.h (set_sizetype): Remove.
15474 2011-06-07 Nick Clifton <nickc@redhat.com>
15476 * config.gcc: Unify V850 architecture options and add support for
15477 newer V850 architectures.
15478 * config/v850/t-v850e: Delete.
15480 2011-06-07 Richard Guenther <rguenther@suse.de>
15482 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
15483 Call set_sizetype from here.
15485 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
15487 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
15488 (*maddhisi4tb, *maddhisi4tt): New define_insns.
15490 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
15491 Andrew Stubbs <ams@codesourcery.com>
15493 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
15495 * doc/md.texi (Canonicalization of Instructions): Document widening
15496 multiply canonicalization.
15498 2011-06-07 Jakub Jelinek <jakub@redhat.com>
15500 PR gcov-profile/49299
15501 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
15503 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
15505 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
15507 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
15508 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
15509 vect_recog_pow_pattern): Likewise.
15510 (vect_pattern_recog_1): Remove declaration.
15511 (widened_name_p): Remove declaration. Add new argument to specify
15512 whether to check that both types are either signed or unsigned.
15513 (vect_recog_widen_mult_pattern): Update documentation. Handle
15514 unsigned patterns and multiplication by constants.
15515 (vect_pattern_recog_1): Update vect_recog_func references. Use
15516 statement information from the statement returned from pattern
15517 detection functions.
15518 (vect_pattern_recog): Update vect_recog_func reference.
15519 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
15520 multiplication by a constant use the type of the other operand.
15522 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
15524 PR rtl-optimization/49145
15525 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
15527 2011-06-06 Jakub Jelinek <jakub@redhat.com>
15530 * dwarf2out.c (native_encode_initializer): Decrement count in each
15534 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
15535 non-MODE_INT modes.
15538 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
15539 if stmt folded into nothing.
15540 * tree-inline.c (fold_marked_statements): If a builtin at the end of
15541 a bb folded into nothing, just update cgraph edges and move to next bb.
15542 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
15543 to be NULL. Don't compute count and frequency if new_call is NULL.
15545 2011-06-04 Diego Novillo <dnovillo@google.com>
15547 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
15548 (cgraph.o): Likewise.
15549 (cgraphunit.o): Likewise.
15550 * cgraphunit.c: Include lto-streamer.h
15551 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
15553 * lto-streamer-in.c (unpack_value_fields): Call
15554 streamer_hooks.unpack_value_fields if set.
15555 (lto_materialize_tree): For unhandled nodes, first try to
15556 call lto_streamer_hooks.alloc_tree, if it exists.
15557 (lto_input_ts_decl_common_tree_pointers): Move reading of
15558 DECL_INITIAL to lto_streamer_read_tree.
15559 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
15560 (lto_streamer_read_tree): New.
15561 (lto_reader_init): Rename from lto_init_reader.
15562 Move initialization code to lto/lto.c.
15563 * lto-streamer-out.c (pack_value_fields): Call
15564 streamer_hooks.pack_value_fields if set.
15565 (lto_output_tree_ref): For tree nodes that are not normally indexable,
15566 call streamer_hooks.indexable_with_decls_p before giving up.
15567 (lto_output_ts_decl_common_tree_pointers): Move handling
15568 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
15569 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
15570 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
15571 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
15572 (lto_streamer_write_tree): New.
15573 (lto_output): Call lto_streamer_init directly.
15574 (lto_writer_init): Remove.
15575 * lto-streamer.c (streamer_hooks): New.
15576 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
15577 instead of lto_preload_common_nodes.
15578 (lto_is_streamable): Move from lto-streamer.h
15579 (lto_streamer_hooks_init): New.
15580 (streamer_hooks): New.
15581 (streamer_hooks_init): New.
15582 * lto-streamer.h (struct output_block): Forward declare.
15583 (struct lto_input_block): Likewise.
15584 (struct data_in): Likewise.
15585 (struct bitpack_d): Likewise.
15586 (struct streamer_hooks): Declare.
15587 (streamer_hooks): Declare.
15588 (lto_streamer_hooks_init): Declare.
15589 (lto_streamer_write_tree): Declare.
15590 (lto_streamer_read_tree): Declare.
15591 (streamer_hooks_init): Declare.
15592 (lto_is_streamable): Move to lto-streamer.c
15594 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15596 * longlong.h (smul_ppmm): The resulting register pair contains the
15597 higher order word first.
15599 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15601 PR tree-optimization/46728
15602 * builtins.c (powi_table): Remove.
15603 (powi_lookup_cost): Remove.
15604 (powi_cost): Remove.
15605 (expand_powi_1): Remove.
15606 (expand_powi): Remove.
15607 (expand_builtin_pow_root): Remove.
15608 (expand_builtin_pow): Remove.
15609 (expand_builtin_powi): Eliminate handling of constant exponent.
15610 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
15612 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15614 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
15616 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15618 * dce.c (reset_unmarked_insns_debug_uses): New.
15619 (delete_unmarked_insns): Skip debug insns.
15620 (prescan_insns_for_dce): Likewise.
15621 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
15622 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
15623 active reg can be found.
15624 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
15625 (convert_regs_1): Use it.
15627 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15629 * tree-pretty-print.c (dump_function_header): Add flags.
15630 Don't dump decl_uid with nouid.
15631 * tree-pretty-print.h (dump_function_header): Adjust.
15632 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
15633 * passes.c (pass_init_dump_file): Pass dump_flags on.
15634 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
15636 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
15639 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
15641 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
15643 PR tree-optimization/49243
15644 * calls.c (setjmp_call_p): Also check if fndecl has the
15645 returns_twice attribute.
15647 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15649 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
15652 2011-06-06 Richard Henderson <rth@redhat.com>
15653 Georg-Johann Lay <avr@gjlay.de>
15656 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
15658 * config/avr/avr.md ("insv"): New insn expander.
15659 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
15660 "*insv.not.io", "*insv.reg"): New insns.
15662 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
15665 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
15666 to nonimmediate_operand from memory_operand for the operand that is to
15667 be forced to memory by the expander. Lose the constraints.
15669 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
15671 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
15672 EH return when delayed branches are disabled.
15674 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
15676 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
15677 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
15679 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
15680 Simplify MODE_V1DF and MODE_V2SF handling.
15681 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
15682 Simplify MODE_SF handling.
15684 2011-06-04 Jan Hubicka <jh@suse.cz>
15686 PR tree-optimization/48893
15687 PR tree-optimization/49091
15688 PR tree-optimization/49179
15689 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
15692 2011-06-04 Jan Hubicka <jh@suse.cz>
15695 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
15698 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
15700 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
15702 2011-06-04 Jakub Jelinek <jakub@redhat.com>
15705 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
15706 to be strictly smaller than 1 << shiftcount.
15708 2011-06-04 Jan Hubicka <jh@suse.cz>
15710 PR tree-optimize/48929
15711 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15712 of empty predicate.
15714 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
15717 * calls.c (emit_call_1): Prefer the __builtin declaration of
15720 2011-06-03 Diego Novillo <dnovillo@google.com>
15722 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
15723 (lto_input_tree_pointers): Likewise.
15724 * lto-streamer-out.c (pack_value_fields): Likewise.
15725 (lto_output_tree_pointers): Likewise.
15726 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
15727 and OPTIMIZATION_NODE.
15729 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15731 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
15732 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
15733 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
15734 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
15735 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
15736 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
15737 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
15738 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
15739 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
15740 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
15741 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
15742 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
15743 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
15744 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
15745 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
15746 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
15747 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
15748 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
15749 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
15750 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
15751 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
15752 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
15753 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
15754 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
15755 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
15756 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
15757 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
15758 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
15759 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
15760 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
15761 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
15762 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
15763 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
15764 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
15765 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
15766 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
15767 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
15768 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
15769 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
15770 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
15771 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
15772 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
15773 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
15774 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
15775 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
15776 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
15777 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
15778 * system.h (MD_UNWIND_SUPPORT): Poison.
15779 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
15780 * doc/tm.texi: Regenerate.
15781 * unwind-dw2.c: Include md-unwind-support.h instead of
15783 * config/ia64/unwind-ia64.c: Likewise.
15784 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15786 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
15788 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
15790 2011-06-03 Richard Henderson <rth@redhat.com>
15791 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15793 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
15794 (sigill_hdlr): Correct insn, insn size.
15795 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
15797 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15799 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
15801 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
15802 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
15803 * config/mips/t-iris: Remove.
15804 * config/mips/t-irix6: New file.
15805 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
15807 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15809 * Makefile.in (LIB2ADDEHDEP): Remove.
15810 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15811 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
15812 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
15813 * config/t-darwin (LIB2ADDEHDEP): Remove.
15814 * config/t-freebsd (LIB2ADDEHDEP): Remove.
15815 * config/t-linux (LIB2ADDEHDEP): Remove.
15817 2011-06-03 Diego Novillo <dnovillo@google.com>
15819 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
15820 (lto_register_var_decl_in_symtab): Likewise.
15821 (lto_register_function_decl_in_symtab): Likewise.
15822 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
15823 logic to uniquify_nodes.
15825 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15827 * config/alpha/t-osf5: Remove.
15828 * config/alpha/t-osf-pthread: Remove.
15829 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
15830 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15832 2011-06-03 Julian Brown <julian@codesourcery.com>
15834 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
15835 (strongarm1110): Use strongarm tuning.
15836 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
15837 * config/arm/arm.c (arm_strongarm_tune): New.
15838 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15839 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
15840 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
15841 setting, using previous defaults or 1 for Cortex-A5.
15842 (arm_option_override): Set max_insns_skipped from current tuning.
15844 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
15846 * doc/install.texi (Options specification): Document --with-specs.
15848 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15850 * config/arm/neon.md (orndi3_neon): Actually split it.
15852 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
15854 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
15855 * var-tracking.c (reverse_op): Limite recurse depth to 5.
15857 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
15860 * target.def (delay_sched2, delay_vartrack): New.
15861 * doc/tm.texi.in: Update.
15862 * doc/tm.texi: Rebuild.
15863 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
15864 * var-tracking.c (gate_handle_var_tracking): Likewise.
15865 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
15866 (bfin_flag_var_tracking): Drop.
15867 (output_file_start): Don't save and override flag_var_tracking.
15868 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
15869 (bfin_reorg): Test original variables.
15870 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15871 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
15872 (ia64_flag_var_tracking): Drop.
15873 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15874 (ia64_file_start): Don't save and override flag_var_tracking.
15875 (ia64_override_options_after_change): Ditto
15876 flag_schedule_insns_after_reload.
15877 (ia64_reorg): Test original variables.
15878 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
15879 (picochip_flag_var_tracking): Drop.
15880 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15881 (picochip_option_override): Don't save and override
15882 flag_schedule_insns_after_reload.
15883 (picochip_asm_file_start): Ditto flag_var_tracking.
15884 (picochip_reorg): Test original variables.
15885 * config/spu/spu.c (spu_flag_var_tracking): Drop.
15886 (TARGET_DELAY_VARTRACK): Define.
15887 (spu_var_tracking): New.
15888 (spu_machine_dependent_reorg): Call it.
15889 (asm_file_start): Don't save and override flag_var_tracking.
15891 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
15894 * config/sh/predicates.md (general_movsrc_operand): Return 0
15895 for memory and memory subreg of which address is an invalid
15896 indexed address for QI and HImode.
15897 (general_movdst_operand): Likewise.
15899 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
15901 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15902 edges only, when there is a non-local label in the function.
15903 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15905 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
15907 * config/i386/constraints.md (Y3): New register constraint.
15908 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15909 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15910 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15911 *sse2_interleave_lowv2df.
15913 2011-06-02 Julian Brown <julian@codesourcery.com>
15915 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15916 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15917 (arm_cortex_a5_tune): New.
15919 2011-06-02 Julian Brown <julian@codesourcery.com>
15921 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15922 * config/arm/arm.c (arm_default_branch_cost): New.
15923 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15924 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15925 (arm_fa726_tune): Set branch_cost field using
15926 arm_default_branch_cost.
15927 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15928 current_tune structure.
15929 * dojump.c (tm_p.h): Include file.
15931 2011-06-02 Julian Brown <julian@codesourcery.com>
15933 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15935 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15936 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15937 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15939 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15940 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15941 (arm_fa726te_tune): Add prefer_constant_pool setting.
15942 (arm_v6t2_tune, arm_cortex_tune): New.
15943 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15944 prefer_constant_pool setting.
15946 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
15948 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15950 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15951 (*movdf_internal) <case 6,7,8>: Ditto.
15953 * config/i386/constraints.md (Y4): New register constraint.
15954 * config/i386/sse.md (vec_set<mode>_0): Merge with
15955 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15956 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15957 *vec_extractv2di_1_sse.
15958 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15959 and *vec_concatv2di_rex64_sse.
15961 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
15964 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15965 of cgraph_local_info for null before attempting to use it.
15967 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
15969 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15970 (current_function_dynamic_alloc_count): Delete.
15971 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15972 (expand_builtin_nonlocal_goto): Remove obsolete comment.
15973 (expand_builtin_update_setjmp_buf): Remove dead code.
15974 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15975 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15977 * function.c (instantiate_virtual_regs): Likewise.
15978 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
15979 for a block with a single abnormal incoming edge.
15980 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
15981 (SETJMP_VIA_SAVE_AREA): Delete.
15982 * config/sparc/sparc-protos.h (load_got_register): Declare.
15983 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15984 (load_got_register): Make global.
15985 (sparc_frame_pointer_required): Add 'static'.
15986 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
15987 (sparc_builtin_setjmp_frame_value): New function.
15988 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
15989 (save_stack_nonlocal): New expander.
15990 (restore_stack_nonlocal): Likewise.
15991 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
15992 (nonlocal_goto_internal): New insn.
15993 (goto_handler_and_restore): Delete.
15994 (builtin_setjmp_setup): Likewise.
15995 (do_builtin_setjmp_setup): Likewise.
15996 (setjmp): Likewise.
15997 (builtin_setjmp_receiver): New expander.
15999 2011-06-01 David Li <davidxl@google.com>
16001 PR middle-end/49261
16002 * tree-pretty-print.c (dump_function_header): Format cleanup.
16004 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
16007 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
16008 needed when original operands are used for msw_skip comparison.
16010 2011-06-01 Jakub Jelinek <jakub@redhat.com>
16013 * var-tracking.c (add_uses, add_stores): Don't call
16014 cselib_subst_to_values on ENTRY_VALUE.
16016 2011-06-01 Diego Novillo <dnovillo@google.com>
16018 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
16019 output_record_start with LTO_null instead of output_zero.
16020 (lto_output_ts_binfo_tree_pointers): Likewise.
16021 (lto_output_tree): Likewise.
16022 (output_eh_try_list): Likewise.
16023 (output_eh_region): Likewise.
16024 (output_eh_lp): Likewise.
16025 (output_eh_regions): Likewise.
16026 (output_bb): Likewise.
16027 (output_function): Likewise.
16028 (output_unreferenced_globals): Likewise.
16029 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
16030 instead of NUM_TREE_CODES.
16031 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
16032 (lto_output_int_in_range): Change << to >> when shifting VAL.
16034 2011-06-01 Diego Novillo <dnovillo@google.com>
16036 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
16037 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
16039 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16042 * optabs.h (valid_multiword_target_p): Declare.
16043 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
16044 doing multi-word operations.
16045 * optabs.c (expand_binop): Likewise.
16046 (expand_doubleword_bswap): Likewise.
16047 (expand_absneg_bit): Likewise.
16048 (expand_unop): Likewise.
16049 (expand_copysign_bit): Likewise.
16050 (multiword_target_p): New function.
16052 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16054 PR rtl-optimization/48830
16055 PR rtl-optimization/48808
16056 PR rtl-optimization/48792
16057 * reload.c (push_reload): Check contains_reg_of_mode.
16058 * reload1.c (strip_paradoxical_subreg): New function.
16059 (gen_reload_chain_without_interm_reg_p): Use it to handle
16060 paradoxical subregs.
16061 (emit_output_reload_insns, gen_reload): Likewise.
16063 2011-06-01 David Li <davidxl@google.com>
16065 * predict.c : Change pass name
16068 * tree-profile.c: Ditto.
16071 2011-06-01 David Li <davidxl@google.com>
16073 * tree-pretty-print.c (dump_function_header): New function.
16074 * final.c (rest_of_clean_state): Use header dumper.
16075 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
16076 * passes.c (pass_init_dump_file): Use header dumper.
16078 2011-06-01 Jakub Jelinek <jakub@redhat.com>
16080 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
16081 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
16082 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
16084 (mem_loc_descriptor): Use them.
16086 * var-tracking.c (create_entry_value): New function.
16087 (vt_add_function_parameter): Use it.
16089 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16091 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
16092 Include <signal.h>, <ucontext.h>.
16093 (sigill_caught): Define.
16094 (sigill_hdlr): New function.
16095 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
16096 insns can be executed.
16097 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
16098 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
16100 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16102 * config/t-slibgcc-darwin: Move to ...
16103 * config/t-slibgcc-dummy: ... this. Clarify comments.
16104 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
16105 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
16106 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
16107 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
16108 Remove i386/t-crtstuff from tmake_file.
16109 (i[34567]86-*-solaris2*): Remove t-svr4,
16110 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
16112 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
16113 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
16114 sparc/t-crtfm from tmake_file.
16115 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
16116 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
16117 Remove extra_parts.
16118 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
16119 * config/i386/t-nwld (SHLIB_LINK): Remove.
16120 * config/i386/t-rtems-i386: Rename to ...
16121 * config/i386/t-rtems: ... this.
16122 ($(T)crti.o, $(T)crtn.o): Remove.
16123 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
16124 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
16125 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
16126 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
16127 EXTRA_MULTILIB_PARTS): Remove.
16128 * config/sparc/t-sol2-64: Likewise.
16129 * config/sparc/t-sol2: Remove.
16130 * config/sparc/t-crtin: Remove.
16131 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
16132 * config/i386/gmon-sol2.c: Remove.
16133 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
16134 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
16135 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
16136 * config/i386/sol2-gc1.asm: Remove.
16137 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
16138 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
16139 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
16140 * config/t-slibgcc-sld: Remove.
16142 2011-06-01 Jakub Jelinek <jakub@redhat.com>
16144 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
16145 base_type_for_mode with op_mode instead of mode.
16147 2011-06-01 Paul Brook <paul@cpodesourcery.com>
16149 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
16151 * config/arm/arm-tune.md: Regenerate.
16152 * config/arm/arm-tables.opt: Regenerate.
16153 * config/arm/arm.c (FL_DIV): Rename...
16154 (FL_THUMB_DIV): ... to this.
16155 (FL_ARM_DIV): Define.
16156 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
16157 (arm_arch_hwdiv): Remove.
16158 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
16159 (arm_issue_rate): Add cortexr5.
16160 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
16161 __ARM_ARCH_EXT_IDIV__.
16162 (TARGET_IDIV): Define.
16163 (arm_arch_hwdiv): Remove.
16164 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
16165 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
16166 (divsi3, udivsi3): New patterns.
16167 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
16168 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
16170 2011-06-01 Martin Jambor <mjambor@suse.cz>
16172 * ipa-utils.c (ipa_dfs_info): New field scc_no.
16173 * ipa-utils.c (searchc): Set scc_no.
16175 2011-06-01 Martin Jambor <mjambor@suse.cz>
16177 * ipa-utils.c (searchc_env): New field allow_overwritable.
16178 (searchc): do not ignore edges to overwritable nodes if indicated
16179 by env->allow_overwritable.
16180 (ipa_reduced_postorder): Set env.allow_overwritable.
16182 2011-06-01 Richard Guenther <rguenther@suse.de>
16184 * tree.c (free_lang_data): Do not reset boolean_type_node nor
16186 * lto-streamer.c (lto_record_common_node): Take node pointer,
16187 do not register types.
16188 (lto_preload_common_nodes): Explicitly skip preloading nodes
16189 that differ between frontends.
16191 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
16193 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
16196 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
16198 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
16199 parameter value for dump. Dump cost on outermost call only.
16200 (rs6000_memory_move_cost): Dump cost on outermost call only.
16202 2011-05-31 Jakub Jelinek <jakub@redhat.com>
16204 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
16205 DW_OP_GNU_convert ops.
16207 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
16208 cselib_preserve_constants.
16209 (cselib_lookup_1): If cselib_preserve_constants,
16210 a new VALUE is being created for REG and there is a VALUE for the
16211 same register in wider mode, add another loc with lowpart SUBREG of
16213 (cselib_subst_to_values): Handle ENTRY_VALUE.
16214 * var-tracking.c (replace_expr_with_values): Return NULL for
16216 * dwarf2out.c (convert_descriptor_to_signed): New function.
16217 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
16218 instead of two shifts.
16219 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
16220 the right mode if needed.
16221 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
16222 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
16223 convert_descriptor_to_signed.
16224 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
16225 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
16228 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
16230 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
16232 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
16233 of X87MODEI12 and SWI48x instead of SSEMODEI24.
16234 (SWI248x): New mode iterator, rename from X87MODEI.
16235 (X87MODEI): Remove mode iterator.
16236 (X87MODEI12): Ditto.
16237 (SSEMODEI24): Ditto.
16239 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16241 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
16242 * doc/invoke.texi: Document max-vartrack-expr-depth.
16243 * var-tracking.c (EXPR_DEPTH): New.
16244 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
16246 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16248 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
16249 * config/i386/sse.md: Add n to negated FMA pattern names.
16251 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16253 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
16255 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
16257 * gengtype-state.c (read_state_params_structs): Initialize previous.
16259 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
16261 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
16262 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
16264 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
16266 * config/i386/i386.md (*movtf_internal): Avoid allocating general
16267 registers. Penalize F*r->o alternative to prevent partial memory
16268 stalls. Slightly penalize *roF->*r alternative. Generate SSE
16269 CONST_DOUBLE immediates when optimizing function for size. Do not move
16270 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16271 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
16272 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
16273 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
16275 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
16277 (fp_register_operand splitters): Use fp_register_operand
16278 constraint. Do not use FP_REG_P in insn condition.
16279 (any_fp_register_operand splitters): Use any_fp_register_operand
16280 constraint. Do not use ANY_FP_REG_P in insn condition.
16282 2011-05-31 Jan Hubicka <jh@suse.cz>
16284 * cgraph.h (cgraph_inline_failed_t): Give enum a name
16285 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
16286 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
16287 (lto_output_edge): Use output_enum and var_len_unsigned.
16288 (lto_output_varpool_node): Likewise.
16289 (input_overwrite_node): Do not take resolution parameter;
16290 extract it from a bitpack.
16291 (input_node): Do not read resolution; use input_enum and
16293 (input_varpool_node): Likewise.
16294 (input_edge): Likewise.
16295 (input_cgraph_1): Likewise.
16297 2011-05-31 Richard Guenther <rguenther@suse.de>
16299 * gimple.c (gimple_register_canonical_type): Do not register
16300 any types via gimple_register_type.
16302 2011-05-31 Jan Hubicka <jh@suse.cz>
16304 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
16307 2011-05-31 Jakub Jelinek <jakub@redhat.com>
16309 PR rtl-optimization/49235
16310 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
16311 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
16313 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
16315 PR tree-optimization/49093
16316 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
16319 2011-05-31 Dodji Seketeli <dodji@redhat.com>
16322 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
16323 for concrete functions containing the code of cloned functions.
16325 2011-05-31 Richard Guenther <rguenther@suse.de>
16327 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
16329 (forward_propagate_into_comparison_1): ... this.
16330 (forward_propagate_comparison): Rename to ...
16331 (forward_propagate_into_comparison): ... this. Split out
16332 real forward propagation code to ...
16333 (forward_propagate_comparison): ... this.
16334 (forward_propagate_into_gimple_cond): Remove looping.
16335 (forward_propagate_into_cond): Likewise.
16336 (simplify_not_neg_expr): Return whether we have done something.
16337 (simplify_gimple_switch): Likewise.
16338 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
16339 (ssa_forward_propagate_and_combine): ... this. Re-structure
16340 to do a forward forward-propagation walk on BBs and a backward
16341 stmt combining walk on BBs. Consistently re-scan changed statements.
16342 (pass_forwprop): Adjust.
16344 2011-05-30 Ian Lance Taylor <iant@google.com>
16346 * godump.c (go_format_type): Correct length of name added to
16347 obstack for anonymous field.
16349 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
16352 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
16353 part of the second operand is 0.
16355 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
16357 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
16358 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
16359 to memory for !TARGET_MEMORY_MISMATCH_STALL.
16360 (*movdf_internal_rex64): Do not penalize F->r alternative.
16361 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
16362 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
16363 when optimizing function for size. Do not move CONST_DOUBLEs
16364 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16365 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
16366 SUBREGs. Do not check for MEM_P operands in the insn condition,
16367 check for ANY_FP_REGNO_P instead.
16368 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
16369 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
16370 function for speed.
16371 * config/i386/i386.c (ix86_option_override_internal): Do not
16372 set TARGET_INTEGER_DFMODE_MOVES here.
16374 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
16377 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
16379 2011-05-30 Jakub Jelinek <jakub@redhat.com>
16381 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
16382 DW_TAG_rvalue_reference_type even for
16383 -gdwarf-4 -fno-debug-types-section.
16385 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16387 PR tree-optimization/46728
16388 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
16389 (build_and_insert_binop): New.
16390 (gimple_expand_builtin_pow): Reorder args for
16391 build_and_insert_call; use build_and_insert_binop; add more
16392 optimizations for fractional exponents.
16394 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
16399 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16401 * tree.h (struct tree_identifier): Inherit from tree_typed, not
16403 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16404 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16405 TS_BASE instead of TS_COMMON.
16406 * varasm.c (assemble_name): Remove assert.
16408 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
16410 * config.gcc: Keep obselete list sorted.
16412 2011-05-30 Jakub Jelinek <jakub@redhat.com>
16413 Eric Botcazou <ebotcazou@adacore.com>
16415 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
16416 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
16417 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
16418 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
16419 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
16421 2011-05-30 Richard Guenther <rguenther@suse.de>
16423 * gimple.c (gimple_types_compatible_p_1): Compare record
16424 and union type members properly.
16426 2011-05-30 Richard Guenther <rguenther@suse.de>
16428 PR tree-optimization/49210
16429 * ipa-split.c (split_function): Care for the case where the call
16430 result is not trivially convertible to the result holding variable.
16432 2011-05-30 Richard Guenther <rguenther@suse.de>
16434 PR tree-optimization/49218
16435 * tree-vrp.c (adjust_range_with_scev): Properly check whether
16438 2011-05-30 Richard Guenther <rguenther@suse.de>
16440 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
16441 New function split out from ...
16442 (forward_propagate_into_gimple_cond): ... here. Adjust.
16443 (forward_propagate_into_cond): Likewise.
16444 (forward_propagate_comparison): Also propagate into
16445 comparisons on assignment RHS. Change return value to
16446 behave similar to forward_propagate_into_cond.
16447 (tree_ssa_forward_propagate_single_use_vars): Handle
16448 strict-overflow warnings properly for forward_propagate_comparison.
16450 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16452 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
16453 from plugin linker.
16454 * configure: Regenerate.
16456 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
16458 PR tree-optimization/49199
16459 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
16460 non-reduction operands are either defined in the loop or by induction.
16462 2011-05-29 Xinliang David Li <davidxl@google.com>
16464 * opts-global.c (handle_common_deferred_options): Handle new options.
16465 * passes.c (register_one_dump_file): Call register_pass_name.
16466 (execute_one_pass): Check explicit enable/disable flag.
16467 (passr_hash): New function.
16469 (register_pass_name): Ditto.
16470 (get_pass_by_name): Ditto.
16471 (pass_hash): Ditto.
16473 (enable_pass): Ditto.
16474 (disable_pass): Ditto.
16475 (is_pass_explicitly_enabled_or_disabled): Ditto.
16477 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
16479 * config/i386/i386.md (*movoi_internal_avx): Use
16480 standard_sse_constant_opcode for alternative 0.
16481 (*movti_internal_sse): Ditto.
16482 (*movti_internal_rex64): Use standard_sse_constant_opcode for
16484 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
16485 sselog1 type moves.
16486 (*movsi_internal): Ditto.
16487 (*movdi_internal): Ditto. Add ssecvt type moves.
16489 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
16492 * rtlanal.c (simplify_subreg_regno): Adjust comment.
16494 2011-05-29 Jakub Jelinek <jakub@redhat.com>
16496 PR rtl-optimization/49095
16497 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
16498 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
16500 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
16503 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
16504 recurse_p argument. Only follow register copies if it is set,
16505 and prevent mips_find_pic_call_symbol from recursing.
16506 (mips_find_pic_call_symbol): Add a recurse_p argument.
16507 Pass it to mips_pic_call_symbol_from_set.
16508 (mips_annotate_pic_calls): Update accordingly.
16510 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
16512 * emit-rtl.c (try_split): Use a loop to search for
16513 NOTE_INSN_CALL_ARG_LOCATIONs.
16515 2011-05-29 Richard Guenther <rguenther@suse.de>
16517 PR tree-optimization/49217
16518 * ipa-pure-const.c (propagate_pure_const): Fix typos.
16520 2011-05-28 Jan Hubicka <jh@suse.cz>
16522 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
16524 (string_slot_free): Remove
16525 (create_output_block): Initialize obstack.
16526 (destroy_output_block): Free obstack.
16527 (lto_string_index): Add PERSISTENT parameter; do not duplicate
16528 the string unless it needs to be added into the hash.
16529 (lto_output_string_with_length): Add persistent attribute;
16530 handle NULL strings.
16531 (lto_output_string): Add PERSISTENT parameter.
16532 (output_string_cst, output_identifier): Simplify.
16533 (lto_output_location_bitpack): Update.
16534 (lto_output_builtin_tree): Update.
16535 * lto-streamer.h (struct output_block): Add obstack.
16536 (lto_output_string, lto_output_string_with_length): Remove
16537 declarations; functions are static now.
16539 2011-05-28 Jan Hubicka <jh@suse.cz>
16541 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
16542 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
16543 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
16544 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
16545 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
16546 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
16547 unpack_ts_decl_with_vis_value_fields,
16548 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
16549 lto_get_builtin_tree): Use enum and variable length i/o.
16550 * basic-block.h (profile_status_d): Add PROFILE_LAST.
16551 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
16553 (bp_pack_enum, bp_unpack_enum): New macros.
16555 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16557 * genrecog.c: Remove redundant forward declarations.
16559 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16561 * config.gcc: Deprecate mips*-*-openbsd*.
16563 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
16566 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
16569 2011-05-27 Andrew Pinski <pinskia@gmail.com>
16571 PR middle-end/48981
16572 * gengtype.c (vec_prefix_type): New function.
16573 (note_def_vec): Use vec_prefix_type and change the length
16574 attribute to be based on the prefix.
16575 * vec.c: Include coretypes.h before vec.h.
16576 (struct vec_prefix): Remove.
16577 (vec_gc_p_reserve): Change the offsetof to sizeof.
16578 (vec_gc_p_reserve_exact): Likewise.
16579 (vec_heap_p_reserve): Likewise.
16580 (vec_heap_p_reserve_exact): Likewise.
16581 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
16582 (vec_stack_p_reserve): Change the offsetof to sizeof.
16583 (vec_stack_p_reserve_exact): Likewise.
16584 * vec.h (struct vec_prefix): New struct definition.
16585 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
16586 (VEC_T_GTY(T,B)): Likewise.
16587 (DEF_VEC_FUNC_P(T)): Use prefix field.
16588 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
16589 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
16591 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16593 PR tree-optimization/46728
16594 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
16595 (powi_as_mults): Add gimple_set_location.
16596 (build_and_insert_call): New.
16597 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
16598 0.5, 0.25, 0.75, 1./3., or 1./6.
16600 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
16602 * doc/contrib.texi: Update copyright years.
16603 (Contributors): Add Zdenek Sojka.
16605 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
16607 * c-decl.c (c_push_function_context): Copy the current statement
16609 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
16610 (finish_struct): Call building_stmt_list_p instead of checking
16612 * c-parser.c (c_parser_postfix_expression): Likewise.
16613 * c-typeck.c (c_end_compound_stmt): Likewise.
16614 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
16615 * tree-iterator.c (stmt_list_cache): Change to a VEC.
16616 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
16617 (free_stmt_list): Likewise.
16618 * tree.h (struct tree_statement_list): Include typed_tree instead
16620 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
16621 as TS_TYPED instead of TS_COMMON.
16623 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16624 Uros Bizjak <ubizjak@gmail.com>
16626 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
16627 (HAVE_AS_IX86_TLSGDPTL): Define.
16628 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
16629 (HAVE_AS_IX86_TLSLDMPLT): Define.
16630 * configure: Regenerate.
16631 * config.in: Regenerate.
16632 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
16633 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
16634 TARGET_SUN_TLS, use @tlsgdplt or @plt.
16635 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
16636 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
16637 @tlsldmplt or @plt.
16638 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
16640 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
16642 * sched-int.h (struct _haifa_deps_insn_data): New members cond
16644 (INSN_COND, INSN_REVERSE_COND): New macros.
16645 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
16647 (sched_get_condition_with_rev): Cache the results, and look them up
16649 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
16650 are clobbered by the current insn.
16651 * target.def (exposed_pipline): New sched data hook.
16652 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
16653 * doc/tm.texi: Regenerate.
16655 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16657 PR tree-optimization/49170
16658 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
16661 2011-05-27 Richard Guenther <rguenther@suse.de>
16663 PR middle-end/49189
16664 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
16667 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
16669 * haifa-sched.c (sched_scan_info): Remove.
16670 (schedule_block): Call sched_extend_luids rather than sched_init_luids
16672 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
16674 (sched_scan): Remove.
16675 (sched_extend_luids): Renamed from luids_extend_insn and no longer
16676 static. All callers changed.
16677 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
16678 static. All callers changed.
16679 (sched_init_luids): Remove all arguments except the first. All
16680 callers changed. Don't use sched_scan.
16681 (haifa_init_h_i_d): Likewise.
16682 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
16683 manually rather than using sched_init_luids. Likewise with
16684 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
16685 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
16686 rather than sched_init_luids with NULL args.
16687 * sel-sched-ir.c (new_insns): Remove variable.
16688 (sched_scan): New static function, previously in haifa-sched.c. Remove
16689 all arguments but the first two; all callers changed.
16690 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
16691 rather than sched_init_luids.
16692 (sel_init_bbs): Remove second argument. All callers changed.
16693 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
16694 with NULL arguments.
16695 (create_insn_rtx_from_pattern): Likewise.
16696 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
16697 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
16698 (sched_init_insn_luid, sched_extend_luids): Declare.
16699 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
16702 2011-05-27 Richard Guenther <rguenther@suse.de>
16704 PR middle-end/49177
16705 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
16706 A CMP B ? (T) true : (T) false for non-integral types T again.
16708 2011-05-27 Jan Hubicka <jh@suse.cz>
16710 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
16711 so 0 means NULL string.
16712 (lto_output_string_with_length): ... here.
16713 (lto_output_string, output_string_cst, output_identifier): Update
16714 handling of NULL strings.
16715 (lto_output_location_bitpack): New function.
16716 (lto_output_location): Use it.
16717 (lto_output_tree_ref): Use output_record_start.
16718 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
16720 * lto-streamer-in.c (string_for_index): Break out from ...; offset
16722 (input_string_internal): ... here;
16723 (input_string_cst, input_identifier, lto_input_string): Update handling
16725 (lto_input_location_bitpack): New function
16726 (lto_input_location): Use it.
16727 (unpack_ts_type_common_value_fields): Pack align & alias in var len
16729 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
16730 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
16731 (bp_pack_value): Sanity check the value range.
16732 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
16734 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
16737 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
16739 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
16740 call_arg_location instructions down the floor.
16742 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
16744 PR rtl-optimization/49154
16745 * ira.c (setup_pressure_classes): Process class without sublcasses
16746 as a candidate for pressure classes.
16748 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
16750 PR rtl-optimization/48575
16751 * genrecog.c (position_type): New enum.
16752 (position): New structure.
16753 (decision): Use position structure instead of a string.
16754 (root_pos, peep2_insn_pos_list): New variables.
16755 (next_position, compare_positions): New functions.
16756 (new_decision): Use position structures instead of strings.
16757 (maybe_both_true): Likewise.
16758 (change_state): Likewise.
16759 (write_tree): Likewise.
16760 (make_insn_sequence): Likewise.
16762 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16764 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
16765 TS_BASE instead of TS_COMMON.
16766 (find_decls_types_r): Check for TS_TYPED structure before looking at
16768 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
16770 (BLOCK_CHAIN): Use new chain field.
16772 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
16774 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
16775 moves expensive on Power7 also.
16777 2011-05-26 Richard Guenther <rguenther@suse.de>
16779 * fold-const.c (fold_unary_loc): Remove bogus code.
16781 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
16783 * tree.h (struct tree_identifier): Inherit from tree_typed, not
16785 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16786 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16787 TS_BASE instead of TS_COMMON.
16788 * varasm.c (assemble_name): Remove assert.
16790 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
16792 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
16794 * libgcc-std.ver: Delete file.
16796 2011-05-26 Richard Guenther <rguenther@suse.de>
16798 PR tree-optimization/48702
16799 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
16800 only when we know the base address is within bounds.
16801 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
16802 assume the base address of TARGET_MEM_REFs is in bounds.
16804 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16807 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
16808 declaration in TARGET_SOLARIS.
16810 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
16812 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
16813 The instruction is then expanded explicitly.
16814 (supported_compare): Callable instruction.
16815 (compare): Likewise.
16817 2011-05-26 Jakub Jelinek <jakub@redhat.com>
16820 * gimplify.c (shortcut_cond_r): Don't special case
16821 COND_EXPRs if they have void type on one of their arms.
16823 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
16825 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
16826 to reduce duplication, and to achieve a slightly more logical order
16829 2011-05-26 Jakub Jelinek <jakub@redhat.com>
16831 PR tree-optimization/49161
16832 * tree-vrp.c (struct case_info): New type.
16833 (compare_case_labels): Sort case_info structs instead of
16834 trees, and not primarily by CASE_LABEL uids but by
16835 label_for_block indexes.
16836 (find_switch_asserts): Put case labels into struct case_info
16837 array instead of TREE_VEC, adjust sorting, compare label_for_block
16838 values instead of CASE_LABELs.
16840 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16842 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
16843 ("orndi3_neon"): Likewise.
16844 ("bic<mode>3_neon"): Likewise.
16846 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
16848 PR tree-optimization/49038
16849 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
16850 Ensure at least one epilogue iteration if required by data
16851 accesses with gaps.
16852 * tree-vectorizer.h (struct _loop_vec_info): Add new field
16853 to mark loops that require peeling for gaps.
16854 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16855 (vect_get_known_peeling_cost): Take peeling for gaps into
16857 (vect_transform_loop): Generate epilogue if required by data
16859 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
16860 loop as requiring an epilogue if there are gaps in the end of
16863 2011-05-25 Ian Lance Taylor <iant@google.com>
16865 * godump.c (go_format_type): Output the first field with a usable
16868 2011-05-25 Ian Lance Taylor <iant@google.com>
16870 * godump.c (go_format_type): Check for invalid type names, pointer
16871 target types, and struct field types.
16873 2011-05-25 Jason Merrill <jason@redhat.com>
16875 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
16877 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
16879 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
16881 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16883 * config/i386/i386.md (*movqi_extv_1)): Put back
16884 "register_operand" check in "type" calculation.
16885 (*movqi_extzv_2): Likewise.
16887 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16889 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16891 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
16894 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16895 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16896 __divxc3, __divtc3): Wrap definitions in #ifndef.
16898 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16901 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16902 "register_operand" check and replace q_regs_operand with
16903 QIreg_operand in "type" calculation.
16904 (*movqi_extv_1): Likewise.
16905 (*movqi_extzv_2_rex64): Likewise.
16906 (*movqi_extzv_2): Likewise.
16908 * config/i386/predicates.md (QIreg_operand): New.
16910 2011-05-25 Richard Guenther <rguenther@suse.de>
16912 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16913 type-based offset disambiguation, streamline MEM_REF and
16914 TARGET_MEM_REF handling.
16916 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
16918 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16919 (bdesc_special_args): Add pause intrinsic.
16921 * config/i386/i386.md (UNSPEC_PAUSE): New.
16923 (*pause): Likewise.
16924 * config/i386/ia32intrin.h (__pause): Likewise.
16926 * doc/extend.texi (X86 Built-in Functions): Add documentation for
16929 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16931 PR tree-optimization/46728
16932 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16933 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16935 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
16937 * tree.h (struct tree_exp): Inherit from struct tree_typed.
16938 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16939 instead of TS_COMMON.
16941 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
16943 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16944 LIBGCC2_GNU_PREFIX is defined.
16946 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16947 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16948 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16949 __clz_tab): Define using __N.
16950 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16951 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16952 * target.def (libfunc_gnu_prefix): New hook.
16953 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16954 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16955 * doc/tm.texi: Regenerate.
16956 * system.h (LIBGCC2_GNU_PREFIX): Poison.
16957 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16959 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16960 (init_optabs): Likewise for the bswap libfuncs.
16961 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16963 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16964 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16965 * libgcc-std.ver: Remove.
16966 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16967 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16969 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16970 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16971 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16972 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16973 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16974 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16975 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16976 * config/fixed-bit.h (FIXED_OP): Define differently depending on
16977 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16978 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
16980 2011-05-25 Jan Hubicka <jh@suse.cz>
16982 * lto-streamer-out.c (output_record_start): Use lto_output_enum
16983 (lto_output_tree): Use output_record_start.
16984 * lto-streamer-in.c (input_record_start): Use lto_input_enum
16985 (lto_get_pickled_tree): Use input_record_start.
16986 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
16987 (lto_value_range_error): New function.
16988 * lto-streamer.h (lto_value_range_error): Declare.
16989 (lto_output_int_in_range, lto_input_int_in_range): New functions.
16990 (lto_output_enum, lto_input_enum): New macros.
16992 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
16994 * common.opt (flag_stack_usage_info): New variable.
16995 (-Wstack-usage): New option.
16996 * doc/invoke.texi (Warning options): Document -Wstack-usage.
16997 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
16998 <OPT_fstack_usage>: Likewise.
16999 * toplev.c (output_stack_usage): Handle -Wstack-usage.
17000 * calls.c (expand_call): Test flag_stack_usage_info variable instead
17001 of flag_stack_usage.
17002 (emit_library_call_value_1): Likewise.
17003 * explow.c (allocate_dynamic_stack_space): Likewise.
17004 * function.c (instantiate_virtual_regs ): Likewise.
17005 (prepare_function_start): Likewise.
17006 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
17007 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
17008 * config/arm/arm.c (arm_expand_prologue): Likewise.
17009 (thumb1_expand_prologue): Likewise.
17010 * config/avr/avr.c (expand_prologue): Likewise.
17011 * config/i386/i386.c (ix86_expand_prologue): Likewise.
17012 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
17013 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
17014 * config/mips/mips.c (mips_expand_prologue): Likewise.
17015 * config/pa/pa.c (hppa_expand_prologue): Likewise.
17016 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
17017 * config/s390/s390.c (s390_emit_prologue): Likewise.
17018 * config/sh/sh.c (sh_expand_prologue): Likewise.
17019 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
17020 * config/spu/spu.c (spu_expand_prologue): Likewise.
17022 2011-05-25 Richard Guenther <rguenther@suse.de>
17024 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
17025 (gimple_canonical_types_compatible_p): Likewise.
17027 2011-05-25 Jan Hubicka <jh@suse.cz>
17029 PR middle-end/49062
17030 * ipa.c (function_and_variable_visibility): Only add to same
17031 comdat group list if DECL_ONE_ONLY.
17033 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
17035 PR rtl-optimization/49014
17036 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
17038 2011-05-25 Jakub Jelinek <jakub@redhat.com>
17041 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
17043 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
17045 PR rtl-optimization/48757
17046 * ira-build.c (loop_with_eh_edge_p): Rename to
17047 loop_with_complex_edge_p, check edges on complexity, make function
17049 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
17052 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
17054 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
17055 force flag_ira_share_save_slots to 0.
17057 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
17059 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
17060 (vt_initialize): Set PROLOGUE_BB unconditionally.
17061 Add block comment about CFA_BASE_RTX machinery.
17062 Reset FP_CFA_OFFSET to -1 on all invalid paths.
17063 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
17065 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
17068 * c-parser.c (c_parser_objc_class_instance_variables): More robust
17069 parsing of syntax error in ObjC instance variable lists. In
17070 particular, avoid an infinite loop if there is a stray ']'.
17071 Updated error message.
17073 2011-05-24 Ian Lance Taylor <iant@google.com>
17075 * godump.c (go_define): Don't accept a string immediately after
17078 2011-05-24 Ian Lance Taylor <iant@google.com>
17080 * godump.c (struct godump_container): Add invalid_hash field.
17081 (go_format_type): Return false if type is found in invalid_hash.
17082 (go_output_typedef): Add invalid type to invalid_hash.
17083 (go_finish): Create and delete invalid_hash.
17085 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17087 PR tree-optimization/46728
17088 * tree-ssa-math-opts.c (powi_table): New.
17089 (powi_lookup_cost): New.
17091 (powi_as_mults_1): New.
17092 (powi_as_mults): New.
17093 (gimple_expand_builtin_powi): New.
17094 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
17095 (gate_cse_sincos): Remove sincos/cexp restriction.
17097 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17100 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
17102 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
17103 * mips-tdump.c: Likewise.
17105 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
17108 * config/i386/driver-i386.c (host_detect_local_cpu): Always
17109 add -mno-XXX. Handle FMA.
17111 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
17113 PR rtl-optimization/48633
17114 * ira-build.c (loop_with_eh_edge_p): New function.
17115 (mark_loops_for_removal): Use it.
17117 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
17119 PR rtl-optimization/48971
17120 * ira.c (setup_pressure_classes): Don't check register move cost
17121 for classes with one registers. Don't add pressure class if there
17122 is a pressure class with the same available hard registers.
17123 Check contains_reg_of_mode. Fix a typo in collecting
17124 temp_hard_regset. Ignore hard registers not belonging to a class.
17126 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
17129 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
17131 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
17132 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17134 PR gcov-profile/48845
17135 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
17137 2011-05-24 Richard Guenther <rguenther@suse.de>
17139 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
17140 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
17141 (gimple_types_compatible_p_1): Adjust.
17142 (iterative_hash_canonical_type): Do not bother about complete vs.
17144 (gimple_canonical_types_compatible_p): Likewise.
17146 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17148 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
17150 2011-05-24 Richard Guenther <rguenther@suse.de>
17153 * gimple.c (gimple_register_canonical_type): Revert
17155 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
17156 does not for a tree for the case where it matters. Cache
17157 pointer-type alias-sets.
17159 2011-05-24 Joseph Myers <joseph@codesourcery.com>
17161 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
17162 (OBJS): Remove options.o, opts-common.o and prefix.o.
17163 (OBJS-libcommon-target): New.
17164 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
17165 (BACKEND): Include libcommon-target.a.
17166 (MOSTLYCLEANFILES): Include libcommon-target.a.
17167 (libcommon-target.a): New.
17168 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
17171 2011-05-23 Joseph Myers <joseph@codesourcery.com>
17173 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
17174 parts of output shared with the driver.
17175 * optc-gen.awk: Don't generate parts of output not shared with the
17177 * opth-gen.awk: Remove GCC_DRIVER conditionals.
17178 * doc/options.texi (SourcerInclude): Mention options-save.c.
17179 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
17180 (OBJS): Add options-save.o.
17181 (options-save.c, options-save.o): New.
17182 (options.o): Update dependencies.
17183 (gcc-options.o): Remove.
17184 (mostlyclean): Remove options-save.c.
17186 2011-05-23 Jakub Jelinek <jakub@redhat.com>
17189 * dbxout.c: Include cgraph.h.
17190 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
17191 and without value expr, return NULL if no varpool node exists for
17192 it or if it is not needed.
17193 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
17196 * c-decl.c (start_decl): Convert expr to void_type_node.
17198 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
17200 PR rtl-optimization/48826
17201 * emit-rtl.c (try_split): When splitting a call that is followed
17202 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
17204 2011-05-23 Jakub Jelinek <jakub@redhat.com>
17206 * cfgexpand.c (expand_debug_expr): For unused non-addressable
17207 parameters passed in memory prefer using DECL_INCOMING_RTL over
17208 the pseudos it will be copied into.
17210 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
17213 * config/i386/i386.c (ix86_option_override_internal): Save the
17214 initial options after checking vzeroupper.
17216 2011-05-23 David Li <davidxl@google.com>
17218 PR tree-optimization/48988
17219 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
17220 Initialize has_valid_pred for each pred chain.
17222 2011-05-23 Richard Guenther <rguenther@suse.de>
17224 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
17225 (iterative_hash_gimple_type): Always hash type names.
17227 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
17229 * c-typeck.c (build_function_call_vec): Tweak call to
17230 check_function_arguments.
17232 2011-05-23 Richard Guenther <rguenther@suse.de>
17234 PR tree-optimization/49115
17235 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
17236 is not necessarily carried out, do not claim it kills the ref.
17237 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
17239 2011-05-23 Richard Guenther <rguenther@suse.de>
17241 PR middle-end/15419
17242 * builtins.c (fold_builtin_memory_op): Be less restrictive about
17243 what pointer types we accept for folding.
17245 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17247 * gthr-gnat.c: Remove.
17248 * gthr-gnat.h: Remove.
17249 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
17250 * config/t-freebsd (LIB2ADDEH): Likewise.
17251 * config/t-linux (LIB2ADDEH): Likewise.
17252 * config/t-sol2 (LIB2ADDEH): Likewise.
17253 * config/ia64/t-vms (LIB2ADDEH): Likewise.
17254 * configure.ac (target_thread_file): Remove gnat handling.
17255 * configure: Regenerate.
17256 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
17258 2011-05-23 Tristan Gingold <gingold@adacore.com>
17259 Eric Botcazou <ebotcazou@adacore.com>
17261 * gcov.c (create_file_names): If no object directory is specified,
17262 keep the directory of the file.
17264 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17266 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
17267 * configure: Regenerate.
17269 2011-05-23 Jakub Jelinek <jakub@redhat.com>
17271 PR middle-end/48973
17272 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
17273 failed and the comparison has a single bit signed type, use
17274 constm1_rtx instead of const1_rtx for true value.
17275 (do_store_flag): If ops->type is single bit signed type, disable
17276 signel bit test optimization and pass -1 instead of 1 as last
17277 parameter to emit_store_flag_force.
17279 2011-05-23 Tom de Vries <tom@codesourcery.com>
17282 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
17284 (infer_loop_bounds_from_undefined): Use new function.
17286 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
17288 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
17289 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
17290 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
17292 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
17294 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
17296 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
17297 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
17300 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
17302 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
17304 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
17306 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
17307 UNSPEC_MOVE_PIC pattern.
17309 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
17311 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
17312 (sparc-*-rtems*): Likewise.
17313 (sparc64-*-elf*): Likewise.
17314 (sparc64-*-rtems*): Likewise.
17315 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
17316 * config/sparc/t-crtin: New file.
17317 * config/sparc/t-sol2 (crti.o): Delete rule.
17318 (crtn.o): Likewise.
17319 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
17320 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
17321 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
17322 (ENDFILE_SPEC): Add crtn.o.
17324 2011-05-22 Tom de Vries <tom@codesourcery.com>
17326 PR middle-end/48689
17327 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
17328 CODE_CONTAINS_STRUCT (TS_COMMON).
17330 2011-05-22 Jakub Jelinek <jakub@redhat.com>
17332 PR middle-end/49029
17333 * expmed.c (extract_fixed_bit_field): Test whether target can be used
17334 only after deciding which mode to use.
17336 2011-05-22 Tom de Vries <tom@codesourcery.com>
17339 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
17340 for call to get_shiftadd_cost.
17342 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
17345 * config/i386/cpuid.h (bit_MMXEXT): New define.
17347 2011-05-22 Nick Clifton <nickc@redhat.com>
17349 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
17350 initialisation of non-existant args[2] element. Use args[] array
17351 not arg[] array to pass arguments to build_function_type_list.
17353 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
17355 PR tree-optimization/49087
17356 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
17358 2011-05-21 Jason Merrill <jason@redhat.com>
17361 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
17362 static storage duration.
17364 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
17366 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
17369 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
17371 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
17372 false if there are call-saved registers here...
17373 (sparc_can_use_return_insn_p): ...but here instead.
17374 (save_or_restore_regs): Fix thinko.
17375 (sparc_expand_prologue): Use current_function_is_leaf.
17376 (sparc_frame_pointer_required): Likewise.
17378 2011-05-21 Nick Clifton <nickc@redhat.com>
17381 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
17383 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
17385 * gengtype.c (walk_type): Implemented "atomic" GTY option.
17386 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
17388 2011-05-21 Joseph Myers <joseph@codesourcery.com>
17390 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
17391 * optc-gen.awk: Move common code to opt-read.awk.
17392 * opth-gen.awk: Likewise.
17393 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
17395 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
17397 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
17399 2011-05-20 Tom de Vries <tom@codesourcery.com>
17402 * tree-ssa-loop-ivopts.c: Include expmed.h.
17403 (get_shiftadd_cost): New function.
17404 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
17406 2011-05-20 Jakub Jelinek <jakub@redhat.com>
17409 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
17410 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
17412 2011-05-20 Joseph Myers <joseph@codesourcery.com>
17414 * Makefile.in: Update comment referring to $(OBJS-common).
17416 2011-05-20 Ian Lance Taylor <iant@google.com>
17418 * godump.c (go_output_typedef): Put enum constants in the macro
17419 hash table to avoid duplicate Go const definitions.
17421 2011-05-20 Joseph Myers <joseph@codesourcery.com>
17423 * Makefile.in (LIBDEPS): Add libcommon.a.
17425 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
17426 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
17427 pretty-print.o and version.o.
17428 (OBJS-libcommon): New.
17429 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
17430 (BACKEND): Add libcommon.a.
17431 (MOSTLYCLEANFILES): Likewise.
17432 (libcommon.a): New.
17433 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
17434 (cpp$(exeext)): Likewise.
17435 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
17436 pretty-print.o and input.o.
17437 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
17438 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
17439 (errors.o): Remove.
17440 (mips-tfile): Don't explicitly use version.o.
17441 (mips-tdump): Likewise.
17442 (gcov.o): Depend on $(DIAGNOSTIC_H).
17443 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
17444 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
17445 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
17446 * gcov-dump.c: Include intl.h and diagnostic.h.
17447 (main): Initialize diagnostics.
17448 * gcov.c: Include diagnostic.h.
17450 (main): Initialize diagnostics.
17451 * lto-wrapper.c: Include diagnostic.h.
17452 (main): Initialize diagnostics.
17454 2011-05-20 Michael Matz <matz@suse.de>
17456 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
17458 2011-05-20 Michael Matz <matz@suse.de>
17459 Richard Guenther <rguenther@suse.de>
17461 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
17462 use lto_streamer_cache_append directly instead of returning a VEC.
17463 (preload_common_node): Remove.
17464 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
17466 (lto_streamer_cache_create): Call lto_preload_common_nodes.
17468 2011-05-20 Richard Guenther <rguenther@suse.de>
17470 PR tree-optimization/49079
17471 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
17472 MEM_REFs correctly for the trailing array access detection.
17473 Special case constants the same way as decls for overall size
17476 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
17478 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
17479 argument expansion.
17481 2011-05-20 Jakub Jelinek <jakub@redhat.com>
17483 PR tree-optimization/49073
17484 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
17485 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
17486 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
17488 2011-05-20 Richard Guenther <rguenther@suse.de>
17490 PR middle-end/48849
17491 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
17492 of pointer types the same way the middle-end does.
17494 2011-05-20 Richard Guenther <rguenther@suse.de>
17496 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
17497 or pointer-to chains. Delay all fixup to uniquify_nodes.
17499 2011-05-19 Quentin Neill <quentin.neill@amd.com>
17501 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
17502 (fma4_fmaddsub): Likewise
17504 2011-05-19 Jan Hubicka <jh@suse.cz>
17506 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
17507 (GIMPLE_TYPE_PAIR_SIZE): New macro.
17508 (type_pair_cache): New static var.
17509 (lookup_type_pair): Use fixed sized custom hash; make inline.
17510 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
17511 calls of lookup_type_pair.
17512 (print_gimple_types_stats): Remove cache stats.
17513 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
17516 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
17518 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
17519 when TARGET_RDRND is active.
17520 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
17521 Generate dummy SImode target register when target is NULL.
17523 2011-05-19 Joseph Myers <joseph@codesourcery.com>
17525 * config/arm/arm-fpus.def: New.
17526 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
17528 * config/arm/arm-tables.opt: Regenerate.
17529 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
17530 (arm_option_override): Don't decode FPU name to string here.
17531 * config/arm/arm.opt (mfpu=): Use Enum.
17532 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
17533 Update dependencies.
17535 2011-05-19 Joseph Myers <joseph@codesourcery.com>
17537 * collect2.c: Include diagnostic.h.
17538 (fatal_perror, fatal, error, fancy_abort): Remove.
17539 (main): Set progname. Call xmalloc_set_program_name and
17540 diagnostic_initialize.
17541 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
17542 scan_libraries, resolve_lib_name): Call fatal_error instead of
17543 fatal and fatal_perror.
17544 * collect2.h (error, fatal, fatal_perror): Don't declare.
17545 * tlink.c: Include diagnostic-core.h.
17546 (recompile_files): Call fatal_error instead of fatal_perror.
17547 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
17548 pretty-print.o and input.o.
17549 (collect2.o, tlink.o): Update dependencies.
17551 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17553 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
17555 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17558 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
17559 COMDAT group syntax, both SPARC and x86 variants.
17560 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
17561 * configure: Regenerate.
17562 * config/sol2.h (TARGET_SOLARIS): Define.
17563 (PUSHSECTION_FORMAT): Remove.
17564 (SECTION_NAME_FORMAT): Define.
17565 * config/sol2.c: Include hashtab.h.
17566 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
17567 expansion, using SECTION_NAME_FORMAT.
17568 (solaris_comdat_htab): New variable.
17569 (struct comdat_entry): Define.
17570 (comdat_hash): New function.
17571 (comdat_eq): New function.
17572 (solaris_elf_asm_comdat_section): New function.
17573 (solaris_define_comdat_signature): New function.
17574 (solaris_code_end): New function.
17575 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
17576 (solaris_code_end): Declare.
17577 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
17578 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
17580 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
17581 Remove ATTRIBUTE_UNUSED.
17582 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
17583 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
17584 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
17585 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
17586 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
17587 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
17588 (PUSHSECTION_FORMAT): Remove.
17589 (SECTION_NAME_FORMAT): Redefine.
17591 2011-05-19 Kai Tietz <ktietz@redhat.com>
17593 * tree-cfg.c (verify_gimple_assign_binary): Barf on
17594 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
17595 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
17597 2011-05-19 Anatoly Sokolov <aesok@post.ru>
17598 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17600 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
17602 2011-05-19 Richard Guenther <rguenther@suse.de>
17604 PR middle-end/48985
17605 * tree-object-size.c (addr_object_size): If the pointed-to
17606 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
17608 2011-05-19 Richard Guenther <rguenther@suse.de>
17610 * gimple.c (gimple_types_compatible_p_1): Compare names of
17611 the types themselves.
17612 (iterative_hash_gimple_type): And hash them that way.
17613 (gimple_register_type_1): If we register a main variant properly
17614 initialize the leader to ourselves.
17616 2011-05-19 Tom de Vries <tom@codesourcery.com>
17619 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
17620 get_loop_invariant_expr_id.
17621 (get_loop_invariant_expr_id): Use get_expr_id.
17622 (parm_decl_cost): New function.
17623 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
17624 Improve bound cost estimation. Use different inv_expr_id for elim and
17627 2011-05-19 Tom de Vries <tom@codesourcery.com>
17630 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
17631 cost_base.cost == 0.
17633 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
17636 * config/i386/sse.md
17637 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
17640 2011-05-18 Jakub Jelinek <jakub@redhat.com>
17642 PR tree-optimization/49039
17643 * tree-vrp.c (extract_range_from_binary_expr): For
17644 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
17645 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
17647 2011-05-18 Tom de Vries <tom@codesourcery.com>
17650 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
17652 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
17654 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
17655 (*tls_global_dynamic_64): Ditto.
17656 (*tls_local_dynamic_base_32_gnu): Ditto.
17657 (*tls_local_dynamic_base_64): Ditto.
17658 (tls_initial_exec_64_sun): Ditto.
17660 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
17662 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
17663 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
17665 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
17666 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
17667 * config/bfin/bfin.c (bfin_cpus): Add bf592.
17668 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17669 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
17670 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
17671 * config/bfin/elf.h (LIB_SPEC): Add bf592.
17673 2011-05-18 Joseph Myers <joseph@codesourcery.com>
17675 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17676 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
17677 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
17678 target_thread_pointer, arm_structure_size_boundary, struct
17679 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
17680 struct abi_name, arm_all_abis): Remove.
17681 (arm_option_override) Don't process most enumerated option values here.
17682 Don't process target_fpe_name here. Work with integer not string for
17683 structure size boundary; use separate diagnostics for each case.
17684 * config/arm/arm.h (enum float_abi_type, enum
17685 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
17687 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
17688 arm_structure_size_boundary): Remove.
17689 * config/arm/arm.opt (mabi=): Use Enum and Init.
17690 (arm_abi_type): New Enum and EnumValue entries.
17691 (mfloat-abi=): Use Enum and Init.
17692 (float_abi_type): New Enum and EnumValue entries.
17693 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
17694 (mfp16-format=): Use Enum and Init.
17695 (arm_fp16_format_type): New Enum and EnumValue entries.
17696 (mstructure-size-boundary=): Use UInteger and Init.
17697 (mtp=): Use Enum and Init.
17698 (arm_tp_type): New Enum and EnumValue entries.
17700 2011-05-18 Richard Guenther <rguenther@suse.de>
17702 PR tree-optimization/49018
17703 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
17704 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
17705 gimple_has_side_effects.
17707 2011-05-18 Richard Guenther <rguenther@suse.de>
17709 * gimple.c (gimple_register_type_1): New function, split out from ...
17710 (gimple_register_type): ... here. Avoid infinite recursion.
17712 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
17714 PR tree-optimization/41881
17715 * tree-vectorizer.h (struct _loop_vec_info): Add new field
17716 reduction_chains along with a macro for its access.
17717 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
17718 (destroy_loop_vec_info): Free reduction chains.
17719 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
17720 (vect_is_slp_reduction): New function.
17721 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
17722 (vect_create_epilog_for_reduction): Support SLP reduction chains.
17723 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
17724 definition types for reduction chains.
17725 (vect_supported_load_permutation_p): Don't allow permutations for
17727 (vect_analyze_slp_instance): Support reduction chains.
17728 (vect_analyze_slp): Try to build SLP instance from reduction chains.
17729 (vect_get_constant_vectors): Handle reduction chains.
17730 (vect_schedule_slp_instance): Mark the first statement of the
17731 reduction chain as reduction.
17733 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
17735 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
17736 names for group elements access.
17737 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
17738 reduction chains as well. Remove data reference and interleaving
17739 related words from the fields names.
17740 * tree-vect-loop.c (vect_transform_loop): Use new names for group
17742 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
17743 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
17744 vect_update_interleaving_chain, vect_same_range_drs,
17745 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
17746 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
17747 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
17748 vect_analyze_group_access, vect_analyze_data_ref_access,
17749 vect_create_data_ref_ptr, vect_transform_strided_load,
17750 vect_record_strided_load_vectors): Likewise.
17751 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
17752 vect_model_load_cost, vectorizable_store, vectorizable_load,
17753 vect_remove_stores, new_stmt_vec_info): Likewise.
17754 * tree-vect-slp.c (vect_build_slp_tree,
17755 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
17757 2011-05-18 Richard Guenther <rguenther@suse.de>
17759 PR middle-end/48989
17760 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
17761 operand verification.
17762 (verify_gimple_assign_binary): Likewise.
17763 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
17764 to non-1-precision BOOLEAN_TYPEs.
17766 2011-05-18 Tom de Vries <tom@codesourcery.com>
17769 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
17771 2011-05-18 Jakub Jelinek <jakub@redhat.com>
17773 PR tree-optimization/49000
17774 * tree-ssa.c (execute_update_addresses_taken): Call
17775 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
17776 be rewritten and decl has been marked for renaming, reset
17779 2011-05-17 Joseph Myers <joseph@codesourcery.com>
17781 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
17782 enum_opts_set when testing if attributes have set -mfpmath=.
17784 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17786 * config/mips/mips.c (mips_handle_option): Remove unused variable.
17788 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
17790 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
17792 * tree-inline.c (maybe_inline_call_in_expr): Initialize
17793 id.transform_lang_insert_block with NULL.
17795 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
17797 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
17798 (output_fp_compare): Change args 3 and 4 to bool.
17799 (ix86_expand_call): Change arg 6 to bool.
17800 (ix86_attr_length_immediate_default): Change arg 2 to bool.
17801 (ix86_attr_length_vex_default): Change arg 3 to bool.
17802 * config/i386/i386.md: Update all uses.
17803 * config/i386/i386.c: Ditto.
17804 (ix86_flags_dependent): Change return type to bool.
17806 2011-05-17 Richard Guenther <rguenther@suse.de>
17808 * gimple.c (type_hash_pair_compare): Fix comparison.
17810 2011-05-17 Richard Guenther <rguenther@suse.de>
17812 * gimple.c (iterative_hash_gimple_type): Simplify singleton
17813 case some more, fix final hash value of the non-singleton case.
17815 2011-05-17 Richard Guenther <rguenther@suse.de>
17819 2011-05-16 Richard Guenther <rguenther@suse.de>
17821 * gimple.c (gimple_types_compatible_p_1): Use names of the
17822 type itself, not its main variant.
17823 (iterative_hash_gimple_type): Likewise.
17825 2011-05-17 Richard Guenther <rguenther@suse.de>
17827 * gimple.c (gimple_register_canonical_type): Use the main-variant
17828 leader for computing the canonical type.
17830 2011-05-17 Nick Clifton <nickc@redhat.com>
17832 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
17835 * config/rx/rx.md: Add peephole to remove redundant extensions
17837 (bitset_in_memory): Use rx_restricted_mem_operand.
17838 (bitinvert_in_memory): Likewise.
17839 (bitclr_in_memory): Likewise.
17841 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
17842 Nick Clifton <nickc@redhat.com>
17844 * config/rx/rx.md: Add peepholes to match a register move followed
17845 by a comparison of the moved register. Replace these with an
17846 addition of zero that does both actions in one instruction.
17848 2011-05-17 Jakub Jelinek <jakub@redhat.com>
17851 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
17852 predicate to allow CONST_INT.
17853 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
17855 2011-05-16 Joseph Myers <joseph@codesourcery.com>
17857 * opts-common.c (opt_enum_arg_to_value): New.
17858 * opts.h (opt_enum_arg_to_value): Declare.
17859 * config/i386/i386.opt (fpmath): Remove.
17860 (mfpmath=): Use Enum, Init and Save.
17861 (fpmath_unit): New Enum and EnumValue entries.
17862 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
17863 name for function fpmath state.
17864 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
17865 * config/i386/i386.c: Include diagnostic.h.
17866 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
17867 (ix86_target_string): Take enum fpmath_unit value instead of string.
17868 (ix86_debug_options): Update call to ix86_target_string.
17869 (ix86_option_override_internal): Don't process fpmath strings here.
17870 (x86_function_specific_save, ix86_function_specific_restore):
17871 Don't handle fpmath state specially.
17872 (ix86_function_specific_print): Pass fpmath state to
17873 ix86_target_string instead of printing in this function.
17874 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
17875 Handle enum attributes.
17876 (IX86_ATTR_ENUM, ix86_opt_enum): New.
17877 (ix86_valid_target_attribute_tree): Update option_strings
17878 handling. Handle fpmath as enum option.
17879 (ix86_can_inline_p): Update field names for function fpmath state.
17880 (ix86_expand_builtin): Update call to ix86_target_string.
17881 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
17882 (ix86_fpmath): Remove.
17883 * config/i386/t-i386 (i386.o): Update dependencies.
17885 2011-05-16 Joseph Myers <joseph@codesourcery.com>
17887 PR preprocessor/48677
17888 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
17889 from decoded_options[0], not from itself.
17891 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
17893 * config/i386/constraints.md (z): New constraint.
17894 * config/i386/i386.c (c): New mode attribute.
17895 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17896 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17897 constraint for operand 0.
17898 (*call_vzeroupper): Ditto.
17899 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
17900 (*call_rex64_ms_sysv_vzeroupper): Ditto.
17901 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17902 Use "lzm" constraint for operand 0.
17903 (*call_pop_vzeroupper): Ditto.
17904 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17905 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
17906 constraint for operand 0.
17907 (*sibcall_vzeroupper): Ditto.
17908 (*sibcall_rex64_ms_sysv): Ditto.
17909 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17910 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17911 *sibcall_pop_1. Use "Uz" constraint for operand 0.
17912 (*sibcall_pop_vzeroupper): Ditto.
17913 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17914 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17915 mode iterator. Use "<c>zm" constraint for operand 1.
17916 (*call_value_vzeroupper): Ditto.
17917 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
17919 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17920 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17921 *call_value_pop_1. Use "lzm" constraint for operand 1.
17922 (*call_value_pop_vzeroupper): Ditto.
17923 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17924 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17925 mode iterator. Use "Uz" constraint for operand 1.
17926 (*sibcall_value_vzeroupper): Ditto.
17927 (*sibcall_value_rex64_ms_sysv): Ditto.
17928 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17929 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
17930 constraint for operand 1.
17931 (*sibcall_value_pop_vzeroupper): Ditto.
17932 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17933 and "z" constraint for operand 2.
17934 (*tls_global_dynamic_32_gnu): Ditto.
17935 (*tls_local_dynamic_base_32_gnu): Ditto.
17936 (*tls_local_dynamic_base_64): Ditto.
17937 (*tls_local_dynamic_32_once): Ditto.
17938 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17939 Update all callers.
17940 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17942 2011-05-16 Richard Guenther <rguenther@suse.de>
17944 * gimple.c (gimple_types_compatible_p_1): Use names of the
17945 type itself, not its main variant.
17946 (iterative_hash_gimple_type): Likewise.
17948 2011-05-16 Richard Guenther <rguenther@suse.de>
17950 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17951 always visit pointer target and function result and argument types.
17953 2011-05-16 Jason Merrill <jason@redhat.com>
17956 * tree-inline.c (copy_statement_list): Put back recursion.
17958 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
17962 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17963 * config/avr/avr.md ("*ior<mode>qi.byte0",
17964 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17966 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
17969 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17970 register is needed for a function argument.
17972 2011-05-16 Richard Guenther <rguenther@suse.de>
17974 * gimple.c (struct type_hash_pair): New type.
17975 (type_hash_pair_compare): New function.
17976 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17978 2011-05-16 Revital Eres <revital.eres@linaro.org>
17980 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
17982 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
17984 * config/i386/i386.md (floating point move splitters): Fix
17985 usage of standard_80387_constant_p.
17986 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
17988 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
17990 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
17992 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
17994 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
17995 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
17996 (tree_ssa_lim_finalize): Likewise.
17998 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
18000 * config/i386/constraint.md (Yd, Yx): New register constraints.
18001 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
18002 Yd conditional register constraint.
18003 (*movtf_internal): Use standard_sse_constant_opcode.
18004 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
18005 Yx conditional register constraint.
18006 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
18007 Yd conditional register constraint. Use standard_sse_constant_p to
18008 check for valid SSE constants and call standard_sse_constant_opcode to
18010 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
18011 constants and call standard_sse_constant_opcode to output SSE insn.
18012 * config/i386/i386.c (ix86_option_ovverride_internal): Set
18013 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
18014 optimize_size is set.
18015 (standard_sse_constant_opcode): Output conditional AVX insn templates.
18017 2011-05-14 Tobias Burnus <burnus@net-b.de>
18019 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
18021 2011-05-13 Martin Jambor <mjambor@suse.cz>
18023 * ipa-prop.c (ipa_cst_from_jfunc): New function.
18024 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
18025 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
18026 (evaluate_conditions_for_ipcp_clone): Removed.
18027 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
18028 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
18029 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
18031 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
18033 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
18034 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
18035 lieu of MAY_HAVE_DEBUG_STMTS.
18036 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
18037 debug statements if !MAY_HAVE_DEBUG_STMTS.
18039 2011-05-13 Martin Thuresson <martint@google.com>
18041 PR gcov-profile/47793
18042 * libgcov.c (gcov_exit): Support relative profile paths.
18043 * doc/invoke.texi (-fprofile-dir): Update for above change.
18045 2011-05-13 Richard Guenther <rguenther@suse.de>
18047 * gimple.c (gimple_canonical_types_compatible_p): Do not use
18048 type-pair caching, do not compare hashes.
18050 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
18052 PR middle-end/48965
18053 * tree-cfg.c (edge_to_cases_cleanup): Return true.
18054 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
18056 2011-05-13 Kai Tietz <ktietz@redhat.com>
18058 * gimplify.c (gimplify_expr): Make sure operand is boolified.
18059 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
18060 compatible type for TRUTH_NOT_EXPR.
18062 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
18064 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
18065 (ix86_hard_regno_mode_ok): Change return value to bool. Use
18066 can_create_pseudo_p ().
18068 2011-05-13 Richard Guenther <rguenther@suse.de>
18071 * gimple.c (iterative_hash_gimple_type): Revert change in
18072 pointer target and function result and argument hashing.
18074 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
18076 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
18077 (*movxf_internal_nointeger): Ditto.
18078 (*movdf_internal_rex64): Ditto.
18079 (*movdf_internal): Ditto.
18080 (*movdf_internal_nointeger): Ditto.
18081 (*movsf_internal): Ditto.
18082 (sincos splitters): Use can_create_pseudo ().
18084 2011-05-13 Joseph Myers <joseph@codesourcery.com>
18086 * config/i386/i386-opts.h: New.
18087 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
18088 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
18089 ix86_section_threshold): Remove.
18090 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
18091 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
18093 (ix86_option_override_internal): Don't decode strings for options
18094 other than -march=, -mtune= and -mfpmath=. Don't allow for
18095 __attribute__ uses in remaining diagnostics for options with
18096 string arguments. Don't check for integer arguments being negative.
18097 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
18098 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
18099 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
18100 ix86_branch_cost, ix86_section_threshold): Remove.
18101 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
18103 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
18105 (masm=): Use Enum and Init.
18106 (asm_dialect): New Enum and EnumValue entries.
18107 (mbranch-cost=): Use UInteger.
18108 (mlarge-data-threshold=): Use UInteger and Init.
18109 (mcmodel=): Use Enum and Init.
18110 (cmodel): New Enum and EnumValue entries.
18111 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
18112 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
18113 mregparm=): Use UInteger.
18114 (mstringop-strategy=): Use Enum and Init.
18115 (stringop_alg): New Enum and EnumValue entries.
18116 (mtls-dialect=): Use Enum and Init.
18117 (tls_dialect): New Enum and EnumValue entries.
18118 (mabi=): Use Enum and Init.
18119 (calling_abi): New Enum and EnumValue entries.
18120 (mveclibabi=): Use Enum and Init.
18121 (ix86_veclibabi): New Enum and EnumValue entries.
18123 2011-05-13 Nick Clifton <nickc@redhat.com>
18125 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
18126 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
18128 2011-05-13 Kai Tietz <ktietz@redhat.com>
18130 PR middle-end/48984
18131 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
18132 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
18133 (gimple_boolify): Check for cast for boolean_type_node instead for
18136 2011-05-13 Richard Guenther <rguenther@suse.de>
18138 PR tree-optimization/48172
18139 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
18140 multiplying by number of iterations for equal step.
18141 (vect_create_cond_for_alias_checks): Likewise.
18143 2011-05-13 Andreas Schwab <schwab@redhat.com>
18145 * configure.ac: Use AS_HELP_STRING throughout.
18146 * configure: Regenerate.
18148 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
18150 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
18151 (ix86_emit_restore_regs_using_mov): Likewise.
18152 (ix86_emit_restore_sse_regs_using_mov): Likewise.
18154 2011-05-12 Anatoly Sokolov <aesok@post.ru>
18156 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
18157 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
18158 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
18159 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
18160 RTX_OK_FOR_OLO10_P): ...here.
18161 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
18164 2011-05-12 Kai Tietz <ktietz@redhat.com>
18166 * gimplify.c (gimple_boolify): Re-boolify expression
18167 arguments even if expression type is of kind BOOLEAN_TYPE.
18168 (gimplify_boolean_expr): Removed.
18169 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
18170 and XOR. Additional take care that we keep expression's type.
18171 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
18172 of TRUTH_AND|OR|XOR_EXPR.
18174 2011-05-12 Jakub Jelinek <jakub@redhat.com>
18176 PR tree-optimization/48975
18177 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
18178 on all bbs here and free and clear ifc_bbs at the end.
18180 2011-05-12 Richard Guenther <rguenther@suse.de>
18182 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
18183 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
18184 until after simple checks.
18185 (gimple_types_compatible_p): Likewise.
18186 (iterative_hash_gimple_type): Always hash pointer targets
18187 and function return and argument types.
18188 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
18189 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
18190 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
18191 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
18192 completely in the simple compare section.
18193 (gimple_register_canonical_type): Query the cache again after
18196 2011-05-12 Richard Guenther <rguenther@suse.de>
18198 PR tree-optimization/48172
18199 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
18200 the number of iterations from the segment size calculation.
18201 (vect_create_cond_for_alias_checks): Adjust.
18203 2011-05-12 Jakub Jelinek <jakub@redhat.com>
18206 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
18207 if validate_subreg fails.
18209 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
18211 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
18212 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
18215 2011-05-12 DJ Delorie <dj@redhat.com>
18217 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
18218 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
18219 created builtin into rx_builtins array.
18220 (rx_builtin_decl): New function.
18221 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
18223 2011-05-12 DJ Delorie <dj@redhat.com>
18224 Nick Clifton <nickc@redhat.com>
18226 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
18227 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
18228 (rx_is_legitimate_address): Add pre-decrement and post-increment
18229 addressing in HImode and QImode. Fix test for out of range
18230 REG+INT addressing.
18231 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
18232 (rx_align_for_label): Test label before extracting its usage count.
18233 (rx_adjust_insn_lengths): Fix selection of insn codes.
18234 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
18236 2011-05-11 Jason Merrill <jason@redhat.com>
18238 * tree.c (type_hash_canon): Use struct tree_type_non_common.
18240 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
18242 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
18243 reindent the subsequent block.
18245 2011-05-11 Satoru Takabayashi <satorux@google.com>
18246 Paul Pluzhnikov <ppluzhnikov@google.com>
18248 * doc/install.texi (Configuration): Document --with-linker-hash-style.
18249 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
18250 * config.in: Add LINKER_HASH_STYLE.
18251 * configure.ac: Add --with-linker-hash-style.
18252 * configure: Regenerate.
18254 2011-05-11 Richard Guenther <rguenther@suse.de>
18256 PR middle-end/48964
18257 * gimple.c (iterative_hash_canonical_type): Fix typo.
18259 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
18261 * config/i386/i386.c (legitimize_tls_address)
18262 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18263 expanders directly for TARGET_GNU2_TLS. Determine pic and
18264 __tls_get_addr symbol reference here. Update call to
18265 gen_tls_global_dynamic_{32,64} for added arguments.
18266 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18267 expanders directly for TARGET_GNU2_TLS. Determine
18268 __tls_get_addr symbol reference here. Update call to
18269 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
18270 unique UNSPEC REG_EQUIV to libcall block.
18271 (ix86_tls_get_addr): Declare static.
18272 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
18273 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
18274 Do not determine pic and __tls_get_addr symbol reference here. Do not
18275 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
18276 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
18277 (tls_global_dynamic_64): Add operand 2. Do not determine
18278 __tls_get_addr symbol reference here. Do not call
18279 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
18280 (tls_local_dynamic_base64): Ditto for operand 1.
18282 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
18284 * function.c (expand_function_start): Initialize stack_check_probe_note
18285 only if the generic stack checking mechanism is used.
18287 2011-05-11 Richard Guenther <rguenther@suse.de>
18289 PR tree-optimization/15256
18290 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
18291 (A & B) | C, combine (A op CST1) op CST2.
18292 (tree_ssa_forward_propagate_single_use_vars): Only bother to
18293 visit assigns that have uses.
18295 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
18297 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
18298 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
18299 (unpack_ts_type_common_value_fields): ...this. Update comment.
18300 (unpack_value_fields): Adjust for renaming.
18301 (lto_input_ts_type_tree_pointers): Split into...
18302 (lto_input_ts_type_common_tree_pointer): ...this and...
18303 (lto_input_ts_type_non_common_tree_pointers): ...this.
18304 (lto_input_tree_pointers): Adjust for above split.
18305 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
18306 (pack_ts_type_common_value_fields): ...this. Update comment.
18307 (lto_output_ts_type_tree_pointers): Split into...
18308 (lto_output_ts_type_common_tree_pointers): ...this and...
18309 (lto_output_ts_type_non_common_tree_pointers): ...this.
18310 (lto_output_tree_pointers): Adjust for above split.
18311 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
18312 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
18313 * stor-layout.c (vector_type_mode): Adjust location of mode field.
18314 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
18316 (struct tree_type): Split into...
18317 (struct tree_type_common: ...this and...
18318 (struct tree_type_with_lang_specific): ...this and...
18319 (struct tree_type_non_common): ...this. Adjust accessor macros
18321 (TYPE_VALUES_RAW): Define.
18322 (union tree_node): Update for above changes.
18323 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
18324 TS_TYPE_NON_COMMON.
18325 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
18326 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
18327 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
18328 * treestructu.def (TS_TYPE): Remove.
18329 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
18332 2011-05-11 Jakub Jelinek <jakub@redhat.com>
18335 * tree-ssa.c (reset_debug_uses): New function.
18336 * tree-flow.h (reset_debug_uses): New prototype.
18337 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
18338 * tree-loop-distribution.c (generate_loops_for_partition): Call
18339 reset_debug_uses on the stmts that will be removed. Keep around
18340 all debug stmts, don't count them as bits in partition bitmap.
18341 (generate_builtin): Don't count debug stmts or labels as bits in
18344 2011-05-11 Richard Guenther <rguenther@suse.de>
18346 * gimple.c (gimple_type_hash_1): Merge with ...
18347 (gimple_type_hash): ... this.
18348 (gtc_visit): Remove mode parameter and simplify accordingly.
18349 (gimple_types_compatible_p_1): Likewise.
18350 (gimple_types_compatible_p): Likewise.
18351 (iterative_hash_gimple_type): Likewise.
18353 (gimple_type_eq): Adjust.
18355 2011-05-11 Revital Eres <revital.eres@linaro.org>
18357 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
18358 enters the branch create an anti edge in the opposite direction
18359 to prevent the creation of reg-moves.
18360 * modulo-sched.c: Adjust comment to reflect the fact we are
18361 scheduling closing branch.
18362 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
18363 (stage_count): New field in struct partial_schedule.
18364 (calculate_stage_count): New function.
18365 (normalize_sched_times): Rename to reset_sched_times and handle
18366 incrementing the sched time of the nodes by a constant value
18367 passed as parameter.
18368 (duplicate_insns_of_cycles): Skip closing branch.
18369 (sms_schedule_by_order): Schedule closing branch.
18370 (ps_insn_find_column): Handle closing branch.
18371 (sms_schedule): Call reset_sched_times and adjust the code to
18372 support scheduling of the closing branch.
18373 (ps_insert_empty_row): Update calls to normalize_sched_times
18374 and rotate_partial_schedule functions.
18376 2011-05-11 Richard Guenther <rguenther@suse.de>
18378 PR middle-end/48953
18379 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
18381 2011-05-11 Joseph Myers <joseph@codesourcery.com>
18383 * opts.c (finish_options): Move warning settings from process_options.
18384 * toplev.c (process_options): Move warning settings to finish_options.
18386 2011-05-11 Richard Guenther <rguenther@suse.de>
18388 PR tree-optimization/18041
18389 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
18390 (simplify_bitwise_binary): ... this. Handle operand conversions
18391 by applying them to the result instead.
18392 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
18394 2011-05-11 Richard Guenther <rguenther@suse.de>
18396 * gimple.c (gimple_canonical_types_compatible_p): Split out
18397 from gimple_types_compatible_p and friends. Do not recurse
18398 to pointed-to types.
18399 (gimple_canonical_type_eq): Use it.
18400 (iterative_hash_canonical_type): Split out from
18401 iterative_hash_gimple_type and friends. Do not recurse
18402 to pointed-to types.
18403 (gimple_canonical_type_hash): Use it, allocate the hash here.
18405 2011-05-11 Revital Eres <revital.eres@linaro.org>
18407 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
18408 recognizing doloop.
18410 2011-05-11 Revital Eres <revital.eres@linaro.org>
18412 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
18413 instead of PREV_INSN.
18415 2011-05-11 Revital Eres <revital.eres@linaro.org>
18417 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
18418 * loop-doloop.c (doloop_condition_get): Likewise.
18419 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
18421 * config/arm/arm.md (*addsi3_compare0): Remove "*".
18423 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
18425 * tree.def (CASE_LABEL_EXPR): Add an operand.
18426 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
18428 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18430 * c-decl.c (c_override_global_bindings_to_false): Remove.
18431 (global_bindings_p): Don't check
18432 c_override_global_bindings_to_false.
18433 * c-tree.h (c_override_global_bindings_to_false): Remove.
18434 * c-typeck.c (composite_type): Don't set
18435 c_override_global_bindings_to_false.
18437 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18439 PR target/48857, 48495
18440 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
18442 (VSX_MOVE_MODE): Ditto.
18443 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
18444 VSX vector types. Add V2DImode.
18445 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
18446 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
18447 (MODES_TIEABLE_P): Ditto.
18449 * config/rs6000/rs6000.c (rs6000_emit_move): Use
18450 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
18452 (init_cumulative_args): Ditto.
18453 (rs6000_function_arg_boundary): Ditto.
18454 (rs6000_function_arg_advance_1): Ditto.
18455 (rs6000_function_arg): Ditto.
18456 (rs6000_function_ok_for_sibcall): Ditto.
18457 (emit_frame_save): Ditto.
18458 (rs6000_function_value): Ditto.
18459 (rs6000_libcall_value): Ditto.
18461 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18463 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18464 i386/darwin-lib.h to $libgcc_tm_file.
18465 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
18467 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18469 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
18471 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18473 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
18474 * config/rs6000/rs6000-tables.opt: New file (generated).
18475 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
18476 rs6000/rs6000-tables.opt to extra_options.
18477 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
18478 * config/rs6000/rs6000.c (rs6000_select): Remove.
18479 (processor_target_table): Move contents to rs6000-cpus.def.
18480 (darwin_rs6000_override_options): Check
18481 global_options_set.x_rs6000_cpu_index instead of
18482 rs6000_select[1].string.
18483 (rs6000_option_override_internal): Likewise.
18484 (rs6000_handle_option): Don't assert that global structures are in
18485 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
18486 (rs6000_default_cpu): New variable.
18487 (rs6000_file_start): Set it instead of local default_cpu. Check
18488 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
18489 global_options_set.x_rs6000_tune_index instead of rs6000_select.
18490 (rs6000_darwin_file_start): Check rs6000_default_cpu and
18491 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
18492 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
18493 rs6000_select): Remove.
18494 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
18496 (mcpu=, mtune=): Use Var, Init, Enum and Save.
18497 * config/rs6000/t-rs6000
18498 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
18499 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18500 global_options_set.x_rs6000_cpu_index instead of
18501 rs6000_select[1].string.
18502 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18503 global_options_set.x_rs6000_cpu_index instead of
18504 rs6000_select[1].string.
18506 2011-05-10 Joseph Myers <joseph@codesourcery.com>
18508 * config.gcc (libgcc_tm_file): Define instead of including files
18509 from ../../libgcc/config/ in tm_file.
18510 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
18511 * configure: Regenerate.
18512 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
18513 libgcc_tm.h, cs-libgcc_tm.h): New.
18514 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
18515 (clean): Remove libgcc_tm.h.
18516 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
18517 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
18518 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
18520 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
18523 * config/avr/avr.c (avr_ret_register): Return unsigned int
18525 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
18526 it to avr_libcall_value.
18527 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
18529 (avr_expand_binop_builtin): Ditto.
18530 (avr_expand_unop_builtin): Ditto.
18532 2011-05-10 DJ Delorie <dj@redhat.com>
18534 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
18535 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
18536 * config/rx/rx.c (rx_align_for_label): Add label and
18537 uses_threshold parameters. Do not align when the label is not
18539 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
18541 2011-05-10 Richard Guenther <rguenther@suse.de>
18543 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
18544 a series of conversions and apply foldings similar to what
18546 (tree_ssa_forward_propagate_single_use_vars): Call it.
18548 2011-05-10 Jakub Jelinek <jakub@redhat.com>
18550 PR tree-optimization/48611
18551 PR tree-optimization/48794
18552 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
18553 referenced from RESX or EH_DISPATCH arguments.
18556 * dfp.c (decimal_to_decnumber): Handle conversion from
18557 dconst{1,2,m1,half}.
18559 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18561 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
18562 for !flag_prefer_avx128.
18563 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
18565 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
18567 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
18568 (fold_ternary_loc): Use expr_location_or.
18570 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
18573 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
18574 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
18575 Pmode and mem_mode is not VOIDmode.
18577 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
18579 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
18580 TYPE_QUAL_RESTRICT): Convert to enum.
18582 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18584 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
18585 (const_pow2_1_to_8_operand): Ditto.
18586 (const_pow2_1_to_128_operand): Ditto.
18587 (const_pow2_1_to_32768_operand): Ditto.
18588 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
18589 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
18590 in insn constraint to check integer value of operand 3.
18591 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
18593 (PINSR_MODE): New mode iterator.
18594 (sse2p4_1): New mode attribute.
18595 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
18596 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
18597 iterator. Use const_int_operand instead of
18598 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
18599 exact_log2 in insn constraint to check integer value of operand 3.
18601 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18603 * config/i386/sse.md (blendbits): Remove mode attribute.
18604 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18605 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18606 Check integer value of operand 3 in insn constraint.
18608 2011-05-09 Richard Guenther <rguenther@suse.de>
18610 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
18612 (lto_symtab_merge): Likewise. Do not register types here.
18613 (lto_symtab_merge_decls_2): Likewise.
18614 (lto_symtab_merge_decls_1): Likewise.
18615 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
18616 * gimple.c (enum gtc_mode): Declare.
18617 (gimple_types_compatible_p): Make static.
18619 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18621 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
18622 temporary register to match Pmode.
18624 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18626 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
18627 and *vec_concatv4si_1_avx.
18629 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
18631 PR rtl-optimization/48927
18632 * ira-conflicts.c (commutative_constraint_p): Use
18633 recog_data.alternative_enabled_p to disable alternatives where
18634 "enabled" attribute is false.
18635 (get_dup_num): Ditto.
18636 * ira-lives.c (single_reg_class): Ditto.
18637 (ira_implicitly_set_insn_hard_regs): Ditto.
18639 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
18641 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
18642 (dataflow_set_preserve_mem_locs): Likewise.
18644 2011-05-09 Philipp Thomas <pth@suse.de>
18646 * config/mep/mep.c (mep_validate_vliw): Syntax description
18647 should not be translated.
18649 2011-05-09 Joseph Myers <joseph@codesourcery.com>
18651 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
18652 * config/mips/mips-tables.opt: New file (generated).
18653 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
18654 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
18655 MIPS_ARCH_OPTION_NATIVE): Define.
18656 * config/mips/mips.c (mips_cpu_info_table): Move contents to
18658 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
18659 mips_parse_cpu): Remove.
18660 (mips_cpu_info_from_opt, mips_default_arch): New.
18661 (mips_handle_option): Don't assert that global structures are in
18662 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
18663 (mips_option_override): Use new variables and functions to set
18664 state of these options. Use strcmp to check for individual CPU names.
18665 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
18667 * config/mips/mips.opt (march=): Use ToLower and Enum.
18668 (mips): Use ToLower, Enum and Var.
18669 (mtune=): Use ToLower and Enum.
18670 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
18672 2011-05-08 Jan Hubicka <jh@suse.cz>
18674 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
18675 Arrange type pairs to be UID ordered.
18676 (gimple_lookup_type_leader): Make inline.
18678 2011-05-09 Nick Clifton <nickc@redhat.com>
18681 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
18685 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
18688 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
18690 * combine.c (simplify_comparison): Abstract out parts into...
18691 (simplify_compare_const): ... new function.
18692 (try_combine): Generalize parallel arithmetic/compare combining
18693 to call simplify_compare_const() and CANONICALIZE_COMPARE().
18695 2011-05-08 Jan Hubicka <jh@suse.cz>
18697 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
18698 (cgraph_create_virtual_clone): Call hooks once virtual clone
18700 * cgraph.h (cgraph_clone_node): Update prototype.
18701 * ipa-cp.c (ipcp_estimate_growth): Use
18702 estimate_ipcp_clone_size_and_time.
18703 * ipa-inline-transform.c (clone_inlined_nodes): Update.
18704 * lto-cgraph.c (input_node): Update.
18705 * ipa-inline.c (recursive_inlining): Update.
18706 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
18707 (evaluate_conditions_for_known_args): Break out from ...
18708 (evaluate_conditions_for_edge): ... here.
18709 (evaluate_conditions_for_ipcp_clone): New function.
18710 (inline_node_duplication_hook): Update clone summary based
18712 (estimate_callee_size_and_time): Rename to ...
18713 (estimate_node_size_and_time): take NODE instead of EDGE;
18714 take POSSIBLE_TRUTHS as argument.
18715 (estimate_callee_size_and_time): Update.
18716 (estimate_ipcp_clone_size_and_time): New function.
18717 (do_estimate_edge_time): Update.
18719 2011-05-08 Richard Guenther <rguenther@suse.de>
18721 PR middle-end/48908
18722 PR middle-end/48905
18723 * expmed.c (expand_shift_1): Compute adjusted constant shift
18726 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
18728 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
18730 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
18732 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
18734 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
18736 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
18738 2011-05-07 Jan Hubicka <jh@suse.cz>
18740 * ipa-inline-transform.c (inline_call): Account when program size
18742 * ipa-inline.c (relative_time_benefit): New function.
18743 (edge_badness): Reorganize to be power 2 based; fix thinko when
18744 computing badness for negative growth; update comments to match
18745 reality; better dumps.
18747 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
18749 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
18750 type to bool and adjust comment.
18751 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
18752 (fold_mathfn_compare): Remove calls to global_bindings_p.
18753 (fold_inf_compare): Likewise.
18754 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
18755 * c-tree.h (global_bindings_p): Adjust prototype.
18756 * c-decl.c (global_bindings_p): Return bool and simplify.
18758 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
18760 PR tree-optimization/48837
18761 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
18762 when accumulator transformation is performed.
18764 2011-05-06 Jan Hubicka <jh@suse.cz>
18766 * i386.h (ix86_tune_indices): Add
18767 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
18768 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
18769 * i386.c (initial_ix86_tune_features): Add
18770 X86_SOFTARE_PREFETCHING_BENEFICIAL.
18771 (software_prefetching_beneficial_p): Remove predicate.
18772 (ix86_option_override_internal): Use new macro.
18774 2011-05-06 Jan Hubicka <jh@suse.cz>
18776 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
18778 2011-05-06 Jan Hubicka <jh@suse.cz>
18780 * cgraph.c (cgraph_add_thunk): Create real function node instead
18781 of alias node; finalize it and mark needed/reachale; arrange visibility
18782 to be right and add it into the corresponding same comdat group list.
18783 (dump_cgraph_node): Dump thunks.
18784 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
18785 cgraph_function_with_gimple_body_p,
18786 cgraph_first_function_with_gimple_body,
18787 cgraph_next_function_with_gimple_body): New functions.
18788 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
18790 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
18791 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18792 * cgraphunit.c (cgraph_finalize_function): Only look into possible
18793 devirtualization when optimizing.
18794 (verify_cgraph_node): Verify thunks.
18795 (cgraph_analyze_function): Analyze thunks.
18796 (cgraph_mark_functions_to_output): Output thunks only in combination
18797 with function they are assigned to.
18798 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
18799 alias into normal node.
18800 (assemble_thunks): New functoin.
18801 (cgraph_expand_function): Use it.
18802 * lto-cgraph.c (lto_output_node): Stream thunks.
18803 (input_overwrite_node): Stream in thunks.
18804 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
18805 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
18806 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
18807 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
18808 (inline_analyze_function): Do not care about thunk jump functions.
18809 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
18810 * ipa-prop.c (ipa_prop_write_jump_functions): Use
18811 cgraph_function_with_gimple_body_p.
18812 * passes.c (do_per_function_toporder): Use
18813 cgraph_function_with_gimple_body_p.
18814 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18815 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
18816 (function_called_by_processed_nodes_p): Likewise.
18818 2011-05-06 Joseph Myers <joseph@codesourcery.com>
18820 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
18821 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
18823 (mabi=): Replace with separate entries for mabi=altivec,
18824 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
18825 mabi=ieeelongdouble and mabi=ibmlongdouble.
18826 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
18827 check for -mabi=spe without SPE ABI support here.
18828 (rs6000_handle_option): Replace OPT_mabi_ handling with
18829 OPT_mabi_altivec and OPT_mabi_spe handling.
18831 2011-05-06 Cary Coutant <ccoutant@google.com>
18833 * dwarf2out.c (contains_subprogram_definition): New function.
18834 (should_move_die_to_comdat): Call it.
18836 2011-05-06 Jeff Law <law@redhat.com>
18838 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
18839 remove_ctrl_stmt_and_useless_edges.
18840 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
18841 (fixup_template_block, thread_single_edge): Likewise.
18842 (mark_threaded_blocks): Use THREAD_TARGET.
18844 2011-05-06 Alan Modra <amodra@gmail.com>
18847 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18848 const0_rtx as the arg to the dummy __tls_get_addr libcall.
18850 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
18852 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
18853 constraint modifier to "r".
18855 2011-05-06 Joseph Myers <joseph@codesourcery.com>
18857 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
18858 fall through for OPT_mcmodel_.
18860 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18862 * config/s390/s390.c (s390_asm_trampoline_template): Comment
18864 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
18866 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18869 * config/arm/arm.opt (marm): Document it.
18870 (mthumb): Reject negative variant.
18872 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
18875 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18876 Fix typo in "ccvt" variable name.
18878 2011-05-06 Tristan Gingold <gingold@adacore.com>
18881 * config/vms/vms-ar.c (main): Remove cwd variable.
18883 2011-05-06 Jakub Jelinek <jakub@redhat.com>
18886 * var-tracking.c (prepare_call_arguments): Move else before #endif.
18888 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
18890 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18891 * gimplify.c (gimplify_switch_expr): Likewise.
18892 * omp-low.c (expand_omp_sections): Likewise.
18893 * tree-eh.c (lower_try_finally_switch): Likewise.
18894 (lower_eh_dispatch): Likewise.
18895 * tree.h (build_case_label): Declare.
18896 * tree.c (build_case_label): Define.
18898 2011-05-05 Jason Merrill <jason@redhat.com>
18901 * tree-inline.c (copy_tree_r): Use copy_statement_list.
18902 (copy_statement_list): Don't recurse.
18903 * stor-layout.c (copy_self_referential_tree_r): Don't allow
18906 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18908 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18909 through from -mfpu= handling.
18910 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18912 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
18914 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18917 2011-05-05 Steve Ellcey <sje@cup.hp.com>
18919 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18921 (hppa[12]*-*-hpux11*): Ditto.
18922 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18923 * config/ia64/hpux-unix2003.h: New.
18924 * config/pa/pa-hpux1131.opt: New.
18925 * config/pa/pa-hpux1131.h: New.
18926 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18927 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18928 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18930 2011-05-05 Jakub Jelinek <jakub@redhat.com>
18933 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18934 instead of mode as 3rd argument to recursive call.
18935 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18936 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18938 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18939 don't give up if mode is Pmode and mem_mode is not VOIDmode.
18940 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18941 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18943 2011-05-05 Julian Brown <julian@codesourcery.com>
18945 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18946 parenthesis in D-register case.
18948 2011-05-05 Joseph Myers <joseph@codesourcery.com>
18950 * opt-functions.awk (var_type_struct): Handle Enum options.
18951 * optc-gen.awk: Don't check range of variables of character type.
18952 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18953 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18954 rs6000_sdata_name, rs6000_explicit_options): Remove.
18955 (rs6000_option_override_internal): Check for -malign-power here.
18956 Use global_options_set instead of rs6000_explicit_options.
18957 (rs6000_parse_fpu_option): Remove.
18958 (rs6000_handle_option): Access variables via opts and opts_set
18959 pointers. Use error_at and warning_at. Add fall-through
18960 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18961 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18962 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18963 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18964 here. Don't use rs6000_parse_fpu_option.
18965 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18966 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18967 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18968 (mrecip=): Use Var.
18969 (mspe): Use Var and Save.
18970 (mtraceback=): Use Enum and Var.
18971 (rs6000_traceback_type): New Enum and EnumValue entries.
18972 (mfloat-gprs=): Use Enum, Var and Save.
18973 (rs6000_float_gprs): New Enum and EnumValue entries.
18974 (mlong-double-): use Var and Save.
18975 (msched-costly-dep=, minsert-sched-nops=): Use Var.
18976 (malign-): Use Enum and Var.
18977 (rs6000_alignment_flags): New Enum and EnumValue entries.
18979 (fpu_type_t): New Enum and EnumValue entries.
18980 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18981 global_options_set instead of rs6000_explicit_options.
18982 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18983 global_options_set instead of rs6000_explicit_options.
18984 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18985 global_options_set instead of rs6000_explicit_options.
18986 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18987 global_options_set instead of rs6000_explicit_options.
18988 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
18989 global_options_set instead of rs6000_explicit_options.
18990 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18991 global_options_set instead of rs6000_explicit_options.
18992 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
18994 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18995 global_options_set instead of rs6000_explicit_options.
18996 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
18997 (rs6000_cmodel): New Enum and EnumValue entries.
18998 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18999 global_options_set instead of rs6000_explicit_options.
19000 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
19001 (mtls-size=): Use Enum and Var.
19002 (rs6000_tls_size): New Enum and EnumValue entries.
19004 2011-05-05 Michael Matz <matz@suse.de>
19006 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
19007 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
19008 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
19009 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
19010 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
19011 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
19012 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
19013 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
19014 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
19015 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
19016 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
19017 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
19018 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
19019 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
19020 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
19021 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
19023 2011-05-05 Richard Guenther <rguenther@suse.de>
19025 * expmed.c (expand_variable_shift): Rename to ...
19026 (expand_shift_1): ... this. Take an expanded shift amount.
19027 For rotates recurse directly not building trees for the shift amount.
19028 (expand_variable_shift): Wrap around expand_shift_1.
19029 (expand_shift): Adjust.
19031 2011-05-05 Jakub Jelinek <jakub@redhat.com>
19033 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
19035 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
19037 * tree.h (get_pending_sizes): Remove prototype.
19038 (put_pending_size): Likewise.
19039 (put_pending_sizes): Likewise.
19040 * stor-layout.c (pending_sizes): Delete.
19041 (get_pending_sizes): Likewise.
19042 (put_pending_size): Likewise.
19043 (put_pending_sizes): Likewise.
19044 (variable_size): Do not call put_pending_size and tidy up.
19045 * function.h (struct function): Remove dont_save_pending_sizes_p.
19046 * lto-streamer-in.c (input_function): Do not stream it.
19047 * lto-streamer-out.c (output_function): Likewise.
19048 * tree-inline.c (initialize_cfun): Do not copy it.
19049 * c-decl.c (store_parm_decls): Do not set it.
19050 * omp-low.c (create_task_copyfn): Likewise.
19051 * tree-optimize.c (tree_rest_of_compilation): Likewise.
19053 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
19055 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
19057 (*movdf_internal): Ditto.
19058 (*movdf_internal_nointeger): Ditto.
19059 (*movsf_internal): Ditto.
19061 2011-05-05 Joseph Myers <joseph@codesourcery.com>
19063 * c-decl.c (finish_decl): Don't call get_pending_sizes.
19064 (grokparm): Add parameter expr. Pass it to grokdeclarator.
19065 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
19066 (c_variable_size): Remove.
19067 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
19068 call put_pending_sizes.
19069 (get_parm_info): Add parameter expr. Use it to set
19070 arg_info->pending_sizes.
19071 (store_parm_decls): Use arg_info->pending_sizes instead or calling
19073 * c-parser.c (c_parser_parms_declarator): Update call to
19074 c_parser_parms_list_declarator.
19075 (c_parser_parms_list_declarator): Take parameter expr. Update
19076 call to push_parm_decl. Update recursive call. Don't call
19077 get_pending_sizes. Update calls to get_parm_info.
19078 (c_parser_objc_method_definition): Update calls to
19079 c_parser_objc_method_decl and objc_start_method_definition.
19080 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
19081 (c_parser_objc_method_decl): Add parameter expr. Update call to
19083 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
19084 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
19085 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
19087 2011-05-05 Michael Hope <michael.hope@linaro.org>
19090 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
19091 __ARM_EABI__ hosts.
19093 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19095 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
19096 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
19097 (spu_output_mi_thunk): New function.
19099 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19101 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
19102 targetm.asm_out.print_operand.
19103 * config/sol2.c: Include target.h.
19105 2011-05-04 Jan Hubicka <jh@suse.cz>
19107 * ipa-inline.c (reset_edge_caches): New function.
19108 (update_caller_keys): Add check_inlinablity_for; do not
19109 reset edge caches; remove now unnecesary loop.
19110 (update_callee_keys): Add comments; reset node_growth_cache of callee.
19111 (update_all_callee_keys): Likewise.
19112 (inline_small_functions): Sanity check cache; update code
19115 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
19117 PR rtl-optimization/47612
19118 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
19119 as the last insn of the sequence to be moved.
19121 2011-05-04 Tobias Burnus <burnus@net-b.de>
19124 * doc/invoke.texi (Ofast): Document that it
19125 enables Fortran's -fno-protect-parens.
19127 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
19129 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
19131 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
19133 * stor-layout.c (variable_size): Do not issue errors.
19135 2011-05-04 Richard Guenther <rguenther@suse.de>
19137 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
19138 for array-ref indices.
19139 (tree_coverage_counter_addr): Likewise.
19140 (build_fn_info_type): Use size_int for index types.
19141 (build_gcov_info): Likewise.
19143 2011-05-04 Richard Guenther <rguenther@suse.de>
19145 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
19147 * c-typeck.c (really_start_incremental_init): Use bitsize_int
19148 for constructor indices.
19149 (push_init_level): Likewise.
19151 2011-05-04 Richard Guenther <rguenther@suse.de>
19153 * explow.c (promote_mode): Move variable declarations before code.
19155 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
19157 * tree.h (build_function_type_array): Declare.
19158 (build_varargs_function_type_array): Declare.
19159 (build_function_type_vec, build_varargs_function_type_vec): Define.
19160 * tree.c (build_function_type_array_1): New function.
19161 (build_function_type_array): New function.
19162 (build_varargs_function_type_array): New function.
19164 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
19166 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
19167 before setting STMT_VINFO_TYPE.
19169 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19171 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
19172 instead of spu_pass_by_reference.
19174 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19176 * calls.c (emit_library_call_value_1): Invoke
19177 promote_function_mode hook on libcall arguments.
19178 * explow.c (promote_function_mode, promote_mode): Handle TYPE
19179 argument being NULL.
19180 * targhooks.c (default_promote_function_mode): Lisewise.
19181 * config/s390/s390.c (s390_promote_function_mode): Likewise.
19182 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
19184 * doc/tm.texi: Document that TYPE argument might be NULL.
19186 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19188 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
19190 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19193 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
19195 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19197 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
19198 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
19200 * mips-tfile.c: ... here.
19201 Don't include coretypes.h, tm.h, filenames.h.
19202 (saber_stop): Remove definition and all calls.
19203 [__SABER__]: Remove.
19204 (__LINE__): Remove default.
19205 (Size_t, Ptrdiff_t): Remove definitions.
19206 Replace by size_t, ptrdiff_t.
19207 [!MIPS_DEBUGGING_INFO]: Remove.
19208 (SHASH_SIZE, THASH_SIZE): Remove defaults.
19209 (progname): Add const.
19211 Replace all uses by static.
19212 (ALIGN_SYMTABLE_OFFSET): Remove default.
19213 * mips-tdump.c: Don't include coretypes.h, tm.h.
19214 Remove !MIPS_IS_STAB guard.
19215 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
19216 $(TM_H), filenames.h dependencies.
19217 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
19219 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19222 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
19223 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
19225 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19228 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
19229 account and save/restore RETS.
19230 (PROFILE_BEFORE_PROLOGUE): Define.
19231 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
19232 the push insn to use predecrement.
19234 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
19237 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
19239 2011-05-04 Nick Clifton <nickc@redhat.com>
19241 * config/mn10300/mn10300.c: Include cfgloop.h.
19243 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
19244 Lcc or a FLcc insn into the instruction stream.
19245 (mn10300_block_contains_call): New function. Returns true if the
19246 given basic block contains a CALL insn.
19247 (mn10300_loop_contains_call_insn): New function. Returns true if
19248 the given loop contains a CALL insn.
19249 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
19250 to use the SETLB and Lcc or FLcc insns.
19251 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
19252 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
19253 * config/mn10300/mn10300.opt (msetlb): New option. Used to
19254 disable the SETLB optimization.
19255 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
19256 __SETLB__ or __NO_SETLB__.
19257 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
19258 (movsf_internal): Handle MDR register.
19259 (cmpsi): Make visible.
19260 (setlb): New pattern.
19261 (Lcc): New pattern.
19262 (FLcc): New pattern.
19264 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
19267 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
19268 for reg<->xmm moves.
19269 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
19270 (vec_concatv2di_rex64_sse): Ditto.
19271 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
19272 (*vec_extractv2di_1_rex64): Ditto.
19275 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19277 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19279 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
19281 2011-05-04 Richard Guenther <rguenther@suse.de>
19283 * tree.h (int_const_binop): Remove notrunc argument.
19284 * fold-const.c (int_const_binop): Remove notrunc argument. Always
19285 create integer constants that are properly truncated.
19286 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
19287 (const_binop): Remove zero notrunc argument to int_const_binop.
19288 (size_binop_loc): Likewise.
19289 (fold_div_compare): Likewise.
19290 (maybe_canonicalize_comparison_1): Likewise.
19291 (fold_comparison): Likewise.
19292 (fold_binary_loc): Likewise.
19293 (multiple_of_p): Likewise.
19294 * expr.c (store_constructor): Likewise.
19295 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19296 (maybe_fold_stmt_addition): Likewise.
19297 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
19298 * stor-layout.c (layout_type): Likewise.
19299 * tree-data-ref.c (tree_fold_divides_p): Likewise.
19300 * tree-sra.c (build_ref_for_offset): Likewise.
19301 (build_user_friendly_ref_for_offset): Likewise.
19302 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
19303 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19304 * tree-ssa-loop-niter.c (inverse): Likewise.
19305 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19306 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
19307 * tree-switch-conversion.c (check_range): Likewise.
19308 (build_constructors): Likewise.
19309 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
19310 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
19311 (extract_range_from_assert): Likewise.
19312 (vrp_int_const_binop): Likewise.
19313 (extract_range_from_binary_expr): Likewise.
19314 (extract_range_from_unary_expr): Likewise.
19315 (check_array_ref): Likewise.
19316 (find_case_label_range): Likewise.
19317 (simplify_div_or_mod_using_ranges): Likewise.
19318 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
19319 comparing case labels for merging.
19321 2011-05-03 Mark Wielaard <mjw@redhat.com>
19323 * dwarf2out.c (debug_str_hash_forced): Removed.
19324 (gen_label_for_indirect_string): Removed.
19325 (get_debug_string_label): Removed.
19326 (AT_string_form): Generate label directly.
19327 (output_indirect_string): Test indirect_string_node for
19328 DW_FORM_strp instead of checking label and refcount.
19329 (prune_indirect_string): Removed.
19330 (prune_unused_types): Don't check debug_str_hash_forced or
19331 call prune_indirect_string.
19333 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
19336 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
19338 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
19342 * combine.c (try_combine): Skip debug insns at m_split tests.
19344 2011-04-26 Mark Wielaard <mjw@redhat.com>
19347 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
19348 when info_section_emitted.
19350 2011-05-03 Joseph Myers <joseph@codesourcery.com>
19352 * config/mips/mips-opts.h: New.
19353 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
19355 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
19356 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
19357 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
19359 * config/mips/mips.h (enum mips_code_readable_setting): Move to
19361 (mips_abi, mips_code_readable): Don't declare.
19362 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
19363 (mabi=): Use Enum and Var.
19364 (mips_abi): New Enum and EnumValue entries.
19365 (mcode-readable=): Use Enum and Var.
19366 (mips_code_readable_setting): New Enum and EnumValue entries.
19367 (mr10k-cache-barrier=): Use Enum and Var.
19368 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
19370 2011-05-03 Jan Hubicka <jh@suse.cz>
19372 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
19373 replace hash by pointer map.
19374 (cgraph_node_set_element_def, cgraph_node_set_element,
19375 const_cgraph_node_set_element, varpool_node_set_element_def,
19376 varpool_node_set_element, const_varpool_node_set_element): Remove.
19377 (free_cgraph_node_set, free_varpool_node_set): New function.
19378 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
19379 * tree-emutls.c: Free varpool node set.
19380 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
19381 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19382 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
19383 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19384 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
19385 Move here from ipa.c; implement using pointer_map
19386 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
19387 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19388 debug_cgraph_node_set, varpool_node_set_new,
19389 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19390 dump_varpool_node_set, debug_varpool_node_set):
19391 Move to ipa-uitls.c.
19392 * passes.c (ipa_write_summaries): Update.
19394 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19396 From Mike Frysinger:
19397 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
19398 bf542/bf544/bf547/bf548/bf549.
19400 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
19402 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
19404 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19406 From Bernd Schmidt:
19407 * config/bfin/bfin.md (MOVCC): New mode_macro.
19408 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
19409 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
19410 comments from generated assembly.
19412 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19415 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
19416 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
19417 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
19418 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
19419 * config/bfin/lib1funcs.asm (___muldi3): New function.
19421 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19423 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
19424 build_function_type_list instead of build_function_type.
19425 Rearrange initialization of `args' to do so.
19427 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19429 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
19430 instead of build_function_type.
19432 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19434 * config/rs6000/rs6000.c (spe_init_builtins): Call
19435 build_function_type_list instead of build_function_type.
19436 (paired_init_builtins, altivec_init_builtins): Likewise.
19437 (builtin_function_type): Likewise.
19439 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19441 * config/sh/sh.c (sh_media_init_builtins): Call
19442 build_function_type_list instead of build_function_type.
19444 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19446 * config/sparc/sparc.c (sparc_file_end): Call
19447 build_function_type_list instead of build_function_type.
19449 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19451 * config/alpha/alpha.c (alpha_init_builtins): Call
19452 build_function_type_list instead of build_function_type.
19454 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19456 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
19457 build_function_type_list instead of build_function_type.
19459 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19461 * config/iq2000/i2000.c (iq2000_init_builtins): Call
19462 build_function_type_list instead of build_function_type.
19463 Delete `endlink' variable.
19465 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19467 * config/avr/avr.c (avr_init_builtins): Call
19468 build_function_type_list instead of build_function_type.
19470 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19472 * config/picochip/picochip.c (picochip_init_builtins): Call
19473 build_function_type_list instead of build_function_type.
19474 Delete `endlink' variable.
19476 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
19478 * config/bfin/bfin.c (bfin_init_builtins): Call
19479 build_function_type_list instead of build_function_type.
19481 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19484 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
19485 that's not CONST_INT. Seemingly redundant check is due to PR39768.
19487 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19490 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
19491 libbffastfp overrides libgcc when -mfast-fp.
19493 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19495 Originally from Bernd Schmidt
19496 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
19497 * config/bfin/bfin.c (override_options): Test it and error if
19500 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
19502 Originally From Bernd Schmidt
19503 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
19506 2011-05-03 Jeff Law <law@redhat.com>
19508 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
19509 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
19510 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
19511 than accessing AUX field directly. Free the AUX field before
19513 (thread_block, thread_through_loop_header): Likewise.
19514 (thread_single_edge, mark_threaded_blocks): Likewise.
19515 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
19516 (register_jump_thread): Do not attempt to thread to a NULL edge.
19518 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
19520 * function.c (init_function_start): Call decide_function_section.
19521 * varasm.c (decide_function_section): New function.
19522 (assemble_start_function): When not using
19523 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
19524 or first_function_block_is_cold.
19525 * rtl.h (decide_function_section): Declare.
19527 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
19528 Jakub Jelinek <jakub@redhat.com>
19531 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
19532 only succeed if req_mode is the same as set_mode.
19534 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
19536 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
19537 * genemit.c (gen_exp): Handle RETURN.
19538 * emit-rtl.c (verify_rtx_sharing): Likewise.
19539 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
19540 * rtl.c (copy_rtx): RETURN is shared.
19541 * rtl.h (enum global_rtl_index): Add GR_RETURN.
19543 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
19544 * config/s390/s390.c (s390_emit_epilogue): Likewise.
19545 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
19546 * config/cris/cris.c (cris_expand_return): Likewise.
19547 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
19548 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
19549 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
19550 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
19551 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
19553 * config/v850/v850.c (expand_epilogue): Likewise.
19554 * config/bfin/bfin.c (bfin_expand_call): Likewise.
19555 * config/arm/arm.md (epilogue): Likewise.
19556 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
19557 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
19558 variable to ret_reg.
19560 2011-05-03 Richard Guenther <rguenther@suse.de>
19563 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
19564 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
19565 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19567 2011-05-03 Richard Guenther <rguenther@suse.de>
19569 * c-decl.c (grokdeclarator): Instead of looking at
19570 TREE_OVERFLOW check if the constant fits in the index type.
19572 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
19574 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
19575 (vec_store_lanes<mode><mode>): Likewise.
19577 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
19579 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
19580 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
19581 convert_optab_index values.
19582 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
19583 * genopinit.c (optabs): Initialize the new optabs.
19584 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
19585 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
19586 (expand_STORE_LANES): New functions.
19587 * tree.h (build_array_type_nelts): Declare.
19588 * tree.c (build_array_type_nelts): New function.
19589 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
19590 (vect_model_load_cost): Likewise.
19591 (vect_store_lanes_supported, vect_load_lanes_supported)
19592 (vect_record_strided_load_vectors): Declare.
19593 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
19594 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
19595 (vect_transform_strided_load): Split out statement recording into...
19596 (vect_record_strided_load_vectors): ...this new function.
19597 * tree-vect-stmts.c (create_vector_array, read_vector_array)
19598 (write_vector_array, create_array_ref): New functions.
19599 (vect_model_store_cost): Add store_lanes_p argument.
19600 (vect_model_load_cost): Add load_lanes_p argument.
19601 (vectorizable_store): Try to use store-lanes functions for
19602 interleaved stores.
19603 (vectorizable_load): Likewise load-lanes and loads.
19604 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
19605 to vect_model_store_cost.
19606 (vect_build_slp_tree): Likewise vect_model_load_cost.
19608 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
19610 * hooks.h (hook_bool_mode_uhwi_false): Declare.
19611 * hooks.c (hook_bool_mode_uhwi_false): New function.
19612 * target.def (array_mode_supported_p): New hook.
19613 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
19614 * doc/tm.texi: Regenerate.
19615 * stor-layout.c (mode_for_array): New function.
19616 (layout_type): Use it.
19617 * config/arm/arm.c (arm_array_mode_supported_p): New function.
19618 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
19620 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
19623 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
19624 for -fstack-check if the size to allocate is negative.
19626 2011-05-02 Lawrence Crowl <crowl@google.com>
19628 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
19629 (timevar_cond_start): New for starting a timer only when it is not
19631 (timevar_cond_stop): New for stopping a timer when it was not already
19634 * timevar.c (timevar_stop): Enable start/stop timers to start again.
19635 (timevar_cond_start): New as above.
19636 (timevar_cond_stop): New as above.
19638 * timevar.def: Add start/stop timers for compiler phases,
19639 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
19640 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
19641 and TV_PHASE_FINALIZE.
19642 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
19643 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
19644 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
19645 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
19646 Make unused TV_OVERLOAD into a start/stop timer.
19648 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
19649 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
19650 to indicate that they are start/stop timers.
19652 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
19653 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
19654 Move initialization to do_compile.
19655 (do_compile): Add initialization from above.
19656 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
19658 * c-decl.c (c_write_global_declarations): Add start/stop of
19659 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
19661 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
19662 or TV_PARSE_INLINE, as appropriate.
19663 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
19664 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
19666 2011-05-02 Jason Merrill <jason@redhat.com>
19669 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
19671 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
19674 * c-decl.c (finish_decl): Only create a composite if the types are
19677 2011-05-02 Joseph Myers <joseph@codesourcery.com>
19679 * config/fr30/fr30-protos.h (Mmode): Don't define.
19680 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
19681 definition where used.
19682 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
19683 define. Expand definitions where used.
19684 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
19685 Expand definitions where used.
19686 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
19687 rx_function_arg, rx_function_arg_advance,
19688 rx_function_arg_boundary): Expand definitions of those macros.
19689 * config/v850/v850-protos.h (Mmode): Don't define. Expand
19690 definition where used.
19692 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19694 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19696 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
19697 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
19698 with *movv2sf_internal_rex64_avx.
19699 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
19700 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
19701 Use %v prefix in insn mnemonic to handle TARGET_AVX.
19702 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
19703 "vex" in "prefix" attribute calculation.
19704 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
19706 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
19709 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
19710 inputs match the output.
19712 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
19715 * config/m68k/m68k.c (m68k_expand_prologue): Set
19716 current_function_static_stack_size.
19718 2011-05-02 Jan Hubicka <jh@suse.cz>
19720 * lto-streamer.c (lto_streamer_cache_insert_1,
19721 lto_streamer_cache_lookup, lto_streamer_cache_create,
19722 lto_streamer_cache_delete): Use pointer map instead of hashtable.
19723 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
19725 2011-05-02 Joseph Myers <joseph@codesourcery.com>
19727 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
19728 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
19729 config/m68k/t-opts: New files.
19730 * config/m68k/m68k-tables.opt: New file (generated).
19731 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
19732 extra_options and m68k/t-opts to tmake_file.
19733 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
19734 (all_isas): Initialize using m68k-isas.def.
19735 (all_microarchs): Initialize using m68k-microarchs.def.
19736 (m68k_find_selection): Remove.
19737 (m68k_handle_option): Don't assert that global structures are in
19738 use. Use error_at. Access variables via opts pointer. Don't
19739 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
19740 directly for -m68020-40 and -m68020-60.
19741 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
19742 m68k_tune_entry here.
19743 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
19745 (m68k_library_id_string): Remove declaration.
19746 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
19747 (m68k_library_id_string): New Variable.
19748 (march=, mcpu=, mtune=): Use Enum and Var.
19750 2011-05-02 Richard Guenther <rguenther@suse.de>
19752 * varasm.c (output_constructor_regular_field): Compute zero-based
19753 index with double-ints. Make sure to ICE instead of producing
19755 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
19756 in asserts. Properly use a signed type.
19758 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
19760 * config/i386/sse.md (V): New mode iterator.
19761 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
19763 (V_256): Rename from AVX256MODE.
19764 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
19765 condition to all users.
19767 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
19768 condition to all users.
19769 (VF_128): Make V4SF mode unconditional.
19770 (VF_256): Rename from AVX256MODEF2P.
19771 (VI4F_128): Rename from SSEMODE4S.
19772 (VI8F_128): Rename from SSEMODE2D.
19773 (VI4F_256): Rename from AVX256MODE8P.
19774 (VI8F_256): Rename from AVX256MODE4P.
19775 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
19776 (ssescalarmodesuffix): Remove SF and DF modes.
19777 (SSEMODE124): Remove.
19778 (SSEMODE1248): Ditto.
19779 (SSEMODEF2P): Ditto.
19780 (AVXMODEF2P): Ditto.
19781 (AVXMODEFDP): Ditto.
19782 (AVXMODEFSP): Ditto.
19783 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
19785 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
19787 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
19788 xop_pcmov_<mode>256. Use V mode iterator.
19790 Adjust RTX patterns globally for renamed mode attributes.
19792 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19794 * haifa-sched.c (sched_emit_insn): Emit insn before first
19795 non-scheduled insn. Inform back-end about new insn. Add
19796 new insn to scheduled_insns list.
19798 2011-05-02 Richard Guenther <rguenther@suse.de>
19800 PR tree-optimization/48822
19801 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
19802 (process_scc): Indicate which iteration we start.
19804 2011-05-02 Jan Hubicka <jh@suse.cz>
19806 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
19807 (lto_section_overrun): New.
19808 * lto-section-out.c (append_block): Rename to ...
19809 (lto_append_block): ... this one; export.
19810 (lto_output_1_stream): Move lto lto-streamer.h
19811 (lto_output_data_stream): Update.
19812 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
19813 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
19816 2011-05-02 Richard Guenther <rguenther@suse.de>
19818 * tree.c (tree_code_counts): New global array.
19819 (record_node_allocation_statistics): Count individual tree codes.
19820 (dump_tree_statistics): Dump individual code stats.
19822 2011-05-01 Jan Hubicka <jh@suse.cz>
19824 * ipa-inline.c (caller_growth_limits): Fix thinko when
19825 looking for largest stack frame.
19826 * ipa-inline.h (dump_inline_summary): Declare.
19827 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
19829 (dump_inline_summary): Export.
19830 (debug_inline_summary): Declare as DEBUG_FUNCTION.
19832 2011-05-01 Anatoly Sokolov <aesok@post.ru>
19834 * reginfo.c (memory_move_cost): Change rclass argument type form
19835 'enum reg_class' to reg_class_t.
19836 * reload.h (memory_move_cost): Update prototype.
19837 * postreload.c reload_cse_simplify_set): Change type dclass var to
19839 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
19841 (ira_allocate_and_set_costs): Change aclass argument type form
19842 'enum reg_class' to reg_class_t.
19843 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
19844 Change aclass argument type to reg_class_t.
19845 (update_conflict_hard_reg_costs): Change type aclass and pref vars
19847 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
19848 memory_move_cost call.
19850 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
19851 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
19852 Change type tmp var to reg_class_t.
19854 2011-04-30 Jan Hubicka <jh@suse.cz>
19856 * ipa-inline.c (can_inline_edge_p): Disregard limits when
19857 inlining into function with flatten attribute.
19858 (want_inline_small_function_p): Be more realistic about inlining
19859 cold calls where callee size grows.
19861 2011-04-30 Jan Hubicka <jh@suse.cz>
19863 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
19866 2011-04-30 Anatoly Sokolov <aesok@post.ru>
19868 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
19869 PRINT_OPERAND_PUNCT_VALID_P): Remove.
19870 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
19871 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
19872 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19873 (print_operand): Rename to...
19874 (sparc_print_operand): ...this. Make static. Adjust
19875 sparc_print_operand function call.
19876 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
19879 2011-04-30 Jan Hubicka <jh@suse.cz>
19881 PR middle-end/48752
19882 * ipa-inline.c (early_inliner): Disable when doing late
19883 addition of function.
19885 2011-04-30 Jakub Jelinek <jakub@redhat.com>
19887 * dwarf2out.c (get_address_mode): New inline.
19888 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
19889 if not dwarf_strict emit
19890 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19891 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19892 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
19893 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19894 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19895 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19896 mem_loc_descriptor callers.
19897 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19898 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19899 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19900 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19901 (base_types): New variable.
19902 (get_base_type_offset, calc_base_type_die_sizes,
19903 base_type_for_mode, mark_base_types, base_type_cmp,
19904 move_marked_base_types): New functions.
19905 (calc_die_sizes): Assert that die_offset is 0 or equal to
19907 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19908 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
19909 callers. If not dwarf_strict, call mem_loc_descriptor even for
19910 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19911 (gen_subprogram_die): Don't give up on call site parameters
19912 with non-integral or large integral modes. Adjust
19913 mem_loc_descriptor callers.
19914 (prune_unused_types): Call prune_unused_types_mark on base_types
19916 (resolve_addr): Call mark_base_types.
19917 (dwarf2out_finish): Call move_marked_base_types.
19919 PR tree-optimization/48809
19920 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19922 (gen_inbound_check): Don't compute index_expr - range_min in utype
19923 again, instead reuse SSA_NAME initialized in build_arrays.
19924 Remove two useless gsi_for_stmt calls.
19926 2011-04-29 Jeff Law <law@redhat.com>
19928 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19930 2011-04-29 Martin Jambor <mjambor@suse.cz>
19932 * cgraph.h (cgraph_postorder): Remove declaration.
19933 * ipa-utils.h (ipa_free_postorder_info): Declare.
19934 (ipa_reverse_postorder): Likewise.
19935 * cgraphunit.c: Include ipa-utils.h.
19936 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19937 * ipa-inline.c: Include ipa-utils.h.
19938 (ipa_inline): Update call to ipa_reverse_postorder.
19939 * ipa-pure-const.c (propagate_pure_const): Update call to
19940 ipa_reduced_postorder and ipa_print_order. Call
19941 ipa_free_postorder_info to clean up.
19942 (propagate_nothrow): Likewise.
19943 * ipa-reference.c (propagate): Removed a useless call to
19944 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19945 and ipa_print_order. Call ipa_free_postorder_info to clean up.
19946 * ipa.c: Include ipa-utils.h.
19947 (ipa_profile): Update call to ipa_reverse_postorder.
19948 (cgraph_postorder): Moved to...
19949 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19950 (ipa_utils_print_order): Renamed to ipa_print_order.
19951 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19953 (ipa_free_postorder_info): New function.
19954 * passes.c: Include ipa-utils.h.
19955 (do_per_function_toporder): Update call to ipa_reverse_postorder.
19956 (ipa_write_summaries): Likewise.
19957 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19958 (cgraphunit.o): Likewise.
19960 (ipa-inline.o): Likewise.
19962 2011-04-29 Jan Hubicka <jh@suse.cz>
19964 * ipa-inline.h (clause_t): Turn into unsigned int.
19965 * ipa-inline-analysis.c (add_clause): Do more simplification.
19966 (and_predicates): Shortcut more cases.
19967 (predicates_equal_p): Move forward; check that clauses are properly
19969 (or_predicates): Shortcut more cases.
19970 (edge_execution_predicate): Rewrite as...
19971 (set_cond_stmt_execution_predicate): ... this function; handle
19972 __builtin_constant_p.
19973 (set_switch_stmt_execution_predicate): New .
19974 (compute_bb_predicates): New.
19975 (will_be_nonconstant_predicate): Update TODO.
19976 (estimate_function_body_sizes): Use compute_bb_predicates
19977 and free them later, always try to estimate if stmt is constant.
19978 (estimate_time_after_inlining, estimate_size_after_inlining):
19979 Gracefully handle optimized out edges.
19980 (read_predicate): Fix off by one error.
19982 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
19984 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
19986 2011-04-27 Xinliang David Li <davidxl@google.com>
19988 * tree-profile.c (init_ic_make_global_vars): Set
19989 tls attribute on ic vars.
19990 * coverage.c (coverage_end_function): Initialize
19991 function_list with zero.
19993 2011-04-29 Richard Guenther <rguenther@suse.de>
19995 * builtins.c (fold_builtin_classify_type): Use integer_type_node
19996 for the type of the result.
19997 (fold_builtin_isascii): Likewise.
19998 (fold_builtin_toascii): Use integer_type_node where appropriate.
19999 (fold_builtin_logb): Likewise.
20000 (fold_builtin_frexp): Likewise.
20001 (fold_builtin_strstr): Likewise.
20002 (fold_builtin_strpbrk): Likewise.
20003 (fold_builtin_fputs): Likewise.
20004 (fold_builtin_sprintf): Likewise.
20005 (fold_builtin_snprintf): Likewise.
20006 (fold_builtin_printf): Likewise.
20007 (do_mpfr_remquo): Use a proper type for the assigned constant.
20008 (do_mpfr_lgamma_r): Likewise.
20009 * dwarf2out.c (resolve_one_addr): Use size_int.
20010 * except.c (init_eh): Likewise.
20011 (assign_filter_values): Use integer_type_node for filter values.
20012 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
20014 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
20015 for EH region numbers.
20016 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
20017 for the shift amount.
20019 2011-04-29 Richard Guenther <rguenther@suse.de>
20021 * expr.h (expand_shift): Rename to ...
20022 (expand_variable_shift): ... this.
20023 (expand_shift): Take a constant shift amount.
20024 * expmed.c (expand_shift): Rename to ...
20025 (expand_variable_shift): ... this.
20026 (expand_shift): New wrapper around expand_variable_shift.
20027 * expr.c (convert_move, emit_group_load_1, emit_group_store,
20028 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
20029 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
20030 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
20031 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
20032 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
20033 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
20034 emit_store_flag_1, emit_store_flag): Likewise.
20035 * builtins.c (expand_builtin_signbit): Likewise.
20036 * calls.c (load_register_parameters): Likewise.
20037 * function.c (assign_parm_setup_block): Likewise.
20038 * lower-subreg.c (resolve_shift_zext): Likewise.
20039 * optabs.c (widen_bswap, expand_abs_nojump,
20040 expand_one_cmpl_abs_nojump, expand_float): Likewise.
20041 * spu/spu.c (spu_expand_extv): Likewise.
20042 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
20044 2011-04-29 Richard Guenther <rguenther@suse.de>
20046 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
20047 for the remapped region number.
20048 * predict.c (build_predict_expr): Use integer_type_node for the
20050 * fold-const.c (fold_binary_loc): Use integer_type_node for
20051 the shift amount. Use a proper type for the PLUS_EXPR operand.
20053 2011-04-29 Michael Matz <matz@suse.de>
20055 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
20056 other trees that just builtins.
20057 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
20059 2011-04-29 Richard Guenther <rguenther@suse.de>
20061 * tree-nested.c (get_trampoline_type): Use size_int.
20062 (get_nl_goto_field): Likewise.
20063 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
20065 (lower_eh_constructs_2): Likewise.
20066 (lower_resx): Likewise.
20067 (lower_eh_dispatch): Likewise.
20068 * tree-mudflap.c (mf_build_string): Use size_int.
20069 (mudflap_register_call): Use integer_type_node for the flag.
20070 (mudflap_enqueue_constant): Use size_int.
20071 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
20072 instead of rebuilding it.
20074 2011-04-29 Richard Guenther <rguenther@suse.de>
20076 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
20077 Handle OBJ_TYPE_REF.
20078 (find_func_aliases_for_call): Use it more consistently.
20080 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
20082 * haifa-sched.c (last_nondebug_scheduled_insn): New.
20083 (rank_for_schedule): Use it.
20084 (schedule_block): Set it.
20086 2011-04-28 David Li <davidxl@google.com>
20088 * tree.c (crc32_string): Use crc32_byte.
20089 (crc32_byte): New function.
20090 * tree.h (crc32_byte): New function.
20091 * gcov.c (read_graph_file): Handle new cfg_cksum.
20092 (read_count_file): Ditto.
20093 * profile.c (instrument_values): Ditto.
20094 (get_exec_counts): Ditto.
20095 (read_profile_edge_counts): Ditto.
20096 (compute_branch_probabilities): Ditto.
20097 (compute_value_histograms): Ditto.
20098 (branch_prob): Ditto.
20099 (end_branch_prob): Ditto.
20100 * coverage.c (read_counts_file): Ditto.
20101 (get_coverage_counts): Ditto.
20102 (tree_coverage_counter_addr): Ditto.
20103 (coverage_checksum_string): Ditto.
20104 (coverage_begin_output): Ditto.
20105 (coverage_end_function): Ditto.
20106 (build_fn_info_type): Ditto.
20107 (build_fn_info_value): Ditto.
20108 * libgcov.c (gcov_exit): Ditto.
20109 * gcov-dump.c (tag_function): Ditto.
20110 (compute_checksum): Remove.
20112 2011-04-29 Alan Modra <amodra@gmail.com>
20114 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20115 unspec plus offset. Tidy macho code.
20117 2011-04-29 Martin Jambor <mjambor@suse.cz>
20119 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
20120 node instead of a decl. Update all callers.
20121 * cgraph.h: Update declaration.
20123 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
20125 PR tree-optimization/48765
20126 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
20127 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
20128 to indicate if loop aware SLP is being used. Scan the statements
20129 and update the vectorization factor according to the type of
20130 vectorization before statement analysis.
20131 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
20132 pass it to vect_analyze_loop_operations.
20133 (vectorizable_reduction): Set number of copies to 1 in case of pure
20135 * tree-vect-stmts.c (vectorizable_conversion,
20136 vectorizable_assignment, vectorizable_shift,
20137 vectorizable_operation, vectorizable_type_demotion,
20138 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
20140 (vectorizable_condition): Move the check that it is not SLP
20141 vectorization before the number of copies check.
20142 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
20143 to vectorize the loop using SLP.
20145 2011-04-28 Jakub Jelinek <jakub@redhat.com>
20147 PR middle-end/48597
20148 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
20151 2011-04-28 Joseph Myers <joseph@codesourcery.com>
20153 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
20154 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
20155 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20156 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20157 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
20159 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
20160 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20161 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20162 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20163 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20164 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
20166 * config/i386/linux.h (REG_NAME): Don't define.
20167 * config/i386/linux64.h (REG_NAME): Don't define.
20168 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
20169 Undefine before defining.
20171 2011-04-28 Jan Hubicka <jh@suse.cz>
20173 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
20174 nonconstant_names array.
20175 (estimate_function_body_sizes): Build nonconstant_names array; handle
20176 BUILT_IN_CONSTANT_P.
20178 2011-04-28 Richard Guenther <rguenther@suse.de>
20182 2011-04-28 Richard Guenther <rguenther@suse.de>
20184 * tree-ssa-structalias.c (solve_constraints): Build succ graph
20185 as late as possible.
20187 2011-04-28 Richard Guenther <rguenther@suse.de>
20189 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
20190 (debug_constraint): Do it here.
20191 (dump_constraints): And here.
20192 (rewrite_constraints): And here.
20193 (dump_constraint_edge): Remove.
20194 (dump_constraint_graph): Rewrite to produce DOT output.
20195 (solve_constraints): Build succ graph as late as possible.
20196 Dump constraint graphs before and after solving.
20198 2011-04-28 Richard Guenther <rguenther@suse.de>
20200 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20201 New function split out from ...
20202 (find_func_aliases): ... here. Call it.
20203 (find_func_aliases_for_call): Likewise.
20205 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
20207 * internal-fn.h (internal_fn_name_array): Declare.
20208 (internal_fn_flags_array): Likewise.
20210 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
20212 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
20213 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
20215 (ssemodefsuffix): Remove.
20216 (ssevecmodesuffix): New mode attribute.
20217 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
20218 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
20219 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
20220 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
20221 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
20222 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
20223 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
20224 ssemodesuffix mode attribute.
20225 (float splitters): Use ssevecmodesuffix mode attribute.
20226 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
20227 (sseinsmode): Rename from avxvecmode.
20228 (avxsizesuffix): Rename from avxmodesuffix.
20229 (sseintvecmode): Rename from avxpermvecmode.
20230 (ssedoublevecmode): Rename from ssedoublesizemode.
20231 (ssehalfvecmode): Rename from avxhalfvecmode.
20232 (ssescalarmode): Rename from avxscalarmode.
20233 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
20234 templates for ssemodesuffix mode attribute.
20235 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
20238 Adjust RTX patterns globally for renamed mode attributes.
20240 2011-04-27 Jan Hubcika <jh@suse.cz>
20242 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
20243 * ipa-inline-analysis.c: Include alloc-pool.h.
20244 (edge_predicate_pool): New.
20245 (trye_predicate_p): New function
20246 (false_predicate_p): New function.
20247 (add_clause): Sanity check that false clauses are "optimized";
20248 never add clauses to predicate that is already known to be false.
20249 (and_predicate): Use flase_predicate_p.
20250 (evaulate_predicate): Rename to ...
20251 (evaluate_predicate): ... this one; update all callers; assert
20252 that false is not listed among possible truths.
20253 (dump_predicate): Use true_predicate_p.
20254 (account_size_time): Use false_predicate_p.
20255 (evaulate_conditions_for_edge): Rename to ...
20256 (evaluate_conditions_for_edge) ... this one.
20257 (edge_set_predicate): New function.
20258 (inline_edge_duplication_hook): Duplicate edge predicates.
20259 (inline_edge_removal_hook): Free edge predicates.
20260 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
20261 (dump_inline_summary): Update.
20262 (estimate_function_body_sizes): Set edge predicates.
20263 (estimate_calls_size_and_time): Handle predicates.
20264 (estimate_callee_size_and_time): Update.
20265 (remap_predicate): Add toplev_predicate; update comment.
20266 (remap_edge_predicates): New function.
20267 (inline_merge_summary): Compute toplev predicate; update.
20268 (read_predicate): New function.
20269 (read_inline_edge_summary): Use it.
20270 (inline_read_section): Likewise.
20271 (write_predicate): New function.
20272 (write_inline_edge_summary): Use it.
20273 (inline_write_summary): Likewise.
20274 (inline_free_summary): Free alloc pool and edge summary vec.
20276 2011-04-27 Richard Guenther <rguenther@suse.de>
20278 * tree-ssa-structalias.c (changed_count): Remove.
20279 (changed): Use a bitmap.
20280 (unify_nodes): Adjust.
20281 (do_sd_constraint): Likewise.
20282 (do_ds_constraint): Likewise.
20283 (do_complex_constraint): Likewise.
20284 (solve_graph): Likewise.
20286 2011-04-27 Jan Hubicka <jh@suse.cz>
20288 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
20290 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
20292 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
20293 (avx_vperm2f128_*_operand): Ditto.
20294 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
20295 Use avx_vpermilp_parallel in insn condition.
20296 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
20297 Use avx_vperm2f128_parallel in insn condition.
20299 2011-04-27 Richard Guenther <rguenther@suse.de>
20301 * Makefile.in (tree-ssa-structalias.o): Remove
20302 gt-tree-ssa-structalias.h dependency.
20303 (GTFILES): Remove tree-ssa-structalias.c.
20304 * tree.c (allocate_decl_uid): New function.
20305 (make_node_stat): Use it.
20306 (copy_node_stat): Likewise.
20307 * tree.h (allocate_decl_uid): Declare.
20308 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
20309 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
20310 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
20311 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
20312 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
20313 (struct heapvar_map): Likewise.
20314 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
20315 heapvar_insert): Likewise.
20316 (make_heapvar_for): Rename to ...
20317 (make_heapvar): ... this. Simplify.
20318 (fake_var_decl_obstack): New global var.
20319 (build_fake_var_decl): New function.
20320 (make_constraint_from_heapvar): Adjust.
20321 (handle_lhs_call): Likewise.
20322 (create_function_info_for): Likewise.
20323 (intra_create_variable_infos): Likewise.
20324 (init_alias_vars): Allocate fake_var_decl_obstack.
20325 (init_alias_heapvars, delete_alias_heapvars): Remove.
20326 (compute_points_to_sets): Do not call init_alias_heapvars.
20327 (ipa_pta_execute): Likewise.
20328 (delete_points_to_sets): Free fake_var_decl_obstack.
20330 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20332 * config/spu/divmovti4.c (union qword_UTItype): New data type.
20333 (si_from_UTItype, si_to_UTItype): New functions.
20334 (__udivmodti4): Use them to implement type-punning.
20335 * config/spu/multi3.c (union qword_TItype): New data type.
20336 (si_from_TItype, si_to_TItype): New functions.
20337 (__multi3): Use them to implement type-punning.
20339 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20341 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
20343 2011-04-27 Jan Hubicka <jh@suse.cz>
20345 * ipa-prop.c (function_insertion_hook_holder): New holder.
20346 (ipa_add_new_function): New function.
20347 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
20348 Register/deregister holder.
20350 2011-04-27 Richard Guenther <rguenther@suse.de>
20352 PR tree-optimization/48772
20353 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
20355 2011-04-27 Richard Guenther <rguenther@suse.de>
20357 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
20358 TARGET_MEM_REF handling.
20360 2011-04-27 Nick Clifton <nickc@redhat.com>
20362 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
20363 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
20364 (REG_CLASS_NAMES): Likewise.
20365 (REG_CLASS_CONTENTS): Likewise.
20366 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
20367 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
20368 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
20369 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
20370 (EVEN_REGS): New macro. Alias for QUAD_REGS.
20371 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
20372 duplicate register classes.
20373 (frv_class_likely_spilled_p): Likewise.
20374 (frv_register_move_cost): Likewise.
20376 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
20377 end of the regno_reg_class array.
20379 2011-04-27 Jakub Jelinek <jakub@redhat.com>
20382 * c-typeck.c (build_binary_op): Don't wrap arguments if
20383 int_operands is true.
20385 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
20388 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
20389 targetm.calls.must_pass_in_stack for void type.
20391 2011-04-26 Jan Hubicka <jh@suse.cz>
20393 * cgraphbuild.c (build_cgraph_edges): Update call
20394 of cgraph_create_edge and cgraph_create_indirect_edge.
20395 * cgraph.c (cgraph_create_edge_including_clones,
20396 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
20397 cgraph_update_edges_for_call_stmt_node): Do not take nest
20398 argument; do not initialize call_stmt_size/time.
20399 (dump_cgraph_node): Do not dump nest.
20400 (cgraph_clone_edge): Do not take loop_nest argument;
20401 do not propagate it; do not clone call_stmt_size/time.
20402 (cgraph_clone_node): Likewise.
20403 (cgraph_create_virtual_clone): Update.
20404 * cgraph.h (struct cgraph_edge): Remove
20405 call_stmt_size/call_stmt_time/loop_nest.
20406 (cgraph_create_edge, cgraph_create_indirect_edge,
20407 cgraph_create_edge_including_clones, cgraph_clone_node): Update
20409 * tree-emutls.c (gen_emutls_addr): Update.
20410 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
20411 loop_nest; handle indirect calls, too.
20412 (clone_inlined_nodes): Do not care about updating inline summaries.
20413 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
20414 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
20415 stream call_stmt_size/call_stmt_time/loop_nest.
20416 * ipa-inline.c (edge_badness): Update.
20417 (ipa_inline): dump summaries after inlining.
20418 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
20420 (inline_edge_summary): New function.
20421 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
20422 (inline_edge_removal_hook): Handle edge summaries.
20423 (inline_edge_duplication_hook): New hook.
20424 (inline_summary_alloc): Alloc hooks.
20425 (initialize_growth_caches): Do not register removal hooks.
20426 (free_growth_caches); Do not free removal hook.
20427 (dump_inline_edge_summary): New function.
20428 (dump_inline_summary): Use it.
20429 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
20430 (inline_update_callee_summaries): New function.
20431 (inline_merge_summary): Use it.
20432 (do_estimate_edge_time, do_estimate_edge_growth): Update.
20433 (read_inline_edge_summary): New function.
20434 (inline_read_section): Use it.
20435 (write_inline_edge_summary): New function.
20436 (inline_write_summary): Use it.
20437 (inline_free_summary): Free edge new holders.
20438 * tree-inline.c (copy_bb): Update.
20440 2011-04-26 Jason Merrill <jason@redhat.com>
20442 * tree-eh.c (lower_try_finally_switch): Create the label along with
20443 the CASE_LABEL_EXPR.
20445 2011-04-26 David S. Miller <davem@davemloft.net>
20446 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20448 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
20449 * configure: Regenerate.
20451 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
20454 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
20456 (VEC_reduc): New code iterator and splitters for vector reduction.
20457 (VEC_reduc_name): Ditto.
20458 (VEC_reduc_rtx): Ditto.
20459 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
20460 (reduc_<VEC_reduc_name>_v4sf): Ditto.
20462 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
20463 support for extracting SF on VSX.
20465 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
20466 generating xscvspdp.
20467 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
20468 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
20469 double add, minimum, maximum vector reduction.
20470 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
20471 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
20472 optimize double vector reduction.
20473 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
20475 2011-04-26 Joseph Myers <joseph@codesourcery.com>
20477 * config/fr30/fr30.h (inhibit_libc): Don't define.
20478 * config/m32r/m32r-protos.h: Correct comment.
20479 * config/v850/v850.h (GHS_default_section_names,
20480 GHS_current_section_names): Use tree, not union tree_node *.
20482 2011-04-26 Xinliang David Li <davidxl@google.com>
20484 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
20485 * c-family/c-opts.c (c_common_handle_option): Set
20486 warn_maybe_uninitialized.
20487 * opts.c (common_handle_option): Ditto.
20488 * common.opt: New option.
20489 * tree-ssa.c (warn_uninit): Add one more parameter.
20490 (warn_uninitialized_var): Pass warning code.
20491 * tree-flow.h: Interface change.
20493 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20495 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
20496 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
20497 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
20499 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20501 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
20502 * config/mips/mips.opt (mmips-tfile): Remove.
20504 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
20505 mips-tdump reference to ...
20506 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
20507 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
20508 reference by Tru64 UNIX.
20510 2011-04-26 Jakub Jelinek <jakub@redhat.com>
20513 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
20514 is error_mark_node, set value to NULL.
20516 PR tree-optimization/48734
20517 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
20518 if return value from maybe_fold_*_comparsions isn't something
20519 the code is prepared to handle.
20521 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
20523 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
20525 (ext_QIreg_nomode_operands): Remove.
20526 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
20530 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
20532 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
20534 2011-04-26 Richard Guenther <rguenther@suse.de>
20536 * c-typeck.c (build_unary_op): Do not expand array-refs via
20537 pointer arithmetic. Only adjust qualifiers for function types.
20539 2011-04-26 Richard Guenther <rguenther@suse.de>
20541 PR middle-end/48694
20542 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
20543 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
20544 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
20545 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
20547 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
20549 * doc/extend.texi: Document __underlying_type.
20551 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
20553 * config/rs6000/titan.md (automata_option "progress"): Remove.
20555 2011-04-25 Jeff Law <law@redhat.com>
20557 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
20559 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
20561 * system.h (ENUM_BITFIELD): Remove.
20563 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
20564 Eric Botcazou <ebotcazou@adacore.com>
20566 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
20567 for STORE_FLAG_VALUE==-1 case.
20569 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
20572 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
20573 LEGITIMATE_PIC_OPERAND_P.
20575 2011-04-24 Jan Hubicka <jh@suse.cz>
20577 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
20579 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
20580 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
20581 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
20582 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
20583 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
20584 Sanity check predicate length.
20585 (remap_predicate): Likewise; sanity check jump functions.
20586 (inline_read_section, inline_write_summary): Sanity check
20589 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
20592 * doc/extend.texi (Type Traits): Document __is_standard_layout,
20593 __is_literal_type, and __is_trivial; update throughout about
20594 possibly cv-qualified void types.
20596 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
20598 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
20599 testsuite and make it version agnostic.
20601 2011-04-22 Jan Hubicka <jh@suse.cz>
20603 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
20605 2011-04-23 Jakub Jelinek <jakub@redhat.com>
20608 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
20609 to VOID_TYPE even around MODIFY_EXPR.
20611 2011-04-22 Mike Stump <mikestump@comcast.net>
20613 * gensupport.c (read_md_rtx): Fix typo in comment.
20614 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
20617 2011-04-22 Jan Hubicka <jh@suse.cz>
20619 * gengtype.c (open_base_files): Add ipa-inline.h include.
20620 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
20621 ipa-prop.c; update all uses.
20622 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
20623 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
20624 merge summary of inlined function into former caller.
20625 * ipa-inline.c (max_benefit): Remove.
20626 (edge_badness): Compensate for removal of benefits.
20627 (update_caller_keys): Use
20628 reset_node_growth_cache/reset_edge_growth_cache.
20629 (update_callee_keys): Likewise.
20630 (update_all_callee_keys): Likewise.
20631 (inline_small_functions): Do not collect max_benefit; do not reset
20632 estimated_growth; call free_growth_caches and initialize_growth_caches.
20633 * ipa-inline.h (struct condition, type clause_t, struct predicate,
20634 struct size_time_entry): New structures.
20635 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
20636 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
20637 and estimated_growth.
20638 (edge_growth_cache_entry): New structure.
20639 (node_growth_cache, edge_growth_cache): New global vars.
20640 (estimate_growth): Turn into inline.
20641 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
20642 initialize_growth_caches, free_growth_caches): Declare.
20643 (estimate_edge_growth): Rewrite.
20644 (estimate_edge_time): Implement as inline cache lookup.
20645 (reset_node_growth_cache, reset_edge_growth_cache): New inline
20647 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
20648 (NUM_CONDITIONS): New constant.
20649 (predicate_conditions): New enum.
20650 (IS_NOT_CONSTANT): New constant.
20651 (edge_removal_hook_holder): New var.
20652 (node_growth_cache, edge_growth_cache): New global vars.
20653 (true_predicate, single_cond_predicate, false_predicate,
20654 not_inlined_predicate, add_condition, add_clause, and_predicates,
20655 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
20656 dump_clause, dump_predicate, account_size_time,
20657 evaulate_conditions_for_edge): New functions.
20658 (inline_summary_alloc): Move to heap.
20659 (inline_node_removal_hook): Clear condition and entry vectors.
20660 (inline_edge_removal_hook): New function.
20661 (initialize_growth_caches, free_growth_caches): New function.
20662 (dump_inline_summary): Update.
20663 (edge_execution_predicate): New function.
20664 (will_be_nonconstant_predicate): New function.
20665 (estimate_function_body_sizes): Compute BB and constantness predicates.
20666 (compute_inline_parameters): Do not clear estimated_growth.
20667 (estimate_edge_size_and_time): New function.
20668 (estimate_calls_size_and_time): New function.
20669 (estimate_callee_size_and_time): New function.
20670 (remap_predicate): New function.
20671 (inline_merge_summary): New function.
20672 (do_estimate_edge_time): New function based on...
20673 (estimate_edge_time): ... this one.
20674 (do_estimate_edge_growth): New function.
20675 (do_estimate_growth): New function based on....
20676 (estimate_growth): ... this one.
20677 (inline_analyze_function): Analyze after deciding on jump functions.
20678 (inline_read_section): New function.
20679 (inline_read_summary): Use it.
20680 (inline_write_summary): Write all the new data.
20681 * ipa-prop.c (ipa_get_param_decl_index): Export.
20682 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
20683 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
20685 (ipa_get_lattice): Move here from ipa-cp.c
20686 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
20687 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
20688 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
20689 cgraph_edge_inlinable_p): Remove.
20690 * cgraphunit.c: Include ipainline.h
20691 (cgraph_process_new_functions): Update call of
20692 compute_inline_parameters.
20694 2011-04-22 Richard Guenther <rguenther@suse.de>
20696 * tree.c (build_int_cst): Properly create canonicalized integer
20698 (build_int_cst_type): Remove scary comments.
20700 2011-04-22 Xinliang David Li <davidxl@google.com>
20702 * toplev.c (process_options): Enable -Werror=coverage-mismatch
20703 by default when -Wno-error is not specified.
20704 * opts-global.c (decode_options): Remove call to
20705 control_warning_options.
20707 2011-04-22 Jakub Jelinek <jakub@redhat.com>
20709 PR tree-optimization/48717
20710 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
20711 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
20713 2011-04-22 Joseph Myers <joseph@codesourcery.com>
20715 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
20716 definition where used.
20718 2011-04-22 Jakub Jelinek <jakub@redhat.com>
20721 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
20722 TREE_STATIC variables declared inside of some OpenMP construct.
20724 2011-04-22 Martin Jambor <mjambor@suse.cz>
20726 PR middle-end/48585
20727 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
20729 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
20732 * c-typeck.c (pop_init_level): Do not warn about initializing
20735 2011-04-22 Alan Modra <amodra@gmail.com>
20737 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
20738 when returning call_cookie.
20739 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
20740 pointers, to functions with no more vector args than the current
20741 function, and some non-local calls for ABI_V4.
20742 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
20743 sibcall_nonlocal_aix64): Combine to ..
20744 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
20745 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
20746 (sibcall_value_nonlocal_aix<mode>): ..likewise.
20747 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20748 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
20750 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
20751 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
20752 sibcall_value_symbolic_64): Delete.
20754 2011-04-21 Xinliang David Li <davidxl@google.com>
20756 * cgraph.h: Remove pid.
20757 * cgraph.c: Remove pid.
20758 * value-prof.c (init_node_map): New function.
20759 (del_node_map): New function.
20760 (find_func_by_funcdef_no): New function.
20761 (gimple_ic_transform): Call new function.
20762 * cgraphunit.c (cgraph_finalize_function): Remove pid.
20763 * function.c (get_last_funcdef_no): New function.
20764 * function.h (get_last_funcdef_no): New function.
20765 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
20766 to libgcov function.
20767 (tree-profiling): Call node map init and delete function.
20769 2011-04-21 Ian Lance Taylor <iant@google.com>
20771 * godump.c (go_format_type): Use exported Go name for anonymous
20774 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20776 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
20777 Call builtin_function_type_list instead of builtin_function_type.
20778 (UNARY, BINARY, TRINARY, QUAD): Likewise.
20780 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20782 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
20783 build_function_type_list instead of build_function_type.
20784 Delete variable `endlink'.
20786 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20788 * config/s390/s390.c (s390_init_builtins): Call
20789 build_function_type_list instead of build_function_type.
20791 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
20793 * config/ia64/ia64.c (ia64_init_builtins): Call
20794 build_function_type_list instead of builtin_function_type.
20796 2011-04-21 Easwaran Raman <eraman@google.com>
20798 * cfgexpand.c (stack_var): Remove OFFSET...
20799 (add_stack_var): ...and its reference here...
20800 (expand_stack_vars): ...and here.
20801 (stack_var_cmp): Sort by descending order of size.
20802 (partition_stack_vars): Change heuristic.
20803 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
20804 (dump_stack_var_partition): Add newline after each partition.
20806 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
20807 Jeff Law <law@redhat.com>
20809 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
20810 * gengtype.c (matching_file_name_substitute): Likewise.
20812 2011-04-21 Richard Guenther <rguenther@suse.de>
20815 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
20817 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
20819 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
20821 2011-04-21 Richard Guenther <rguenther@suse.de>
20823 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
20826 2011-04-21 Richard Guenther <rguenther@suse.de>
20828 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
20829 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
20830 Use DECL_P, not SSA_VAR_P.
20831 (ptr_derefs_may_alias_p): Likewise.
20832 (ptr_deref_may_alias_ref_p_1): Likewise.
20833 (decl_refs_may_alias_p): Likewise.
20834 (refs_may_alias_p_1): Likewise.
20835 (ref_maybe_used_by_call_p_1): Likewise.
20836 (call_may_clobber_ref_p_1): Likewise.
20837 (indirect_ref_may_alias_decl_p): Assume indirect refrences
20838 are either MEM_REF or TARGET_MEM_REF.
20839 (indirect_refs_may_alias_p): Likewise.
20840 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
20841 for MEM_EXPR of indirect calls.
20843 2011-04-21 Tristan Gingold <gingold@adacore.com>
20845 * vmsdbgout.c (write_srccorr): Compute file length from the string.
20846 (dst_file_info_struct): Remove flen field.
20847 (lookup_filename): Remove code that set flen field.
20849 2011-04-21 Tristan Gingold <gingold@adacore.com>
20851 * config/ia64/ia64.c (ia64_start_function): Add a guard.
20853 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
20856 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
20857 vec_extract and vec_concat for non-SSE4_1 targets.
20859 2011-04-21 Richard Guenther <rguenther@suse.de>
20861 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
20864 2011-04-21 Joseph Myers <joseph@codesourcery.com>
20866 * config/i386/cygming.h (union tree_node, TREE): Don't define or
20868 (FILE): Don't undefine.
20870 2011-04-21 Joseph Myers <joseph@codesourcery.com>
20872 * config/alpha/alpha.c (struct machine_function): Use rtx, not
20874 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
20876 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
20877 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
20878 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
20880 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
20881 definitions where used.
20882 * config/microblaze/microblaze.h (struct microblaze_args): Use
20883 rtx, not struct rtx_def *.
20884 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
20886 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
20887 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20888 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20889 not struct rtx_def *.
20890 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20892 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20894 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20896 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20898 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20899 operand_equal_p to compare DR_BASE_ADDRESSes.
20900 (vect_check_interleaving): Likewise.
20902 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20905 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20906 for all Neon struct constants.
20908 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
20910 * target.def (legitimate_constant_p): New hook.
20911 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20912 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20913 * doc/tm.texi: Regenerate.
20914 * hooks.h (hook_bool_mode_rtx_true): Declare.
20915 * hooks.c (hook_bool_mode_rtx_true): Define.
20916 * system.h (LEGITIMATE_CONSTANT_P): Poison.
20917 * calls.c (precompute_register_parameters): Replace uses of
20918 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20919 (emit_library_call_value_1): Likewise.
20920 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20921 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20922 * ira-costs.c (scan_one_insn): Likewise.
20923 * recog.c (general_operand, immediate_operand): Likewise.
20924 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20925 * reload1.c (init_eliminable_invariants): Likewise.
20927 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20929 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20930 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20932 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20933 * config/alpha/predicates.md (input_operand): Update call to
20934 alpha_legitimate_constant_p.
20936 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20937 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20938 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20939 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20940 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20941 (arm_legitimate_constant_p): New functions.
20942 (arm_cannot_force_const_mem): Make static.
20944 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20946 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20947 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20948 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20949 instead of bfin_legitimate_constant_p.
20950 (bfin_legitimate_constant_p): Make static. Add a mode argument.
20951 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20953 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20955 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20957 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20958 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20959 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20960 (frv_legitimate_constant_p): Make static. Add a mode argument.
20962 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20963 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20964 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20966 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20967 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20968 * config/i386/i386.c (legitimate_constant_p): Rename to...
20969 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
20971 (ix86_cannot_force_const_mem): Update accordingly.
20972 (ix86_legitimate_address_p): Likewise.
20973 (TARGET_LEGITIMATE_CONSTANT_P): Define.
20974 * config/i386/i386.md: Update commentary.
20976 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20977 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20978 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20979 (ia64_legitimate_constant_p): Make static. Add a mode argument.
20981 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
20983 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
20984 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
20985 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20986 (lm32_legitimate_constant_p): Make static. Add a mode argument.
20988 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
20989 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
20990 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
20992 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
20993 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20994 (m32r_legitimate_constant_p): New function.
20996 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
20997 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
20998 LEGITIMATE_CONSTANT_P.
20999 (LEGITIMATE_CONSTANT_P): Delete.
21000 * config/m68k/m68k.c (m68k_expand_prologue): Call
21001 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
21002 (m68k_legitimate_constant_p): New function.
21003 * config/m68k/m68k.md: Update comments.
21005 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
21006 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21007 (mcore_legitimate_constant_p): New function.
21009 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
21010 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
21011 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
21012 Add a mode argument.
21013 (mep_legitimate_address): Update accordingly.
21014 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21016 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
21018 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
21019 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
21020 static. Check OP's mode for VOIDmode.
21021 (microblaze_legitimate_constant_p): New function.
21022 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21024 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
21025 * config/mips/mips.c (mips_legitimate_constant_p): New function.
21026 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
21027 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21028 * config/mips/predicates.md: Update comments.
21030 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
21031 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
21032 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21033 (mmix_legitimate_constant_p): Make static, return a bool, and take
21035 (mmix_print_operand_address): Update accordingly.
21037 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
21039 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
21040 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
21041 static. Add a mode argument.
21042 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21044 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
21046 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
21047 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21048 (pa_legitimate_constant_p): New function.
21050 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
21052 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
21053 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21054 (pdp11_legitimate_constant_p): New function.
21056 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
21057 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21058 (rs6000_legitimate_constant_p): New function.
21060 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
21061 (rx_legitimate_constant_p): ...this.
21062 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
21063 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
21064 (rx_legitimate_constant_p): ...this.
21065 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21066 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
21068 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
21069 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
21070 * config/s390/s390.c (legitimate_constant_p): Rename to...
21071 (s390_legitimate_constant_p): ...this. Make static, return a bool,
21072 and add a mode argument.
21073 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21075 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
21077 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
21078 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21079 (sh_legitimate_constant_p): New function.
21081 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
21082 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
21083 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21084 (legitimate_constant_p): Rename to...
21085 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
21087 (constant_address_p): Update accordingly.
21089 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
21090 argument and return a bool.
21091 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
21092 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21093 (spu_legitimate_constant_p): Add a mode argument and return a bool.
21094 (spu_rtx_costs): Update accordingly.
21095 * config/spu/predicates.md (vec_imm_operand): Likewise.
21097 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
21099 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
21100 * config/v850/v850.c (v850_legitimate_constant_p): New function.
21101 (TARGET_LEGITIMATE_CONSTANT_P): Define.
21103 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
21104 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
21105 * config/vax/vax.c (legitimate_constant_p): Likewise.
21107 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
21108 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21109 (xtensa_legitimate_constant_p): New function.
21111 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
21113 * target.def (cannot_force_const_mem): Add a mode argument.
21114 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
21115 * doc/tm.texi: Regenerate.
21116 * hooks.h (hook_bool_mode_rtx_false): Declare.
21117 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
21118 (hook_bool_mode_const_rtx_true): Likewise.
21119 (hook_bool_mode_rtx_false): New function.
21120 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
21121 to be non-VOID. Update call to cannot_force_const_mem.
21122 (find_reloads): Update accordingly.
21123 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
21124 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
21126 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
21127 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
21128 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
21129 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
21130 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
21131 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
21132 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
21133 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
21134 (m68k_cannot_force_const_mem): ...this new function.
21135 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
21137 (mips_const_insns, mips_legitimize_const_move): Update calls.
21138 (mips_secondary_reload_class): Likewise.
21139 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
21140 (pa_cannot_force_const_mem): ...this new function.
21141 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
21142 (rs6000_cannot_force_const_mem): ...this new function.
21143 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
21145 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
21146 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
21148 (xtensa_cannot_force_const_mem): ...this new function.
21150 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
21152 * config/mips/mips.c (mips16_build_function_stub): Call
21153 build_function_type_list instead of build_function_type.
21154 (mips16_build_call_stub): Likewise.
21156 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
21158 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
21159 instead of build_function_type.
21161 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
21163 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
21164 instead of build_function_type.
21166 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
21169 * config/i386/i386.md (insv): Change operand 0 constraint to
21170 "register_operand". Change operand 1 and 2 constraint to
21171 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
21172 * config/i386/sse.md (sse4_1_pinsrb): Export.
21173 (sse2_pinsrw): Ditto.
21174 (sse4_1_pinsrd): Ditto.
21175 (sse4_1_pinsrq): Ditto.
21176 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
21177 * config/i386/i386.c (ix86_expand_pinsr): New.
21179 2011-04-20 Easwaran Raman <eraman@google.com>
21181 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
21182 containing union type only with -fstrict-aliasing.
21184 2011-04-20 Jim Meyering <meyering@redhat.com>
21186 Remove useless if-before-free tests.
21187 * calls.c (expand_call, save_area): Likewise.
21188 * cfgcleanup.c (try_forward_edges): Likewise.
21189 * collect2.c (collect_execute): Likewise.
21190 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
21191 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
21192 * coverage.c (coverage_checksum_string): Likewise.
21193 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
21194 * cselib.c (cselib_init): Likewise.
21195 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
21196 (df_set_clean_cfg): Likewise.
21197 * function.c (free_after_compilation): Likewise.
21198 * gcc.c (do_spec_1, main): Likewise.
21199 * gcov.c (create_file_names): Likewise.
21200 * gensupport.c (identify_predicable_attribute): Likewise.
21201 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
21202 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
21203 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
21204 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
21205 * ipa-pure-const.c (local_pure_const): Likewise.
21206 * ipa-reference.c (propagate): Likewise.
21207 * ira-costs.c (free_ira_costs): Likewise.
21208 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
21209 * matrix-reorg.c (mat_free): Likewise.
21210 * prefix.c (get_key_value): Likewise.
21211 * profile.c (compute_value_histograms): Likewise.
21212 * reload1.c (free_reg_equiv): Likewise.
21213 * sched-deps.c (free_deps): Likewise.
21214 * sel-sched-ir.c (fence_clear): Likewise.
21215 * sese.c (set_rename, if_region_set_false_region): Likewise.
21216 * tree-data-ref.c (free_rdg): Likewise.
21217 * tree-eh.c (lower_try_finally): Likewise.
21218 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
21219 * tree-ssa-live.c (delete_var_map): Likewise.
21220 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
21221 * tree-ssa-pre.c (phi_trans_add): Likewise.
21223 2011-04-20 Jakub Jelinek <jakub@redhat.com>
21225 PR tree-optimization/48611
21226 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
21227 beyond ERT_MUST_NOT_THROW region.
21229 2011-04-20 Catherine Moore <clm@codesourcery.com>
21231 * config/mips/mips.opt (mfix-24k): New.
21232 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
21233 * config/mips/mips.md (length): Increase by 4 for stores if
21235 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
21236 all noreorder if fixing 24K errata.
21237 * doc/invoke.texi: Document mfix-24k.
21239 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
21241 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
21242 quad-word modes, reduce to 9-bit index range when above 1016 limit.
21244 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
21246 * config/arm/arm.c (arm_gen_constant): Move movw support ....
21247 (const_ok_for_op): ... to here.
21249 2011-04-20 Kai Tietz <ktietz@redhat.com>
21251 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
21252 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
21254 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
21256 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
21258 2011-04-20 Richard Guenther <rguenther@suse.de>
21260 PR tree-optimization/47892
21261 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
21262 are if-convertible.
21264 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
21266 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
21268 2011-04-20 Tristan Gingold <gingold@adacore.com>
21270 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
21272 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
21276 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
21277 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
21278 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21279 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
21280 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
21282 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
21285 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
21286 (avr_asm_named_section, avr_asm_output_aligned_common,
21287 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
21288 New functions to update...
21289 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
21290 (avr_asm_init_sections): Overwrite section callbacks for
21291 data_section, bss_section.
21292 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
21294 (avr_file_end): ...here.
21296 2011-04-20 Richard Guenther <rguenther@suse.de>
21298 PR middle-end/48695
21299 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
21300 objects and types here. Adjust for their offset before comparing.
21302 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
21304 * tree-vect-stmts.c (vectorizable_store): Only chain one related
21305 statement per copy.
21307 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
21309 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
21310 (GIMPLE_H): Include $(INTERNAL_FN_H).
21311 (OBJS-common): Add internal-fn.o.
21312 (internal-fn.o): New rule.
21313 * internal-fn.def: New file.
21314 * internal-fn.h: Likewise.
21315 * internal-fn.c: Likewise.
21316 * gimple.h: Include internal-fn.h.
21317 (GF_CALL_INTERNAL): New gf_mask.
21318 (gimple_statement_call): Put fntype into a union with a new
21320 (gimple_build_call_internal): Declare.
21321 (gimple_build_call_internal_vec): Likewise.
21322 (gimple_call_same_target_p): Likewise.
21323 (gimple_call_internal_p): New function.
21324 (gimple_call_internal_fn): Likewise.
21325 (gimple_call_fntype): Return null for internal calls.
21326 (gimple_call_set_fntype): Assert that the function is not internal.
21327 (gimple_call_set_fn): Likewise.
21328 (gimple_call_set_fndecl): Likewise.
21329 (gimple_call_set_internal_fn): New function.
21330 (gimple_call_addr_fndecl): Handle null functions.
21331 (gimple_call_return_type): Likewise null types.
21332 * gimple.c (gimple_build_call_internal_1): New function.
21333 (gimple_build_call_internal): Likewise.
21334 (gimple_build_call_internal_vec): Likewise.
21335 (gimple_call_same_target_p): Likewise.
21336 (gimple_call_flags): Handle calls to internal functions.
21337 (gimple_call_fnspec): New function.
21338 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
21339 (gimple_has_side_effects): Handle null functions.
21340 (gimple_rhs_has_side_effects): Likewise.
21341 (gimple_call_copy_skip_args): Handle calls to internal functions.
21342 * cfgexpand.c (expand_call_stmt): Likewise.
21343 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
21344 * gimple-fold.c (gimple_fold_call): Handle null functions.
21345 (gimple_fold_stmt_to_constant_1): Don't fold
21346 calls to internal functions.
21347 * gimple-low.c (gimple_check_call_args): Handle calls to internal
21349 * gimple-pretty-print.c (dump_gimple_call): Likewise.
21350 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
21351 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
21352 (do_warn_unused_result): Likewise.
21353 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
21354 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
21355 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
21356 the target of a call.
21357 (initialize_hash_element): Update accordingly.
21358 (hashable_expr_equal_p): Use gimple_call_same_target_p.
21359 (iterative_hash_hashable_expr): Handle calls to internal functions.
21360 (print_expr_hash_elt): Likewise.
21361 * tree-ssa-pre.c (can_value_number_call): Likewise.
21362 (eliminate): Handle null functions.
21363 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
21364 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
21365 (find_func_aliases): Likewise.
21366 * value-prof.c (gimple_ic_transform): Likewise.
21367 (gimple_indirect_call_to_profile): Likewise.
21368 * lto-streamer-in.c (input_gimple_stmt): Likewise.
21369 * lto-streamer-out.c (output_gimple_stmt): Likewise.
21371 2011-04-19 Jan Hubicka <jh@suse.cz>
21373 * ipa-inline-transform.c (save_inline_function_body): Add comments.
21374 * ipa-inline.c (inline_small_functions): Compute summaries first,
21375 populate heap later.
21377 2011-04-19 Jan Hubicka <jh@suse.cz>
21379 * cgraph.h (save_inline_function_body): Remove.
21380 * ipa-inline-transform.c: New file, broke out of...
21381 * ipa-inline.c: ... this one; Update toplevel comment.
21382 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
21384 (update_noncloned_frequencies): Move to ipa-inline-transform.c
21385 (cgraph_mark_inline_edge): Rename to inline_call; move to
21386 ipa-inline-transform.c.
21387 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
21388 move to ipa-inline-transform.c
21389 (recursive_inlining, inline_small_functions, flatten_function,
21390 ipa_inline, inline_always_inline_functions,
21391 early_inline_small_functions): Update.
21392 (inline_transform): Move to ipa-inline-transform.c.
21393 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
21395 * Makefile.in (ipa-inline-transform.o): New file.
21396 * cgraphunit.c (save_inline_function_body): Move to
21397 ipa-inline-transform.c
21399 2011-04-19 DJ Delorie <dj@redhat.com>
21401 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
21402 registers if we already know there aren't any.
21403 (m32c_emit_epilogue): Don't emit a barrier here.
21404 (m32c_emit_eh_epilogue): Likewise.
21405 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
21406 operands at expand time.
21407 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
21409 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
21410 duplicates. Provide aliases instead.
21411 * config/m32c/prologue.md (eh_return): Emit a barrier here.
21412 (eh_epilogue): Add a "(return)" here as a hint to other parts of
21415 2011-04-19 Anatoly Sokolov <aesok@post.ru>
21417 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
21418 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
21419 (general_or_i64_p, sparc_register_move_cost): New function.
21421 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21423 * doc/install.texi (Configuration, --enable-threads): Remove mach.
21424 Add lynx, mipssde. Sort table.
21426 2011-04-19 Xinliang David Li <davidxl@google.com>
21428 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
21431 2011-04-19 Jakub Jelinek <jakub@redhat.com>
21434 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
21435 is a SUBREG with non-MODE_INT mode inside of it.
21437 2011-04-19 Martin Jambor <mjambor@suse.cz>
21439 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
21440 also according to actual contants.
21441 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
21442 (gimple_fold_call): Use it.
21443 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
21445 2011-04-19 Martin Jambor <mjambor@suse.cz>
21447 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
21448 non-pointer assignments.
21450 2011-04-19 Martin Jambor <mjambor@suse.cz>
21452 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
21453 account anc_offset and otr_type from the indirect edge info.
21454 * ipa-prop.c (get_ancestor_addr_info): New function.
21455 (compute_complex_ancestor_jump_func): Assignment analysis moved to
21456 get_ancestor_addr_info, call it.
21457 (ipa_note_param_call): Do not initialize information about polymorphic
21458 calls, return the indirect call graph edge. Remove the last
21459 parameter, adjust all callers.
21460 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
21461 parameters. Initialize polymorphic information in the indirect edge.
21463 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
21466 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
21467 the types if they have different enumeration identifiers.
21469 2011-04-19 Jan Hubicka <jh@suse.cz>
21471 * cgraph.h (cgraph_optimize_for_size_p): Declare.
21472 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
21473 * predict.c (cgraph_optimize_for_size_p): Break out from ...
21474 (optimize_function_for_size_p) ... here.
21476 2011-04-19 Richard Guenther <rguenther@suse.de>
21479 * tree.c (free_lang_data): Do not reset the decl-assembler-name
21482 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
21484 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
21485 if DECL_NO_INLINE_WARNING_P is set on the function.
21487 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
21490 * reload1.c (inc_for_reload): Return void. All callers changed.
21491 (emit_input_reload_insns): Don't try to delete previous output
21492 reloads to a register, or record spill_reg_store for autoincs.
21494 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
21496 * gengtype.h: Updated copyright year.
21497 (struct input_file_st): Add inpisplugin field.
21498 (type_fileloc): New function.
21500 (write_typed_struct_alloc_def): Add gcc_assert.
21501 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
21502 (write_typed_alloc_defns): Don't output for plugin files.
21503 (input_file_by_name): Clear inpisplugin field.
21504 (main): Set inpisplugin field for plugin files.
21506 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
21508 * gengtype-state.c (string_eq): New.
21509 (read_state): Use string_eq instead of strcmp when creating the
21512 2011-04-19 Wei Guozhi <carrot@google.com>
21515 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
21516 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
21518 * config/arm/constraints.md (Uu): New constraint.
21519 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
21521 2011-04-19 Tristan Gingold <gingold@adacore.com>
21523 * config.gcc (-*-*-*vms): Added.
21524 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
21526 * config/vms/vms-ld.c: New file.
21527 * config/vms/vms-ar.c: New file.
21528 * config/vms/t-vmsnative: New file.
21530 2011-04-18 Xinliang David Li <davidxl@google.com>
21532 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
21534 2011-04-18 Jakub Jelinek <jakub@redhat.com>
21536 PR middle-end/48661
21537 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
21538 if TREE_TYPE (v) is non-NULL.
21540 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
21541 gimple_get_virt_mehtod_for_binfo.
21542 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
21543 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
21545 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21547 2011-04-18 Michael Matz <matz@suse.de>
21548 Steve Ellcey <sje@cup.hp.com>
21550 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
21551 use its mode as source mode if it isn't VOIDmode.
21553 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
21555 * doc/passes.texi: Fill crossref nodes.
21557 2011-04-18 Jim Meyering <meyering@redhat.com>
21559 Fix doubled-word typos in comments and strings
21560 * config/alpha/vms-unwind.h: s/for for/for/
21561 * config/arm/unwind-arm.h: Likewise.
21562 * config/microblaze/microblaze.c: Likewise.
21563 * config/sh/constraints.md: s/in in/in/
21564 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
21566 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
21568 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
21569 (AVX_FLOAT_MODE_P): Ditto.
21570 (AVX128_VEC_FLOAT_MODE_P): Ditto.
21571 (AVX256_VEC_FLOAT_MODE_P): Ditto.
21572 (AVX_VEC_FLOAT_MODE_P): Ditto.
21573 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
21574 (UNSPEC_MASKSTORE): Ditto.
21575 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
21576 Merge from <sse>_movmsk<ssemodesuffix> and
21577 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
21578 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
21580 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
21581 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
21582 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
21584 2011-04-18 Jan Hubicka <jh@suse.cz>
21586 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
21588 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
21589 (want_inline_function_called_once_p): Break out the logic from
21591 (edge_badness): Ensure that profile is not misupdated.
21592 (lookup_recursive_calls): Prioritize by call frequencies.
21593 (inline_small_functions): Move program size estimates here;
21594 actually process whole queue even when unit growth has been
21595 met. (to properly compute inline_failed reasons and for the
21596 case unit size decrease.) Revisit comments on recursive inlining.
21597 (ipa_inline): Remove unit summary code; first inline hot calls
21598 of functions called once, cold calls next.
21599 (order, nnodes): Remove unused variables.
21600 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
21601 (GTFILES): Remove ipa-inline.c
21602 * sel-sched.c (fill_insns): Silence uninitialized var warning.
21604 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
21606 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
21608 2011-04-18 Jie Zhang <jie@codesourcery.com>
21609 Richard Earnshaw <rearnsha@arm.com>
21611 * arm.c (neon_builtin_type_bits): Remove.
21612 (typedef enum neon_builtin_mode): New.
21613 (T_MAX): Don't define.
21614 (typedef enum neon_builtin_datum): Remove bits, codes[],
21615 num_vars and base_fcode. Add mode, code and fcode.
21616 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
21617 VAR10): Change accordingly.
21618 (neon_builtin_data[]): Change accordingly
21619 (arm_init_neon_builtins): Change accordingly.
21620 (neon_builtin_compare): Remove.
21621 (locate_neon_builtin_icode): Remove.
21622 (arm_expand_neon_builtin): Change accordingly.
21624 * arm.h (enum arm_builtins): Move to ...
21625 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
21627 * arm.c (arm_builtin_decl): Declare.
21628 (TARGET_BUILTIN_DECL): Define.
21629 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
21630 (arm_builtin_decls[]): New.
21631 (arm_init_neon_builtins): Store builtin declarations in
21632 arm_builtin_decls[].
21633 (arm_init_tls_builtins): Likewise.
21634 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
21635 (arm_builtin_decl): New.
21637 2011-04-18 Richard Guenther <rguenther@suse.de>
21639 * tree.c (upper_bound_in_type): Build properly canonicalized
21641 (lower_bound_in_type): Likewise.
21643 2011-04-18 Richard Guenther <rguenther@suse.de>
21645 * gimple.h (gimple_call_addr_fndecl): New function.
21646 (gimple_call_fndecl): Use it.
21647 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
21649 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
21650 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
21652 2011-04-18 Richard Guenther <rguenther@suse.de>
21654 PR middle-end/48650
21655 * tree.c (build_string): STRING_CST is now derived from tree_typed.
21657 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
21660 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
21661 DECL_IN_CONSTANT_POOL without RTL.
21663 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
21664 Ira Rosen <ira.rosen@linaro.org>
21667 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
21668 to match neon_vzip/vuzp/vtrn_internal.
21669 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
21670 outputs explicitly dependent on both inputs.
21671 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
21673 2011-04-18 Jakub Jelinek <jakub@redhat.com>
21675 PR tree-optimization/48616
21676 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21677 whether the shift is by scalar or vector based on whether all SLP
21678 scalar stmts have the same rhs.
21680 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
21682 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
21685 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
21688 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
21691 2011-04-17 Jan Hubicka <jh@suse.cz>
21693 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
21694 * cgrpahunit.c (cgraph_finalize_function): Do not set
21695 finalized_by_frontend.
21696 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21697 finalized_by_frontend.
21699 2011-04-17 Jan Hubicka <jh@suse.cz>
21701 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
21702 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
21703 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
21704 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
21706 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
21708 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
21710 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
21713 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
21714 is non-null before accessing it.
21715 (input_cgraph): Remove trailing spaces.
21717 2011-04-17 Revital Eres <revital.eres@linaro.org>
21719 * params.def (sms-min-sc): New param flag.
21720 * modulo-sched.c (sms_schedule): Use it.
21721 * doc/invoke.texi (sms-min-sc): Document it.
21723 2011-04-17 Jan Hubicka <jh@suse.cz>
21725 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
21726 present, also set gimple_call_set_cannot_inline.
21727 * ipa-inline.c: Update toplevel comment.
21728 (MAX_TIME): Remove.
21729 (cgraph_clone_inlined_nodes): Fix linebreaks.
21730 (cgraph_check_inline_limits): Restructure to ...
21731 (caller_growth_limits): ... this one; be more tolerant
21732 on growth in nested inline chains; add explanatory comment;
21733 fix stack accounting thinko introduced by previous patch.
21734 (cgraph_default_inline_p): Remove.
21735 (report_inline_failed_reason): New function.
21736 (can_inline_edge_p): New function.
21737 (can_early_inline_edge_p): New function.
21738 (leaf_node_p): Move upwards in file.
21739 (want_early_inline_function_p): New function.
21740 (want_inline_small_function_p): New function.
21741 (want_inline_self_recursive_call_p): New function.
21742 (cgraph_edge_badness): Rename to ...
21743 (edge_badness) ... this one; fix linebreaks.
21744 (update_edge_key): Update call of edge_baddness; add
21745 detailed dump about queue updates.
21746 (update_caller_keys): Use can_inline_edge_p and
21747 want_inline_small_function_p.
21748 (cgraph_decide_recursive_inlining): Rename to...
21749 (recursive_inlining): Use can_inline_edge_p and
21750 want_inline_self_recursive_call_p; simplify and remove no longer
21752 (cgraph_set_inline_failed): Remove.
21753 (add_new_edges_to_heap): Use can_inline_edge_p and
21754 want_inline_small_function_p.
21755 (cgraph_decide_inlining_of_small_functions): Rename to ...
21756 (inline_small_functions): ... this one; cleanup; use
21757 can/want predicates; cleanup debug ouput; work edges till fibheap
21758 is exhausted and do not stop once unit growth is reached; remove
21759 later loop processing remaining edges.
21760 (cgraph_flatten): Rename to ...
21761 (flatten_function): ... this one; use can_inline_edge_p
21762 and can_early_inline_edge_p predicates.
21763 (cgraph_decide_inlining): Rename to ...
21764 (ipa_inline): ... this one; remove unreachable nodes before
21765 inlining functions called once; simplify the pass.
21766 (cgraph_perform_always_inlining): Rename to ...
21767 (inline_always_inline_functions): ... this one; use
21768 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
21769 (cgraph_decide_inlining_incrementally): Rename to ...
21770 (early_inline_small_functions): ... this one; simplify
21771 using new predicates; cleanup; make dumps prettier.
21772 (cgraph_early_inlining): Rename to ...
21773 (early_inliner): newer inline regular functions into always-inlines;
21774 fix updating of call stmt summaries.
21775 (pass_early_inline): Update for new names.
21776 (inline_transform): Fix formating.
21777 (gate_cgraph_decide_inlining): Rename to ...
21778 (pass_ipa_inline): ... this one.
21779 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
21780 * ipa-inline-analysis.c (dump_inline_summary): Update.
21781 (compute_inline_parameters): Do not compute disregard_inline_limits;
21782 look for mismatching arguments.
21783 (estimate_growth): Fix handlig of non-trivial self recursion.
21784 (inline_read_summary): Do not read info->disregard_inline_limits.
21785 (inline_write_summary): Do not write info->disregard_inline_limits.
21786 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
21787 and move all checks into can_inline_edge_p predicate; re-enable code
21788 comparing optimization levels.
21789 (expand_call_inline): Do not test inline_forbidden_into_p.
21790 * Makefile.in (ipa-inline.o): Update arguments.
21792 2011-04-17 Revital Eres <revital.eres@linaro.org>
21794 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
21796 2011-04-17 Revital Eres <revital.eres@linaro.org>
21798 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
21800 2011-04-17 Michael Matz <matz@suse.de>
21802 PR tree-optimization/48622
21804 * ipa-inline-analysis.c (inline_read_summary): Read size/time
21805 in same order as they're written.
21807 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21809 * config/pa/predicates.md: Reorganize and simplify predicates.
21810 Eliminate duplicate code checks.
21811 (arith_operand): Rename to arith14_operand
21812 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
21813 * config/pa/pa.md: Use renamed operands.
21814 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
21815 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
21816 arith11_operand, adddi3_operand, indexed_memory_operand,
21817 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
21818 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
21819 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
21820 move_dest_operand, move_src_operand, prefetch_cc_operand,
21821 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
21822 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
21823 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
21824 div_operand, int5_operand, movb_comparison_operator,
21825 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
21826 arith_double_operand, ireg_operand, lhs_lshift_operand,
21827 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
21828 integer_store_memory_operand): Likewise.
21829 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
21830 (integer_store_memory_operand, read_only_operand,
21831 function_label_operand, borx_reg_operand,
21832 non_hard_reg_operand): Likewise.
21833 (eq_neq_comparison_operator): Delete unused operator.
21834 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
21835 function_label_operand.
21836 (emit_move_sequence): Likewise.
21838 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
21840 * config/i386/sse.md (sseunpackmode): New mode attribute.
21841 (ssepackmode): Ditto.
21842 (vec_pack_trunc_<mode>): Macroize expander from
21843 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
21844 (vec_unpacks_lo_<mode>): Macroize expander from
21845 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21846 (vec_unpacks_hi_<mode>): Macroize expander from
21847 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21848 (vec_unpacku_lo_<mode>): Macroize expander from
21849 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21850 (vec_unpacku_hi_<mode>): Macroize expander from
21851 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21852 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
21853 ix86_expand_sse4_unpack.
21854 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
21856 2011-04-16 Jan Hubicka <jh@suse.cz>
21858 * cgraphbuild.c: Include ipa-inline.h.
21859 (reset_inline_failed): Use initialize_inline_failed.
21860 * cgraph.c: Include ipa-inline.h.
21861 (cgraph_create_node_1): Do not initialize estimated_growth.
21862 (initialize_inline_failed): More to ipa-inline-analysis.c
21863 (dump_cgraph_node): Do not dump inline flags.
21864 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
21865 and disregard_inline_limits flags.
21866 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
21867 time, size, estimated_growth.
21868 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
21870 * cgraphunit.c (cgraph_decide_is_function_needed): Use
21871 DECL_DISREGARD_INLINE_LIMITS.
21872 (cgraph_analyze_function): Do not initialize
21873 node->local.disregard_inline_limits.
21874 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21875 inlinable, versionable and disregard_inline_limits.
21876 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
21877 cgraph_check_inline_limits, cgraph_default_inline_p,
21878 cgraph_edge_badness, update_caller_keys, update_callee_keys,
21879 add_new_edges_to_heap): Update.
21880 (cgraph_decide_inlining_of_small_function): Update; set
21881 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
21882 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
21883 cgraph_decide_inlining_incrementally): Update.
21884 * ipa-inline.h (inline_summary): Add inlinable, versionable,
21885 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
21886 time, size and estimated_growth parameters.
21887 (estimate_edge_growth): Update.
21888 (initialize_inline_failed): Declare.
21889 * ipa-split.c: Include ipa-inline.h
21890 (execute_split_functions): Update.
21891 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21892 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21893 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21894 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21895 estimated_growth to INT_MIN.
21896 (inline_node_duplication_hook): Likewise.
21897 (dump_inline_summary): Dump new fields.
21898 (compute_inline_parameters): Update.
21899 (estimate_edge_time, estimate_time_after_inlining,
21900 estimate_size_after_inlining, estimate_growth, inline_read_summary,
21901 inline_write_summary):
21902 (initialize_inline_failed): Move here from cgraph.c.
21903 * tree-sra.c: Include ipa-inline.h.
21904 (ipa_sra_preliminary_function_checks): Update.
21905 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21908 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
21910 * config/i386/sse.md (V16): New mode iterator.
21912 (AVXMODEQI, AVXMODEDI): Remove.
21913 (sse2, sse3): New mode attribute.
21914 (mov<mode>): Use V16 mode iterator.
21915 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21916 (push<mode>1): Use V16 mode iterator.
21917 (movmisalign<mode>): Ditto.
21918 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21919 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21920 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21921 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21922 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21923 avx_movdqu<avxmodesuffix>.
21924 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21925 *avx_movdqu<avxmodesuffix>.
21926 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21927 avx_lddqu<avxmodesuffix>.
21928 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21929 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21930 avx_movnt<AVXMODEDI:mode>.
21931 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21932 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21934 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
21937 * haifa-sched.c (prune_ready_list, schedule_block): Use
21938 sched_pressure_p rather than flag_sched_pressure.
21940 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
21942 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21943 cgraph_get_node instead of cgraph_get_create_node.
21945 2011-04-15 Jakub Jelinek <jakub@redhat.com>
21947 * cfgexpand.c (expand_debug_expr): Use
21948 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21950 2011-04-15 Michael Matz <matz@suse.de>
21952 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21953 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21954 * function.c (gimplify_parameters): Ditto.
21955 * gimplify.c (gimplify_vla_decl): Ditto.
21957 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21958 (gimple_call_set_alloca_for_var): New inline function.
21959 (gimple_call_alloca_for_var_p): Ditto.
21960 * gimple.c (gimple_build_call_from_tree): Remember
21961 CALL_ALLOCA_FOR_VAR_P state.
21962 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21964 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21965 calls if they were for VLA objects.
21967 2011-04-15 Martin Jambor <mjambor@suse.cz>
21969 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21972 2011-04-15 Martin Jambor <mjambor@suse.cz>
21974 PR middle-end/48601
21975 * tree-emutls.c (lower_emutls_function_body): Call
21976 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
21977 result is non-NULL.
21979 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
21981 * c-decl.c (detect_field_duplicates): Call
21982 objc_detect_field_duplicates instead of objc_get_interface_ivars.
21984 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
21986 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
21987 * gimple.c (gimple_asm_clobbers_memory_p): Define.
21988 * ipa-pure-const.c (check_stmt): Call it.
21989 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
21991 2011-04-15 Richard Guenther <rguenther@suse.de>
21993 PR tree-optimization/48290
21994 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
21995 Properly decide inhibiting propagation based on the valueized
21996 operand. Do loop-closed SSA form preserving here ...
21997 (init_copy_prop): ... not here.
21999 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
22002 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
22003 (*ieee_smax<mode>3): Likewise.
22005 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22007 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
22008 Replace match_operand with match_dup for the third operand in
22011 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
22013 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
22014 to track processing of conditionals. Update all callers.
22015 (try_combine, simplify_if_then_else): Update.
22017 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
22019 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
22022 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
22024 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
22025 instead of match_operand for operand 3.
22027 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
22029 * recog.h (insn_operand_data): Add an "allows_mem" field.
22030 * genoutput.c (output_operand_data): Initialize it.
22031 * optabs.c (maybe_legitimize_operand_same_code): New function.
22032 (maybe_legitimize_operand): Use it when matching the original
22035 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
22037 * gimplify.c: Fix issues in comments throughout.
22038 (voidify_wrapper_expr): Fix long line.
22039 (build_stack_save_restore): Likewise.
22040 (gimplify_loop_expr): Likewise.
22041 (gimplify_compound_lval): Likewise.
22042 (gimplify_init_ctor_eval): Likewise.
22043 (gimplify_modify_expr_rhs): Likewise.
22044 (omp_notice_threadprivate_variable): Likewise.
22046 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
22048 * cfgexpand.c (expand_call_stmt): Convert the function type to the
22049 original one if this is not a builtin function.
22051 2011-04-14 Jakub Jelinek <jakub@redhat.com>
22054 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
22055 offset it as needed based on top 2 bits in operands[3], change
22056 MEM mode to SFmode and mask those 2 bits away from operands[3].
22058 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
22060 * c-parser.c (c_parser_objc_protocol_definition): Updated for
22061 change from objc_declare_protocols() to objc_declare_protocol().
22063 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
22065 * config/i386/sse.md (sse4_1): New mode attribute.
22066 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
22067 avx_blend<ssemodesuffix><avxmodesuffix> and
22068 sse4_1_blend<ssemodesuffix> using VF mode iterator.
22069 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
22070 avx_blendv<ssemodesuffix><avxmodesuffix> and
22071 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
22072 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
22073 avx_dp<ssemodesuffix><avxmodesuffix> and
22074 sse4_1_dp<ssemodesuffix> using VF mode iterator.
22075 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
22076 (sse4_1_packusdw): Merge with *avx_packusdw.
22077 (sse4_1_pblendvb): Merge with *avx_pblendvb.
22078 (sse4_1_pblendw): Merge with *avx_pblendw.
22079 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
22080 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
22081 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
22083 (sse4_1_round<ssescalarmodesuffix>): Merge with
22084 *avx_round<ssescalarmodesuffix>.
22085 (aesenc): Merge with *avx_aesenc.
22086 (aesenclast): Merge with *avx_aesenclast.
22087 (aesdec): Merge with *avx_aesdec.
22088 (aesdeclast): Merge with *avx_aesdeclast.
22089 (pclmulqdq): Merge with *pclmulqdq.
22090 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
22092 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
22094 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
22096 PR middle-end/48608
22097 * cfgexpand.c (get_decl_align_unit): Renamed to ...
22098 (align_local_variable): This. Update DECL_ALIGN.
22099 (add_stack_var): Updated.
22100 (expand_one_stack_var): Likewise.
22102 2011-04-14 Richard Guenther <rguenther@suse.de>
22104 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
22106 (dse_initialize_block_local_data, dse_leave_block,
22107 record_voperand_set, get_stmt_uid): Likewise.
22108 (dse_possible_dead_store_p): Allow any kind of killing stmt.
22109 (dse_optimize_stmt): Remove voperand set handling code.
22110 Simplify and improve to handle any kind of killing stmt.
22111 (dse_record_phi): Remove.
22112 (dse_enter_block): Simplify.
22113 (tree_ssa_dse): Likewise.
22114 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
22116 2011-04-14 Jan Hubicka <jh@suse.cz>
22118 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
22119 * cgraph.h (struct inline_summary): Move to ipa-inline.h
22120 (cgraph_local_info): Remove inline_summary.
22121 * ipa-cp.c: Include ipa-inline.h.
22122 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
22123 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
22125 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
22126 (input_overwrite_node): Do not set inline summary.
22127 (input_node): Do not stream inline summary.
22128 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
22129 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
22130 growth; we do not have inline parameters computed for that anyway.
22131 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
22132 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
22133 (inline_summary_t): New type and VECtor.
22134 (debug_inline_summary, dump_inline_summaries): Declare.
22135 (inline_summary): Use VOCtor.
22136 (estimate_edge_growth): Kill hack computing call stmt size directly.
22137 * lto-section-in.c (lto_section_name): Add inline section.
22138 * ipa-inline-analysis.c: Include lto-streamer.h
22139 (node_removal_hook_holder, node_duplication_hook_holder): New holders
22140 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
22141 (inline_summary_vec): Define.
22142 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
22143 dump_inline_summaries): New functions.
22144 (estimate_function_body_sizes): Properly compute size/time of outgoing
22146 (compute_inline_parameters): Alloc inline_summary; do not compute
22147 size/time of incomming calls.
22148 (estimate_edge_time): Avoid missing time summary hack.
22149 (inline_read_summary): Read inline summary info.
22150 (inline_write_summary): Write inline summary info.
22151 (inline_free_summary): Free all hooks and inline summary vector.
22152 * lto-streamer.h: Add LTO_section_inline_summary section.
22153 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
22154 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
22156 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22158 * tree-vectorizer.h (vect_strided_store_supported): Add a
22159 HOST_WIDE_INT argument.
22160 (vect_strided_load_supported): Likewise.
22161 (vect_permute_store_chain): Return void.
22162 (vect_transform_strided_load): Likewise.
22163 (vect_permute_load_chain): Delete.
22164 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
22165 count argument. Check that the count is a power of two.
22166 (vect_strided_load_supported): Likewise.
22167 (vect_permute_store_chain): Return void. Update after above changes.
22168 Assert that the access is supported.
22169 (vect_permute_load_chain): Likewise.
22170 (vect_transform_strided_load): Return void.
22171 * tree-vect-stmts.c (vectorizable_store): Update calls after
22172 above interface changes.
22173 (vectorizable_load): Likewise.
22174 (vect_analyze_stmt): Don't check for strided powers of two here.
22176 2011-04-14 Richard Guenther <rguenther@suse.de>
22178 PR tree-optimization/48590
22179 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22180 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
22181 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
22182 BUILT_IN_STACK_SAVE.
22183 * tree-ssa-dce.c (propagate_necessity): Handle
22184 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
22186 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
22188 * c-parser.c (c_parser_objc_class_declaration): Updated call to
22189 objc_declare_class.
22191 2011-04-14 Richard Guenther <rguenther@suse.de>
22193 * tree.h (get_object_alignment_1): Declare.
22194 * builtins.c (get_object_alignment_1): Split out worker from ...
22195 (get_object_alignment): ... here.
22196 * fold-const.c (get_pointer_modulus_and_residue): Use
22197 get_object_alignment_1.
22199 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22201 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
22203 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
22204 parameter. Generalise code to handle arrays as well as vectors.
22205 (vect_setup_realignment): Update accordingly.
22206 * tree-vect-stmts.c (vectorizable_store): Likewise.
22207 (vectorizable_load): Likewise.
22209 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22211 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
22212 within the per-copy loop.
22214 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22216 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
22219 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
22221 * doc/options.texi (Negative): Explicitly mention that the
22222 Negative chain must be circular.
22224 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
22226 * function.h (block_chainon): Declare.
22227 * function.c (block_chainon): Define.
22229 2011-04-14 Anatoly Sokolov <aesok@post.ru>
22230 Eric Weddington <eric.weddington@atmel.com>
22231 Georg-Johann Lay <avr@gjlay.de>
22233 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
22235 (avr_init_builtins, avr_expand_builtin,
22236 avr_expand_delay_cycles, avr_expand_unop_builtin,
22237 avr_expand_binop_builtin ): New functions.
22238 (avr_builtin_id): New enum
22239 (struct avr_builtin_description): New struct
22240 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
22241 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
22243 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
22244 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
22245 UNSPECV_DELAY_CYCLES): new enumeration values
22246 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
22247 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
22248 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
22249 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
22250 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
22251 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
22252 "fmulsu"): New insns
22254 * config/avr/avr-c.c: fix line endings
22255 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
22256 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
22257 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
22258 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
22259 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
22261 * doc/extend.texi (AVR Built-in Functions): New node
22262 (Target Builtins): Add documentation of AVR
22263 built-in functions.
22265 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
22268 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
22269 alone. Error if non-const data has attribute progmem.
22271 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22273 * tree.h (struct tree_constructor): Include tree_typed instead of
22275 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
22276 TS_TYPED instead of TS_COMMON.
22278 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
22280 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
22281 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
22282 (sse2_psadbw): Merge with *avx_psadbw.
22283 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
22284 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
22285 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
22286 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
22287 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
22288 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
22289 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
22290 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
22291 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
22292 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
22293 (ssse3_palignrti): Merge with *avx_palignrti.
22295 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22297 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
22298 * tree-ssanames.c (fini_ssanames): VEC_free it.
22299 (make_ssa_name_fn): Update for VECness of free_ssanames.
22300 (release_ssa_name, release_dead_ssa_names): Likewise.
22301 * tree.h (struct tree_ssa_name): Include tree_typed instead of
22303 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
22304 TS_TYPED instead of TS_COMMON.
22306 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22308 * postreload-gcse.c (gcse_after_reload_main): Add calls to
22309 statistics_counter_event.
22310 * tree-ssa-copyrename.c (stats): Define.
22311 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
22312 statistics_counter_event.
22313 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
22314 (bswap_stats, widen_mul_stats): Define.
22315 (insert_reciprocals): Increment rdivs_inserted.
22316 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
22317 rfuncs_inserted. Add calls to statistics_counter_event.
22318 (execute_cse_sincos_1): Increment inserted.
22319 (execute_cse_sincos): Zeroize sincos_stats. Add call to
22320 statistics_counter_event.
22321 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
22322 of bswap_stats. Add calls to statistics_counter_event.
22323 (convert_mult_to_widen): Increment widen_mults_inserted.
22324 (convert_plusminus_to_widen): Increment maccs_inserted.
22325 (convert_mult_to_fma): Increment fmas_inserted.
22326 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
22327 calls to statistics_counter_event.
22329 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
22331 PR rtl-optimization/48455
22332 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
22333 `temp_costs->mem_cost'.
22335 2011-04-13 Jan Hubicka <jh@suse.cz>
22337 * ipa-inline.h: New file.
22338 * ipa-inline-analysis.c: New file. Broken out of ...
22339 * ipa-inline.c: ... this file; update toplevel comment;
22340 include ipa-inline.h
22341 (inline_summary): Move to ipa-inline.h
22342 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
22343 ipa-inline-analysis.c.
22344 (cgraph_estimate_time_after_inlining): Rename to
22345 estiamte_time_after_inlining; move to ipa-inline-analysis.c
22346 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
22347 to estimate_edge_growth.
22348 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
22349 rename to estimate_size_after_inlining.
22350 (cgraph_mark_inline_edge): Update for new naming convention.
22351 (cgraph_check_inline_limits): Likewise.
22352 (cgraph_edge_badness): Likewise.
22353 (cgraph_decide_recursive_inlining): Likewise.
22354 (cgraph_decide_inlining_of_small_functions): Likewise.
22355 (cgraph_decide_inlining_incrementally): Likewise.
22356 (cgraph_estimate_growth): Rename to estimate_growth; move to
22357 ipa-inline-analysis.c.
22358 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
22359 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
22360 (compute_inline_parameters): Likewise.
22361 (compute_inline_parameters_for_current): Likewise.
22362 (pass_inline_parameters): Likewise.
22363 (inline_indirect_intraprocedural_analysis): Likewise.
22364 (analyze_function): Rename to inline_analyze_function; likewise.
22365 (add_new_function): Move to ipa-inline-analysis.c.
22366 (inline_generate_summary): Likewise.
22367 (inline_read_summary): Likewise.
22368 (inline_write_summary): Likewise.
22369 * Makefile.in (ipa-inline-analysis.c): New file.
22371 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22373 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
22374 * configure: Regenerate.
22376 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
22378 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
22379 instead of tree_common.
22380 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
22382 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
22383 TS_TYPED rather than TS_COMMON.
22384 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
22386 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
22389 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
22390 r20 around calls of __tablejump_elpm__
22392 2011-04-13 Jakub Jelinek <jakub@redhat.com>
22394 PR middle-end/48591
22395 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
22397 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
22399 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
22401 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
22402 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
22403 (cfi_vec): New typedef.
22404 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
22405 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
22406 (cie_cfi_vec): New static variable.
22407 (cie_cfi_head): Delete.
22408 (add_cfi): Accept a cfi_vec * as first argument. All callers and
22409 declaration changed. Use vector rather than list operations.
22410 (new_cfi): Don't initialize the dw_cfi_next field.
22411 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
22412 rather than list operations.
22413 (lookup_cfa): Use vector rather than list operations.
22414 (output_cfis): New argument upto. Accept a cfi_vec rather than
22415 a dw_cfi_ref list head as argument. All callers changed.
22416 Iterate over the vector using upto as a maximum index.
22417 (output_all_cfis): New static function.
22418 (output_fde): Use vector rather than list operations. Use the
22419 new upto argument for output_cfis rather than manipulating a
22421 (dwarf2out_begin_prologue): Change initializations to match
22422 new struct members.
22423 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
22424 from the vector length rather than searching for the end of a list.
22425 Use output_all_cfis.
22426 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
22428 2011-04-13 Nick Clifton <nickc@redhat.com>
22430 * config/rx/rx.md (movmemsi): Do not use this pattern when
22431 volatile pointers are involved.
22433 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
22435 * config/i386/sse.md (pinsrbits): Remove.
22436 (sse2_packsswb): Merge with *avx_packsswb.
22437 (sse2_packssdw): Merge with *avx_packssdw.
22438 (sse2_packuswb): Merge with *avx_packuswb.
22439 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
22440 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
22441 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
22442 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
22443 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
22444 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
22445 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
22446 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
22447 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
22448 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
22449 (sse2_loadld): Merge with *avx_loadld.
22450 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
22451 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
22452 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
22453 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
22454 (vec_concatv2di): Merge with *vec_concatv2di_avx.
22456 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
22458 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
22459 calling TREE_CHAIN.
22460 * print-tree.c (print_node): Likewise.
22461 * tree-inline.c (copy_tree_r): Likewise.
22462 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
22463 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
22464 instead of TS_COMMON.
22465 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
22466 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
22467 (copy_node_stat): Zero TREE_CHAIN only if necessary.
22468 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
22469 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
22471 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
22473 (TREE_CHAIN): Check for a TS_COMMON structure.
22474 (TREE_TYPE): Check for a TS_TYPED structure.
22476 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
22478 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
22479 cgraph_get_create_node instead of cgraph_node.
22481 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
22483 * c-parser.c (c_parser_initelt): Updated call to
22484 objc_build_message_expr.
22485 (c_parser_postfix_expression): Likewise.
22487 2011-04-12 Kai Tietz <ktietz@redhat.com>
22489 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
22490 MASK_MS_BITFIELD_LAYOUT bit.
22492 2011-04-12 Jakub Jelinek <jakub@redhat.com>
22494 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
22495 assert it is always true.
22496 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
22499 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
22501 * c-parser.c (c_lex_one_token): Rewritten conditional used when
22502 compiling Objective-C to be more efficient.
22504 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
22506 * opts-common.c (decode_cmdline_options_to_array): Remove variable
22509 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
22511 * recog.h, genoutput.c, optabs.c: Revert last patch.
22513 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22516 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
22518 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
22520 * recog.h (insn_operand_data): Add an "allows_mem" field.
22521 * genoutput.c (output_operand_data): Initialize it.
22522 * optabs.c (maybe_legitimize_operand_same_code): New function.
22523 (maybe_legitimize_operand): Use it when matching the original
22526 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
22528 * genpreds.c (process_define_predicate): Move most processing
22529 to gensupport.c. Continue to validate the expression.
22530 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
22531 (process_define_predicate): Move processing to gensupport.c.
22532 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
22533 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
22534 (compute_predicate_codes): Moved from genrecog.c. Add lineno
22536 (valid_predicate_name_p): New function, split out from old
22537 genpreds.c:process_define_predicate.
22538 (process_define_predicate): New function, combining code from
22539 old genpreds.c and genrecog.c functions.
22540 (process_rtx): Call it for DEFINE_PREDICATE and
22541 DEFINE_SPECIAL_PREDICATE.
22543 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
22545 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
22546 size of a '%A' memory reference.
22547 (T_DREG, T_QREG): New neon_builtin_type_bits.
22548 (arm_init_neon_builtins): Assert that the load and store operands
22549 are neon_struct_operands.
22550 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
22551 (NEON_ARG_MEMORY): New builtin_arg.
22552 (neon_dereference_pointer): New function.
22553 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
22554 Handle NEON_ARG_MEMORY.
22555 (arm_expand_neon_builtin): Update after above interface changes.
22556 Use NEON_ARG_MEMORY for loads and stores.
22557 * config/arm/predicates.md (neon_struct_operand): New predicate.
22558 * config/arm/iterators.md (V_two_elem): Tweak formatting.
22559 (V_three_elem): Use BLKmode for accesses that have no associated mode.
22560 (V_four_elem): Tweak formatting.
22561 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
22562 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
22563 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
22564 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
22565 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
22566 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
22567 (neon_vst4<mode>): Replace pointer operand with a memory operand.
22568 Use %A in the output template.
22569 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
22570 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
22571 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
22572 the width of the memory access. Remove post-increment.
22573 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
22575 2011-04-12 Nick Clifton <nickc@redhat.com>
22577 * config/v850/v850.c (expand_prologue): Do not use the CALLT
22578 instruction for interrupt handlers if the target is the basic V850
22580 (expand_epilogue): Likewise.
22582 2011-04-12 Jakub Jelinek <jakub@redhat.com>
22584 PR rtl-optimization/48549
22585 * combine.c (propagate_for_debug): Also stop after BB_END of
22586 this_basic_block. Process LAST and just stop processing after it.
22587 (combine_instructions): If last_combined_insn has been deleted,
22588 set last_combined_insn to its PREV_INSN.
22590 2011-04-12 Richard Guenther <rguenther@suse.de>
22592 PR tree-optimization/46076
22593 * gimple.h (struct gimple_statement_call): Add fntype field.
22594 (gimple_call_fntype): Adjust.
22595 (gimple_call_set_fntype): New function.
22596 * gimple.c (gimple_build_call_1): Set the call function type.
22597 * gimplify.c (gimplify_call_expr): Preserve the function
22598 type the frontend used for the call.
22599 (gimplify_modify_expr): Likewise.
22600 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
22602 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
22604 * tree-ssa.c (useless_type_conversion_p): Function pointer
22605 conversions are useless.
22607 2011-04-12 Martin Jambor <mjambor@suse.cz>
22609 * cgraph.h (cgraph_node): Remove function declaration.
22610 (cgraph_create_node): Declare.
22611 (cgraph_get_create_node): Likewise.
22612 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
22613 Updated all callers.
22614 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
22615 the decl does not already exist. Call cgraph_get_create_node instead
22617 (cgraph_get_create_node): New function.
22618 (cgraph_same_body_alias): Update comment.
22619 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
22620 assert it does not return NULL.
22621 (cgraph_update_edges_for_call_stmt): Likewise.
22622 (cgraph_clone_edge): Likewise.
22623 (cgraph_create_virtual_clone): Likewise.
22624 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
22625 instead of cgraph_node.
22626 (cgraph_add_new_function): Call cgraph_create_node or
22627 cgraph_get_create_node instead of cgraph_node.
22628 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
22629 instead of cgraph_node.
22630 (record_eh_tables): Likewise.
22631 (mark_address): Likewise.
22632 (mark_load): Likewise.
22633 (build_cgraph_edges): Call cgraph_get_create_node instead
22635 (rebuild_cgraph_edges): Likewise.
22636 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
22637 instead of cgraph_node.
22638 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
22640 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
22641 cgraph_create_node instead of cgraph_node.
22642 * c-decl.c (finish_function): Call cgraph_get_create_node instead
22644 * lto-cgraph.c (input_node): Likewise.
22645 * lto-streamer-in.c (input_function): Likewise.
22646 * varasm.c (mark_decl_referenced): Likewise.
22647 (assemble_alias): Likewise.
22649 2011-04-12 Martin Jambor <mjambor@suse.cz>
22651 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
22652 instead of cgraph_node and assert it does not return NULL.
22653 * lto-streamer-in.c (lto_read_body): Likewise.
22654 * omp-low.c (new_omp_context): Likewise.
22655 (create_task_copyfn): Likewise.
22656 * tree-emutls.c (lower_emutls_function_body): Likewise.
22657 * matrix-reorg.c (transform_allocation_sites): Likewise.
22659 2011-04-12 Jakub Jelinek <jakub@redhat.com>
22662 * c-typeck.c (build_asm_expr): Error out on attempts to use
22663 void type outputs or inputs for constraints that allow reg or
22664 don't allow memory.
22666 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
22667 Richard Earnshaw <rearnsha@arm.com>
22670 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
22671 to use sign-magnitude offsets. Reject unsupported unaligned
22672 cases. Add detailed description in comments.
22673 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
22674 condition from TARGET_32BIT to TARGET_ARM.
22676 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
22678 * tree.h (struct typed_tree): New.
22679 (struct tree_common): Include it instead of tree_base.
22680 (TREE_TYPE): Update for new location of type field.
22681 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
22682 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
22683 (union tree_node): Add typed field.
22684 * treestruct.def (TS_TYPED): New.
22685 * lto-streamer.c (check_handled_ts_structures): Handle it.
22686 * tree.c (MARK_TS_TYPED): New macro.
22687 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
22689 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
22691 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
22692 (force_nonfallthru): Do not alter the loop nest if no basic block
22695 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
22697 * config/i386/sse.md (VI): New mode iterator.
22698 (SSEMODEI): Remove.
22699 (AVX256MODEI): Ditto.
22700 (AVXMODEF4P): Ditto.
22701 (avxvecpsmode): Ditto.
22702 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
22703 (sse2_andnot<mode>3): New expander.
22704 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
22705 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
22706 (<any_logic:code><mode>3): Use VI mode iterator.
22707 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
22708 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
22709 (*andnottf3): Handle AVX three-operand constraints.
22710 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
22712 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22713 Robert Millan <rmh@gnu.org>
22715 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
22716 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
22717 GNU_USER_DYNAMIC_LINKER64): Define.
22718 (REG_NAME): Don't undefine.
22719 (MD_UNWIND_SUPPORT): Undefine.
22720 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
22721 (REG_NAME): Don't undefine.
22722 (MD_UNWIND_SUPPORT): Undefine.
22723 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
22725 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22727 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
22728 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
22730 2011-04-11 Xinliang David Li <davidxl@google.com>
22732 * value-profile.c (check_ic_target): New function.
22733 (gimple_ic_transform): Sanity check indirect call target.
22734 * gimple-low.c (gimple_check_call_args): Interface change.
22735 (gimple_check_call_matching_types): New function.
22736 * tree-inline.c (tree_can_inline_p): Call new function.
22738 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
22740 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
22741 tree-pretty-print.h & realmpfr.h.
22743 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
22745 PR middle-end/48464
22746 * ira.c (setup_pressure_classes): Fix typo in loop condition.
22747 (setup_allocno_and_important_classes): Ditto.
22749 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22751 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
22752 GNU_USER_DYNAMIC_LINKER.
22753 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
22754 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22755 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
22756 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22757 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22758 GNU_USER_TARGET_OS_CPP_BUILTINS.
22759 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
22760 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22761 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22762 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22763 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
22764 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22765 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22766 GNU_USER_TARGET_OS_CPP_BUILTINS.
22767 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22768 GNU_USER_DYNAMIC_LINKER.
22769 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22770 GNU_USER_TARGET_OS_CPP_BUILTINS.
22771 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
22772 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22773 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
22774 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22775 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
22776 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
22777 GNU_USER_DYNAMIC_LINKER64): Remove.
22778 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
22779 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22780 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22781 GNU_USER_DYNAMIC_LINKER.
22782 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22783 GNU_USER_TARGET_OS_CPP_BUILTINS.
22784 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22785 GNU_USER_TARGET_OS_CPP_BUILTINS.
22786 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
22787 to GNU_USER_TARGET_OS_CPP_BUILTINS.
22788 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22789 GNU_USER_TARGET_OS_CPP_BUILTINS.
22790 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
22791 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
22792 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22793 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
22794 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22795 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22796 GNU_USER_DYNAMIC_LINKER.
22797 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22798 GNU_USER_TARGET_OS_CPP_BUILTINS.
22799 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
22800 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22801 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22802 GNU_USER_DYNAMIC_LINKER.
22803 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22804 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22805 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
22806 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22807 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22808 GNU_USER_DYNAMIC_LINKER.
22809 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
22810 GNU_USER_DYNAMIC_LINKERN32.
22811 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
22812 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
22813 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
22814 GNU_USER_DYNAMIC_LINKER32.
22815 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
22816 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22817 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22818 GNU_USER_DYNAMIC_LINKER.
22819 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22820 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22821 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
22822 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22823 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22824 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
22825 GNU_USER_DYNAMIC_LINKER32.
22826 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22827 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
22828 GNU_USER_DYNAMIC_LINKER.
22829 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
22830 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22831 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22832 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
22833 GNU_USER_DYNAMIC_LINKER64.
22834 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
22835 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22836 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22837 GNU_USER_DYNAMIC_LINKER.
22838 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
22839 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22840 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22841 GNU_USER_DYNAMIC_LINKER.
22842 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
22843 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22844 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22845 GNU_USER_DYNAMIC_LINKER32.
22846 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22847 GNU_USER_DYNAMIC_LINKER64.
22848 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22849 GNU_USER_DYNAMIC_LINKER64.
22850 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
22851 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22852 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
22853 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22854 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22856 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22858 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
22859 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
22860 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
22861 GNU_USER_DYNAMIC_LINKER.
22862 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22863 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
22864 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
22865 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
22866 GNU_USER_DYNAMIC_LINKER64.
22867 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22868 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
22869 GNU_USER_LINK_EMULATION.
22870 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
22871 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
22872 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
22873 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
22874 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
22875 CPP_SPEC, CC1_SPEC): Remove.
22876 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
22877 (GNU_USER_DYNAMIC_LINKER): Define.
22878 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
22879 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
22880 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
22881 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
22882 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
22883 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
22884 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22885 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
22886 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
22887 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22888 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22889 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22890 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22891 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22892 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22893 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22894 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22895 GNU_USER_DYNAMIC_LINKER.
22896 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22897 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22898 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22899 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22900 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22901 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
22902 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22903 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22904 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22905 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22907 2011-04-11 Kai Tietz <ktietz@redhat.com>
22911 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22912 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22914 (ix86_is_msabi_thiscall): Removed.
22915 (ix86_is_type_thiscall): Likewise.
22916 (ix86_get_callcvt): New function.
22917 (ix86_comp_type_attributes): Simplify check.
22918 (ix86_function_regparm): Use ix86_get_callcvt for calling
22919 convention attribute checks.
22920 (ix86_return_pops_args): Likewise.
22921 (ix86_static_chain): Likewise.
22922 (x86_this_parameter): Likewise.
22923 (x86_output_mi_thunk): Likewise.
22924 (ix86_function_type_abi): Optimize check for types without attributes.
22925 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22926 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22927 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22929 (IX86_BASE_CALLCVT): Helper macro.
22930 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22931 Use ix86_get_callcvt for calling convention attribute checks and avoid
22932 symbol-decoration for stdcall in TARGET_RTD case.
22933 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22935 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22938 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
22940 * config/i386/sse.md (VI_128): New mode iterator.
22941 (VI12_128): Rename from SSEMODE12.
22942 (VI14_128): Rename from SSEMODE14.
22943 (VI124_128): New mode iterator.
22944 (VI24_128): Rename from SSEMODE248.
22945 (VI248_128): Rename from SSEMODE248.
22946 (SSEMODE124C8): Remove.
22947 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22948 (*sse2_<plusminus_insn><mode>3): Merge with
22949 *avx_<plusminus_insn><mode>3.
22950 (*mulv8hi3): Merge with *avx_mulv8hi3.
22951 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22952 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22953 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22954 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22955 (ashr<mode>3): Merge with *avx_ashr<mode>3.
22956 (lshr<mode>3): Merge with *avx_lshr<mode>3.
22957 (ashl<mode>3): Merge with *avx_ashl<mode>3.
22958 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22959 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22960 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22961 (*<smaxmin:code>v8hi3): Ditto.
22962 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22963 (*<smaxmin:code>v16qi3): Ditto.
22964 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22965 (*sse2_eq<mode>3): Ditto.
22966 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22967 (*sse2_gt<mode>3): Ditto.
22968 (vcondv2di): Split out of vcond<mode>.
22969 (vconduv2di): Split out of vcondu<mode>.
22971 2011-04-11 Richard Guenther <rguenther@suse.de>
22973 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22974 before calling tree_low_cst.
22976 2011-04-11 Richard Guenther <rguenther@suse.de>
22978 * stor-layout.c (layout_type): Compute all array index size operations
22979 in the original type.
22980 (initialize_sizetypes): Add comment.
22981 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
22983 2011-04-11 Joseph Myers <joseph@codesourcery.com>
22985 * common.opt (Tbss=, Tdata=, Ttext=): New options.
22987 2011-04-11 Martin Jambor <mjambor@suse.cz>
22989 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
22990 of cgraph_node, handle NULL return value.
22991 (cgraph_global_info): Likewise.
22992 (cgraph_rtl_info): Likewise.
22993 * tree-inline.c (estimate_num_insns): Likewise.
22994 * gimplify.c (unshare_body): Likewise.
22995 (unvisit_body): Likewise.
22996 (gimplify_body): Likewise.
22997 * predict.c (optimize_function_for_size_p): Likewise.
22998 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22999 (call_may_clobber_ref_p_1): Likewise.
23000 * varasm.c (function_section_1): Likewise.
23001 (assemble_start_function): Likewise.
23003 2011-04-11 Martin Jambor <mjambor@suse.cz>
23005 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
23007 * final.c (rest_of_clean_state): Likewise.
23008 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
23009 * passes.c (pass_init_dump_file): Likewise.
23010 (execute_all_ipa_transforms): Likewise.
23011 (function_called_by_processed_nodes_p): Likewise.
23012 * predict.c (maybe_hot_frequency_p): Likewise.
23013 (probably_never_executed_bb_p): Likewise.
23014 (compute_function_frequency): Likewise.
23015 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
23016 (unnest_nesting_tree_1): Likewise.
23017 (lower_nested_functions): Likewise.
23018 * tree-optimize.c (execute_fixup_cfg): Likewise.
23019 (tree_rest_of_compilation): Likewise.
23020 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
23021 * tree-sra.c (ipa_early_sra): Likewise.
23022 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23023 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
23024 * ipa.c (record_cdtor_fn): Likewise.
23025 * ipa-inline.c (cgraph_early_inlining): Likewise.
23026 (compute_inline_parameters_for_current): Likewise.
23027 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
23028 * ipa-pure-const.c (local_pure_const): Likewise.
23029 * ipa-split.c (split_function): Likewise.
23030 (execute_split_functions): Likewise.
23031 * cgraphbuild.c (build_cgraph_edges): Likewise.
23032 (rebuild_cgraph_edges): Likewise.
23033 (cgraph_rebuild_references): Likewise.
23034 (remove_cgraph_callee_edges): Likewise.
23035 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
23036 (verify_cgraph_node): Likewise.
23037 (cgraph_analyze_functions): Likewise.
23038 (cgraph_preserve_function_body_p): Likewise.
23039 (save_inline_function_body): Likewise.
23040 (save_inline_function_body): Likewise.
23041 * tree-inline.c (copy_bb): Likewise.
23042 (optimize_inline_calls): Likewise.
23044 2011-04-11 Martin Jambor <mjambor@suse.cz>
23046 PR tree-optimization/48195
23047 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
23048 ipa_check_create_edge_args.
23049 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
23050 ipa_check_create_edge_args.
23051 * ipa-inline.c (inline_generate_summary): Do not call
23052 ipa_check_create_node_params and ipa_check_create_edge_args.
23053 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
23054 ipa_check_create_edge_args.
23056 2011-04-09 Anatoly Sokolov <aesok@post.ru>
23058 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
23060 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23061 * function.c (record_hard_reg_sets): Likewise.
23062 * ira.c (compute_regs_asm_clobbered): Likewise.
23063 * sched-deps.c (sched_analyze_1): Likewise.
23064 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
23066 2011-04-09 Xinliang David Li <davidxl@google.com>
23068 PR tree-optimization/PR48484
23069 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
23070 has_valid_pred lazily
23072 2011-04-09 Duncan Sands <baldrick@free.fr>
23074 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
23076 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
23078 * combine.c (combine_validate_cost): Adjust comments. Set registered
23079 cost of I0 to zero at the end, if any.
23081 2011-04-08 Xinliang David Li <davidxl@google.com>
23083 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
23084 to insane profile data.
23086 2011-04-08 Xinliang David Li <davidxl@google.com>
23088 * ipa-cp.c (ipcp_update_profiling): Correct
23089 negative scale factor due to insane profile data.
23091 2011-04-08 Xinliang David Li <davidxl@google.com>
23093 * final.c (dump_basic_block_info): New function.
23094 (final): Dump basic block.
23095 (final_scan_insn): Remove old dump.
23097 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
23100 * config.gcc (i386-*-freebsd): Disable unwind table generation for
23103 2011-04-08 Michael Matz <matz@suse.de>
23105 PR middle-end/48389
23106 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
23108 (rebuild_jump_labels): Call rebuild_jump_labels_1.
23109 * rtl.h (rebuild_jump_labels_chain): Declare.
23110 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
23111 insns inserted on edges.
23113 2011-04-08 Joseph Myers <joseph@codesourcery.com>
23115 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
23116 * config/arm/arm-arches.def: New.
23117 * config/arm/arm-opts.h: New.
23118 * config/arm/genopt.sh: New.
23119 * config/arm/arm-tables.opt: New (generated).
23120 * config/arm/arm.c (arm_handle_option, arm_target_help,
23121 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
23122 (all_architectures): Get most table contents from arm-arches.def.
23123 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
23124 arm_selected_tune here.
23125 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
23126 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
23127 (march=, mcpu=, mtune=): Use Enum and Var.
23128 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
23129 (arm.o): Update dependencies.
23131 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
23133 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
23135 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
23136 (write_typed_alloc_defns): Likewise.
23137 (main): Calls write_typed_alloc_defns with output_header.
23139 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
23141 PR inline-asm/48435
23142 * ira-color.c (setup_profitable_hard_regs): Add comments.
23143 Don't take prohibited hard regs into account.
23144 (setup_conflict_profitable_regs): Rename to
23145 get_conflict_profitable_regs.
23146 (check_hard_reg_p): Check prohibited hard regs.
23148 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
23150 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
23151 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
23152 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
23154 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23157 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
23158 move from floating point to shift amount register.
23159 (emit_move_sequence): Remove secondary reload support for floating
23160 point to shift amount amount register copies.
23161 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
23162 amount register copies.
23163 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
23164 register, return false if mode isn't a scalar integer mode.
23165 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
23167 2011-04-08 Richard Guenther <rguenther@suse.de>
23169 * gimple.c (gimple_call_flags): Remove kludge.
23171 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23173 * sel-sched.c (sel_region_init): Move call to
23174 sel_setup_region_sched_flags after setup_current_loop_nest.
23176 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
23178 PR rtl-optimization/48272
23179 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
23180 init_insn_reg_pressure_info. Adjust a caller.
23181 * sched-int.h (init_insn_reg_pressure_info): Declare.
23182 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
23183 when sched-pressure is enabled.
23185 2011-04-08 Richard Guenther <rguenther@suse.de>
23187 * gimple.c (gimple_set_modified): Do not queue calls to
23188 MODIFIED_NORETURN_CALLS here ...
23189 * tree-ssa-operands.c (update_stmt_operands): ... but here.
23191 2011-04-08 Richard Guenther <rguenther@suse.de>
23194 * toplev.c (lang_dependent_init): Do not open asm_out_file
23195 in WPA mode, nor perform debug machinery initialization.
23196 (finalize): Do not unlink asm_out_file in WPA mode.
23198 2011-04-08 Richard Guenther <rguenther@suse.de>
23200 * gimple.h (gimple_call_fntype): New function.
23201 (gimple_call_return_type): Use it.
23202 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
23203 * gimple-low.c (gimple_check_call_args): Likewise.
23204 * gimple.c (gimple_call_flags): Likewise.
23205 (gimple_call_arg_flags): Likewise.
23206 (gimple_call_return_flags): Likewise.
23207 * tree-cfg.c (verify_gimple_call): Likewise.
23208 (do_warn_unused_result): Likewise.
23209 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
23210 * value-prof.c (gimple_ic_transform): Fix fndecl check.
23212 2011-04-08 Dmitry Melnik <dm@ispras.ru>
23214 PR rtl-optimization/48235
23215 * sel-sched.c (code_motion_process_successors): Recompute the last
23216 insn in basic block if control flow changed.
23217 (code_motion_path_driver): Ditto. Recompute the first insn as well.
23218 Update condition for ilist_remove.
23220 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23222 PR rtl-optimization/48302
23223 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
23224 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
23225 it to record added preheader blocks.
23226 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
23227 on to sel_add_loop_preheaders.
23228 (sel_region_init): Move call to setup_current_loop_nest after
23231 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23234 * cfgloop.h (loop_has_exit_edges): New helper.
23235 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
23237 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
23238 that have no exit edges.
23240 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
23242 PR rtl-optimization/48442
23243 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
23244 all callers. Adjust assert.
23246 2011-04-08 Jakub Jelinek <jakub@redhat.com>
23248 PR tree-optimization/48377
23249 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
23250 is_packed to true even for types with smaller TYPE_ALIGN than
23253 2011-04-08 Richard Guenther <rguenther@suse.de>
23256 * doc/tm.texi: Re-generate.
23258 2011-04-08 Wei Guozhi <carrot@google.com>
23261 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
23262 * config/arm/arm.c (arm_attr_length_push_multi): New function.
23263 * config/arm/arm.md (*push_multi): Change the length computation to
23266 2011-04-08 Anatoly Sokolov <aesok@post.ru>
23268 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
23269 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
23270 * doc/tm.texi: Regenerate.
23271 * system.h (ASM_OUTPUT_BSS): Poison.
23272 * varasm.c (asm_output_bss): Remove function.
23273 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
23275 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
23276 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
23277 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
23278 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23280 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23282 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23284 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
23286 2011-04-07 Joseph Myers <joseph@codesourcery.com>
23288 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
23291 2011-04-07 Joseph Myers <joseph@codesourcery.com>
23293 * config/m68k/m68k.c (m68k_handle_option): Don't handle
23294 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
23295 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
23297 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23298 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
23299 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
23300 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
23301 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
23302 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
23303 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23304 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
23305 options. Don't map other m68k options manually. Don't handle
23306 old-style options as canonical.
23307 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23308 * doc/install.texi (m68k-*-*): Document binutils version requirement.
23310 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
23312 * basic-block.h (force_nonfallthru): Move to...
23313 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
23314 (force_nonfallthru): ...here.
23315 * cfghooks.c (force_nonfallthru): New function.
23316 * cfgrtl.c (force_nonfallthru): Rename into...
23317 (rtl_force_nonfallthru): ...this.
23318 (commit_one_edge_insertion): Do not set AUX field.
23319 (commit_edge_insertions): Do not discover new basic blocks.
23320 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
23321 (cfg_layout_rtl_cfg_hooks): Likewise.
23322 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
23323 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
23324 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
23326 2011-04-07 Anatoly Sokolov <aesok@post.ru>
23328 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23331 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
23333 * config/i386/sse.md: Update copyright year.
23334 (avxcvtvecmode): Remove.
23335 (sse_movhlps): Merge with *avx_movhlps.
23336 (sse_movlhps): Merge with *avx_movlhps.
23337 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
23338 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
23339 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
23340 (sse_loadhps): Merge with *avx_loadhps.
23341 (sse_storelps): Merge with *avx_storelps.
23342 (sse_loadlps): Merge with *avx_loadlps.
23343 (sse_movss): Merge with *avx_movss.
23344 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
23345 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
23346 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
23347 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
23348 (vec_set<mode>_0): Ditto.
23349 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
23350 (sse4_1_insertps): Merge with *avx_insertps.
23351 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
23352 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
23353 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
23354 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
23355 (sse2_storehpd): Merge with *avx_storehpd.
23356 (sse2_loadhpd): Merge with *avx_loadhpd.
23357 (sse2_loadlpd): Merge with *avx_loadlpd.
23358 (sse2_movsd): Merge with *avx_movsd.
23359 (*vec_concatv2df): Merge with *vec_concatv2df.
23361 2011-04-07 Jakub Jelinek <jakub@redhat.com>
23364 * combine.c (combine_instructions): Add last_combined_insn,
23365 update it if insn is after it, pass it to all try_combine calls.
23366 (try_combine): Add last_combined_insn parameter, pass it instead of
23367 i3 to propagate_for_debug.
23369 2011-04-07 Nick Clifton <nickc@redhat.com>
23371 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
23372 to handle MDR <-> data register transfers.
23373 (movhi_internal): Likewise.
23375 2011-04-07 Alan Modra <amodra@gmail.com>
23377 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
23378 previous stack info.
23380 2011-04-07 Tom de Vries <tom@codesourcery.com>
23383 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
23384 flow_find_cross_jump. Swap variables to implement backward replacement.
23385 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
23387 2011-04-07 Tom de Vries <tom@codesourcery.com>
23390 * cfgcleanup.c (walk_to_nondebug_insn): New function.
23391 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
23393 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
23394 src1 or src2. Redirect edges to the last basic block. Update
23395 frequency and count on multiple basic blocks in case of fallthru.
23397 2011-04-07 Tom de Vries <tom@codesourcery.com>
23400 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
23402 (old_insns_match_p): Change return type. Replace return false/true
23403 with return dir_none/dir_both. Use can_replace_by.
23404 (flow_find_cross_jump): Add dir_p parameter. Init replacement
23405 direction from dir_p. Register replacement direction in dir, last_dir
23406 and afterlast_dir. Handle new return type of old_insns_match_p using
23407 merge_dir. Return replacement direction in dir_p.
23408 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
23409 return type of old_insns_match_p.
23410 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
23411 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
23412 flow_find_cross_jump.
23413 * basic-block.h (enum replace_direction): New type.
23414 (flow_find_cross_jump): Add parameter to declaration.
23416 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
23418 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
23419 (AVXMODEDCVTPS2DQ): Ditto.
23420 (VEC_FLOAT_MODE): Ditto.
23421 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
23422 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23423 (<any_logic:code><mode>3): Use VF mode iterator.
23424 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
23425 Use VF mode iterator.
23426 (copysign<mode>3): Use VF mode iterator.
23427 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
23428 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23429 (*<any_logic:code><MODEF:mode>3): Merge with
23430 *avx_<any_logic:code><MODEF:mode>3.
23431 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
23432 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
23433 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
23434 (avx_cvtdq2ps<avxmodesuffix>): Remove.
23435 (sse2_cvtdq2ps): Use %v modifier.
23436 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
23437 (avx_cvtps2dq<avxmodesuffix>): Remove.
23438 (sse2_cvtps2dq): Use %v modifier.
23439 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
23440 (avx_cvttps2dq<avxmodesuffix>): Remove.
23441 (sse2_cvttps2dq): Use %v modifier.
23442 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
23443 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
23444 (sse2_cvtsd2siq): Fix insn template.
23445 (sse2_cvtsd2siq_2): Ditto.
23446 (sse2_cvttsd2siq): Ditto.
23447 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
23448 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
23450 2011-04-06 Joseph Myers <joseph@codesourcery.com>
23452 * gcov-io.c: Use GCC Runtime Library Exception.
23454 2011-04-06 Jakub Jelinek <jakub@redhat.com>
23457 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
23458 as base_reg whatever register reg has been eliminated to, instead
23459 of hardcoding STACK_POINTER_REGNUM.
23461 2011-04-06 Joseph Myers <joseph@codesourcery.com>
23463 * doc/tm.texi.in: Document C target hooks as separate from general
23465 * doc/tm.texi: Regenerate.
23466 * genhooks.c (struct hook_desc): Add docname field.
23467 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
23469 (hook_array): Include c-target.def.
23470 (emit_documentation): Use docname field in output.
23471 (emit_init_macros): Take docname argument. Only emit definitions
23472 for hooks matching docname.
23473 (main): Expect additional arguments in all cases. Pass argument
23474 to emit_init_macros.
23475 * target.def: Move initial macro definitions and comments to
23476 target-hooks-macros.h.
23477 (gcc_targetcm): Move to c-family/c-target.def.
23478 * target.h (targetcm): Move declaration to c-family/c-target.h.
23479 * targhooks.c (default_handle_c_option): Move to
23481 * targhooks.h (default_handle_c_option): Move declaration to
23482 c-family/c-common.h.
23483 * target-hooks-macros.h: New file.
23484 * config.gcc (target_has_targetcm): Define and use to add to
23485 c_target_objs and cxx_target_objs.
23486 * config/default-c.c: New file.
23487 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
23488 of target.h and target-def.h.
23489 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
23490 (darwin_objc_construct_string, darwin_cfstring_ref_p,
23491 darwin_check_cfstring_format_arg): Make static.
23492 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23493 TARGET_STRING_OBJECT_REF_TYPE_P,
23494 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
23495 * config/darwin-protos.h (darwin_objc_construct_string,
23496 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
23498 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23499 TARGET_STRING_OBJECT_REF_TYPE_P,
23500 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
23501 * config/t-darwin (darwin-c.o): Update dependencies.
23502 * system.h (TARGET_HAS_TARGETCM): Poison.
23503 * Makefile.in (TARGET_H): Update.
23504 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
23505 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
23506 (default-c.o): New target.
23507 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
23508 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
23509 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
23511 (build/genhooks.o): Update dependencies.
23513 2011-04-06 Richard Guenther <rguenther@suse.de>
23515 * ipa-inline.c (enum inlining_mode): Remove.
23516 (cgraph_flatten): Use some other token.
23517 (cgraph_edge_early_inlinable_p): New function, split out from ...
23518 (cgraph_perform_always_inlining): New function, split out from ...
23519 (cgraph_decide_inlining_incrementally): ... here.
23520 (cgraph_mark_inline_edge): Adjust.
23521 (cgraph_early_inlining): Re-structure.
23522 (pass_early_inline): Require SSA form.
23524 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
23525 Julian Brown <julian@codesourcery.com>
23526 Mark Shinwell <shinwell@codesourcery.com>
23528 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
23529 LO_REGS only for Thumb-1.
23530 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
23531 be used in short instructions when optimising for size on Thumb-2.
23533 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
23535 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
23536 associated with user returns to be preserved.
23538 2011-04-06 Tristan Gingold <gingold@adacore.com>
23540 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
23541 symbol_queue_size, DBXOUT_DECR_NESTING,
23542 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
23543 if XCOFF_DEBUGGING_INFO.
23545 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
23547 * config/i386/i386.md (attribute isa): New.
23548 (attribute enabled): New.
23549 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
23550 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
23551 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
23552 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
23553 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
23554 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23555 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
23556 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
23558 * config/i386/sse.md (VF): New mode iterator.
23562 (SSEMODEF4): Remove.
23563 (attribute sse): Handle V8SF and V4DF modes.
23564 (<absneg:code><mode>2): Use VF mode iterator.
23565 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
23567 (<plusminus_insn><mode>3): Use VF mode iterator.
23568 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
23569 Use VF mode iterator.
23570 (<sse>_vm<plusminus_insn><mode>3): Merge with
23571 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
23572 (mul<mode>3): Use VF mode iterator.
23573 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
23574 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
23576 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
23577 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
23578 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
23579 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
23581 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
23582 Use VF1 mode iterator.
23583 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
23584 (sqrt<VF2:mode>2): New expander.
23585 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
23586 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
23587 and sqrtv2df2. Use VF mode iterator.
23588 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
23590 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
23591 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
23592 Use VF1 mode iterator.
23593 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
23594 (<smaxmin:code><mode>3): Use VF mode iterator.
23595 (*<smaxmin:code><mode>3_finite): Merge with
23596 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
23597 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23598 (<sse>_vm<smaxmin:code><mode>2): Merge with
23599 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
23600 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
23602 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
23604 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
23605 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
23606 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
23607 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
23608 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
23610 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
23611 Use VF_128 mode iterator.
23612 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
23614 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
23615 VF_128 mode iterator.
23616 (vcond<mode>): Use VF mode iterator.
23617 * config/i386/predicates.md (sse_comparison_operator): Merge with
23618 avx_comparison_float_operator. Do not declare as special_predicate.
23619 * config/i386/i386.c (struct builtin_description): Update for renamed
23621 (ix86_expand_args_builtin): Ditto.
23622 (ix86_expand_sse_compare_mask): Ditto.
23624 2011-04-06 Richard Guenther <rguenther@suse.de>
23626 * tree-inline.c (estimate_num_insns): For calls simply account
23627 for all passed arguments and a used return value.
23629 2011-04-06 Richard Guenther <rguenther@suse.de>
23631 PR tree-optimization/47663
23632 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
23633 call_stmt_time fields.
23634 (cgraph_edge_inlinable_p): Declare.
23635 (cgraph_edge_recursive_p): New inline function.
23636 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
23637 (cgraph_clone_edge): Copy it.
23638 * ipa-inline.c (cgraph_estimate_edge_time): New function.
23639 Account for call stmt time.
23640 (cgraph_estimate_time_after_inlining): Take edge argument.
23641 (cgraph_estimate_edge_growth): Account call stmt size.
23642 (cgraph_estimate_size_after_inlining): Take edge argument.
23643 (cgraph_mark_inline_edge): Adjust.
23644 (cgraph_check_inline_limits): Likewise.
23645 (cgraph_recursive_inlining_p): Remove.
23646 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
23647 (cgraph_decide_recursive_inlining): Take edge argument and
23649 (cgraph_decide_inlining_of_small_functions): Do not avoid
23650 diags for recursive inlining here.
23651 (cgraph_flatten): Adjust.
23652 (cgraph_decide_inlining_incrementally): Likewise.
23653 (estimate_function_body_sizes): Remove call cost handling.
23654 (compute_inline_parameters): Initialize caller edge call costs.
23655 (cgraph_estimate_edge_growth): New function.
23656 (cgraph_estimate_growth): Use it.
23657 (cgraph_edge_badness): Likewise.
23658 (cgraph_check_inline_limits): Take an edge argument.
23659 (cgraph_decide_inlining_of_small_functions): Adjust.
23660 (cgraph_decide_inlining): Likewise.
23661 * tree-inline.c (estimate_num_insns): Only account for call
23662 return value if it is used.
23663 (expand_call_inline): Avoid diagnostics on recursive inline
23665 * lto-cgraph.c (lto_output_edge): Output edge call costs.
23666 (input_edge): Input edge call costs.
23668 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23670 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
23672 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
23674 * doc/invoke.texi (Spec Files): Fix typo.
23676 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
23678 * profile.c (branch_prob): Move declaration of local variable. Remove
23679 obsolete ??? comment. Expand the location explicitly instead of using
23680 the LOCATION_FILE and LOCATION_LINE macros.
23682 2011-04-06 Wei Guozhi <carrot@google.com>
23685 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
23686 (arm_cond_branch): Likewise.
23687 (arm_cond_branch_reversed): Likewise.
23688 (arm_jump): Likewise.
23689 (push_multi): Likewise.
23690 * config/arm/constraints.md (Py): New constraint.
23692 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23695 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
23697 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
23698 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
23699 #ifdef DBX_DEBUGGING_INFO.
23701 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
23704 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
23705 if old and new states differ.
23707 2011-04-05 Joseph Myers <joseph@codesourcery.com>
23709 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
23710 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
23711 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23712 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
23713 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
23714 mcfv4e): Use Alias.
23715 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
23716 ColdFire options to -mcpu= options.
23718 2011-04-05 Jeff Law <law@redhat.com>
23720 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
23721 check if BB is a successor of LOOP->header and return
23722 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
23724 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
23726 * cprop.c (struct reg_use): Remove.
23727 (reg_use_table): Make an array of RTX.
23728 (find_used_regs, constprop_register, local_cprop_pass,
23729 bypass_block): Simplify users of reg_use_table.
23730 (cprop_insn): Likewise. Iterate if copy propagation succeeded
23731 on one of the uses found by find_used_regs.
23733 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23736 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
23739 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23741 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
23743 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
23745 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
23747 PR middle-end/48441
23748 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
23750 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23752 * combine.c: Include obstack.h.
23753 (struct insn_link): Define.
23754 (uid_log_links): Adjust type.
23755 (FOR_EACH_LOG_LINK): New macro.
23756 (insn_link_obstack): Declare.
23757 (alloc_insn_link): Define.
23758 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
23759 type of link variables.
23760 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
23761 (try_combine, record_promoted_values, distribute_notes): Likewise.
23762 (distribute_links): Likewise. Tweak prototype.
23763 (clear_log_links): Delete.
23764 (adjust_for_new_dest): Call alloc_insn_link.
23765 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
23767 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23769 * gcse.c (modify_mem_list): Convert to an array of VECs.
23770 (canon_modify_mem_list, compute_transp): Tweak formatting.
23771 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
23772 (load_killed_in_block_p): Likewise.
23773 (record_last_mem_set_info): Likewise.
23774 (clear_modify_mem_tables): Likewise.
23776 2011-04-05 Tom de Vries <tom@codesourcery.com>
23778 PR middle-end/48461
23779 * function.c (emit_use_return_register_into_block): Only define if
23782 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
23784 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
23786 2011-04-05 Joseph Myers <joseph@codesourcery.com>
23788 * config/rx/rx-opts.h: New.
23789 * config/rx/rx.c (rx_cpu_type): Remove.
23790 (rx_handle_option): Don't assert that global structures are in
23791 use. Access variables via opts pointer. Defer most handling of
23792 OPT_mint_register_. Use error_at.
23793 (rx_option_override): Handle deferred OPT_mint_register_ here.
23794 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
23795 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
23796 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
23797 (rx_cpu_types): New Enum and EnumValue entries.
23798 (mint-register=): Use Defer and use Var accordingly.
23800 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23802 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
23803 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
23804 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
23806 (debug_free_queue, debug_nesting, symbol_queue_index):
23808 * dbxout.c: ...to here. Make static.
23810 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
23812 * gcse.c (modify_pair): Define. Define a VEC of it.
23813 (canon_modify_mem_list): Convert to an array of VECs.
23814 (free_insn_expr_list_list): Delete.
23815 (clear_modify_mem_tables): Call VEC_free instead.
23816 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
23817 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
23818 (canon_list_insert, compute_transp): Likewise.
23820 2011-04-05 Tom de Vries <tom@codesourcery.com>
23823 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
23826 2011-04-05 Tom de Vries <tom@codesourcery.com>
23829 * function.c (emit_use_return_register_into_block): New function.
23830 (thread_prologue_and_epilogue_insns): Use
23831 emit_use_return_register_into_block.
23833 2011-04-05 Tom de Vries <tom@codesourcery.com>
23836 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
23839 2011-04-05 Tom de Vries <tom@codesourcery.com>
23841 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
23843 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
23845 * config/arm/arm.md (define_constants for unspec): Replace with
23847 (define_constants for unspecv): Replace with define_c_enum.
23848 * config/arm/neon.md (define_constants for unspec): Replace with
23851 2011-04-04 Richard Henderson <rth@redhat.com>
23854 * dwarf2out.c (output_line_info): Always emit line info from
23855 at least one section.
23856 (dwarf2out_init): Create text_section_line_info here ...
23857 (set_cur_line_info_table): ... not here.
23859 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
23862 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
23865 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
23867 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
23869 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
23870 (expr_equiv_p): Remove.
23871 (insert_set_in_table): Look at <dest, src> pair instead of expr.
23872 (hash_scan_set): Update call to insert_set_in_table.
23873 (dump_hash_table): Dump <dest, src> pair.
23874 (lookup_set): Simplify. Lookup <dest, src> pair.
23875 (compute_transp): Remove, fold heavily simplified code into...
23876 (compute_local_properties): ...here. Expect COMP and TRANSP
23878 (find_avail_set): Take set directly from struct expr.
23879 (find_bypass-set): Likewise.
23880 (bypass_block): Likewise.
23881 (cprop_insn): Likewise. Remove redundant INSN_P test.
23883 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
23884 checks on form of COND from find_implicit_sets to here.
23885 (find_implicit_sets): Cleanup control flow. Split critical edges
23886 if it exposes implicit sets. Allocate/resize implicit_sets as
23888 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23889 changed something. Run df_analyze after find_implicit_sets if any
23890 edges were split. Do not allocate implicit_sets here.
23892 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23893 (gcse_obstack): Renamed to cprop_obstack.
23894 (GNEW, GNEWVEC, GNEWVAR): Remove.
23896 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23897 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23898 (gcse_alloc): Likewise, and rename to cprop_alloc.
23899 (alloc_gcse_men, free_gcse_mem): Remove.
23900 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23901 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23902 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23904 * cprop.c (oprs_not_set_p): Remove.
23905 (mark_set, mark_clobber): Remove.
23906 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23907 (reg_not_set_p): New function.
23908 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23909 (cprop_insn): Likewise.
23910 (cprop_jump): Use FOR_EACH_EDGE.
23912 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
23915 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23916 (rank_for_schedule): Use scheduled_insns vector instead of
23917 last_scheduled_insn.
23918 (ok_for_early_queue_removal): Likewise.
23919 (queue_to_ready): Search forward in nonscheduled_insns_begin if
23921 (choose_ready): Likewise.
23922 (commit_schedule): Use VEC_iterate.
23923 (schedule_block): Initialize nonscheduled_insns_begin. If we have
23924 a dbg_cnt, use it and ensure the first insn is in the ready list.
23925 (haifa_sched_init): Allocate scheduled_insns.
23926 (sched_extend_ready_list): Don't allocate it; reserve space.
23927 (haifa_sched_finish): Free it.
23929 2011-04-04 Joseph Myers <joseph@codesourcery.com>
23931 * optc-gen.awk: Always remove type from Variable entry before
23932 recording in var_seen.
23934 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
23936 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23937 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23938 call to tidy_fallthru_edges.
23940 2011-04-04 Joseph Myers <joseph@codesourcery.com>
23942 * doc/options.texi (ToLower): Document.
23943 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23944 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23945 * opts.h (cl_option): Add cl_tolower field.
23946 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23947 arguments with lowercase strings.
23948 * config/rx/rx.opt (mcpu=): Add ToLower.
23949 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23952 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
23954 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23956 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
23958 * config/vax/vax.c: Include reload.h.
23960 2011-04-04 Anatoly Sokolov <aesok@post.ru>
23962 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23963 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23964 (sparc_preferred_reload_class): New function.
23966 2011-04-04 Jakub Jelinek <jakub@redhat.com>
23969 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23970 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23972 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
23974 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23975 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23977 2011-04-03 Anatoly Sokolov <aesok@post.ru>
23979 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
23980 (ASM_OUTPUT_ALIGNED_BSS): Define.
23982 2011-04-03 Michael Matz <matz@suse.de>
23984 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
23985 and next_slot members.
23986 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
23987 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23988 (lto_streamer_cache_append): Declare.
23989 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
23990 unsigned index, remove offset parameter, ensure that we append
23991 or update existing entries.
23992 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
23993 parameter, update next_slot for append.
23994 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
23996 (lto_streamer_cache_insert_at): Likewise.
23997 (lto_streamer_cache_append): New function.
23998 (lto_streamer_cache_lookup): Use unsigned index.
23999 (lto_streamer_cache_get): Likewise.
24000 (lto_record_common_node): Don't test tree_node_can_be_shared.
24001 (preload_common_node): Adjust call to lto_streamer_cache_insert.
24002 (lto_streamer_cache_delete): Don't free offsets member.
24003 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
24004 (lto_output_string_with_length): Use lto_output_data_stream.
24005 (lto_output_tree_header): Remove ix parameter, don't write it.
24006 (lto_output_builtin_tree): Likewise.
24007 (lto_write_tree): Adjust callers to above, don't track and write
24008 offset, write unsigned index.
24009 (output_unreferenced_globals): Don't emit all global vars.
24010 (write_global_references): Use unsigned indices.
24011 (lto_output_decl_state_refs): Likewise.
24012 (write_symbol): Likewise.
24013 * lto-streamer-in.c (lto_input_chain): Move earlier.
24014 (input_function): Use unsigned index.
24015 (input_alias_pairs): Don't read and then ignore all global vars.
24016 (lto_materialize_tree): Remove ix_p parameter, don't read index,
24017 don't pass it back, use lto_streamer_cache_append.
24018 (lto_register_var_decl_in_symtab): Use unsigned index.
24019 (lto_register_function_decl_in_symtab): Likewise.
24020 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
24022 (lto_get_builtin_tree): Don't read index, use
24023 lto_streamer_cache_append.
24024 (lto_read_tree): Adjust call to lto_materialize_tree.
24026 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
24027 don't use function calls in arguments to MIN.
24029 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
24032 * gimple.c (gimple_type_leader_entry): Mark deletable.
24034 2011-04-03 Alan Modra <amodra@gmail.com>
24036 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
24038 2011-04-03 Michael Matz <matz@suse.de>
24040 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
24042 * tree.h (tree_decl_non_common.vindex): Adjust comment.
24044 2011-04-03 Michael Matz <matz@suse.de>
24046 * cgraphbuild.c (record_reference): Canonicalize constructor values.
24047 * gimple-fold.c (canonicalize_constructor_val): Accept being called
24048 without function context.
24049 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
24050 current_function_decl and cfun.
24052 2011-04-03 Michael Matz <matz@suse.de>
24054 * tree.c (decl_init_priority_insert): Don't create entry for
24056 (decl_fini_priority_insert): Ditto.
24057 (fields_compatible_p, find_compatible_field): Remove.
24058 * tree.h (fields_compatible_p, find_compatible_field): Remove.
24059 * gimple.c (gimple_compare_field_offset): Adjust block comment.
24061 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
24063 * combine.c (try_combine): Remove useless local variable.
24065 2011-04-03 Richard Guenther <rguenther@suse.de>
24066 Ira Rosen <ira.rosen@linaro.org>
24068 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
24069 non-variable offsets and compare the remaining bases of the two
24070 accesses instead of looking for exact same data-ref.
24072 2011-04-02 Kai Tietz <ktietz@redhat.com>
24075 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
24077 * i386.c (ix86_is_msabi_thiscall): New helper function.
24078 (ix86_is_type_thiscall): New helper function.
24079 (ix86_comp_type_attributes): Handle thiscall for method-functions
24081 (init_cumulative_args): Likewise.
24082 (find_drap_reg): Likewise.
24083 (ix86_static_chain): Likewise.
24084 (x86_this_parameter): Likewise.
24085 (x86_output_mi_thunk): Likewise.
24087 2011-04-01 Olivier Hainque <hainque@adacore.com>
24088 Nicolas Setton <setton@adacore.com>
24089 Eric Botcazou <ebotcazou@adacore.com>
24091 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
24092 (add_gnat_descriptive_type_attribute): New function.
24093 (gen_array_type_die): Call it.
24094 (gen_enumeration_type_die): Likewise.
24095 (gen_struct_or_union_type_die): Likewise.
24096 (modified_type_die): Likewise.
24097 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
24098 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
24099 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
24101 2011-04-01 Jakub Jelinek <jakub@redhat.com>
24104 * dwarf2out.c (resolve_addr): Don't call force_decl_die
24105 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
24108 2011-03-17 Richard Guenther <rguenther@suse.de>
24111 * lto-cgraph.c (input_overwrite_node): Clear the abstract
24112 origin for decls in other ltrans units.
24113 (input_varpool_node): Likewise.
24115 2011-04-01 Jakub Jelinek <jakub@redhat.com>
24117 PR middle-end/48335
24118 * expr.c (expand_assignment): Handle all possibilities
24119 if TO_RTX is CONCAT.
24120 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
24121 (store_split_bit_field): If SUBREG_REG (op0) or
24122 op0 itself has smaller mode than word, return it
24123 for offset 0 and const0_rtx for out-of-bounds stores.
24124 If word is const0_rtx, skip it.
24126 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
24128 * config/h8300/h8300.c (print_operand_address): Rename to...
24129 (h8300_print_operand_address): ...this. Make static. Adjust comments.
24130 Call h8300_print_operand and h8300_print_operand_address instead of
24131 print_operand and print_operand_address. Declare.
24132 (print_operand): Renake to...
24133 (h8300_print_operand): ...this. Make static. Adjust comments.
24134 Call h8300_print_operand instead of print_operand. Declare.
24135 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
24136 (h8300_register_move_cost): Likewise.
24137 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
24138 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
24139 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
24140 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
24141 * config/h8300/h8300-protos.h (print_operand): Delete.
24142 (print_operand_address): Delete.
24144 2011-04-01 Richard Henderson <rth@redhat.com>
24147 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
24148 in strict mode before dwarf4. Re-order tests to early out
24149 before switching sections.
24151 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
24153 * config/h8300/constraints.md: New file.
24154 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
24155 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
24156 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
24157 * config/h8300/predicates.md (bit_operand): Likewise.
24158 (incdec_operand): Use satisfies_constraint_M and
24159 satisfies_constraint_O. Don't use C code block.
24160 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
24161 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
24162 (compute_mov_length): Use satisfies_constraint_G.
24163 (fix_bit_operand): Use satisfies_constraint_U.
24164 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
24165 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
24166 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
24167 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
24168 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
24169 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
24170 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24171 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
24172 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
24173 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
24174 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
24175 (EXTRA_MEMORY_CONSTRAINT): Delete.
24177 2011-04-01 Andrew Pinski <pinskia@gmail.com>
24178 Michael Meissner <meissner@linux.vnet.ibm.com>
24181 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
24182 operands, as per the specifications.
24184 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
24185 (vec_extract_evenv4sf): Ditto.
24186 (vec_extract_evenv8hi): Ditto.
24187 (vec_extract_evenv16qi): Ditto.
24188 (vec_extract_oddv4si): Ditto.
24190 2011-03-31 Mark Wielaard <mjw@redhat.com>
24192 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
24193 high_pc attribute if the CU has no associated code. Only output
24194 DW_AT_entry_pc for CU if not generating strict dwarf and
24197 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
24199 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
24200 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
24202 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
24203 * final.c (final_start_function): Call the new function rather
24204 than using a NULL argument for dwarf2out_frame_debug.
24206 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
24207 that contains the prologue.
24209 * haifa-sched.c (queue_insn): New arg REASON. All callers
24210 changed. Print it in debugging output.
24212 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
24214 * sched-ebb.c (begin_schedule_ready): Remove second argument.
24215 Split most of the code into...
24216 (begin_move_insn): ... here. New function.
24217 (ebb_sched_info): Add a pointer to it.
24218 * haifa-sched.c (scheduled_insns): New static variable.
24219 (sched_extend_ready_list): Allocate it.
24220 (schedule_block): Use it to record the order of scheduled insns.
24221 Perform RTL changes to move insns only after all scheduling
24222 decisions have been made.
24223 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
24224 begin_move_insn field.
24225 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
24226 * sched-int.h (struct haifa_sched_info): Remove second argument
24227 from begin_schedule_ready hook. Add new member begin_move_insn.
24228 * sched-rgn.c (begin_schedule_ready): Remove second argument.
24229 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
24231 * haifa-sched.c (prune_ready_list): New function, broken out of
24233 (schedule_block): Use it.
24235 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24237 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
24239 2011-04-01 Kai Tietz <ktietz@redhat.com>
24241 * config.gcc (*-*-mingw*): Allow as option the
24242 posix threading model.
24243 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
24244 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
24246 (CPP_SPEC): Add pthread/no-pthread handling.
24247 (LIB_SPEC): Likewise.
24248 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
24249 (LIB_SPEC): Likewise.
24250 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
24251 flag to pass -pthread option for shared libgcc build.
24252 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
24253 for shared libgcc build.
24254 * config/i386/t-mingw-pthread: New file.
24255 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
24256 New define to enable use of library pthread by default.
24257 * config/i386/mingw.opt (pthread): New driver option.
24258 (no-pthread): New driver option.
24259 * config/i386/cygming.opt: Make sure trailing empty line is retained.
24260 * config/i386/mingw-w64.opt: Likewise.
24262 2011-04-01 Gary Funck <gary@intrepid.com>
24264 * c-decl.c (grokdeclarator): Fix formatting.
24266 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
24268 * expr.c (emit_block_move_via_movmem): Use n_generator_args
24269 instead of n_operands.
24270 (set_storage_via_setmem): Likewise.
24271 * optabs.c (maybe_gen_insn): Likewise.
24272 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
24273 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
24274 (mips_expand_builtin_direct): Likewise.
24275 * config/spu/spu.c (expand_builtin_args): Likewise.
24277 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
24279 * recog.h (insn_data_d): Add n_generator_args.
24280 * genoutput.c (data): Likewise.
24281 (output_insn_data): Print it.
24282 (max_opno, num_dups): Delete.
24283 (scan_operands): Just fill in "d->operand[...]".
24284 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
24286 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
24288 * gensupport.h (pattern_stats): New structure.
24289 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
24290 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
24291 (max_operand_1, max_operand_vec): Delete.
24292 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
24294 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
24296 * emit-rtl.c (emit_pattern_after_setloc): New function.
24297 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
24298 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
24299 (emit_pattern_after): New function.
24300 (emit_insn_after, emit_jump_insn_after): Call it.
24301 (emit_call_insn_after, emit_debug_insn_after): Likewise.
24302 (emit_pattern_before_setloc): New function.
24303 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
24304 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
24306 (emit_pattern_before): New function.
24307 (emit_insn_before, emit_jump_insn_before): Call it.
24308 (emit_call_insn_before, emit_debug_insn_before): Likewise.
24310 2011-03-31 Richard Henderson <rth@redhat.com>
24312 * dwarf2out.c (dw_separate_line_info_ref): Remove.
24313 (dw_separate_line_info_entry): Remove.
24314 (enum dw_line_info_opcode): New.
24315 (dw_line_info_entry): Use it.
24316 (dw_line_info_table, dw_line_info_table_p): New.
24317 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
24318 (line_info_table, line_info_label_num): Remove.
24319 (line_info_table_in_use): Remove.
24320 (separate_line_info_table): Remove.
24321 (separate_line_info_table_allocated): Remove.
24322 (separate_line_info_table_in_use): Remove.
24323 (LINE_INFO_TABLE_INCREMENT): Remove.
24324 (line_info_label_num): New.
24325 (cur_line_info_table): New.
24326 (text_section_line_info, cold_text_section_line_info): New.
24327 (separate_line_info): New.
24328 (SEPARATE_LINE_CODE_LABEL): Remove.
24329 (print_dwarf_line_table): Remove.
24330 (debug_dwarf): Don't dump it.
24331 (output_one_line_info_table): New.
24332 (output_line_info): Use it.
24333 (new_line_info_table): New.
24334 (set_cur_line_info_table): New.
24335 (dwarf2out_switch_text_section): Use it.
24336 (dwarf2out_begin_function): Likewise.
24337 (push_dw_line_info_entry): New.
24338 (dwarf2out_source_line): Rewrite for new line info tables.
24339 (dwarf2out_init): Remove dead initailizations.
24341 2011-03-31 Joseph Myers <joseph@codesourcery.com>
24343 * opts.h (cl_option): Add comments to fields. Add bit-fields for
24345 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
24346 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
24347 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
24348 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
24349 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
24350 * opt-functions.awk (flag_init, switch_bit_fields): New.
24351 (switch_flags): Don't handle flags moved to bit-fields. Don't
24352 generate CL_MISSING_OK or CL_SAVE.
24353 * optc-gen.awk: Update to generate bit-field output as well as
24355 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
24356 bit-field instead of CL_REJECT_DRIVER flag.
24357 * opts-common.c (generate_canonical_option,
24358 decode_cmdline_option): Use bit-fields instead of CL_* flags.
24359 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
24360 instead of CL_REJECT_NEGATIVE flag.
24361 * toplev.c (print_switch_values): Use cl_report bit-field instead
24364 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
24366 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
24367 a zero minimum index only if it is redundant.
24369 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
24371 PR rtl-optimization/48381
24372 * ira-color.c (assign_hard_reg): Use hard reg set intersection
24373 instead of ira_class_hard_reg_index for calculating conflicting
24376 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
24378 * cprop.c: Clean up hash table building.
24379 (reg_avail_info): Remove.
24380 (oprs_available_p): Remove.
24381 (record_last_reg_set_info): Remove.
24382 (record_last_set_info): Remove.
24383 (reg_available_p): New function.
24384 (gcse_constant_p): Do not treat unfolded conditions as constants.
24385 (make_set_regs_unavailable): New function.
24386 (hash_scan_set): Simplify with new reg_available_p.
24387 (compute_hash_table_work): Traverse insns stream only once.
24388 Do not compute reg_avail_info. Traverse insns in reverse order.
24389 Record implicit sets after recording explicit sets from the block.
24391 2011-03-31 Michael Matz <matz@suse.de>
24393 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
24395 2011-03-31 Anatoly Sokolov <aesok@post.ru>
24397 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
24398 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
24399 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24400 (h8300_mode_dependent_address_p): New function.
24401 (h8300_get_index): Make static.
24403 2011-03-31 Jeff Law <law@redhat.com>
24405 * reload1.c (elimination_effects): Fix typo in recent change.
24407 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
24408 typo potentially leading to null pointer dereference.
24410 * caller-save.c (new_saved_hard_reg): Eliminate return value.
24411 (setup_save_areas): Corresponding changes to avoid useless
24414 * jump.c (reversed_comparison_code_parts): Avoid successive return
24415 statements when REVERSE_CONDITION is defined.
24417 * expr.c (expand_assignment): Avoid useless assignments.
24418 (expand_expr_real_1): Likewise.
24419 (expand_expr_real_2): Avoid useless statements.
24421 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
24423 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
24425 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
24428 * stmt.c (expand_expr_stmt): Avoid useless assignment.
24430 2011-03-31 Joseph Myers <joseph@codesourcery.com>
24433 * doc/tm.texi.in (TARGET_VERSION): Remove.
24434 * doc/tm.texi: Regenerate.
24435 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
24436 * collect2.c (main): Don't use TARGET_VERSION.
24437 * mips-tdump.c (main): Don't use TARGET_VERSION.
24438 * mips-tfile.c (main): Don't use TARGET_VERSION.
24439 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
24440 * config/rs6000/vxworksae.h: Remove.
24441 * config/alpha/alpha.h (TARGET_VERSION): Remove.
24442 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
24443 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
24444 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
24445 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24446 * config/arm/arm.h (TARGET_VERSION): Remove.
24447 * config/arm/coff.h (TARGET_VERSION): Remove.
24448 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
24449 * config/arm/elf.h (TARGET_VERSION): Remove.
24450 * config/arm/freebsd.h (TARGET_VERSION): Remove.
24451 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
24452 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
24453 * config/arm/pe.h (TARGET_VERSION): Remove.
24454 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
24455 * config/arm/semi.h (TARGET_VERSION): Remove.
24456 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
24457 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
24458 * config/arm/vxworks.h (TARGET_VERSION): Remove.
24459 * config/avr/avr.h (TARGET_VERSION): Remove.
24460 * config/bfin/bfin.h (TARGET_VERSION): Remove.
24461 * config/fr30/fr30.h (TARGET_VERSION): Remove.
24462 * config/frv/frv.h (TARGET_VERSION): Remove.
24463 * config/h8300/h8300.h (TARGET_VERSION): Remove.
24464 * config/i386/cygwin.h (TARGET_VERSION): Remove.
24465 * config/i386/darwin.h (TARGET_VERSION): Remove.
24466 * config/i386/darwin64.h (TARGET_VERSION): Remove.
24467 * config/i386/djgpp.h (TARGET_VERSION): Remove.
24468 * config/i386/freebsd.h (TARGET_VERSION): Remove.
24469 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
24470 * config/i386/gnu.h (TARGET_VERSION): Remove.
24471 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
24472 * config/i386/i386elf.h (TARGET_VERSION): Remove.
24473 * config/i386/linux.h (TARGET_VERSION): Remove.
24474 * config/i386/linux64.h (TARGET_VERSION): Remove.
24475 * config/i386/lynx.h (TARGET_VERSION): Remove.
24476 * config/i386/mingw32.h (TARGET_VERSION): Remove.
24477 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
24478 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
24479 * config/i386/netware.h (TARGET_VERSION): Remove.
24480 * config/i386/nto.h (TARGET_VERSION): Remove.
24481 * config/i386/openbsd.h (TARGET_VERSION): Remove.
24482 * config/i386/vxworks.h (TARGET_VERSION): Remove.
24483 * config/ia64/elf.h (TARGET_VERSION): Remove.
24484 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
24485 * config/ia64/hpux.h (TARGET_VERSION): Remove.
24486 * config/ia64/linux.h (TARGET_VERSION): Remove.
24487 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24488 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
24489 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24490 * config/lm32/lm32.h (TARGET_VERSION): Remove.
24491 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
24492 * config/m32c/m32c.h (TARGET_VERSION): Remove.
24493 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
24494 * config/m32r/m32r.h (TARGET_VERSION): Remove.
24495 * config/m68k/linux.h (TARGET_VERSION): Remove.
24496 * config/m68k/m68k.h (TARGET_VERSION): Remove.
24497 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
24498 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
24499 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
24500 * config/mep/mep.h (TARGET_VERSION): Remove.
24501 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
24502 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24503 * config/mips/iris6.h (MACHINE_TYPE): Remove.
24504 * config/mips/linux.h (TARGET_VERSION): Remove.
24505 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
24506 * config/mips/vxworks.h (TARGET_VERSION): Remove.
24507 * config/mmix/mmix.h (TARGET_VERSION): Remove.
24508 * config/mn10300/linux.h (TARGET_VERSION): Remove.
24509 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
24510 * config/pa/pa.h (TARGET_VERSION): Remove.
24511 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
24512 * config/picochip/picochip.h (TARGET_VERSION): Remove.
24513 * config/rs6000/aix.h (TARGET_VERSION): Remove.
24514 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
24515 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
24516 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
24517 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
24518 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
24519 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
24520 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
24521 * config/rs6000/linux.h (TARGET_VERSION): Remove.
24522 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
24523 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
24524 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
24525 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
24526 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
24527 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
24528 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
24529 * config/s390/linux.h (TARGET_VERSION): Remove.
24530 * config/s390/s390.h (TARGET_VERSION): Remove.
24531 * config/s390/tpf.h (TARGET_VERSION): Remove.
24532 * config/score/score.h (TARGET_VERSION): Remove.
24533 * config/sh/linux.h (TARGET_VERSION): Remove.
24534 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
24535 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
24536 * config/sh/sh.h (TARGET_VERSION): Remove.
24537 * config/sh/sh64.h (TARGET_VERSION): Remove.
24538 * config/sh/superh.h (TARGET_VERSION): Remove.
24539 * config/sh/vxworks.h (TARGET_VERSION): Remove.
24540 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
24541 * config/sparc/linux.h (TARGET_VERSION): Remove.
24542 * config/sparc/linux64.h (TARGET_VERSION): Remove.
24543 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
24544 TARGET_NAME32, TARGET_NAME): Remove.
24545 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
24546 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
24547 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
24548 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
24549 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
24550 * config/spu/spu.h (TARGET_VERSION): Remove.
24551 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
24552 * config/v850/v850.h (TARGET_VERSION): Remove.
24553 * config/vax/linux.h (TARGET_VERSION): Remove.
24554 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
24555 * config/xtensa/elf.h (TARGET_VERSION): Remove.
24556 * config/xtensa/linux.h (TARGET_VERSION): Remove.
24558 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
24561 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
24562 frame-related from frame-unrelated adjustments to the stack pointer.
24564 2011-03-31 Jakub Jelinek <jakub@redhat.com>
24566 * common.opt (fdebug-types-section): Move earlier.
24567 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
24569 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
24571 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
24574 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
24576 * tree.h (CASE_CHAIN): Define.
24577 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
24578 (gimple_redirect_edge_and_branch): Likewise.
24580 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
24582 PR middle-end/48367
24583 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
24586 2011-03-30 Jeff Law <law@redhat.com>
24588 * PR bootstrap/48371
24589 * reload1.c (reload): Fix botch in last change.
24591 * reload.h (struct reload): Fix typo introduced in last change.
24593 2011-03-30 Joseph Myers <joseph@codesourcery.com>
24595 * config/arm/arm.opt (mhard-float, msoft-float): Mark
24596 Undocumented. Remove help text.
24597 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
24600 2011-03-30 Joseph Myers <joseph@codesourcery.com>
24602 * doc/options.texi (NegativeAlias): Document.
24603 (Alias): Mention NegativeAlias.
24604 * opt-functions.awk: Handle NegativeAlias.
24605 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
24606 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
24607 * opts.h (CL_NEGATIVE_ALIAS): Define.
24608 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
24609 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
24611 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
24613 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24614 mno-spe and mno-isel instead of mspe=no and -misel=no.
24616 2011-03-29 Mark Wielaard <mjw@redhat.com>
24618 * common.opt (fdebug-types-section): New flag.
24619 * doc/invoke.texi: Document new -fno-debug-types-section flag.
24620 * dwarf2out.c (use_debug_types): New define.
24621 (struct die_struct): Mark die_id with GTY desc use_debug_types.
24622 (print_die): Guard output of type unit signatures using
24624 (build_abbrev_table): Replace assert of dwarf_version >= 4
24625 with assert on use_debug_types.
24626 (size_of_die): Likewise.
24627 (unmark_dies): Likewise.
24628 (value_format): Decide AT_ref_external form on use_debug_types.
24629 (output_die): Replace dwarf_version version check guard with
24630 use_debug_types where appropriate.
24631 (modified_type_die): Likewise.
24632 (gen_reference_type_die): Likewise.
24633 (dwarf2out_start_source_file): Likewise.
24634 (dwarf2out_end_source_file): Likewise.
24635 (prune_unused_types_walk_attribs): Likewise.
24636 (dwarf2out_finish): Likewise.
24638 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
24640 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
24642 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24644 PR rtl-optimization/48332
24645 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
24646 mode of input operand N and modeN to its actual mode.
24648 2011-03-30 Jeff Law <law@redhat.com>
24650 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
24651 define accessor macro.
24652 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
24653 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
24654 (reg_equiv_init): Likewise.
24655 (reg_equivs_size): New variable.
24656 (reg_equiv_init_size): Remove.
24657 (allocate_initial_values): Move prototype to here from....
24658 * integrate.h (allocate_initial_values): Remove prototype.
24659 * integrate.c: Include reload.h.
24660 (allocate_initial_values): Corresponding changes.
24661 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
24662 (fix_reg_equiv_init, no_equiv): Corresponding changes.
24663 (update_equiv_regs): Corresponding changes.
24664 (ira): Corresponding changes.
24665 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
24666 (push_secondary_reload): Corresponding changes.
24667 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
24668 (make_memloc, find_reloads_address): Corresponding changes.
24669 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
24670 (find_reloads_address_1): Corresponding changes.
24671 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
24672 (refers_to_regno_for_reload_p): Corresponding changes.
24673 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
24674 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
24675 * reload1.c: Include ggc.h.
24676 (grow_reg_equivs): New function.
24677 (replace_pseudos_in, reload): Corresponding changes.
24678 (calculate_needs_all_insns, alter_regs): Corresponding changes.
24679 (eliminate_regs_1, elimination_effects): Corresponding changes.
24680 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
24681 (delete_output_reload): Likewise.
24682 * caller-save.c (mark_referenced_regs): Corresponding changes.
24683 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
24684 * frv/predicates.md (frv_load_operand): Corresponding changes.
24685 * microblaze/microblaze.c (double_memory_operand): Corresponding
24687 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
24688 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
24689 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
24690 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
24691 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
24693 * pa/pa.c (emit_move_sequence): Corresponding changes.
24694 * vax/vax.c (nonindexed_address_p): Corresponding changes.
24696 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24699 * config/arm/arm.c (coproc_secondary_reload_class): Handle
24700 structure modes. Don't check neon_vector_mem_operand for
24701 vector or structure modes.
24703 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
24704 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24707 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
24708 operand 1 and reshuffle the operands to match.
24709 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
24711 2011-03-30 Christian Schüler <cschueler@gmx.de>
24714 * config/c.opt (F): Added 'Driver' to -F option.
24717 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
24719 * config/darwin.opt: Added '-arch' option.
24721 2011-03-30 Nick Clifton <nickc@redhat.com>
24723 * config/rx/rx.md: Add peepholes and patterns to combine
24724 extending loads and simple arithmetic instructions.
24725 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
24726 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
24727 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
24728 modes to use pre-decrement and post-increment addressing.
24729 (rx_is_restricted_memory_address): Add range checking of REG+INT
24731 (rx_print_operand): Add support for %Q. Fix handling of %Q.
24732 (rx_memory_move_cost): Adjust cost of stores.
24733 (rx_adjust_insn_length): New function.
24735 2011-03-30 Jakub Jelinek <jakub@redhat.com>
24738 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24739 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
24740 matching arg00/arg01 types.
24742 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
24744 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
24745 last_location to UNKNOWN_LOCATION.
24747 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
24750 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
24753 2011-03-30 Joseph Myers <joseph@codesourcery.com>
24754 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24757 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
24758 Init(PROCESSOR_V7).
24759 (sparc_cpu): Likewise.
24760 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
24763 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24766 PR middle-end/48342
24767 PR rtl-optimization/48345
24768 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
24769 hard regs for given mode from profitable regs when doing secondary
24772 2011-03-29 Jeff Law <law@redhat.com>
24775 * tree-ssa-threadupdate.c (struct redirection_data): Remove
24776 do_not_duplicate field.
24777 (lookup_redirection_data): Corresponding changes.
24778 (create_duplicates): Always create a template block.
24779 (redirect_edges): Remove code which reused the original block
24780 when it was going to become unreachable code.
24781 (thread_block): Don't set do_not_duplicate field.
24783 2011-03-29 Joseph Myers <joseph@codesourcery.com>
24785 * lto-opts.c (register_user_option_p, lto_register_user_option):
24786 Make type argument unsigned.
24787 * lto-streamer.h (lto_register_user_option): Make type argument
24789 * opth-gen.awk: Make CL_* macros unsigned.
24790 * opts-common.c (find_opt): Make lang_mask argument unsigned.
24791 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
24792 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
24793 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
24794 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
24795 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
24796 (find_opt): Make lang_mask argument unsigned.
24798 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24800 PR rtl-optimization/48331
24801 PR rtl-optimization/48334
24802 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
24803 for any used algorithm.
24805 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
24807 * ira-conflicts.c (build_object_conflicts): Add unused attribute
24810 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
24812 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
24813 (alpha_option_override): Don't set alpha_sr_alias_set.
24814 (emit_frame_store_1): Use gen_frame_mem rather than calling
24816 (alpha_expand_epilogue): Ditto.
24818 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
24820 PR tree-optimization/48290
24821 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
24822 vectorization, check that relevant phis in the basic block after
24823 the inner loop are really inner loop's exit phis.
24825 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
24828 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
24829 (cached_dw_loc_list_def): New structure.
24830 (cached_dw_loc_list): New typedef.
24831 (cached_dw_loc_list_table): New variable.
24832 (cached_dw_loc_list_table_hash): New function.
24833 (cached_dw_loc_list_table_eq): Likewise.
24834 (add_location_or_const_value_attribute): Take a bool cache_p.
24835 Cache the list when the parameter is true.
24836 (gen_formal_parameter_die): Update caller.
24837 (gen_variable_die): Likewise.
24838 (dwarf2out_finish): Likewise.
24839 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
24840 while generating debug info for the decl.
24841 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
24842 (dwarf2out_init): Initialize cached_dw_loc_list_table.
24843 (resolve_addr): Cache the result of resolving a chain of
24846 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
24848 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
24849 conflict object hard regset nodes have intersecting hard reg sets.
24851 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
24852 after regstat_init_n_sets_and_refs.
24854 * ira.c: Add more comments at the top.
24855 (setup_stack_reg_pressure_class, setup_pressure_classes):
24856 Add comments how we compute the register pressure classes.
24857 (setup_allocno_and_important_classes): Add more comments.
24858 (setup_class_translate_array, reorder_important_classes)
24859 (setup_reg_class_relations): Add comments.
24861 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
24864 * ira-color.c: Add 2011 to the Copyright line.
24865 (assign_hard_reg): Add more comments.
24866 (improve_allocation): Ditto.
24868 * ira-costs.c: Add 2011 to the Copyright line.
24869 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
24871 (setup_regno_cost_classes_by_mode): Ditto.
24873 Initial patches from ira-improv branch:
24875 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
24877 * ira-build.c (ira_create_object): Remove initialization of
24878 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
24879 (ira_create_allocno): Remove initialization of
24880 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
24881 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
24882 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24883 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
24884 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
24885 Initialize ALLOCNO_ADD_DATA.
24886 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
24887 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24889 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
24890 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24892 * ira.c (ira_reallocate): Remove.
24893 (setup_pressure_classes): Call
24894 ira_init_register_move_cost_if_necessary. Use
24895 ira_register_move_cost instead of ira_get_register_move_cost.
24896 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24897 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24899 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24900 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24901 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24902 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24903 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24904 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24906 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24907 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24908 (struct allocno_color_data): New.
24909 (allocno_color_data_t): New typedef.
24910 (allocno_color_data): New definition.
24911 (ALLOCNO_COLOR_DATA): New macro.
24912 (struct object_color_data): New.
24913 (object_color_data_t): New typedef.
24914 (object_color_data): New definition.
24915 (OBJECT_COLOR_DATA): New macro.
24916 (update_copy_costs, calculate_allocno_spill_cost): Call
24917 ira_init_register_move_cost_if_necessary. Use
24918 ira_register_move_cost instead of ira_get_register_move_cost.
24919 (move_spill_restore, update_curr_costs): Ditto.
24920 (allocno_spill_priority): Make it inline.
24921 (color_pass): Allocate and free allocno_color_dat and object_color_data.
24922 (struct coalesce_data, coalesce_data_t): New.
24923 (allocno_coalesce_data): New definition.
24924 (ALLOCNO_COALESCE_DATA): New macro.
24925 (merge_allocnos, coalesced_allocno_conflict_p): Use
24926 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24927 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24928 (coalesce_allocnos): Ditto.
24929 (setup_coalesced_allocno_costs_and_nums): Ditto.
24930 (collect_spilled_coalesced_allocnos): Ditto.
24931 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24932 (setup_slot_coalesced_allocno_live_ranges): Ditto.
24933 (coalesce_spill_slots): Ditto.
24934 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
24935 free allocno_coalesce_data.
24937 * ira-conflicts.c: Fix formatting.
24938 (process_regs_for_copy): Call
24939 ira_init_register_move_cost_if_necessary. Use
24940 ira_register_move_cost instead of ira_get_register_move_cost.
24941 (build_object_conflicts): Optimize.
24943 * ira-costs.c (record_reg_classes): Optimize. Call
24944 ira_init_register_move_cost_if_necessary. Use
24945 ira_register_move_cost, ira_may_move_in_cost, and
24946 ira_may_move_out_cost instead of ira_get_register_move_cost and
24947 ira_get_may_move_cost.
24948 (record_address_regs): Ditto.
24949 (scan_one_insn): Optimize.
24950 (find_costs_and_classes): Optimize.
24951 (process_bb_node_for_hard_reg_moves): Call
24952 ira_init_register_move_cost_if_necessary. Use
24953 ira_register_move_cost instead of ira_get_register_move_cost.
24955 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24956 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24957 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24958 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24960 (ira_initiate_emit_data, ira_finish_emit_data)
24961 (create_new_allocno): New functions.
24962 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24963 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24964 Use ira_register_move_cost instead of ira_get_register_move_cost.
24966 * ira-int.h: Fix some comments.
24967 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24968 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24969 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24970 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
24972 (struct ira_allocno): Make mode and aclass a bitfield. Move other
24973 bitfield after mode. Make hard_regno a short int. Make
24974 hard_regno short. Remove first_coalesced_allocno and
24975 next_coalesced_allocno. Move mem_optimized_dest_p,
24976 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24977 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
24978 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
24979 temp, colorable_p. Add new member add_data.
24980 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
24981 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
24982 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
24983 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
24984 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
24985 (ALLOCNO_ADD_DATA): New macro.
24986 (ira_emit_data_t): New typedef.
24987 (struct ira_emit_data): New. Move mem_optimized_dest_p,
24988 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
24989 from struct ira_allocno.
24990 (ALLOCNO_EMIT_DATA): New macro.
24991 (ira_allocno_emit_data, allocno_emit_reg): New.
24992 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
24993 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
24994 (OBJECT_ADD_DATA): New macro.
24995 (ira_reallocate): Remove.
24996 (ira_initiate_emit_data, ira_finish_emit_data): New.
24997 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
24998 (ira_init_register_move_cost_if_necessary): New.
24999 (ira_object_conflict_iter_next): Merge into
25000 ira_object_conflict_iter_cond.
25001 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
25003 * ira-live.c (process_single_reg_class_operands): Call
25004 ira_init_register_move_cost_if_necessary. Use
25005 ira_register_move_cost instead of ira_get_register_move_cost.
25007 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
25009 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
25011 * ira-costs.c: Fix formatting.
25012 (cost_classes, cost_classes_num): Remove.
25013 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
25014 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
25015 (cost_classes_del, cost_classes_htab): New.
25016 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
25017 (initiate_regno_cost_classes, setup_cost_classes): New.
25018 (setup_regno_cost_classes_by_aclass): New.
25019 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
25020 (record_reg_classes): Use regno_cost_classes instead of
25021 cost_classes. Move checking opposite operand up.
25022 (record_address_regs): Use regno_cost_classes
25023 instead of cost_classes.
25024 (scan_one_insn): Ditto. Use always general register.
25025 (print_allocno_costs): Use regno_cost_classes instead of
25027 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
25028 (find_costs_and_classes): Set up cost classes for each registers.
25029 Use also their mode for this. Use regno_cost_classes instead of
25031 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
25033 (free_ira_costs, ira_init_costs): Don't use cost_classes.
25034 (ira_costs, ira_set_pseudo_classes): Call
25035 initiate_regno_cost_classes and finish_regno_cost_classes.
25037 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
25039 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
25041 * target.def (ira_cover_classes): Remove.
25043 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
25045 * doc/tm.texi.in: Ditto.
25047 * ira-conflicts.c: Remove mentioning cover classes from the file.
25048 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
25049 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
25051 * targhooks.c (default_ira_cover_classes): Remove.
25053 * targhooks.h (default_ira_cover_classes): Ditto.
25055 * haifa-sched.c: Remove mentioning cover classes from the file.
25056 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
25057 ira_pressure_classes and ira_pressure_classes_num instead of
25058 ira_reg_class_cover_size and ira_reg_class_cover. Use
25059 sched_regno_pressure_class instead of sched_regno_cover_class.
25060 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
25061 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25063 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
25064 classes from the file.
25065 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
25066 (struct object_hard_regs, struct object_hard_regs_node): New.
25067 (struct ira_object): New members profitable_hard_regs,
25068 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
25069 (struct ira_allocno): Rename cover_class to aclass. Rename
25070 cover_class_cost and updated_cover_class_cost to class_cost and
25071 updated_class_cost. Remove splay_removed_p and
25072 left_conflict_size. Add new members colorable_p.
25073 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
25074 (ALLOCNO_COLORABLE_P): New macro.
25075 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
25076 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
25077 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
25078 (OBJECT_...): Rename parameter C to O.
25079 (OBJECT_PROFITABLE_HARD_REGS): New macro.
25080 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
25081 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
25082 (struct target_ira_int): New members x_ira_max_memory_move_cost,
25083 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
25084 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
25085 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
25086 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
25087 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
25088 x_ira_reg_class_subunion.
25089 (ira_max_memory_move_cost, ira_max_register_move_cost)
25090 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
25091 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
25092 (ira_important_class_nums, ira_reg_class_superunion): New macros.
25093 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
25094 (ira_reg_class_union): Rename to ira_reg_class_subunion.
25095 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25096 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
25097 (ira_tune_allocno_costs_and_cover_classes): Rename to
25098 ira_tune_allocno_costs.
25099 (ira_debug_hard_regs_forest): New.
25100 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
25101 (ira_object_conflict_iter_next): Fix comments.
25102 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
25103 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
25104 cover_class to aclass.
25105 (ira_allocate_and_accumulate_costs): Ditto.
25106 (ira_allocate_and_set_or_copy_costs): Ditto.
25108 * opts.c (decode_options): Remove ira_cover_class check.
25110 * ira-color.c: Remove mentioning cover classes from the file. Use
25111 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
25112 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
25113 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
25114 (splay-tree.h): Remove include.
25115 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
25116 before copy_freq_compare_func.
25117 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
25118 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
25120 (hard_regs_roots, hard_regs_node_vec): Ditto.
25121 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
25122 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
25123 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
25124 (create_new_object_hard_regs_node): Ditto.
25125 (add_new_object_hard_regs_node_to_forest): Ditto.
25126 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
25127 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
25129 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
25130 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
25131 (remove_unused_object_hard_regs_nodes): Ditto.
25132 (enumerate_object_hard_regs_nodes): Ditto.
25133 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
25134 (object_hard_regs_subnode_t): Ditto.
25135 (struct object_hard_regs_subnode): Ditto.
25136 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
25137 (setup_object_hard_regs_subnode_index): Ditto.
25138 (get_object_hard_regs_subnodes_num): Ditto.
25139 (form_object_hard_regs_nodes_forest): Ditto.
25140 (finish_object_hard_regs_nodes_tree): Ditto.
25141 (finish_object_hard_regs_nodes_forest): Ditto.
25142 (allocnos_have_intersected_live_ranges_p): Rename to
25143 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
25144 (pseudos_have_intersected_live_ranges_p): Rename to
25145 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
25146 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
25147 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
25148 (update_copy_costs): Remove assert. Skip cost update if the hard
25149 reg does not belong the class.
25150 (assign_hard_reg): Process only profitable hard regs.
25151 (uncolorable_allocnos_num): Make it scalar.
25152 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
25153 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
25154 and ira_reg_class_max_nregs.
25155 (bucket_allocno_compare_func): Check frequency first.
25156 (sort_bucket): Add compare function as a parameter.
25157 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
25158 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
25159 (push_allocno_to_stack): Rewrite for checking new allocno
25161 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
25162 (push_only_colorable): Pass new parameter to sort_bucket.
25163 (push_allocno_to_spill): Remove.
25164 (allocno_spill_priority_compare): Make it inline and rewrite.
25165 (splay_tree_allocate, splay_tree_free): Remove.
25166 (allocno_spill_sort_compare): New function.
25167 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
25168 build and use splay tree. Choose first allocno in uncolorable
25169 allocno bucket to spill. Remove setting spill cost.
25170 (all_conflicting_hard_regs): Remove.
25171 (setup_allocno_available_regs_num): Check only profitable hard
25172 regs. Print info about hard regs nodes.
25173 (setup_allocno_left_conflicts_size): Remove.
25174 (put_allocno_into_bucket): Don't call
25175 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
25176 (improve_allocation): New.
25177 (color_allocnos): Call setup_profitable_hard_regs,
25178 form_object_hard_regs_nodes_forest, improve_allocation,
25179 finish_object_hard_regs_nodes_forest. Setup spill cost.
25180 (print_loop_title): Use pressure classes.
25181 (color_allocnso): Ditto.
25182 (do_coloring): Remove allocation and freeing splay_tree_node_pool
25183 and allocnos_for_spilling.
25184 (ira_sort_regnos_for_alter_reg): Don't setup members
25185 {first,next}_coalesced_allocno.
25186 (color): Remove allocating and freeing removed_splay_allocno_vec.
25187 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
25188 prohibited_class_mode_regs.
25190 * ira-lives.c: Remove mentioning cover classes from the file. Fix
25192 (update_allocno_pressure_excess_length): Use pressure classes.
25193 (inc_register_pressure, dec_register_pressure): Check for pressure
25195 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
25196 pressure class. Use ira_reg_class_nregs instead of
25197 ira_reg_class_max_nregs.
25198 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
25199 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
25200 (single_reg_class): Use ira_reg_class_nregs instead of
25201 ira_reg_class_max_nregs.
25202 (process_bb_node_lives): Use pressure classes.
25204 * ira-emit.c: Remove mentioning cover classes from the file. Use
25205 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
25206 (change_loop): Use pressure classes.
25207 (modify_move_list): Call ira_set_allocno_class instead of
25208 ira_set_allocno_cover_class.
25210 * ira-build.c: Remove mentioning cover classes from the file. Use
25211 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
25212 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
25213 ALLOCNO_UPDATED_CLASS_COST instead of
25214 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
25215 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
25216 (ira_create_allocno): Remove initialization of
25217 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
25218 ALLOCNO_COLORABLE_P.
25219 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
25220 Update conflict regs for the objects.
25221 (create_cap_allocno): Remove assert. Don't propagate
25222 ALLOCNO_AVAILABLE_REGS_NUM.
25223 (ira_free_allocno_costs): New function.
25224 (finish_allocno): Change a part of code into call of
25225 ira_free_allocno_costs.
25226 (low_pressure_loop_node_p): Use pressure classes.
25227 (object_range_compare_func): Don't compare classes.
25228 (setup_min_max_conflict_allocno_ids): Ditto.
25230 * loop-invariant.c: Remove mentioning cover classes from the file.
25231 Use ira_pressure_classes and ira_pressure_classes_num instead of
25232 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
25233 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
25234 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25235 Use reg_allocno_class instead of reg_cover_class.
25236 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
25237 STACK_REG_COVER_CLASS.
25238 (get_regno_cover_class): Rename to get_regno_pressure_class.
25239 (move_loop_invariants): Initialize and finalize regstat.
25241 * ira.c: Remove mentioning cover classes from the file. Add
25242 comments about coloring without cover classes. Use ALLOCNO_CLASS
25243 instead of ALLOCNO_COVER_CLASS. Fix formatting.
25244 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
25245 setup_class_subset_and_memory_move_costs.
25246 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
25247 (setup_cover_and_important_classes): Rename to
25248 setup_allocno_and_important_classes.
25249 (setup_class_translate_array): New.
25250 (setup_class_translate): Call it for allocno and pressure classes.
25251 (cover_class_order): Rename to allocno_class_order.
25252 (comp_reg_classes_func): Use ira_allocno_class_translate instead
25253 of ira_class_translate.
25254 (reorder_important_classes): Set up ira_important_class_nums.
25255 (setup_reg_class_relations): Set up ira_reg_class_superunion.
25256 (print_class_cover): Rename to print_classes. Add parameter.
25257 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25258 Print pressure classes too.
25259 (find_reg_class_closure): Rename to find_reg_classes. Don't call
25260 setup_reg_subclasses.
25261 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25262 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25263 (setup_prohibited_class_mode_regs): Use
25264 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
25265 (clarify_prohibited_class_mode_regs): New function.
25266 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
25267 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
25268 (ira_init_once): Initialize them.
25269 (free_register_move_costs): Process them.
25270 (ira_init): Move calls of find_reg_classes and
25271 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
25272 Call clarify_prohibited_class_mode_regs.
25273 (ira_no_alloc_reg): Remove.
25274 (too_high_register_pressure_p): Use pressure classes.
25276 * sched-deps.c: Remove mentioning cover classes from the file.
25277 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
25278 ira_pressure_classes and ira_pressure_classes_num instead of
25279 ira_reg_class_cover_size and ira_reg_class_cover.
25280 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
25281 sched_regno_pressure_class instead of sched_regno_cover_class.
25282 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
25283 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25285 * ira.h: Add 2010 to Copyright.
25286 (ira_no_alloc_reg): Remove external.
25287 (struct target_ira): Rename x_ira_hard_regno_cover_class,
25288 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
25289 x_ira_class_translate to x_ira_hard_regno_allocno_class,
25290 x_ira_allocno_classes_num, x_ira_allocno_classes, and
25291 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
25292 x_ira_pressure_classes, x_ira_pressure_class_translate, and
25293 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
25294 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
25295 x_ira_no_alloc_regs.
25296 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25297 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
25298 ira_allocno_classes_num and ira_allocno_classes.
25299 (ira_class_translate): Rename to ira_allocno_class_translate.
25300 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
25301 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
25302 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25303 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
25304 (ira_no_alloc_regs): New.
25306 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
25307 classes from the file. Use ALLOCNO_CLASS instead of
25308 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
25309 ALLOCNO_COVER_CLASS_COST.
25310 (regno_cover_class): Rename to regno_aclass.
25311 (record_reg_classes): Use ira_reg_class_subunion instead of
25312 ira_reg_class_union.
25313 (record_address_regs): Check overflow.
25314 (scan_one_insn): Ditto.
25315 (print_allocno_costs): Print total mem cost fore regional allocation.
25316 (print_pseudo_costs): Use REG_N_REFS.
25317 (find_costs_and_classes): Use classes intersected with them on the
25318 1st pass. Check overflow. Use ira_reg_class_subunion instead of
25319 ira_reg_class_union. Use ira_allocno_class_translate and
25320 regno_aclass instead of ira_class_translate and regno_cover_class.
25321 Modify code for finding regno_aclass. Setup preferred classes for
25323 (setup_allocno_cover_class_and_costs): Rename to
25324 setup_allocno_class_and_costs. Use regno_aclass instead of
25325 regno_cover_class. Use ira_set_allocno_class instead of
25326 ira_set_allocno_cover_class.
25327 (init_costs, finish_costs): Use regno_aclass instead of
25329 (ira_costs): Use setup_allocno_class_and_costs instead of
25330 setup_allocno_cover_class_and_costs.
25331 (ira_tune_allocno_costs_and_cover_classes): Rename to
25332 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
25333 by processing objects. Use ira_reg_class_max_nregs instead of
25334 ira_reg_class_nregs.
25336 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
25338 * sched-int.h: Remove mentioning cover classes from the file.
25339 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
25341 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
25342 classes from the file.
25343 (struct reg_pref): Rename coverclass into allocnoclass.
25344 (reg_cover_class): Rename to reg_allocno_class.
25346 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
25348 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
25350 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
25352 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
25354 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
25356 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
25358 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
25360 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
25362 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
25364 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
25366 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
25367 (i386_ira_cover_classes): Ditto.
25369 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
25371 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
25373 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
25375 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
25377 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
25379 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
25381 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
25382 (mips_ira_cover_classes): Ditto.
25384 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
25386 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
25388 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
25390 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
25392 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
25394 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
25395 (IRA_COVER_CLASSES_VSX): Ditto.
25397 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
25398 (rs6000_ira_cover_classes): Ditto.
25400 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
25402 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
25404 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
25406 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
25408 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
25410 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
25412 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
25414 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
25416 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
25418 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
25420 2011-03-29 Jakub Jelinek <jakub@redhat.com>
25423 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
25424 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
25425 dw_fde_unlikely_section_end_label, cold_in_std_section,
25426 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
25427 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
25429 (output_fde): Use dw_fde_second_{begin,end} if second is
25430 true, otherwise dw_fde_{begin,end}.
25431 (output_call_frame_info): Test dw_fde_second_begin != NULL
25432 instead of dw_fde_switched_sections.
25433 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
25434 fields, initialize new fields. Initialize in_std_section
25435 unconditionally from the first partition.
25436 (dwarf2out_end_epilogue): Don't override dw_fde_end when
25437 dw_fde_second_begin is non-NULL.
25438 (dwarf2out_switch_text_section): Stop initializing removed
25439 dw_fde_struct fields, initialize new fields, initialize
25440 also dw_fde_end here. Set dw_fde_switch_cfi even when
25441 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
25442 (struct var_loc_list_def): Add last_before_switch field.
25443 (arange_table, arange_table_allocated, arange_table_in_use,
25444 ARANGE_TABLE_INCREMENT, add_arange): Removed.
25445 (size_of_aranges): Count !in_std_section and !second_in_std_section
25446 hunks in fdes, instead of looking at arange_table_in_use.
25447 (output_aranges): Add aranges_length argument, don't call
25448 size_of_aranges here. Instead of using aranges_table*
25449 emit ranges for fdes when !in_std_section resp.
25450 !second_in_std_section.
25451 (dw_loc_list): Break ranges crossing section switch.
25452 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
25453 use dw_fde_second_end instead of dw_fde_end as end of last range.
25454 (gen_subprogram_die): Don't call add_arange. Use
25455 dw_fde_{begin,end} for first partition and if switched
25456 section dw_fde_second_{begin,end} for the second.
25457 (var_location_switch_text_section_1,
25458 var_location_switch_text_section): New functions.
25459 (dwarf2out_begin_function): Initialize cold_text_section even
25460 when function_section () isn't text_section.
25461 (prune_unused_types): Don't walk arange_table.
25462 (dwarf2out_finish): Don't needlessly test
25463 flag_reorder_blocks_and_partition when testing cold_text_section_used.
25464 If info_section_emitted, call size_of_aranges and if it indicates
25465 non-empty .debug_aranges, call output_aranges with the computed
25466 size. Stop using removed dw_fde_struct fields, use
25467 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
25471 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
25472 create ENTRY_VALUE if incoming or address of incoming's MEM
25474 * dwarf2out.c (mem_loc_descriptor): Don't emit
25475 DW_OP_GNU_entry_value of DW_OP_fbreg.
25476 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
25477 on ENTRY_VALUE is able to find the canonical parameter VALUE.
25478 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
25479 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
25481 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
25482 is a REG_P or MEM_P with REG_P address, compute hash directly
25483 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
25484 (preserve_only_constants): Don't clear VALUES forwaring
25485 ENTRY_VALUE to some other VALUE.
25487 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
25489 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
25490 instead of GEN_INT.
25492 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
25494 * cfgexpand.c (expand_gimple_cond): Always set the source location and
25495 block before expanding the statement.
25496 (expand_gimple_stmt_1): Likewise. Set them here...
25497 (expand_gimple_stmt): ...and not here. Tidy.
25498 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
25501 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
25503 * Makefile.in: New rule for cprop.o.
25504 * gcse.c: Move constant/copy propagation to cprop.c.
25505 (compute_local_properties): Only handle expression tables.
25506 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
25507 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
25508 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
25509 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
25510 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
25511 compute_cprop_data, find_used_regs, try_replace_reg,
25512 find_avail_set, cprop_jump, constprop_register, cprop_insn,
25513 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
25514 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
25515 find_bypass_set, reg_killed_on_edge, bypass_block,
25516 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
25517 execute_rtl_cprop, pass_rtl_cprop): Move to...
25518 * cprop.c: ...here. New file, constant/copy propagation for RTL
25519 moved from gcse.c to here with minor cleanups in duplicated code.
25521 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
25523 * config/i386/i386.c (flag_opts): Fix a typo in
25524 -mavx256-split-unaligned-store.
25526 2011-03-28 Anatoly Sokolov <aesok@post.ru>
25528 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25529 LIBCALL_VALUE): Remove macros.
25530 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25531 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25532 (h8300_function_value, h8300_libcall_value,
25533 h8300_function_value_regno_p): New functions.
25535 2011-03-28 Anatoly Sokolov <aesok@post.ru>
25537 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
25539 2011-03-28 Jeff Law <law@redhat.com>
25541 * tree-ssa-threadupdate.c (redirect_edges): Call
25542 create_edge_and_update_destination_phis as needed.
25543 (create_edge_and_update_destination_phis): Accept new BB argument.
25544 All callers updated.
25545 (thread_block): Do not update the profile when threading around
25546 intermediate blocks.
25547 (thread_single_edge): Likewise.
25548 (determine_bb_domination_status): If BB is not a successor of the
25549 loop header, return NONDOMINATING.
25550 (register_jump_thread): Note when we register a jump thread around
25551 an intermediate block.
25552 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
25553 (thread_across_edge): Use it.
25555 2011-03-28 Tristan Gingold <gingold@adacore.com>
25557 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
25558 when for_return is 2.
25560 2011-03-28 Jeff Law <law@redhat.com>
25562 * var-tracking.c (canonicalize_values_mark): Delete unused
25564 (canonicalize_values_star, set_variable_part): Likewise.
25565 (clobber_variable_part, delete_variable_part): Likewise.
25567 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
25569 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
25571 2011-03-28 Martin Jambor <mjambor@suse.cz>
25573 * tree-inline.c (expand_call_inline): Do not check that destination
25575 (optimize_inline_calls): Assert that destination node is analyzed.
25576 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
25577 not call tree_lowering_passes.
25578 * cgraph.h (cgraph_analyze_function): Declare.
25579 * cgraphunit.c (cgraph_analyze_function): Make public.
25581 2011-03-28 Joseph Myers <joseph@codesourcery.com>
25583 * config/sparc/sparc-opts.h: New.
25584 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
25585 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
25586 (sparc_option_override): Store processor_type enumeration rather
25587 than string in cpu_default. Remove name and enumeration from
25588 cpu_table. Directly default -mcpu then default -mtune from -mcpu
25589 without using sparc_select. Use target_flags_explicit instead of
25591 * config/sparc/sparc.h (enum processor_type): Move to
25593 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
25594 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
25595 HeaderInclude entry.
25596 (mcpu=, mtune=): Use Var and Enum.
25597 (sparc_processor_type): New Enum and EnumValue entries.
25599 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25600 Iain Sandoe <iains@gcc.gnu.org>
25603 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
25605 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
25607 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
25608 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
25609 Insert new statements at it in lieu of STMT.
25610 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
25611 * tree-vect-stmts.c (vectorizable_store): Likewise.
25612 (vectorizable_load): Likewise.
25614 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
25616 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
25621 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
25623 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
25624 unaligned 256bit load/store.
25625 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
25626 (*avx_movdqu<avxmodesuffix>): Likewise.
25628 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25631 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
25632 * config/pa/pa.md (iordi3): Use new predicate in expander.
25633 (iorsi3): Likewise.
25635 2011-03-27 Anatoly Sokolov <aesok@post.ru>
25637 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
25638 FUNCTION_VALUE_REGNO_P): Remove macros.
25639 * config/mips/mips-protos.h (mips_function_value): Remove.
25640 * config/mips/mips.c (mips_function_value): Rename to...
25641 (mips_function_value_1): ... this. Make static. Handle receiving
25642 the function type in 'fn_decl_or_type' argument.
25643 (mips_function_value, mips_libcall_value,
25644 mips_function_value_regno_p): New function.
25645 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25646 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25648 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
25650 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
25651 and -mavx256-split-unaligned-store.
25652 (ix86_option_override_internal): Split 32-byte AVX unaligned
25653 load/store by default.
25654 (ix86_avx256_split_vector_move_misalign): New.
25655 (ix86_expand_vector_move_misalign): Use it.
25657 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
25658 -mavx256-split-unaligned-store.
25660 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
25661 256bit load/store. Generate unaligned store on misaligned memory
25663 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
25665 (*avx_movdqu<avxmodesuffix>): Likewise.
25667 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
25668 -mavx256-split-unaligned-store.
25670 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
25673 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
25676 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
25678 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
25679 opno arguments with an expand_operand. Use create_input_operand.
25680 (mips_prepare_builtin_target): Delete.
25681 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
25683 (mips_expand_builtin_direct): Use create_output_operand and
25684 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
25685 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
25686 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
25688 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
25690 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
25692 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25694 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
25696 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
25697 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
25698 basic blocks and call commit_edge_insertions directly.
25699 (fixup_abnormal_edges): Move from here to...
25700 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
25701 on the edges and return whether some have actually been inserted.
25702 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
25705 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
25707 PR rtl-optimization/48144
25708 * sel-sched-ir.c (merge_history_vect): Factor out from ...
25709 (merge_expr_data): ... here.
25710 (av_set_intersect): Rename to av_set_code_motion_filter.
25711 Update all callers. Call merge_history_vect when an expression
25712 is found in both sets.
25713 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
25715 2011-03-26 Alan Modra <amodra@gmail.com>
25717 * config/rs6000/predicates.md (word_offset_memref_op): Handle
25718 cmodel medium addresses.
25719 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
25720 64-bit gpr loads and stores.
25721 (rs6000_secondary_reload_ppc64): New function.
25722 * config/rs6000/rs6000-protos.h: Declare it.
25723 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
25725 2011-03-26 Alan Modra <amodra@gmail.com>
25728 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
25729 GNU Go in traceback table.
25731 2011-03-25 Richard Henderson <rth@redhat.com>
25733 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
25734 if there are exactly 6 operands.
25735 (set_storage_via_setmem): Similarly.
25737 2011-03-25 Kai Tietz <ktietz@redhat.com>
25739 * collect2.c (write_c_file_stat): Handle backslash
25740 as right-hand directory separator.
25741 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
25742 checking just for slash.
25743 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
25744 instead of checking for trailing slash.
25745 * gcc.c (record_temp_file): Use filename_cmp instead
25747 (do_spec_1): Likewise.
25748 (replace_outfile_spec_function): Likewise.
25749 (is_directory): Use filename_ncmp instead of strncmp.
25750 (print_multilib_info): Likewise.
25751 * gcov.c (find_source): Use filename_cmp instead
25753 (make_gcov_file_name): Fix order of slash/backslash
25755 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
25756 (add_standard_paths): Likewise.
25757 * mips-tfile.c (saber_stop): Handle backslash.
25758 * prefix.c (update_path): Use filename_ncmp instead of
25760 * profile.c (output_location): Use filename_cmp instead
25762 * read-md.c (handle_toplevel_file): Handle backslash.
25763 * tlink.c (frob_extension): Likewise.
25764 * tree-cfg.c (same_line_p): Use filename_cmp instead of
25766 * tree-dump.c (dequeue_and_dump): Handle backslash.
25767 * tree.c (get_file_function_name): Likewise.
25768 * gengtype.c (read_input_list): Likewise.
25769 (get_file_realbasename): Likewise.
25770 (get_output_file_with_visibility): Use filename_cmp
25773 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
25775 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
25778 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
25780 * fold-const.c (expr_location_or): New function.
25781 (fold_truth_not_expr): Call it.
25783 2011-03-25 Jeff Law <law@redhat.com>
25785 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
25787 * c-family/c-common.c (def_fn_type): Likewise.
25788 * emit-rtl.c (gen_rtvec): Likewise.
25789 * lto/lto-lang.c (def_fn_type): Likewise.
25791 2011-03-25 Richard Guenther <rguenther@suse.de>
25793 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
25794 also generate copies.
25795 (fini_copy_prop): Handle constant values properly.
25797 2011-03-25 Jakub Jelinek <jakub@redhat.com>
25799 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
25800 mode size instead of bitsize with DWARF2_ADDR_SIZE.
25801 (hash_loc_operands, compare_loc_operands): Handle
25802 DW_OP_GNU_entry_value.
25804 2011-03-25 Kai Tietz <ktietz@redhat.com>
25806 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
25807 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
25808 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
25809 comment and use macro TARGET_64BIT_MS_ABI instead.
25810 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
25811 and change default behavior for 32-bit MS_ABI.
25812 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
25813 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
25815 (ix86_cfun_abi): Likewise.
25816 (ix86_maybe_switch_abi): Adjust comment.
25817 (init_cumulative_args): Check for bit-ness in MS_ABI case.
25818 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
25819 instead of checking for SYSV_ABI.
25820 (ix86_nsaved_sseregs): Likewise.
25821 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
25823 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
25824 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
25825 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
25826 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
25827 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
25829 2011-03-25 Richard Guenther <rguenther@suse.de>
25831 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
25832 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25833 (verify_gimple): Remove.
25834 * tree-cfg.c (verify_gimple_call): Merge verification
25836 (verify_gimple_phi): Merge verification from verify_stmts.
25837 (verify_gimple_label): New function.
25838 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
25839 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25840 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
25841 (verify_stmts): Rename to verify_gimple_in_cfg.
25842 (verify_gimple_in_cfg): New function.
25843 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
25844 * tree-ssa.c (verify_ssa): Likewise.
25845 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
25847 2011-03-25 Richard Guenther <rguenther@suse.de>
25849 * passes.c (init_optimization_passes): Add FRE pass after
25852 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
25853 Andrew Stubbs <ams@codesourcery.com>
25855 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
25857 (arm_movdi_vfp_cortexa8): New pattern.
25858 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
25859 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
25860 instructions when tuning for Cortex-A8. Set attribute "arch".
25861 * config/arm/arm.md: Move include arm-tune.md up a bit.
25862 (define_attr "arch"): Add "onlya8" and "nota8" values.
25863 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
25865 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
25869 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25871 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25872 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
25873 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25874 * passes.c (init_optimization_passes): Move
25875 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25877 2011-03-25 Kai Tietz <ktietz@redhat.com>
25879 * c-typeck.c (comptypes_internal): Replace target
25880 hook call of comp_type_attributes by version in tree.c file.
25881 * gimple.c (gimple_types_compatible_p_1): Likewise.
25882 * tree-ssa.c (useless_type_conversion_p): Likewise.
25883 * tree.c (build_type_attribute_qual_variant): Likewise.
25884 (attribute_value_equal): New static helper function.
25885 (comp_type_attributes): New function.
25886 (merge_attributes): Use attribute_value_equal for comparison.
25887 (attribute_list_contained): Likewise.
25888 * tree.h (comp_type_attributes): New prototype.
25890 2011-03-25 Richard Guenther <rguenther@suse.de>
25892 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25893 of complex types at -O0.
25894 (verify_gimple_assign_binary): Likewise.
25895 (verify_gimple_assign_ternary): Likewise.
25897 2011-03-24 Mark Wielaard <mjw@redhat.com>
25899 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25900 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25902 2011-03-24 Mark Wielaard <mjw@redhat.com>
25905 * dwarf2out.c (output_abbrev_section): Only write table when
25906 abbrev_die_table_in_use > 1.
25908 2011-02-24 Richard Henderson <rth@redhat.com>
25910 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25911 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25912 (alpha_expand_unaligned_load_words): Use extql.
25913 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25914 (emit_insxl): Handle all modes for consistency.
25916 2011-02-24 Richard Henderson <rth@redhat.com>
25918 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25919 (alpha_expand_unaligned_load): Likewise.
25920 (alpha_expand_unaligned_store): Likewise.
25921 (alpha_expand_unaligned_load_words): Likewise.
25922 (alpha_expand_unaligned_store_words): Likewise.
25923 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25924 (alpha_split_lock_test_and_set_12): Likewise.
25925 (print_operand, alpha_fold_builtin_extxx): Likewise.
25926 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25927 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25928 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25929 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25930 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25931 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25932 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25933 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25934 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25935 (extwl, extll, extql): Similarly.
25936 (inswh, inslh, insqh): Similarly.
25937 (mskbl, mskwl, mskll, mskql): Similarly.
25938 (mskwh, msklh, mskqh): Similarly.
25940 2011-02-24 Richard Henderson <rth@redhat.com>
25942 * config/alpha/alpha.md (attribute isa): Add er, ner.
25943 (attribute enabled): Handle them.
25944 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25946 2011-02-24 Richard Henderson <rth@redhat.com>
25948 * config/alpha/alpha.md (attribute isa): Add vms.
25949 (attribute enabled): Handle it.
25950 (*movsf): Merge *movsf_{nofix,fix,nofp}.
25951 (*movdf): Merge *movdf_{nofix,fix,nofp}.
25952 (*movtf): Rename from *movtf_internal for consistency.
25953 (*movsi): Merge with *movsi_nt_vms.
25954 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25955 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25956 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25957 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25959 2011-02-24 Richard Henderson <rth@redhat.com>
25961 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25962 (extendqisi2, extendhisi2): Likewise.
25963 (extendqidi2): Simplify BWX/non-BWX expansions.
25964 (extendhidi2): Similarly.
25966 2011-02-24 Richard Henderson <rth@redhat.com>
25968 * config/alpha/alpha.md (attribute isa): New.
25969 (attribute enabled): New.
25970 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25971 (zero_extendqisi2, zero_extendqidi2): Similarly.
25972 (zero_extendhisi2, zero_extendhidi2): Similarly.
25973 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25975 2011-02-24 Richard Henderson <rth@redhat.com>
25977 * config/alpha/predicates.md (input_operand): Revert last change;
25978 update comment to mention 32-bit VMS rather than Windows.
25980 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
25982 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25983 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
25984 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25985 * passes.c (init_optimization_passes): Move
25986 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25988 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
25990 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
25992 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
25994 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
25997 2011-03-24 Jakub Jelinek <jakub@redhat.com>
26000 * simplify-rtx.c (simplify_const_unary_operation): Call
26001 real_convert when changing mode class with FLOAT_EXTEND.
26003 2011-03-24 Nick Clifton <nickc@redhat.com>
26005 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
26006 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
26007 * config/rx/rx.c (rx_option_override): Set align_jumps,
26008 align_loops and align_labels if not set by the user.
26009 (rx_align_for_label): New function.
26010 (rx_max_skip_for_label): New function.
26011 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
26012 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
26013 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
26014 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
26015 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
26017 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
26019 PR rtl-optimization/48263
26020 * optabs.c (expand_binop_directly): Reinstate convert_modes code
26021 and original commutative_p handling. Use maybe_gen_insn.
26023 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26025 * reload.c (find_reloads_subreg_address): Add address_reloaded
26026 parameter and return true there if the full address has been
26028 (find_reloads_toplev): Pass address_reloaded flag.
26029 (find_reloads_address_1): Don't use address_reloaded parameter.
26031 2011-03-24 Jeff Law <law@redhat.com>
26033 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
26034 unused variable "ann".
26035 (remove_unused_locals): Likewise.
26037 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
26040 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
26043 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26045 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
26046 for invalid symbolic addresses.
26047 (s390_secondary_reload): Don't use s390_check_symref_alignment for
26050 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
26052 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
26053 the argument in calls to fold_truth_not_expr.
26055 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
26057 * tree.c (record_node_allocation_statistics): New function.
26058 (make_node_stat, copy_node_stat, build_string): Call it.
26059 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
26060 (build1_stat, build_omp_clause): Likewise.
26062 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
26064 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
26067 2011-03-24 Richard Guenther <rguenther@suse.de>
26069 PR tree-optimization/48271
26070 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
26071 blocks that still exist.
26073 2011-03-24 Richard Guenther <rguenther@suse.de>
26075 PR tree-optimization/48270
26076 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
26077 not free datarefs before ddrs.
26079 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
26081 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
26082 from the address built for a reference with variable offset.
26084 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
26087 * config/i386/i386.md (*movdf_internal_rex64): Do not split
26088 alternatives that can be handled with movq or movabsq insn.
26089 (*movdf_internal): Disable for !TARGET_64BIT.
26090 (*movdf_internal_nointeger): Ditto.
26091 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
26093 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
26095 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26096 (FUNCTION_ARG_ADVANCE): Likewise.
26097 * tm.texi.in: Change references to them to hook references.
26098 * tm.texi: Regenerate.
26099 * targhooks.c (default_function_arg): Eliminate check for target macro.
26100 (default_function_incoming_arg): Likewise.
26101 (default_function_arg_advance): Likewise.
26102 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26103 (function_arg_advance): Likewise.
26104 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26106 2011-03-24 Richard Guenther <rguenther@suse.de>
26108 PR middle-end/48269
26109 * tree-object-size.c (addr_object_size): Do not double-account
26110 for MEM_REF offsets.
26112 2011-03-24 Diego Novillo <dnovillo@google.com>
26114 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
26115 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
26116 (lto_input_data_block): Move from lto-opts.c. Make extern.
26118 (lto_input_string): Rename from input_string. Make extern.
26120 * lto-streamer-out.c (lto_output_string_with_length): Rename from
26121 output_string_with_length.
26122 Output 0 to indicate a non-NULL string. Update all callers to
26124 (lto_output_string): Rename from output_string. Make extern.
26126 (lto_output_decl_state_streams): Make extern.
26127 (lto_output_decl_state_refs): Make extern.
26128 * lto-streamer.h (lto_input_string): Declare.
26129 (lto_input_data_block): Declare.
26130 (lto_output_string): Declare.
26131 (lto_output_string_with_length): Declare.
26132 (lto_output_decl_state_streams): Declare.
26133 (lto_output_decl_state_refs): Declare.
26135 2011-03-24 Richard Guenther <rguenther@suse.de>
26137 PR tree-optimization/46562
26138 * tree.c (build_invariant_address): New function.
26139 * tree.h (build_invariant_address): Declare.
26140 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
26141 a renamed function moved ...
26142 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
26143 Take valueization callback parameter.
26144 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
26145 * gimple-fold.h: New file.
26146 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
26147 (ccp_fold, fold_const_aggregate_ref,
26148 fold_ctor_reference, fold_nonarray_ctor_reference,
26149 fold_array_ctor_reference, fold_string_cst_ctor_reference,
26150 get_base_constructor): Move ...
26151 * gimple-fold.c: ... here.
26152 (gimple_fold_stmt_to_constant_1): New function
26153 split out from ccp_fold. Take a valueization callback parameter.
26154 Valueize all operands.
26155 (gimple_fold_stmt_to_constant): New wrapper function.
26156 (fold_const_aggregate_ref_1): New function split out from
26157 fold_const_aggregate_ref. Take a valueization callback parameter.
26158 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
26159 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
26160 invariant POINTER_PLUS_EXPRs to invariant form.
26161 (vn_valueize): New function.
26162 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
26163 * tree-vrp.c (vrp_valueize): New function.
26164 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
26165 to fold statements to constants.
26166 * tree-ssa-pre.c (eliminate): Properly guard propagation of
26167 function declarations.
26168 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
26169 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
26171 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
26173 * config/h8300/predicates.md (jump_address_operand): Fix register
26176 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
26178 * doc/invoke.texi (max-stores-to-sink): Document.
26179 * params.h (MAX_STORES_TO_SINK): Define.
26180 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
26181 if either vectorization or if-conversion is disabled.
26182 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
26183 tree-vect-data-refs.c vect_equal_offsets.
26184 (dr_equal_offsets_p): New function.
26185 (find_data_references_in_bb): Remove static.
26186 * tree-data-ref.h (find_data_references_in_bb): Declare.
26187 (dr_equal_offsets_p): Likewise.
26188 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
26189 (vect_drs_dependent_in_basic_block): Update calls to
26190 vect_equal_offsets.
26191 (vect_check_interleaving): Likewise.
26192 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
26193 (cond_if_else_store_replacement): Rename to...
26194 (cond_if_else_store_replacement_1): ... this. Change arguments and
26196 (cond_if_else_store_replacement): New function.
26197 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
26198 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
26200 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
26203 * config/arm/arm.md (casesi): Use the gen_int_mode() function
26204 to subtract lower bound instead of GEN_INT().
26206 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
26211 * doc/extend.texi (Alignment): Move section to match order in TOC.
26212 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
26213 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
26215 2011-03-23 Jeff Law <law@redhat.com>
26217 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
26218 before removing the edge.
26220 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
26221 it may have been freed by redirect_branch_edge or
26222 redirect_edge_succ_nodup.
26224 2011-03-23 Richard Guenther <rguenther@suse.de>
26226 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
26227 (check_va_list_escapes): Likewise.
26228 (check_all_va_list_escapes): Likewise.
26230 2011-03-23 Richard Guenther <rguenther@suse.de>
26232 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
26233 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
26234 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
26235 (alias.o): Likewise.
26236 (ipa-type-escape.o): Remove.
26237 (ipa-struct-reorg.o): Likewise.
26238 (GTFILES): Remove ipa-struct-reorg.c.
26239 * alias.c: Do not include ipa-type-escape.h.
26240 * tree-ssa-alias.c: Likewise.
26241 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
26242 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
26243 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
26244 and ipa-type-escape passes.
26245 * tree-pass.h (pass_ipa_type_escape): Remove.
26246 (pass_ipa_struct_reorg): Likewise.
26247 * ipa-struct-reorg.h: Remove.
26248 * ipa-struct-reorg.c: Likewise.
26249 * ipa-type-escape.h: Likewise.
26250 * ipa-type-escape.c: Likewise.
26251 * doc/invoke.texi (-fipa-struct-reorg): Remove.
26252 (--param struct-reorg-cold-struct-ratio): Likewise.
26253 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26254 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26255 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
26257 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26259 * config/s390/2084.md: Enable all insn reservations also for z9_ec
26260 cpu attribute value.
26261 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
26262 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
26263 * config/s390/s390.c (processor_flags_table): New constant array.
26264 (s390_handle_arch_option): Remove.
26265 (s390_handle_option): Remove s390_handle_arch_option invocations
26266 and OPT_mwarn_framesize_ handling.
26267 (s390_option_override): Remove s390_handle_arch_option invocation.
26268 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
26270 * config/s390/s390.md (cpu attribute): Add z9_ec value.
26271 * config/s390/s390.opt (s390_tune, s390_arch)
26272 (march=): Replace s390_arch_option enum and values with
26273 processor_type. Set variable name to s390_arch. Set
26274 initialization value.
26275 (mtune=): Replace s390_arch_option with processor_type. Set
26276 variable name to s390_tune. Set initialization value.
26278 2011-03-23 Julian Brown <julian@codesourcery.com>
26280 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
26281 accesses which are not naturally aligned.
26283 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
26286 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
26288 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
26290 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
26291 parameter from "int" to "enum insn_code".
26292 (expand_operand_type): New enum.
26293 (expand_operand): New structure.
26294 (create_expand_operand): New function.
26295 (create_fixed_operand, create_output_operand): Likewise
26296 (create_input_operand, create_convert_operand_to): Likewise.
26297 (create_convert_operand_from, create_address_operand): Likewise.
26298 (create_integer_operand): Likewise.
26299 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
26300 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26301 (expand_insn, expand_jump_insn): Likewise.
26302 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
26303 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
26304 (expand_movstr, expand_builtin___clear_cache): Likewise.
26305 (expand_builtin_lock_release): Likewise.
26306 * explow.c (allocate_dynamic_stack_space): Likewise.
26307 (probe_stack_range): Likewise. Allow check_stack to FAIL,
26308 and use the default handling in that case.
26309 * expmed.c (check_predicate_volatile_ok): Delete.
26310 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
26311 (emit_cstore): Likewise.
26312 * expr.c (emit_block_move_via_movmem): Likewise.
26313 (set_storage_via_setmem, expand_assignment): Likewise.
26314 (emit_storent_insn, try_casesi): Likewise.
26315 (emit_single_push_insn): Likewise. Allow the expansion to fail.
26316 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
26317 (expand_vec_shift_expr, expand_binop_directly): Likewise.
26318 (expand_twoval_unop, expand_twoval_binop): Likewise.
26319 (expand_unop_direct, emit_indirect_jump): Likewise.
26320 (emit_conditional_move, vector_compare_rtx): Likewise.
26321 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
26322 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
26323 (expand_sync_lock_test_and_set): Likewise.
26324 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
26325 (emit_unop_insn): Likewise.
26326 (expand_copysign_absneg): Change icode to an insn_code.
26327 (create_convert_operand_from_type): New function.
26328 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
26329 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26330 (expand_insn, expand_jump_insn): Likewise.
26331 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
26332 than const_int_operand for operand 2.
26334 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26336 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
26339 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26341 * emit-rtl.c (emit_pattern_before_noloc): New function.
26342 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
26343 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
26344 (emit_pattern_after_noloc): New function.
26345 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
26346 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
26348 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26350 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
26351 (__ffsDI2): Likewise.
26353 2011-03-22 Richard Henderson <rth@redhat.com>
26355 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
26356 of !TARGET_ABI_OPEN_VMS.
26357 (alpha_trampoline_init, alpha_start_function): Likewise.
26358 (alpha_expand_epilogue, alpha_file_start): Likewise.
26359 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
26360 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
26361 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
26362 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
26363 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
26365 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26367 * config/s390/s390-opts.h: New.
26368 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
26369 s390_arch_flags, s390_warn_framesize, s390_stack_size,
26370 s390_stack_guard): Remove.
26371 (s390_handle_arch_option): Return void. Take enum
26372 s390_arch_option value instead of string and searching array.
26373 (s390_handle_option): Don't assert that global structures are in
26374 use. Access variables via opts pointer. Use error_at. Don't use
26375 sscanf for -mstack-guard= or -mstack-size=. Update call to
26376 s390_handle_arch_option.
26377 (s390_option_override): Update call to s390_handle_arch_option.
26378 (s390_emit_prologue): Use %d format for s390_stack_size in
26379 diagnostic. Use %wd for HOST_WIDE_INT.
26380 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
26381 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
26382 * config/s390/s390.opt (config/s390/s390-opts.h): New
26383 HeaderInclude entry.
26384 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
26385 s390_arch_flags, s390_warn_framesize): New Variable entries.
26386 (s390_arch_option): New Enum and EnumValue entries.
26387 (march=): Use Enum instead of Var.
26388 (mstack-guard=, mstack-size=): Use UInteger and Var.
26389 (mtune=): Use Enum.
26391 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26393 * config/score/score.c (score_handle_option): Don't assert that
26394 global structures are in use. Access target_flags via opts
26395 pointer. Use value of -march= option to determine target_flags
26397 * config/score/score.opt (march=): Use Enum.
26398 (score_arch): New Enum and EnumValue entries.
26400 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26402 * config/mep/mep.c (option_mtiny_specified): Remove.
26403 (mep_option_override): Move register handling for -mivc2 from
26404 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
26405 instead of option_mtiny_specified.
26406 (mep_handle_option): Access target_flags via opts pointer. Don't
26407 assert that global structures are in use. Defer part of -mivc2
26408 handling and move it to mep_option_override.
26409 * config/mep/mep.opt (IVC2): New Mask entry.
26410 (mivc2): Use Var and Defer instead of Mask.
26412 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26414 * config/v850/v850-opts.h: New.
26415 * config/v850/v850.c (small_memory): Replace with
26416 small_memory_physical_max array. Make that array static const.
26417 (v850_handle_memory_option): Take integer value of argument. Take
26418 gcc_options pointer, option text and location. Return void.
26419 Update for changes to small memory structures.
26420 (v850_handle_option): Access target_flags via opts pointer. Don't
26421 assert that global structures are in use. Update calls to
26422 v850_handle_memory_option.
26423 (v850_encode_data_area): Update references to small memory settings.
26424 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
26425 (enum small_memory_type): Move to v850-opts.h.
26426 * config/v850/v850.opt (config/v850/v850-opts.h): New
26427 HeaderInclude entry.
26428 (small_memory_max): New Variable entry.
26429 (msda): Replace by pair of options msda= and msda-. Use UInteger.
26430 (mtda, mzda): Likewise.
26432 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26434 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
26435 pointer. Don't assert that global structures are in use.
26437 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26439 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
26440 via opts pointer. Don't assert that global structures are in use.
26442 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26444 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
26445 (munix=93): Use Var.
26446 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
26447 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
26448 * config/pa/pa-opts.h: New.
26449 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
26450 (pa_handle_option): Don't assert that global structures are in
26451 use. Access target_flags via opts pointer. Don't handle
26452 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
26454 (pa_option_override): Handle deferred OPT_mfixed_range_.
26456 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26458 * config/mn10300/mn10300-opts.h: New.
26459 * config/mn10300/mn10300.c (mn10300_processor,
26460 mn10300_tune_string): Remove.
26461 (mn10300_handle_option): Don't assert that global structures are
26462 in use. Access mn10300_processor via opts pointer. Don't handle
26464 * config/mn10300/mn10300.h (enum processor_type): Move to
26466 (mn10300_processor): Remove.
26467 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
26468 HeaderInclude entry.
26469 (mn10300_processor): New Variable entry.
26472 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26474 * config/microblaze/microblaze.c: Don't include opts.h.
26475 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
26476 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
26477 (mno-clearbss): Use Var and Warn.
26479 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26481 * config/m32r/m32r-opts.h: New.
26482 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
26483 (m32r_handle_option): Don't assert that global structures are in
26484 use. Access target_flags and m32r_cache_flush_func via opts
26485 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
26486 OPT_mno_flush_trap here.
26487 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
26488 include of m32r-opts.h.
26489 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
26490 HeaderInclude entry.
26491 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
26492 (mmodel=): Use Enum and Var.
26493 (m32r_model): New Enum and EnumValue entries.
26494 (mno-flush-trap): Use Var.
26495 (msdata=): Use Enum and Var.
26496 (m32r_sdata): New Enum and EnumValue entries.
26498 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26500 * config/m32c/m32c.c: Don't include opts.h.
26501 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
26502 m32c_handle_option): Remove.
26503 (m32c_option_override): Check global_options_set.x_target_memregs
26504 instead of target_memregs_set.
26505 * config/m32c/m32c.h (target_memregs): Remove.
26506 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
26509 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26511 * config/iq2000/iq2000-opts.h: New.
26512 * config/iq2000/iq2000.c: Don't include opts.h.
26513 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
26514 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
26515 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
26516 HeaderInclude entry.
26517 (iq2000_tune): New Variable entry.
26518 (march=): Add comment. Use Enum.
26519 (iq2000_arch): New Enum and EnumValue entries.
26520 (mcpu=): Use Enum and Var.
26521 (iq2000_tune): New Enum and EnumValue entries.
26523 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26525 * config/ia64/ia64-opts.h: New.
26526 * config/ia64/ia64.c (ia64_tune): Remove.
26527 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
26528 here. Use error_at.
26529 (ia64_option_override): Handle deferred OPT_mfixed_range_.
26530 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
26531 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
26532 HeaderInclude entry.
26533 (ia64_tune): New Variable entry.
26534 (mfixed-range=): Use Defer and Var.
26535 (mtune=): Use Enum and Var.
26536 (ia64_tune): New Enum and EnumValue entries.
26538 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26540 * config/frv/frv-opts.h: New.
26541 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
26543 (frv_cpu_type): Remove.
26544 * config/frv/frv.c: Don't include opts.h.
26545 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
26546 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
26547 (frv_cpu_type): New Variable entry.
26548 (frv_cpu): New Enum and EnumValue entries.
26550 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26552 * config/cris/cris.c (cris_handle_option): Access target_flags via
26553 opts pointer. Don't assert that global structures are in use.
26554 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
26555 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
26557 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26559 * config/bfin/bfin-opts.h: New.
26560 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
26561 bfin_si_revision, bfin_workarounds): Remove.
26562 (bfin_cpus): Make static const.
26563 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
26564 not bfin_lib_id_given.
26565 (bfin_handle_option): Don't set bfin_lib_id_given. Access
26566 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
26567 pointer. Use error_at. Don't assert that global structures are in use.
26568 * config/bfin/bfin.h: Include bfin-opts.h.
26569 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
26570 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
26571 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
26572 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
26575 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26577 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
26578 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
26579 or -msoft-float here.
26580 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
26581 -msoft-float and -mhard-float.
26582 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
26583 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26585 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
26587 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
26588 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
26590 (LIBGCC_SPEC): Don't handle -msoft-float.
26591 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
26593 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26595 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
26596 -mfloat-abi=*, not -msoft-float and -mhard-float.
26597 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
26599 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
26600 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
26601 mhard-float and msoft-float.
26602 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
26603 mfloat-abi=soft in comments, not mhard-float and msoft-float.
26604 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
26605 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
26607 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
26608 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
26610 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
26612 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
26615 2011-03-22 Richard Henderson <rth@redhat.com>
26617 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
26618 TARGET_ABI_WINDOWS_NT.
26619 (alpha_output_function_end_prologue): Likewise.
26620 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
26621 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
26622 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
26623 (trap, *movsi_nt_vms): Likewise.
26624 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
26625 (*tablejump_osf_nt_internal): Remove.
26626 * config/alpha/predicates.md (input_operand): Only test Pmode.
26628 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26630 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
26631 via opts pointer. Use error_at. Don't assert that global
26632 structures are in use.
26634 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26636 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
26637 (ix86_handle_option): Access ix86_isa_flags and
26638 ix86_isa_flags_explicit via opts pointer. Don't assert that
26639 global structures are in use.
26640 (ix86_function_specific_save, ix86_function_specific_restore):
26641 Update ix86_isa_flags_explicit field name.
26642 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
26643 (ix86_isa_flags_explicit): Rename TargetSave entry to
26644 x_ix86_isa_flags_explicit.
26646 2011-03-22 Richard Henderson <rth@redhat.com>
26648 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
26649 (alpha_option_override, direct_return): Likewise.
26650 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
26651 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
26652 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
26653 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
26654 (alpha_expand_epilogue, alpha_end_function): Likewise.
26655 (alpha_init_libfuncs): Likewise.
26656 (struct machine_function): Remove unicosmk members.
26657 (print_operand) ['t']: Remove.
26658 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
26659 unicosmk_output_module_name, unicosmk_output_common,
26660 current_section_align, unicosmk_output_text_section_asm_op,
26661 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
26662 unicosmk_section_type_flags, unicosmk_unique_section,
26663 unicosmk_asm_named_section, unicosmk_insert_attributes,
26664 unicosmk_output_align, unicosmk_defer_case_vector,
26665 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
26666 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
26667 unicosmk_output_ssib, unicosmk_add_call_info_word,
26668 unicosmk_extern_head, unicosmk_output_default_externs,
26669 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
26670 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
26671 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
26672 * config/alpha/alpha-protos.h: Update.
26673 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
26674 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
26675 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
26676 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
26677 (*mulsi_se, mulvsi3): Likewise.
26678 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
26679 (*divmodsi_internal, call, call_value, realign): Likewise.
26680 (moddi3, umoddi3): Likewise; remove duplicate expander.
26681 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
26682 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
26683 (*movdi_nofix): Remove r/U alternative.
26684 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
26685 * config/alpha/constraints.md ("U"): Remove.
26686 * config/alpha/predicates.md (call_operand"): Don't test
26687 TARGET_ABI_UNICOSMK.
26689 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26691 * target.def (handle_option): Take gcc_options and
26692 cl_decoded_option pointers and location_t.
26693 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
26694 * doc/tm.texi: Regenerate.
26695 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
26696 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
26697 * lto-opts.c (lto_reissue_options): Generate option structure for
26698 targetm.handle_option call.
26699 * opts.c (target_handle_option): Update call to
26700 targetm.handle_option. Remove assertions about values now passed
26702 * targhooks.c (default_target_handle_option): New.
26703 * targhooks.h (default_target_handle_option): Declare.
26704 * config/alpha/alpha.c: Include opts.h.
26705 (alpha_handle_option): Update to new hook interface.
26706 * config/arm/arm.c: Include opts.h.
26707 (arm_handle_option): Update to new hook interface.
26708 * config/arm/t-arm (arm.o): Update dependencies.
26709 * config/bfin/bfin.c: Include opts.h.
26710 (bfin_handle_option): Update to new hook interface.
26711 * config/cris/cris.c: Include opts.h.
26712 (cris_handle_option): Update to new hook interface.
26713 * config/frv/frv.c: Include opts.h.
26714 (frv_handle_option): Update to new hook interface.
26715 * config/i386/i386.c: Include opts.h.
26716 (ix86_handle_option): Update to new hook interface.
26717 (ix86_valid_target_attribute_inner_p): Generate option structure
26718 for call to ix86_handle_option.
26719 * config/i386/t-i386 (i386.o): Update dependencies.
26720 * config/ia64/ia64.c: Include opts.h.
26721 (ia64_handle_option): Update to new hook interface.
26722 * config/ia64/t-ia64 (ia64.o): Update dependencies.
26723 * config/iq2000/iq2000.c: Include opts.h.
26724 (iq2000_handle_option): Update to new hook interface.
26725 * config/m32c/m32c.c: Include opts.h.
26726 (m32c_handle_option): Update to new hook interface.
26727 * config/m32r/m32r.c: Include opts.h.
26728 (m32r_handle_option): Update to new hook interface.
26729 * config/m68k/m68k.c: Include opts.h.
26730 (m68k_handle_option): Update to new hook interface.
26731 * config/mep/mep.c: Include opts.h.
26732 (mep_handle_option): Update to new hook interface.
26733 * config/microblaze/microblaze.c: Include opts.h.
26734 (microblaze_handle_option): Update to new hook interface.
26735 * config/mips/mips.c: Include opts.h.
26736 (mips_handle_option): Update to new hook interface.
26737 * config/mn10300/mn10300.c: Include opts.h.
26738 (mn10300_handle_option): Update to new hook interface.
26739 * config/pa/pa.c: Include opts.h.
26740 (pa_handle_option): Update to new hook interface.
26741 * config/pdp11/pdp11.c: Include opts.h.
26742 (pdp11_handle_option): Update to new hook interface.
26743 * config/rs6000/rs6000.c: Include opts.h.
26744 (rs6000_handle_option): Update to new hook interface.
26745 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
26746 * config/rx/rx.c: Include opts.h.
26747 (rx_handle_option): Update to new hook interface.
26748 * config/s390/s390.c: Include opts.h.
26749 (s390_handle_option): Update to new hook interface.
26750 * config/score/score.c: Include opts.h.
26751 (score_handle_option): Update to new hook interface.
26752 * config/sh/sh.c: Include opts.h.
26753 (sh_handle_option): Update to new hook interface.
26754 * config/sparc/sparc.c: Include opts.h.
26755 (sparc_handle_option): Update to new hook interface.
26756 * config/v850/v850.c: Include opts.h.
26757 (v850_handle_option): Update to new hook interface.
26759 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26761 * gcc.c (driver_unknown_option_callback): Only permit and save
26762 unknown -Wno- options.
26763 (driver_wrong_lang_callback): Save options directly instead of via
26764 driver_unknown_option_callback.
26766 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
26768 * combine.c (simplify_set): Try harder to find the best CC mode when
26769 simplifying a nested COMPARE on the RHS.
26771 2011-03-22 Joseph Myers <joseph@codesourcery.com>
26773 * config/alpha/gnu.h: Remove.
26774 * config/arc: Remove directory.
26775 * config/arm/netbsd.h: Remove.
26776 * config/arm/t-pe: Remove.
26777 * config/crx: Remove directory.
26778 * config/i386/netbsd.h: Remove.
26779 * config/m68hc11: Remove directory.
26780 * config/m68k/uclinux-oldabi.h: Remove.
26781 * config/mcore/mcore-pe.h: Remove.
26782 * config/mcore/t-mcore-pe: Remove.
26783 * config/netbsd-aout.h: Remove.
26784 * config/rs6000/gnu.h: Remove.
26785 * config/sh/sh-symbian.h: Remove.
26786 * config/sh/symbian-base.c: Remove.
26787 * config/sh/symbian-c.c: Remove.
26788 * config/sh/symbian-cxx.c: Remove.
26789 * config/sh/symbian-post.h: Remove.
26790 * config/sh/symbian-pre.h: Remove.
26791 * config/sh/t-symbian: Remove.
26792 * config/svr3.h: Remove.
26793 * config/vax/netbsd.h: Remove.
26794 * config.build: Don't handle i[34567]86-*-pe.
26795 * config.gcc: Remove handling of deprecations for most deprecated
26797 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
26798 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
26799 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
26800 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
26801 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
26802 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
26804 * config.host: Don't handle i[34567]86-*-pe.
26805 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
26806 (ASM_SPEC32): Don't handle -mcall-gnu.
26807 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
26809 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
26810 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
26811 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
26812 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
26813 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
26814 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
26815 conditional on SYMBIAN.
26816 * configure.ac: Don't handle powerpc*-*-gnu*.
26817 * configure: Regenerate.
26818 * doc/extend.texi (interrupt attribute): Don't mention CRX.
26819 * doc/install-old.texi (m6811, m6812): Don't mention.
26820 * doc/install.texi (arc-*-elf*): Don't document multilib option.
26821 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
26822 (m68k-uclinuxoldabi): Don't mention.
26823 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
26825 (-mcall-gnu): Remove.
26826 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
26827 families): Remove constraint documentation.
26829 2011-03-22 Marius Strobl <marius@FreeBSD.org>
26831 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
26832 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
26833 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
26835 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26838 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
26839 vector when peeking at the next token for vector, don't expand the
26842 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
26844 * config/avr/avr-protos.h (expand_epilogue): Change prototype
26845 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
26846 * config/avr/avr.c (init_cumulative_args)
26847 (avr_function_arg_advance): Use it.
26848 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
26850 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
26851 (avr_function_ok_for_sibcall): ...this new function.
26852 (avr_lookup_function_attribute1): New static Function.
26853 (avr_naked_function_p, interrupt_function_p)
26854 (signal_function_p, avr_OS_task_function_p)
26855 (avr_OS_main_function_p): Use it.
26856 * config/avr/avr.md ("sibcall", "sibcall_value")
26857 ("sibcall_epilogue"): New expander.
26858 ("*call_insn", "*call_value_insn"): New insn.
26859 ("call_insn", "call_value_insn"): Remove
26860 ("call", "call_value", "epilogue"): Change expander to handle
26863 2011-03-21 Nick Clifton <nickc@redhat.com>
26865 * doc/invoke.texi (Overall Options): Move closing brace to end of
26867 (Optimization Options): Add missing @gol.
26868 (Directory Options): Likewise.
26869 (i386 and x86-64 Options): Likewise.
26870 (RS6000 and PowerPC Options): Likewise.
26871 (i386 and x86-64 Windows Options): Likewise.
26872 (V850 Options): Add text missing from descriptions.
26874 2011-03-22 Richard Henderson <rth@redhat.com>
26876 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
26877 (avr_incoming_return_addr_rtx): New.
26878 (emit_push_byte): New.
26879 (expand_prologue): Use it. Remove incorrect dwarf annotation for
26880 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
26881 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
26882 (emit_pop_byte): New.
26883 (expand_epilogue): Use it. Pop frame pointer by bytes.
26884 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
26885 (INCOMING_RETURN_ADDR_RTX): New.
26886 (INCOMING_FRAME_SP_OFFSET): New.
26887 (ARG_POINTER_CFA_OFFSET): New.
26888 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26889 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26892 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26894 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26896 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26897 (FUNCTION_ARG_ADVANCE): Likewise.
26898 * tm.texi.in: Change references to them to hook references.
26899 * tm.texi: Regenerate.
26900 * targhooks.c (default_function_arg): Eliminate check for target
26902 (default_function_incoming_arg): Likewise.
26903 (default_function_arg_advance): Likewise.
26904 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26905 (function_arg_advance): Likewise.
26906 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26908 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
26910 * tree.c (build_call_1): New function.
26911 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26913 2011-03-22 Richard Guenther <rguenther@suse.de>
26915 PR tree-optimization/48228
26916 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26917 for single-arg PHIs.
26919 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
26921 PR rtl-optimization/48143
26922 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26923 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26924 sse2_cvtps2pd): Likewise.
26926 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26928 * recog.c (canonicalize_change_group): Use validate_unshare_change.
26930 2011-03-22 Richard Guenther <rguenther@suse.de>
26932 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26933 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26934 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26935 and REALIGN_LOAD_EXPR.
26936 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26937 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26938 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26939 DOT_PROD_EXPR case ...
26940 (expand_expr_real_2): ... here.
26941 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26942 and REALIGN_LOAD_EXPR.
26943 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26944 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26945 (vect_create_epilog_for_reduction): Likewise.
26946 (vectorizable_reduction): Likewise.
26947 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26948 * tree-vect-stmts.c (vectorizable_load): Likewise.
26950 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
26952 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26954 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26956 * config/s390/s390.c (s390_delegitimize_address): Fix offset
26957 handling for PLTOFF/GOTOFF.
26959 2011-03-22 Nick Clifton <nickc@redhat.com>
26961 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26962 trailing backslash from the end of the macro definition.
26964 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26966 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26969 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
26971 * expr.h (prepare_operand): Move to...
26972 * optabs.h (prepare_operand): ...here and change the insn code
26973 parameter from "int" to "enum insn_code".
26974 (insn_operand_matches): Declare.
26975 * expr.c (init_expr_target): Use insn_operand_matches.
26976 (compress_float_constant): Likewise.
26977 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26978 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
26979 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
26980 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
26982 (gen_cond_trap): Likewise.
26983 (prepare_operand): Likewise. Change icode to an insn_code.
26984 (insn_operand_matches): New function.
26985 * reload.c (find_reloads_address_1): Use insn_operand_matches.
26986 * reload1.c (gen_reload): Likewise.
26987 * targhooks.c (default_secondary_reload): Likewise.
26989 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
26991 * config/alpha/alpha.md (unspec): New define_c_enum.
26994 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
26997 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
26998 between a call and its CALL_ARG_LOCATION note.
27000 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
27002 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
27004 2011-03-21 Jakub Jelinek <jakub@redhat.com>
27008 * c-common.c (shorten_compare): If primopN is first sign-extended
27009 to opN and then zero-extended to result type, set primopN to opN.
27011 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
27013 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
27014 for barrier handlers.
27016 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
27018 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
27019 UNSPEC constants to be in the unspec enumeration, and redefine
27020 all UNSPECV constants to be in the unspecv enumeration, so that
27021 dumps print which unspec/unspec_volatile this is.
27022 * config/rs6000/vector.md (UNSPEC_*): Ditto.
27023 * config/rs6000/paired.md (UNSPEC_*): Ditto.
27024 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
27025 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
27026 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
27028 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
27029 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
27030 UNSPECV_LWSYNC, since these are used as unspec_volatile.
27031 * config/rs6000/sync.md (isync, lwsync): Ditto.
27033 2011-03-21 Richard Guenther <rguenther@suse.de>
27035 * params.def (lto-min-partition): Fix typo.
27037 2011-03-21 Richard Guenther <rguenther@suse.de>
27040 * c-decl.c (grokdeclarator): Drop to the main variant only
27041 for array types. Drop flag_gen_aux_info check.
27043 2011-03-21 Richard Guenther <rguenther@suse.de>
27045 PR translation/47911
27046 * params.def (lto-partitions): Fix typo.
27047 (lto-min-partition): Fix wording.
27049 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
27051 * config/rs6000/t-freebsd: Remove duplication from file.
27053 2011-03-21 Richard Guenther <rguenther@suse.de>
27055 PR middle-end/47661
27056 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
27058 2011-03-21 Richard Guenther <rguenther@suse.de>
27061 * params.def (lto-partitions): Require at least 1 partition.
27063 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27065 * gthr-solaris.h: Remove.
27066 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
27067 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
27068 (LIB_SPEC): Likewise.
27069 * config/sol2.opt (threads): Remove.
27070 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
27071 (sparc*-*-solaris2*): Likewise.
27072 * configure.ac (enable_threads): Enable solaris support.
27073 * configure: Regenerate.
27074 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
27075 * doc/install.texi (Configuration, --enable-threads=lib): Remove
27078 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27080 * config.gcc: Obsolete *-*-solaris2.8*.
27081 * doc/install.texi (Specific, *-*-solaris2*): Document it.
27083 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27086 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
27087 reference. Solaris 8 perl works.
27089 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27092 * doc/install.texi (Prerequisites): Move jar etc. up.
27093 Explain support library version requirements.
27095 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27098 * doc/install.texi (Prerequisites): Move Perl to build
27099 requirements. Always necessary on Solaris 2 with Sun ld.
27101 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27103 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
27105 (Specific, i?86-*-solaris2.[89]): Likewise.
27106 (Specific, i?86-*-solaris2.10): Likewise.
27107 (Specific, mips-sgi-irix6): Likewise.
27108 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
27109 Update for binutils 2.21.
27111 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27113 * configure.ac (gcc_cv_lto_plugin): Fix typo.
27114 Allow -fuse-linker-plugin for non-default plugin linker.
27115 * configure: Regenerate.
27117 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
27120 * gengtype.c (files_rules): Added rule for cp/parser.h.
27122 2011-03-21 Jakub Jelinek <jakub@redhat.com>
27125 * config/s390/s390.c (s390_delegitimize_address): Don't call
27126 lowpart_subreg if orig_x has BLKmode.
27128 2011-03-21 Kai Tietz <ktietz@redhat.com>
27131 * doc/plugins.texi: Adjust documentation for plugin register_callback.
27132 * tree.h (attribute_spec): Add new member affects_type_identity.
27133 * attribs.c (empty_attribute_table): Adjust attribute_spec
27135 * config/alpha/alpha.c: Likewise.
27136 * config/arc/arc.c: Likewise.
27137 * config/arm/arm.c: Likewise.
27138 * config/avr/avr.c: Likewise.
27139 * config/bfin/bfin.c: Likewise.
27140 * config/crx/crx.c: Likewise.
27141 * config/darwin.h: Likewise.
27142 * config/h8300/h8300.c: Likewise.
27143 * config/i386/cygming.h: Likewise.
27144 * config/i386/i386.c: Likewise.
27145 * config/ia64/ia64.c: Likewise.
27146 * config/m32c/m32c.c: Likewise.
27147 * config/m32r/m32r.c: Likewise.
27148 * config/m68hc11/m68hc11.c: Likewise.
27149 * config/m68k/m68k.c: Likewise.
27150 * config/mcore/mcore.c: Likewise.
27151 * config/mep/mep.c: Likewise.
27152 * config/microblaze/microblaze.c: Likewise.
27153 * config/mips/mips.c: Likewise.
27154 * config/rs6000/rs6000.c: Likewise.
27155 * config/rx/rx.c: Likewise.
27156 * config/sh/sh.c: Likewise.
27157 * config/sol2.h: Likewise.
27158 * config/sparc/sparc.c: Likewise.
27159 * config/spu/spu.c: Likewise.
27160 * config/stormy16/stormy16.c: Likewise.
27161 * config/v850/v850.c: Likewise.
27163 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
27165 * simplify-rtx.c (simplify_binary_operation_1): Handle
27166 (xor (and A B) C) case when B and C are both constants.
27168 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
27170 * tree-dfa.c (add_referenced_var): Fix typo in comment.
27172 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
27175 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
27177 2011-03-20 Jakub Jelinek <jakub@redhat.com>
27179 PR rtl-optimization/48156
27180 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
27181 assume df and df_lr are not NULL.
27183 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27186 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
27187 between a call and its CALL_ARG_LOCATION note.
27189 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
27192 * config/sh/sh.c (find_barrier): Don't emit a constant pool
27193 between a call and its corresponding CALL_ARG_LOCATION note.
27195 2011-03-19 Anatoly Sokolov <aesok@post.ru>
27197 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
27198 instead of loop. Use HARD_REGISTER_NUM_P predicate.
27199 * haifa-sched.c (setup_ref_regs): Ditto.
27200 * caller-save.c (add_used_regs_1): Ditto.
27201 * dse.c (look_for_hardregs): Ditto.
27202 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
27203 * sched-rgn.c (check_live_1): Ditto.
27205 2011-03-18 Joseph Myers <joseph@codesourcery.com>
27207 * c-decl.c (diagnose_mismatched_decls): Give an error for
27208 redefining a typedef with variably modified type.
27210 2011-03-18 Joseph Myers <joseph@codesourcery.com>
27212 * c-decl.c (grokfield): Don't allow typedefs for structures or
27213 unions with no tag by default.
27214 * doc/extend.texi (Unnamed Fields): Update.
27216 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
27218 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
27219 Rewrite using indirect functions.
27220 (lwp_slwpcb): Ditto.
27221 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
27222 (avx_vinsertf128<mode>): Ditto.
27224 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27226 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
27229 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27231 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
27232 splitting between a call and its corresponding CALL_ARG_LOCATION note.
27234 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
27236 PR rtl-optimization/48170
27237 * gcse.c (hoist_code): Remove bogus asserts.
27239 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
27241 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
27242 computation for prologue/epilogue.
27244 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27246 * Makefile.in (check-consistency): Remove.
27248 2011-03-18 Jakub Jelinek <jakub@redhat.com>
27251 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
27252 arange_table_in_use is 0, but either text_section_used or
27253 cold_text_section_used is true. Don't call it if
27254 !info_section_emitted.
27256 2011-03-18 Anatoly Sokolov <aesok@post.ru>
27258 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
27259 FUNCTION_VALUE_REGNO_P): Remove.
27260 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
27262 * config/avr/avr.c (avr_ret_register): Make static inline.
27263 (avr_function_value_regno_p): New function.
27264 (avr_libcall_value): Make static. Add 'func' argument.
27265 (avr_function_value): Make static. Rename 'func' argument to
27266 'fn_decl_or_type', forward it to avr_libcall_value. Call
27267 avr_ret_register function instead of RET_REGISTER macro.
27268 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27270 2011-03-18 Jason Merrill <jason@redhat.com>
27273 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
27275 2011-03-18 Richard Guenther <rguenther@suse.de>
27277 * doc/install.texi (--enable-gold): Remove.
27278 (--with-plugin-ld): Document.
27279 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
27281 2011-03-18 Andrew Pinski <pinskia@gmail.com>
27283 PR middle-end/47790
27284 * expr.c (optimize_bitfield_assignment_op): Revamp to work
27285 again after expansion changes.
27287 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
27289 * combine.c (try_combine): Do simplification only call of
27290 subst() on i2 even when i1 is present. Update comments.
27292 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
27294 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
27295 and UNSPEC_PCREL_SYMOFF.
27297 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27299 * config/s390/s390.md: Use define_c_enum for the unspec constant
27302 2011-03-18 Richard Henderson <rth@redhat.com>
27303 Jakub Jelinek <jakub@redhat.com>
27306 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
27307 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
27309 2011-03-17 Anatoly Sokolov <aesok@post.ru>
27311 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27312 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
27313 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
27314 Change return type to bool.
27315 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27317 2011-03-17 Jakub Jelinek <jakub@redhat.com>
27320 * var-tracking.c (prepare_call_arguments): If CALL target
27321 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
27322 pc instead of looking it up using cselib_lookup and use
27323 Pmode for it if x has VOIDmode.
27324 * dwarf2out.c (gen_subprogram_die): If also both first and
27325 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
27328 * function.c (assign_parms): For data.passed_pointer parms
27329 use MEM of data.entry_parm instead of data.entry_parm itself
27330 as DECL_INCOMING_RTL.
27331 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
27332 also when passed and declared mode is the same, DECL_RTL
27333 is a MEM with pseudo as address and DECL_INCOMING_RTL is
27336 2011-03-16 Jeff Law <law@redhat.com>
27338 PR rtl-optimization/37273
27339 * ira-costs.c (scan_one_insn): Detect constants living in memory and
27340 handle them like argument loads from stack slots. Do not double
27341 count memory for memory constants and argument loads from stack slots.
27343 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
27346 * var-tracking.c (prepare_call_arguments): Check SUBREG.
27348 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
27351 * config/i386/i386.opt: Add Save to -mavx and -mfma.
27353 2011-03-17 Jakub Jelinek <jakub@redhat.com>
27356 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
27358 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
27359 Clear call_arg_locations and call_arg_loc_last always.
27361 PR middle-end/48152
27362 * var-tracking.c (prepare_call_arguments): If argument needs to be
27363 passed by reference, adjust argtype and mode.
27365 2011-03-17 Richard Guenther <rguenther@suse.de>
27367 PR middle-end/48134
27368 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
27369 a value make sure to fold the statement.
27371 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
27374 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
27375 return condition with !cfun->calls_alloca.
27377 2011-03-17 Richard Guenther <rguenther@suse.de>
27380 * lto-cgraph.c (input_overwrite_node): Clear the abstract
27381 origin for decls in other ltrans units.
27382 (input_varpool_node): Likewise.
27384 2011-03-17 Richard Guenther <rguenther@suse.de>
27386 PR middle-end/48165
27387 * tree-object-size.c (compute_object_offset): Properly return
27388 the offset operand of MEM_REFs as sizetype.
27390 2011-03-17 Jakub Jelinek <jakub@redhat.com>
27392 PR rtl-optimization/48141
27393 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
27394 * dse.c: Include params.h.
27395 (active_local_stores_len): New variable.
27396 (add_wild_read, dse_step1): Clear it when setting active_local_stores
27398 (record_store, check_mem_read_rtx): Decrease it when removing
27400 (scan_insn): Likewise. Increase it when adding to chain, if it
27401 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
27402 set active_local_stores to NULL before the addition.
27403 * Makefile.in (dse.o): Depend on $(PARAMS_H).
27405 PR rtl-optimization/48141
27406 * dse.c (record_store): If no positions are needed in an insn
27407 that cannot be deleted, at least unchain it from active_local_stores.
27409 2011-03-16 Dodji Seketeli <dodji@redhat.com>
27412 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
27413 (lookup_type_die_strip_naming_typedef): ... here.
27414 (get_context_die): Use it.
27415 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
27416 the anonymous struct named by the naming typedef.
27418 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
27421 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
27422 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27424 2011-03-16 Jeff Law <law@redhat.com>
27426 * tree-vrp.c (identify_jump_threads): Slightly simplify type
27427 check for operands of conditional. Allow type to be a pointer.
27429 2011-03-16 Richard Guenther <rguenther@suse.de>
27431 PR tree-optimization/48149
27432 * fold-const.c (fold_binary_loc): Fold
27433 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
27435 2011-03-16 Richard Guenther <rguenther@suse.de>
27437 PR tree-optimization/26134
27438 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
27439 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
27440 (non_rewritable_mem_ref_base): Handle complex type component
27441 accesses, constrain offsets for vector and complex extracts
27444 2011-03-16 Richard Guenther <rguenther@suse.de>
27446 PR tree-optimization/48146
27447 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
27448 operands avoiding the need for renaming.
27450 2011-03-16 Richard Guenther <rguenther@suse.de>
27452 * gimple-fold.c (maybe_fold_reference): Open-code relevant
27453 constant folding. Move MEM_REF canonicalization first.
27454 Rely on fold_const_aggregate_ref for initializer folding.
27455 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
27457 2011-03-16 Jakub Jelinek <jakub@redhat.com>
27459 PR middle-end/48136
27460 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27461 arg0/arg1 or their arguments are always fold converted to matching
27464 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
27467 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27470 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
27471 Handle in-tree gold.
27472 (ld_vers): Extract binutils version for gold.
27473 (gcc_cv_ld_hidden): Handle gold here.
27474 (gcc_cv_lto_plugin): Determine level of linker plugin support.
27475 * configure: Regenerate.
27476 * config.in: Regenerate.
27477 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
27478 -fuse-linker-plugin otherwise.
27479 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
27480 (LINK_COMMAND_SPEC): Use it.
27481 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
27483 2011-03-16 Jakub Jelinek <jakub@redhat.com>
27485 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
27486 * calls.c: Remove debug.h include.
27487 (emit_call_1): Don't call virtual_call_token debug hook.
27488 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
27489 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
27490 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
27491 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
27492 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
27493 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
27494 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
27495 dwarf2out_virtual_call): Remove.
27496 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
27497 copy_call_info and virtual_call hooks.
27498 (dwarf2out_init): Don't initialize vcall_insn_table,
27499 debug_dcall_section and debug_vcall_section.
27500 (prune_unused_types): Don't mark nodes from dcall_table.
27501 (dwarf2out_finish): Don't output dcall or vcall tables.
27502 * final.c (final_scan_insn): Don't call direct_call or
27503 virtual_call debug hooks.
27504 * debug.h (struct gcc_debug_hooks): Remove direct_call,
27505 virtual_call_token, copy_call_info and virtual_call hooks.
27506 (debug_nothing_uid): Remove prototype.
27507 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
27508 copy_call_info and virtual_call hooks.
27509 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27510 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
27511 * debug.c (do_nothing_debug_hooks): Likewise.
27512 (debug_nothing_uid): Remove.
27513 * doc/invoke.texi (-fenable-icf-debug): Remove.
27514 * common.opt (-fenable-icf-debug): Likewise.
27516 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
27517 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
27518 call's MEM. Handle functions returning aggregate through a hidden
27519 first pointer. For virtual calls add clobbered pc to call arguments
27521 * dwarf2out.c (gen_subprogram_die): Emit
27522 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
27526 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
27527 * rtl.h (ENTRY_VALUE_EXP): Define.
27528 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
27529 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
27530 * print-rtl.c (print_rtx): Likewise.
27531 * gengtype.c (adjust_field_rtx_def): Likewise.
27532 * var-tracking.c (vt_add_function_parameter): Adjust
27533 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
27534 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
27535 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
27536 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
27537 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
27539 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
27540 Call var_location debug hook even on CALL_INSNs.
27541 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
27542 * rtl.def (ENTRY_VALUE): New.
27543 * dwarf2out.c: Include cfglayout.h.
27544 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27545 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
27546 (struct call_arg_loc_node): New type.
27547 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
27548 tail_call_site_count): New variables.
27549 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
27550 DW_TAG_GNU_call_site_parameter.
27551 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
27552 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
27553 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
27554 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
27555 and DW_AT_GNU_all_source_call_sites.
27556 (mem_loc_descriptor): Handle ENTRY_VALUE.
27557 (add_src_coords_attributes): Don't add enything if
27558 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
27559 (dwarf2out_abstract_function): Save and clear call_arg_location,
27560 call_site_count and tail_call_site_count around dwarf2out_decl call.
27561 (gen_call_site_die): New function.
27562 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
27563 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
27564 (dwarf2out_function_decl): Clear call_arg_locations,
27565 call_arg_loc_last, set call_site_count and tail_call_site_count
27566 to -1 and free block_map.
27567 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
27568 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
27569 followed by any real instructions.
27570 (dwarf2out_begin_function): Set call_site_count and
27571 tail_call_site_count to 0.
27572 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
27573 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
27574 attempt to force a DIE for it and worst case remove the attribute.
27575 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
27576 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
27578 * var-tracking.c: Include tm_p.h.
27579 (vt_stack_adjustments): For calls call note_register_arguments.
27580 (argument_reg_set): New variable.
27581 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
27582 ensure the VALUE is resolved.
27583 (call_arguments): New variable.
27584 (prepare_call_arguments): New function.
27585 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
27586 (struct expand_loc_callback_data): Add ignore_cur_loc field.
27587 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
27588 always use the best expression.
27589 (vt_expand_loc): Add ignore_cur_loc argument.
27590 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
27591 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
27592 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
27593 note for all calls.
27594 (vt_add_function_parameter): Use cselib_lookup_from_insn.
27595 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
27596 argument. Don't call cselib_preserve_only_values and
27597 cselib_reset_table.
27598 (note_register_arguments): New function.
27599 (vt_initialize): Compute argument_reg_set. Call
27600 vt_add_function_parameters before processing basic blocks instead of
27601 afterwards. For calls call prepare_call_arguments before calling
27602 cselib_process_insn.
27603 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
27604 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
27605 (var-tracking.o): Depend on $(TM_P_H).
27606 * cfglayout.h (insn_scope): New prototype.
27607 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
27608 * cfglayout.c (insn_scope): No longer static.
27609 * insn-notes.def (CALL_ARG_LOCATION): New.
27610 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
27611 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
27612 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
27613 nothing for DECL_EXTERNAL BLOCK_VARS.
27615 2011-03-16 Alan Modra <amodra@gmail.com>
27618 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
27619 create invalid offset address for vsx splat insn.
27620 * config/rs6000/predicates.md (splat_input_operand): New.
27621 * config/rs6000/vsx.md (vsx_splat_*): Use it.
27623 2011-03-15 Xinliang David Li <davidxl@google.com>
27626 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
27627 (normalize_preds): New function.
27628 (is_use_properly_guarded): Normalize def predicates.
27630 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
27633 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
27634 in the output template.
27636 2011-03-15 Richard Guenther <rguenther@suse.de>
27638 PR middle-end/47650
27639 * tree-pretty-print.c (dump_function_declaration): Properly
27640 dump unprototyped and varargs function types.
27642 2011-03-15 Richard Guenther <rguenther@suse.de>
27644 PR tree-optimization/13954
27645 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
27648 2011-03-15 Richard Guenther <rguenther@suse.de>
27650 PR tree-optimization/48037
27651 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
27652 selects into BIT_FIELD_REFs.
27653 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
27656 2011-03-15 Jakub Jelinek <jakub@redhat.com>
27658 PR tree-optimization/48129
27659 * builtins.c (fold_builtin_snprintf): Convert to type of
27660 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
27661 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
27663 2011-03-15 Richard Guenther <rguenther@suse.de>
27665 PR tree-optimization/41490
27666 * tree-ssa-dce.c (propagate_necessity): Handle returns without
27667 value but with VUSE.
27668 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
27670 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
27671 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
27672 * tree-tailcall.c (find_tail_calls): Ignore returns.
27674 2011-03-15 Richard Guenther <rguenther@suse.de>
27676 PR middle-end/48031
27677 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
27678 or variable-indexed array accesses when in gimple form.
27680 2011-03-15 Richard Guenther <rguenther@suse.de>
27682 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
27684 2011-03-15 Alan Modra <amodra@gmail.com>
27687 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
27688 presume symbol_refs without a symbol_ref_decl are suitably
27689 aligned, nor other trees we may see here. Handle anchor symbols.
27690 (legitimate_constant_pool_address_p): Comment. Add mode param.
27691 Check cmodel=medium addresses. Adjust all calls.
27692 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
27693 creating cmodel=medium optimized access to locals.
27694 * config/rs6000/constraints.md (R): Pass QImode to
27695 legitimate_constant_pool_address_p.
27696 * config/rs6000/predicates.md (input_operand): Pass mode to
27697 legitimate_constant_pool_address_p.
27698 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
27701 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27704 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
27705 64-bit constants being loaded into registers other than GPRs such
27706 as loading 0 into a VSX register.
27708 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27710 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
27712 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27714 PR middle-end/47917
27715 * builtins.c (fold_builtin_snprintf): New function.
27716 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
27717 (fold_builtin_4): Likewise.
27719 PR middle-end/38878
27720 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
27721 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
27722 and C - X == X also strip nops from +/-/p+ operand.
27723 When optimizing -X == C, fold C to arg0's type.
27726 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
27727 emit it as add_AT_int instead of add_AT_unsigned.
27729 2011-03-14 Tom Tromey <tromey@redhat.com>
27731 * unwind-dw2.c: Include sys/sdt.h if it exists.
27732 (_Unwind_DebugHook): Use STAP_PROBE2.
27733 * config.in, configure: Rebuild.
27734 * configure.ac: Check for sys/sdt.h.
27736 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
27738 * config/i386/i386.md (ROUND_FLOOR): New constant.
27739 (ROUND_CEIL): Ditto.
27740 (ROUND_TRUNC): Ditto.
27741 (ROUND_MXCSR): Ditto.
27742 (ROUND_NO_EXC): Ditto.
27743 (rint<mode>2): Use new defines instead of numerical constants.
27744 (floor<mode>2): Ditto.
27745 (ceil<mode>2): Ditto.
27746 (btrunc<mode>2): Ditto.
27747 * config/i386/i386-builtin-types.def: Define ROUND function type
27749 * config/i386/i386.c (enum ix86_builtins): Add
27750 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
27751 (struct builtin_description): Add
27752 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
27753 (ix86_expand_sse_round): New static function.
27754 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
27756 (ix86_builtin_vectorized_function): Handle
27757 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27759 2011-03-14 Tom Tromey <tromey@redhat.com>
27761 * c-parser.c (c_parser_asm_string_literal): Clear
27762 warn_overlength_strings.
27764 2011-03-14 Tom Tromey <tromey@redhat.com>
27766 * c-parser.c (disable_extension_diagnostics): Save
27767 warn_overlength_strings.
27768 (restore_extension_diagnostics): Restore warn_overlength_strings.
27770 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27772 * BASE-VER: Change to 4.7.0.
27774 2011-03-14 Richard Guenther <rguenther@suse.de>
27776 PR middle-end/48098
27777 * tree.c (build_vector_from_val): Adjust assert to requirements
27780 2011-03-14 Jakub Jelinek <jakub@redhat.com>
27783 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
27785 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
27787 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
27788 terms of target_flags_explicit. Adjust copyright year.
27790 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
27791 * config/rs6000/t-freebsd: New file. Add override for
27794 2011-03-13 Chris Demetriou <cgd@google.com>
27796 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
27797 (-fno-diagnostics-show-option): this, to reflect current default.
27798 (-Werror=): Update text about -fno-diagnostics-show-option.
27800 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
27803 * config/rs6000/predicates.md (easy_vector_constant_add_self,
27804 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
27805 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
27806 mode is not V2DImode or V2DFmode.
27807 (vspltis_constant): Do not handle V2DImode and V2DFmode.
27808 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
27809 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
27811 (movdi_internal64): Likewise.
27813 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
27815 PR tree-optimization/47127
27816 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
27818 (set_cloog_options): Same.
27819 (scop_to_clast): Same.
27820 (print_clast_stmt): Do not call cloog_state_malloc and
27822 (print_generated_program): Same.
27824 * graphite-clast-to-gimple.h (cloog_state): Declared.
27825 (scop_to_clast): Adjust declaration.
27826 * graphite.c (cloog_state): Defined here.
27827 (graphite_initialize): Call cloog_state_malloc.
27828 (graphite_finalize): Call cloog_state_free.
27830 2011-03-11 Jason Merrill <jason@redhat.com>
27832 * attribs.c (lookup_attribute_spec): Take const_tree.
27835 2011-03-11 Joseph Myers <joseph@codesourcery.com>
27837 * config/sparc/sparc.c (sparc_option_override): Use
27838 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
27840 2011-03-11 Richard Guenther <rguenther@suse.de>
27842 PR tree-optimization/48067
27843 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
27844 multiplication result will be only used once on the target
27847 2011-03-11 Richard Guenther <rguenther@suse.de>
27849 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
27851 2011-03-11 Richard Guenther <rguenther@suse.de>
27854 * tree.c (find_decls_types_r): Do not walk types only reachable
27855 from IDENTIFIER_NODEs.
27857 2011-03-11 Jakub Jelinek <jakub@redhat.com>
27859 PR middle-end/48044
27860 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
27861 all vnode->force_output nodes as needed.
27863 2011-03-11 Jason Merrill <jason@redhat.com>
27866 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
27867 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
27869 2011-03-11 Martin Jambor <mjambor@suse.cz>
27871 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
27874 2011-03-11 Jakub Jelinek <jakub@redhat.com>
27876 PR tree-optimization/48063
27877 * ipa-inline.c (cgraph_decide_inlining): Don't try to
27878 inline functions called once if !tree_can_inline_p (node->callers).
27880 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
27882 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
27884 * config/score/score3.c: Delete.
27885 * config/score/score3.h: Delete.
27886 * config/score/mul-div.S: Delete.
27887 * config/score/sfp-machine.h: Add new file.
27888 * config/score/constraints.md: Add new file.
27889 * config/score/t-score-softfp: Add new file.
27890 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27891 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27892 (score7_extra_constraint): Delete.
27893 (score7_option_override): Remove unused code.
27894 * config/score/score.c: Remove score3 and score5 define and code.
27895 * config/score/score.h: Remove score3 and score5 define and code.
27896 * config/score/score.md: Remove score3 template and unusual insn.
27897 * config/score/score.opt: Remove score3 and score5 options.
27899 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27901 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27902 when _HPUX_SOURCE is defined.
27903 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27905 2011-03-10 Jason Merrill <jason@redhat.com>
27908 * stor-layout.c (layout_type): Don't set structural equality
27909 on arrays of incomplete type.
27910 * tree.c (type_hash_eq): Handle comparing them properly.
27912 2011-03-10 Jakub Jelinek <jakub@redhat.com>
27915 * config/s390/s390.c (s390_delegitimize_address): Make sure the
27916 result mode matches original rtl mode.
27918 2011-03-10 Nick Clifton <nickc@redhat.com>
27920 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27921 (andsi3, andsi3_flags): Fix timings for three operand alternative.
27923 2011-03-09 Jakub Jelinek <jakub@redhat.com>
27925 PR rtl-optimization/47866
27926 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27927 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27928 if target wasn't scalar.
27929 * function.c (assign_stack_temp_for_type): Assert that neither
27930 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27931 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27933 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27935 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27937 * config/s390/s390-protos.h (s390_label_align): New prototype.
27938 * config/s390/s390.c (s390_label_align): New function.
27939 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27941 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
27944 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27945 V2DI/V2DF constants. Only all 0's or all 1's are easy.
27946 (output_vec_const_move): Ditto.
27948 2011-03-08 Anatoly Sokolov <aesok@post.ru>
27950 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27951 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27952 * config/mips/mips.c (mips_preferred_reload_class): Make static.
27953 Change 'rclass' argument and result type to reg_class_t.
27954 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27956 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
27958 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27959 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27960 (TARGET_MEMORY_MOVE_COST): Define.
27961 (avr_register_move_cost, avr_memory_move_cost): New Functions.
27963 2011-03-08 Jakub Jelinek <jakub@redhat.com>
27966 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27969 PR tree-optimization/48022
27970 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27973 2011-03-07 Jakub Jelinek <jakub@redhat.com>
27976 * var-tracking.c (find_use_val): Return NULL for
27977 cui->sets && cui->store_p BLKmode MEMs.
27979 2011-03-07 Anatoly Sokolov <aesok@post.ru>
27981 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
27983 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
27984 xstormy16_print_operand_address): Remove.
27985 * config/stormy16/stormy16.c (xstormy16_print_operand,
27986 xstormy16_print_operand_address): Make static.
27987 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27989 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
27992 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27993 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
27996 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
27999 * cfgloopmanip.c (fix_bb_placements): Return immediately
28000 if FROM is BASE_LOOP's header.
28002 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
28004 * gimplify.c (gimplify_function_tree): Fix building calls
28005 to __builtin_return_address.
28007 2011-03-07 Alan Modra <amodra@gmail.com>
28009 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
28010 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
28011 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
28012 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
28014 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
28015 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
28016 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
28017 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
28018 * config/rs6000/rs6000.c
28019 (rs6000_elf_end_indicate_exec_stack): Rename to..
28020 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
28021 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
28022 (rs6000_file_start): ..here.
28023 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
28024 file scope variables.
28025 (call_ABI_of_interest): New function.
28026 (init_cumulative_args): Set above vars when function return value
28027 is a float, vector, or small struct.
28028 (rs6000_function_arg_advance_1): Likewise for function args.
28029 (rs6000_va_start): Set rs6000_passes_float if variable arg function
28030 references float args.
28032 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
28034 * doc/cfg.texi: Remove "See" before @ref.
28035 * doc/invoke.texi: Likewise.
28037 2011-03-05 Jason Merrill <jason@redhat.com>
28039 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
28041 2011-03-05 Anthony Green <green@moxielogic.com>
28043 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
28045 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
28047 PR rtl-optimization/47899
28048 * cfgloopmanip.c (fix_bb_placements): Fix first argument
28049 to flow_loop_nested_p when moving the loop upward.
28051 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
28054 * arm.md (movhi_insn_arch4): Accept any immediate constant.
28056 2011-03-05 Jakub Jelinek <jakub@redhat.com>
28058 PR tree-optimization/47967
28059 * ipa-cp.c (build_const_val): Return NULL instead of creating
28060 VIEW_CONVERT_EXPR for mismatching sizes.
28061 (ipcp_create_replace_map): Return NULL if build_const_val failed.
28062 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
28063 give up on versioning.
28065 2011-03-05 Alan Modra <amodra@gmail.com>
28068 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28069 full cmodel medium/large lo_sum + high addresses.
28071 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28073 * config/s390/s390.c (s390_decompose_address): Reject non-literal
28074 pool references in UNSPEC_LTREL_OFFSET.
28076 2011-03-04 Jan Hubicka <jh@suse.cz>
28079 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
28080 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
28081 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
28083 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
28084 cgraph_add_thunk): Add node pointers.
28085 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
28086 associated to right node.
28087 (input_node): Update use of cgraph_same_body_alias
28088 and cgraph_add_thunk.
28090 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
28092 * config/i386/i386.opt (mprefer-avx128): New flag.
28093 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
28094 modes when the flag -mprefer-avx128 is on.
28096 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
28098 * dwarf2out.c (compare_loc_operands): Fix address handling.
28100 2011-03-04 Alan Modra <amodra@gmail.com>
28102 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
28104 2011-03-04 Richard Guenther <rguenther@suse.de>
28106 PR middle-end/47968
28107 * expmed.c (extract_bit_field_1): Prefer vector modes that
28108 vec_extract patterns can handle.
28110 2011-03-04 Richard Guenther <rguenther@suse.de>
28112 PR middle-end/47975
28113 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
28115 2011-03-04 Richard Henderson <rth@redhat.com>
28117 * explow.c (emit_stack_save): Remove 'after' parameter.
28118 (emit_stack_restore): Likewise.
28119 * expr.h: Update to match.
28120 * builtins.c, calls.c, stmt.c: Likewise.
28121 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
28122 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
28123 * function.c (expand_function_end): Insert the emit_stack_save
28124 sequence before parm_birth_insn instead of after.
28126 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
28128 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
28129 (ssse3_pmaddubsw128): Ditto.
28130 (ssse3_pmaddubsw): Ditto.
28132 2011-03-03 Steve Ellcey <sje@cup.hp.com>
28134 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
28136 2011-03-03 Jakub Jelinek <jakub@redhat.com>
28139 * gimplify.c (omp_add_variable): Only call omp_notice_variable
28140 on TYPE_SIZE_UNIT if it is a DECL.
28143 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
28144 first operand is not is_gimple_mem_ref_addr, try to fold it.
28145 If the operand still isn't is_gimple_mem_ref_addr, clear
28148 2011-03-03 Richard Guenther <rguenther@suse.de>
28150 PR middle-end/47283
28151 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
28153 (refs_may_alias_p_1): For release branches return true if
28154 we are confused by our input.
28156 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28158 * config/s390/s390.c (s390_function_value): Rename to ...
28159 (s390_function_and_libcall_value): ... this.
28160 (s390_function_value): New function.
28161 (s390_libcall_value): New function.
28162 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
28163 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
28164 target macro definitions.
28165 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
28167 2011-03-02 Joseph Myers <joseph@codesourcery.com>
28169 * config/i386/freebsd64.h (CC1_SPEC): Define.
28170 * config/i386/linux64.h (CC1_SPEC): Define.
28171 * config/i386/x86-64.h (CC1_SPEC): Don't define.
28173 2011-03-02 Anatoly Sokolov <aesok@post.ru>
28175 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28177 * config/stormy16/stormy16.c: Include reload.h.
28178 (xstormy16_memory_move_cost): New function.
28179 (TARGET_MEMORY_MOVE_COST): Define.
28181 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
28183 PR rtl-optimization/47925
28184 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
28185 with side effects. Remove the more-specific check for volatile asms.
28187 2011-03-02 Alan Modra <amodra@gmail.com>
28190 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
28191 toc relative addresses for valid offsets.
28193 2011-03-01 Richard Guenther <rguenther@suse.de>
28195 PR tree-optimization/47890
28196 * tree-vect-loop.c (get_initial_def_for_induction): Set
28197 related stmt properly.
28199 2011-03-01 Richard Guenther <rguenther@suse.de>
28202 * lto-streamer.c (lto_record_common_node): Also register
28203 the canonical type.
28205 2011-03-01 Richard Guenther <rguenther@suse.de>
28208 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28209 Do not stream DECL_ABSTRACT_ORIGIN.
28210 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
28211 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
28212 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28213 Do not stream DECL_ABSTRACT_ORIGIN.
28214 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
28215 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
28217 2011-02-28 Anatoly Sokolov <aesok@post.ru>
28219 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
28220 FUNCTION_VALUE_REGNO_P): Remove.
28221 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
28222 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
28223 Add 'outgoing' argument.
28224 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
28226 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28227 TARGET_FUNCTION_VALUE_REGNO_P): Define.
28229 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
28232 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
28233 (lookup_filename): Likewise.
28234 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
28236 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
28237 Jakub Jelinek <jakub@redhat.com>
28239 PR middle-end/47893
28240 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
28241 (assign_stack_local_1): Change last argument type to int.
28242 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
28243 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
28244 don't record padding space into frame_space_list nor use those areas.
28245 (assign_stack_local): Adjust caller.
28246 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
28247 of assign_stack_local, pass 0 as last argument.
28248 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
28251 2011-02-28 Jakub Jelinek <jakub@redhat.com>
28254 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
28255 Use target address_mode and pointer_mode hooks instead of hardcoded
28256 Pmode and ptr_mode. Handle some simple cases of extending if
28257 POINTERS_EXTEND_UNSIGNED < 0.
28258 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
28259 Call convert_debug_memory_address.
28260 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
28261 convert_debug_memory_address.
28263 PR middle-end/46790
28264 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
28265 * configure: Regenerated.
28266 * config.in: Regenerated.
28267 * varasm.c (default_function_section): Return NULL
28268 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
28270 2011-02-28 Martin Jambor <mjambor@suse.cz>
28272 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
28273 the description to match the printed values.
28275 2011-02-28 Richard Guenther <rguenther@suse.de>
28277 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
28278 of the copied scope tree.
28280 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28282 * doc/extend.texi (Function Attributes): Avoid deeply (and
28283 wrongly) nested tables.
28285 2011-02-27 Jakub Jelinek <jakub@redhat.com>
28287 PR middle-end/47903
28288 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
28289 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
28290 r isn't op0 nor op1.
28292 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
28294 * config/avr/avr.md: Remove magic comment for emacs.
28296 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
28299 * config/avr/avr.c (avr_option_override): Use error on bad options.
28300 (avr_help): New function.
28301 (TARGET_HELP): Define.
28303 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
28306 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
28307 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
28309 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
28311 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
28312 (ARM Options): Ditto.
28313 (i386 and x86-64 Options): Ditto.
28314 (RX Options): Ditto.
28315 (SPARC Options): Ditto.
28317 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
28319 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
28320 FreeBSD 6 and later. Generally use cpu generic.
28322 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
28324 * doc/cpp.texi: Update copyright years.
28326 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
28329 * config/lm32/lm32.md (ashrsi3): Added needed variable.
28331 2011-02-25 Jon Beniston <jon@beniston.com>
28334 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
28335 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
28336 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
28337 (lm32_block_move_inline): Add type cast to remove warning.
28338 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
28339 (gen_int_relational): Move declarations to start of function.
28341 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
28343 PR tree-optimization/45470
28344 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
28345 can throw internally only.
28346 * tree-vect-stmts.c (vectorizable_call): Likewise.
28348 2011-02-24 Anatoly Sokolov <aesok@post.ru>
28350 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
28351 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28352 * config/stormy16/stormy16-protos.h
28353 (xstormy16_preferred_reload_class): Remove.
28354 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
28355 static. Change 'rclass' argument and return type to reg_class_t.
28356 (TARGET_PREFERRED_RELOAD_CLASS,
28357 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28359 2011-02-24 Richard Guenther <rguenther@suse.de>
28361 * lto-streamer-in.c (input_bb): Do not find referenced vars
28362 in debug statements.
28364 2011-02-23 Jason Merrill <jason@redhat.com>
28366 * common.opt (fabi-version): Document v5 and v6.
28368 2011-02-23 Richard Guenther <rguenther@suse.de>
28370 PR tree-optimization/47849
28371 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
28373 2011-02-23 Jie Zhang <jie@codesourcery.com>
28375 * opts-common.c (decode_cmdline_option): Print empty string
28376 argument as "" in decoded->orig_option_with_args_text.
28377 * gcc.c (execute): Print empty string argument as ""
28378 in the verbose output.
28379 (do_spec_1): Keep empty string argument.
28381 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
28383 * config.gcc: Declare score-* and crx-* obsolete.
28385 2011-02-23 Jie Zhang <jie@codesourcery.com>
28387 PR rtl-optimization/47763
28388 * web.c (web_main): Ignore naked clobber when replacing register.
28390 2011-02-22 Anatoly Sokolov <aesok@post.ru>
28392 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28395 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
28398 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
28400 2011-02-22 Mike Stump <mikestump@comcast.net>
28402 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
28404 * configure: Regenerate.
28406 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
28408 PR rtl-optimization/46002
28409 * ira-color.c (update_copy_costs): Change class intersection
28410 test to reg_class_contents[] test of 'hard_regno'.
28412 2011-02-21 Joseph Myers <joseph@codesourcery.com>
28414 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
28415 than Driver option.
28416 * config/hpux11.opt (mt): Likewise.
28417 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
28418 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
28419 * config/vax/elf.opt (mno-asm-pic): Likewise.
28420 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
28422 2011-02-21 Mike Stump <mikestump@comcast.net>
28425 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
28426 tree so we can get save the type.
28427 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
28428 for CFString instead of trying to use past the end of the builtins.
28429 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
28430 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
28431 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
28432 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
28433 Rename to darwin_builtin_cfstring.
28434 (darwin_init_cfstring_builtins): Return the built type.
28436 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
28439 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
28440 (_mm256_insert_epi64): Use _mm_insert_epi64.
28442 2011-02-21 Anatoly Sokolov <aesok@post.ru>
28444 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28445 * config/stormy16/stormy16-protos.h
28446 (xstormy16_mode_dependent_address_p): Remove.
28447 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
28448 Make static. Change return type to bool. Change argument type to
28449 const_rtx. Remove dead code.
28450 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28452 2011-02-21 Richard Guenther <rguenther@suse.de>
28455 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28456 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28457 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
28459 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28460 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28462 2011-02-20 Richard Guenther <rguenther@suse.de>
28465 * tree.c (free_lang_data_in_decl): Clean builtins from
28466 the TU decl BLOCK_VARS.
28468 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
28472 * haifa-sched.c (fix_tick_ready): Skip tick computation
28475 2011-02-19 Richard Guenther <rguenther@suse.de>
28478 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
28479 Remove lazy BLOCK_VARS streaming.
28480 (lto_input_ts_block_tree_pointers): Likewise.
28481 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
28483 2011-02-19 Joseph Myers <joseph@codesourcery.com>
28485 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
28487 2011-02-19 Joseph Myers <joseph@codesourcery.com>
28489 * config/i386/biarch32.h, config/i386/mach.h,
28490 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
28492 2011-02-19 Jakub Jelinek <jakub@redhat.com>
28495 * config/i386/i386.md (peephole2 for shift and plus): Use
28496 operands[1] original mode in the first insn.
28498 2011-02-18 Mike Stump <mikestump@comcast.net>
28500 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
28502 2011-02-18 Jan Hubicka <jh@suse.cz>
28504 PR middle-end/47788
28505 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
28506 to zero when the function is not inlinable at all.
28508 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28510 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
28511 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28512 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
28513 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
28514 * config/pa/t-pa64: Likewise.
28515 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
28517 2011-02-18 Jakub Jelinek <jakub@redhat.com>
28520 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
28522 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28525 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
28527 2011-02-18 Anatoly Sokolov <aesok@post.ru>
28529 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
28530 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
28531 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
28532 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
28533 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
28534 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
28535 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
28536 m32r_load_postinc_p, m32r_store_preinc_predec_p,
28537 m32r_legitimate_address_p): New functions.
28538 * config/m32r/constraints.md (constraint "S"): Don't use
28539 STORE_PREINC_PREDEC_P.
28540 (constraint "U"): Don't use LOAD_POSTINC_P.
28542 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
28544 PR rtl-optimization/46178
28545 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
28546 compute ira_hard_regno_cover_class[].
28548 2011-02-18 Richard Guenther <rguenther@suse.de>
28551 * lto-streamer.h (lto_global_var_decls): Declare.
28552 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
28553 statics for global var processing.
28555 2011-02-18 Richard Guenther <rguenther@suse.de>
28557 PR tree-optimization/47737
28558 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
28559 edge dominance check.
28561 2011-02-18 Jakub Jelinek <jakub@redhat.com>
28564 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
28565 avoid invalid rtx sharing.
28567 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
28569 * doc/cpp.texi (Obsolete Features): Add background on the
28570 origin of assertions.
28572 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
28574 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
28576 * config/darwin.c (output_objc_section_asm_op): Added support for
28578 (is_objc_metadata): New.
28579 (darwin_objc2_section): New.
28580 (darwin_objc1_section): New.
28581 (machopic_select_section): Added support for ABI v1 and v2.
28582 (darwin_emit_objc_zeroed): New.
28583 (darwin_output_aligned_bss): Detect objc metadata and treat it
28585 (darwin_asm_output_aligned_decl_common): Same.
28586 (darwin_asm_output_aligned_decl_local): Same.
28587 * config/darwin-sections.def: Updated for ABI v1 and v2.
28588 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
28589 compiling Objective-C code for the NeXT runtime, default to using
28590 ABI version 0 for 32-bit, and version 2 for 64-bit.
28592 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28594 * common.opt (optimize_fast): New Variable.
28595 * opts.c (default_options_optimization): Use opts->x_optimize_fast
28596 instead of local variable ofast.
28598 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
28600 * doc/invoke.texi (fobjc-abi-version): Documented.
28601 (fobjc-nilcheck): Documented.
28602 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
28605 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28608 * common.opt (export-dynamic): New Driver option.
28609 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
28611 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28613 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
28615 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
28616 Jan Hubicka <jh@suse.cz>
28620 * cfgexpand.c (account_used_vars_for_block): Remove.
28621 (estimated_stack_frame_size): Use referenced vars.
28622 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
28623 that were referenced in the original function. Test src_fn
28624 rather than cfun. Drop redundant get_var_ann.
28625 (setup_one_parameter): Drop redundant get_var_ann.
28626 (declare_return_variable): Likewise.
28627 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
28628 (copy_arguments_for_versioning): Drop redundant get_var_ann.
28629 * ipa-inline.c (compute_inline_parameters): Do not compute
28630 disregard_inline_limits here.
28631 (compute_inlinable_for_current, pass_inlinable): New.
28632 (pass_inline_parameters): Require PROP_referenced_vars.
28633 * cgraphunit.c (cgraph_process_new_functions): Don't run
28634 compute_inline_parameters explicitly unless function is in SSA form.
28635 (cgraph_analyze_function): Set .disregard_inline_limits.
28636 * tree-sra.c (convert_callers): Compute inliner parameters
28637 only for functions already in SSA form.
28639 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28641 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
28642 -mlittle-endian-data.
28644 2011-02-17 Joseph Myers <joseph@codesourcery.com>
28646 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
28647 -mno-fpu, not -fpu and -no-fpu.
28648 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
28649 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
28651 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
28654 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
28655 input reload with PLUS RTX.
28657 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28659 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
28660 of InverseVar(MDMX).
28662 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28664 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
28667 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28669 * config/mn10300/mn10300.opt (mno-crt0): New.
28671 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28673 * config/m68k/uclinux.opt (static-libc): New Driver option.
28675 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28677 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
28679 2011-02-16 Joseph Myers <joseph@codesourcery.com>
28681 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
28682 %{muser-extend-enabled}.
28684 2011-02-16 Richard Guenther <rguenther@suse.de>
28686 PR tree-optimization/47738
28687 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
28688 the TODO from tree_predictive_commoning.
28690 2011-02-15 Jeff Law <law@redhat.com>
28693 2011-01-25 Jeff Law <law@redhat.com>
28695 PR rtl-optimization/37273
28696 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28697 handle them like argument loads from stack slots. Do not double
28698 count memory for memory constants and argument loads from stack slots.
28700 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
28703 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
28704 mode for vector constants. Remove code that checks for TImode.
28706 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28710 * cgraph.h (compute_inline_parameters): Return void.
28711 * ipa-inline.c (compute_inline_parameters): Adjust.
28713 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28717 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
28719 * cfgexpand.c (estimated_stack_frame_size): Likewise.
28720 * ipa-inline.c (compute_inline_parameters): Adjust.
28722 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28726 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
28727 Adjust all users. Pass FN to...
28728 * tree-flow-inline.h (first_referenced_var): ... this. Add
28730 * ipa-struct-reorg.c: Adjust.
28731 * tree-dfa.c: Adjust.
28732 * tree-into-ssa.c: Adjust.
28733 * tree-sra.c: Adjust.
28734 * tree-ssa-alias.c: Adjust.
28735 * tree-ssa-live.c: Adjust.
28736 * tree-ssa.c: Adjust.
28737 * tree-ssanames.c: Adjust.
28738 * tree-tailcall.c: Adjust.
28740 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
28744 * tree-flow.h (referenced_var_lookup): Add fn parameter.
28745 Adjust all callers.
28746 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
28747 * tree-flow-inline.h: Adjust.
28748 * gimple-pretty-print.c: Adjust.
28749 * tree-into-ssa.c: Adjust.
28750 * tree-ssa.c: Adjust.
28751 * cfgexpand.c: Adjust.
28753 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28755 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
28756 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28757 (EXTRA_CONSTRAINT): Delete.
28758 * config/iq2000/constraints.md: New file.
28759 * config/iq2000/iq2000.md: Include it.
28760 (define_insn ""): Delete.
28761 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
28762 unsupported constraint letters from patterns.
28763 (call_value, call_value_internal1): Likewise.
28764 (call_value_multiple_internal1): Likewise.
28766 2011-02-15 Nick Clifton <nickc@redhat.com>
28768 * config/mn10300/mn10300.c: Include tm-constrs.h.
28769 (struct liw_data): New data structure describing an LIW candidate
28771 (extract_bundle): Use struct liw_data. Allow small integer
28772 operands for some instructions.
28773 (check_liw_constraints): Use struct liw_data. Remove swapped
28774 parameter. Add comments describing the checks. Fix bug when
28775 assigning the source of liw1 to the source of liw2.
28776 (liw_candidate): Delete. Code moved into extract_bundle.
28777 (mn10300_bundle_liw): Use struct liw_data. Check constraints
28779 * config/mn10300/predicates.md (liw_operand): New predicate.
28780 Allows registers and small integer constants.
28781 * config/mn10300/constraints.md (O): New constraint. Accetps
28782 integers in the range -8 to +7 inclusive.
28783 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
28784 for moving a small integer into a register. Give this alternative
28786 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
28787 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
28788 using the J,K,L and M constraints,
28789 (liw): Remove SI mode on second operands to allow for HI and QI
28791 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
28794 2011-02-15 Richard Guenther <rguenther@suse.de>
28796 PR tree-optimization/47743
28797 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
28798 for a non-type-compatible VN lookup bail out.
28800 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28802 * config/fr30/constraints.md: New file.
28803 * config/fr30/fr30.md: Include it.
28804 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
28805 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28806 (EXTRA_CONSTRAINT): Delete.
28808 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
28810 * config/frv/constraints.md: New file.
28811 * config/frv/predicates.md: Include it.
28812 * config/frv/frv.c (reg_class_from_letter): Delete.
28813 (frv_option_override): Don't initialize it.
28814 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
28815 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
28816 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
28817 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28818 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
28819 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28820 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
28821 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
28822 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
28823 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
28824 (REG_CLASS_FROM_CONSTRAINT): Delete.
28826 2011-02-15 Jakub Jelinek <jakub@redhat.com>
28828 PR middle-end/47581
28829 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
28830 if frame size is 0 in a leaf function.
28832 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28835 * config/alpha/host-osf.c: New file.
28836 * config/alpha/x-osf: New file.
28837 * config.host (alpha*-dec-osf*): Use it.
28839 2011-02-14 Anatoly Sokolov <aesok@post.ru>
28841 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28842 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
28843 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
28844 (rx_mode_dependent_address_p): ...this. Make static. Change argument
28846 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28848 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28850 * config/stormy16/constraints.md: New file.
28851 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
28852 Use satisfies_constraint_Q and satisfies_constraint_R.
28853 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
28855 (xstormy16_legitiamte_address_p): Declare.
28856 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
28857 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28858 (EXTRA_CONSTRAINT): Delete.
28859 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
28861 (xstormy16_extra_constraint_p): Delete.
28863 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
28865 PR tree-optimization/46494
28866 * loop-unroll.c (split_edge_and_insert): Adjust comment.
28867 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
28868 (pass_rtl_loop_done): Add TODO_verify_flow.
28869 * fwprop.c (pass_rtl_fwprop): Likewise.
28870 * modulo-sched.c (pass_sms): Likewise.
28871 * tree-ssa-dom.c (pass_dominator): Likewise.
28872 * tree-ssa-loop-ch.c (pass_ch): Likewise.
28873 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
28874 (pass_tree_loop_done): Likewise.
28875 * tree-ssa-pre.c (execute_pre): Likewise.
28876 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
28877 * tree-ssa-sink.c (pass_sink_code): Likewise.
28878 * tree-vrp.c (pass_vrp): Likewise.
28880 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28882 * config/v850/constraints.md: New file.
28883 * config/v850/v850.md: Include it.
28884 * config/v850/predicates.md (reg_or_0_operand): Use
28885 satisfies_constraint_G.
28886 (special_symbolref_operand): Use satisfies_constraint_K.
28887 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28888 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28889 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28890 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28891 (EXTRA_CONSTRAINT): Delete.
28892 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28893 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28894 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28896 2011-02-14 Anatoly Sokolov <aesok@post.ru>
28899 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28902 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
28904 * config/mcore/constraints.md: New file.
28905 * config/mcore/mcore.md: Include it.
28906 * config/mcore/mcore.c (reg_class_from_letter): Delete.
28907 * config/mcore/mcore.h (reg_class_from_letter): Delete.
28908 (REG_CLASS_FROM_LETTER): Delete.
28909 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28910 insn_const_int_ok_for_constraint.
28911 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28912 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28913 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28914 (EXTRA_CONSTRAINT): Delete.
28916 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28919 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28920 (IS_SIGHANDLER): Define.
28921 (sparc64_is_sighandler): New function, split off from
28922 sparc64_fallback_frame_state.
28923 (sparc_is_sighandler): New function, split off from
28924 sparc_fallback_frame_state.
28925 (sparc64_fallback_frame_state): Merge with ...
28926 (sparc_fallback_frame_state): ... this into ...
28927 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28928 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
28929 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
28930 stack instead of hardcoded offsets.
28932 2011-02-14 Andriy Gapon <avg@freebsd.org>
28935 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28937 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28939 * configure: Regenerate.
28941 2011-02-12 Joseph Myers <joseph@codesourcery.com>
28944 * gcc.c (asm_options): Correct spec matching --target-help.
28946 2011-02-12 Martin Jambor <mjambor@suse.cz>
28948 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28949 to gimple call error.
28951 2011-02-12 Mike Stump <mikestump@comcast.net>
28953 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28954 comments in backslash regions.
28956 2011-02-12 Mike Stump <mikestump@comcast.net>
28957 Jakub Jelinek <jakub@redhat.com>
28958 Iain Sandoe <iains@gcc.gnu.org>
28961 * dwarf2out.c (output_cfa_loc): When required, apply the
28962 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28963 (output_loc_sequence): Likewise.
28964 (output_loc_operands_raw): Likewise.
28965 (output_loc_sequence_raw): Likewise.
28966 (output_cfa_loc): Likewise.
28967 (output_loc_list): Suppress register number adjustment when
28968 calling output_loc_sequence()
28969 (output_die): Likewise.
28971 2011-02-12 Anatoly Sokolov <aesok@post.ru>
28973 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28975 * config/xtensa/xtensa.c (xtensa_register_move_cost,
28976 xtensa_memory_move_cost): New functions.
28977 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28979 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
28982 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
28983 in the current directory.
28984 * configure: Rebuilt.
28986 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
28988 * config/darwin.c (darwin_override_options): Add a hunk missed
28989 from the commit of r168571. Trim comment line lengths and
28990 correct indents of the preceding block.
28992 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
28994 * gcc.c (driver_handle_option): Concatenate the argument to -F with
28997 2011-02-11 Joseph Myers <joseph@codesourcery.com>
28999 * common.opt (nostartfiles): New Driver option.
29001 2011-02-11 Xinliang David Li <davidxl@google.com>
29003 PR tree-optimization/47707
29004 * tree-chrec.c (convert_affine_scev): Keep type precision.
29006 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
29008 PR tree-optimization/47420
29009 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
29011 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
29013 PR rtl-optimization/47614
29014 * rtl.h (check_for_inc_dec): Declare.
29015 * dse.c (check_for_inc_dec): Externalize...
29016 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
29017 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
29019 2011-02-11 Joseph Myers <joseph@codesourcery.com>
29022 * gcc.c (main): Do not compile inputs if there were errors in
29024 * opts-common.c (read_cmdline_option): Check for wrong language
29025 after other error checks.
29027 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
29029 * cgraph.c: Fix comment typos.
29030 * cgraph.h: Likewise.
29031 * cgraphunit.c: Likewise.
29032 * ipa-cp.c: Likewise.
29033 * ipa-inline.c: Likewise.
29034 * ipa-prop.c: Likewise.
29035 * ipa-pure-const.c: Likewise.
29036 * ipa-ref.c: Likewise.
29037 * ipa-reference.c: Likewise.
29039 2011-02-11 Jakub Jelinek <jakub@redhat.com>
29042 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
29044 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29047 * doc/sourcebuild.texi (Require Support): Document
29048 dg-require-ascii-locale.
29050 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
29052 * doc/lto.texi (Write summary): Fix missing parentheses.
29054 2011-02-10 DJ Delorie <dj@redhat.com>
29056 * config/m32c/m32c.c (m32c_option_override): Disable
29057 -fcombine-stack-adjustments until flag value tracking and compare
29058 optimization can be rewritten.
29060 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
29062 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
29064 (PROCESSOR_DEFAULT64): Likewise.
29066 2011-02-10 Richard Henderson <rth@redhat.com>
29068 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
29069 change from 2011-02-03.
29070 * config/rx/rx.c (flags_from_code): Likewise.
29071 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
29072 is valid, n/pz otherwise.
29073 (rx_select_cc_mode): Return CCmode if Y is not zero.
29075 2011-02-10 Richard Guenther <rguenther@suse.de>
29077 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
29079 2011-02-10 Richard Guenther <rguenther@suse.de>
29081 PR tree-optimization/47677
29082 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
29084 2011-02-10 Jakub Jelinek <jakub@redhat.com>
29087 * combine.c (make_compound_operation): Only change shifts into
29088 multiplication for SCALAR_INT_MODE_P.
29090 2011-02-10 Jie Zhang <jie@codesourcery.com>
29094 2011-02-05 Jie Zhang <jie@codesourcery.com>
29096 * web.c (entry_register): Don't clobber the number of the
29097 first uninitialized reference in used[].
29099 2011-02-09 Richard Guenther <rguenther@suse.de>
29101 PR tree-optimization/47664
29102 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
29105 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
29109 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
29111 (PROCESSOR_DEFAULT64): Same.
29112 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
29114 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29116 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
29118 2011-02-09 Martin Jambor <mjambor@suse.cz>
29120 PR middle-end/45505
29121 * tree-sra.c (struct access): New flags grp_scalar_read and
29122 grp_scalar_write. Changed description of assignment read and write
29124 (dump_access): Dump new flags, reorder all of them.
29125 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
29126 to detect multiple scalar reads.
29127 (analyze_access_subtree): Use the new scalar read write flags instead
29128 of the old flags. Adjusted comments.
29130 2011-02-08 DJ Delorie <dj@redhat.com>
29133 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
29136 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29138 * config/m68k/uclinux.opt: New.
29139 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
29141 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29143 * config/cris/elf.opt (sim): New Driver option.
29145 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29147 * config/xtensa/elf.opt: New.
29148 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
29150 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29152 * config/vax/elf.opt: New.
29153 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
29155 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29157 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
29159 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29161 * config/gnu-user.opt: New.
29162 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
29163 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
29164 *-*-uclinux*): Use gnu-user.opt.
29166 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
29168 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
29169 * config/i386/gnu.h (CPP_SPEC): Likewise.
29171 2011-02-08 Ian Lance Taylor <iant@google.com>
29173 * common.opt (fcx-limited-range): Add SetByCombined flag.
29174 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
29175 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
29176 (fassociative-math, freciprocal-math): Likewise.
29177 (funsafe-math-optimizations): Likewise.
29178 * opth-gen.awk: Handle SetByCombined.
29179 * optc-gen.awk: Likewise.
29180 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
29181 (set_unsafe_math_optimizations_flags): Likewise.
29182 * doc/options.texi (Option properties): Document SetByCombined.
29184 2011-02-08 Joseph Myers <joseph@codesourcery.com>
29186 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
29187 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
29188 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
29189 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
29190 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
29192 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
29194 PR tree-optimization/46834
29195 PR tree-optimization/46994
29196 PR tree-optimization/46995
29197 * graphite-sese-to-poly.c (used_outside_reduction): New.
29198 (detect_commutative_reduction): Call used_outside_reduction.
29199 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
29200 translate_scalar_reduction_to_array only when at least one
29201 loop-phi/close-phi tuple has been detected.
29203 2011-02-08 Richard Guenther <rguenther@suse.de>
29205 PR middle-end/47639
29206 * tree-vect-generic.c (expand_vector_operations_1): Update
29208 (expand_vector_operations): ... not here. Cleanup EH info
29209 and the CFG if required.
29211 2011-02-08 Richard Guenther <rguenther@suse.de>
29213 PR tree-optimization/47641
29214 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
29215 require type compatibility.
29217 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29219 * gimple-low.c (lower_function_body): Don't remove the location of
29220 the return statement here.
29221 (lower_gimple_return): Do it here instead but only if the return
29222 statement is actually used twice.
29224 2011-02-08 Richard Guenther <rguenther@suse.de>
29226 PR tree-optimization/47632
29227 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
29228 unused up_to_stmt parameter, return whether cfg-cleanup is
29229 necessary, remove EH info properly.
29230 (forward_propagate_into_gimple_cond): Adjust caller.
29231 (forward_propagate_into_cond): Likewise.
29232 (forward_propagate_comparison): Likewise.
29233 (tree_ssa_forward_propagate_single_use_vars): Make
29234 forward_propagate_comparison case similar to the two others.
29236 2011-02-08 Nick Clifton <nickc@redhat.com>
29238 * config/mn10300/mn10300.opt (mliw): New command line option.
29239 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
29240 (liw_bundling): New automaton.
29241 (liw): New attribute.
29242 (liw_op): New attribute.
29243 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
29244 (movsi_internal): Add LIW attributes.
29245 (andsi3): Likewise.
29246 (iorsi3): Likewise.
29247 (xorsi3): Likewise.
29248 (addsi3): Separate register and immediate alternatives.
29249 Add LIW attributes.
29250 (subsi3): Likewise.
29252 (aslsi3): Likewise.
29253 (lshrsi3): Likewise.
29254 (ashrsi3): Likewise.
29255 (liw): New pattern.
29256 * config/mn10300/mn10300.c (liw_op_names): New
29257 (mn10300_print_operand): Handle 'W' operand descriptor.
29258 (extract_bundle): New function.
29259 (check_liw_constraints): New function.
29260 (liw_candidate): New function.
29261 (mn10300_bundle_liw): New function.
29262 (mn10300_reorg): New function.
29263 (TARGET_MACHINE_DEPENDENT_REORG): Define.
29264 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
29265 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
29266 __LIW__ or __NO_LIW__.
29267 * doc/invoke.texi: Describe the -mliw command line option.
29269 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29271 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
29272 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29273 pthread_mutex_unlock): Remove.
29274 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
29275 * config/pa/t-pa64: Likewise.
29276 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
29277 shared libc if not linking against libpthread.
29278 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29280 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
29283 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
29284 on 10.6 and later to ensure that we always use the unwinder from
29285 the system. Only add -no_compact_unwind when tarteting darwin
29288 2011-02-07 Steve Ellcey <sje@cup.hp.com>
29291 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
29292 (vec_interleave_lowv2sf): Ditto.
29293 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
29294 (vec_extract_oddv2sf): Ditto.
29296 2011-02-07 Mike Stump <mikestump@comcast.net>
29299 Add __ieee_divdc3 entry point.
29300 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
29302 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
29303 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
29304 * config/darwin.c (darwin_rename_builtins): Add.
29305 * config/darwin-protos.h (darwin_rename_builtins): Add.
29307 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
29310 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
29313 2011-02-07 Mike Stump <mikestump@comcast.net>
29315 * config/darwin.opt (mmacosx-version-min): Update default OS version.
29317 2011-02-07 Denis Chertykov <chertykov@gmail.com>
29320 * config/avr/libgcc.S (exit): Move .endfunc
29322 2011-02-07 Richard Guenther <rguenther@suse.de>
29324 PR tree-optimization/47615
29325 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
29326 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
29327 (run_scc_vn): Initialize it.
29328 (visit_reference_op_load): Use it.
29329 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
29331 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29333 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
29334 DImode trapping arithmetic libfuncs.
29336 2011-02-07 Richard Guenther <rguenther@suse.de>
29338 PR tree-optimization/47621
29339 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
29341 (execute_update_addresses_taken): ... here. Make it more
29342 conservative in what we accept.
29344 2011-02-06 Joseph Myers <joseph@codesourcery.com>
29346 * config/sparc/freebsd.h (ASM_SPEC): Define.
29347 * config/sparc/vxworks.h (ASM_SPEC): Define.
29349 2011-02-06 Joseph Myers <joseph@codesourcery.com>
29351 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29353 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
29355 * doc/invoke.texi: Remove reference to compiler internals from
29356 user documentation.
29358 * reg-notes.def: Remove REG_VALUE_PROFILE.
29359 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
29361 2011-02-05 Jakub Jelinek <jakub@redhat.com>
29363 PR middle-end/47610
29364 * varasm.c (default_section_type_flags): If decl is NULL,
29365 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
29367 2011-02-05 Jie Zhang <jie@codesourcery.com>
29370 * web.c (entry_register): Don't clobber the number of the
29371 first uninitialized reference in used[].
29373 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
29375 PR tree-optimization/46194
29376 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
29377 (build_classic_dist_vector_1): Do not represent classic distance
29378 vectors when the access functions are variating in different loops.
29380 2011-02-04 Joseph Myers <joseph@codesourcery.com>
29382 * config/mips/iris6.opt: New.
29383 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
29385 2011-02-04 Richard Henderson <rth@redhat.com>
29386 Steve Ellcey <sje@cup.hp.com>
29389 * config/ia64/predicates.md (mux1_brcst_element): New.
29390 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
29391 * config/ia64/ia64.c (ia64_unpack_assemble): New.
29392 (ia64_unpack_sign): New.
29393 (ia64_expand_unpack): Rewrite using new routines.
29394 (ia64_expand_widen_sum): Ditto.
29395 (ia64_expand_dot_prod_v8qi): Ditto.
29396 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
29397 routines, add endian check.
29398 (pmpy2_even): Rename from pmpy2_r, add endian check.
29399 (pmpy2_odd): Rename from pmpy2_l, add endian check.
29400 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
29401 (vec_widen_smult_hi_v4hi): Ditto.
29402 (vec_widen_umult_lo_v4hi): Ditto.
29403 (vec_widen_umult_hi_v4hi): Ditto.
29404 (mulv2si3): Change endian checks.
29405 (sdot_prodv4hi): Rewrite with new calls.
29406 (udot_prodv4hi): New.
29407 (vec_pack_ssat_v4hi): Add endian check.
29408 (vec_pack_usat_v4hi): Ditto.
29409 (vec_pack_ssat_v2si): Ditto.
29410 (max1_even): Rename from max1_r, add endian check.
29411 (max1_odd): Rename from max1_l, add endian check.
29412 (*mux1_rev): Format change.
29413 (*mux1_mix): Ditto.
29414 (*mux1_shuf): Ditto.
29415 (*mux1_alt): Ditto.
29416 (*mux1_brcst_v8qi): Use new predicate.
29417 (vec_extract_evenv8qi): Remove endian check.
29418 (vec_extract_oddv8qi): Ditto.
29419 (vec_interleave_lowv4hi): Format change.
29420 (vec_interleave_highv4hi): Ditto.
29421 (mix2_even): Rename from mix2_r, add endian check.
29422 (mix2_odd): Rename from mux2_l, add endian check.
29423 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
29424 (vec_extract_evenodd_helper): Format change.
29425 (vec_extract_evenv4hi): Remove endian check.
29426 (vec_extract_oddv4hi): Remove endian check.
29427 (vec_interleave_lowv2si): Format change.
29428 (vec_interleave_highv2si): Format change.
29429 (vec_initv2si): Remove endian check.
29430 (vecinit_v2si): Add endian check.
29431 (reduc_splus_v2sf): Add endian check.
29432 (reduc_smax_v2sf): Ditto.
29433 (reduc_smin_v2sf): Ditto.
29434 (vec_initv2sf): Remove endian check.
29435 (fpack): Add endian check.
29436 (fswap): Add endian check.
29437 (vec_interleave_highv2sf): Add endian check.
29438 (vec_interleave_lowv2sf): Add endian check.
29439 (fmix_lr): Add endian check.
29440 (vec_setv2sf): Format change.
29441 (*vec_extractv2sf_0_be): Use shift to extract operand.
29442 (*vec_extractv2sf_1_be): New.
29443 (vec_pack_trunc_v4hi): Add endian check.
29444 (vec_pack_trunc_v2si): Format change.
29446 2011-02-04 Jakub Jelinek <jakub@redhat.com>
29448 PR inline-asm/23200
29449 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
29450 do bb, locus and block comparison and disallow loads if it is not set.
29451 (stmt_is_replaceable_p): New function.
29452 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
29454 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
29455 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
29457 * tree-flow.h (stmt_is_replaceable_p): New prototype.
29459 2011-02-04 Joseph Myers <joseph@codesourcery.com>
29461 * config/rs6000/xilinx.opt: New.
29462 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
29464 2011-02-04 Joseph Myers <joseph@codesourcery.com>
29466 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
29468 2011-02-03 Anatoly Sokolov <aesok@post.ru>
29470 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
29471 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29472 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
29473 secondary_reload_info, xtensa_secondary_reload): Remove.
29474 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
29475 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29476 (xtensa_preferred_reload_class): Make static. Change return and
29477 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
29478 Use CONST_DOUBLE_P predicate.
29479 (xtensa_preferred_output_reload_class): New function.
29480 (xtensa_secondary_reload): Make static.
29482 2011-02-03 Joseph Myers <joseph@codesourcery.com>
29484 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
29485 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
29486 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
29488 2011-02-03 Jakub Jelinek <jakub@redhat.com>
29490 PR middle-end/31490
29491 * output.h (SECTION_RELRO): Define.
29492 (SECTION_MACH_DEP): Adjust.
29493 (get_variable_section): New prototype.
29494 * varpool.c (varpool_finalize_named_section_flags): New function.
29495 (varpool_assemble_pending_decls): Call it.
29496 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
29497 * cgraphunit.c (cgraph_output_in_order): Call
29498 varpool_finalize_named_section_flags.
29499 * varasm.c (get_section): Allow section flags conflicts between
29500 relro and read-only sections if the section hasn't been declared yet.
29501 Set SECTION_OVERRIDE after diagnosing section type conflict.
29502 (get_variable_section): No longer static.
29503 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
29504 readonly sections that need relocations.
29505 (decl_readonly_section_1): New function.
29506 (decl_readonly_section): Use it.
29509 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
29510 Steve Ellcey <sje@cup.hp.com>
29512 PR middle-end/31490
29513 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
29514 if section attribute used.
29516 2011-02-03 Jakub Jelinek <jakub@redhat.com>
29518 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
29519 * config/darwin.c (SECTION_NO_ANCHOR): Define.
29520 (darwin_init_sections): Remove assertion.
29522 2011-02-03 Nick Clifton <nickc@redhat.com>
29524 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
29526 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
29527 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
29528 instead of "n" and "pz".
29529 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
29532 2011-02-03 Jakub Jelinek <jakub@redhat.com>
29535 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
29536 fma, expand FMA_EXPR as fma{,f,l} call.
29539 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
29540 copy them into a unsigned char variable and pass address of it to
29541 lto_output_data_stream.
29544 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
29545 around backend_init_target and lang_dependent_init_target calls.
29546 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
29547 (verify_cgraph_node): Don't call set_cfun here. Use
29548 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
29549 Set error_found for incorrectly represented calls to thunks.
29551 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
29554 PR rtl-optimization/43494
29555 * rtl.h (for_each_inc_dec_fn): New type.
29556 (for_each_inc_dec): Declare.
29557 * rtlanal.c (struct for_each_inc_dec_ops): New type.
29558 (for_each_inc_dec_find_inc_dec): New fn.
29559 (for_each_inc_dec_find_mem): New fn.
29560 (for_each_inc_dec): New fn.
29561 * dse.c (struct insn_size): Remove.
29562 (replace_inc_dec, replace_inc_dec_mem): Remove.
29563 (emit_inc_dec_insn_before): New fn.
29564 (check_for_inc_dec): Use it, along with for_each_inc_dec.
29565 (canon_address): Pass mem modes to cselib_lookup.
29566 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
29567 (cselib_lookup_from_insn): Likewise.
29568 (cselib_subst_to_values): Likewise.
29569 * cselib.c (find_slot_memmode): New var.
29570 (cselib_find_slot): New fn. Use it instead of
29571 htab_find_slot_with_hash everywhere.
29572 (entry_and_rtx_equal_p): Use find_slot_memmode.
29573 (autoinc_split): New fn.
29574 (rtx_equal_for_cselib_p): Rename and implement in terms of...
29575 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
29576 Deal with autoinc. Special-case recursion into MEMs.
29577 (cselib_hash_rtx): Likewise.
29578 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
29579 address and MEM modes.
29580 (cselib_subst_to_values): Add memmode, pass it on.
29582 (cselib_lookup): Add memmode argument, pass it on.
29583 (cselib_lookup_from_insn): Add memmode.
29584 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
29585 (struct cselib_record_autoinc_data): New.
29586 (cselib_record_autoinc_cb): New fn.
29587 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
29588 mode to cselib_lookup. Reset autoinced REGs here instead of...
29589 (cselib_process_insn): ... here.
29590 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
29592 (add_uses): Likewise, also to cselib_subst_to_values.
29593 (add_stores): Likewise.
29594 * sched-deps.c (add_insn_mem_dependence): Pass mode to
29595 cselib_subst_to_values.
29596 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
29597 * gcse.c (do_local_cprop): Adjusted.
29598 * postreload.c (reload_cse_simplify_set): Adjusted.
29599 (reload_cse_simplify_operands): Adjusted.
29600 * sel-sched-dump (debug_mem_addr_value): Pass mode.
29602 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
29604 PR tree-optimization/45122
29605 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
29606 unsafe assumptions when there's more than one loop exit.
29608 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29611 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29612 Document using vector double with the load/store builtins, and
29613 that the load/store builtins always use Altivec instructions.
29615 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
29616 to use altivec memory instructions, even on VSX.
29617 (vector_altivec_store_<mode>): Ditto.
29619 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
29622 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29623 V2DF, V2DI support to load/store overloaded builtins.
29625 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
29626 altivec load/store builtins for V2DF/V2DI types.
29628 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29629 set avoid indexed addresses on power6 if -maltivec.
29630 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
29631 vector_altivec_load/vector_altivec_store builtins.
29632 (altivec_expand_st_builtin): Ditto.
29633 (altivec_expand_builtin): Add VSX memory builtins.
29634 (rs6000_init_builtins): Add V2DI types to internal types.
29635 (altivec_init_builtins): Add support for V2DF/V2DI altivec
29636 load/store builtins.
29637 (rs6000_address_for_altivec): Insure memory address is appropriate
29640 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
29641 vec_vsx_ld and vec_vsx_st.
29642 (vsx_store_<mode>): Ditto.
29644 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
29645 variables to hold long long types for VSX vector memory builtins.
29646 (RS6000_BTI_unsigned_long_long): Ditto.
29647 (long_long_integer_type_internal_node): Ditti.
29648 (long_long_unsigned_type_internal_node): Ditti.
29650 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
29651 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
29652 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
29654 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
29656 (vec_vsx_st): Ditto.
29658 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29660 * config/pa/pa-hpux10.opt: New.
29661 * config/hpux11.opt (pthread): New Driver option.
29662 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
29663 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
29665 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29667 * config/ia64/vms.opt: New.
29668 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
29670 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
29673 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
29674 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
29675 generator functions.
29676 (vsx_floatuns<VSi><mode>2): Ditto.
29677 (vsx_fix_trunc<mode><VSi>2): Ditto.
29678 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
29680 2011-02-02 Joseph Myers <joseph@codesourcery.com>
29682 * config/i386/djgpp.opt (posix): New Driver option.
29684 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
29686 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
29687 Move to the unsupported targets list.
29689 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
29691 PR rtl-optimization/47525
29692 * df-scan.c: Update copyright years.
29693 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
29694 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
29696 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29698 * config/i386/sysv4.h (TARGET_VERSION): Remove.
29699 (SUBTARGET_RETURN_IN_MEMORY): Remove.
29700 (ASM_OUTPUT_ASCII): Remove.
29701 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
29703 2011-02-02 Jeff Law <law@redhat.com>
29705 PR middle-end/47543
29706 * reload.c (find_reloads_address): Handle reg+d address where both
29707 components are invalid by reloading the entire address.
29709 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
29710 Richard Guenther <rguenther@suse.de>
29712 PR tree-optimization/40979
29714 * passes.c (init_optimization_passes): After LIM call copy_prop
29715 and DCE to clean up.
29716 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
29718 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
29720 PR tree-optimization/47576
29721 PR tree-optimization/47555
29722 * doc/invoke.texi (scev-max-expr-complexity): Documented.
29723 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29724 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
29725 * tree-scalar-evolution.c (follow_ssa_edge): Use
29726 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
29728 2011-02-02 Richard Guenther <rguenther@suse.de>
29730 PR tree-optimization/47566
29731 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
29733 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
29737 * tree-inline.c (declare_return_variable): Remove unused caller
29742 * tree-flow-inline.h (clear_is_used, is_used_p): New.
29743 * cfgexpand.c (account_used_vars_for_block): Use them.
29744 * tree-nrv.c (tree_nrv): Likewise.
29745 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
29746 (dump_scope_block): Likewise.
29747 (remove_unused_locals): Likewise.
29751 * tree-inline.c (declare_return_variable): Add result decl to
29752 local decls only once.
29753 * gimple-low.c (record_vars_into): Mark newly-created variables
29756 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
29762 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29764 (no_real_insns_p, schedule_block, set_priorities): Drop special
29765 treatment of boundary debug insns.
29766 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29767 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
29768 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29769 (BOUNDARY_DEBUG_INSN_P): Likewise.
29770 (SCHEDULE_DEBUG_INSN_P): Likewise.
29771 * sched-rgn.c (init_ready_list): Drop special treatment of
29772 boundary debug insns.
29773 * final.c (rest_of_clean_state): Clear notes' BB.
29775 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29777 * config/openbsd.opt (assert=): New Driver option.
29779 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29781 * config/i386/nto.opt: New.
29782 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
29784 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29786 * config/i386/netware.opt: New.
29787 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
29789 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29791 * config/interix.opt (posix): New Driver option.
29793 2011-02-01 DJ Delorie <dj@redhat.com>
29795 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
29797 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
29800 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
29802 PR tree-optimization/47561
29803 * toplev.c (process_options): Print the Graphite flags. Add
29804 flag_loop_flatten to the list of options requiring Graphite.
29806 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29808 * config/i386/cygming.opt (posix): New Driver option.
29810 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29812 * config/arm/vxworks.opt: New.
29813 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
29815 2011-02-01 Joseph Myers <joseph@codesourcery.com>
29817 * config/alpha/elf.opt: New.
29818 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
29819 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29821 2011-02-01 Richard Guenther <rguenther@suse.de>
29823 PR tree-optimization/47559
29824 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
29825 store-motion on references that can throw.
29827 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
29829 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
29830 * tree-pass.h (TDF_CSELIB): New macro.
29831 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
29832 cselib_lookup): Check for it rather than for TDF_DETAILS.
29834 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
29837 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
29838 is HOST_BIT_BUCKET.
29840 * opts.c (finish_options): Don't add x_aux_base_name if it is
29843 2011-02-01 Richard Guenther <rguenther@suse.de>
29845 PR tree-optimization/47555
29847 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
29849 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29851 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
29854 * config/lm32/t-lm32: Add multilib for all CPU options.
29856 2011-02-01 Richard Guenther <rguenther@suse.de>
29858 PR tree-optimization/47541
29859 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
29860 sure to have a field at offset zero.
29862 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29864 * config/arc/arc.opt (EB, EL): New Driver options.
29866 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29868 * config/alpha/osf5.opt: New.
29869 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
29871 2011-01-31 Joseph Myers <joseph@codesourcery.com>
29873 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
29875 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
29877 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
29878 -floop-interchange.
29879 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
29880 is an alias of -floop-interchange and that it requires the
29881 Graphite infrastructure.
29882 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
29883 flag_loop_interchange based on the value of flag_tree_loop_linear.
29885 2011-01-31 Jakub Jelinek <jakub@redhat.com>
29886 Richard Guenther <rguenther@suse.de>
29888 PR tree-optimization/47538
29889 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29890 type instead of r1type, except for comparisons. For right
29891 shifts and comparisons punt if there are mismatches in
29892 sizetype vs. non-sizetype types.
29894 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29896 * doc/sourcebuild.texi (Effective-Target Keywords): Document
29899 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29901 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29903 * configure: Regenerate.
29905 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29907 * configure.ac (gcc_cv_ld_static_option): Define.
29908 (gcc_cv_ld_dynamic_option): Define.
29909 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29911 (HAVE_LD_STATIC_DYNAMIC): Update message.
29912 (LD_STATIC_OPTION): Define.
29913 (LD_DYNAMIC_OPTION): Define.
29914 * configure: Regenerate.
29915 * config.in: Regenerate.
29916 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29917 HAVE_LD_STATIC_DYNAMIC]: Use them.
29919 2011-01-31 Nick Clifton <nickc@redhat.com>
29921 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29922 registers inside interrupt handlers if the handler is not a leaf
29925 2011-01-31 Nick Clifton <nickc@redhat.com>
29927 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29928 reg_renumber returning an INVALID_REGNUM.
29930 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
29933 * doc/install.texi: Document host options discarded when cross
29934 configuring target libraries.
29936 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
29939 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
29942 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29944 (no_real_insns_p, schedule_block, set_priorities): Drop special
29945 treatment of boundary debug insns.
29946 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29947 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29948 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29949 (BOUNDARY_DEBUG_INSN_P): Likewise.
29950 (SCHEDULE_DEBUG_INSN_P): Likewise.
29951 * sched-rgn.c (init_ready_list): Drop special treatment of
29952 boundary debug insns.
29953 * final.c (rest_of_clean-state): Clear notes' BB.
29955 2011-01-31 Alan Modra <amodra@gmail.com>
29957 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29958 toc relative expressions as we do in print_operand_address.
29960 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
29962 * doc/extend.texi: Follow spelling conventions.
29963 * doc/invoke.texi: Fix a typo.
29965 2011-01-30 Joseph Myers <joseph@codesourcery.com>
29967 * config/hpux11.opt: New.
29968 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29969 ia64*-*-hpux*): Use hpux11.opt.
29971 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
29973 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29976 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29978 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
29981 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29983 * doc/install.texi (Binaries): Remove outdated reference for
29984 Motorola 68HC11/68HC12 downloads.
29986 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
29988 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
29991 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
29994 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
29997 2011-01-28 Ahmad Sharif <asharif@google.com>
29999 * value-prof.c (check_counter): Corrected error message.
30001 2011-01-29 Jie Zhang <jie@codesourcery.com>
30003 * config/arm/arm.c (arm_legitimize_reload_address): New.
30004 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
30005 arm_legitimize_reload_address.
30006 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
30008 2011-01-28 Ian Lance Taylor <iant@google.com>
30010 * godump.c (go_define): Ignore macros whose definitions include
30011 two adjacent operands.
30013 2011-01-28 Jakub Jelinek <jakub@redhat.com>
30016 * varasm.c (force_const_mem): Store copy of x in desc->constant
30017 instead of x itself.
30018 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
30019 itself into REG_EQUAL note.
30021 2011-01-28 Joseph Myers <joseph@codesourcery.com>
30023 * config/freebsd.opt (posix, rdynamic): New Driver options.
30025 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30027 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
30028 -Bstatic/-Bdynamic.
30029 * configure: Regenerate.
30031 2011-01-27 Joseph Myers <joseph@codesourcery.com>
30033 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
30034 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
30036 2011-01-27 Anatoly Sokolov <aesok@post.ru>
30038 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
30039 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
30040 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
30041 (s390_preferred_reload_class): Make static. Change return and
30042 'rclass' argument type to reg_class_t.
30044 2011-01-27 Jan Hubicka <jh@suse.cz>
30046 PR middle-end/46949
30047 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
30048 (process_function_and_variable_attributes): Check defined weakrefs.
30050 2011-01-27 Martin Jambor <mjambor@suse.cz>
30052 PR tree-optimization/47228
30053 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
30054 build_ref_for_offset.
30056 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30058 * config/spu/spu-elf.h (ASM_SPEC): Remove.
30060 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
30062 PR rtl-optimization/46856
30063 * postreload.c (reload_combine_recognize_const_pattern): Do not
30064 separate cc0 setter and user on cc0 targets.
30066 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
30069 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
30070 passed a VOID_TYPE expression, immediately emit an error and
30071 return error_mark_node.
30073 2011-01-26 Jeff Law <law@redhat.com>
30075 PR rtl-optimization/47464
30076 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
30077 rather than may_trap_p as needed.
30079 2011-01-26 DJ Delorie <dj@redhat.com>
30081 PR rtl-optimization/46878
30082 * combine.c (insn_a_feeds_b): Check for the implicit cc0
30083 setter/user dependency as well.
30085 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
30087 PR rtl-optimization/44469
30088 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
30089 after removing trivially dead basic blocks.
30091 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30093 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
30094 * config/frv/frv.h (LINK_SPEC): Likewise.
30095 * config/i386/netware.h (LINK_SPEC): Likewise.
30096 * config/m68k/linux.h (ASM_SPEC): Likewise.
30097 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
30098 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
30099 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30100 * config/sparc/linux.h (ASM_SPEC): Likewise.
30101 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30102 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30104 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30106 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
30107 * config/frv/frv.h (ASM_SPEC): Likewise.
30108 * config/m68k/linux.h (ASM_SPEC): Likewise.
30109 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
30110 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
30111 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30112 * config/sparc/linux.h (ASM_SPEC): Likewise.
30113 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30114 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30116 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30118 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
30119 * config/frv/frv.h (LINK_SPEC): Likewise.
30120 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
30122 2011-01-26 Joseph Myers <joseph@codesourcery.com>
30124 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
30125 * config/frv/frv.h (ASM_SPEC): Likewise.
30126 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
30127 * config/m68k/linux.h (ASM_SPEC): Likewise.
30128 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
30129 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30130 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30131 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
30132 * config/sparc/linux.h (ASM_SPEC): Likewise.
30133 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30134 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30135 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
30137 2011-01-26 Steve Ellcey <sje@cup.hp.com>
30140 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
30142 (vec_extract_evenodd_help): Ditto.
30143 (vec_extract_evenv4hi): Ditto.
30144 (vec_extract_oddv4hi): Ditto.
30145 (vec_interleave_lowv2si): Ditto.
30146 (vec_interleave_highv2si): Ditto.
30147 (vec_extract_evenv2si): Ditto.
30148 (vec_extract_oddv2si: Ditto.
30149 (vec_pack_trunc_v2si): Ditto.
30151 2011-01-22 Jan Hubicka <jh@suse.cz>
30154 * cgraph.h (cgraph_local_info): New field can_change_signature.
30155 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
30156 signature can change.
30157 (ipcp_estimate_growth): Call sequence simplify only if calle signature
30159 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
30160 (cgraph_function_versioning): We can not change signature of functions
30161 that don't allow that.
30162 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
30163 (lto_input_node): Likewise.
30164 * ipa-inline.c (compute_inline_parameters): Compute
30165 local.can_change_signature.
30166 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
30167 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
30168 functions that can not change signature.
30169 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
30170 init_cumulative_args): Do not use local calling conventions
30171 for functions that can not change signature.
30173 2011-01-22 Jan Hubicka <jh@suse.cz>
30175 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
30177 2011-01-26 Richard Guenther <rguenther@suse.de>
30179 PR tree-optimization/47190
30180 * cgraphunit.c (process_common_attributes): New function.
30181 (process_function_and_variable_attributes): Use it.
30183 2011-01-26 Richard Guenther <rguenther@suse.de>
30186 * cgraphbuild.c (record_eh_tables): Record reference to personality
30189 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
30192 * sel-sched.c (moveup_expr): Don't let debug insns prevent
30193 non-debug insns from moving up.
30195 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
30198 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
30199 t-dlldir{,-x} fragment for build and add it to tmake_file.
30200 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
30201 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
30202 * config/i386/t-dlldir: New file.
30203 (SHLIB_DLLDIR): Define.
30204 * config/i386/t-dlldir-x: New file.
30205 (SHLIB_DLLDIR): Define.
30206 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
30207 (SHLIB_INSTALL): Use it.
30209 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
30212 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
30213 lower bound of the allowed Thumb-2 coprocessor load/store
30214 index range to -256. Add explaining comment.
30216 2011-01-25 Ian Lance Taylor <iant@google.com>
30218 * godump.c (go_define): Improve lexing of macro expansion to only
30219 accept expressions which match Go spec.
30221 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
30224 * tree.c (handle_dll_attribute): Handle it.
30225 * doc/extend.texi (@item dllexport): Mention it.
30226 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
30228 2011-01-25 Ian Lance Taylor <iant@google.com>
30230 PR tree-optimization/26854
30231 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
30232 (decl_jump_unsafe): Move higher in file, with no other change.
30233 (bind): Set has_jump_unsafe_decl if appropriate.
30234 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
30235 (check_earlier_gotos): Likewise.
30236 (c_check_switch_jump_warnings): Likewise.
30238 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
30240 * doc/invoke.texi (Warning Options): Add missing hyphen.
30241 (-fprofile-dir): Minor grammatical fixes.
30242 (-fbranch-probabilities): Likewise.
30244 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
30248 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
30250 (no_real_insns_p, schedule_block, set_priorities): Drop special
30251 treatment of boundary debug insns.
30252 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
30253 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
30254 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
30255 (BOUNDARY_DEBUG_INSN_P): Likewise.
30256 (SCHEDULE_DEBUG_INSN_P): Likewise.
30257 * sched-rgn.c (init_ready_list): Drop special treatment of
30258 boundary debug insns.
30259 * final.c (rest_of_clean-state): Clear notes' BB.
30261 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30263 * Makefile.in (LAMBDA_H): Removed.
30264 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
30265 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
30266 lambda-trans.o, and tree-loop-linear.o.
30267 (lto-symtab.o): Remove dependence on LAMBDA_H.
30268 (tree-loop-linear.o): Remove rule.
30269 (lambda-mat.o): Same.
30270 (lambda-trans.o): Same.
30271 (lambda-code.o): Same.
30272 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
30273 (tree-vect-slp.o): Same.
30274 * hwint.h (gcd): Moved here.
30275 (least_common_multiple): Same.
30276 * lambda-code.c: Removed.
30277 * lambda-mat.c: Removed.
30278 * lambda-trans.c: Removed.
30279 * lambda.h: Removed.
30280 * tree-loop-linear.c: Removed.
30281 * lto-symtab.c: Do not include lambda.h.
30282 * omega.c (gcd): Removed.
30283 * passes.c (init_optimization_passes): Remove pass_linear_transform.
30284 * tree-data-ref.c (print_lambda_vector): Moved here.
30285 (lambda_vector_copy): Same.
30286 (lambda_matrix_copy): Same.
30287 (lambda_matrix_id): Same.
30288 (lambda_vector_first_nz): Same.
30289 (lambda_matrix_row_add): Same.
30290 (lambda_matrix_row_exchange): Same.
30291 (lambda_vector_mult_const): Same.
30292 (lambda_vector_negate): Same.
30293 (lambda_matrix_row_negate): Same.
30294 (lambda_vector_equal): Same.
30295 (lambda_matrix_right_hermite): Same.
30296 * tree-data-ref.h: Do not include lambda.h.
30297 (lambda_vector): Moved here.
30298 (lambda_matrix): Same.
30299 (dependence_level): Same.
30300 (lambda_transform_legal_p): Removed declaration.
30301 (lambda_collect_parameters): Same.
30302 (lambda_compute_access_matrices): Same.
30303 (lambda_vector_gcd): Same.
30304 (lambda_vector_new): Same.
30305 (lambda_vector_clear): Same.
30306 (lambda_vector_lexico_pos): Same.
30307 (lambda_vector_zerop): Same.
30308 (lambda_matrix_new): Same.
30309 * tree-flow.h (least_common_multiple): Removed declaration.
30310 * tree-parloops.c (lambda_trans_matrix): Moved here.
30311 (LTM_MATRIX): Same.
30312 (LTM_ROWSIZE): Same.
30313 (LTM_COLSIZE): Same.
30314 (LTM_DENOMINATOR): Same.
30315 (lambda_trans_matrix_new): Same.
30316 (lambda_matrix_vector_mult): Same.
30317 (lambda_transform_legal_p): Same.
30318 * tree-pass.h (pass_linear_transform): Removed declaration.
30319 * tree-ssa-loop.c (tree_linear_transform): Removed.
30320 (gate_tree_linear_transform): Removed.
30321 (pass_linear_transform): Removed.
30322 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
30323 flag_loop_interchange.
30325 2011-01-25 Jakub Jelinek <jakub@redhat.com>
30327 PR tree-optimization/47265
30328 PR tree-optimization/47443
30329 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
30330 if name still has some uses.
30332 2011-01-25 Martin Jambor <mjambor@suse.cz>
30334 PR tree-optimization/47382
30335 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
30336 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
30338 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
30340 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
30341 sjlj_except_unwind_info.
30343 2011-01-25 Richard Guenther <rguenther@suse.de>
30345 PR tree-optimization/47426
30346 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
30347 visible functions results escape.
30349 2011-01-25 Jakub Jelinek <jakub@redhat.com>
30352 * config/arm/arm.c (any_sibcall_uses_r3): New function.
30353 (arm_get_frame_offsets): Use it.
30355 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30356 Jakub Jelinek <jakub@redhat.com>
30358 PR tree-optimization/47271
30359 * tree-if-conv.c (bb_postdominates_preds): New.
30360 (if_convertible_bb_p): Call bb_postdominates_preds.
30361 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
30362 (predicate_scalar_phi): Call bb_postdominates_preds.
30364 2011-01-25 Nick Clifton <nickc@redhat.com>
30366 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
30367 * config/rx/rx.c (rx_function_value): Likewise.
30368 (rx_promote_function_mode): Likewise.
30369 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
30370 in order to make it legitimate.
30371 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
30372 make sure that the first operand is the same as the result register.
30373 (addsi3_unspec): Delete.
30374 (subdi3): Do not accept immediate operands.
30375 (subdi3_internal): Likewise.
30377 2011-01-25 Jeff Law <law@redhat.com>
30379 PR rtl-optimization/37273
30380 * ira-costs.c (scan_one_insn): Detect constants living in memory and
30381 handle them like argument loads from stack slots. Do not double
30382 count memory for memory constants and argument loads from stack slots.
30384 2011-01-25 Jakub Jelinek <jakub@redhat.com>
30386 PR tree-optimization/47427
30387 PR tree-optimization/47428
30388 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
30389 coalesce if the new root var would be TREE_READONLY.
30391 2011-01-25 Richard Guenther <rguenther@suse.de>
30393 PR middle-end/47414
30394 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
30395 correct type for TBAA.
30397 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30399 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
30400 (close_phi_written_to_memory): Call for_each_index with
30401 dr_indices_valid_in_loop.
30403 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30405 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
30406 when it is initialized.
30408 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30410 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
30411 call to graphite_find_data_references_in_stmt.
30412 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
30413 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
30414 call to graphite_find_data_references_in_stmt.
30415 (analyze_drs_in_stmts): Same.
30416 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
30417 in which the scalar analysis of indices is performed.
30418 (create_data_ref): Same. Update call to dr_analyze_indices.
30419 (find_data_references_in_stmt): Update call to create_data_ref.
30420 (graphite_find_data_references_in_stmt): Same.
30421 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
30423 (create_data_ref): Same.
30424 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
30425 call to create_data_ref.
30427 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30429 * graphite-sese-to-poly.c (build_poly_scop): Move
30430 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
30432 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30434 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
30435 VAR_DECL, PARM_DECL, and RESULT_DECL.
30437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30439 * graphite-dependences.c (reduction_dr_1): Allow several reductions
30440 in a reduction PBB.
30441 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
30442 that have already been marked as PBB_IS_REDUCTION.
30444 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30446 * graphite-scop-detection.c (same_close_phi_node): New.
30447 (remove_duplicate_close_phi): New.
30448 (make_close_phi_nodes_unique): New.
30449 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
30451 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30453 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
30454 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
30455 of both data references to be the same.
30457 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30459 * graphite-dependences.c (build_lexicographical_constraint): Remove
30460 the gdim parameter.
30461 (build_lexicographical_constraint): Adjust call to
30462 ppl_powerset_is_empty.
30463 (dependence_polyhedron): Same.
30464 (graphite_legal_transform_dr): Same.
30465 (graphite_carried_dependence_level_k): Same.
30466 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
30468 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
30470 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30472 * graphite-sese-to-poly.c
30473 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
30474 (close_phi_written_to_memory): New.
30475 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
30478 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30480 * doc/install.texi: Update the expected version number of PPL to 0.11.
30481 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
30482 #if PPL_VERSION_MINOR < 11.
30484 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30486 * graphite-dependences.c: Include graphite-cloog-util.h.
30487 (new_poly_ddr): Inlined into dependence_polyhedron.
30488 (free_poly_ddr): Moved close by new_poly_ddr.
30489 (dependence_polyhedron_1): Renamed dependence_polyhedron.
30490 Early return NULL when ppl_powerset_is_empty returns true.
30491 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
30492 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
30493 (graphite_legal_transform_dr): Call new_poly_ddr.
30494 (graphite_carried_dependence_level_k): Same.
30495 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
30496 (dot_transformed_deps_stmt_1): Removed.
30497 (dot_deps_stmt_1): Call dot_deps_stmt_2.
30498 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
30499 (dot_deps_1): Call dot_deps_2.
30500 * Makefile.in (graphite-dependences.o): Add missing dependence on
30501 graphite-cloog-util.h.
30503 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30505 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
30506 (build_lexicographical_constraint): Same.
30507 (dependence_polyhedron_1): Same.
30508 (graphite_legal_transform_dr): Same.
30509 (graphite_carried_dependence_level_k): Same.
30510 * graphite-ppl.c (ppl_powerset_is_empty): New.
30511 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
30512 * tree-data-ref.c (dump_data_reference): Print the basic block index.
30514 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30516 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
30517 the "a followed by b" relation and document it.
30519 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30521 * graphite-dependences.c (build_lexicographical_constraint): Stop the
30522 iteration when the bag of constraints is empty.
30524 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30526 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
30528 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30530 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
30531 nest and two loop depths as parameters.
30532 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
30533 lst_perfect_nestify.
30535 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30537 * graphite-dependences.c (print_pddr): Call
30538 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
30540 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
30542 * graphite-ppl.c (debug_gmp_value): New.
30543 * graphite-ppl.h (debug_gmp_value): Declared.
30545 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
30547 * doc/install.texi: Document availability of cloog-0.16.
30549 2011-01-25 Vladimir Kargov <kargov@gmail.com>
30551 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
30552 invalid postdominance info.
30554 2011-01-24 Jan Hubicka <jh@suse.cz>
30557 * doc/extend.texi (weak pragma): Drop claim that it must
30558 appear before definition.
30559 * varasm.c (merge_weak, declare_weak): Only sanity check
30560 that DECL is not output at a time it is declared weak.
30562 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
30564 * machmode.def: Fixed comments.
30566 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
30568 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
30570 2011-01-24 Paul Koning <ni1d@arrl.net>
30572 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
30575 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
30578 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
30579 (block_info): Add scanned and prev.
30580 (move_or_delete_vzeroupper_2): Return if the basic block
30581 has been scanned and the upper 128bit state is unchanged
30582 from the last scan.
30583 (move_or_delete_vzeroupper_1): Return true if the exit
30585 (move_or_delete_vzeroupper): Visit basic blocks using the
30586 work-list based algorithm based on vt_find_locations in
30589 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
30591 2011-01-24 Nick Clifton <nickc@redhat.com>
30593 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
30594 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
30595 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
30596 then define __v850e1__.
30597 * doc/invoke.texi: Document -mv850es.
30599 2011-01-24 Richard Henderson <rth@redhat.com>
30601 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
30602 compound unordered comparisons.
30603 * config/rx/rx.c (rx_split_fp_compare): Remove.
30604 * config/rx/rx-protos.h: Update.
30605 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
30606 (cbranchsf4): Don't call rx_split_fp_compare.
30607 (*cbranchsf4): Use rx_split_cbranch.
30608 (*cmpsf): Don't accept "i" constraint.
30609 (*conditional_branch): Only valid after reload.
30610 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
30612 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30615 * config/rs6000/altivec.md (vector constant splitters): Add
30616 support for creating vector single precision constants if -mvsx is
30617 used and we would create the constant using Altivec primitives.
30619 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
30620 Richard Sandiford <rdsandiford@googlemail.com>
30622 PR rtl-optimization/47166
30623 * reload1.c (emit_reload_insns): Disable the spill_reg_store
30624 mechanism for PRE_MODIFY and POST_MODIFY.
30625 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
30628 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
30630 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
30632 2011-01-22 Jan Hubicka <jh@suse.cz>
30635 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
30637 2011-01-22 Jan Hubicka <jh@suse.cz>
30639 PR tree-optimization/43884
30641 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
30642 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
30644 2011-01-22 Anatoly Sokolov <aesok@post.ru>
30646 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30647 * config/s390/s390.c (s390_register_move_cost,
30648 s390_memory_move_cost): New.
30649 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
30651 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30653 PR middle-end/47401
30654 * except.c (sjlj_assign_call_site_values): Move setting the
30655 crtl->uses_eh_lsda flag to ...
30656 (sjlj_mark_call_sites): ... here.
30657 (sjlj_emit_function_enter): Support NULL dispatch label.
30658 (sjlj_build_landing_pads): In a function with no landing pads
30659 that still has must-not-throw regions, generate code to register
30660 a personality function with empty LSDA.
30662 2011-01-21 Richard Henderson <rth@redhat.com>
30664 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
30666 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
30668 * compare-elim.c: New file.
30669 * Makefile.in (OBJS-common): Add it.
30670 (compare-elim.o): New.
30671 * common.opt (fcompare-elim): New.
30672 * opts.c (default_options_table): Add OPT_fcompare_elim.
30673 * tree-pass.h (pass_compare_elim_after_reload): New.
30674 * passes.c (init_optimization_passes): Add it.
30675 * recog.h: Protect against re-inclusion.
30676 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
30677 * doc/invoke.texi (-fcompare-elim): Document it.
30678 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
30679 * doc/tm.texi: Rebuild.
30681 2011-01-22 Nick Clifton <nickc@redhat.com>
30683 * config/rx/rx.md (cstoresf4): Pass comparison operator to
30684 rx_split_fp_compare.
30686 2011-01-22 Nick Clifton <nickc@redhat.com>
30688 * config/rx/rx.md (UNSPEC_CONST): New.
30689 (deallocate_and_return): Wrap the amount popped off the stack in
30690 an UNSPEC_CONST in order to stop it being rejected by
30691 -mmax-constant-size.
30692 (pop_and_return): Add a "(return)" rtx.
30693 (call): Drop the immediate operand.
30694 (call_internal): Likewise.
30695 (call_value): Likewise.
30696 (call_value_internal): Likewise.
30697 (sibcall_internal): Likewise.
30698 (sibcall_value_internal): Likewise.
30699 (sibcall): Likewise. Generate an explicit call using
30701 (sibcall_value): Likewise.
30702 (mov<>): FAIL if a constant operand is not legitimate.
30703 (addsi3_unpsec): New pattern.
30705 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
30706 (ok_for_max_constant): New function.
30707 (gen_safe_add): New function.
30708 (rx_expand_prologue): Use gen_safe_add.
30709 (rx_expand_epilogue): Likewise.
30710 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
30713 2011-01-21 Jeff Law <law@redhat.com>
30715 PR tree-optimization/47053
30716 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
30717 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
30718 statements are deleted.
30719 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
30720 is nonempty, then purge dead edges and cleanup the CFG.
30722 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30725 Temporarily revert:
30726 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30728 * tree-dfa.c (create_var_ann): Mark variable as used.
30730 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30732 PR middle-end/45566
30733 * except.c (convert_to_eh_region_ranges): Emit queued no-region
30734 notes from other section in hot/cold partitioning even if
30735 last_action is -3. Increment call_site_base.
30737 PR rtl-optimization/47366
30738 * fwprop.c (forward_propagate_into): Return bool. If
30739 any changes are made, -fnon-call-exceptions is used and
30740 REG_EH_REGION note is present, call purge_dead_edges
30741 and return true if it purged anything.
30742 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
30743 any EH edges were purged.
30745 2011-01-21 Jeff Law <law@redhat.com>
30747 PR rtl-optimization/41619
30748 * caller-save.c (setup_save_areas): Break out code to determine
30749 which hard regs are live across calls by examining the reload chains
30750 so that it is always used.
30751 Eliminate code which checked REG_N_CALLS_CROSSED.
30753 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30755 PR tree-optimization/47355
30756 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
30757 NOP has non-debug uses beyond PHIs in new_bb.
30759 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
30762 * cfgexpand.c (account_used_vars_for_block): Only account vars
30763 that are annotated as used.
30764 (estimated_stack_frame_size): Don't set TREE_USED.
30765 * tree-dfa.c (create_var_ann): Mark variable as used.
30767 2011-01-21 Richard Guenther <rguenther@suse.de>
30769 PR middle-end/47395
30770 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
30772 2011-01-21 Richard Guenther <rguenther@suse.de>
30774 PR tree-optimization/47365
30775 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
30776 (vn_reference_lookup_pieces): Adjust.
30777 (vn_reference_lookup): Likewise.
30778 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
30779 (vn_reference_lookup_3): Only look through kills if in
30780 VN_WALKREWRITE mode.
30781 (vn_reference_lookup_pieces): Adjust.
30782 (vn_reference_lookup): Likewise.
30783 (visit_reference_op_load): Likewise.
30784 (visit_reference_op_store): Likewise.
30785 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
30786 (compute_avail): Likewise.
30787 (eliminate): Likewise.
30789 2011-01-21 Jakub Jelinek <jakub@redhat.com>
30791 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
30792 DECL_IGNORED_P non-reg vars if they are used.
30794 PR tree-optimization/47391
30795 * varpool.c (const_value_known_p): Return false if
30798 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
30801 * config/i386/i386.c (ix86_local_alignment): Handle
30802 case for va_list_type_node is nil.
30803 (ix86_canonical_va_list_type): Likewise.
30805 2011-01-21 Alan Modra <amodra@gmail.com>
30807 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
30808 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
30810 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30812 * config/arm/arm.md (define_attr type): Rename f_load
30813 and f_store to f_fpa_load and f_fpa_store. Update.
30814 (write_conflict): Deal with rename fallout.
30815 (*push_fp_multi): Likewise.
30816 * config/arm/fpa.md (f_load): Use f_fpa_load.
30817 (f_store): Use f_fpa_store.
30818 (*movsf_fpa): Likewise.
30819 (*movdf_fpa): Likewise.
30820 (*movxf_fpa): Likewise.
30821 (*thumb2_movsf_fpa): Likewise.
30822 (*thumb2_movdf_fpa): Likewise.
30823 (*thumb2_movxf_fpa): Likewise.
30824 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
30825 f_loadd and f_stored.
30826 (*thumb2_movdi_vfp): Likewise.
30827 (*thumb2_movsf_vfp): Fix attribute to f_loads.
30828 (*thumb2_movsi_vfp): Likewise.
30829 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
30830 Use f_loads instead of f_load.
30831 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
30833 2011-01-20 Anatoly Sokolov <aesok@post.ru>
30835 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30836 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
30837 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30838 (xtensa_mode_dependent_address_p): New function.
30839 (constantpool_address_p): Make static. Change return type to bool.
30840 Change argument type to const_rtx. Use CONST_INT_P predicate.
30842 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
30845 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
30847 2011-01-20 Jakub Jelinek <jakub@redhat.com>
30850 * cfgexpand.c (expand_debug_expr): Instead of generating
30851 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
30854 2011-01-20 Richard Guenther <rguenther@suse.de>
30856 PR middle-end/47370
30857 * tree-inline.c (remap_gimple_op_r): Recurse manually for
30858 the pointer operand of MEM_REFs.
30860 2011-01-20 Jakub Jelinek <jakub@redhat.com>
30862 PR tree-optimization/46130
30863 * ipa-split.c (consider_split): If return_bb contains non-virtual
30864 PHIs other than for retval or if split_function would not adjust it,
30867 2011-01-20 Richard Guenther <rguenther@suse.de>
30869 PR tree-optimization/47167
30870 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
30871 Revert previous change, only avoid enumeral type changes.
30873 2011-01-19 Mike Stump <mikestump@comcast.net>
30875 * doc/tm.texi.in (BRANCH_COST): Englishify.
30876 * doc/tm.texi (BRANCH_COST): Likewise.
30878 2011-01-19 Dodji Seketeli <dodji@redhat.com>
30881 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
30882 (gen_scheduled_generic_parms_dies): New functions.
30883 (gen_struct_or_union_type_die): Schedule template parameters DIEs
30884 generation for the end of CU compilation.
30885 (dwarf2out_finish): Generate template parameters DIEs here.
30887 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30890 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30891 debug bind stmt on merge edges.
30893 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30897 * function.c (instantiate_expr): Instantiate incoming rtl of
30898 implicit arguments, and recurse on VALUE_EXPRs.
30899 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30900 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30902 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
30904 * c-parser.c (c_parser_for_statement): Initialize
30905 collection_expression.
30907 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30909 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30911 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30913 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30914 (LINK_SHLIB_SPEC): Don't use %(link_path).
30915 (SUBTARGET_EXTRA_SPECS): Remove link_path.
30917 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30919 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30920 (NO_SHARED_LIB_SUPPORT): Remove.
30921 (LINK_SHLIB_SPEC): Remove one conditional definition.
30923 2011-01-19 Joseph Myers <joseph@codesourcery.com>
30925 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30927 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30928 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30929 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30930 %{call_shared} and conditionals on these options not being passed.
30931 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30934 2011-01-19 Jakub Jelinek <jakub@redhat.com>
30936 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30939 * ipa-split.c: Spelling fixes.
30941 2011-01-19 Richard Henderson <rth@redhat.com>
30943 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30944 (*mulsi3): Likewise.
30946 * longlong.h [__mn10300__] (count_leading_zeros): New.
30947 [__mn10300__] (umul_ppmm, smul_ppmm): New.
30948 [__mn10300__] (add_ssaaaa, subddmmss): New.
30949 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30950 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30952 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30954 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30956 2011-01-19 Richard Henderson <rth@redhat.com>
30958 * config/mn10300/mn10300.md (addsi3_flags): New.
30959 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30960 (subsi3_flags, subc_internal, subdi3): New.
30961 (subdi3_internal, *subdi3_degenerate): New.
30962 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30964 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30965 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30966 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
30967 * config/mn10300/mn10300-protos.h: Update.
30968 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30969 (return_ret): Likewise. Rename from return_internal_regs.
30970 (return_internal): Remove.
30972 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30973 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30974 (mn10300_legitimate_constant_p): Likewise.
30975 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30976 (mn10300_frame_size): New.
30977 (mn10300_expand_prologue): Use it.
30978 (mn10300_expand_epilogue): Likewise.
30979 (mn10300_initial_offset): Likewise.
30980 * config/mn10300/mn10300-protos.h: Update.
30981 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
30982 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
30983 (prologue, epilogue, return_internal): Tidy output code.
30984 (mn10300_store_multiple_operation, return): Likewise.
30985 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
30986 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
30987 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
30988 (load_pic, am33_load_pic): New.
30989 (mn10300_load_pic0, mn10300_load_pic1): New.
30991 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
30992 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
30993 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
30994 (cc_flags_for_mode, cc_flags_for_code): New.
30995 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
30996 overflow flag is not valid. Validate that the flags we need
30997 for the comparison are valid.
30998 (mn10300_output_cmp): Remove.
30999 (mn10300_output_add): New.
31000 (mn10300_select_cc_mode): Use cc_flags_for_code.
31001 (mn10300_split_cbranch): New.
31002 (mn10300_match_ccmode): New.
31003 (mn10300_split_and_operand_count): New.
31004 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
31006 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
31007 (addsi3): ... here. Use mn10300_output_add.
31008 (*addsi3_flags): New.
31009 (*am33_subsi3, *mn10300_subsi3): Merge...
31010 (subsi3): ... here. Use attribute isa.
31011 (*subsi3_flags): New.
31012 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
31014 (*am33_andsi3, *mn10300_andsi3): Merge...
31015 (andsi3): ... here.
31016 (*andsi3_flags): New.
31017 (andsi3 splitters): New.
31018 (*am33_iorsi3, *mn10300_iorsi3): Merge...
31019 (iorsi3): ... here.
31020 (*iorsi3_flags): New.
31021 (*am33_xorsi3, *mn10300_xorsi3): Merge...
31022 (xorsi3): ... here.
31023 (*xorsi3_flags): New.
31024 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
31025 (one_cmplsi2): ... here.
31026 (*one_cmplsi2_flags): New.
31027 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
31028 instead of "dax" in constraints. Use mn10300_split_cbranch.
31029 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
31030 use matching constraints to eliminate a self-comparison.
31031 (*integer_conditional_branch): Rename from integer_conditional_branch.
31032 Use int_mode_flags to match CC_REG.
31033 (*cbranchsi4_btst, *btstsi): New.
31034 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
31035 mn10300_split_cbranch.
31036 (*am33_cmpsf): Rename from am33_cmpsf.
31037 (*float_conditional_branch): Rename from float_conditional_branch.
31038 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
31039 (zero_extendqisi2): ... here.
31040 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
31041 (zero_extendhisi2): ... here.
31042 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
31043 (extendqisi2): ... here.
31044 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
31045 (extendhisi2): ... here.
31046 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
31047 (ashlsi3): ... here.
31048 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
31049 (lshrsi3): ... here.
31050 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
31051 (ashrsi3): ... here.
31052 (consecutive add peephole): Remove.
31053 * config/mn10300/predicates.md (label_ref_operand): New.
31054 (int_mode_flags): New.
31055 (CCZN_comparison_operator): New.
31057 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
31058 (throughput_42_latency_43): New reservation.
31059 (mulsidi3, umulsidi3): New expanders.
31060 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
31061 the MDR register to allocation; separately allocate the low and
31062 high parts of the DImode result.
31063 (umulsidi3_internal): Similarly.
31064 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
31065 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
31066 (udivsi3, umodsi3): Remove.
31067 (udivmodsi4, divmodsi4): New expanders.
31068 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
31069 (*divmodsi4): Simiarly.
31070 (ext_internal): New.
31072 * config/mn10300/constraints.md ("z"): New constraint.
31073 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
31074 (FIXED_REGISTERS): Don't fix MDR.
31075 (CALL_USED_REGSITERS): Reformat nicely.
31076 (REG_ALLOC_ORDER): Add MDR.
31077 (enum regclass): Add MDR_REGS.
31078 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
31079 (IRA_COVER_CLASSES): Add MDR_REGS.
31080 (REGNO_REG_CLASS): Handle MDR_REG.
31081 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
31082 (mn10300_register_move_cost): Likewise.
31083 * config/mn10300/mn10300.md (MDR_REG): New.
31084 (*movsi_internal): Handle moves to/from MDR_REGS.
31086 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
31088 (mn10300_secondary_reload): Tidy combination reload classes.
31089 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
31090 addresses for AM33. Allow symbolic offsets for reg+imm.
31091 (mn10300_regno_in_class_p): New.
31092 (mn10300_legitimize_reload_address): New.
31093 * config/mn10300/mn10300.h (enum reg_class): Remove
31094 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
31095 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
31096 SP_OR_GENERAL_REGS.
31097 (REG_CLASS_NAMES): Update to match.
31098 (REG_CLASS_CONTENTS): Likewise.
31099 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
31100 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
31101 (REGNO_IN_RANGE_P): Remove.
31102 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
31103 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
31104 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
31105 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
31106 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
31107 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
31108 (REGNO_GENERAL_P): New.
31109 (HAVE_POST_MODIFY_DISP): New.
31110 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
31111 (LEGITIMIZE_RELOAD_ADDRESS): New.
31112 * config/mn10300/mn10300-protos.h: Update.
31114 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
31115 DATA_REGS for AM33 stack-pointer destination.
31116 (mn10300_preferred_output_reload_class): Likewise.
31117 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
31118 into a form appropriate for ...
31119 (TARGET_SECONDARY_RELOAD): New.
31120 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
31121 * config/mn10300/mn10300-protos.h: Update.
31122 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
31123 reload_insi; use the "A" constraint for the scratch; handle AM33
31124 moves of sp to non-address registers.
31126 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
31127 (*movqi_internal): ... here.
31128 (*am33_movhi, *mn10300_movhi): Merge into...
31129 (*movhi_internal): ... here.
31130 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
31131 as the source/destination of moves from/to SP.
31132 (movsf): Only allow for AM33-2.
31133 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
31134 any integer constant constraint. Only allow for AM33-2. Tidy
31135 all of the alternative outputs.
31136 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
31137 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
31139 (udivsi3, umodsi3): New patterns for MN103 only.
31141 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
31143 * doc/tm.texi.in: Spell out that a lack of register class unions
31145 * doc/tm.texi: Regenerate.
31147 2011-01-19 Jakub Jelinek <jakub@redhat.com>
31149 PR rtl-optimization/47337
31150 * dce.c (check_argument_store): New function.
31151 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
31153 PR tree-optimization/47290
31154 * tree-eh.c (infinite_empty_loop_p): New function.
31155 (cleanup_empty_eh): Use it.
31157 2011-01-18 Steve Ellcey <sje@cup.hp.com>
31160 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
31161 (a64_expand_widen_sum): Ditto.
31162 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
31163 (vec_extract_evenodd_help): Ditto.
31164 (vec_extract_evenv4hi): Ditto.
31165 (vec_extract_oddv4hi): Ditto.
31166 (vec_extract_evenv2si): Ditto.
31167 (vec_extract_oddv2si): Ditto.
31168 (vec_extract_evenv2sf): Ditto.
31169 (vec_extract_oddv2sf): Ditto.
31170 (vec_pack_trunc_v4hi: Ditto.
31171 (vec_pack_trunc_v2si): Ditto.
31172 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
31173 (vec_interleave_highv8qi): Ditto.
31175 (vec_extract_oddv8qi): Ditto.
31176 (vec_interleave_lowv4hi): Ditto.
31177 (vec_interleave_highv4hi): Ditto.
31178 (vec_interleave_lowv2si): Ditto.
31179 (vec_interleave_highv2si): Ditto.
31181 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31183 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
31184 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
31185 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
31186 (pa_c_mode_for_suffix): New.
31187 (TARGET_EXPAND_BUILTIN): Define.
31188 (TARGET_C_MODE_FOR_SUFFIX): Define.
31189 (pa_builtins): Define.
31190 (pa_init_builtins): Register __float128 type and init new support
31192 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
31193 * config/pa/quadlib.c (_U_Qfcopysign): New.
31195 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
31197 PR middle-end/46894
31198 * explow.c (allocate_dynamic_stack_space): Do not assume more than
31199 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
31202 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31204 PR tree-optimization/47179
31205 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
31206 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
31208 2011-01-18 Richard Guenther <rguenther@suse.de>
31210 PR rtl-optimization/47216
31211 * emit-rtl.c: Include tree-flow.h.
31212 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
31213 of replicating it with different semantics.
31214 * Makefile.in (emit-rtl.o): Adjust.
31216 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31218 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
31219 (cortex_a9_dp): Handle neon types correctly.
31221 2011-01-18 Jakub Jelinek <jakub@redhat.com>
31223 PR rtl-optimization/47299
31224 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
31225 subtarget. Use normal multiplication if both operands are constants.
31226 * expmed.c (expand_widening_mult): Don't try to optimize constant
31227 multiplication if op0 has VOIDmode. Convert op1 constant to mode
31230 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31232 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
31233 spacing after 'e.g.', typos, comma, hyphenation.
31235 2011-01-17 Richard Henderson <rth@redhat.com>
31237 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
31238 (rx_restricted_mem_operand): New.
31239 (rx_shift_operand): Use register_operand.
31240 (rx_source_operand, rx_compare_operand): Likewise.
31241 * config/rx/rx.md (addsi3_flags): New expander.
31242 (adddi3): Rewrite as expander.
31243 (adc_internal, *adc_flags, adddi3_internal): New patterns.
31244 (subsi3_flags): New expander.
31245 (subdi3): Rewrite as expander.
31246 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
31248 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
31249 (rx_init_builtins): Remove sat builtin.
31250 (rx_expand_builtin): Likewise.
31251 * config/rx/rx.md (ssaddsi3): New.
31252 (*sat): Rename from sat. Represent the CC_REG input.
31254 * config/rx/predicates.md (rshift_operator): New.
31255 * config/rx/rx.c (rx_expand_insv): Remove.
31256 * config/rx/rx-protos.h: Update.
31257 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
31258 operand to the canonical position.
31259 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
31260 (*bitclr, *bitclr_in_memory): Similarly.
31261 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
31262 (insv): Retain the zero_extract in the expansion.
31264 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
31265 (bswaphi2, bitinvert, revw): Likewise.
31267 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
31268 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
31269 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
31270 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
31271 (bitset, bitset_in_memory): Likewise.
31272 (bitinvert, bitinvert_in_memory): Likewise.
31273 (bitclr, bitclr_in_memory): Likewise.
31274 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
31275 (rx_strend, rx_cmpstrn): Likewise.
31276 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
31277 (bitop peep2 patterns): Remove.
31279 * config/rx/rx.c (rx_match_ccmode): New.
31280 * config/rx/rx-protos.h: Update.
31281 * config/rx/rx.md (abssi2): Clobber, don't set flags.
31282 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
31283 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
31284 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
31285 (fix_truncsfsi2, floatsisf2): Likewise.
31286 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
31287 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
31288 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
31289 (*subsi3_flags, *xorsi3_flags): New.
31291 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
31293 * config/rx/rx.c (rx_print_operand): Remove workaround for
31294 unsplit comparison operations.
31296 * config/rx/rx.md (movsicc): Split after reload.
31297 (*movsicc): Merge *movsieq and *movsine via match_operator.
31298 (*stcc): New pattern.
31300 * config/rx/rx.c (rx_float_compare_mode): Remove.
31301 * config/rx/rx.h (rx_float_compare_mode): Remove.
31302 * config/rx/rx.md (cstoresi4): Split after reload.
31303 (*sccc): New pattern.
31305 * config/rx/predicates.md (label_ref_operand): New.
31306 (rx_z_comparison_operator): New.
31307 (rx_zs_comparison_operator): New.
31308 (rx_fp_comparison_operator): New.
31309 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
31310 Validate that the flags are set properly for the comparison.
31311 (rx_gen_cond_branch_template): Remove.
31312 (rx_cc_modes_compatible): Remove.
31313 (mode_from_flags): New.
31314 (flags_from_code): Rename from flags_needed_for_conditional.
31315 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
31316 (rx_select_cc_mode): Likewise.
31317 (rx_split_fp_compare): New.
31318 (rx_split_cbranch): New.
31319 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
31320 (*cbranchsi4): Use match_operator and rx_split_cbranch.
31321 (*cbranchsf4): Similarly.
31322 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
31323 match_operator and rx_split_cbranch.
31324 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
31325 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
31326 (*cmpsi): Rename from cmpsi.
31327 (*tstsi): Rename from tstsi.
31328 (*cmpsf): Rename from cmpsf; use CC_Fmode.
31329 (*conditional_branch): Rename from conditional_branch.
31330 (*reveresed_conditional_branch): Remove.
31331 (b<code>): Remove expander.
31332 * config/rx/rx-protos.h: Update.
31334 * config/rx/rx.c (rx_compare_redundant): Remove.
31335 * config/rx/rx.md (cmpsi): Don't use it.
31336 * config/rx/rx-protos.h: Update.
31338 * config/rx/rx-modes.def (CC_F): New mode.
31339 * config/rx/rx.c (rx_select_cc_mode): New.
31340 * config/rx/rx.h (SELECT_CC_MODE): Use it.
31341 * config/rx/rx-protos.h: Update.
31343 2011-01-17 Richard Henderson <rth@redhat.com>
31345 * except.c (dump_eh_tree): Fix stray ; after for statement.
31347 2011-01-17 Richard Guenther <rguenther@suse.de>
31349 PR tree-optimization/47313
31350 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
31351 handling before copying the body. Properly deal with
31352 by-reference result in SSA form.
31354 2011-01-17 Ian Lance Taylor <iant@google.com>
31357 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
31358 (struct_value_alias_set): Don't define.
31359 (sparc_option_override): Don't set sparc_sr_alias_set and
31360 struct_value_alias_set.
31361 (save_or_restore_regs): Use gen_frame_mem rather than calling
31363 (sparc_struct_value_rtx): Likewise.
31365 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
31368 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
31369 (_mm_maskstore_pd): Likewise.
31370 (_mm_maskload_ps): Likewise.
31371 (_mm_maskstore_ps): Likewise.
31372 (_mm256_maskload_pd): Change mask to __m256i.
31373 (_mm256_maskstore_pd): Likewise.
31374 (_mm256_maskload_ps): Likewise.
31375 (_mm256_maskstore_ps): Likewise.
31377 * config/i386/i386-builtin-types.def: Updated.
31378 (ix86_expand_special_args_builtin): Likewise.
31380 * config/i386/i386.c (bdesc_special_args): Update
31381 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
31382 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
31383 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
31384 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
31386 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
31387 Use <avxpermvecmode> on mask register.
31388 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
31390 2011-01-17 Olivier Hainque <hainque@adacore.com>
31391 Michael Haubenwallner <michael.haubenwallner@salomon.at>
31392 Eric Botcazou <ebotcazou@adacore.com>
31395 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
31396 if <= USHRT_MAX in 32-bit mode.
31398 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31400 * doc/install.texi (Configuration, Specific): Wrap long
31401 lines in examples. Allow line wrapping in long options
31402 and URLs where beneficial for PDF output.
31404 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
31406 * config/mips/mips.c (mips_classify_symbol): Don't return
31407 SYMBOL_PC_RELATIVE for nonlocal labels.
31409 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
31411 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
31413 2011-01-15 Jan Hubicka <jh@suse.cz>
31415 PR tree-optimization/47276
31416 * ipa.c (function_and_variable_visibility): Do not try to mark alias
31417 declarations as needed.
31419 2011-01-15 Martin Jambor <mjambor@suse.cz>
31421 * common.opt (fdevirtualize): New flag.
31422 * doc/invoke.texi (Option Summary): Document it.
31423 * opts.c (default_options_table): Add devirtualize flag.
31424 * ipa-prop.c (detect_type_change): Return immediately if
31425 devirtualize flag is not set.
31426 (detect_type_change_ssa): Likewise.
31427 (compute_known_type_jump_func): Likewise.
31428 (ipa_analyze_virtual_call_uses): Likewise.
31430 2011-01-14 Martin Jambor <mjambor@suse.cz>
31432 PR tree-optimization/45934
31433 PR tree-optimization/46302
31434 * ipa-prop.c (type_change_info): New type.
31435 (stmt_may_be_vtbl_ptr_store): New function.
31436 (check_stmt_for_type_change): Likewise.
31437 (detect_type_change): Likewise.
31438 (detect_type_change_ssa): Likewise.
31439 (compute_complex_assign_jump_func): Check for dynamic type change.
31440 (compute_complex_ancestor_jump_func): Likewise.
31441 (compute_known_type_jump_func): Likewise.
31442 (compute_scalar_jump_functions): Likewise.
31443 (ipa_analyze_virtual_call_uses): Likewise.
31444 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
31446 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31448 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
31449 * config/i386/i386.opt (msse5): New Alias.
31451 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31453 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
31454 * config/sparc/linux64.h (CC1_SPEC): Likewise.
31455 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31456 * config/sparc/sparc.h (CC1_SPEC): Likewise.
31458 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31460 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
31462 * config/sparc/linux64.h (CC1_SPEC): Likewise.
31463 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31464 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
31465 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
31467 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
31469 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31471 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
31473 2011-01-14 Mike Stump <mikestump@comcast.net>
31475 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
31476 * config/fr30/fr30.md: Likweise
31477 (movsi_push): Likewise.
31478 (movsi_pop): Likewise.
31479 (enter_func): Likewise.
31480 * config/moxie/moxie.md (movsi_push): Likewise.
31481 (movsi_pop): Likewise.
31483 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31485 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
31486 %{no_archive} %{exact_version}.
31487 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
31488 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
31489 %{no_archive} %{exact_version}.
31490 * config/mips/openbsd.h (LINK_SPEC): Likewise.
31491 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
31492 * config/mips/vxworks.h: Likewise.
31494 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31496 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
31498 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31500 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
31501 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
31503 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31505 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
31508 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31510 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
31512 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
31513 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
31515 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
31516 Don't handle -shlib.
31518 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31520 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
31521 (CC1_SPEC): Don't handle -profile.
31523 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31525 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
31526 * config/mips/mips.h (CC1_SPEC): Likewise.
31528 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31530 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
31531 * config/mips/mips.h (CC1_SPEC): Likewise.
31533 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31535 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
31536 * config/m32r/linux.h (LINK_SPEC): Likewise.
31537 * config/mips/linux.h (LINK_SPEC): Likewise.
31538 * config/mips/linux64.h (LINK_SPEC): Likewise.
31539 * config/sparc/linux.h (LINK_SPEC): Likewise.
31540 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
31541 LINK_SPEC): Likewise.
31542 * config/xtensa/linux.h (LINK_SPEC): Likewise.
31544 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31546 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
31548 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
31550 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31552 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
31553 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
31555 2011-01-14 Joseph Myers <joseph@codesourcery.com>
31557 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
31559 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31561 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
31562 supports -Bstatic/-Bdynamic.
31563 * configure: Regenerate.
31565 2011-01-14 Jan Hubicka <jh@suse.cz>
31566 Jack Howarth <howarth@bromo.med.uc.edu>
31569 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
31570 when checking debug_info_level. Test write_symbols instead of
31571 debug_hooks->var_location when setting flag_var_tracking_uninit.
31573 2011-01-14 Richard Guenther <rguenther@suse.de>
31575 PR tree-optimization/47179
31576 * target.def (ref_may_alias_errno): New target hook.
31577 * targhooks.h (default_ref_may_alias_errno): Declare.
31578 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
31579 (default_ref_may_alias_errno): New function.
31580 * target.h (struct ao_ref_s): Declare.
31581 * tree-ssa-alias.c: Include target.h.
31582 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
31583 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
31584 (targhooks.o): Likewise.
31585 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
31586 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
31588 2011-01-14 Richard Guenther <rguenther@suse.de>
31590 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
31592 2011-01-14 Richard Guenther <rguenther@suse.de>
31594 PR tree-optimization/47280
31595 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
31596 return CFG changes.
31597 (tree_ssa_forward_propagate_single_use_vars): Deal with
31598 CFG changes from associate_plusminus.
31600 2011-01-14 Richard Guenther <rguenther@suse.de>
31602 PR middle-end/47281
31604 2011-01-11 Richard Guenther <rguenther@suse.de>
31606 PR tree-optimization/46076
31607 * tree-ssa.c (useless_type_conversion_p): Conversions from
31608 unprototyped to empty argument list function types are useless.
31610 2011-01-14 Richard Guenther <rguenther@suse.de>
31612 PR tree-optimization/47286
31613 * tree-ssa-structalias.c (new_var_info): Register variables are global.
31615 2011-01-14 Martin Jambor <mjambor@suse.cz>
31617 PR middle-end/46823
31618 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
31620 2011-01-13 Anatoly Sokolov <aesok@post.ru>
31622 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
31623 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
31624 * config/xtensa/xtensa.c (xtensa_libcall_value,
31625 xtensa_function_value_regno_p): New functions.
31626 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31628 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
31631 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
31633 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
31634 New function prototype.
31635 * config/i386/winnt.c (i386_pe_assemble_visibility):
31636 Warn only if attribute was specified by user.
31638 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
31641 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
31643 (floatunsdidf2_fcfidu): Ditto.
31645 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31647 * config/s390/s390.c (print_operand_address): Replace 'error' with
31648 'output_operand_lossage'.
31649 (print_operand): Likewise.
31651 2011-01-13 Jeff Law <law@redhat.com>
31653 PR rtl-optimization/39077
31654 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
31655 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
31656 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
31657 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
31658 * gcse.c (prune_insertions_deletions): New function.
31659 (compute_pre_data): Use it.
31661 2011-01-13 Dodji Seketeli <dodji@redhat.com>
31664 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
31666 (prune_unused_types_mark): Use it.
31668 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
31670 PR rtl-optimization/45352
31671 * sel-sched.c: Update copyright years.
31672 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
31673 in the advancing loop when we have issued issue_rate insns.
31675 2011-01-12 Richard Henderson <rth@redhat.com>
31677 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
31678 (TARGET_MD_ASM_CLOBBERS): New.
31680 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
31681 (TARGET_DELEGITIMIZE_ADDRESS): New.
31683 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
31684 (clzsi2, *bsch): New patterns.
31686 * config/mn10300/mn10300.md (INT): New mode iterator.
31687 (*mov<INT>_clr): New pattern, and peep2 to generate it.
31689 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
31690 flag_split_wide_types.
31692 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
31693 (mn10300_trampoline_init): Rewrite without a template, an immediate
31694 load and a direct branch.
31695 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
31697 2011-01-12 Anatoly Sokolov <aesok@post.ru>
31699 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31700 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
31701 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
31702 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31704 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
31707 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
31710 2011-01-12 Jan Hubicka <jh@suse.cz>
31713 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
31714 (PLUGIN_COND_CLOSE): New macro.
31715 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
31717 2011-01-12 Richard Guenther <rguenther@suse.de>
31720 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
31721 register variables in a MEM_REF.
31723 2011-01-12 Joseph Myers <joseph@codesourcery.com>
31725 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
31726 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
31727 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
31728 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
31729 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
31730 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
31731 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
31732 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
31733 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
31734 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
31735 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
31736 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
31737 * config/gnu-user.h: New. Copied from linux.h.
31738 (LINUX_TARGET_STARTFILE_SPEC): Rename to
31739 GNU_USER_TARGET_STARTFILE_SPEC.
31740 (LINUX_TARGET_ENDFILE_SPEC): Rename to
31741 GNU_USER_TARGET_ENDFILE_SPEC.
31742 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
31743 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
31744 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
31745 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
31746 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
31747 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
31748 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
31749 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
31750 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
31751 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
31752 * config/arm/linux-eabi.h (CC1_SPEC): Use
31753 GNU_USER_TARGET_CC1_SPEC.
31754 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
31755 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
31756 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
31757 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
31758 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
31759 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
31760 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
31761 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
31763 2011-01-12 Richard Guenther <rguenther@suse.de>
31766 * doc/invoke.texi (ffast-math): Document it is turned on
31769 2011-01-12 Jan Hubicka <jh@suse.cz>
31771 PR tree-optimization/47233
31772 * opts.c (common_handle_option): Disable ipa-reference with profile
31775 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
31777 * c-parser.c (c_parser_objc_at_property_declaration): Improved
31780 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
31782 * c-parser.c (c_lex_one_token): Updated and reindented some
31783 comments. No changes in code.
31785 2011-01-11 Ian Lance Taylor <iant@google.com>
31787 * godump.c (go_output_var): Don't output the variable if there is
31788 already a type with the same name.
31790 2011-01-11 Ian Lance Taylor <iant@google.com>
31792 * godump.c (go_format_type): Don't generate float80.
31794 2011-01-11 Richard Henderson <rth@redhat.com>
31796 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
31797 declaration. Rewrite for both speed and size.
31798 (mn10300_address_cost_1): Remove.
31799 (mn10300_register_move_cost): New.
31800 (mn10300_memory_move_cost): New.
31801 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
31802 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
31803 extensions, shifts, BSWAP, CLZ.
31804 (mn10300_wide_const_load_uses_clr): Remove.
31805 (TARGET_REGISTER_MOVE_COST): New.
31806 (TARGET_MEMORY_MOVE_COST): New.
31807 * config/mn10300/mn10300-protos.h: Update.
31808 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
31810 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
31811 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
31812 * config/mn10300/mn10300-protos.h: Update.
31813 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
31814 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
31815 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
31816 (*test_int_bitfield, *test_byte_bitfield): Remove.
31817 (*bit_test, *subreg_bit_test): Remove.
31818 * config/mn10300/predicates.md (const_8bit_operand): Remove.
31820 * config/mn10300/constraints.md ("c"): Rename from "A".
31821 ("A", "D"): New constraint letters.
31822 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
31823 (fmssf4, fnmasf4, fnmssf4): Likewise.
31825 * config/mn10300/mn10300.md (isa): New attribute.
31826 (enabled): New attribute.
31828 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
31829 (abssf2, negsf2): Define only for hardware fp.
31830 (sqrtsf2): Reformat.
31831 (addsf3, subsf3, mulsf3): Merge expander and insn.
31833 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
31834 (DEBUGGER_AUTO_OFFSET): Remove.
31835 (DEBUGGER_ARG_OFFSET): Remove.
31837 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
31838 Emit register stores with the same offsets as the hardware.
31839 (mn10300_store_multiple_operation): Don't check that the register
31840 save offsets are monotonic.
31841 * config/mn10300/mn10300-protos.h: Update.
31843 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
31845 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
31846 in terms of the value on the stack, not the MDR register.
31848 2011-01-11 Jan Hubicka <jh@suse.cz>
31852 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
31853 (symbol_alias_set_destroy, symbol_alias_set_contains,
31854 propagate_aliases_backward): Declare.
31855 * lto-streamer-out.c (struct sets): New sturcture.
31856 (trivally_defined_alias): New function.
31857 (output_alias_pair_p): Rewrite.
31858 (output_unreferenced_globals): Fix output of alias pairs.
31859 (produce_symtab): Likewise.
31860 * ipa.c (function_and_variable_visibility): Set weak alias destination
31862 * varasm.c (symbol_alias_set_t): Remove.
31863 (symbol_alias_set_destroy): Export.
31864 (propagate_aliases_forward, propagate_aliases_backward): New functions
31866 (compute_visible_aliases): ... this one; remove.
31867 (trivially_visible_alias): New
31868 (trivially_defined_alias): New.
31869 (remove_unreachable_alias_pairs): Rewrite.
31870 (finish_aliases_1): Reorganize code checking if alias is defined.
31871 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
31874 2011-01-11 Richard Guenther <rguenther@suse.de>
31876 PR tree-optimization/46076
31877 * tree-ssa.c (useless_type_conversion_p): Conversions from
31878 unprototyped to empty argument list function types are useless.
31880 2011-01-11 Richard Guenther <rguenther@suse.de>
31882 PR middle-end/45235
31883 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
31884 volatile MEMs as MEM_READONLY_P.
31886 2011-01-11 Richard Guenther <rguenther@suse.de>
31888 PR tree-optimization/47239
31889 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31891 2011-01-11 Jeff Law <law@redhat.com>
31893 PR tree-optimization/47086
31894 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31895 IVs from statements that might throw.
31897 2011-01-10 Jan Hubicka <jh@suse.cz>
31900 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31902 2011-01-10 Jan Hubicka <jh@suse.cz>
31905 * profile.c (read_profile_edge_counts): Ignore profile inconistency
31906 when correcting profile.
31908 2011-01-10 Jan Hubicka <jh@suse.cz>
31911 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31912 DECL_FINI_PRIORITY.
31913 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31914 Restore DECL_FINI_PRIORITY.
31916 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31918 * doc/gimple.texi: Fix quoting of multi-word return values in
31919 @deftypefn statements. Ensure presence of return value. Wrap
31920 overlong @deftypefn lines.
31921 (is_gimple_operand, is_gimple_min_invariant_address): Remove
31922 descriptions of removed functions.
31923 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31924 of multi-word return value in @deftypefn statement.
31926 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31928 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31929 (Conditional Expressions, Logical Operators)
31930 (Statement and operand traversals): Do not indent smallexample
31931 code. Fix duplicate function argument in example.
31933 2011-01-10 Jeff Law <law@redhat.com>
31935 PR tree-optimization/47141
31936 * ipa-split.c (split_function): Handle case where we are
31937 returning a value and the return block has a virtual operand phi.
31939 2011-01-10 Jan Hubicka <jh@suse.cz>
31941 PR tree-optimization/47234
31942 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31943 (pass_feedback_split_functions): Declare.
31944 * passes.c (init_optimization_passes): Add ipa-split as subpass of
31946 * ipa-split.c (gate_split_functions): Update comments; disable
31947 split-functions for profile_arc_flag and branch_probabilities.
31948 (gate_feedback_split_functions): New function.
31949 (execute_feedback_split_functions): New function.
31950 (pass_feedback_split_functions): New global var.
31952 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
31955 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31956 calling gimple_call_set_cannot_inline.
31958 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
31960 * config/darwin-sections.def: Remove unused section.
31962 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
31965 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31967 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
31970 * c-parser.c (c_parser_declaration_or_fndef): Improved
31973 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
31975 * config/i386/winnt.c (i386_pe_start_function): Make sure
31976 to switch back to function's section.
31978 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
31982 * plugin.c: Move include of dlfcn.h from here...
31983 * system.h: ... to here.
31985 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31987 * doc/cpp.texi (C++ Named Operators): Fix markup for header
31989 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
31990 two extra empty pages in PDF output.
31992 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
31995 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
31996 for error recovery purposes behave as if it was not specified so
31997 that the default type is usd.
31999 2011-01-07 Jan Hubicka <jh@suse.cz>
32001 PR tree-optmization/46469
32002 * ipa.c (function_and_variable_visibility): Clear needed flags on
32003 nodes with external decls; handle weakrefs merging correctly.
32005 2011-01-07 Joseph Myers <joseph@codesourcery.com>
32007 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
32010 2011-01-07 Jan Hubicka <jh@suse.cz>
32012 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
32013 and no longer claim that gold is required for linker plugin.
32014 * configure: Regenerate.
32015 * gcc.c (PLUGIN_COND): New macro.
32016 (LINK_COMMAND_SPEC): Use it.
32017 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
32018 * config.in (HAVE_LTO_PLUGIN): New.
32019 * configure.ac (--with-lto-plugin): New parameter; autodetect
32022 2011-01-07 Jan Hubicka <jh@suse.cz>
32024 PR tree-optimization/46367
32025 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
32026 when we can update original.
32027 (cgraph_mark_inline_edge): Sanity check.
32028 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
32030 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32032 * config/spu/spu.h (ASM_COMMENT_START): Define.
32034 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
32037 * gcc.c (%>S): New.
32038 (SWITCH_KEEP_FOR_GCC): Likewise.
32039 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
32040 (do_spec_1): Handle "%>".
32042 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
32044 2011-01-07 Jakub Jelinek <jakub@redhat.com>
32047 * config/i386/i386.c (ix86_delegitimize_address): If
32048 simplify_gen_subreg fails, return orig_x.
32051 * value-prof.c (gimple_stringop_fixed_value): Handle
32052 lhs of the call properly.
32054 2011-01-07 Jan Hubicka <jh@suse.cz>
32057 * lto-opt.c (lto_reissue_options): Set flag_shlib.
32059 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
32061 * target.def (function_switched_text_sections): New hook.
32062 * doc/tm.texi: Regenerated.
32063 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
32064 * final.c (default_function_switched_text_sections): New.
32065 (final_scan_insn): Call function_switched_text_sections when a
32066 mid-function section change occurs.
32067 * output.h (default_function_switched_text_sections): Declare.
32068 * config/darwin-protos.h (darwin_function_switched_text_sections):
32070 * config/darwin.c (darwin_function_switched_text_sections): New.
32071 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
32073 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
32075 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
32076 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
32077 the secondary code fragment when outputting for DWARF == 2.
32079 2011-01-07 Anatoly Sokolov <aesok@post.ru>
32081 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
32082 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
32084 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
32085 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
32087 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
32090 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
32091 when it is not empty.
32093 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
32096 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
32097 (case ${target}): Add btver1.
32098 * config/i386/driver-i386.c (host_detect_local_cpu): Let
32099 -march=native recognize btver1 processors.
32100 * config/i386/i386-c.c (ix86_target_macros_internal): Add
32101 btver1 def_and_undef
32102 * config/i386/i386.c (struct processor_costs btver1_cost): New
32104 (m_BTVER1): New definition.
32105 (m_AMD_MULTIPLE): Includes m_BTVER1.
32106 (initial_ix86_tune_features): Add btver1 tune.
32107 (processor_target_table): Add btver1 entry.
32108 (static const char *const cpu_names): Add btver1 entry.
32109 (software_prefetching_beneficial_p): Add btver1.
32110 (ix86_option_override_internal): Add btver1 instruction sets.
32111 (ix86_issue_rate): Add btver1.
32112 (ix86_adjust_cost): Add btver1.
32113 * config/i386/i386.h (TARGET_BTVER1): New definition.
32114 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
32115 (enum processor_type): Add PROCESSOR_BTVER1.
32116 * config/i386/i386.md (define_attr "cpu"): Add btver1.
32118 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32121 * config/i386/i386.c (legitimize_tls_address)
32122 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
32123 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
32124 (tls_initial_exec_64_sun): New pattern.
32126 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
32128 * doc/invoke.texi (Overall Options): Improve wording and markup
32129 of the description of -wrapper.
32131 2011-01-06 Joseph Myers <joseph@codesourcery.com>
32133 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
32134 rdynamic, threads): New Driver options.
32136 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32139 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
32140 if coming from .tdata.
32141 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
32143 2011-01-06 Jan Hubicka <jh@suse.cz>
32146 * collect2.c (main): Do not enable LTOmode when plugin is active.
32148 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32151 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
32152 --version output if supported.
32153 * configure: Regenerate.
32155 2011-01-06 Joseph Myers <joseph@codesourcery.com>
32157 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
32160 2011-01-06 Jakub Jelinek <jakub@redhat.com>
32163 * c-convert.c (convert): When converting a complex expression
32164 other than COMPLEX_EXPR to a different complex type, ensure
32165 c_save_expr is called instead of save_expr, unless in_late_binary_op.
32166 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
32167 when converting COMPLEX_TYPE.
32169 2011-01-06 Ira Rosen <irar@il.ibm.com>
32171 PR tree-optimization/47139
32172 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
32173 only the last reduction value is used outside the loop. Update
32176 2011-01-05 Joseph Myers <joseph@codesourcery.com>
32178 * config/rtems.opt: New.
32179 * config.gcc (*-*-rtems*): Use rtems.opt.
32181 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
32183 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
32184 processors do not support 3DNow instructions.
32186 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32188 * config/spu/spu.c (spu_option_override): Set parameter
32189 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
32191 2011-01-05 Jan Hubicka <jh@suse.cz>
32193 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
32194 at the command line.
32196 2011-01-05 Martin Jambor <mjambor@suse.cz>
32199 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
32200 deltas on streamed outgoing edges.
32201 (output_node_opt_summary): Output info for outgoing edges only when
32202 the node is in new parameter set.
32203 (output_cgraph_opt_summary): New parameter set, passed to the two
32204 aforementioned functions. Update its forward declaration and its
32207 2011-01-05 Tom Tromey <tromey@redhat.com>
32209 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
32210 operator to c_finish_omp_atomic.
32211 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
32212 (build_unary_op): Update.
32213 (build_modify_expr): Update.
32214 (build_asm_expr): Update.
32216 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32218 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
32219 newly inserted insns.
32220 (pad_bb): Likewise.
32221 (spu_emit_branch_hint): Likewise.
32222 (insert_hbrp_for_ilb_runout): Likewise.
32223 (spu_machine_dependent_reorg): Call df_finish_pass after
32224 schedule_insns returns.
32226 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32228 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
32230 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
32232 PR tree-optimization/47005
32233 * tree-sra.c (struct access): Add 'non_addressable' bit.
32234 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
32235 (decide_one_param_reduction): Return 0 if the parameter is passed by
32236 reference and one of the accesses in the group is non_addressable.
32238 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
32240 PR tree-optimization/47056
32241 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
32242 (mark_load): Likewise. Handle FUNCTION_DECL specially.
32243 (mark_store): Likewise. Pass STMT to ipa_record_reference.
32245 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
32247 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
32248 initializer. Skip view conversions from aggregate types.
32250 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
32253 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
32255 2011-01-04 Philipp Thomas <pth@suse.de>
32257 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
32260 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32262 * function.c (thread_prologue_and_epilogue_insns): Do not crash
32263 on empty epilogue sequences.
32265 2011-01-04 Joseph Myers <joseph@codesourcery.com>
32267 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
32268 non-static): New Driver options.
32270 2011-01-04 Jie Zhang <jie@codesourcery.com>
32273 * gcc.c (default_compilers[]): Set combinable field to 0
32274 for all assembly languages.
32276 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
32278 * config/mips/loongson3a.md: New file.
32279 * config/mips/mips.md: Include loongson3a.md.
32280 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
32283 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
32285 PR middle-end/47017
32286 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
32287 instead of convert_memory_address_addr_space on the base expression.
32289 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32291 * config/spu/spu.c (spu_option_override): Update error text
32292 for bad -march= / -mtune= values.
32294 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32296 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
32297 if branch-hint optimization will be performed.
32299 2011-01-03 Jakub Jelinek <jakub@redhat.com>
32301 PR tree-optimization/47148
32302 * ipa-split.c (split_function): Convert arguments to
32303 DECL_ARG_TYPE if possible.
32305 PR tree-optimization/47155
32306 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
32307 when computing uns.
32309 PR rtl-optimization/47157
32310 * combine.c (try_combine): If undobuf.other_insn becomes
32311 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
32312 and set *new_direct_jump_p too.
32314 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
32316 PR tree-optimization/47021
32317 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
32319 2011-01-03 Jakub Jelinek <jakub@redhat.com>
32321 * gcc.c (process_command): Update copyright notice dates.
32322 * gcov.c (print_version): Likewise.
32323 * gcov-dump.c (print_version): Likewise.
32324 * mips-tfile.c (main): Likewise.
32325 * mips-tdump.c (main): Likewise.
32327 2011-01-03 Martin Jambor <mjambor@suse.cz>
32329 PR tree-optimization/46801
32330 * tree-sra.c (type_internals_preclude_sra_p): Check whether
32331 aggregate fields start at byte boundary instead of the bit-field flag.
32333 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
32336 * gcc.c (main): Revert revision 168407.
32338 2011-01-03 Martin Jambor <mjambor@suse.cz>
32340 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
32342 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32344 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
32345 vector optab to expand vector/scalar shift, update gimple to vector.
32347 2011-01-03 Martin Jambor <mjambor@suse.cz>
32349 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
32352 2011-01-03 Martin Jambor <mjambor@suse.cz>
32354 PR tree-optimization/46984
32355 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
32357 (cgraph_create_indirect_edge): Fixed line length.
32358 (cgraph_indirect_call_info): Declare.
32359 (cgraph_make_edge_direct) Update declaration.
32360 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
32361 (cgraph_create_indirect_edge): Use it.
32362 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
32364 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
32365 the new thunk_delta representation.
32366 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
32368 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
32369 (ipa_read_indirect_edge_info): Likewise.
32370 * lto-cgraph.c (output_edge_opt_summary): New function.
32371 (output_node_opt_summary): Call it on all outgoing edges.
32372 (input_edge_opt_summary): New function.
32373 (input_node_opt_summary): Call it on all outgoing edges.
32375 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
32378 * gcc.c (main): Don't check have_o when settting combine_inputs.
32380 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
32382 * regrename.c: Add general comment describing the pass.
32383 (struct du_head): Remove 'length' field.
32384 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
32385 (regrename_optimize): Do not sort chains. Rework comments, add others.
32386 Force renaming to the preferred class (if any) in the first pass and do
32387 not consider registers that belong to it in the second pass.
32388 (create_new_chain): Do not set 'length' field.
32389 (scan_rtx_reg): Likewise.
32391 2011-01-02 Jakub Jelinek <jakub@redhat.com>
32393 PR tree-optimization/47140
32394 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
32395 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
32396 to bit_value_binop.
32398 PR rtl-optimization/47028
32399 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
32400 parm_birth_insn instead of at the beginning of first bb.
32402 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
32404 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
32405 Remove the word "see" before "@pxref".
32406 * doc/rtl.texi: Remove the word "see" before "@pxref".
32408 2011-01-01 Jan Hubicka <jh@suse.cz>
32410 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
32413 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
32416 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
32419 Copyright (C) 2011 Free Software Foundation, Inc.
32421 Copying and distribution of this file, with or without modification,
32422 are permitted in any medium without royalty provided the copyright
32423 notice and this notice are preserved.