1 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4 targetm.asm_out.print_operand.
5 * config/sol2.c: Include target.h.
7 2011-05-04 Jan Hubicka <jh@suse.cz>
9 * ipa-inline.c (reset_edge_caches): New function.
10 (update_caller_keys): Add check_inlinablity_for; do not
11 reset edge caches; remove now unnecesary loop.
12 (update_callee_keys): Add comments; reset
13 node_growth_cache of callee.
14 (update_all_callee_keys): Likewise.
15 (inline_small_functions): Sanity check cache; update code
18 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
20 PR rtl-optimization/47612
21 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
22 as the last insn of the sequence to be moved.
24 2011-05-04 Tobias Burnus <burnus@net-b.de>
27 * doc/invoke.texi (Ofast): Document that it
28 enables Fortran's -fno-protect-parens.
30 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
32 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
34 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
36 * stor-layout.c (variable_size): Do not issue errors.
38 2011-05-04 Richard Guenther <rguenther@suse.de>
40 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
41 for array-ref indices.
42 (tree_coverage_counter_addr): Likewise.
43 (build_fn_info_type): Use size_int for index types.
44 (build_gcov_info): Likewise.
46 2011-05-04 Richard Guenther <rguenther@suse.de>
48 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
50 * c-typeck.c (really_start_incremental_init): Use bitsize_int
51 for constructor indices.
52 (push_init_level): Likewise.
54 2011-05-04 Richard Guenther <rguenther@suse.de>
56 * explow.c (promote_mode): Move variable declarations before code.
58 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
60 * tree.h (build_function_type_array): Declare.
61 (build_varargs_function_type_array): Declare.
62 (build_function_type_vec, build_varargs_function_type_vec): Define.
63 * tree.c (build_function_type_array_1): New function.
64 (build_function_type_array): New function.
65 (build_varargs_function_type_array): New function.
67 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
69 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
70 before setting STMT_VINFO_TYPE.
72 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
74 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
75 instead of spu_pass_by_reference.
77 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
79 * calls.c (emit_library_call_value_1): Invoke
80 promote_function_mode hook on libcall arguments.
81 * explow.c (promote_function_mode, promote_mode): Handle TYPE
83 * targhooks.c (default_promote_function_mode): Lisewise.
84 * config/s390/s390.c (s390_promote_function_mode): Likewise.
85 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
87 * doc/tm.texi: Document that TYPE argument might be NULL.
89 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
91 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
93 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
96 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
98 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
100 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
101 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
103 * mips-tfile.c: ... here.
104 Don't include coretypes.h, tm.h, filenames.h.
105 (saber_stop): Remove definition and all calls.
107 (__LINE__): Remove default.
108 (Size_t, Ptrdiff_t): Remove definitions.
109 Replace by size_t, ptrdiff_t.
110 [!MIPS_DEBUGGING_INFO]: Remove.
111 (SHASH_SIZE, THASH_SIZE): Remove defaults.
112 (progname): Add const.
114 Replace all uses by static.
115 (ALIGN_SYMTABLE_OFFSET): Remove default.
116 * mips-tdump.c: Don't include coretypes.h, tm.h.
117 Remove !MIPS_IS_STAB guard.
118 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
119 $(TM_H), filenames.h dependencies.
120 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
122 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
125 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
126 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
128 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
131 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
132 account and save/restore RETS.
133 (PROFILE_BEFORE_PROLOGUE): Define.
134 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
135 the push insn to use predecrement.
137 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
140 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
142 2011-05-04 Nick Clifton <nickc@redhat.com>
144 * config/mn10300/mn10300.c: Include cfgloop.h.
146 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
147 Lcc or a FLcc insn into the instruction stream.
148 (mn10300_block_contains_call): New function. Returns true if the
149 given basic block contains a CALL insn.
150 (mn10300_loop_contains_call_insn): New function. Returns true if
151 the given loop contains a CALL insn.
152 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
153 to use the SETLB and Lcc or FLcc insns.
154 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
155 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
156 * config/mn10300/mn10300.opt (msetlb): New option. Used to
157 disable the SETLB optimization.
158 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
159 __SETLB__ or __NO_SETLB__.
160 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
161 (movsf_internal): Handle MDR register.
162 (cmpsi): Make visible.
163 (setlb): New pattern.
167 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
170 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
172 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
173 (vec_concatv2di_rex64_sse): Ditto.
174 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
175 (*vec_extractv2di_1_rex64): Ditto.
178 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
180 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
182 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
184 2011-05-04 Richard Guenther <rguenther@suse.de>
186 * tree.h (int_const_binop): Remove notrunc argument.
187 * fold-const.c (int_const_binop): Remove notrunc argument. Always
188 create integer constants that are properly truncated.
189 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
190 (const_binop): Remove zero notrunc argument to int_const_binop.
191 (size_binop_loc): Likewise.
192 (fold_div_compare): Likewise.
193 (maybe_canonicalize_comparison_1): Likewise.
194 (fold_comparison): Likewise.
195 (fold_binary_loc): Likewise.
196 (multiple_of_p): Likewise.
197 * expr.c (store_constructor): Likewise.
198 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
199 (maybe_fold_stmt_addition): Likewise.
200 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
201 * stor-layout.c (layout_type): Likewise.
202 * tree-data-ref.c (tree_fold_divides_p): Likewise.
203 * tree-sra.c (build_ref_for_offset): Likewise.
204 (build_user_friendly_ref_for_offset): Likewise.
205 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
206 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
207 * tree-ssa-loop-niter.c (inverse): Likewise.
208 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
209 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
210 * tree-switch-conversion.c (check_range): Likewise.
211 (build_constructors): Likewise.
212 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
213 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
214 (extract_range_from_assert): Likewise.
215 (vrp_int_const_binop): Likewise.
216 (extract_range_from_binary_expr): Likewise.
217 (extract_range_from_unary_expr): Likewise.
218 (check_array_ref): Likewise.
219 (find_case_label_range): Likewise.
220 (simplify_div_or_mod_using_ranges): Likewise.
221 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
222 comparing case labels for merging.
224 2011-05-03 Mark Wielaard <mjw@redhat.com>
226 * dwarf2out.c (debug_str_hash_forced): Removed.
227 (gen_label_for_indirect_string): Removed.
228 (get_debug_string_label): Removed.
229 (AT_string_form): Generate label directly.
230 (output_indirect_string): Test indirect_string_node for
231 DW_FORM_strp instead of checking label and refcount.
232 (prune_indirect_string): Removed.
233 (prune_unused_types): Don't check debug_str_hash_forced or
234 call prune_indirect_string.
236 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
239 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
241 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
245 * combine.c (try_combine): Skip debug insns at m_split tests.
247 2011-04-26 Mark Wielaard <mjw@redhat.com>
250 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
251 when info_section_emitted.
253 2011-05-03 Joseph Myers <joseph@codesourcery.com>
255 * config/mips/mips-opts.h: New.
256 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
258 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
259 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
260 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
262 * config/mips/mips.h (enum mips_code_readable_setting): Move to
264 (mips_abi, mips_code_readable): Don't declare.
265 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
266 (mabi=): Use Enum and Var.
267 (mips_abi): New Enum and EnumValue entries.
268 (mcode-readable=): Use Enum and Var.
269 (mips_code_readable_setting): New Enum and EnumValue entries.
270 (mr10k-cache-barrier=): Use Enum and Var.
271 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
273 2011-05-03 Jan Hubicka <jh@suse.cz>
275 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
276 replace hash by pointer map.
277 (cgraph_node_set_element_def, cgraph_node_set_element,
278 const_cgraph_node_set_element, varpool_node_set_element_def,
279 varpool_node_set_element, const_varpool_node_set_element): Remove.
280 (free_cgraph_node_set, free_varpool_node_set): New function.
281 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
282 * tree-emutls.c: Free varpool node set.
283 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
284 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
285 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
286 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
287 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
288 Move here from ipa.c; implement using pointer_map
289 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
290 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
291 debug_cgraph_node_set, varpool_node_set_new,
292 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
293 dump_varpool_node_set, debug_varpool_node_set):
295 * passes.c (ipa_write_summaries): Update.
297 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
300 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
301 bf542/bf544/bf547/bf548/bf549.
303 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
305 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
307 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
310 * config/bfin/bfin.md (MOVCC): New mode_macro.
311 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
312 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
313 comments from generated assembly.
315 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
318 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
319 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
320 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
321 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
322 * config/bfin/lib1funcs.asm (___muldi3): New function.
324 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
326 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
327 build_function_type_list instead of build_function_type.
328 Rearrange initialization of `args' to do so.
330 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
332 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
333 instead of build_function_type.
335 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
337 * config/rs6000/rs6000.c (spe_init_builtins): Call
338 build_function_type_list instead of build_function_type.
339 (paired_init_builtins, altivec_init_builtins): Likewise.
340 (builtin_function_type): Likewise.
342 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
344 * config/sh/sh.c (sh_media_init_builtins): Call
345 build_function_type_list instead of build_function_type.
347 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
349 * config/sparc/sparc.c (sparc_file_end): Call
350 build_function_type_list instead of build_function_type.
352 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
354 * config/alpha/alpha.c (alpha_init_builtins): Call
355 build_function_type_list instead of build_function_type.
357 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
359 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
360 build_function_type_list instead of build_function_type.
362 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
364 * config/iq2000/i2000.c (iq2000_init_builtins): Call
365 build_function_type_list instead of build_function_type.
366 Delete `endlink' variable.
368 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
370 * config/avr/avr.c (avr_init_builtins): Call
371 build_function_type_list instead of build_function_type.
373 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
375 * config/picochip/picochip.c (picochip_init_builtins): Call
376 build_function_type_list instead of build_function_type.
377 Delete `endlink' variable.
379 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
381 * config/bfin/bfin.c (bfin_init_builtins): Call
382 build_function_type_list instead of build_function_type.
384 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
387 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
388 that's not CONST_INT. Seemingly redundant check is due to PR39768.
390 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
393 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
394 libbffastfp overrides libgcc when -mfast-fp.
396 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
398 Originally from Bernd Schmidt
399 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
400 * config/bfin/bfin.c (override_options): Test it and error if
403 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
405 Originally From Bernd Schmidt
406 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
409 2011-05-03 Jeff Law <law@redhat.com>
411 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
412 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
413 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
414 than accessing AUX field directly. Free the AUX field before
416 (thread_block, thread_through_loop_header): Likewise.
417 (thread_single_edge, mark_threaded_blocks): Likewise.
418 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
419 (register_jump_thread): Do not attempt to thread to a NULL edge.
421 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
423 * function.c (init_function_start): Call decide_function_section.
424 * varasm.c (decide_function_section): New function.
425 (assemble_start_function): When not using
426 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
427 or first_function_block_is_cold.
428 * rtl.h (decide_function_section): Declare.
430 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
431 Jakub Jelinek <jakub@redhat.com>
434 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
435 only succeed if req_mode is the same as set_mode.
437 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
439 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
440 * genemit.c (gen_exp): Handle RETURN.
441 * emit-rtl.c (verify_rtx_sharing): Likewise.
442 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
443 * rtl.c (copy_rtx): RETURN is shared.
444 * rtl.h (enum global_rtl_index): Add GR_RETURN.
446 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
447 * config/s390/s390.c (s390_emit_epilogue): Likewise.
448 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
449 * config/cris/cris.c (cris_expand_return): Likewise.
450 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
451 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
452 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
453 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
454 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
456 * config/v850/v850.c (expand_epilogue): Likewise.
457 * config/bfin/bfin.c (bfin_expand_call): Likewise.
458 * config/arm/arm.md (epilogue): Likewise.
459 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
460 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
463 2011-05-03 Richard Guenther <rguenther@suse.de>
466 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
467 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
468 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
470 2011-05-03 Richard Guenther <rguenther@suse.de>
472 * c-decl.c (grokdeclarator): Instead of looking at
473 TREE_OVERFLOW check if the constant fits in the index type.
475 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
477 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
478 (vec_store_lanes<mode><mode>): Likewise.
480 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
482 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
483 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
484 convert_optab_index values.
485 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
486 * genopinit.c (optabs): Initialize the new optabs.
487 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
488 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
489 (expand_STORE_LANES): New functions.
490 * tree.h (build_array_type_nelts): Declare.
491 * tree.c (build_array_type_nelts): New function.
492 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
493 (vect_model_load_cost): Likewise.
494 (vect_store_lanes_supported, vect_load_lanes_supported)
495 (vect_record_strided_load_vectors): Declare.
496 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
497 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
498 (vect_transform_strided_load): Split out statement recording into...
499 (vect_record_strided_load_vectors): ...this new function.
500 * tree-vect-stmts.c (create_vector_array, read_vector_array)
501 (write_vector_array, create_array_ref): New functions.
502 (vect_model_store_cost): Add store_lanes_p argument.
503 (vect_model_load_cost): Add load_lanes_p argument.
504 (vectorizable_store): Try to use store-lanes functions for
506 (vectorizable_load): Likewise load-lanes and loads.
507 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
508 to vect_model_store_cost.
509 (vect_build_slp_tree): Likewise vect_model_load_cost.
511 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
513 * hooks.h (hook_bool_mode_uhwi_false): Declare.
514 * hooks.c (hook_bool_mode_uhwi_false): New function.
515 * target.def (array_mode_supported_p): New hook.
516 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
517 * doc/tm.texi: Regenerate.
518 * stor-layout.c (mode_for_array): New function.
519 (layout_type): Use it.
520 * config/arm/arm.c (arm_array_mode_supported_p): New function.
521 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
523 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
526 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
527 for -fstack-check if the size to allocate is negative.
529 2011-05-02 Lawrence Crowl <crowl@google.com>
531 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
532 (timevar_cond_start): New for starting a timer only when it is not
534 (timevar_cond_stop): New for stopping a timer when it was not already
537 * timevar.c (timevar_stop): Enable start/stop timers to start again.
538 (timevar_cond_start): New as above.
539 (timevar_cond_stop): New as above.
541 * timevar.def: Add start/stop timers for compiler phases,
542 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
543 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
544 and TV_PHASE_FINALIZE.
545 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
546 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
547 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
548 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
549 Make unused TV_OVERLOAD into a start/stop timer.
551 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
552 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
553 to indicate that they are start/stop timers.
555 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
556 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
557 Move initialization to do_compile.
558 (do_compile): Add initialization from above.
559 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
561 * c-decl.c (c_write_global_declarations): Add start/stop of
562 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
564 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
565 or TV_PARSE_INLINE, as appropriate.
566 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
567 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
569 2011-05-02 Jason Merrill <jason@redhat.com>
572 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
574 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
577 * c-decl.c (finish_decl): Only create a composite if the types are
580 2011-05-02 Joseph Myers <joseph@codesourcery.com>
582 * config/fr30/fr30-protos.h (Mmode): Don't define.
583 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
584 definition where used.
585 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
586 define. Expand definitions where used.
587 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
588 Expand definitions where used.
589 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
590 rx_function_arg, rx_function_arg_advance,
591 rx_function_arg_boundary): Expand definitions of those macros.
592 * config/v850/v850-protos.h (Mmode): Don't define. Expand
593 definition where used.
595 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
597 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
599 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
600 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
601 with *movv2sf_internal_rex64_avx.
602 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
603 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
604 Use %v prefix in insn mnemonic to handle TARGET_AVX.
605 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
606 "vex" in "prefix" attribute calculation.
607 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
609 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
612 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
613 inputs match the output.
615 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
618 * config/m68k/m68k.c (m68k_expand_prologue): Set
619 current_function_static_stack_size.
621 2011-05-02 Jan Hubicka <jh@suse.cz>
623 * lto-streamer.c (lto_streamer_cache_insert_1,
624 lto_streamer_cache_lookup, lto_streamer_cache_create,
625 lto_streamer_cache_delete): Use pointer map instead of hashtable.
626 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
628 2011-05-02 Joseph Myers <joseph@codesourcery.com>
630 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
631 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
632 config/m68k/t-opts: New files.
633 * config/m68k/m68k-tables.opt: New file (generated).
634 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
635 extra_options and m68k/t-opts to tmake_file.
636 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
637 (all_isas): Initialize using m68k-isas.def.
638 (all_microarchs): Initialize using m68k-microarchs.def.
639 (m68k_find_selection): Remove.
640 (m68k_handle_option): Don't assert that global structures are in
641 use. Use error_at. Access variables via opts pointer. Don't
642 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
643 directly for -m68020-40 and -m68020-60.
644 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
645 m68k_tune_entry here.
646 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
648 (m68k_library_id_string): Remove declaration.
649 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
650 (m68k_library_id_string): New Variable.
651 (march=, mcpu=, mtune=): Use Enum and Var.
653 2011-05-02 Richard Guenther <rguenther@suse.de>
655 * varasm.c (output_constructor_regular_field): Compute zero-based
656 index with double-ints. Make sure to ICE instead of producing
658 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
659 in asserts. Properly use a signed type.
661 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
663 * config/i386/sse.md (V): New mode iterator.
664 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
666 (V_256): Rename from AVX256MODE.
667 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
668 condition to all users.
670 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
671 condition to all users.
672 (VF_128): Make V4SF mode unconditional.
673 (VF_256): Rename from AVX256MODEF2P.
674 (VI4F_128): Rename from SSEMODE4S.
675 (VI8F_128): Rename from SSEMODE2D.
676 (VI4F_256): Rename from AVX256MODE8P.
677 (VI8F_256): Rename from AVX256MODE4P.
678 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
679 (ssescalarmodesuffix): Remove SF and DF modes.
680 (SSEMODE124): Remove.
681 (SSEMODE1248): Ditto.
686 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
688 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
690 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
691 xop_pcmov_<mode>256. Use V mode iterator.
693 Adjust RTX patterns globally for renamed mode attributes.
695 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
697 * haifa-sched.c (sched_emit_insn): Emit insn before first
698 non-scheduled insn. Inform back-end about new insn. Add
699 new insn to scheduled_insns list.
701 2011-05-02 Richard Guenther <rguenther@suse.de>
703 PR tree-optimization/48822
704 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
705 (process_scc): Indicate which iteration we start.
707 2011-05-02 Jan Hubicka <jh@suse.cz>
709 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
710 (lto_section_overrun): New.
711 * lto-section-out.c (append_block): Rename to ...
712 (lto_append_block): ... this one; export.
713 (lto_output_1_stream): Move lto lto-streamer.h
714 (lto_output_data_stream): Update.
715 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
716 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
719 2011-05-02 Richard Guenther <rguenther@suse.de>
721 * tree.c (tree_code_counts): New global array.
722 (record_node_allocation_statistics): Count individual tree codes.
723 (dump_tree_statistics): Dump individual code stats.
725 2011-05-01 Jan Hubicka <jh@suse.cz>
727 * ipa-inline.c (caller_growth_limits): Fix thinko when
728 looking for largest stack frame.
729 * ipa-inline.h (dump_inline_summary): Declare.
730 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
732 (dump_inline_summary): Export.
733 (debug_inline_summary): Declare as DEBUG_FUNCTION.
735 2011-05-01 Anatoly Sokolov <aesok@post.ru>
737 * reginfo.c (memory_move_cost): Change rclass argument type form
738 'enum reg_class' to reg_class_t.
739 * reload.h (memory_move_cost): Update prototype.
740 * postreload.c reload_cse_simplify_set): Change type dclass var to
742 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
744 (ira_allocate_and_set_costs): Change aclass argument type form
745 'enum reg_class' to reg_class_t.
746 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
747 Change aclass argument type to reg_class_t.
748 (update_conflict_hard_reg_costs): Change type aclass and pref vars
750 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
751 memory_move_cost call.
753 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
754 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
755 Change type tmp var to reg_class_t.
757 2011-04-30 Jan Hubicka <jh@suse.cz>
759 * ipa-inline.c (can_inline_edge_p): Disregard limits when
760 inlining into function with flatten attribute.
761 (want_inline_small_function_p): Be more realistic about inlining
762 cold calls where callee size grows.
764 2011-04-30 Jan Hubicka <jh@suse.cz>
766 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
769 2011-04-30 Anatoly Sokolov <aesok@post.ru>
771 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
772 PRINT_OPERAND_PUNCT_VALID_P): Remove.
773 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
774 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
775 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
776 (print_operand): Rename to...
777 (sparc_print_operand): ...this. Make static. Adjust
778 sparc_print_operand function call.
779 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
782 2011-04-30 Jan Hubicka <jh@suse.cz>
785 * ipa-inline.c (early_inliner): Disable when doing late
786 addition of function.
788 2011-04-30 Jakub Jelinek <jakub@redhat.com>
790 * dwarf2out.c (get_address_mode): New inline.
791 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
792 if not dwarf_strict emit
793 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
794 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
795 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
796 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
797 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
798 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
799 mem_loc_descriptor callers.
800 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
801 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
802 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
803 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
804 (base_types): New variable.
805 (get_base_type_offset, calc_base_type_die_sizes,
806 base_type_for_mode, mark_base_types, base_type_cmp,
807 move_marked_base_types): New functions.
808 (calc_die_sizes): Assert that die_offset is 0 or equal to
810 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
811 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
812 callers. If not dwarf_strict, call mem_loc_descriptor even for
813 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
814 (gen_subprogram_die): Don't give up on call site parameters
815 with non-integral or large integral modes. Adjust
816 mem_loc_descriptor callers.
817 (prune_unused_types): Call prune_unused_types_mark on base_types
819 (resolve_addr): Call mark_base_types.
820 (dwarf2out_finish): Call move_marked_base_types.
822 PR tree-optimization/48809
823 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
825 (gen_inbound_check): Don't compute index_expr - range_min in utype
826 again, instead reuse SSA_NAME initialized in build_arrays.
827 Remove two useless gsi_for_stmt calls.
829 2011-04-29 Jeff Law <law@redhat.com>
831 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
833 2011-04-29 Martin Jambor <mjambor@suse.cz>
835 * cgraph.h (cgraph_postorder): Remove declaration.
836 * ipa-utils.h (ipa_free_postorder_info): Declare.
837 (ipa_reverse_postorder): Likewise.
838 * cgraphunit.c: Include ipa-utils.h.
839 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
840 * ipa-inline.c: Include ipa-utils.h.
841 (ipa_inline): Update call to ipa_reverse_postorder.
842 * ipa-pure-const.c (propagate_pure_const): Update call to
843 ipa_reduced_postorder and ipa_print_order. Call
844 ipa_free_postorder_info to clean up.
845 (propagate_nothrow): Likewise.
846 * ipa-reference.c (propagate): Removed a useless call to
847 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
848 and ipa_print_order. Call ipa_free_postorder_info to clean up.
849 * ipa.c: Include ipa-utils.h.
850 (ipa_profile): Update call to ipa_reverse_postorder.
851 (cgraph_postorder): Moved to...
852 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
853 (ipa_utils_print_order): Renamed to ipa_print_order.
854 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
856 (ipa_free_postorder_info): New function.
857 * passes.c: Include ipa-utils.h.
858 (do_per_function_toporder): Update call to ipa_reverse_postorder.
859 (ipa_write_summaries): Likewise.
860 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
861 (cgraphunit.o): Likewise.
863 (ipa-inline.o): Likewise.
865 2011-04-29 Jan Hubicka <jh@suse.cz>
867 * gcc.dg/tree-ssa/inline-10.c: New testcase.
868 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
869 * ipa-inline.h (clause_t): Turn into unsigned int.
870 * ipa-inline-analysis.c (add_clause): Do more simplification.
871 (and_predicates): Shortcut more cases.
872 (predicates_equal_p): Move forward; check that clauses are properly
874 (or_predicates): Shortcut more cases.
875 (edge_execution_predicate): Rewrite as...
876 (set_cond_stmt_execution_predicate): ... this function; handle
877 __builtin_constant_p.
878 (set_switch_stmt_execution_predicate): New .
879 (compute_bb_predicates): New.
880 (will_be_nonconstant_predicate): Update TODO.
881 (estimate_function_body_sizes): Use compute_bb_predicates
882 and free them later, always try to estimate if stmt is constant.
883 (estimate_time_after_inlining, estimate_size_after_inlining):
884 Gracefully handle optimized out edges.
885 (read_predicate): Fix off by one error.
887 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
889 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
891 2011-04-27 Xinliang David Li <davidxl@google.com>
893 * tree-profile.c (init_ic_make_global_vars): Set
894 tls attribute on ic vars.
895 * coverage.c (coverage_end_function): Initialize
896 function_list with zero.
898 2011-04-29 Richard Guenther <rguenther@suse.de>
900 * builtins.c (fold_builtin_classify_type): Use integer_type_node
901 for the type of the result.
902 (fold_builtin_isascii): Likewise.
903 (fold_builtin_toascii): Use integer_type_node where appropriate.
904 (fold_builtin_logb): Likewise.
905 (fold_builtin_frexp): Likewise.
906 (fold_builtin_strstr): Likewise.
907 (fold_builtin_strpbrk): Likewise.
908 (fold_builtin_fputs): Likewise.
909 (fold_builtin_sprintf): Likewise.
910 (fold_builtin_snprintf): Likewise.
911 (fold_builtin_printf): Likewise.
912 (do_mpfr_remquo): Use a proper type for the assigned constant.
913 (do_mpfr_lgamma_r): Likewise.
914 * dwarf2out.c (resolve_one_addr): Use size_int.
915 * except.c (init_eh): Likewise.
916 (assign_filter_values): Use integer_type_node for filter values.
917 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
919 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
920 for EH region numbers.
921 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
922 for the shift amount.
924 2011-04-29 Richard Guenther <rguenther@suse.de>
926 * expr.h (expand_shift): Rename to ...
927 (expand_variable_shift): ... this.
928 (expand_shift): Take a constant shift amount.
929 * expmed.c (expand_shift): Rename to ...
930 (expand_variable_shift): ... this.
931 (expand_shift): New wrapper around expand_variable_shift.
932 * expr.c (convert_move, emit_group_load_1, emit_group_store,
933 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
934 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
935 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
936 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
937 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
938 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
939 emit_store_flag_1, emit_store_flag): Likewise.
940 * builtins.c (expand_builtin_signbit): Likewise.
941 * calls.c (load_register_parameters): Likewise.
942 * function.c (assign_parm_setup_block): Likewise.
943 * lower-subreg.c (resolve_shift_zext): Likewise.
944 * optabs.c (widen_bswap, expand_abs_nojump,
945 expand_one_cmpl_abs_nojump, expand_float): Likewise.
946 * spu/spu.c (spu_expand_extv): Likewise.
947 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
949 2011-04-29 Richard Guenther <rguenther@suse.de>
951 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
952 for the remapped region number.
953 * predict.c (build_predict_expr): Use integer_type_node for the
955 * fold-const.c (fold_binary_loc): Use integer_type_node for
956 the shift amount. Use a proper type for the PLUS_EXPR operand.
958 2011-04-29 Michael Matz <matz@suse.de>
960 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
961 other trees that just builtins.
962 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
964 2011-04-29 Richard Guenther <rguenther@suse.de>
966 * tree-nested.c (get_trampoline_type): Use size_int.
967 (get_nl_goto_field): Likewise.
968 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
970 (lower_eh_constructs_2): Likewise.
971 (lower_resx): Likewise.
972 (lower_eh_dispatch): Likewise.
973 * tree-mudflap.c (mf_build_string): Use size_int.
974 (mudflap_register_call): Use integer_type_node for the flag.
975 (mudflap_enqueue_constant): Use size_int.
976 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
977 instead of rebuilding it.
979 2011-04-29 Richard Guenther <rguenther@suse.de>
981 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
983 (find_func_aliases_for_call): Use it more consistently.
985 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
987 * haifa-sched.c (last_nondebug_scheduled_insn): New.
988 (rank_for_schedule): Use it.
989 (schedule_block): Set it.
991 2011-04-28 David Li <davidxl@google.com>
993 * tree.c (crc32_string): Use crc32_byte.
994 (crc32_byte): New function.
995 * tree.h (crc32_byte): New function.
996 * gcov.c (read_graph_file): Handle new cfg_cksum.
997 (read_count_file): Ditto.
998 * profile.c (instrument_values): Ditto.
999 (get_exec_counts): Ditto.
1000 (read_profile_edge_counts): Ditto.
1001 (compute_branch_probabilities): Ditto.
1002 (compute_value_histograms): Ditto.
1003 (branch_prob): Ditto.
1004 (end_branch_prob): Ditto.
1005 * coverage.c (read_counts_file): Ditto.
1006 (get_coverage_counts): Ditto.
1007 (tree_coverage_counter_addr): Ditto.
1008 (coverage_checksum_string): Ditto.
1009 (coverage_begin_output): Ditto.
1010 (coverage_end_function): Ditto.
1011 (build_fn_info_type): Ditto.
1012 (build_fn_info_value): Ditto.
1013 * libgcov.c (gcov_exit): Ditto.
1014 * gcov-dump.c (tag_function): Ditto.
1015 (compute_checksum): Remove.
1017 2011-04-29 Alan Modra <amodra@gmail.com>
1019 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1020 unspec plus offset. Tidy macho code.
1022 2011-04-29 Martin Jambor <mjambor@suse.cz>
1024 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1025 node instead of a decl. Update all callers.
1026 * cgraph.h: Update declaration.
1028 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1030 PR tree-optimization/48765
1031 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1032 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1033 to indicate if loop aware SLP is being used. Scan the statements
1034 and update the vectorization factor according to the type of
1035 vectorization before statement analysis.
1036 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1037 pass it to vect_analyze_loop_operations.
1038 (vectorizable_reduction): Set number of copies to 1 in case of pure
1040 * tree-vect-stmts.c (vectorizable_conversion,
1041 vectorizable_assignment, vectorizable_shift,
1042 vectorizable_operation, vectorizable_type_demotion,
1043 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1045 (vectorizable_condition): Move the check that it is not SLP
1046 vectorization before the number of copies check.
1047 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1048 to vectorize the loop using SLP.
1050 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1053 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1056 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1058 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1059 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1060 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1061 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1062 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1064 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1065 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1066 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1067 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1068 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1069 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1071 * config/i386/linux.h (REG_NAME): Don't define.
1072 * config/i386/linux64.h (REG_NAME): Don't define.
1073 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1074 Undefine before defining.
1076 2011-04-28 Jan Hubicka <jh@suse.cz>
1078 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1079 nonconstant_names array.
1080 (estimate_function_body_sizes): Build nonconstant_names array; handle
1081 BUILT_IN_CONSTANT_P.
1083 2011-04-28 Richard Guenther <rguenther@suse.de>
1087 2011-04-28 Richard Guenther <rguenther@suse.de>
1089 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1090 as late as possible.
1092 2011-04-28 Richard Guenther <rguenther@suse.de>
1094 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1095 (debug_constraint): Do it here.
1096 (dump_constraints): And here.
1097 (rewrite_constraints): And here.
1098 (dump_constraint_edge): Remove.
1099 (dump_constraint_graph): Rewrite to produce DOT output.
1100 (solve_constraints): Build succ graph as late as possible.
1101 Dump constraint graphs before and after solving.
1103 2011-04-28 Richard Guenther <rguenther@suse.de>
1105 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1106 New function split out from ...
1107 (find_func_aliases): ... here. Call it.
1108 (find_func_aliases_for_call): Likewise.
1110 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1112 * internal-fn.h (internal_fn_name_array): Declare.
1113 (internal_fn_flags_array): Likewise.
1115 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1117 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1118 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1120 (ssemodefsuffix): Remove.
1121 (ssevecmodesuffix): New mode attribute.
1122 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1123 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1124 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1125 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1126 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1127 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1128 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1129 ssemodesuffix mode attribute.
1130 (float splitters): Use ssevecmodesuffix mode attribute.
1131 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1132 (sseinsmode): Rename from avxvecmode.
1133 (avxsizesuffix): Rename from avxmodesuffix.
1134 (sseintvecmode): Rename from avxpermvecmode.
1135 (ssedoublevecmode): Rename from ssedoublesizemode.
1136 (ssehalfvecmode): Rename from avxhalfvecmode.
1137 (ssescalarmode): Rename from avxscalarmode.
1138 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1139 templates for ssemodesuffix mode attribute.
1140 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1143 Adjust RTX patterns globally for renamed mode attributes.
1145 2011-04-27 Jan Hubcika <jh@suse.cz>
1147 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1148 * ipa-inline-analysis.c: Include alloc-pool.h.
1149 (edge_predicate_pool): New.
1150 (trye_predicate_p): New function
1151 (false_predicate_p): New function.
1152 (add_clause): Sanity check that false clauses are "optimized";
1153 never add clauses to predicate that is already known to be false.
1154 (and_predicate): Use flase_predicate_p.
1155 (evaulate_predicate): Rename to ...
1156 (evaluate_predicate): ... this one; update all callers; assert
1157 that false is not listed among possible truths.
1158 (dump_predicate): Use true_predicate_p.
1159 (account_size_time): Use false_predicate_p.
1160 (evaulate_conditions_for_edge): Rename to ...
1161 (evaluate_conditions_for_edge) ... this one.
1162 (edge_set_predicate): New function.
1163 (inline_edge_duplication_hook): Duplicate edge predicates.
1164 (inline_edge_removal_hook): Free edge predicates.
1165 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1166 (dump_inline_summary): Update.
1167 (estimate_function_body_sizes): Set edge predicates.
1168 (estimate_calls_size_and_time): Handle predicates.
1169 (estimate_callee_size_and_time): Update.
1170 (remap_predicate): Add toplev_predicate; update comment.
1171 (remap_edge_predicates): New function.
1172 (inline_merge_summary): Compute toplev predicate; update.
1173 (read_predicate): New function.
1174 (read_inline_edge_summary): Use it.
1175 (inline_read_section): Likewise.
1176 (write_predicate): New function.
1177 (write_inline_edge_summary): Use it.
1178 (inline_write_summary): Likewise.
1179 (inline_free_summary): Free alloc pool and edge summary vec.
1181 2011-04-27 Richard Guenther <rguenther@suse.de>
1183 * tree-ssa-structalias.c (changed_count): Remove.
1184 (changed): Use a bitmap.
1185 (unify_nodes): Adjust.
1186 (do_sd_constraint): Likewise.
1187 (do_ds_constraint): Likewise.
1188 (do_complex_constraint): Likewise.
1189 (solve_graph): Likewise.
1191 2011-04-27 Jan Hubicka <jh@suse.cz>
1193 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1195 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1197 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1198 (avx_vperm2f128_*_operand): Ditto.
1199 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1200 Use avx_vpermilp_parallel in insn condition.
1201 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1202 Use avx_vperm2f128_parallel in insn condition.
1204 2011-04-27 Richard Guenther <rguenther@suse.de>
1206 * Makefile.in (tree-ssa-structalias.o): Remove
1207 gt-tree-ssa-structalias.h dependency.
1208 (GTFILES): Remove tree-ssa-structalias.c.
1209 * tree.c (allocate_decl_uid): New function.
1210 (make_node_stat): Use it.
1211 (copy_node_stat): Likewise.
1212 * tree.h (allocate_decl_uid): Declare.
1213 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1214 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1215 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1216 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1217 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1218 (struct heapvar_map): Likewise.
1219 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1220 heapvar_insert): Likewise.
1221 (make_heapvar_for): Rename to ...
1222 (make_heapvar): ... this. Simplify.
1223 (fake_var_decl_obstack): New global var.
1224 (build_fake_var_decl): New function.
1225 (make_constraint_from_heapvar): Adjust.
1226 (handle_lhs_call): Likewise.
1227 (create_function_info_for): Likewise.
1228 (intra_create_variable_infos): Likewise.
1229 (init_alias_vars): Allocate fake_var_decl_obstack.
1230 (init_alias_heapvars, delete_alias_heapvars): Remove.
1231 (compute_points_to_sets): Do not call init_alias_heapvars.
1232 (ipa_pta_execute): Likewise.
1233 (delete_points_to_sets): Free fake_var_decl_obstack.
1235 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1237 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1238 (si_from_UTItype, si_to_UTItype): New functions.
1239 (__udivmodti4): Use them to implement type-punning.
1240 * config/spu/multi3.c (union qword_TItype): New data type.
1241 (si_from_TItype, si_to_TItype): New functions.
1242 (__multi3): Use them to implement type-punning.
1244 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1246 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1248 2011-04-27 Jan Hubicka <jh@suse.cz>
1250 * ipa-prop.c (function_insertion_hook_holder): New holder.
1251 (ipa_add_new_function): New function.
1252 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1253 Register/deregister holder.
1255 2011-04-27 Richard Guenther <rguenther@suse.de>
1257 PR tree-optimization/48772
1258 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1260 2011-04-27 Richard Guenther <rguenther@suse.de>
1262 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1263 TARGET_MEM_REF handling.
1265 2011-04-27 Nick Clifton <nickc@redhat.com>
1267 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1268 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1269 (REG_CLASS_NAMES): Likewise.
1270 (REG_CLASS_CONTENTS): Likewise.
1271 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1272 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1273 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1274 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1275 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1276 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1277 duplicate register classes.
1278 (frv_class_likely_spilled_p): Likewise.
1279 (frv_register_move_cost): Likewise.
1281 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1282 end of the regno_reg_class array.
1284 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1287 * c-typeck.c (build_binary_op): Don't wrap arguments if
1288 int_operands is true.
1290 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1293 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1294 targetm.calls.must_pass_in_stack for void type.
1296 2011-04-26 Jan Hubicka <jh@suse.cz>
1298 * cgraphbuild.c (build_cgraph_edges): Update call
1299 of cgraph_create_edge and cgraph_create_indirect_edge.
1300 * cgraph.c (cgraph_create_edge_including_clones,
1301 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1302 cgraph_update_edges_for_call_stmt_node): Do not take nest
1303 argument; do not initialize call_stmt_size/time.
1304 (dump_cgraph_node): Do not dump nest.
1305 (cgraph_clone_edge): Do not take loop_nest argument;
1306 do not propagate it; do not clone call_stmt_size/time.
1307 (cgraph_clone_node): Likewise.
1308 (cgraph_create_virtual_clone): Update.
1309 * cgraph.h (struct cgraph_edge): Remove
1310 call_stmt_size/call_stmt_time/loop_nest.
1311 (cgraph_create_edge, cgraph_create_indirect_edge,
1312 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1314 * tree-emutls.c (gen_emutls_addr): Update.
1315 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1316 loop_nest; handle indirect calls, too.
1317 (clone_inlined_nodes): Do not care about updating inline summaries.
1318 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1319 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1320 stream call_stmt_size/call_stmt_time/loop_nest.
1321 * ipa-inline.c (edge_badness): Update.
1322 (ipa_inline): dump summaries after inlining.
1323 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1325 (inline_edge_summary): New function.
1326 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1327 (inline_edge_removal_hook): Handle edge summaries.
1328 (inline_edge_duplication_hook): New hook.
1329 (inline_summary_alloc): Alloc hooks.
1330 (initialize_growth_caches): Do not register removal hooks.
1331 (free_growth_caches); Do not free removal hook.
1332 (dump_inline_edge_summary): New function.
1333 (dump_inline_summary): Use it.
1334 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1335 (inline_update_callee_summaries): New function.
1336 (inline_merge_summary): Use it.
1337 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1338 (read_inline_edge_summary): New function.
1339 (inline_read_section): Use it.
1340 (write_inline_edge_summary): New function.
1341 (inline_write_summary): Use it.
1342 (inline_free_summary): Free edge new holders.
1343 * tree-inline.c (copy_bb): Update.
1345 2011-04-26 Jason Merrill <jason@redhat.com>
1347 * tree-eh.c (lower_try_finally_switch): Create the label along with
1348 the CASE_LABEL_EXPR.
1350 2011-04-26 David S. Miller <davem@davemloft.net>
1351 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1353 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1354 * configure: Regenerate.
1356 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1359 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1361 (VEC_reduc): New code iterator and splitters for vector reduction.
1362 (VEC_reduc_name): Ditto.
1363 (VEC_reduc_rtx): Ditto.
1364 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1365 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1367 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1368 support for extracting SF on VSX.
1370 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1371 generating xscvspdp.
1372 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1373 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1374 double add, minimum, maximum vector reduction.
1375 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1376 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1377 optimize double vector reduction.
1378 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1380 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1382 * config/fr30/fr30.h (inhibit_libc): Don't define.
1383 * config/m32r/m32r-protos.h: Correct comment.
1384 * config/v850/v850.h (GHS_default_section_names,
1385 GHS_current_section_names): Use tree, not union tree_node *.
1387 2011-04-26 Xinliang David Li <davidxl@google.com>
1389 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1390 * c-family/c-opts.c (c_common_handle_option): Set
1391 warn_maybe_uninitialized.
1392 * opts.c (common_handle_option): Ditto.
1393 * common.opt: New option.
1394 * tree-ssa.c (warn_uninit): Add one more parameter.
1395 (warn_uninitialized_var): Pass warning code.
1396 * tree-flow.h: Interface change.
1399 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1401 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1402 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1403 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1405 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1407 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1408 * config/mips/mips.opt (mmips-tfile): Remove.
1410 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1411 mips-tdump reference to ...
1412 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1413 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1414 reference by Tru64 UNIX.
1416 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1419 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1420 is error_mark_node, set value to NULL.
1422 PR tree-optimization/48734
1423 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1424 if return value from maybe_fold_*_comparsions isn't something
1425 the code is prepared to handle.
1427 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1429 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1431 (ext_QIreg_nomode_operands): Remove.
1432 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1436 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1438 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1440 2011-04-26 Richard Guenther <rguenther@suse.de>
1442 * c-typeck.c (build_unary_op): Do not expand array-refs via
1443 pointer arithmetic. Only adjust qualifiers for function types.
1445 2011-04-26 Richard Guenther <rguenther@suse.de>
1448 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1449 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1450 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1451 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1453 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1455 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1456 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1457 * doc/extend.texi: Document __underlying_type.
1459 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1461 * config/rs6000/titan.md (automata_option "progress"): Remove.
1463 2011-04-25 Jeff Law <law@redhat.com>
1465 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1467 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1469 * system.h (ENUM_BITFIELD): Remove.
1471 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1472 Eric Botcazou <ebotcazou@adacore.com>
1474 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1475 for STORE_FLAG_VALUE==-1 case.
1477 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1480 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1481 LEGITIMATE_PIC_OPERAND_P.
1483 2011-04-24 Jan Hubicka <jh@suse.cz>
1485 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1487 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1488 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1489 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1490 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1491 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1492 Sanity check predicate length.
1493 (remap_predicate): Likewise; sanity check jump functions.
1494 (inline_read_section, inline_write_summary): Sanity check
1497 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1500 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1501 __is_literal_type, and __is_trivial; update throughout about
1502 possibly cv-qualified void types.
1504 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1506 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1507 testsuite and make it version agnostic.
1509 2011-04-22 Jan Hubicka <jh@suse.cz>
1511 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1513 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1516 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1517 to VOID_TYPE even around MODIFY_EXPR.
1519 2011-04-22 Mike Stump <mikestump@comcast.net>
1521 * gensupport.c (read_md_rtx): Fix typo in comment.
1522 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1525 2011-04-22 Jan Hubicka <jh@suse.cz>
1527 * gengtype.c (open_base_files): Add ipa-inline.h include.
1528 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1529 ipa-prop.c; update all uses.
1530 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1531 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1532 merge summary of inlined function into former caller.
1533 * ipa-inline.c (max_benefit): Remove.
1534 (edge_badness): Compensate for removal of benefits.
1535 (update_caller_keys): Use
1536 reset_node_growth_cache/reset_edge_growth_cache.
1537 (update_callee_keys): Likewise.
1538 (update_all_callee_keys): Likewise.
1539 (inline_small_functions): Do not collect max_benefit; do not reset
1540 estimated_growth; call free_growth_caches and initialize_growth_caches.
1541 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1542 struct size_time_entry): New structures.
1543 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1544 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1545 and estimated_growth.
1546 (edge_growth_cache_entry): New structure.
1547 (node_growth_cache, edge_growth_cache): New global vars.
1548 (estimate_growth): Turn into inline.
1549 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1550 initialize_growth_caches, free_growth_caches): Declare.
1551 (estimate_edge_growth): Rewrite.
1552 (estimate_edge_time): Implement as inline cache lookup.
1553 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1555 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1556 (NUM_CONDITIONS): New constant.
1557 (predicate_conditions): New enum.
1558 (IS_NOT_CONSTANT): New constant.
1559 (edge_removal_hook_holder): New var.
1560 (node_growth_cache, edge_growth_cache): New global vars.
1561 (true_predicate, single_cond_predicate, false_predicate,
1562 not_inlined_predicate, add_condition, add_clause, and_predicates,
1563 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1564 dump_clause, dump_predicate, account_size_time,
1565 evaulate_conditions_for_edge): New functions.
1566 (inline_summary_alloc): Move to heap.
1567 (inline_node_removal_hook): Clear condition and entry vectors.
1568 (inline_edge_removal_hook): New function.
1569 (initialize_growth_caches, free_growth_caches): New function.
1570 (dump_inline_summary): Update.
1571 (edge_execution_predicate): New function.
1572 (will_be_nonconstant_predicate): New function.
1573 (estimate_function_body_sizes): Compute BB and constantness predicates.
1574 (compute_inline_parameters): Do not clear estimated_growth.
1575 (estimate_edge_size_and_time): New function.
1576 (estimate_calls_size_and_time): New function.
1577 (estimate_callee_size_and_time): New function.
1578 (remap_predicate): New function.
1579 (inline_merge_summary): New function.
1580 (do_estimate_edge_time): New function based on...
1581 (estimate_edge_time): ... this one.
1582 (do_estimate_edge_growth): New function.
1583 (do_estimate_growth): New function based on....
1584 (estimate_growth): ... this one.
1585 (inline_analyze_function): Analyze after deciding on jump functions.
1586 (inline_read_section): New function.
1587 (inline_read_summary): Use it.
1588 (inline_write_summary): Write all the new data.
1589 * ipa-prop.c (ipa_get_param_decl_index): Export.
1590 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1591 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1593 (ipa_get_lattice): Move here from ipa-cp.c
1594 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1595 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1596 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1597 cgraph_edge_inlinable_p): Remove.
1598 * cgraphunit.c: Include ipainline.h
1599 (cgraph_process_new_functions): Update call of
1600 compute_inline_parameters.
1602 2011-04-22 Richard Guenther <rguenther@suse.de>
1604 * tree.c (build_int_cst): Properly create canonicalized integer
1606 (build_int_cst_type): Remove scary comments.
1608 2011-04-22 Xinliang David Li <davidxl@google.com>
1610 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1611 by default when -Wno-error is not specified.
1612 * opts-global.c (decode_options): Remove call to
1613 control_warning_options.
1615 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1617 PR tree-optimization/48717
1618 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1619 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1621 2011-04-22 Joseph Myers <joseph@codesourcery.com>
1623 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1624 definition where used.
1626 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1629 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1630 TREE_STATIC variables declared inside of some OpenMP construct.
1632 2011-04-22 Martin Jambor <mjambor@suse.cz>
1635 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1637 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
1640 * c-typeck.c (pop_init_level): Do not warn about initializing
1643 2011-04-22 Alan Modra <amodra@gmail.com>
1645 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1646 when returning call_cookie.
1647 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1648 pointers, to functions with no more vector args than the current
1649 function, and some non-local calls for ABI_V4.
1650 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1651 sibcall_nonlocal_aix64): Combine to ..
1652 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1653 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1654 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1655 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1656 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1658 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1659 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1660 sibcall_value_symbolic_64): Delete.
1662 2011-04-21 Xinliang David Li <davidxl@google.com>
1664 * cgraph.h: Remove pid.
1665 * cgraph.c: Remove pid.
1666 * value-prof.c (init_node_map): New function.
1667 (del_node_map): New function.
1668 (find_func_by_funcdef_no): New function.
1669 (gimple_ic_transform): Call new function.
1670 * cgraphunit.c (cgraph_finalize_function): Remove pid.
1671 * function.c (get_last_funcdef_no): New function.
1672 * function.h (get_last_funcdef_no): New function.
1673 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1674 to libgcov function.
1675 (tree-profiling): Call node map init and delete function.
1677 2011-04-21 Ian Lance Taylor <iant@google.com>
1679 * godump.c (go_format_type): Use exported Go name for anonymous
1682 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1684 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1685 Call builtin_function_type_list instead of builtin_function_type.
1686 (UNARY, BINARY, TRINARY, QUAD): Likewise.
1688 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1690 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1691 build_function_type_list instead of build_function_type.
1692 Delete variable `endlink'.
1694 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1696 * config/s390/s390.c (s390_init_builtins): Call
1697 build_function_type_list instead of build_function_type.
1699 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1701 * config/ia64/ia64.c (ia64_init_builtins): Call
1702 build_function_type_list instead of builtin_function_type.
1704 2011-04-21 Easwaran Raman <eraman@google.com>
1706 * cfgexpand.c (stack_var): Remove OFFSET...
1707 (add_stack_var): ...and its reference here...
1708 (expand_stack_vars): ...and here.
1709 (stack_var_cmp): Sort by descending order of size.
1710 (partition_stack_vars): Change heuristic.
1711 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1712 (dump_stack_var_partition): Add newline after each partition.
1714 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
1715 Jeff Law <law@redhat.com>
1717 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1718 * gengtype.c (matching_file_name_substitute): Likewise.
1720 2011-04-21 Richard Guenther <rguenther@suse.de>
1723 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1725 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1727 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1729 2011-04-21 Richard Guenther <rguenther@suse.de>
1731 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1734 2011-04-21 Richard Guenther <rguenther@suse.de>
1736 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1737 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1738 Use DECL_P, not SSA_VAR_P.
1739 (ptr_derefs_may_alias_p): Likewise.
1740 (ptr_deref_may_alias_ref_p_1): Likewise.
1741 (decl_refs_may_alias_p): Likewise.
1742 (refs_may_alias_p_1): Likewise.
1743 (ref_maybe_used_by_call_p_1): Likewise.
1744 (call_may_clobber_ref_p_1): Likewise.
1745 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1746 are either MEM_REF or TARGET_MEM_REF.
1747 (indirect_refs_may_alias_p): Likewise.
1748 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1749 for MEM_EXPR of indirect calls.
1751 2011-04-21 Tristan Gingold <gingold@adacore.com>
1753 * vmsdbgout.c (write_srccorr): Compute file length from the string.
1754 (dst_file_info_struct): Remove flen field.
1755 (lookup_filename): Remove code that set flen field.
1757 2011-04-21 Tristan Gingold <gingold@adacore.com>
1759 * config/ia64/ia64.c (ia64_start_function): Add a guard.
1761 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
1764 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1765 vec_extract and vec_concat for non-SSE4_1 targets.
1767 2011-04-21 Richard Guenther <rguenther@suse.de>
1769 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1772 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1774 * config/i386/cygming.h (union tree_node, TREE): Don't define or
1776 (FILE): Don't undefine.
1778 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1780 * config/alpha/alpha.c (struct machine_function): Use rtx, not
1782 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1784 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
1785 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
1786 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1788 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
1789 definitions where used.
1790 * config/microblaze/microblaze.h (struct microblaze_args): Use
1791 rtx, not struct rtx_def *.
1792 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1794 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1795 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
1796 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1797 not struct rtx_def *.
1798 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1800 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1802 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
1804 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1806 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1807 operand_equal_p to compare DR_BASE_ADDRESSes.
1808 (vect_check_interleaving): Likewise.
1810 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1813 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1814 for all Neon struct constants.
1816 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1818 * target.def (legitimate_constant_p): New hook.
1819 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
1820 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
1821 * doc/tm.texi: Regenerate.
1822 * hooks.h (hook_bool_mode_rtx_true): Declare.
1823 * hooks.c (hook_bool_mode_rtx_true): Define.
1824 * system.h (LEGITIMATE_CONSTANT_P): Poison.
1825 * calls.c (precompute_register_parameters): Replace uses of
1826 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
1827 (emit_library_call_value_1): Likewise.
1828 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
1829 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
1830 * ira-costs.c (scan_one_insn): Likewise.
1831 * recog.c (general_operand, immediate_operand): Likewise.
1832 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
1833 * reload1.c (init_eliminable_invariants): Likewise.
1835 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
1837 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
1838 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
1840 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1841 * config/alpha/predicates.md (input_operand): Update call to
1842 alpha_legitimate_constant_p.
1844 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
1845 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
1846 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
1847 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1848 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
1849 (arm_legitimate_constant_p): New functions.
1850 (arm_cannot_force_const_mem): Make static.
1852 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
1854 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
1855 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
1856 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
1857 instead of bfin_legitimate_constant_p.
1858 (bfin_legitimate_constant_p): Make static. Add a mode argument.
1859 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1861 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
1863 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
1865 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
1866 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
1867 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1868 (frv_legitimate_constant_p): Make static. Add a mode argument.
1870 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
1871 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
1872 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
1874 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
1875 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
1876 * config/i386/i386.c (legitimate_constant_p): Rename to...
1877 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
1879 (ix86_cannot_force_const_mem): Update accordingly.
1880 (ix86_legitimate_address_p): Likewise.
1881 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1882 * config/i386/i386.md: Update commentary.
1884 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
1885 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
1886 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1887 (ia64_legitimate_constant_p): Make static. Add a mode argument.
1889 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
1891 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
1892 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
1893 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1894 (lm32_legitimate_constant_p): Make static. Add a mode argument.
1896 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
1897 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
1898 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
1900 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
1901 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1902 (m32r_legitimate_constant_p): New function.
1904 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
1905 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
1906 LEGITIMATE_CONSTANT_P.
1907 (LEGITIMATE_CONSTANT_P): Delete.
1908 * config/m68k/m68k.c (m68k_expand_prologue): Call
1909 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
1910 (m68k_legitimate_constant_p): New function.
1911 * config/m68k/m68k.md: Update comments.
1913 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
1914 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1915 (mcore_legitimate_constant_p): New function.
1917 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
1918 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
1919 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
1920 Add a mode argument.
1921 (mep_legitimate_address): Update accordingly.
1922 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1924 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
1926 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
1927 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
1928 static. Check OP's mode for VOIDmode.
1929 (microblaze_legitimate_constant_p): New function.
1930 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1932 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
1933 * config/mips/mips.c (mips_legitimate_constant_p): New function.
1934 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
1935 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1936 * config/mips/predicates.md: Update comments.
1938 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
1939 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
1940 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1941 (mmix_legitimate_constant_p): Make static, return a bool, and take
1943 (mmix_print_operand_address): Update accordingly.
1945 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
1947 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
1948 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
1949 static. Add a mode argument.
1950 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1952 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
1954 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
1955 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1956 (pa_legitimate_constant_p): New function.
1958 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
1960 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
1961 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1962 (pdp11_legitimate_constant_p): New function.
1964 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
1965 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1966 (rs6000_legitimate_constant_p): New function.
1968 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
1969 (rx_legitimate_constant_p): ...this.
1970 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
1971 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
1972 (rx_legitimate_constant_p): ...this.
1973 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1974 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
1976 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
1977 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
1978 * config/s390/s390.c (legitimate_constant_p): Rename to...
1979 (s390_legitimate_constant_p): ...this. Make static, return a bool,
1980 and add a mode argument.
1981 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1983 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
1985 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
1986 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1987 (sh_legitimate_constant_p): New function.
1989 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
1990 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
1991 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1992 (legitimate_constant_p): Rename to...
1993 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
1995 (constant_address_p): Update accordingly.
1997 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
1998 argument and return a bool.
1999 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2000 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2001 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2002 (spu_rtx_costs): Update accordingly.
2003 * config/spu/predicates.md (vec_imm_operand): Likewise.
2005 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2007 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2008 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2009 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2011 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2012 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2013 * config/vax/vax.c (legitimate_constant_p): Likewise.
2015 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2016 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2017 (xtensa_legitimate_constant_p): New function.
2019 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2021 * target.def (cannot_force_const_mem): Add a mode argument.
2022 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2023 * doc/tm.texi: Regenerate.
2024 * hooks.h (hook_bool_mode_rtx_false): Declare.
2025 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2026 (hook_bool_mode_const_rtx_true): Likewise.
2027 (hook_bool_mode_rtx_false): New function.
2028 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2029 to be non-VOID. Update call to cannot_force_const_mem.
2030 (find_reloads): Update accordingly.
2031 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2032 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2034 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2035 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2036 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2037 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2038 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2039 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2040 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2041 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2042 (m68k_cannot_force_const_mem): ...this new function.
2043 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2045 (mips_const_insns, mips_legitimize_const_move): Update calls.
2046 (mips_secondary_reload_class): Likewise.
2047 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2048 (pa_cannot_force_const_mem): ...this new function.
2049 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2050 (rs6000_cannot_force_const_mem): ...this new function.
2051 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2053 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2054 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2056 (xtensa_cannot_force_const_mem): ...this new function.
2058 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2060 * config/mips/mips.c (mips16_build_function_stub): Call
2061 build_function_type_list instead of build_function_type.
2062 (mips16_build_call_stub): Likewise.
2064 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2066 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2067 instead of build_function_type.
2069 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2071 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2072 instead of build_function_type.
2074 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2077 * config/i386/i386.md (insv): Change operand 0 constraint to
2078 "register_operand". Change operand 1 and 2 constraint to
2079 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2080 * config/i386/sse.md (sse4_1_pinsrb): Export.
2081 (sse2_pinsrw): Ditto.
2082 (sse4_1_pinsrd): Ditto.
2083 (sse4_1_pinsrq): Ditto.
2084 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2085 * config/i386/i386.c (ix86_expand_pinsr): New.
2087 2011-04-20 Easwaran Raman <eraman@google.com>
2089 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2090 containing union type only with -fstrict-aliasing.
2092 2011-04-20 Jim Meyering <meyering@redhat.com>
2094 Remove useless if-before-free tests.
2095 * calls.c (expand_call, save_area): Likewise.
2096 * cfgcleanup.c (try_forward_edges): Likewise.
2097 * collect2.c (collect_execute): Likewise.
2098 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2099 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2100 * coverage.c (coverage_checksum_string): Likewise.
2101 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2102 * cselib.c (cselib_init): Likewise.
2103 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2104 (df_set_clean_cfg): Likewise.
2105 * function.c (free_after_compilation): Likewise.
2106 * gcc.c (do_spec_1, main): Likewise.
2107 * gcov.c (create_file_names): Likewise.
2108 * gensupport.c (identify_predicable_attribute): Likewise.
2109 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2110 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2111 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2112 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2113 * ipa-pure-const.c (local_pure_const): Likewise.
2114 * ipa-reference.c (propagate): Likewise.
2115 * ira-costs.c (free_ira_costs): Likewise.
2116 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2117 * matrix-reorg.c (mat_free): Likewise.
2118 * prefix.c (get_key_value): Likewise.
2119 * profile.c (compute_value_histograms): Likewise.
2120 * reload1.c (free_reg_equiv): Likewise.
2121 * sched-deps.c (free_deps): Likewise.
2122 * sel-sched-ir.c (fence_clear): Likewise.
2123 * sese.c (set_rename, if_region_set_false_region): Likewise.
2124 * tree-data-ref.c (free_rdg): Likewise.
2125 * tree-eh.c (lower_try_finally): Likewise.
2126 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2127 * tree-ssa-live.c (delete_var_map): Likewise.
2128 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2129 * tree-ssa-pre.c (phi_trans_add): Likewise.
2131 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2133 PR tree-optimization/48611
2134 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2135 beyond ERT_MUST_NOT_THROW region.
2137 2011-04-20 Catherine Moore <clm@codesourcery.com>
2139 * config/mips/mips.opt (mfix-24k): New.
2140 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2141 * config/mips/mips.md (length): Increase by 4 for stores if
2143 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2144 all noreorder if fixing 24K errata.
2145 * doc/invoke.texi: Document mfix-24k.
2147 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2149 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2150 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2152 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2154 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2155 (const_ok_for_op): ... to here.
2157 2011-04-20 Kai Tietz <ktietz@redhat.com>
2159 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2160 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2162 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2164 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2166 2011-04-20 Richard Guenther <rguenther@suse.de>
2168 PR tree-optimization/47892
2169 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2172 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2174 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2176 2011-04-20 Tristan Gingold <gingold@adacore.com>
2178 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2180 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2184 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2185 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2186 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2187 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2188 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2190 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2193 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2194 (avr_asm_named_section, avr_asm_output_aligned_common,
2195 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2196 New functions to update...
2197 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2198 (avr_asm_init_sections): Overwrite section callbacks for
2199 data_section, bss_section.
2200 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2202 (avr_file_end): ...here.
2204 2011-04-20 Richard Guenther <rguenther@suse.de>
2207 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2208 objects and types here. Adjust for their offset before comparing.
2210 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2212 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2215 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2217 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2218 (GIMPLE_H): Include $(INTERNAL_FN_H).
2219 (OBJS-common): Add internal-fn.o.
2220 (internal-fn.o): New rule.
2221 * internal-fn.def: New file.
2222 * internal-fn.h: Likewise.
2223 * internal-fn.c: Likewise.
2224 * gimple.h: Include internal-fn.h.
2225 (GF_CALL_INTERNAL): New gf_mask.
2226 (gimple_statement_call): Put fntype into a union with a new
2228 (gimple_build_call_internal): Declare.
2229 (gimple_build_call_internal_vec): Likewise.
2230 (gimple_call_same_target_p): Likewise.
2231 (gimple_call_internal_p): New function.
2232 (gimple_call_internal_fn): Likewise.
2233 (gimple_call_fntype): Return null for internal calls.
2234 (gimple_call_set_fntype): Assert that the function is not internal.
2235 (gimple_call_set_fn): Likewise.
2236 (gimple_call_set_fndecl): Likewise.
2237 (gimple_call_set_internal_fn): New function.
2238 (gimple_call_addr_fndecl): Handle null functions.
2239 (gimple_call_return_type): Likewise null types.
2240 * gimple.c (gimple_build_call_internal_1): New function.
2241 (gimple_build_call_internal): Likewise.
2242 (gimple_build_call_internal_vec): Likewise.
2243 (gimple_call_same_target_p): Likewise.
2244 (gimple_call_flags): Handle calls to internal functions.
2245 (gimple_call_fnspec): New function.
2246 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2247 (gimple_has_side_effects): Handle null functions.
2248 (gimple_rhs_has_side_effects): Likewise.
2249 (gimple_call_copy_skip_args): Handle calls to internal functions.
2250 * cfgexpand.c (expand_call_stmt): Likewise.
2251 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2252 * gimple-fold.c (gimple_fold_call): Handle null functions.
2253 (gimple_fold_stmt_to_constant_1): Don't fold
2254 calls to internal functions.
2255 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2257 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2258 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2259 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2260 (do_warn_unused_result): Likewise.
2261 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2262 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2263 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2264 the target of a call.
2265 (initialize_hash_element): Update accordingly.
2266 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2267 (iterative_hash_hashable_expr): Handle calls to internal functions.
2268 (print_expr_hash_elt): Likewise.
2269 * tree-ssa-pre.c (can_value_number_call): Likewise.
2270 (eliminate): Handle null functions.
2271 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2272 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2273 (find_func_aliases): Likewise.
2274 * value-prof.c (gimple_ic_transform): Likewise.
2275 (gimple_indirect_call_to_profile): Likewise.
2276 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2277 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2279 2011-04-19 Jan Hubicka <jh@suse.cz>
2281 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2282 * ipa-inline.c (inline_small_functions): Compute summaries first,
2283 populate heap later.
2285 2011-04-19 Jan Hubicka <jh@suse.cz>
2287 * cgraph.h (save_inline_function_body): Remove.
2288 * ipa-inline-transform.c: New file, broke out of...
2289 * ipa-inline.c: ... this one; Update toplevel comment.
2290 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2292 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2293 (cgraph_mark_inline_edge): Rename to inline_call; move to
2294 ipa-inline-transform.c.
2295 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2296 move to ipa-inline-transform.c
2297 (recursive_inlining, inline_small_functions, flatten_function,
2298 ipa_inline, inline_always_inline_functions,
2299 early_inline_small_functions): Update.
2300 (inline_transform): Move to ipa-inline-transform.c.
2301 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2303 * Makefile.in (ipa-inline-transform.o): New file.
2304 * cgraphunit.c (save_inline_function_body): Move to
2305 ipa-inline-transform.c
2307 2011-04-19 DJ Delorie <dj@redhat.com>
2309 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2310 registers if we already know there aren't any.
2311 (m32c_emit_epilogue): Don't emit a barrier here.
2312 (m32c_emit_eh_epilogue): Likewise.
2313 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2314 operands at expand time.
2315 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2317 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2318 duplicates. Provide aliases instead.
2319 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2320 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2323 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2325 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2326 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2327 (general_or_i64_p, sparc_register_move_cost): New function.
2329 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2331 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2332 Add lynx, mipssde. Sort table.
2334 2011-04-19 Xinliang David Li <davidxl@google.com>
2336 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2339 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2342 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2343 is a SUBREG with non-MODE_INT mode inside of it.
2345 2011-04-19 Martin Jambor <mjambor@suse.cz>
2347 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2348 also according to actual contants.
2349 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2350 (gimple_fold_call): Use it.
2351 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2353 2011-04-19 Martin Jambor <mjambor@suse.cz>
2355 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2356 non-pointer assignments.
2358 2011-04-19 Martin Jambor <mjambor@suse.cz>
2360 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2361 account anc_offset and otr_type from the indirect edge info.
2362 * ipa-prop.c (get_ancestor_addr_info): New function.
2363 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2364 get_ancestor_addr_info, call it.
2365 (ipa_note_param_call): Do not initialize information about polymorphic
2366 calls, return the indirect call graph edge. Remove the last
2367 parameter, adjust all callers.
2368 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2369 parameters. Initialize polymorphic information in the indirect edge.
2371 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2374 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2375 the types if they have different enumeration identifiers.
2377 2011-04-19 Jan Hubicka <jh@suse.cz>
2379 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2380 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2381 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2382 (optimize_function_for_size_p) ... here.
2384 2011-04-19 Richard Guenther <rguenther@suse.de>
2387 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2390 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2392 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2393 if DECL_NO_INLINE_WARNING_P is set on the function.
2395 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2398 * reload1.c (inc_for_reload): Return void. All callers changed.
2399 (emit_input_reload_insns): Don't try to delete previous output
2400 reloads to a register, or record spill_reg_store for autoincs.
2402 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2404 * gengtype.h: Updated copyright year.
2405 (struct input_file_st): Add inpisplugin field.
2406 (type_fileloc): New function.
2408 (write_typed_struct_alloc_def): Add gcc_assert.
2409 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2410 (write_typed_alloc_defns): Don't output for plugin files.
2411 (input_file_by_name): Clear inpisplugin field.
2412 (main): Set inpisplugin field for plugin files.
2414 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2416 * gengtype-state.c (string_eq): New.
2417 (read_state): Use string_eq instead of strcmp when creating the
2420 2011-04-19 Wei Guozhi <carrot@google.com>
2423 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2424 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2426 * config/arm/constraints.md (Uu): New constraint.
2427 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2429 2011-04-19 Tristan Gingold <gingold@adacore.com>
2431 * config.gcc (-*-*-*vms): Added.
2432 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2434 * config/vms/vms-ld.c: New file.
2435 * config/vms/vms-ar.c: New file.
2436 * config/vms/t-vmsnative: New file.
2438 2011-04-18 Xinliang David Li <davidxl@google.com>
2440 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2442 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2445 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2446 if TREE_TYPE (v) is non-NULL.
2448 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2449 gimple_get_virt_mehtod_for_binfo.
2450 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2451 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2453 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2455 2011-04-18 Michael Matz <matz@suse.de>
2456 Steve Ellcey <sje@cup.hp.com>
2458 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2459 use its mode as source mode if it isn't VOIDmode.
2461 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2463 * doc/passes.texi: Fill crossref nodes.
2465 2011-04-18 Jim Meyering <meyering@redhat.com>
2467 Fix doubled-word typos in comments and strings
2468 * config/alpha/vms-unwind.h: s/for for/for/
2469 * config/arm/unwind-arm.h: Likewise.
2470 * config/microblaze/microblaze.c: Likewise.
2471 * config/sh/constraints.md: s/in in/in/
2472 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2474 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2476 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2477 (AVX_FLOAT_MODE_P): Ditto.
2478 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2479 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2480 (AVX_VEC_FLOAT_MODE_P): Ditto.
2481 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2482 (UNSPEC_MASKSTORE): Ditto.
2483 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2484 Merge from <sse>_movmsk<ssemodesuffix> and
2485 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2486 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2488 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2489 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2490 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2492 2011-04-18 Jan Hubicka <jh@suse.cz>
2494 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2496 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2497 (want_inline_function_called_once_p): Break out the logic from
2499 (edge_badness): Ensure that profile is not misupdated.
2500 (lookup_recursive_calls): Prioritize by call frequencies.
2501 (inline_small_functions): Move program size estimates here;
2502 actually process whole queue even when unit growth has been
2503 met. (to properly compute inline_failed reasons and for the
2504 case unit size decrease.) Revisit comments on recursive inlining.
2505 (ipa_inline): Remove unit summary code; first inline hot calls
2506 of functions called once, cold calls next.
2507 (order, nnodes): Remove unused variables.
2508 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2509 (GTFILES): Remove ipa-inline.c
2510 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2512 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2514 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2516 2011-04-18 Jie Zhang <jie@codesourcery.com>
2517 Richard Earnshaw <rearnsha@arm.com>
2519 * arm.c (neon_builtin_type_bits): Remove.
2520 (typedef enum neon_builtin_mode): New.
2521 (T_MAX): Don't define.
2522 (typedef enum neon_builtin_datum): Remove bits, codes[],
2523 num_vars and base_fcode. Add mode, code and fcode.
2524 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2525 VAR10): Change accordingly.
2526 (neon_builtin_data[]): Change accordingly
2527 (arm_init_neon_builtins): Change accordingly.
2528 (neon_builtin_compare): Remove.
2529 (locate_neon_builtin_icode): Remove.
2530 (arm_expand_neon_builtin): Change accordingly.
2532 * arm.h (enum arm_builtins): Move to ...
2533 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2535 * arm.c (arm_builtin_decl): Declare.
2536 (TARGET_BUILTIN_DECL): Define.
2537 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2538 (arm_builtin_decls[]): New.
2539 (arm_init_neon_builtins): Store builtin declarations in
2540 arm_builtin_decls[].
2541 (arm_init_tls_builtins): Likewise.
2542 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2543 (arm_builtin_decl): New.
2545 2011-04-18 Richard Guenther <rguenther@suse.de>
2547 * tree.c (upper_bound_in_type): Build properly canonicalized
2549 (lower_bound_in_type): Likewise.
2551 2011-04-18 Richard Guenther <rguenther@suse.de>
2553 * gimple.h (gimple_call_addr_fndecl): New function.
2554 (gimple_call_fndecl): Use it.
2555 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2557 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2558 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2560 2011-04-18 Richard Guenther <rguenther@suse.de>
2563 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2565 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2568 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2569 DECL_IN_CONSTANT_POOL without RTL.
2571 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2572 Ira Rosen <ira.rosen@linaro.org>
2575 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2576 to match neon_vzip/vuzp/vtrn_internal.
2577 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2578 outputs explicitly dependent on both inputs.
2579 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2581 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2583 PR tree-optimization/48616
2584 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2585 whether the shift is by scalar or vector based on whether all SLP
2586 scalar stmts have the same rhs.
2588 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2590 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2593 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2595 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2598 2011-04-17 Jan Hubicka <jh@suse.cz>
2600 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2601 * cgrpahunit.c (cgraph_finalize_function): Do not set
2602 finalized_by_frontend.
2603 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2604 finalized_by_frontend.
2606 2011-04-17 Jan Hubicka <jh@suse.cz>
2608 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2609 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2610 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2611 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2613 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2615 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2617 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2620 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2621 is non-null before accessing it.
2622 (input_cgraph): Remove trailing spaces.
2624 2011-04-17 Revital Eres <revital.eres@linaro.org>
2626 * params.def (sms-min-sc): New param flag.
2627 * modulo-sched.c (sms_schedule): Use it.
2628 * doc/invoke.texi (sms-min-sc): Document it.
2630 2011-04-17 Jan Hubicka <jh@suse.cz>
2632 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2633 present, also set gimple_call_set_cannot_inline.
2634 * ipa-inline.c: Update toplevel comment.
2636 (cgraph_clone_inlined_nodes): Fix linebreaks.
2637 (cgraph_check_inline_limits): Restructure to ...
2638 (caller_growth_limits): ... this one; be more tolerant
2639 on growth in nested inline chains; add explanatory comment;
2640 fix stack accounting thinko introduced by previous patch.
2641 (cgraph_default_inline_p): Remove.
2642 (report_inline_failed_reason): New function.
2643 (can_inline_edge_p): New function.
2644 (can_early_inline_edge_p): New function.
2645 (leaf_node_p): Move upwards in file.
2646 (want_early_inline_function_p): New function.
2647 (want_inline_small_function_p): New function.
2648 (want_inline_self_recursive_call_p): New function.
2649 (cgraph_edge_badness): Rename to ...
2650 (edge_badness) ... this one; fix linebreaks.
2651 (update_edge_key): Update call of edge_baddness; add
2652 detailed dump about queue updates.
2653 (update_caller_keys): Use can_inline_edge_p and
2654 want_inline_small_function_p.
2655 (cgraph_decide_recursive_inlining): Rename to...
2656 (recursive_inlining): Use can_inline_edge_p and
2657 want_inline_self_recursive_call_p; simplify and remove no longer
2659 (cgraph_set_inline_failed): Remove.
2660 (add_new_edges_to_heap): Use can_inline_edge_p and
2661 want_inline_small_function_p.
2662 (cgraph_decide_inlining_of_small_functions): Rename to ...
2663 (inline_small_functions): ... this one; cleanup; use
2664 can/want predicates; cleanup debug ouput; work edges till fibheap
2665 is exhausted and do not stop once unit growth is reached; remove
2666 later loop processing remaining edges.
2667 (cgraph_flatten): Rename to ...
2668 (flatten_function): ... this one; use can_inline_edge_p
2669 and can_early_inline_edge_p predicates.
2670 (cgraph_decide_inlining): Rename to ...
2671 (ipa_inline): ... this one; remove unreachable nodes before
2672 inlining functions called once; simplify the pass.
2673 (cgraph_perform_always_inlining): Rename to ...
2674 (inline_always_inline_functions): ... this one; use
2675 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2676 (cgraph_decide_inlining_incrementally): Rename to ...
2677 (early_inline_small_functions): ... this one; simplify
2678 using new predicates; cleanup; make dumps prettier.
2679 (cgraph_early_inlining): Rename to ...
2680 (early_inliner): newer inline regular functions into always-inlines;
2681 fix updating of call stmt summaries.
2682 (pass_early_inline): Update for new names.
2683 (inline_transform): Fix formating.
2684 (gate_cgraph_decide_inlining): Rename to ...
2685 (pass_ipa_inline): ... this one.
2686 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2687 * ipa-inline-analysis.c (dump_inline_summary): Update.
2688 (compute_inline_parameters): Do not compute disregard_inline_limits;
2689 look for mismatching arguments.
2690 (estimate_growth): Fix handlig of non-trivial self recursion.
2691 (inline_read_summary): Do not read info->disregard_inline_limits.
2692 (inline_write_summary): Do not write info->disregard_inline_limits.
2693 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2694 and move all checks into can_inline_edge_p predicate; re-enable code
2695 comparing optimization levels.
2696 (expand_call_inline): Do not test inline_forbidden_into_p.
2697 * Makefile.in (ipa-inline.o): Update arguments.
2699 2011-04-17 Revital Eres <revital.eres@linaro.org>
2701 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2703 2011-04-17 Revital Eres <revital.eres@linaro.org>
2705 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2707 2011-04-17 Michael Matz <matz@suse.de>
2709 PR tree-optimization/48622
2711 * ipa-inline-analysis.c (inline_read_summary): Read size/time
2712 in same order as they're written.
2714 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2716 * config/pa/predicates.md: Reorganize and simplify predicates.
2717 Eliminate duplicate code checks.
2718 (arith_operand): Rename to arith14_operand
2719 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2720 * config/pa/pa.md: Use renamed operands.
2721 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2722 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2723 arith11_operand, adddi3_operand, indexed_memory_operand,
2724 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2725 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2726 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2727 move_dest_operand, move_src_operand, prefetch_cc_operand,
2728 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2729 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2730 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2731 div_operand, int5_operand, movb_comparison_operator,
2732 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2733 arith_double_operand, ireg_operand, lhs_lshift_operand,
2734 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2735 integer_store_memory_operand): Likewise.
2736 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2737 (integer_store_memory_operand, read_only_operand,
2738 function_label_operand, borx_reg_operand,
2739 non_hard_reg_operand): Likewise.
2740 (eq_neq_comparison_operator): Delete unused operator.
2741 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2742 function_label_operand.
2743 (emit_move_sequence): Likewise.
2745 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2747 * config/i386/sse.md (sseunpackmode): New mode attribute.
2748 (ssepackmode): Ditto.
2749 (vec_pack_trunc_<mode>): Macroize expander from
2750 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2751 (vec_unpacks_lo_<mode>): Macroize expander from
2752 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2753 (vec_unpacks_hi_<mode>): Macroize expander from
2754 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2755 (vec_unpacku_lo_<mode>): Macroize expander from
2756 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2757 (vec_unpacku_hi_<mode>): Macroize expander from
2758 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2759 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2760 ix86_expand_sse4_unpack.
2761 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2763 2011-04-16 Jan Hubicka <jh@suse.cz>
2765 * cgraphbuild.c: Include ipa-inline.h.
2766 (reset_inline_failed): Use initialize_inline_failed.
2767 * cgraph.c: Include ipa-inline.h.
2768 (cgraph_create_node_1): Do not initialize estimated_growth.
2769 (initialize_inline_failed): More to ipa-inline-analysis.c
2770 (dump_cgraph_node): Do not dump inline flags.
2771 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2772 and disregard_inline_limits flags.
2773 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2774 time, size, estimated_growth.
2775 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2777 * cgraphunit.c (cgraph_decide_is_function_needed): Use
2778 DECL_DISREGARD_INLINE_LIMITS.
2779 (cgraph_analyze_function): Do not initialize
2780 node->local.disregard_inline_limits.
2781 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2782 inlinable, versionable and disregard_inline_limits.
2783 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2784 cgraph_check_inline_limits, cgraph_default_inline_p,
2785 cgraph_edge_badness, update_caller_keys, update_callee_keys,
2786 add_new_edges_to_heap): Update.
2787 (cgraph_decide_inlining_of_small_function): Update; set
2788 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
2789 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2790 cgraph_decide_inlining_incrementally): Update.
2791 * ipa-inline.h (inline_summary): Add inlinable, versionable,
2792 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2793 time, size and estimated_growth parameters.
2794 (estimate_edge_growth): Update.
2795 (initialize_inline_failed): Declare.
2796 * ipa-split.c: Include ipa-inline.h
2797 (execute_split_functions): Update.
2798 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2799 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2800 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2801 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2802 estimated_growth to INT_MIN.
2803 (inline_node_duplication_hook): Likewise.
2804 (dump_inline_summary): Dump new fields.
2805 (compute_inline_parameters): Update.
2806 (estimate_edge_time, estimate_time_after_inlining,
2807 estimate_size_after_inlining, estimate_growth, inline_read_summary,
2808 inline_write_summary):
2809 (initialize_inline_failed): Move here from cgraph.c.
2810 * tree-sra.c: Include ipa-inline.h.
2811 (ipa_sra_preliminary_function_checks): Update.
2812 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2815 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2817 * config/i386/sse.md (V16): New mode iterator.
2819 (AVXMODEQI, AVXMODEDI): Remove.
2820 (sse2, sse3): New mode attribute.
2821 (mov<mode>): Use V16 mode iterator.
2822 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
2823 (push<mode>1): Use V16 mode iterator.
2824 (movmisalign<mode>): Ditto.
2825 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2826 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
2827 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2828 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
2829 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
2830 avx_movdqu<avxmodesuffix>.
2831 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
2832 *avx_movdqu<avxmodesuffix>.
2833 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
2834 avx_lddqu<avxmodesuffix>.
2835 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
2836 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
2837 avx_movnt<AVXMODEDI:mode>.
2838 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
2839 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
2841 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
2844 * haifa-sched.c (prune_ready_list, schedule_block): Use
2845 sched_pressure_p rather than flag_sched_pressure.
2847 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
2849 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2850 cgraph_get_node instead of cgraph_get_create_node.
2852 2011-04-15 Jakub Jelinek <jakub@redhat.com>
2854 * cfgexpand.c (expand_debug_expr): Use
2855 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
2857 2011-04-15 Michael Matz <matz@suse.de>
2859 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
2860 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
2861 * function.c (gimplify_parameters): Ditto.
2862 * gimplify.c (gimplify_vla_decl): Ditto.
2864 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
2865 (gimple_call_set_alloca_for_var): New inline function.
2866 (gimple_call_alloca_for_var_p): Ditto.
2867 * gimple.c (gimple_build_call_from_tree): Remember
2868 CALL_ALLOCA_FOR_VAR_P state.
2869 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
2871 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
2872 calls if they were for VLA objects.
2874 2011-04-15 Martin Jambor <mjambor@suse.cz>
2876 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
2879 2011-04-15 Martin Jambor <mjambor@suse.cz>
2882 * tree-emutls.c (lower_emutls_function_body): Call
2883 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
2886 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2888 * c-decl.c (detect_field_duplicates): Call
2889 objc_detect_field_duplicates instead of objc_get_interface_ivars.
2891 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
2893 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
2894 * gimple.c (gimple_asm_clobbers_memory_p): Define.
2895 * ipa-pure-const.c (check_stmt): Call it.
2896 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
2898 2011-04-15 Richard Guenther <rguenther@suse.de>
2900 PR tree-optimization/48290
2901 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
2902 Properly decide inhibiting propagation based on the valueized
2903 operand. Do loop-closed SSA form preserving here ...
2904 (init_copy_prop): ... not here.
2906 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
2909 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
2910 (*ieee_smax<mode>3): Likewise.
2912 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2914 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2915 Replace match_operand with match_dup for the third operand in
2918 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2920 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
2921 to track processing of conditionals. Update all callers.
2922 (try_combine, simplify_if_then_else): Update.
2924 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2926 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
2929 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
2931 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
2932 instead of match_operand for operand 3.
2934 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
2936 * recog.h (insn_operand_data): Add an "allows_mem" field.
2937 * genoutput.c (output_operand_data): Initialize it.
2938 * optabs.c (maybe_legitimize_operand_same_code): New function.
2939 (maybe_legitimize_operand): Use it when matching the original
2942 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2944 * gimplify.c: Fix issues in comments throughout.
2945 (voidify_wrapper_expr): Fix long line.
2946 (build_stack_save_restore): Likewise.
2947 (gimplify_loop_expr): Likewise.
2948 (gimplify_compound_lval): Likewise.
2949 (gimplify_init_ctor_eval): Likewise.
2950 (gimplify_modify_expr_rhs): Likewise.
2951 (omp_notice_threadprivate_variable): Likewise.
2953 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2955 * cfgexpand.c (expand_call_stmt): Convert the function type to the
2956 original one if this is not a builtin function.
2958 2011-04-14 Jakub Jelinek <jakub@redhat.com>
2961 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
2962 offset it as needed based on top 2 bits in operands[3], change
2963 MEM mode to SFmode and mask those 2 bits away from operands[3].
2965 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2967 * c-parser.c (c_parser_objc_protocol_definition): Updated for
2968 change from objc_declare_protocols() to objc_declare_protocol().
2970 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
2972 * config/i386/sse.md (sse4_1): New mode attribute.
2973 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
2974 avx_blend<ssemodesuffix><avxmodesuffix> and
2975 sse4_1_blend<ssemodesuffix> using VF mode iterator.
2976 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
2977 avx_blendv<ssemodesuffix><avxmodesuffix> and
2978 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
2979 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
2980 avx_dp<ssemodesuffix><avxmodesuffix> and
2981 sse4_1_dp<ssemodesuffix> using VF mode iterator.
2982 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
2983 (sse4_1_packusdw): Merge with *avx_packusdw.
2984 (sse4_1_pblendvb): Merge with *avx_pblendvb.
2985 (sse4_1_pblendw): Merge with *avx_pblendw.
2986 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
2987 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
2988 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
2990 (sse4_1_round<ssescalarmodesuffix>): Merge with
2991 *avx_round<ssescalarmodesuffix>.
2992 (aesenc): Merge with *avx_aesenc.
2993 (aesenclast): Merge with *avx_aesenclast.
2994 (aesdec): Merge with *avx_aesdec.
2995 (aesdeclast): Merge with *avx_aesdeclast.
2996 (pclmulqdq): Merge with *pclmulqdq.
2997 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
2999 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3001 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3004 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3005 (align_local_variable): This. Update DECL_ALIGN.
3006 (add_stack_var): Updated.
3007 (expand_one_stack_var): Likewise.
3009 2011-04-14 Richard Guenther <rguenther@suse.de>
3011 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3013 (dse_initialize_block_local_data, dse_leave_block,
3014 record_voperand_set, get_stmt_uid): Likewise.
3015 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3016 (dse_optimize_stmt): Remove voperand set handling code.
3017 Simplify and improve to handle any kind of killing stmt.
3018 (dse_record_phi): Remove.
3019 (dse_enter_block): Simplify.
3020 (tree_ssa_dse): Likewise.
3021 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3023 2011-04-14 Jan Hubicka <jh@suse.cz>
3025 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3026 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3027 (cgraph_local_info): Remove inline_summary.
3028 * ipa-cp.c: Include ipa-inline.h.
3029 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3030 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3032 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3033 (input_overwrite_node): Do not set inline summary.
3034 (input_node): Do not stream inline summary.
3035 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3036 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3037 growth; we do not have inline parameters computed for that anyway.
3038 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3039 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3040 (inline_summary_t): New type and VECtor.
3041 (debug_inline_summary, dump_inline_summaries): Declare.
3042 (inline_summary): Use VOCtor.
3043 (estimate_edge_growth): Kill hack computing call stmt size directly.
3044 * lto-section-in.c (lto_section_name): Add inline section.
3045 * ipa-inline-analysis.c: Include lto-streamer.h
3046 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3047 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3048 (inline_summary_vec): Define.
3049 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3050 dump_inline_summaries): New functions.
3051 (estimate_function_body_sizes): Properly compute size/time of outgoing
3053 (compute_inline_parameters): Alloc inline_summary; do not compute
3054 size/time of incomming calls.
3055 (estimate_edge_time): Avoid missing time summary hack.
3056 (inline_read_summary): Read inline summary info.
3057 (inline_write_summary): Write inline summary info.
3058 (inline_free_summary): Free all hooks and inline summary vector.
3059 * lto-streamer.h: Add LTO_section_inline_summary section.
3060 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3061 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3063 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3065 * tree-vectorizer.h (vect_strided_store_supported): Add a
3066 HOST_WIDE_INT argument.
3067 (vect_strided_load_supported): Likewise.
3068 (vect_permute_store_chain): Return void.
3069 (vect_transform_strided_load): Likewise.
3070 (vect_permute_load_chain): Delete.
3071 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3072 count argument. Check that the count is a power of two.
3073 (vect_strided_load_supported): Likewise.
3074 (vect_permute_store_chain): Return void. Update after above changes.
3075 Assert that the access is supported.
3076 (vect_permute_load_chain): Likewise.
3077 (vect_transform_strided_load): Return void.
3078 * tree-vect-stmts.c (vectorizable_store): Update calls after
3079 above interface changes.
3080 (vectorizable_load): Likewise.
3081 (vect_analyze_stmt): Don't check for strided powers of two here.
3083 2011-04-14 Richard Guenther <rguenther@suse.de>
3085 PR tree-optimization/48590
3086 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3087 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3088 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3089 BUILT_IN_STACK_SAVE.
3090 * tree-ssa-dce.c (propagate_necessity): Handle
3091 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3093 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3095 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3098 2011-04-14 Richard Guenther <rguenther@suse.de>
3100 * tree.h (get_object_alignment_1): Declare.
3101 * builtins.c (get_object_alignment_1): Split out worker from ...
3102 (get_object_alignment): ... here.
3103 * fold-const.c (get_pointer_modulus_and_residue): Use
3104 get_object_alignment_1.
3106 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3108 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3110 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3111 parameter. Generalise code to handle arrays as well as vectors.
3112 (vect_setup_realignment): Update accordingly.
3113 * tree-vect-stmts.c (vectorizable_store): Likewise.
3114 (vectorizable_load): Likewise.
3116 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3118 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3119 within the per-copy loop.
3121 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3123 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3126 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3128 * doc/options.texi (Negative): Explicitly mention that the
3129 Negative chain must be circular.
3131 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3133 * function.h (block_chainon): Declare.
3134 * function.c (block_chainon): Define.
3136 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3137 Eric Weddington <eric.weddington@atmel.com>
3138 Georg-Johann Lay <avr@gjlay.de>
3140 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3142 (avr_init_builtins, avr_expand_builtin,
3143 avr_expand_delay_cycles, avr_expand_unop_builtin,
3144 avr_expand_binop_builtin ): New functions.
3145 (avr_builtin_id): New enum
3146 (struct avr_builtin_description): New struct
3147 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3148 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3150 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3151 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3152 UNSPECV_DELAY_CYCLES): new enumeration values
3153 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3154 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3155 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3156 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3157 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3158 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3159 "fmulsu"): New insns
3161 * config/avr/avr-c.c: fix line endings
3162 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3163 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3164 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3165 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3166 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3168 * doc/extend.texi (AVR Built-in Functions): New node
3169 (Target Builtins): Add documentation of AVR
3172 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3175 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3176 alone. Error if non-const data has attribute progmem.
3178 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3180 * tree.h (struct tree_constructor): Include tree_typed instead of
3182 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3183 TS_TYPED instead of TS_COMMON.
3185 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3187 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3188 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3189 (sse2_psadbw): Merge with *avx_psadbw.
3190 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3191 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3192 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3193 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3194 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3195 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3196 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3197 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3198 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3199 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3200 (ssse3_palignrti): Merge with *avx_palignrti.
3202 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3204 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3205 * tree-ssanames.c (fini_ssanames): VEC_free it.
3206 (make_ssa_name_fn): Update for VECness of free_ssanames.
3207 (release_ssa_name, release_dead_ssa_names): Likewise.
3208 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3210 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3211 TS_TYPED instead of TS_COMMON.
3213 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3215 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3216 statistics_counter_event.
3217 * tree-ssa-copyrename.c (stats): Define.
3218 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3219 statistics_counter_event.
3220 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3221 (bswap_stats, widen_mul_stats): Define.
3222 (insert_reciprocals): Increment rdivs_inserted.
3223 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3224 rfuncs_inserted. Add calls to statistics_counter_event.
3225 (execute_cse_sincos_1): Increment inserted.
3226 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3227 statistics_counter_event.
3228 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3229 of bswap_stats. Add calls to statistics_counter_event.
3230 (convert_mult_to_widen): Increment widen_mults_inserted.
3231 (convert_plusminus_to_widen): Increment maccs_inserted.
3232 (convert_mult_to_fma): Increment fmas_inserted.
3233 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3234 calls to statistics_counter_event.
3236 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3238 PR rtl-optimization/48455
3239 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3240 `temp_costs->mem_cost'.
3242 2011-04-13 Jan Hubicka <jh@suse.cz>
3244 * ipa-inline.h: New file.
3245 * ipa-inline-analysis.c: New file. Broken out of ...
3246 * ipa-inline.c: ... this file; update toplevel comment;
3247 include ipa-inline.h
3248 (inline_summary): Move to ipa-inline.h
3249 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3250 ipa-inline-analysis.c.
3251 (cgraph_estimate_time_after_inlining): Rename to
3252 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3253 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3254 to estimate_edge_growth.
3255 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3256 rename to estimate_size_after_inlining.
3257 (cgraph_mark_inline_edge): Update for new naming convention.
3258 (cgraph_check_inline_limits): Likewise.
3259 (cgraph_edge_badness): Likewise.
3260 (cgraph_decide_recursive_inlining): Likewise.
3261 (cgraph_decide_inlining_of_small_functions): Likewise.
3262 (cgraph_decide_inlining_incrementally): Likewise.
3263 (cgraph_estimate_growth): Rename to estimate_growth; move to
3264 ipa-inline-analysis.c.
3265 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3266 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3267 (compute_inline_parameters): Likewise.
3268 (compute_inline_parameters_for_current): Likewise.
3269 (pass_inline_parameters): Likewise.
3270 (inline_indirect_intraprocedural_analysis): Likewise.
3271 (analyze_function): Rename to inline_analyze_function; likewise.
3272 (add_new_function): Move to ipa-inline-analysis.c.
3273 (inline_generate_summary): Likewise.
3274 (inline_read_summary): Likewise.
3275 (inline_write_summary): Likewise.
3276 * Makefile.in (ipa-inline-analysis.c): New file.
3278 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3280 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3281 * configure: Regenerate.
3283 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3285 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3286 instead of tree_common.
3287 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3289 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3290 TS_TYPED rather than TS_COMMON.
3291 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3293 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3296 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3297 r20 around calls of __tablejump_elpm__
3299 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3302 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3304 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3306 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3308 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3309 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3310 (cfi_vec): New typedef.
3311 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3312 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3313 (cie_cfi_vec): New static variable.
3314 (cie_cfi_head): Delete.
3315 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3316 declaration changed. Use vector rather than list operations.
3317 (new_cfi): Don't initialize the dw_cfi_next field.
3318 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3319 rather than list operations.
3320 (lookup_cfa): Use vector rather than list operations.
3321 (output_cfis): New argument upto. Accept a cfi_vec rather than
3322 a dw_cfi_ref list head as argument. All callers changed.
3323 Iterate over the vector using upto as a maximum index.
3324 (output_all_cfis): New static function.
3325 (output_fde): Use vector rather than list operations. Use the
3326 new upto argument for output_cfis rather than manipulating a
3328 (dwarf2out_begin_prologue): Change initializations to match
3330 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3331 from the vector length rather than searching for the end of a list.
3332 Use output_all_cfis.
3333 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3335 2011-04-13 Nick Clifton <nickc@redhat.com>
3337 * config/rx/rx.md (movmemsi): Do not use this pattern when
3338 volatile pointers are involved.
3340 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3342 * config/i386/sse.md (pinsrbits): Remove.
3343 (sse2_packsswb): Merge with *avx_packsswb.
3344 (sse2_packssdw): Merge with *avx_packssdw.
3345 (sse2_packuswb): Merge with *avx_packuswb.
3346 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3347 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3348 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3349 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3350 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3351 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3352 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3353 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3354 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3355 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3356 (sse2_loadld): Merge with *avx_loadld.
3357 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3358 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3359 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3360 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3361 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3363 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3365 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3367 * print-tree.c (print_node): Likewise.
3368 * tree-inline.c (copy_tree_r): Likewise.
3369 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3370 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3371 instead of TS_COMMON.
3372 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3373 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3374 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3375 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3376 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3378 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3380 (TREE_CHAIN): Check for a TS_COMMON structure.
3381 (TREE_TYPE): Check for a TS_TYPED structure.
3383 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3385 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3386 cgraph_get_create_node instead of cgraph_node.
3388 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3390 * c-parser.c (c_parser_initelt): Updated call to
3391 objc_build_message_expr.
3392 (c_parser_postfix_expression): Likewise.
3394 2011-04-12 Kai Tietz <ktietz@redhat.com>
3396 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3397 MASK_MS_BITFIELD_LAYOUT bit.
3399 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3401 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3402 assert it is always true.
3403 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3406 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3408 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3409 compiling Objective-C to be more efficient.
3411 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3413 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3416 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3418 * recog.h, genoutput.c, optabs.c: Revert last patch.
3420 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3423 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3425 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3427 * recog.h (insn_operand_data): Add an "allows_mem" field.
3428 * genoutput.c (output_operand_data): Initialize it.
3429 * optabs.c (maybe_legitimize_operand_same_code): New function.
3430 (maybe_legitimize_operand): Use it when matching the original
3433 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3435 * genpreds.c (process_define_predicate): Move most processing
3436 to gensupport.c. Continue to validate the expression.
3437 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3438 (process_define_predicate): Move processing to gensupport.c.
3439 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3440 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3441 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3443 (valid_predicate_name_p): New function, split out from old
3444 genpreds.c:process_define_predicate.
3445 (process_define_predicate): New function, combining code from
3446 old genpreds.c and genrecog.c functions.
3447 (process_rtx): Call it for DEFINE_PREDICATE and
3448 DEFINE_SPECIAL_PREDICATE.
3450 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3452 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3453 size of a '%A' memory reference.
3454 (T_DREG, T_QREG): New neon_builtin_type_bits.
3455 (arm_init_neon_builtins): Assert that the load and store operands
3456 are neon_struct_operands.
3457 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3458 (NEON_ARG_MEMORY): New builtin_arg.
3459 (neon_dereference_pointer): New function.
3460 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3461 Handle NEON_ARG_MEMORY.
3462 (arm_expand_neon_builtin): Update after above interface changes.
3463 Use NEON_ARG_MEMORY for loads and stores.
3464 * config/arm/predicates.md (neon_struct_operand): New predicate.
3465 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3466 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3467 (V_four_elem): Tweak formatting.
3468 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3469 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3470 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3471 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3472 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3473 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3474 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3475 Use %A in the output template.
3476 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3477 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3478 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3479 the width of the memory access. Remove post-increment.
3480 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3482 2011-04-12 Nick Clifton <nickc@redhat.com>
3484 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3485 instruction for interrupt handlers if the target is the basic V850
3487 (expand_epilogue): Likewise.
3489 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3491 PR rtl-optimization/48549
3492 * combine.c (propagate_for_debug): Also stop after BB_END of
3493 this_basic_block. Process LAST and just stop processing after it.
3494 (combine_instructions): If last_combined_insn has been deleted,
3495 set last_combined_insn to its PREV_INSN.
3497 2011-04-12 Richard Guenther <rguenther@suse.de>
3499 PR tree-optimization/46076
3500 * gimple.h (struct gimple_statement_call): Add fntype field.
3501 (gimple_call_fntype): Adjust.
3502 (gimple_call_set_fntype): New function.
3503 * gimple.c (gimple_build_call_1): Set the call function type.
3504 * gimplify.c (gimplify_call_expr): Preserve the function
3505 type the frontend used for the call.
3506 (gimplify_modify_expr): Likewise.
3507 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3509 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3511 * tree-ssa.c (useless_type_conversion_p): Function pointer
3512 conversions are useless.
3514 2011-04-12 Martin Jambor <mjambor@suse.cz>
3516 * cgraph.h (cgraph_node): Remove function declaration.
3517 (cgraph_create_node): Declare.
3518 (cgraph_get_create_node): Likewise.
3519 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3520 Updated all callers.
3521 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3522 the decl does not already exist. Call cgraph_get_create_node instead
3524 (cgraph_get_create_node): New function.
3525 (cgraph_same_body_alias): Update comment.
3526 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3527 assert it does not return NULL.
3528 (cgraph_update_edges_for_call_stmt): Likewise.
3529 (cgraph_clone_edge): Likewise.
3530 (cgraph_create_virtual_clone): Likewise.
3531 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3532 instead of cgraph_node.
3533 (cgraph_add_new_function): Call cgraph_create_node or
3534 cgraph_get_create_node instead of cgraph_node.
3535 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3536 instead of cgraph_node.
3537 (record_eh_tables): Likewise.
3538 (mark_address): Likewise.
3539 (mark_load): Likewise.
3540 (build_cgraph_edges): Call cgraph_get_create_node instead
3542 (rebuild_cgraph_edges): Likewise.
3543 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3544 instead of cgraph_node.
3545 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3547 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3548 cgraph_create_node instead of cgraph_node.
3549 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3551 * lto-cgraph.c (input_node): Likewise.
3552 * lto-streamer-in.c (input_function): Likewise.
3553 * varasm.c (mark_decl_referenced): Likewise.
3554 (assemble_alias): Likewise.
3556 2011-04-12 Martin Jambor <mjambor@suse.cz>
3558 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3559 instead of cgraph_node and assert it does not return NULL.
3560 * lto-streamer-in.c (lto_read_body): Likewise.
3561 * omp-low.c (new_omp_context): Likewise.
3562 (create_task_copyfn): Likewise.
3563 * tree-emutls.c (lower_emutls_function_body): Likewise.
3564 * matrix-reorg.c (transform_allocation_sites): Likewise.
3566 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3569 * c-typeck.c (build_asm_expr): Error out on attempts to use
3570 void type outputs or inputs for constraints that allow reg or
3573 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3574 Richard Earnshaw <rearnsha@arm.com>
3577 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3578 to use sign-magnitude offsets. Reject unsupported unaligned
3579 cases. Add detailed description in comments.
3580 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3581 condition from TARGET_32BIT to TARGET_ARM.
3583 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3585 * tree.h (struct typed_tree): New.
3586 (struct tree_common): Include it instead of tree_base.
3587 (TREE_TYPE): Update for new location of type field.
3588 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3589 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3590 (union tree_node): Add typed field.
3591 * treestruct.def (TS_TYPED): New.
3592 * lto-streamer.c (check_handled_ts_structures): Handle it.
3593 * tree.c (MARK_TS_TYPED): New macro.
3594 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3596 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3598 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3599 (force_nonfallthru): Do not alter the loop nest if no basic block
3602 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3604 * config/i386/sse.md (VI): New mode iterator.
3606 (AVX256MODEI): Ditto.
3607 (AVXMODEF4P): Ditto.
3608 (avxvecpsmode): Ditto.
3609 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3610 (sse2_andnot<mode>3): New expander.
3611 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3612 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3613 (<any_logic:code><mode>3): Use VI mode iterator.
3614 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3615 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3616 (*andnottf3): Handle AVX three-operand constraints.
3617 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3619 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3620 Robert Millan <rmh@gnu.org>
3622 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3623 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3624 GNU_USER_DYNAMIC_LINKER64): Define.
3625 (REG_NAME): Don't undefine.
3626 (MD_UNWIND_SUPPORT): Undefine.
3627 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3628 (REG_NAME): Don't undefine.
3629 (MD_UNWIND_SUPPORT): Undefine.
3630 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3632 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3634 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3635 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3637 2011-04-11 Xinliang David Li <davidxl@google.com>
3639 * value-profile.c (check_ic_target): New function.
3640 (gimple_ic_transform): Sanity check indirect call target.
3641 * gimple-low.c (gimple_check_call_args): Interface change.
3642 (gimple_check_call_matching_types): New function.
3643 * tree-inline.c (tree_can_inline_p): Call new function.
3645 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3647 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3648 tree-pretty-print.h & realmpfr.h.
3650 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3653 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3654 (setup_allocno_and_important_classes): Ditto.
3656 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3658 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3659 GNU_USER_DYNAMIC_LINKER.
3660 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3661 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3662 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3663 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3664 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3665 GNU_USER_TARGET_OS_CPP_BUILTINS.
3666 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3667 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3668 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3669 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3670 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3671 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3672 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3673 GNU_USER_TARGET_OS_CPP_BUILTINS.
3674 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3675 GNU_USER_DYNAMIC_LINKER.
3676 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3677 GNU_USER_TARGET_OS_CPP_BUILTINS.
3678 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3679 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3680 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3681 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3682 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3683 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3684 GNU_USER_DYNAMIC_LINKER64): Remove.
3685 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3686 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3687 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3688 GNU_USER_DYNAMIC_LINKER.
3689 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3690 GNU_USER_TARGET_OS_CPP_BUILTINS.
3691 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3692 GNU_USER_TARGET_OS_CPP_BUILTINS.
3693 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3694 to GNU_USER_TARGET_OS_CPP_BUILTINS.
3695 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3696 GNU_USER_TARGET_OS_CPP_BUILTINS.
3697 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3698 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3699 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3700 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3701 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3702 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3703 GNU_USER_DYNAMIC_LINKER.
3704 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3705 GNU_USER_TARGET_OS_CPP_BUILTINS.
3706 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
3707 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3708 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3709 GNU_USER_DYNAMIC_LINKER.
3710 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3711 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3712 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3713 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3714 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3715 GNU_USER_DYNAMIC_LINKER.
3716 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3717 GNU_USER_DYNAMIC_LINKERN32.
3718 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3719 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
3720 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
3721 GNU_USER_DYNAMIC_LINKER32.
3722 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3724 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3725 GNU_USER_DYNAMIC_LINKER.
3726 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3727 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3728 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3729 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3730 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3731 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3732 GNU_USER_DYNAMIC_LINKER32.
3733 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3734 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3735 GNU_USER_DYNAMIC_LINKER.
3736 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3737 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3738 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3739 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3740 GNU_USER_DYNAMIC_LINKER64.
3741 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3742 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3743 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3744 GNU_USER_DYNAMIC_LINKER.
3745 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3746 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3747 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3748 GNU_USER_DYNAMIC_LINKER.
3749 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3750 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3751 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3752 GNU_USER_DYNAMIC_LINKER32.
3753 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3754 GNU_USER_DYNAMIC_LINKER64.
3755 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3756 GNU_USER_DYNAMIC_LINKER64.
3757 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3758 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3759 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3760 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3761 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3763 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3765 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
3766 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3767 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3768 GNU_USER_DYNAMIC_LINKER.
3769 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3770 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
3771 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3772 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3773 GNU_USER_DYNAMIC_LINKER64.
3774 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3775 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3776 GNU_USER_LINK_EMULATION.
3777 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3778 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3779 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3780 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3781 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3782 CPP_SPEC, CC1_SPEC): Remove.
3783 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3784 (GNU_USER_DYNAMIC_LINKER): Define.
3785 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3786 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3787 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3788 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3789 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3790 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3791 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3792 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3793 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3794 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3795 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3796 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3797 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3798 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3799 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3800 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3801 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3802 GNU_USER_DYNAMIC_LINKER.
3803 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3804 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3805 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3806 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3807 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3808 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3809 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3810 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3811 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
3812 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
3814 2011-04-11 Kai Tietz <ktietz@redhat.com>
3818 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
3819 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
3821 (ix86_is_msabi_thiscall): Removed.
3822 (ix86_is_type_thiscall): Likewise.
3823 (ix86_get_callcvt): New function.
3824 (ix86_comp_type_attributes): Simplify check.
3825 (ix86_function_regparm): Use ix86_get_callcvt for calling
3826 convention attribute checks.
3827 (ix86_return_pops_args): Likewise.
3828 (ix86_static_chain): Likewise.
3829 (x86_this_parameter): Likewise.
3830 (x86_output_mi_thunk): Likewise.
3831 (ix86_function_type_abi): Optimize check for types without attributes.
3832 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
3833 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
3834 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
3836 (IX86_BASE_CALLCVT): Helper macro.
3837 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3838 Use ix86_get_callcvt for calling convention attribute checks and avoid
3839 symbol-decoration for stdcall in TARGET_RTD case.
3840 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3842 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
3845 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3847 * config/i386/sse.md (VI_128): New mode iterator.
3848 (VI12_128): Rename from SSEMODE12.
3849 (VI14_128): Rename from SSEMODE14.
3850 (VI124_128): New mode iterator.
3851 (VI24_128): Rename from SSEMODE248.
3852 (VI248_128): Rename from SSEMODE248.
3853 (SSEMODE124C8): Remove.
3854 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3855 (*sse2_<plusminus_insn><mode>3): Merge with
3856 *avx_<plusminus_insn><mode>3.
3857 (*mulv8hi3): Merge with *avx_mulv8hi3.
3858 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
3859 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
3860 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
3861 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
3862 (ashr<mode>3): Merge with *avx_ashr<mode>3.
3863 (lshr<mode>3): Merge with *avx_lshr<mode>3.
3864 (ashl<mode>3): Merge with *avx_ashl<mode>3.
3865 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
3866 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
3867 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3868 (*<smaxmin:code>v8hi3): Ditto.
3869 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
3870 (*<smaxmin:code>v16qi3): Ditto.
3871 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
3872 (*sse2_eq<mode>3): Ditto.
3873 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
3874 (*sse2_gt<mode>3): Ditto.
3875 (vcondv2di): Split out of vcond<mode>.
3876 (vconduv2di): Split out of vcondu<mode>.
3878 2011-04-11 Richard Guenther <rguenther@suse.de>
3880 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
3881 before calling tree_low_cst.
3883 2011-04-11 Richard Guenther <rguenther@suse.de>
3885 * stor-layout.c (layout_type): Compute all array index size operations
3886 in the original type.
3887 (initialize_sizetypes): Add comment.
3888 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
3890 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3892 * common.opt (Tbss=, Tdata=, Ttext=): New options.
3894 2011-04-11 Martin Jambor <mjambor@suse.cz>
3896 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
3897 of cgraph_node, handle NULL return value.
3898 (cgraph_global_info): Likewise.
3899 (cgraph_rtl_info): Likewise.
3900 * tree-inline.c (estimate_num_insns): Likewise.
3901 * gimplify.c (unshare_body): Likewise.
3902 (unvisit_body): Likewise.
3903 (gimplify_body): Likewise.
3904 * predict.c (optimize_function_for_size_p): Likewise.
3905 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3906 (call_may_clobber_ref_p_1): Likewise.
3907 * varasm.c (function_section_1): Likewise.
3908 (assemble_start_function): Likewise.
3910 2011-04-11 Martin Jambor <mjambor@suse.cz>
3912 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
3914 * final.c (rest_of_clean_state): Likewise.
3915 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
3916 * passes.c (pass_init_dump_file): Likewise.
3917 (execute_all_ipa_transforms): Likewise.
3918 (function_called_by_processed_nodes_p): Likewise.
3919 * predict.c (maybe_hot_frequency_p): Likewise.
3920 (probably_never_executed_bb_p): Likewise.
3921 (compute_function_frequency): Likewise.
3922 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
3923 (unnest_nesting_tree_1): Likewise.
3924 (lower_nested_functions): Likewise.
3925 * tree-optimize.c (execute_fixup_cfg): Likewise.
3926 (tree_rest_of_compilation): Likewise.
3927 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
3928 * tree-sra.c (ipa_early_sra): Likewise.
3929 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3930 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
3931 * ipa.c (record_cdtor_fn): Likewise.
3932 * ipa-inline.c (cgraph_early_inlining): Likewise.
3933 (compute_inline_parameters_for_current): Likewise.
3934 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3935 * ipa-pure-const.c (local_pure_const): Likewise.
3936 * ipa-split.c (split_function): Likewise.
3937 (execute_split_functions): Likewise.
3938 * cgraphbuild.c (build_cgraph_edges): Likewise.
3939 (rebuild_cgraph_edges): Likewise.
3940 (cgraph_rebuild_references): Likewise.
3941 (remove_cgraph_callee_edges): Likewise.
3942 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
3943 (verify_cgraph_node): Likewise.
3944 (cgraph_analyze_functions): Likewise.
3945 (cgraph_preserve_function_body_p): Likewise.
3946 (save_inline_function_body): Likewise.
3947 (save_inline_function_body): Likewise.
3948 * tree-inline.c (copy_bb): Likewise.
3949 (optimize_inline_calls): Likewise.
3951 2011-04-11 Martin Jambor <mjambor@suse.cz>
3953 PR tree-optimization/48195
3954 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
3955 ipa_check_create_edge_args.
3956 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
3957 ipa_check_create_edge_args.
3958 * ipa-inline.c (inline_generate_summary): Do not call
3959 ipa_check_create_node_params and ipa_check_create_edge_args.
3960 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
3961 ipa_check_create_edge_args.
3963 2011-04-09 Anatoly Sokolov <aesok@post.ru>
3965 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
3967 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3968 * function.c (record_hard_reg_sets): Likewise.
3969 * ira.c (compute_regs_asm_clobbered): Likewise.
3970 * sched-deps.c (sched_analyze_1): Likewise.
3971 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
3973 2011-04-09 Xinliang David Li <davidxl@google.com>
3975 PR tree-optimization/PR48484
3976 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
3977 has_valid_pred lazily
3979 2011-04-09 Duncan Sands <baldrick@free.fr>
3981 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
3983 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
3985 * combine.c (combine_validate_cost): Adjust comments. Set registered
3986 cost of I0 to zero at the end, if any.
3988 2011-04-08 Xinliang David Li <davidxl@google.com>
3990 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
3991 to insane profile data.
3993 2011-04-08 Xinliang David Li <davidxl@google.com>
3995 * ipa-cp.c (ipcp_update_profiling): Correct
3996 negative scale factor due to insane profile data.
3998 2011-04-08 Xinliang David Li <davidxl@google.com>
4000 * final.c (dump_basic_block_info): New function.
4001 (final): Dump basic block.
4002 (final_scan_insn): Remove old dump.
4004 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4007 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4010 2011-04-08 Michael Matz <matz@suse.de>
4013 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4015 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4016 * rtl.h (rebuild_jump_labels_chain): Declare.
4017 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4018 insns inserted on edges.
4020 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4022 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4023 * config/arm/arm-arches.def: New.
4024 * config/arm/arm-opts.h: New.
4025 * config/arm/genopt.sh: New.
4026 * config/arm/arm-tables.opt: New (generated).
4027 * config/arm/arm.c (arm_handle_option, arm_target_help,
4028 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4029 (all_architectures): Get most table contents from arm-arches.def.
4030 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4031 arm_selected_tune here.
4032 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4033 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4034 (march=, mcpu=, mtune=): Use Enum and Var.
4035 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4036 (arm.o): Update dependencies.
4038 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4040 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4042 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4043 (write_typed_alloc_defns): Likewise.
4044 (main): Calls write_typed_alloc_defns with output_header.
4046 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4049 * ira-color.c (setup_profitable_hard_regs): Add comments.
4050 Don't take prohibited hard regs into account.
4051 (setup_conflict_profitable_regs): Rename to
4052 get_conflict_profitable_regs.
4053 (check_hard_reg_p): Check prohibited hard regs.
4055 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4057 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4058 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4059 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4061 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4064 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4065 move from floating point to shift amount register.
4066 (emit_move_sequence): Remove secondary reload support for floating
4067 point to shift amount amount register copies.
4068 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4069 amount register copies.
4070 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4071 register, return false if mode isn't a scalar integer mode.
4072 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4074 2011-04-08 Richard Guenther <rguenther@suse.de>
4076 * gimple.c (gimple_call_flags): Remove kludge.
4078 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4080 * sel-sched.c (sel_region_init): Move call to
4081 sel_setup_region_sched_flags after setup_current_loop_nest.
4083 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4085 PR rtl-optimization/48272
4086 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4087 init_insn_reg_pressure_info. Adjust a caller.
4088 * sched-int.h (init_insn_reg_pressure_info): Declare.
4089 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4090 when sched-pressure is enabled.
4092 2011-04-08 Richard Guenther <rguenther@suse.de>
4094 * gimple.c (gimple_set_modified): Do not queue calls to
4095 MODIFIED_NORETURN_CALLS here ...
4096 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4098 2011-04-08 Richard Guenther <rguenther@suse.de>
4101 * toplev.c (lang_dependent_init): Do not open asm_out_file
4102 in WPA mode, nor perform debug machinery initialization.
4103 (finalize): Do not unlink asm_out_file in WPA mode.
4105 2011-04-08 Richard Guenther <rguenther@suse.de>
4107 * gimple.h (gimple_call_fntype): New function.
4108 (gimple_call_return_type): Use it.
4109 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4110 * gimple-low.c (gimple_check_call_args): Likewise.
4111 * gimple.c (gimple_call_flags): Likewise.
4112 (gimple_call_arg_flags): Likewise.
4113 (gimple_call_return_flags): Likewise.
4114 * tree-cfg.c (verify_gimple_call): Likewise.
4115 (do_warn_unused_result): Likewise.
4116 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4117 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4119 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4121 PR rtl-optimization/48235
4122 * sel-sched.c (code_motion_process_successors): Recompute the last
4123 insn in basic block if control flow changed.
4124 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4125 Update condition for ilist_remove.
4127 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4129 PR rtl-optimization/48302
4130 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4131 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4132 it to record added preheader blocks.
4133 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4134 on to sel_add_loop_preheaders.
4135 (sel_region_init): Move call to setup_current_loop_nest after
4138 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4141 * cfgloop.h (loop_has_exit_edges): New helper.
4142 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4144 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4145 that have no exit edges.
4147 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4149 PR rtl-optimization/48442
4150 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4151 all callers. Adjust assert.
4153 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4155 PR tree-optimization/48377
4156 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4157 is_packed to true even for types with smaller TYPE_ALIGN than
4160 2011-04-08 Richard Guenther <rguenther@suse.de>
4163 * doc/tm.texi: Re-generate.
4165 2011-04-08 Wei Guozhi <carrot@google.com>
4168 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4169 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4170 * config/arm/arm.md (*push_multi): Change the length computation to
4173 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4175 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4176 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4177 * doc/tm.texi: Regenerate.
4178 * system.h (ASM_OUTPUT_BSS): Poison.
4179 * varasm.c (asm_output_bss): Remove function.
4180 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4182 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4183 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4184 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4185 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4187 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4189 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4191 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4193 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4195 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4198 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4200 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4201 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4202 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4204 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4205 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4206 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4207 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4208 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4209 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4210 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4211 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4212 options. Don't map other m68k options manually. Don't handle
4213 old-style options as canonical.
4214 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4215 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4217 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4219 * basic-block.h (force_nonfallthru): Move to...
4220 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4221 (force_nonfallthru): ...here.
4222 * cfghooks.c (force_nonfallthru): New function.
4223 * cfgrtl.c (force_nonfallthru): Rename into...
4224 (rtl_force_nonfallthru): ...this.
4225 (commit_one_edge_insertion): Do not set AUX field.
4226 (commit_edge_insertions): Do not discover new basic blocks.
4227 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4228 (cfg_layout_rtl_cfg_hooks): Likewise.
4229 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4230 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4231 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4233 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4235 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4238 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4240 * config/i386/sse.md: Update copyright year.
4241 (avxcvtvecmode): Remove.
4242 (sse_movhlps): Merge with *avx_movhlps.
4243 (sse_movlhps): Merge with *avx_movlhps.
4244 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4245 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4246 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4247 (sse_loadhps): Merge with *avx_loadhps.
4248 (sse_storelps): Merge with *avx_storelps.
4249 (sse_loadlps): Merge with *avx_loadlps.
4250 (sse_movss): Merge with *avx_movss.
4251 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4252 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4253 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4254 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4255 (vec_set<mode>_0): Ditto.
4256 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4257 (sse4_1_insertps): Merge with *avx_insertps.
4258 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4259 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4260 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4261 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4262 (sse2_storehpd): Merge with *avx_storehpd.
4263 (sse2_loadhpd): Merge with *avx_loadhpd.
4264 (sse2_loadlpd): Merge with *avx_loadlpd.
4265 (sse2_movsd): Merge with *avx_movsd.
4266 (*vec_concatv2df): Merge with *vec_concatv2df.
4268 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4271 * combine.c (combine_instructions): Add last_combined_insn,
4272 update it if insn is after it, pass it to all try_combine calls.
4273 (try_combine): Add last_combined_insn parameter, pass it instead of
4274 i3 to propagate_for_debug.
4276 2011-04-07 Nick Clifton <nickc@redhat.com>
4278 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4279 to handle MDR <-> data register transfers.
4280 (movhi_internal): Likewise.
4282 2011-04-07 Alan Modra <amodra@gmail.com>
4284 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4285 previous stack info.
4287 2011-04-07 Tom de Vries <tom@codesourcery.com>
4290 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4291 flow_find_cross_jump. Swap variables to implement backward replacement.
4292 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4294 2011-04-07 Tom de Vries <tom@codesourcery.com>
4297 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4298 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4300 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4301 src1 or src2. Redirect edges to the last basic block. Update
4302 frequency and count on multiple basic blocks in case of fallthru.
4304 2011-04-07 Tom de Vries <tom@codesourcery.com>
4307 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4309 (old_insns_match_p): Change return type. Replace return false/true
4310 with return dir_none/dir_both. Use can_replace_by.
4311 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4312 direction from dir_p. Register replacement direction in dir, last_dir
4313 and afterlast_dir. Handle new return type of old_insns_match_p using
4314 merge_dir. Return replacement direction in dir_p.
4315 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4316 return type of old_insns_match_p.
4317 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4318 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4319 flow_find_cross_jump.
4320 * basic-block.h (enum replace_direction): New type.
4321 (flow_find_cross_jump): Add parameter to declaration.
4323 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4325 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4326 (AVXMODEDCVTPS2DQ): Ditto.
4327 (VEC_FLOAT_MODE): Ditto.
4328 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4329 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4330 (<any_logic:code><mode>3): Use VF mode iterator.
4331 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4332 Use VF mode iterator.
4333 (copysign<mode>3): Use VF mode iterator.
4334 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4335 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4336 (*<any_logic:code><MODEF:mode>3): Merge with
4337 *avx_<any_logic:code><MODEF:mode>3.
4338 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4339 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4340 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4341 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4342 (sse2_cvtdq2ps): Use %v modifier.
4343 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4344 (avx_cvtps2dq<avxmodesuffix>): Remove.
4345 (sse2_cvtps2dq): Use %v modifier.
4346 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4347 (avx_cvttps2dq<avxmodesuffix>): Remove.
4348 (sse2_cvttps2dq): Use %v modifier.
4349 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4350 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4351 (sse2_cvtsd2siq): Fix insn template.
4352 (sse2_cvtsd2siq_2): Ditto.
4353 (sse2_cvttsd2siq): Ditto.
4354 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4355 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4357 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4359 * gcov-io.c: Use GCC Runtime Library Exception.
4361 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4364 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4365 as base_reg whatever register reg has been eliminated to, instead
4366 of hardcoding STACK_POINTER_REGNUM.
4368 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4370 * doc/tm.texi.in: Document C target hooks as separate from general
4372 * doc/tm.texi: Regenerate.
4373 * genhooks.c (struct hook_desc): Add docname field.
4374 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4376 (hook_array): Include c-target.def.
4377 (emit_documentation): Use docname field in output.
4378 (emit_init_macros): Take docname argument. Only emit definitions
4379 for hooks matching docname.
4380 (main): Expect additional arguments in all cases. Pass argument
4381 to emit_init_macros.
4382 * target.def: Move initial macro definitions and comments to
4383 target-hooks-macros.h.
4384 (gcc_targetcm): Move to c-family/c-target.def.
4385 * target.h (targetcm): Move declaration to c-family/c-target.h.
4386 * targhooks.c (default_handle_c_option): Move to
4388 * targhooks.h (default_handle_c_option): Move declaration to
4389 c-family/c-common.h.
4390 * target-hooks-macros.h: New file.
4391 * config.gcc (target_has_targetcm): Define and use to add to
4392 c_target_objs and cxx_target_objs.
4393 * config/default-c.c: New file.
4394 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4395 of target.h and target-def.h.
4396 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4397 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4398 darwin_check_cfstring_format_arg): Make static.
4399 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4400 TARGET_STRING_OBJECT_REF_TYPE_P,
4401 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4402 * config/darwin-protos.h (darwin_objc_construct_string,
4403 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4405 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4406 TARGET_STRING_OBJECT_REF_TYPE_P,
4407 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4408 * config/t-darwin (darwin-c.o): Update dependencies.
4409 * system.h (TARGET_HAS_TARGETCM): Poison.
4410 * Makefile.in (TARGET_H): Update.
4411 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4412 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4413 (default-c.o): New target.
4414 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4415 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4416 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4418 (build/genhooks.o): Update dependencies.
4420 2011-04-06 Richard Guenther <rguenther@suse.de>
4422 * ipa-inline.c (enum inlining_mode): Remove.
4423 (cgraph_flatten): Use some other token.
4424 (cgraph_edge_early_inlinable_p): New function, split out from ...
4425 (cgraph_perform_always_inlining): New function, split out from ...
4426 (cgraph_decide_inlining_incrementally): ... here.
4427 (cgraph_mark_inline_edge): Adjust.
4428 (cgraph_early_inlining): Re-structure.
4429 (pass_early_inline): Require SSA form.
4431 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4432 Julian Brown <julian@codesourcery.com>
4433 Mark Shinwell <shinwell@codesourcery.com>
4435 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4436 LO_REGS only for Thumb-1.
4437 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4438 be used in short instructions when optimising for size on Thumb-2.
4440 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4442 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4443 associated with user returns to be preserved.
4445 2011-04-06 Tristan Gingold <gingold@adacore.com>
4447 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4448 symbol_queue_size, DBXOUT_DECR_NESTING,
4449 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4450 if XCOFF_DEBUGGING_INFO.
4452 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4454 * config/i386/i386.md (attribute isa): New.
4455 (attribute enabled): New.
4456 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4457 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4458 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4459 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4460 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4461 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4462 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4463 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4465 * config/i386/sse.md (VF): New mode iterator.
4469 (SSEMODEF4): Remove.
4470 (attribute sse): Handle V8SF and V4DF modes.
4471 (<absneg:code><mode>2): Use VF mode iterator.
4472 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4474 (<plusminus_insn><mode>3): Use VF mode iterator.
4475 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4476 Use VF mode iterator.
4477 (<sse>_vm<plusminus_insn><mode>3): Merge with
4478 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4479 (mul<mode>3): Use VF mode iterator.
4480 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4481 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4483 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4484 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4485 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4486 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4488 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4489 Use VF1 mode iterator.
4490 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4491 (sqrt<VF2:mode>2): New expander.
4492 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4493 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4494 and sqrtv2df2. Use VF mode iterator.
4495 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4497 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4498 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4499 Use VF1 mode iterator.
4500 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4501 (<smaxmin:code><mode>3): Use VF mode iterator.
4502 (*<smaxmin:code><mode>3_finite): Merge with
4503 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4504 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4505 (<sse>_vm<smaxmin:code><mode>2): Merge with
4506 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4507 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4509 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4511 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4512 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4513 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4514 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4515 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4517 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4518 Use VF_128 mode iterator.
4519 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4521 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4522 VF_128 mode iterator.
4523 (vcond<mode>): Use VF mode iterator.
4524 * config/i386/predicates.md (sse_comparison_operator): Merge with
4525 avx_comparison_float_operator. Do not declare as special_predicate.
4526 * config/i386/i386.c (struct builtin_description): Update for renamed
4528 (ix86_expand_args_builtin): Ditto.
4529 (ix86_expand_sse_compare_mask): Ditto.
4531 2011-04-06 Richard Guenther <rguenther@suse.de>
4533 * tree-inline.c (estimate_num_insns): For calls simply account
4534 for all passed arguments and a used return value.
4536 2011-04-06 Richard Guenther <rguenther@suse.de>
4538 PR tree-optimization/47663
4539 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4540 call_stmt_time fields.
4541 (cgraph_edge_inlinable_p): Declare.
4542 (cgraph_edge_recursive_p): New inline function.
4543 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4544 (cgraph_clone_edge): Copy it.
4545 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4546 Account for call stmt time.
4547 (cgraph_estimate_time_after_inlining): Take edge argument.
4548 (cgraph_estimate_edge_growth): Account call stmt size.
4549 (cgraph_estimate_size_after_inlining): Take edge argument.
4550 (cgraph_mark_inline_edge): Adjust.
4551 (cgraph_check_inline_limits): Likewise.
4552 (cgraph_recursive_inlining_p): Remove.
4553 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4554 (cgraph_decide_recursive_inlining): Take edge argument and
4556 (cgraph_decide_inlining_of_small_functions): Do not avoid
4557 diags for recursive inlining here.
4558 (cgraph_flatten): Adjust.
4559 (cgraph_decide_inlining_incrementally): Likewise.
4560 (estimate_function_body_sizes): Remove call cost handling.
4561 (compute_inline_parameters): Initialize caller edge call costs.
4562 (cgraph_estimate_edge_growth): New function.
4563 (cgraph_estimate_growth): Use it.
4564 (cgraph_edge_badness): Likewise.
4565 (cgraph_check_inline_limits): Take an edge argument.
4566 (cgraph_decide_inlining_of_small_functions): Adjust.
4567 (cgraph_decide_inlining): Likewise.
4568 * tree-inline.c (estimate_num_insns): Only account for call
4569 return value if it is used.
4570 (expand_call_inline): Avoid diagnostics on recursive inline
4572 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4573 (input_edge): Input edge call costs.
4575 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4577 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4579 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4581 * doc/invoke.texi (Spec Files): Fix typo.
4583 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4585 * profile.c (branch_prob): Move declaration of local variable. Remove
4586 obsolete ??? comment. Expand the location explicitly instead of using
4587 the LOCATION_FILE and LOCATION_LINE macros.
4589 2011-04-06 Wei Guozhi <carrot@google.com>
4592 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4593 (arm_cond_branch): Likewise.
4594 (arm_cond_branch_reversed): Likewise.
4595 (arm_jump): Likewise.
4596 (push_multi): Likewise.
4597 * config/arm/constraints.md (Py): New constraint.
4599 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4602 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4604 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4605 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4606 #ifdef DBX_DEBUGGING_INFO.
4608 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4611 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4612 if old and new states differ.
4614 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4616 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4617 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4618 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4619 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4620 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4622 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4623 ColdFire options to -mcpu= options.
4625 2011-04-05 Jeff Law <law@redhat.com>
4627 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4628 check if BB is a successor of LOOP->header and return
4629 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4631 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4633 * cprop.c (struct reg_use): Remove.
4634 (reg_use_table): Make an array of RTX.
4635 (find_used_regs, constprop_register, local_cprop_pass,
4636 bypass_block): Simplify users of reg_use_table.
4637 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4638 on one of the uses found by find_used_regs.
4640 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4643 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4646 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4648 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4650 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4652 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4655 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4657 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4659 * combine.c: Include obstack.h.
4660 (struct insn_link): Define.
4661 (uid_log_links): Adjust type.
4662 (FOR_EACH_LOG_LINK): New macro.
4663 (insn_link_obstack): Declare.
4664 (alloc_insn_link): Define.
4665 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
4666 type of link variables.
4667 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4668 (try_combine, record_promoted_values, distribute_notes): Likewise.
4669 (distribute_links): Likewise. Tweak prototype.
4670 (clear_log_links): Delete.
4671 (adjust_for_new_dest): Call alloc_insn_link.
4672 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4674 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4676 * gcse.c (modify_mem_list): Convert to an array of VECs.
4677 (canon_modify_mem_list, compute_transp): Tweak formatting.
4678 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
4679 (load_killed_in_block_p): Likewise.
4680 (record_last_mem_set_info): Likewise.
4681 (clear_modify_mem_tables): Likewise.
4683 2011-04-05 Tom de Vries <tom@codesourcery.com>
4686 * function.c (emit_use_return_register_into_block): Only define if
4689 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
4691 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4693 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4695 * config/rx/rx-opts.h: New.
4696 * config/rx/rx.c (rx_cpu_type): Remove.
4697 (rx_handle_option): Don't assert that global structures are in
4698 use. Access variables via opts pointer. Defer most handling of
4699 OPT_mint_register_. Use error_at.
4700 (rx_option_override): Handle deferred OPT_mint_register_ here.
4701 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4702 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4703 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4704 (rx_cpu_types): New Enum and EnumValue entries.
4705 (mint-register=): Use Defer and use Var accordingly.
4707 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4709 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4710 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4711 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4713 (debug_free_queue, debug_nesting, symbol_queue_index):
4715 * dbxout.c: ...to here. Make static.
4717 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4719 * gcse.c (modify_pair): Define. Define a VEC of it.
4720 (canon_modify_mem_list): Convert to an array of VECs.
4721 (free_insn_expr_list_list): Delete.
4722 (clear_modify_mem_tables): Call VEC_free instead.
4723 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4724 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4725 (canon_list_insert, compute_transp): Likewise.
4727 2011-04-05 Tom de Vries <tom@codesourcery.com>
4730 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4733 2011-04-05 Tom de Vries <tom@codesourcery.com>
4736 * function.c (emit_use_return_register_into_block): New function.
4737 (thread_prologue_and_epilogue_insns): Use
4738 emit_use_return_register_into_block.
4740 2011-04-05 Tom de Vries <tom@codesourcery.com>
4743 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4746 2011-04-05 Tom de Vries <tom@codesourcery.com>
4748 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4750 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4752 * config/arm/arm.md (define_constants for unspec): Replace with
4754 (define_constants for unspecv): Replace with define_c_enum.
4755 * config/arm/neon.md (define_constants for unspec): Replace with
4758 2011-04-04 Richard Henderson <rth@redhat.com>
4761 * dwarf2out.c (output_line_info): Always emit line info from
4762 at least one section.
4763 (dwarf2out_init): Create text_section_line_info here ...
4764 (set_cur_line_info_table): ... not here.
4766 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
4769 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4772 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4774 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
4776 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4777 (expr_equiv_p): Remove.
4778 (insert_set_in_table): Look at <dest, src> pair instead of expr.
4779 (hash_scan_set): Update call to insert_set_in_table.
4780 (dump_hash_table): Dump <dest, src> pair.
4781 (lookup_set): Simplify. Lookup <dest, src> pair.
4782 (compute_transp): Remove, fold heavily simplified code into...
4783 (compute_local_properties): ...here. Expect COMP and TRANSP
4785 (find_avail_set): Take set directly from struct expr.
4786 (find_bypass-set): Likewise.
4787 (bypass_block): Likewise.
4788 (cprop_insn): Likewise. Remove redundant INSN_P test.
4790 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4791 checks on form of COND from find_implicit_sets to here.
4792 (find_implicit_sets): Cleanup control flow. Split critical edges
4793 if it exposes implicit sets. Allocate/resize implicit_sets as
4795 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4796 changed something. Run df_analyze after find_implicit_sets if any
4797 edges were split. Do not allocate implicit_sets here.
4799 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4800 (gcse_obstack): Renamed to cprop_obstack.
4801 (GNEW, GNEWVEC, GNEWVAR): Remove.
4803 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4804 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4805 (gcse_alloc): Likewise, and rename to cprop_alloc.
4806 (alloc_gcse_men, free_gcse_mem): Remove.
4807 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4808 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4809 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4811 * cprop.c (oprs_not_set_p): Remove.
4812 (mark_set, mark_clobber): Remove.
4813 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4814 (reg_not_set_p): New function.
4815 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4816 (cprop_insn): Likewise.
4817 (cprop_jump): Use FOR_EACH_EDGE.
4819 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
4822 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
4823 (rank_for_schedule): Use scheduled_insns vector instead of
4824 last_scheduled_insn.
4825 (ok_for_early_queue_removal): Likewise.
4826 (queue_to_ready): Search forward in nonscheduled_insns_begin if
4828 (choose_ready): Likewise.
4829 (commit_schedule): Use VEC_iterate.
4830 (schedule_block): Initialize nonscheduled_insns_begin. If we have
4831 a dbg_cnt, use it and ensure the first insn is in the ready list.
4832 (haifa_sched_init): Allocate scheduled_insns.
4833 (sched_extend_ready_list): Don't allocate it; reserve space.
4834 (haifa_sched_finish): Free it.
4836 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4838 * optc-gen.awk: Always remove type from Variable entry before
4839 recording in var_seen.
4841 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
4843 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
4844 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
4845 call to tidy_fallthru_edges.
4847 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4849 * doc/options.texi (ToLower): Document.
4850 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
4851 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
4852 * opts.h (cl_option): Add cl_tolower field.
4853 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
4854 arguments with lowercase strings.
4855 * config/rx/rx.opt (mcpu=): Add ToLower.
4856 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
4859 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4861 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
4863 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4865 * config/vax/vax.c: Include reload.h.
4867 2011-04-04 Anatoly Sokolov <aesok@post.ru>
4869 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
4870 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4871 (sparc_preferred_reload_class): New function.
4873 2011-04-04 Jakub Jelinek <jakub@redhat.com>
4876 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4877 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
4879 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
4881 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
4882 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
4884 2011-04-03 Anatoly Sokolov <aesok@post.ru>
4886 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
4887 (ASM_OUTPUT_ALIGNED_BSS): Define.
4889 2011-04-03 Michael Matz <matz@suse.de>
4891 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
4892 and next_slot members.
4893 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
4894 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
4895 (lto_streamer_cache_append): Declare.
4896 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
4897 unsigned index, remove offset parameter, ensure that we append
4898 or update existing entries.
4899 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
4900 parameter, update next_slot for append.
4901 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
4903 (lto_streamer_cache_insert_at): Likewise.
4904 (lto_streamer_cache_append): New function.
4905 (lto_streamer_cache_lookup): Use unsigned index.
4906 (lto_streamer_cache_get): Likewise.
4907 (lto_record_common_node): Don't test tree_node_can_be_shared.
4908 (preload_common_node): Adjust call to lto_streamer_cache_insert.
4909 (lto_streamer_cache_delete): Don't free offsets member.
4910 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
4911 (lto_output_string_with_length): Use lto_output_data_stream.
4912 (lto_output_tree_header): Remove ix parameter, don't write it.
4913 (lto_output_builtin_tree): Likewise.
4914 (lto_write_tree): Adjust callers to above, don't track and write
4915 offset, write unsigned index.
4916 (output_unreferenced_globals): Don't emit all global vars.
4917 (write_global_references): Use unsigned indices.
4918 (lto_output_decl_state_refs): Likewise.
4919 (write_symbol): Likewise.
4920 * lto-streamer-in.c (lto_input_chain): Move earlier.
4921 (input_function): Use unsigned index.
4922 (input_alias_pairs): Don't read and then ignore all global vars.
4923 (lto_materialize_tree): Remove ix_p parameter, don't read index,
4924 don't pass it back, use lto_streamer_cache_append.
4925 (lto_register_var_decl_in_symtab): Use unsigned index.
4926 (lto_register_function_decl_in_symtab): Likewise.
4927 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
4929 (lto_get_builtin_tree): Don't read index, use
4930 lto_streamer_cache_append.
4931 (lto_read_tree): Adjust call to lto_materialize_tree.
4933 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
4934 don't use function calls in arguments to MIN.
4936 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
4939 * gimple.c (gimple_type_leader_entry): Mark deletable.
4941 2011-04-03 Alan Modra <amodra@gmail.com>
4943 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
4945 2011-04-03 Michael Matz <matz@suse.de>
4947 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
4949 * tree.h (tree_decl_non_common.vindex): Adjust comment.
4951 2011-04-03 Michael Matz <matz@suse.de>
4953 * cgraphbuild.c (record_reference): Canonicalize constructor values.
4954 * gimple-fold.c (canonicalize_constructor_val): Accept being called
4955 without function context.
4956 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
4957 current_function_decl and cfun.
4959 2011-04-03 Michael Matz <matz@suse.de>
4961 * tree.c (decl_init_priority_insert): Don't create entry for
4963 (decl_fini_priority_insert): Ditto.
4964 (fields_compatible_p, find_compatible_field): Remove.
4965 * tree.h (fields_compatible_p, find_compatible_field): Remove.
4966 * gimple.c (gimple_compare_field_offset): Adjust block comment.
4968 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
4970 * combine.c (try_combine): Remove useless local variable.
4972 2011-04-03 Richard Guenther <rguenther@suse.de>
4973 Ira Rosen <ira.rosen@linaro.org>
4975 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
4976 non-variable offsets and compare the remaining bases of the two
4977 accesses instead of looking for exact same data-ref.
4979 2011-04-02 Kai Tietz <ktietz@redhat.com>
4982 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
4984 * i386.c (ix86_is_msabi_thiscall): New helper function.
4985 (ix86_is_type_thiscall): New helper function.
4986 (ix86_comp_type_attributes): Handle thiscall for method-functions
4988 (init_cumulative_args): Likewise.
4989 (find_drap_reg): Likewise.
4990 (ix86_static_chain): Likewise.
4991 (x86_this_parameter): Likewise.
4992 (x86_output_mi_thunk): Likewise.
4994 2011-04-01 Olivier Hainque <hainque@adacore.com>
4995 Nicolas Setton <setton@adacore.com>
4996 Eric Botcazou <ebotcazou@adacore.com>
4998 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
4999 (add_gnat_descriptive_type_attribute): New function.
5000 (gen_array_type_die): Call it.
5001 (gen_enumeration_type_die): Likewise.
5002 (gen_struct_or_union_type_die): Likewise.
5003 (modified_type_die): Likewise.
5004 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5005 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5006 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5008 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5011 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5012 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5015 2011-03-17 Richard Guenther <rguenther@suse.de>
5018 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5019 origin for decls in other ltrans units.
5020 (input_varpool_node): Likewise.
5022 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5025 * expr.c (expand_assignment): Handle all possibilities
5026 if TO_RTX is CONCAT.
5027 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5028 (store_split_bit_field): If SUBREG_REG (op0) or
5029 op0 itself has smaller mode than word, return it
5030 for offset 0 and const0_rtx for out-of-bounds stores.
5031 If word is const0_rtx, skip it.
5033 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5035 * config/h8300/h8300.c (print_operand_address): Rename to...
5036 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5037 Call h8300_print_operand and h8300_print_operand_address instead of
5038 print_operand and print_operand_address. Declare.
5039 (print_operand): Renake to...
5040 (h8300_print_operand): ...this. Make static. Adjust comments.
5041 Call h8300_print_operand instead of print_operand. Declare.
5042 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5043 (h8300_register_move_cost): Likewise.
5044 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5045 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5046 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5047 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5048 * config/h8300/h8300-protos.h (print_operand): Delete.
5049 (print_operand_address): Delete.
5051 2011-04-01 Richard Henderson <rth@redhat.com>
5054 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5055 in strict mode before dwarf4. Re-order tests to early out
5056 before switching sections.
5058 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5060 * config/h8300/constraints.md: New file.
5061 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5062 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5063 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5064 * config/h8300/predicates.md (bit_operand): Likewise.
5065 (incdec_operand): Use satisfies_constraint_M and
5066 satisfies_constraint_O. Don't use C code block.
5067 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5068 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5069 (compute_mov_length): Use satisfies_constraint_G.
5070 (fix_bit_operand): Use satisfies_constraint_U.
5071 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5072 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5073 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5074 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5075 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5076 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5077 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5078 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5079 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5080 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5081 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5082 (EXTRA_MEMORY_CONSTRAINT): Delete.
5084 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5085 Michael Meissner <meissner@linux.vnet.ibm.com>
5088 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5089 operands, as per the specifications.
5091 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5092 (vec_extract_evenv4sf): Ditto.
5093 (vec_extract_evenv8hi): Ditto.
5094 (vec_extract_evenv16qi): Ditto.
5095 (vec_extract_oddv4si): Ditto.
5097 2011-03-31 Mark Wielaard <mjw@redhat.com>
5099 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5100 high_pc attribute if the CU has no associated code. Only output
5101 DW_AT_entry_pc for CU if not generating strict dwarf and
5104 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5106 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5107 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5109 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5110 * final.c (final_start_function): Call the new function rather
5111 than using a NULL argument for dwarf2out_frame_debug.
5113 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5114 that contains the prologue.
5116 * haifa-sched.c (queue_insn): New arg REASON. All callers
5117 changed. Print it in debugging output.
5119 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5121 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5122 Split most of the code into...
5123 (begin_move_insn): ... here. New function.
5124 (ebb_sched_info): Add a pointer to it.
5125 * haifa-sched.c (scheduled_insns): New static variable.
5126 (sched_extend_ready_list): Allocate it.
5127 (schedule_block): Use it to record the order of scheduled insns.
5128 Perform RTL changes to move insns only after all scheduling
5129 decisions have been made.
5130 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5131 begin_move_insn field.
5132 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5133 * sched-int.h (struct haifa_sched_info): Remove second argument
5134 from begin_schedule_ready hook. Add new member begin_move_insn.
5135 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5136 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5138 * haifa-sched.c (prune_ready_list): New function, broken out of
5140 (schedule_block): Use it.
5142 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5144 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5146 2011-04-01 Kai Tietz <ktietz@redhat.com>
5148 * config.gcc (*-*-mingw*): Allow as option the
5149 posix threading model.
5150 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5151 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5153 (CPP_SPEC): Add pthread/no-pthread handling.
5154 (LIB_SPEC): Likewise.
5155 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5156 (LIB_SPEC): Likewise.
5157 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5158 flag to pass -pthread option for shared libgcc build.
5159 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5160 for shared libgcc build.
5161 * config/i386/t-mingw-pthread: New file.
5162 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5163 New define to enable use of library pthread by default.
5164 * config/i386/mingw.opt (pthread): New driver option.
5165 (no-pthread): New driver option.
5166 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5167 * config/i386/mingw-w64.opt: Likewise.
5169 2011-04-01 Gary Funck <gary@intrepid.com>
5171 * c-decl.c (grokdeclarator): Fix formatting.
5173 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5175 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5176 instead of n_operands.
5177 (set_storage_via_setmem): Likewise.
5178 * optabs.c (maybe_gen_insn): Likewise.
5179 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5180 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5181 (mips_expand_builtin_direct): Likewise.
5182 * config/spu/spu.c (expand_builtin_args): Likewise.
5184 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5186 * recog.h (insn_data_d): Add n_generator_args.
5187 * genoutput.c (data): Likewise.
5188 (output_insn_data): Print it.
5189 (max_opno, num_dups): Delete.
5190 (scan_operands): Just fill in "d->operand[...]".
5191 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5193 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5195 * gensupport.h (pattern_stats): New structure.
5196 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5197 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5198 (max_operand_1, max_operand_vec): Delete.
5199 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5201 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5203 * emit-rtl.c (emit_pattern_after_setloc): New function.
5204 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5205 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5206 (emit_pattern_after): New function.
5207 (emit_insn_after, emit_jump_insn_after): Call it.
5208 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5209 (emit_pattern_before_setloc): New function.
5210 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5211 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5213 (emit_pattern_before): New function.
5214 (emit_insn_before, emit_jump_insn_before): Call it.
5215 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5217 2011-03-31 Richard Henderson <rth@redhat.com>
5219 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5220 (dw_separate_line_info_entry): Remove.
5221 (enum dw_line_info_opcode): New.
5222 (dw_line_info_entry): Use it.
5223 (dw_line_info_table, dw_line_info_table_p): New.
5224 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5225 (line_info_table, line_info_label_num): Remove.
5226 (line_info_table_in_use): Remove.
5227 (separate_line_info_table): Remove.
5228 (separate_line_info_table_allocated): Remove.
5229 (separate_line_info_table_in_use): Remove.
5230 (LINE_INFO_TABLE_INCREMENT): Remove.
5231 (line_info_label_num): New.
5232 (cur_line_info_table): New.
5233 (text_section_line_info, cold_text_section_line_info): New.
5234 (separate_line_info): New.
5235 (SEPARATE_LINE_CODE_LABEL): Remove.
5236 (print_dwarf_line_table): Remove.
5237 (debug_dwarf): Don't dump it.
5238 (output_one_line_info_table): New.
5239 (output_line_info): Use it.
5240 (new_line_info_table): New.
5241 (set_cur_line_info_table): New.
5242 (dwarf2out_switch_text_section): Use it.
5243 (dwarf2out_begin_function): Likewise.
5244 (push_dw_line_info_entry): New.
5245 (dwarf2out_source_line): Rewrite for new line info tables.
5246 (dwarf2out_init): Remove dead initailizations.
5248 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5250 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5252 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5253 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5254 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5255 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5256 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5257 * opt-functions.awk (flag_init, switch_bit_fields): New.
5258 (switch_flags): Don't handle flags moved to bit-fields. Don't
5259 generate CL_MISSING_OK or CL_SAVE.
5260 * optc-gen.awk: Update to generate bit-field output as well as
5262 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5263 bit-field instead of CL_REJECT_DRIVER flag.
5264 * opts-common.c (generate_canonical_option,
5265 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5266 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5267 instead of CL_REJECT_NEGATIVE flag.
5268 * toplev.c (print_switch_values): Use cl_report bit-field instead
5271 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5273 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5274 a zero minimum index only if it is redundant.
5276 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5278 PR rtl-optimization/48381
5279 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5280 instead of ira_class_hard_reg_index for calculating conflicting
5283 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5285 * cprop.c: Clean up hash table building.
5286 (reg_avail_info): Remove.
5287 (oprs_available_p): Remove.
5288 (record_last_reg_set_info): Remove.
5289 (record_last_set_info): Remove.
5290 (reg_available_p): New function.
5291 (gcse_constant_p): Do not treat unfolded conditions as constants.
5292 (make_set_regs_unavailable): New function.
5293 (hash_scan_set): Simplify with new reg_available_p.
5294 (compute_hash_table_work): Traverse insns stream only once.
5295 Do not compute reg_avail_info. Traverse insns in reverse order.
5296 Record implicit sets after recording explicit sets from the block.
5298 2011-03-31 Michael Matz <matz@suse.de>
5300 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5302 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5304 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5305 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5306 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5307 (h8300_mode_dependent_address_p): New function.
5308 (h8300_get_index): Make static.
5310 2011-03-31 Jeff Law <law@redhat.com>
5312 * reload1.c (elimination_effects): Fix typo in recent change.
5314 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5315 typo potentially leading to null pointer dereference.
5317 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5318 (setup_save_areas): Corresponding changes to avoid useless
5321 * jump.c (reversed_comparison_code_parts): Avoid successive return
5322 statements when REVERSE_CONDITION is defined.
5324 * expr.c (expand_assignment): Avoid useless assignments.
5325 (expand_expr_real_1): Likewise.
5326 (expand_expr_real_2): Avoid useless statements.
5328 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5330 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5332 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5335 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5337 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5340 * doc/tm.texi.in (TARGET_VERSION): Remove.
5341 * doc/tm.texi: Regenerate.
5342 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5343 * collect2.c (main): Don't use TARGET_VERSION.
5344 * mips-tdump.c (main): Don't use TARGET_VERSION.
5345 * mips-tfile.c (main): Don't use TARGET_VERSION.
5346 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5347 * config/rs6000/vxworksae.h: Remove.
5348 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5349 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5350 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5351 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5352 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5353 * config/arm/arm.h (TARGET_VERSION): Remove.
5354 * config/arm/coff.h (TARGET_VERSION): Remove.
5355 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5356 * config/arm/elf.h (TARGET_VERSION): Remove.
5357 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5358 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5359 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5360 * config/arm/pe.h (TARGET_VERSION): Remove.
5361 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5362 * config/arm/semi.h (TARGET_VERSION): Remove.
5363 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5364 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5365 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5366 * config/avr/avr.h (TARGET_VERSION): Remove.
5367 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5368 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5369 * config/frv/frv.h (TARGET_VERSION): Remove.
5370 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5371 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5372 * config/i386/darwin.h (TARGET_VERSION): Remove.
5373 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5374 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5375 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5376 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5377 * config/i386/gnu.h (TARGET_VERSION): Remove.
5378 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5379 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5380 * config/i386/linux.h (TARGET_VERSION): Remove.
5381 * config/i386/linux64.h (TARGET_VERSION): Remove.
5382 * config/i386/lynx.h (TARGET_VERSION): Remove.
5383 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5384 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5385 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5386 * config/i386/netware.h (TARGET_VERSION): Remove.
5387 * config/i386/nto.h (TARGET_VERSION): Remove.
5388 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5389 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5390 * config/ia64/elf.h (TARGET_VERSION): Remove.
5391 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5392 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5393 * config/ia64/linux.h (TARGET_VERSION): Remove.
5394 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5395 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5396 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5397 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5398 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5399 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5400 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5401 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5402 * config/m68k/linux.h (TARGET_VERSION): Remove.
5403 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5404 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5405 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5406 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5407 * config/mep/mep.h (TARGET_VERSION): Remove.
5408 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5409 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5410 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5411 * config/mips/linux.h (TARGET_VERSION): Remove.
5412 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5413 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5414 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5415 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5416 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5417 * config/pa/pa.h (TARGET_VERSION): Remove.
5418 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5419 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5420 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5421 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5422 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5423 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5424 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5425 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5426 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5427 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5428 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5429 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5430 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5431 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5432 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5433 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5434 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5435 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5436 * config/s390/linux.h (TARGET_VERSION): Remove.
5437 * config/s390/s390.h (TARGET_VERSION): Remove.
5438 * config/s390/tpf.h (TARGET_VERSION): Remove.
5439 * config/score/score.h (TARGET_VERSION): Remove.
5440 * config/sh/linux.h (TARGET_VERSION): Remove.
5441 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5442 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5443 * config/sh/sh.h (TARGET_VERSION): Remove.
5444 * config/sh/sh64.h (TARGET_VERSION): Remove.
5445 * config/sh/superh.h (TARGET_VERSION): Remove.
5446 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5447 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5448 * config/sparc/linux.h (TARGET_VERSION): Remove.
5449 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5450 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5451 TARGET_NAME32, TARGET_NAME): Remove.
5452 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5453 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5454 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5455 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5456 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5457 * config/spu/spu.h (TARGET_VERSION): Remove.
5458 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5459 * config/v850/v850.h (TARGET_VERSION): Remove.
5460 * config/vax/linux.h (TARGET_VERSION): Remove.
5461 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5462 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5463 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5465 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5468 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5469 frame-related from frame-unrelated adjustments to the stack pointer.
5471 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5473 * common.opt (fdebug-types-section): Move earlier.
5474 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5476 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5478 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5481 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5483 * tree.h (CASE_CHAIN): Define.
5484 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5485 (gimple_redirect_edge_and_branch): Likewise.
5487 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5490 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5493 2011-03-30 Jeff Law <law@redhat.com>
5495 * PR bootstrap/48371
5496 * reload1.c (reload): Fix botch in last change.
5498 * reload.h (struct reload): Fix typo introduced in last change.
5500 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5502 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5503 Undocumented. Remove help text.
5504 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5507 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5509 * doc/options.texi (NegativeAlias): Document.
5510 (Alias): Mention NegativeAlias.
5511 * opt-functions.awk: Handle NegativeAlias.
5512 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5513 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5514 * opts.h (CL_NEGATIVE_ALIAS): Define.
5515 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5516 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5518 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5520 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5521 mno-spe and mno-isel instead of mspe=no and -misel=no.
5523 2011-03-29 Mark Wielaard <mjw@redhat.com>
5525 * common.opt (fdebug-types-section): New flag.
5526 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5527 * dwarf2out.c (use_debug_types): New define.
5528 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5529 (print_die): Guard output of type unit signatures using
5531 (build_abbrev_table): Replace assert of dwarf_version >= 4
5532 with assert on use_debug_types.
5533 (size_of_die): Likewise.
5534 (unmark_dies): Likewise.
5535 (value_format): Decide AT_ref_external form on use_debug_types.
5536 (output_die): Replace dwarf_version version check guard with
5537 use_debug_types where appropriate.
5538 (modified_type_die): Likewise.
5539 (gen_reference_type_die): Likewise.
5540 (dwarf2out_start_source_file): Likewise.
5541 (dwarf2out_end_source_file): Likewise.
5542 (prune_unused_types_walk_attribs): Likewise.
5543 (dwarf2out_finish): Likewise.
5545 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5547 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5549 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5551 PR rtl-optimization/48332
5552 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5553 mode of input operand N and modeN to its actual mode.
5555 2011-03-30 Jeff Law <law@redhat.com>
5557 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5558 define accessor macro.
5559 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5560 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5561 (reg_equiv_init): Likewise.
5562 (reg_equivs_size): New variable.
5563 (reg_equiv_init_size): Remove.
5564 (allocate_initial_values): Move prototype to here from....
5565 * integrate.h (allocate_initial_values): Remove prototype.
5566 * integrate.c: Include reload.h.
5567 (allocate_initial_values): Corresponding changes.
5568 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5569 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5570 (update_equiv_regs): Corresponding changes.
5571 (ira): Corresponding changes.
5572 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5573 (push_secondary_reload): Corresponding changes.
5574 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5575 (make_memloc, find_reloads_address): Corresponding changes.
5576 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5577 (find_reloads_address_1): Corresponding changes.
5578 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5579 (refers_to_regno_for_reload_p): Corresponding changes.
5580 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5581 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5582 * reload1.c: Include ggc.h.
5583 (grow_reg_equivs): New function.
5584 (replace_pseudos_in, reload): Corresponding changes.
5585 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5586 (eliminate_regs_1, elimination_effects): Corresponding changes.
5587 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5588 (delete_output_reload): Likewise.
5589 * caller-save.c (mark_referenced_regs): Corresponding changes.
5590 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5591 * frv/predicates.md (frv_load_operand): Corresponding changes.
5592 * microblaze/microblaze.c (double_memory_operand): Corresponding
5594 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5595 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5596 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5597 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5598 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5600 * pa/pa.c (emit_move_sequence): Corresponding changes.
5601 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5603 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5606 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5607 structure modes. Don't check neon_vector_mem_operand for
5608 vector or structure modes.
5610 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5611 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5614 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5615 operand 1 and reshuffle the operands to match.
5616 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5618 2011-03-30 Christian Schüler <cschueler@gmx.de>
5621 * config/c.opt (F): Added 'Driver' to -F option.
5624 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5626 * config/darwin.opt: Added '-arch' option.
5628 2011-03-30 Nick Clifton <nickc@redhat.com>
5630 * config/rx/rx.md: Add peepholes and patterns to combine
5631 extending loads and simple arithmetic instructions.
5632 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5633 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5634 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5635 modes to use pre-decrement and post-increment addressing.
5636 (rx_is_restricted_memory_address): Add range checking of REG+INT
5638 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5639 (rx_memory_move_cost): Adjust cost of stores.
5640 (rx_adjust_insn_length): New function.
5642 2011-03-30 Jakub Jelinek <jakub@redhat.com>
5645 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5646 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5647 matching arg00/arg01 types.
5649 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5651 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5652 last_location to UNKNOWN_LOCATION.
5654 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5657 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5660 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5661 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5664 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5666 (sparc_cpu): Likewise.
5667 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5670 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5674 PR rtl-optimization/48345
5675 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5676 hard regs for given mode from profitable regs when doing secondary
5679 2011-03-29 Jeff Law <law@redhat.com>
5682 * tree-ssa-threadupdate.c (struct redirection_data): Remove
5683 do_not_duplicate field.
5684 (lookup_redirection_data): Corresponding changes.
5685 (create_duplicates): Always create a template block.
5686 (redirect_edges): Remove code which reused the original block
5687 when it was going to become unreachable code.
5688 (thread_block): Don't set do_not_duplicate field.
5690 2011-03-29 Joseph Myers <joseph@codesourcery.com>
5692 * lto-opts.c (register_user_option_p, lto_register_user_option):
5693 Make type argument unsigned.
5694 * lto-streamer.h (lto_register_user_option): Make type argument
5696 * opth-gen.awk: Make CL_* macros unsigned.
5697 * opts-common.c (find_opt): Make lang_mask argument unsigned.
5698 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5699 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5700 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5701 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5702 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5703 (find_opt): Make lang_mask argument unsigned.
5705 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5707 PR rtl-optimization/48331
5708 PR rtl-optimization/48334
5709 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5710 for any used algorithm.
5712 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5714 * ira-conflicts.c (build_object_conflicts): Add unused attribute
5717 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
5719 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5720 (alpha_option_override): Don't set alpha_sr_alias_set.
5721 (emit_frame_store_1): Use gen_frame_mem rather than calling
5723 (alpha_expand_epilogue): Ditto.
5725 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
5727 PR tree-optimization/48290
5728 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5729 vectorization, check that relevant phis in the basic block after
5730 the inner loop are really inner loop's exit phis.
5732 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5735 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5736 (cached_dw_loc_list_def): New structure.
5737 (cached_dw_loc_list): New typedef.
5738 (cached_dw_loc_list_table): New variable.
5739 (cached_dw_loc_list_table_hash): New function.
5740 (cached_dw_loc_list_table_eq): Likewise.
5741 (add_location_or_const_value_attribute): Take a bool cache_p.
5742 Cache the list when the parameter is true.
5743 (gen_formal_parameter_die): Update caller.
5744 (gen_variable_die): Likewise.
5745 (dwarf2out_finish): Likewise.
5746 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5747 while generating debug info for the decl.
5748 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5749 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5750 (resolve_addr): Cache the result of resolving a chain of
5753 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
5755 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5756 conflict object hard regset nodes have intersecting hard reg sets.
5758 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5759 after regstat_init_n_sets_and_refs.
5761 * ira.c: Add more comments at the top.
5762 (setup_stack_reg_pressure_class, setup_pressure_classes):
5763 Add comments how we compute the register pressure classes.
5764 (setup_allocno_and_important_classes): Add more comments.
5765 (setup_class_translate_array, reorder_important_classes)
5766 (setup_reg_class_relations): Add comments.
5768 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
5771 * ira-color.c: Add 2011 to the Copyright line.
5772 (assign_hard_reg): Add more comments.
5773 (improve_allocation): Ditto.
5775 * ira-costs.c: Add 2011 to the Copyright line.
5776 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5778 (setup_regno_cost_classes_by_mode): Ditto.
5780 Initial patches from ira-improv branch:
5782 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5784 * ira-build.c (ira_create_object): Remove initialization of
5785 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
5786 (ira_create_allocno): Remove initialization of
5787 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5788 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5789 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5790 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5791 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5792 Initialize ALLOCNO_ADD_DATA.
5793 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5794 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5796 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
5797 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5799 * ira.c (ira_reallocate): Remove.
5800 (setup_pressure_classes): Call
5801 ira_init_register_move_cost_if_necessary. Use
5802 ira_register_move_cost instead of ira_get_register_move_cost.
5803 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5804 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5806 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5807 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5808 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5809 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5810 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5811 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5813 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
5814 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5815 (struct allocno_color_data): New.
5816 (allocno_color_data_t): New typedef.
5817 (allocno_color_data): New definition.
5818 (ALLOCNO_COLOR_DATA): New macro.
5819 (struct object_color_data): New.
5820 (object_color_data_t): New typedef.
5821 (object_color_data): New definition.
5822 (OBJECT_COLOR_DATA): New macro.
5823 (update_copy_costs, calculate_allocno_spill_cost): Call
5824 ira_init_register_move_cost_if_necessary. Use
5825 ira_register_move_cost instead of ira_get_register_move_cost.
5826 (move_spill_restore, update_curr_costs): Ditto.
5827 (allocno_spill_priority): Make it inline.
5828 (color_pass): Allocate and free allocno_color_dat and object_color_data.
5829 (struct coalesce_data, coalesce_data_t): New.
5830 (allocno_coalesce_data): New definition.
5831 (ALLOCNO_COALESCE_DATA): New macro.
5832 (merge_allocnos, coalesced_allocno_conflict_p): Use
5833 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
5834 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
5835 (coalesce_allocnos): Ditto.
5836 (setup_coalesced_allocno_costs_and_nums): Ditto.
5837 (collect_spilled_coalesced_allocnos): Ditto.
5838 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
5839 (setup_slot_coalesced_allocno_live_ranges): Ditto.
5840 (coalesce_spill_slots): Ditto.
5841 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
5842 free allocno_coalesce_data.
5844 * ira-conflicts.c: Fix formatting.
5845 (process_regs_for_copy): Call
5846 ira_init_register_move_cost_if_necessary. Use
5847 ira_register_move_cost instead of ira_get_register_move_cost.
5848 (build_object_conflicts): Optimize.
5850 * ira-costs.c (record_reg_classes): Optimize. Call
5851 ira_init_register_move_cost_if_necessary. Use
5852 ira_register_move_cost, ira_may_move_in_cost, and
5853 ira_may_move_out_cost instead of ira_get_register_move_cost and
5854 ira_get_may_move_cost.
5855 (record_address_regs): Ditto.
5856 (scan_one_insn): Optimize.
5857 (find_costs_and_classes): Optimize.
5858 (process_bb_node_for_hard_reg_moves): Call
5859 ira_init_register_move_cost_if_necessary. Use
5860 ira_register_move_cost instead of ira_get_register_move_cost.
5862 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
5863 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
5864 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
5865 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
5867 (ira_initiate_emit_data, ira_finish_emit_data)
5868 (create_new_allocno): New functions.
5869 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
5870 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
5871 Use ira_register_move_cost instead of ira_get_register_move_cost.
5873 * ira-int.h: Fix some comments.
5874 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
5875 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5876 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
5877 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
5879 (struct ira_allocno): Make mode and aclass a bitfield. Move other
5880 bitfield after mode. Make hard_regno a short int. Make
5881 hard_regno short. Remove first_coalesced_allocno and
5882 next_coalesced_allocno. Move mem_optimized_dest_p,
5883 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
5884 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
5885 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
5886 temp, colorable_p. Add new member add_data.
5887 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
5888 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
5889 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
5890 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
5891 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
5892 (ALLOCNO_ADD_DATA): New macro.
5893 (ira_emit_data_t): New typedef.
5894 (struct ira_emit_data): New. Move mem_optimized_dest_p,
5895 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
5896 from struct ira_allocno.
5897 (ALLOCNO_EMIT_DATA): New macro.
5898 (ira_allocno_emit_data, allocno_emit_reg): New.
5899 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
5900 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
5901 (OBJECT_ADD_DATA): New macro.
5902 (ira_reallocate): Remove.
5903 (ira_initiate_emit_data, ira_finish_emit_data): New.
5904 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
5905 (ira_init_register_move_cost_if_necessary): New.
5906 (ira_object_conflict_iter_next): Merge into
5907 ira_object_conflict_iter_cond.
5908 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
5910 * ira-live.c (process_single_reg_class_operands): Call
5911 ira_init_register_move_cost_if_necessary. Use
5912 ira_register_move_cost instead of ira_get_register_move_cost.
5914 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5916 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
5918 * ira-costs.c: Fix formatting.
5919 (cost_classes, cost_classes_num): Remove.
5920 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
5921 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
5922 (cost_classes_del, cost_classes_htab): New.
5923 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
5924 (initiate_regno_cost_classes, setup_cost_classes): New.
5925 (setup_regno_cost_classes_by_aclass): New.
5926 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
5927 (record_reg_classes): Use regno_cost_classes instead of
5928 cost_classes. Move checking opposite operand up.
5929 (record_address_regs): Use regno_cost_classes
5930 instead of cost_classes.
5931 (scan_one_insn): Ditto. Use always general register.
5932 (print_allocno_costs): Use regno_cost_classes instead of
5934 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
5935 (find_costs_and_classes): Set up cost classes for each registers.
5936 Use also their mode for this. Use regno_cost_classes instead of
5938 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
5940 (free_ira_costs, ira_init_costs): Don't use cost_classes.
5941 (ira_costs, ira_set_pseudo_classes): Call
5942 initiate_regno_cost_classes and finish_regno_cost_classes.
5944 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
5946 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
5948 * target.def (ira_cover_classes): Remove.
5950 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
5952 * doc/tm.texi.in: Ditto.
5954 * ira-conflicts.c: Remove mentioning cover classes from the file.
5955 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
5956 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
5958 * targhooks.c (default_ira_cover_classes): Remove.
5960 * targhooks.h (default_ira_cover_classes): Ditto.
5962 * haifa-sched.c: Remove mentioning cover classes from the file.
5963 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5964 ira_pressure_classes and ira_pressure_classes_num instead of
5965 ira_reg_class_cover_size and ira_reg_class_cover. Use
5966 sched_regno_pressure_class instead of sched_regno_cover_class.
5967 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
5968 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5970 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
5971 classes from the file.
5972 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
5973 (struct object_hard_regs, struct object_hard_regs_node): New.
5974 (struct ira_object): New members profitable_hard_regs,
5975 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
5976 (struct ira_allocno): Rename cover_class to aclass. Rename
5977 cover_class_cost and updated_cover_class_cost to class_cost and
5978 updated_class_cost. Remove splay_removed_p and
5979 left_conflict_size. Add new members colorable_p.
5980 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
5981 (ALLOCNO_COLORABLE_P): New macro.
5982 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
5983 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
5984 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
5985 (OBJECT_...): Rename parameter C to O.
5986 (OBJECT_PROFITABLE_HARD_REGS): New macro.
5987 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
5988 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
5989 (struct target_ira_int): New members x_ira_max_memory_move_cost,
5990 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
5991 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
5992 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
5993 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
5994 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
5995 x_ira_reg_class_subunion.
5996 (ira_max_memory_move_cost, ira_max_register_move_cost)
5997 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
5998 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
5999 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6000 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6001 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6002 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6003 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6004 (ira_tune_allocno_costs_and_cover_classes): Rename to
6005 ira_tune_allocno_costs.
6006 (ira_debug_hard_regs_forest): New.
6007 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6008 (ira_object_conflict_iter_next): Fix comments.
6009 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6010 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6011 cover_class to aclass.
6012 (ira_allocate_and_accumulate_costs): Ditto.
6013 (ira_allocate_and_set_or_copy_costs): Ditto.
6015 * opts.c (decode_options): Remove ira_cover_class check.
6017 * ira-color.c: Remove mentioning cover classes from the file. Use
6018 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6019 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6020 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6021 (splay-tree.h): Remove include.
6022 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6023 before copy_freq_compare_func.
6024 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6025 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6027 (hard_regs_roots, hard_regs_node_vec): Ditto.
6028 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6029 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6030 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6031 (create_new_object_hard_regs_node): Ditto.
6032 (add_new_object_hard_regs_node_to_forest): Ditto.
6033 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6034 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6036 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6037 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6038 (remove_unused_object_hard_regs_nodes): Ditto.
6039 (enumerate_object_hard_regs_nodes): Ditto.
6040 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6041 (object_hard_regs_subnode_t): Ditto.
6042 (struct object_hard_regs_subnode): Ditto.
6043 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6044 (setup_object_hard_regs_subnode_index): Ditto.
6045 (get_object_hard_regs_subnodes_num): Ditto.
6046 (form_object_hard_regs_nodes_forest): Ditto.
6047 (finish_object_hard_regs_nodes_tree): Ditto.
6048 (finish_object_hard_regs_nodes_forest): Ditto.
6049 (allocnos_have_intersected_live_ranges_p): Rename to
6050 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6051 (pseudos_have_intersected_live_ranges_p): Rename to
6052 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6053 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6054 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6055 (update_copy_costs): Remove assert. Skip cost update if the hard
6056 reg does not belong the class.
6057 (assign_hard_reg): Process only profitable hard regs.
6058 (uncolorable_allocnos_num): Make it scalar.
6059 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6060 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6061 and ira_reg_class_max_nregs.
6062 (bucket_allocno_compare_func): Check frequency first.
6063 (sort_bucket): Add compare function as a parameter.
6064 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6065 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6066 (push_allocno_to_stack): Rewrite for checking new allocno
6068 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6069 (push_only_colorable): Pass new parameter to sort_bucket.
6070 (push_allocno_to_spill): Remove.
6071 (allocno_spill_priority_compare): Make it inline and rewrite.
6072 (splay_tree_allocate, splay_tree_free): Remove.
6073 (allocno_spill_sort_compare): New function.
6074 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6075 build and use splay tree. Choose first allocno in uncolorable
6076 allocno bucket to spill. Remove setting spill cost.
6077 (all_conflicting_hard_regs): Remove.
6078 (setup_allocno_available_regs_num): Check only profitable hard
6079 regs. Print info about hard regs nodes.
6080 (setup_allocno_left_conflicts_size): Remove.
6081 (put_allocno_into_bucket): Don't call
6082 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6083 (improve_allocation): New.
6084 (color_allocnos): Call setup_profitable_hard_regs,
6085 form_object_hard_regs_nodes_forest, improve_allocation,
6086 finish_object_hard_regs_nodes_forest. Setup spill cost.
6087 (print_loop_title): Use pressure classes.
6088 (color_allocnso): Ditto.
6089 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6090 and allocnos_for_spilling.
6091 (ira_sort_regnos_for_alter_reg): Don't setup members
6092 {first,next}_coalesced_allocno.
6093 (color): Remove allocating and freeing removed_splay_allocno_vec.
6094 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6095 prohibited_class_mode_regs.
6097 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6099 (update_allocno_pressure_excess_length): Use pressure classes.
6100 (inc_register_pressure, dec_register_pressure): Check for pressure
6102 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6103 pressure class. Use ira_reg_class_nregs instead of
6104 ira_reg_class_max_nregs.
6105 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6106 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6107 (single_reg_class): Use ira_reg_class_nregs instead of
6108 ira_reg_class_max_nregs.
6109 (process_bb_node_lives): Use pressure classes.
6111 * ira-emit.c: Remove mentioning cover classes from the file. Use
6112 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6113 (change_loop): Use pressure classes.
6114 (modify_move_list): Call ira_set_allocno_class instead of
6115 ira_set_allocno_cover_class.
6117 * ira-build.c: Remove mentioning cover classes from the file. Use
6118 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6119 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6120 ALLOCNO_UPDATED_CLASS_COST instead of
6121 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6122 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6123 (ira_create_allocno): Remove initialization of
6124 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6125 ALLOCNO_COLORABLE_P.
6126 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6127 Update conflict regs for the objects.
6128 (create_cap_allocno): Remove assert. Don't propagate
6129 ALLOCNO_AVAILABLE_REGS_NUM.
6130 (ira_free_allocno_costs): New function.
6131 (finish_allocno): Change a part of code into call of
6132 ira_free_allocno_costs.
6133 (low_pressure_loop_node_p): Use pressure classes.
6134 (object_range_compare_func): Don't compare classes.
6135 (setup_min_max_conflict_allocno_ids): Ditto.
6137 * loop-invariant.c: Remove mentioning cover classes from the file.
6138 Use ira_pressure_classes and ira_pressure_classes_num instead of
6139 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6140 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6141 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6142 Use reg_allocno_class instead of reg_cover_class.
6143 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6144 STACK_REG_COVER_CLASS.
6145 (get_regno_cover_class): Rename to get_regno_pressure_class.
6146 (move_loop_invariants): Initialize and finalize regstat.
6148 * ira.c: Remove mentioning cover classes from the file. Add
6149 comments about coloring without cover classes. Use ALLOCNO_CLASS
6150 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6151 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6152 setup_class_subset_and_memory_move_costs.
6153 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6154 (setup_cover_and_important_classes): Rename to
6155 setup_allocno_and_important_classes.
6156 (setup_class_translate_array): New.
6157 (setup_class_translate): Call it for allocno and pressure classes.
6158 (cover_class_order): Rename to allocno_class_order.
6159 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6160 of ira_class_translate.
6161 (reorder_important_classes): Set up ira_important_class_nums.
6162 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6163 (print_class_cover): Rename to print_classes. Add parameter.
6164 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6165 Print pressure classes too.
6166 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6167 setup_reg_subclasses.
6168 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6169 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6170 (setup_prohibited_class_mode_regs): Use
6171 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6172 (clarify_prohibited_class_mode_regs): New function.
6173 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6174 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6175 (ira_init_once): Initialize them.
6176 (free_register_move_costs): Process them.
6177 (ira_init): Move calls of find_reg_classes and
6178 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6179 Call clarify_prohibited_class_mode_regs.
6180 (ira_no_alloc_reg): Remove.
6181 (too_high_register_pressure_p): Use pressure classes.
6183 * sched-deps.c: Remove mentioning cover classes from the file.
6184 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6185 ira_pressure_classes and ira_pressure_classes_num instead of
6186 ira_reg_class_cover_size and ira_reg_class_cover.
6187 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6188 sched_regno_pressure_class instead of sched_regno_cover_class.
6189 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6190 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6192 * ira.h: Add 2010 to Copyright.
6193 (ira_no_alloc_reg): Remove external.
6194 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6195 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6196 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6197 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6198 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6199 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6200 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6201 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6202 x_ira_no_alloc_regs.
6203 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6204 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6205 ira_allocno_classes_num and ira_allocno_classes.
6206 (ira_class_translate): Rename to ira_allocno_class_translate.
6207 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6208 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6209 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6210 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6211 (ira_no_alloc_regs): New.
6213 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6214 classes from the file. Use ALLOCNO_CLASS instead of
6215 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6216 ALLOCNO_COVER_CLASS_COST.
6217 (regno_cover_class): Rename to regno_aclass.
6218 (record_reg_classes): Use ira_reg_class_subunion instead of
6219 ira_reg_class_union.
6220 (record_address_regs): Check overflow.
6221 (scan_one_insn): Ditto.
6222 (print_allocno_costs): Print total mem cost fore regional allocation.
6223 (print_pseudo_costs): Use REG_N_REFS.
6224 (find_costs_and_classes): Use classes intersected with them on the
6225 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6226 ira_reg_class_union. Use ira_allocno_class_translate and
6227 regno_aclass instead of ira_class_translate and regno_cover_class.
6228 Modify code for finding regno_aclass. Setup preferred classes for
6230 (setup_allocno_cover_class_and_costs): Rename to
6231 setup_allocno_class_and_costs. Use regno_aclass instead of
6232 regno_cover_class. Use ira_set_allocno_class instead of
6233 ira_set_allocno_cover_class.
6234 (init_costs, finish_costs): Use regno_aclass instead of
6236 (ira_costs): Use setup_allocno_class_and_costs instead of
6237 setup_allocno_cover_class_and_costs.
6238 (ira_tune_allocno_costs_and_cover_classes): Rename to
6239 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6240 by processing objects. Use ira_reg_class_max_nregs instead of
6241 ira_reg_class_nregs.
6243 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6245 * sched-int.h: Remove mentioning cover classes from the file.
6246 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6248 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6249 classes from the file.
6250 (struct reg_pref): Rename coverclass into allocnoclass.
6251 (reg_cover_class): Rename to reg_allocno_class.
6253 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6255 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6257 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6259 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6261 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6263 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6265 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6267 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6269 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6271 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6273 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6274 (i386_ira_cover_classes): Ditto.
6276 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6278 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6280 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6282 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6284 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6286 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6288 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6289 (mips_ira_cover_classes): Ditto.
6291 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6293 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6295 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6297 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6299 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6301 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6302 (IRA_COVER_CLASSES_VSX): Ditto.
6304 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6305 (rs6000_ira_cover_classes): Ditto.
6307 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6309 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6311 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6313 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6315 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6317 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6319 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6321 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6323 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6325 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6327 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6330 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6331 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6332 dw_fde_unlikely_section_end_label, cold_in_std_section,
6333 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6334 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6336 (output_fde): Use dw_fde_second_{begin,end} if second is
6337 true, otherwise dw_fde_{begin,end}.
6338 (output_call_frame_info): Test dw_fde_second_begin != NULL
6339 instead of dw_fde_switched_sections.
6340 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6341 fields, initialize new fields. Initialize in_std_section
6342 unconditionally from the first partition.
6343 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6344 dw_fde_second_begin is non-NULL.
6345 (dwarf2out_switch_text_section): Stop initializing removed
6346 dw_fde_struct fields, initialize new fields, initialize
6347 also dw_fde_end here. Set dw_fde_switch_cfi even when
6348 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6349 (struct var_loc_list_def): Add last_before_switch field.
6350 (arange_table, arange_table_allocated, arange_table_in_use,
6351 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6352 (size_of_aranges): Count !in_std_section and !second_in_std_section
6353 hunks in fdes, instead of looking at arange_table_in_use.
6354 (output_aranges): Add aranges_length argument, don't call
6355 size_of_aranges here. Instead of using aranges_table*
6356 emit ranges for fdes when !in_std_section resp.
6357 !second_in_std_section.
6358 (dw_loc_list): Break ranges crossing section switch.
6359 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6360 use dw_fde_second_end instead of dw_fde_end as end of last range.
6361 (gen_subprogram_die): Don't call add_arange. Use
6362 dw_fde_{begin,end} for first partition and if switched
6363 section dw_fde_second_{begin,end} for the second.
6364 (var_location_switch_text_section_1,
6365 var_location_switch_text_section): New functions.
6366 (dwarf2out_begin_function): Initialize cold_text_section even
6367 when function_section () isn't text_section.
6368 (prune_unused_types): Don't walk arange_table.
6369 (dwarf2out_finish): Don't needlessly test
6370 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6371 If info_section_emitted, call size_of_aranges and if it indicates
6372 non-empty .debug_aranges, call output_aranges with the computed
6373 size. Stop using removed dw_fde_struct fields, use
6374 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6378 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6379 create ENTRY_VALUE if incoming or address of incoming's MEM
6381 * dwarf2out.c (mem_loc_descriptor): Don't emit
6382 DW_OP_GNU_entry_value of DW_OP_fbreg.
6383 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6384 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6385 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6386 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6388 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6389 is a REG_P or MEM_P with REG_P address, compute hash directly
6390 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6391 (preserve_only_constants): Don't clear VALUES forwaring
6392 ENTRY_VALUE to some other VALUE.
6394 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6396 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6399 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6401 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6402 block before expanding the statement.
6403 (expand_gimple_stmt_1): Likewise. Set them here...
6404 (expand_gimple_stmt): ...and not here. Tidy.
6405 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6408 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6410 * Makefile.in: New rule for cprop.o.
6411 * gcse.c: Move constant/copy propagation to cprop.c.
6412 (compute_local_properties): Only handle expression tables.
6413 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6414 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6415 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6416 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6417 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6418 compute_cprop_data, find_used_regs, try_replace_reg,
6419 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6420 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6421 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6422 find_bypass_set, reg_killed_on_edge, bypass_block,
6423 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6424 execute_rtl_cprop, pass_rtl_cprop): Move to...
6425 * cprop.c: ...here. New file, constant/copy propagation for RTL
6426 moved from gcse.c to here with minor cleanups in duplicated code.
6428 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6430 * config/i386/i386.c (flag_opts): Fix a typo in
6431 -mavx256-split-unaligned-store.
6433 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6435 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6436 LIBCALL_VALUE): Remove macros.
6437 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6438 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6439 (h8300_function_value, h8300_libcall_value,
6440 h8300_function_value_regno_p): New functions.
6442 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6444 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6446 2011-03-28 Jeff Law <law@redhat.com>
6448 * tree-ssa-threadupdate.c (redirect_edges): Call
6449 create_edge_and_update_destination_phis as needed.
6450 (create_edge_and_update_destination_phis): Accept new BB argument.
6451 All callers updated.
6452 (thread_block): Do not update the profile when threading around
6453 intermediate blocks.
6454 (thread_single_edge): Likewise.
6455 (determine_bb_domination_status): If BB is not a successor of the
6456 loop header, return NONDOMINATING.
6457 (register_jump_thread): Note when we register a jump thread around
6458 an intermediate block.
6459 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6460 (thread_across_edge): Use it.
6462 2011-03-28 Tristan Gingold <gingold@adacore.com>
6464 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6465 when for_return is 2.
6467 2011-03-28 Jeff Law <law@redhat.com>
6469 * var-tracking.c (canonicalize_values_mark): Delete unused
6471 (canonicalize_values_star, set_variable_part): Likewise.
6472 (clobber_variable_part, delete_variable_part): Likewise.
6474 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6476 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6478 2011-03-28 Martin Jambor <mjambor@suse.cz>
6480 * tree-inline.c (expand_call_inline): Do not check that destination
6482 (optimize_inline_calls): Assert that destination node is analyzed.
6483 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6484 not call tree_lowering_passes.
6485 * cgraph.h (cgraph_analyze_function): Declare.
6486 * cgraphunit.c (cgraph_analyze_function): Make public.
6488 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6490 * config/sparc/sparc-opts.h: New.
6491 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6492 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6493 (sparc_option_override): Store processor_type enumeration rather
6494 than string in cpu_default. Remove name and enumeration from
6495 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6496 without using sparc_select. Use target_flags_explicit instead of
6498 * config/sparc/sparc.h (enum processor_type): Move to
6500 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6501 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6502 HeaderInclude entry.
6503 (mcpu=, mtune=): Use Var and Enum.
6504 (sparc_processor_type): New Enum and EnumValue entries.
6506 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6507 Iain Sandoe <iains@gcc.gnu.org>
6510 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6512 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6514 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6515 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6516 Insert new statements at it in lieu of STMT.
6517 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6518 * tree-vect-stmts.c (vectorizable_store): Likewise.
6519 (vectorizable_load): Likewise.
6521 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6523 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6528 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6530 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6531 unaligned 256bit load/store.
6532 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6533 (*avx_movdqu<avxmodesuffix>): Likewise.
6535 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6538 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6539 * config/pa/pa.md (iordi3): Use new predicate in expander.
6542 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6544 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6545 FUNCTION_VALUE_REGNO_P): Remove macros.
6546 * config/mips/mips-protos.h (mips_function_value): Remove.
6547 * config/mips/mips.c (mips_function_value): Rename to...
6548 (mips_function_value_1): ... this. Make static. Handle receiving
6549 the function type in 'fn_decl_or_type' argument.
6550 (mips_function_value, mips_libcall_value,
6551 mips_function_value_regno_p): New function.
6552 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6553 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6555 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6557 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6558 and -mavx256-split-unaligned-store.
6559 (ix86_option_override_internal): Split 32-byte AVX unaligned
6560 load/store by default.
6561 (ix86_avx256_split_vector_move_misalign): New.
6562 (ix86_expand_vector_move_misalign): Use it.
6564 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6565 -mavx256-split-unaligned-store.
6567 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6568 256bit load/store. Generate unaligned store on misaligned memory
6570 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6572 (*avx_movdqu<avxmodesuffix>): Likewise.
6574 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6575 -mavx256-split-unaligned-store.
6577 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6580 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6583 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6585 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6586 opno arguments with an expand_operand. Use create_input_operand.
6587 (mips_prepare_builtin_target): Delete.
6588 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6590 (mips_expand_builtin_direct): Use create_output_operand and
6591 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6592 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6593 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6595 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
6597 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6599 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6601 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6603 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6604 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6605 basic blocks and call commit_edge_insertions directly.
6606 (fixup_abnormal_edges): Move from here to...
6607 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6608 on the edges and return whether some have actually been inserted.
6609 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6612 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
6614 PR rtl-optimization/48144
6615 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6616 (merge_expr_data): ... here.
6617 (av_set_intersect): Rename to av_set_code_motion_filter.
6618 Update all callers. Call merge_history_vect when an expression
6619 is found in both sets.
6620 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6622 2011-03-26 Alan Modra <amodra@gmail.com>
6624 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6625 cmodel medium addresses.
6626 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6627 64-bit gpr loads and stores.
6628 (rs6000_secondary_reload_ppc64): New function.
6629 * config/rs6000/rs6000-protos.h: Declare it.
6630 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6632 2011-03-26 Alan Modra <amodra@gmail.com>
6635 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6636 GNU Go in traceback table.
6638 2011-03-25 Richard Henderson <rth@redhat.com>
6640 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6641 if there are exactly 6 operands.
6642 (set_storage_via_setmem): Similarly.
6644 2011-03-25 Kai Tietz <ktietz@redhat.com>
6646 * collect2.c (write_c_file_stat): Handle backslash
6647 as right-hand directory separator.
6648 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6649 checking just for slash.
6650 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6651 instead of checking for trailing slash.
6652 * gcc.c (record_temp_file): Use filename_cmp instead
6654 (do_spec_1): Likewise.
6655 (replace_outfile_spec_function): Likewise.
6656 (is_directory): Use filename_ncmp instead of strncmp.
6657 (print_multilib_info): Likewise.
6658 * gcov.c (find_source): Use filename_cmp instead
6660 (make_gcov_file_name): Fix order of slash/backslash
6662 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6663 (add_standard_paths): Likewise.
6664 * mips-tfile.c (saber_stop): Handle backslash.
6665 * prefix.c (update_path): Use filename_ncmp instead of
6667 * profile.c (output_location): Use filename_cmp instead
6669 * read-md.c (handle_toplevel_file): Handle backslash.
6670 * tlink.c (frob_extension): Likewise.
6671 * tree-cfg.c (same_line_p): Use filename_cmp instead of
6673 * tree-dump.c (dequeue_and_dump): Handle backslash.
6674 * tree.c (get_file_function_name): Likewise.
6675 * gengtype.c (read_input_list): Likewise.
6676 (get_file_realbasename): Likewise.
6677 (get_output_file_with_visibility): Use filename_cmp
6680 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
6682 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6685 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6687 * fold-const.c (expr_location_or): New function.
6688 (fold_truth_not_expr): Call it.
6690 2011-03-25 Jeff Law <law@redhat.com>
6692 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6694 * c-family/c-common.c (def_fn_type): Likewise.
6695 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6696 * emit-rtl.c (gen_rtvec): Likewise.
6697 * lto/lto-lang.c (def_fn_type): Likewise.
6699 2011-03-25 Richard Guenther <rguenther@suse.de>
6701 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6702 also generate copies.
6703 (fini_copy_prop): Handle constant values properly.
6705 2011-03-25 Jakub Jelinek <jakub@redhat.com>
6707 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6708 mode size instead of bitsize with DWARF2_ADDR_SIZE.
6709 (hash_loc_operands, compare_loc_operands): Handle
6710 DW_OP_GNU_entry_value.
6712 2011-03-25 Kai Tietz <ktietz@redhat.com>
6714 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6715 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6716 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6717 comment and use macro TARGET_64BIT_MS_ABI instead.
6718 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6719 and change default behavior for 32-bit MS_ABI.
6720 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6721 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6723 (ix86_cfun_abi): Likewise.
6724 (ix86_maybe_switch_abi): Adjust comment.
6725 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6726 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6727 instead of checking for SYSV_ABI.
6728 (ix86_nsaved_sseregs): Likewise.
6729 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6731 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6732 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6733 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6734 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6735 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6737 2011-03-25 Richard Guenther <rguenther@suse.de>
6739 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6740 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6741 (verify_gimple): Remove.
6742 * tree-cfg.c (verify_gimple_call): Merge verification
6744 (verify_gimple_phi): Merge verification from verify_stmts.
6745 (verify_gimple_label): New function.
6746 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6747 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6748 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6749 (verify_stmts): Rename to verify_gimple_in_cfg.
6750 (verify_gimple_in_cfg): New function.
6751 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6752 * tree-ssa.c (verify_ssa): Likewise.
6753 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6755 2011-03-25 Richard Guenther <rguenther@suse.de>
6757 * passes.c (init_optimization_passes): Add FRE pass after
6760 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
6761 Andrew Stubbs <ams@codesourcery.com>
6763 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6765 (arm_movdi_vfp_cortexa8): New pattern.
6766 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6767 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6768 instructions when tuning for Cortex-A8. Set attribute "arch".
6769 * config/arm/arm.md: Move include arm-tune.md up a bit.
6770 (define_attr "arch"): Add "onlya8" and "nota8" values.
6771 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6773 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6777 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6779 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6780 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6781 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6782 * passes.c (init_optimization_passes): Move
6783 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6785 2011-03-25 Kai Tietz <ktietz@redhat.com>
6787 * c-typeck.c (comptypes_internal): Replace target
6788 hook call of comp_type_attributes by version in tree.c file.
6789 * gimple.c (gimple_types_compatible_p_1): Likewise.
6790 * tree-ssa.c (useless_type_conversion_p): Likewise.
6791 * tree.c (build_type_attribute_qual_variant): Likewise.
6792 (attribute_value_equal): New static helper function.
6793 (comp_type_attributes): New function.
6794 (merge_attributes): Use attribute_value_equal for comparison.
6795 (attribute_list_contained): Likewise.
6796 * tree.h (comp_type_attributes): New prototype.
6798 2011-03-25 Richard Guenther <rguenther@suse.de>
6800 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6801 of complex types at -O0.
6802 (verify_gimple_assign_binary): Likewise.
6803 (verify_gimple_assign_ternary): Likewise.
6805 2011-03-24 Mark Wielaard <mjw@redhat.com>
6807 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6808 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6810 2011-03-24 Mark Wielaard <mjw@redhat.com>
6813 * dwarf2out.c (output_abbrev_section): Only write table when
6814 abbrev_die_table_in_use > 1.
6816 2011-02-24 Richard Henderson <rth@redhat.com>
6818 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
6819 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
6820 (alpha_expand_unaligned_load_words): Use extql.
6821 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
6822 (emit_insxl): Handle all modes for consistency.
6824 2011-02-24 Richard Henderson <rth@redhat.com>
6826 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
6827 (alpha_expand_unaligned_load): Likewise.
6828 (alpha_expand_unaligned_store): Likewise.
6829 (alpha_expand_unaligned_load_words): Likewise.
6830 (alpha_expand_unaligned_store_words): Likewise.
6831 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
6832 (alpha_split_lock_test_and_set_12): Likewise.
6833 (print_operand, alpha_fold_builtin_extxx): Likewise.
6834 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
6835 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
6836 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
6837 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
6838 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
6839 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
6840 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
6841 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
6842 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
6843 (extwl, extll, extql): Similarly.
6844 (inswh, inslh, insqh): Similarly.
6845 (mskbl, mskwl, mskll, mskql): Similarly.
6846 (mskwh, msklh, mskqh): Similarly.
6848 2011-02-24 Richard Henderson <rth@redhat.com>
6850 * config/alpha/alpha.md (attribute isa): Add er, ner.
6851 (attribute enabled): Handle them.
6852 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
6854 2011-02-24 Richard Henderson <rth@redhat.com>
6856 * config/alpha/alpha.md (attribute isa): Add vms.
6857 (attribute enabled): Handle it.
6858 (*movsf): Merge *movsf_{nofix,fix,nofp}.
6859 (*movdf): Merge *movdf_{nofix,fix,nofp}.
6860 (*movtf): Rename from *movtf_internal for consistency.
6861 (*movsi): Merge with *movsi_nt_vms.
6862 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
6863 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
6864 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
6865 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
6867 2011-02-24 Richard Henderson <rth@redhat.com>
6869 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
6870 (extendqisi2, extendhisi2): Likewise.
6871 (extendqidi2): Simplify BWX/non-BWX expansions.
6872 (extendhidi2): Similarly.
6874 2011-02-24 Richard Henderson <rth@redhat.com>
6876 * config/alpha/alpha.md (attribute isa): New.
6877 (attribute enabled): New.
6878 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
6879 (zero_extendqisi2, zero_extendqidi2): Similarly.
6880 (zero_extendhisi2, zero_extendhidi2): Similarly.
6881 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
6883 2011-02-24 Richard Henderson <rth@redhat.com>
6885 * config/alpha/predicates.md (input_operand): Revert last change;
6886 update comment to mention 32-bit VMS rather than Windows.
6888 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6890 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6891 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6892 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6893 * passes.c (init_optimization_passes): Move
6894 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6896 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6898 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
6900 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6902 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
6905 2011-03-24 Jakub Jelinek <jakub@redhat.com>
6908 * simplify-rtx.c (simplify_const_unary_operation): Call
6909 real_convert when changing mode class with FLOAT_EXTEND.
6911 2011-03-24 Nick Clifton <nickc@redhat.com>
6913 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
6914 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6915 * config/rx/rx.c (rx_option_override): Set align_jumps,
6916 align_loops and align_labels if not set by the user.
6917 (rx_align_for_label): New function.
6918 (rx_max_skip_for_label): New function.
6919 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
6920 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
6921 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
6922 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
6923 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
6925 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6927 PR rtl-optimization/48263
6928 * optabs.c (expand_binop_directly): Reinstate convert_modes code
6929 and original commutative_p handling. Use maybe_gen_insn.
6931 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6933 * reload.c (find_reloads_subreg_address): Add address_reloaded
6934 parameter and return true there if the full address has been
6936 (find_reloads_toplev): Pass address_reloaded flag.
6937 (find_reloads_address_1): Don't use address_reloaded parameter.
6939 2011-03-24 Jeff Law <law@redhat.com>
6941 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
6942 unused variable "ann".
6943 (remove_unused_locals): Likewise.
6945 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
6948 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
6951 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6953 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
6954 for invalid symbolic addresses.
6955 (s390_secondary_reload): Don't use s390_check_symref_alignment for
6958 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6960 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
6961 the argument in calls to fold_truth_not_expr.
6963 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6965 * tree.c (record_node_allocation_statistics): New function.
6966 (make_node_stat, copy_node_stat, build_string): Call it.
6967 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
6968 (build1_stat, build_omp_clause): Likewise.
6970 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6972 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
6975 2011-03-24 Richard Guenther <rguenther@suse.de>
6977 PR tree-optimization/48271
6978 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
6979 blocks that still exist.
6981 2011-03-24 Richard Guenther <rguenther@suse.de>
6983 PR tree-optimization/48270
6984 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
6985 not free datarefs before ddrs.
6987 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6989 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
6990 from the address built for a reference with variable offset.
6992 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6995 * config/i386/i386.md (*movdf_internal_rex64): Do not split
6996 alternatives that can be handled with movq or movabsq insn.
6997 (*movdf_internal): Disable for !TARGET_64BIT.
6998 (*movdf_internal_nointeger): Ditto.
6999 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7001 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7003 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7004 (FUNCTION_ARG_ADVANCE): Likewise.
7005 * tm.texi.in: Change references to them to hook references.
7006 * tm.texi: Regenerate.
7007 * targhooks.c (default_function_arg): Eliminate check for target macro.
7008 (default_function_incoming_arg): Likewise.
7009 (default_function_arg_advance): Likewise.
7010 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7011 (function_arg_advance): Likewise.
7012 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7014 2011-03-24 Richard Guenther <rguenther@suse.de>
7017 * tree-object-size.c (addr_object_size): Do not double-account
7018 for MEM_REF offsets.
7020 2011-03-24 Diego Novillo <dnovillo@google.com>
7022 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7023 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7024 (lto_input_data_block): Move from lto-opts.c. Make extern.
7026 (lto_input_string): Rename from input_string. Make extern.
7028 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7029 output_string_with_length.
7030 Output 0 to indicate a non-NULL string. Update all callers to
7032 (lto_output_string): Rename from output_string. Make extern.
7034 (lto_output_decl_state_streams): Make extern.
7035 (lto_output_decl_state_refs): Make extern.
7036 * lto-streamer.h (lto_input_string): Declare.
7037 (lto_input_data_block): Declare.
7038 (lto_output_string): Declare.
7039 (lto_output_string_with_length): Declare.
7040 (lto_output_decl_state_streams): Declare.
7041 (lto_output_decl_state_refs): Declare.
7043 2011-03-24 Richard Guenther <rguenther@suse.de>
7045 PR tree-optimization/46562
7046 * tree.c (build_invariant_address): New function.
7047 * tree.h (build_invariant_address): Declare.
7048 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7049 a renamed function moved ...
7050 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7051 Take valueization callback parameter.
7052 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7053 * gimple-fold.h: New file.
7054 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7055 (ccp_fold, fold_const_aggregate_ref,
7056 fold_ctor_reference, fold_nonarray_ctor_reference,
7057 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7058 get_base_constructor): Move ...
7059 * gimple-fold.c: ... here.
7060 (gimple_fold_stmt_to_constant_1): New function
7061 split out from ccp_fold. Take a valueization callback parameter.
7062 Valueize all operands.
7063 (gimple_fold_stmt_to_constant): New wrapper function.
7064 (fold_const_aggregate_ref_1): New function split out from
7065 fold_const_aggregate_ref. Take a valueization callback parameter.
7066 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7067 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7068 invariant POINTER_PLUS_EXPRs to invariant form.
7069 (vn_valueize): New function.
7070 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7071 * tree-vrp.c (vrp_valueize): New function.
7072 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7073 to fold statements to constants.
7074 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7075 function declarations.
7076 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7077 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7079 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7081 * config/h8300/predicates.md (jump_address_operand): Fix register
7084 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7086 * doc/invoke.texi (max-stores-to-sink): Document.
7087 * params.h (MAX_STORES_TO_SINK): Define.
7088 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7089 if either vectorization or if-conversion is disabled.
7090 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7091 tree-vect-data-refs.c vect_equal_offsets.
7092 (dr_equal_offsets_p): New function.
7093 (find_data_references_in_bb): Remove static.
7094 * tree-data-ref.h (find_data_references_in_bb): Declare.
7095 (dr_equal_offsets_p): Likewise.
7096 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7097 (vect_drs_dependent_in_basic_block): Update calls to
7099 (vect_check_interleaving): Likewise.
7100 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7101 (cond_if_else_store_replacement): Rename to...
7102 (cond_if_else_store_replacement_1): ... this. Change arguments and
7104 (cond_if_else_store_replacement): New function.
7105 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7106 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7108 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7111 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7112 to subtract lower bound instead of GEN_INT().
7114 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7119 * doc/extend.texi (Alignment): Move section to match order in TOC.
7120 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7121 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7123 2011-03-23 Jeff Law <law@redhat.com>
7125 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7126 before removing the edge.
7128 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7129 it may have been freed by redirect_branch_edge or
7130 redirect_edge_succ_nodup.
7132 2011-03-23 Richard Guenther <rguenther@suse.de>
7134 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7135 (check_va_list_escapes): Likewise.
7136 (check_all_va_list_escapes): Likewise.
7138 2011-03-23 Richard Guenther <rguenther@suse.de>
7140 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7141 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7142 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7143 (alias.o): Likewise.
7144 (ipa-type-escape.o): Remove.
7145 (ipa-struct-reorg.o): Likewise.
7146 (GTFILES): Remove ipa-struct-reorg.c.
7147 * alias.c: Do not include ipa-type-escape.h.
7148 * tree-ssa-alias.c: Likewise.
7149 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7150 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7151 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7152 and ipa-type-escape passes.
7153 * tree-pass.h (pass_ipa_type_escape): Remove.
7154 (pass_ipa_struct_reorg): Likewise.
7155 * ipa-struct-reorg.h: Remove.
7156 * ipa-struct-reorg.c: Likewise.
7157 * ipa-type-escape.h: Likewise.
7158 * ipa-type-escape.c: Likewise.
7159 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7160 (--param struct-reorg-cold-struct-ratio): Likewise.
7161 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7162 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7163 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7165 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7167 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7168 cpu attribute value.
7169 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7170 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7171 * config/s390/s390.c (processor_flags_table): New constant array.
7172 (s390_handle_arch_option): Remove.
7173 (s390_handle_option): Remove s390_handle_arch_option invocations
7174 and OPT_mwarn_framesize_ handling.
7175 (s390_option_override): Remove s390_handle_arch_option invocation.
7176 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7178 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7179 * config/s390/s390.opt (s390_tune, s390_arch)
7180 (march=): Replace s390_arch_option enum and values with
7181 processor_type. Set variable name to s390_arch. Set
7182 initialization value.
7183 (mtune=): Replace s390_arch_option with processor_type. Set
7184 variable name to s390_tune. Set initialization value.
7186 2011-03-23 Julian Brown <julian@codesourcery.com>
7188 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7189 accesses which are not naturally aligned.
7191 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7194 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7196 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7198 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7199 parameter from "int" to "enum insn_code".
7200 (expand_operand_type): New enum.
7201 (expand_operand): New structure.
7202 (create_expand_operand): New function.
7203 (create_fixed_operand, create_output_operand): Likewise
7204 (create_input_operand, create_convert_operand_to): Likewise.
7205 (create_convert_operand_from, create_address_operand): Likewise.
7206 (create_integer_operand): Likewise.
7207 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7208 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7209 (expand_insn, expand_jump_insn): Likewise.
7210 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7211 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7212 (expand_movstr, expand_builtin___clear_cache): Likewise.
7213 (expand_builtin_lock_release): Likewise.
7214 * explow.c (allocate_dynamic_stack_space): Likewise.
7215 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7216 and use the default handling in that case.
7217 * expmed.c (check_predicate_volatile_ok): Delete.
7218 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7219 (emit_cstore): Likewise.
7220 * expr.c (emit_block_move_via_movmem): Likewise.
7221 (set_storage_via_setmem, expand_assignment): Likewise.
7222 (emit_storent_insn, try_casesi): Likewise.
7223 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7224 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7225 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7226 (expand_twoval_unop, expand_twoval_binop): Likewise.
7227 (expand_unop_direct, emit_indirect_jump): Likewise.
7228 (emit_conditional_move, vector_compare_rtx): Likewise.
7229 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7230 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7231 (expand_sync_lock_test_and_set): Likewise.
7232 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7233 (emit_unop_insn): Likewise.
7234 (expand_copysign_absneg): Change icode to an insn_code.
7235 (create_convert_operand_from_type): New function.
7236 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7237 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7238 (expand_insn, expand_jump_insn): Likewise.
7239 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7240 than const_int_operand for operand 2.
7242 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7244 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7247 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7249 * emit-rtl.c (emit_pattern_before_noloc): New function.
7250 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7251 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7252 (emit_pattern_after_noloc): New function.
7253 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7254 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7256 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7258 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7259 (__ffsDI2): Likewise.
7261 2011-03-22 Richard Henderson <rth@redhat.com>
7263 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7264 of !TARGET_ABI_OPEN_VMS.
7265 (alpha_trampoline_init, alpha_start_function): Likewise.
7266 (alpha_expand_epilogue, alpha_file_start): Likewise.
7267 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7268 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7269 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7270 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7271 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7273 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7275 * config/s390/s390-opts.h: New.
7276 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7277 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7278 s390_stack_guard): Remove.
7279 (s390_handle_arch_option): Return void. Take enum
7280 s390_arch_option value instead of string and searching array.
7281 (s390_handle_option): Don't assert that global structures are in
7282 use. Access variables via opts pointer. Use error_at. Don't use
7283 sscanf for -mstack-guard= or -mstack-size=. Update call to
7284 s390_handle_arch_option.
7285 (s390_option_override): Update call to s390_handle_arch_option.
7286 (s390_emit_prologue): Use %d format for s390_stack_size in
7287 diagnostic. Use %wd for HOST_WIDE_INT.
7288 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7289 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7290 * config/s390/s390.opt (config/s390/s390-opts.h): New
7291 HeaderInclude entry.
7292 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7293 s390_arch_flags, s390_warn_framesize): New Variable entries.
7294 (s390_arch_option): New Enum and EnumValue entries.
7295 (march=): Use Enum instead of Var.
7296 (mstack-guard=, mstack-size=): Use UInteger and Var.
7299 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7301 * config/score/score.c (score_handle_option): Don't assert that
7302 global structures are in use. Access target_flags via opts
7303 pointer. Use value of -march= option to determine target_flags
7305 * config/score/score.opt (march=): Use Enum.
7306 (score_arch): New Enum and EnumValue entries.
7308 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7310 * config/mep/mep.c (option_mtiny_specified): Remove.
7311 (mep_option_override): Move register handling for -mivc2 from
7312 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7313 instead of option_mtiny_specified.
7314 (mep_handle_option): Access target_flags via opts pointer. Don't
7315 assert that global structures are in use. Defer part of -mivc2
7316 handling and move it to mep_option_override.
7317 * config/mep/mep.opt (IVC2): New Mask entry.
7318 (mivc2): Use Var and Defer instead of Mask.
7320 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7322 * config/v850/v850-opts.h: New.
7323 * config/v850/v850.c (small_memory): Replace with
7324 small_memory_physical_max array. Make that array static const.
7325 (v850_handle_memory_option): Take integer value of argument. Take
7326 gcc_options pointer, option text and location. Return void.
7327 Update for changes to small memory structures.
7328 (v850_handle_option): Access target_flags via opts pointer. Don't
7329 assert that global structures are in use. Update calls to
7330 v850_handle_memory_option.
7331 (v850_encode_data_area): Update references to small memory settings.
7332 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7333 (enum small_memory_type): Move to v850-opts.h.
7334 * config/v850/v850.opt (config/v850/v850-opts.h): New
7335 HeaderInclude entry.
7336 (small_memory_max): New Variable entry.
7337 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7338 (mtda, mzda): Likewise.
7340 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7342 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7343 pointer. Don't assert that global structures are in use.
7345 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7347 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7348 via opts pointer. Don't assert that global structures are in use.
7350 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7352 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7353 (munix=93): Use Var.
7354 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7355 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7356 * config/pa/pa-opts.h: New.
7357 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7358 (pa_handle_option): Don't assert that global structures are in
7359 use. Access target_flags via opts pointer. Don't handle
7360 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7362 (pa_option_override): Handle deferred OPT_mfixed_range_.
7364 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7366 * config/mn10300/mn10300-opts.h: New.
7367 * config/mn10300/mn10300.c (mn10300_processor,
7368 mn10300_tune_string): Remove.
7369 (mn10300_handle_option): Don't assert that global structures are
7370 in use. Access mn10300_processor via opts pointer. Don't handle
7372 * config/mn10300/mn10300.h (enum processor_type): Move to
7374 (mn10300_processor): Remove.
7375 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7376 HeaderInclude entry.
7377 (mn10300_processor): New Variable entry.
7380 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7382 * config/microblaze/microblaze.c: Don't include opts.h.
7383 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7384 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7385 (mno-clearbss): Use Var and Warn.
7387 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7389 * config/m32r/m32r-opts.h: New.
7390 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7391 (m32r_handle_option): Don't assert that global structures are in
7392 use. Access target_flags and m32r_cache_flush_func via opts
7393 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7394 OPT_mno_flush_trap here.
7395 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7396 include of m32r-opts.h.
7397 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7398 HeaderInclude entry.
7399 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7400 (mmodel=): Use Enum and Var.
7401 (m32r_model): New Enum and EnumValue entries.
7402 (mno-flush-trap): Use Var.
7403 (msdata=): Use Enum and Var.
7404 (m32r_sdata): New Enum and EnumValue entries.
7406 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7408 * config/m32c/m32c.c: Don't include opts.h.
7409 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7410 m32c_handle_option): Remove.
7411 (m32c_option_override): Check global_options_set.x_target_memregs
7412 instead of target_memregs_set.
7413 * config/m32c/m32c.h (target_memregs): Remove.
7414 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7417 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7419 * config/iq2000/iq2000-opts.h: New.
7420 * config/iq2000/iq2000.c: Don't include opts.h.
7421 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7422 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7423 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7424 HeaderInclude entry.
7425 (iq2000_tune): New Variable entry.
7426 (march=): Add comment. Use Enum.
7427 (iq2000_arch): New Enum and EnumValue entries.
7428 (mcpu=): Use Enum and Var.
7429 (iq2000_tune): New Enum and EnumValue entries.
7431 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7433 * config/ia64/ia64-opts.h: New.
7434 * config/ia64/ia64.c (ia64_tune): Remove.
7435 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7437 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7438 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7439 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7440 HeaderInclude entry.
7441 (ia64_tune): New Variable entry.
7442 (mfixed-range=): Use Defer and Var.
7443 (mtune=): Use Enum and Var.
7444 (ia64_tune): New Enum and EnumValue entries.
7446 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7448 * config/frv/frv-opts.h: New.
7449 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7451 (frv_cpu_type): Remove.
7452 * config/frv/frv.c: Don't include opts.h.
7453 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7454 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7455 (frv_cpu_type): New Variable entry.
7456 (frv_cpu): New Enum and EnumValue entries.
7458 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7460 * config/cris/cris.c (cris_handle_option): Access target_flags via
7461 opts pointer. Don't assert that global structures are in use.
7462 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7463 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7465 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7467 * config/bfin/bfin-opts.h: New.
7468 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7469 bfin_si_revision, bfin_workarounds): Remove.
7470 (bfin_cpus): Make static const.
7471 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7472 not bfin_lib_id_given.
7473 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7474 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7475 pointer. Use error_at. Don't assert that global structures are in use.
7476 * config/bfin/bfin.h: Include bfin-opts.h.
7477 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7478 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7479 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7480 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7483 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7485 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7486 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7487 or -msoft-float here.
7488 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7489 -msoft-float and -mhard-float.
7490 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7491 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7493 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7495 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7496 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7498 (LIBGCC_SPEC): Don't handle -msoft-float.
7499 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7501 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7503 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7504 -mfloat-abi=*, not -msoft-float and -mhard-float.
7505 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7507 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7508 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7509 mhard-float and msoft-float.
7510 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7511 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7512 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7513 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7515 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7516 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7518 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7520 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7523 2011-03-22 Richard Henderson <rth@redhat.com>
7525 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7526 TARGET_ABI_WINDOWS_NT.
7527 (alpha_output_function_end_prologue): Likewise.
7528 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7529 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7530 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7531 (trap, *movsi_nt_vms): Likewise.
7532 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7533 (*tablejump_osf_nt_internal): Remove.
7534 * config/alpha/predicates.md (input_operand): Only test Pmode.
7536 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7538 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7539 via opts pointer. Use error_at. Don't assert that global
7540 structures are in use.
7542 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7544 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7545 (ix86_handle_option): Access ix86_isa_flags and
7546 ix86_isa_flags_explicit via opts pointer. Don't assert that
7547 global structures are in use.
7548 (ix86_function_specific_save, ix86_function_specific_restore):
7549 Update ix86_isa_flags_explicit field name.
7550 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7551 (ix86_isa_flags_explicit): Rename TargetSave entry to
7552 x_ix86_isa_flags_explicit.
7554 2011-03-22 Richard Henderson <rth@redhat.com>
7556 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7557 (alpha_option_override, direct_return): Likewise.
7558 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7559 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7560 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7561 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7562 (alpha_expand_epilogue, alpha_end_function): Likewise.
7563 (alpha_init_libfuncs): Likewise.
7564 (struct machine_function): Remove unicosmk members.
7565 (print_operand) ['t']: Remove.
7566 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7567 unicosmk_output_module_name, unicosmk_output_common,
7568 current_section_align, unicosmk_output_text_section_asm_op,
7569 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7570 unicosmk_section_type_flags, unicosmk_unique_section,
7571 unicosmk_asm_named_section, unicosmk_insert_attributes,
7572 unicosmk_output_align, unicosmk_defer_case_vector,
7573 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7574 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7575 unicosmk_output_ssib, unicosmk_add_call_info_word,
7576 unicosmk_extern_head, unicosmk_output_default_externs,
7577 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7578 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7579 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7580 * config/alpha/alpha-protos.h: Update.
7581 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7582 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7583 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7584 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7585 (*mulsi_se, mulvsi3): Likewise.
7586 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7587 (*divmodsi_internal, call, call_value, realign): Likewise.
7588 (moddi3, umoddi3): Likewise; remove duplicate expander.
7589 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7590 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7591 (*movdi_nofix): Remove r/U alternative.
7592 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7593 * config/alpha/constraints.md ("U"): Remove.
7594 * config/alpha/predicates.md (call_operand"): Don't test
7595 TARGET_ABI_UNICOSMK.
7597 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7599 * target.def (handle_option): Take gcc_options and
7600 cl_decoded_option pointers and location_t.
7601 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7602 * doc/tm.texi: Regenerate.
7603 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7604 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7605 * lto-opts.c (lto_reissue_options): Generate option structure for
7606 targetm.handle_option call.
7607 * opts.c (target_handle_option): Update call to
7608 targetm.handle_option. Remove assertions about values now passed
7610 * targhooks.c (default_target_handle_option): New.
7611 * targhooks.h (default_target_handle_option): Declare.
7612 * config/alpha/alpha.c: Include opts.h.
7613 (alpha_handle_option): Update to new hook interface.
7614 * config/arm/arm.c: Include opts.h.
7615 (arm_handle_option): Update to new hook interface.
7616 * config/arm/t-arm (arm.o): Update dependencies.
7617 * config/bfin/bfin.c: Include opts.h.
7618 (bfin_handle_option): Update to new hook interface.
7619 * config/cris/cris.c: Include opts.h.
7620 (cris_handle_option): Update to new hook interface.
7621 * config/frv/frv.c: Include opts.h.
7622 (frv_handle_option): Update to new hook interface.
7623 * config/i386/i386.c: Include opts.h.
7624 (ix86_handle_option): Update to new hook interface.
7625 (ix86_valid_target_attribute_inner_p): Generate option structure
7626 for call to ix86_handle_option.
7627 * config/i386/t-i386 (i386.o): Update dependencies.
7628 * config/ia64/ia64.c: Include opts.h.
7629 (ia64_handle_option): Update to new hook interface.
7630 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7631 * config/iq2000/iq2000.c: Include opts.h.
7632 (iq2000_handle_option): Update to new hook interface.
7633 * config/m32c/m32c.c: Include opts.h.
7634 (m32c_handle_option): Update to new hook interface.
7635 * config/m32r/m32r.c: Include opts.h.
7636 (m32r_handle_option): Update to new hook interface.
7637 * config/m68k/m68k.c: Include opts.h.
7638 (m68k_handle_option): Update to new hook interface.
7639 * config/mep/mep.c: Include opts.h.
7640 (mep_handle_option): Update to new hook interface.
7641 * config/microblaze/microblaze.c: Include opts.h.
7642 (microblaze_handle_option): Update to new hook interface.
7643 * config/mips/mips.c: Include opts.h.
7644 (mips_handle_option): Update to new hook interface.
7645 * config/mn10300/mn10300.c: Include opts.h.
7646 (mn10300_handle_option): Update to new hook interface.
7647 * config/pa/pa.c: Include opts.h.
7648 (pa_handle_option): Update to new hook interface.
7649 * config/pdp11/pdp11.c: Include opts.h.
7650 (pdp11_handle_option): Update to new hook interface.
7651 * config/rs6000/rs6000.c: Include opts.h.
7652 (rs6000_handle_option): Update to new hook interface.
7653 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7654 * config/rx/rx.c: Include opts.h.
7655 (rx_handle_option): Update to new hook interface.
7656 * config/s390/s390.c: Include opts.h.
7657 (s390_handle_option): Update to new hook interface.
7658 * config/score/score.c: Include opts.h.
7659 (score_handle_option): Update to new hook interface.
7660 * config/sh/sh.c: Include opts.h.
7661 (sh_handle_option): Update to new hook interface.
7662 * config/sparc/sparc.c: Include opts.h.
7663 (sparc_handle_option): Update to new hook interface.
7664 * config/v850/v850.c: Include opts.h.
7665 (v850_handle_option): Update to new hook interface.
7667 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7669 * gcc.c (driver_unknown_option_callback): Only permit and save
7670 unknown -Wno- options.
7671 (driver_wrong_lang_callback): Save options directly instead of via
7672 driver_unknown_option_callback.
7674 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7676 * combine.c (simplify_set): Try harder to find the best CC mode when
7677 simplifying a nested COMPARE on the RHS.
7679 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7681 * config/alpha/gnu.h: Remove.
7682 * config/arc: Remove directory.
7683 * config/arm/netbsd.h: Remove.
7684 * config/arm/t-pe: Remove.
7685 * config/crx: Remove directory.
7686 * config/i386/netbsd.h: Remove.
7687 * config/m68hc11: Remove directory.
7688 * config/m68k/uclinux-oldabi.h: Remove.
7689 * config/mcore/mcore-pe.h: Remove.
7690 * config/mcore/t-mcore-pe: Remove.
7691 * config/netbsd-aout.h: Remove.
7692 * config/rs6000/gnu.h: Remove.
7693 * config/sh/sh-symbian.h: Remove.
7694 * config/sh/symbian-base.c: Remove.
7695 * config/sh/symbian-c.c: Remove.
7696 * config/sh/symbian-cxx.c: Remove.
7697 * config/sh/symbian-post.h: Remove.
7698 * config/sh/symbian-pre.h: Remove.
7699 * config/sh/t-symbian: Remove.
7700 * config/svr3.h: Remove.
7701 * config/vax/netbsd.h: Remove.
7702 * config.build: Don't handle i[34567]86-*-pe.
7703 * config.gcc: Remove handling of deprecations for most deprecated
7705 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7706 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7707 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7708 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7709 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7710 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7712 * config.host: Don't handle i[34567]86-*-pe.
7713 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7714 (ASM_SPEC32): Don't handle -mcall-gnu.
7715 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7717 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7718 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7719 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7720 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7721 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7722 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7723 conditional on SYMBIAN.
7724 * configure.ac: Don't handle powerpc*-*-gnu*.
7725 * configure: Regenerate.
7726 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7727 * doc/install-old.texi (m6811, m6812): Don't mention.
7728 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7729 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7730 (m68k-uclinuxoldabi): Don't mention.
7731 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7733 (-mcall-gnu): Remove.
7734 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7735 families): Remove constraint documentation.
7737 2011-03-22 Marius Strobl <marius@FreeBSD.org>
7739 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7740 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7741 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7743 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7746 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7747 vector when peeking at the next token for vector, don't expand the
7750 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
7752 * config/avr/avr-protos.h (expand_epilogue): Change prototype
7753 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7754 * config/avr/avr.c (init_cumulative_args)
7755 (avr_function_arg_advance): Use it.
7756 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7758 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7759 (avr_function_ok_for_sibcall): ...this new function.
7760 (avr_lookup_function_attribute1): New static Function.
7761 (avr_naked_function_p, interrupt_function_p)
7762 (signal_function_p, avr_OS_task_function_p)
7763 (avr_OS_main_function_p): Use it.
7764 * config/avr/avr.md ("sibcall", "sibcall_value")
7765 ("sibcall_epilogue"): New expander.
7766 ("*call_insn", "*call_value_insn"): New insn.
7767 ("call_insn", "call_value_insn"): Remove
7768 ("call", "call_value", "epilogue"): Change expander to handle
7771 2011-03-21 Nick Clifton <nickc@redhat.com>
7773 * doc/invoke.texi (Overall Options): Move closing brace to end of
7775 (Optimization Options): Add missing @gol.
7776 (Directory Options): Likewise.
7777 (i386 and x86-64 Options): Likewise.
7778 (RS6000 and PowerPC Options): Likewise.
7779 (i386 and x86-64 Windows Options): Likewise.
7780 (V850 Options): Add text missing from descriptions.
7782 2011-03-22 Richard Henderson <rth@redhat.com>
7784 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7785 (avr_incoming_return_addr_rtx): New.
7786 (emit_push_byte): New.
7787 (expand_prologue): Use it. Remove incorrect dwarf annotation for
7788 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
7789 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
7790 (emit_pop_byte): New.
7791 (expand_epilogue): Use it. Pop frame pointer by bytes.
7792 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7793 (INCOMING_RETURN_ADDR_RTX): New.
7794 (INCOMING_FRAME_SP_OFFSET): New.
7795 (ARG_POINTER_CFA_OFFSET): New.
7796 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7797 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7800 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7802 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7804 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7805 (FUNCTION_ARG_ADVANCE): Likewise.
7806 * tm.texi.in: Change references to them to hook references.
7807 * tm.texi: Regenerate.
7808 * targhooks.c (default_function_arg): Eliminate check for target
7810 (default_function_incoming_arg): Likewise.
7811 (default_function_arg_advance): Likewise.
7812 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7813 (function_arg_advance): Likewise.
7814 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7816 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7818 * tree.c (build_call_1): New function.
7819 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
7821 2011-03-22 Richard Guenther <rguenther@suse.de>
7823 PR tree-optimization/48228
7824 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
7825 for single-arg PHIs.
7827 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
7829 PR rtl-optimization/48143
7830 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
7831 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
7832 sse2_cvtps2pd): Likewise.
7834 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7836 * recog.c (canonicalize_change_group): Use validate_unshare_change.
7838 2011-03-22 Richard Guenther <rguenther@suse.de>
7840 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
7841 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
7842 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
7843 and REALIGN_LOAD_EXPR.
7844 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
7845 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
7846 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
7847 DOT_PROD_EXPR case ...
7848 (expand_expr_real_2): ... here.
7849 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
7850 and REALIGN_LOAD_EXPR.
7851 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
7852 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
7853 (vect_create_epilog_for_reduction): Likewise.
7854 (vectorizable_reduction): Likewise.
7855 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
7856 * tree-vect-stmts.c (vectorizable_load): Likewise.
7858 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7860 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
7862 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7864 * config/s390/s390.c (s390_delegitimize_address): Fix offset
7865 handling for PLTOFF/GOTOFF.
7867 2011-03-22 Nick Clifton <nickc@redhat.com>
7869 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
7870 trailing backslash from the end of the macro definition.
7872 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7874 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
7877 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
7879 * expr.h (prepare_operand): Move to...
7880 * optabs.h (prepare_operand): ...here and change the insn code
7881 parameter from "int" to "enum insn_code".
7882 (insn_operand_matches): Declare.
7883 * expr.c (init_expr_target): Use insn_operand_matches.
7884 (compress_float_constant): Likewise.
7885 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
7886 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
7887 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
7888 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
7890 (gen_cond_trap): Likewise.
7891 (prepare_operand): Likewise. Change icode to an insn_code.
7892 (insn_operand_matches): New function.
7893 * reload.c (find_reloads_address_1): Use insn_operand_matches.
7894 * reload1.c (gen_reload): Likewise.
7895 * targhooks.c (default_secondary_reload): Likewise.
7897 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7899 * config/alpha/alpha.md (unspec): New define_c_enum.
7902 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7905 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
7906 between a call and its CALL_ARG_LOCATION note.
7908 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
7910 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
7912 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7916 * c-common.c (shorten_compare): If primopN is first sign-extended
7917 to opN and then zero-extended to result type, set primopN to opN.
7919 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7921 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
7922 for barrier handlers.
7924 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7926 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
7927 UNSPEC constants to be in the unspec enumeration, and redefine
7928 all UNSPECV constants to be in the unspecv enumeration, so that
7929 dumps print which unspec/unspec_volatile this is.
7930 * config/rs6000/vector.md (UNSPEC_*): Ditto.
7931 * config/rs6000/paired.md (UNSPEC_*): Ditto.
7932 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
7933 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
7934 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
7936 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
7937 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
7938 UNSPECV_LWSYNC, since these are used as unspec_volatile.
7939 * config/rs6000/sync.md (isync, lwsync): Ditto.
7941 2011-03-21 Richard Guenther <rguenther@suse.de>
7943 * params.def (lto-min-partition): Fix typo.
7945 2011-03-21 Richard Guenther <rguenther@suse.de>
7948 * c-decl.c (grokdeclarator): Drop to the main variant only
7949 for array types. Drop flag_gen_aux_info check.
7951 2011-03-21 Richard Guenther <rguenther@suse.de>
7953 PR translation/47911
7954 * params.def (lto-partitions): Fix typo.
7955 (lto-min-partition): Fix wording.
7957 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
7959 * config/rs6000/t-freebsd: Remove duplication from file.
7961 2011-03-21 Richard Guenther <rguenther@suse.de>
7964 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
7966 2011-03-21 Richard Guenther <rguenther@suse.de>
7969 * params.def (lto-partitions): Require at least 1 partition.
7971 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7973 * gthr-solaris.h: Remove.
7974 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
7975 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
7976 (LIB_SPEC): Likewise.
7977 * config/sol2.opt (threads): Remove.
7978 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
7979 (sparc*-*-solaris2*): Likewise.
7980 * configure.ac (enable_threads): Enable solaris support.
7981 * configure: Regenerate.
7982 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
7983 * doc/install.texi (Configuration, --enable-threads=lib): Remove
7986 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7988 * config.gcc: Obsolete *-*-solaris2.8*.
7989 * doc/install.texi (Specific, *-*-solaris2*): Document it.
7991 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7994 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
7995 reference. Solaris 8 perl works.
7997 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8000 * doc/install.texi (Prerequisites): Move jar etc. up.
8001 Explain support library version requirements.
8003 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8006 * doc/install.texi (Prerequisites): Move Perl to build
8007 requirements. Always necessary on Solaris 2 with Sun ld.
8009 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8011 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8013 (Specific, i?86-*-solaris2.[89]): Likewise.
8014 (Specific, i?86-*-solaris2.10): Likewise.
8015 (Specific, mips-sgi-irix6): Likewise.
8016 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8017 Update for binutils 2.21.
8019 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8021 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8022 Allow -fuse-linker-plugin for non-default plugin linker.
8023 * configure: Regenerate.
8025 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8028 * gengtype.c (files_rules): Added rule for cp/parser.h.
8030 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8033 * config/s390/s390.c (s390_delegitimize_address): Don't call
8034 lowpart_subreg if orig_x has BLKmode.
8036 2011-03-21 Kai Tietz <ktietz@redhat.com>
8039 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8040 * tree.h (attribute_spec): Add new member affects_type_identity.
8041 * attribs.c (empty_attribute_table): Adjust attribute_spec
8043 * config/alpha/alpha.c: Likewise.
8044 * config/arc/arc.c: Likewise.
8045 * config/arm/arm.c: Likewise.
8046 * config/avr/avr.c: Likewise.
8047 * config/bfin/bfin.c: Likewise.
8048 * config/crx/crx.c: Likewise.
8049 * config/darwin.h: Likewise.
8050 * config/h8300/h8300.c: Likewise.
8051 * config/i386/cygming.h: Likewise.
8052 * config/i386/i386.c: Likewise.
8053 * config/ia64/ia64.c: Likewise.
8054 * config/m32c/m32c.c: Likewise.
8055 * config/m32r/m32r.c: Likewise.
8056 * config/m68hc11/m68hc11.c: Likewise.
8057 * config/m68k/m68k.c: Likewise.
8058 * config/mcore/mcore.c: Likewise.
8059 * config/mep/mep.c: Likewise.
8060 * config/microblaze/microblaze.c: Likewise.
8061 * config/mips/mips.c: Likewise.
8062 * config/rs6000/rs6000.c: Likewise.
8063 * config/rx/rx.c: Likewise.
8064 * config/sh/sh.c: Likewise.
8065 * config/sol2.h: Likewise.
8066 * config/sparc/sparc.c: Likewise.
8067 * config/spu/spu.c: Likewise.
8068 * config/stormy16/stormy16.c: Likewise.
8069 * config/v850/v850.c: Likewise.
8071 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8073 * simplify-rtx.c (simplify_binary_operation_1): Handle
8074 (xor (and A B) C) case when B and C are both constants.
8076 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8078 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8080 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8083 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8085 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8087 PR rtl-optimization/48156
8088 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8089 assume df and df_lr are not NULL.
8091 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8094 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8095 between a call and its CALL_ARG_LOCATION note.
8097 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8100 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8101 between a call and its corresponding CALL_ARG_LOCATION note.
8103 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8105 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8106 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8107 * haifa-sched.c (setup_ref_regs): Ditto.
8108 * caller-save.c (add_used_regs_1): Ditto.
8109 * dse.c (look_for_hardregs): Ditto.
8110 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8111 * sched-rgn.c (check_live_1): Ditto.
8113 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8115 * c-decl.c (diagnose_mismatched_decls): Give an error for
8116 redefining a typedef with variably modified type.
8118 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8120 * c-decl.c (grokfield): Don't allow typedefs for structures or
8121 unions with no tag by default.
8122 * doc/extend.texi (Unnamed Fields): Update.
8124 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8126 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8127 Rewrite using indirect functions.
8128 (lwp_slwpcb): Ditto.
8129 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8130 (avx_vinsertf128<mode>): Ditto.
8132 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8134 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8137 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8139 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8140 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8142 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8144 PR rtl-optimization/48170
8145 * gcse.c (hoist_code): Remove bogus asserts.
8147 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8149 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8150 computation for prologue/epilogue.
8152 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8154 * Makefile.in (check-consistency): Remove.
8156 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8159 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8160 arange_table_in_use is 0, but either text_section_used or
8161 cold_text_section_used is true. Don't call it if
8162 !info_section_emitted.
8164 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8166 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8167 FUNCTION_VALUE_REGNO_P): Remove.
8168 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8170 * config/avr/avr.c (avr_ret_register): Make static inline.
8171 (avr_function_value_regno_p): New function.
8172 (avr_libcall_value): Make static. Add 'func' argument.
8173 (avr_function_value): Make static. Rename 'func' argument to
8174 'fn_decl_or_type', forward it to avr_libcall_value. Call
8175 avr_ret_register function instead of RET_REGISTER macro.
8176 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8178 2011-03-18 Jason Merrill <jason@redhat.com>
8181 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8183 2011-03-18 Richard Guenther <rguenther@suse.de>
8185 * doc/install.texi (--enable-gold): Remove.
8186 (--with-plugin-ld): Document.
8187 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8189 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8192 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8193 again after expansion changes.
8195 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8197 * combine.c (try_combine): Do simplification only call of
8198 subst() on i2 even when i1 is present. Update comments.
8200 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8202 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8203 and UNSPEC_PCREL_SYMOFF.
8205 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8207 * config/s390/s390.md: Use define_c_enum for the unspec constant
8210 2011-03-18 Richard Henderson <rth@redhat.com>
8211 Jakub Jelinek <jakub@redhat.com>
8214 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8215 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8217 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8220 * combine.c (cant_combine_insn_p): Don't check zero/sign
8221 extended hard registers.
8223 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8226 * combine.c (cant_combine_insn_p): Check zero/sign extended
8229 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8231 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8232 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8233 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8234 Change return type to bool.
8235 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8237 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8240 * var-tracking.c (prepare_call_arguments): If CALL target
8241 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8242 pc instead of looking it up using cselib_lookup and use
8243 Pmode for it if x has VOIDmode.
8244 * dwarf2out.c (gen_subprogram_die): If also both first and
8245 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8248 * function.c (assign_parms): For data.passed_pointer parms
8249 use MEM of data.entry_parm instead of data.entry_parm itself
8250 as DECL_INCOMING_RTL.
8251 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8252 also when passed and declared mode is the same, DECL_RTL
8253 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8256 2011-03-16 Jeff Law <law@redhat.com>
8258 PR rtl-optimization/37273
8259 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8260 handle them like argument loads from stack slots. Do not double
8261 count memory for memory constants and argument loads from stack slots.
8263 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8266 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8268 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8271 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8273 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8276 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8278 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8279 Clear call_arg_locations and call_arg_loc_last always.
8282 * var-tracking.c (prepare_call_arguments): If argument needs to be
8283 passed by reference, adjust argtype and mode.
8285 2011-03-17 Richard Guenther <rguenther@suse.de>
8288 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8289 a value make sure to fold the statement.
8291 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8294 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8295 return condition with !cfun->calls_alloca.
8297 2011-03-17 Richard Guenther <rguenther@suse.de>
8300 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8301 origin for decls in other ltrans units.
8302 (input_varpool_node): Likewise.
8304 2011-03-17 Richard Guenther <rguenther@suse.de>
8307 * tree-object-size.c (compute_object_offset): Properly return
8308 the offset operand of MEM_REFs as sizetype.
8310 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8312 PR rtl-optimization/48141
8313 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8314 * dse.c: Include params.h.
8315 (active_local_stores_len): New variable.
8316 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8318 (record_store, check_mem_read_rtx): Decrease it when removing
8320 (scan_insn): Likewise. Increase it when adding to chain, if it
8321 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8322 set active_local_stores to NULL before the addition.
8323 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8325 PR rtl-optimization/48141
8326 * dse.c (record_store): If no positions are needed in an insn
8327 that cannot be deleted, at least unchain it from active_local_stores.
8329 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8332 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8333 (lookup_type_die_strip_naming_typedef): ... here.
8334 (get_context_die): Use it.
8335 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8336 the anonymous struct named by the naming typedef.
8338 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8341 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8342 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8344 2011-03-16 Jeff Law <law@redhat.com>
8346 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8347 check for operands of conditional. Allow type to be a pointer.
8349 2011-03-16 Richard Guenther <rguenther@suse.de>
8351 PR tree-optimization/48149
8352 * fold-const.c (fold_binary_loc): Fold
8353 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8355 2011-03-16 Richard Guenther <rguenther@suse.de>
8357 PR tree-optimization/26134
8358 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8359 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8360 (non_rewritable_mem_ref_base): Handle complex type component
8361 accesses, constrain offsets for vector and complex extracts
8364 2011-03-16 Richard Guenther <rguenther@suse.de>
8366 PR tree-optimization/48146
8367 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8368 operands avoiding the need for renaming.
8370 2011-03-16 Richard Guenther <rguenther@suse.de>
8372 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8373 constant folding. Move MEM_REF canonicalization first.
8374 Rely on fold_const_aggregate_ref for initializer folding.
8375 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8377 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8380 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8381 arg0/arg1 or their arguments are always fold converted to matching
8384 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8387 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8390 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8391 Handle in-tree gold.
8392 (ld_vers): Extract binutils version for gold.
8393 (gcc_cv_ld_hidden): Handle gold here.
8394 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8395 * configure: Regenerate.
8396 * config.in: Regenerate.
8397 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8398 -fuse-linker-plugin otherwise.
8399 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8400 (LINK_COMMAND_SPEC): Use it.
8401 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8403 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8405 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8406 * calls.c: Remove debug.h include.
8407 (emit_call_1): Don't call virtual_call_token debug hook.
8408 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8409 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8410 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8411 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8412 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8413 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8414 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8415 dwarf2out_virtual_call): Remove.
8416 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8417 copy_call_info and virtual_call hooks.
8418 (dwarf2out_init): Don't initialize vcall_insn_table,
8419 debug_dcall_section and debug_vcall_section.
8420 (prune_unused_types): Don't mark nodes from dcall_table.
8421 (dwarf2out_finish): Don't output dcall or vcall tables.
8422 * final.c (final_scan_insn): Don't call direct_call or
8423 virtual_call debug hooks.
8424 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8425 virtual_call_token, copy_call_info and virtual_call hooks.
8426 (debug_nothing_uid): Remove prototype.
8427 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8428 copy_call_info and virtual_call hooks.
8429 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8430 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8431 * debug.c (do_nothing_debug_hooks): Likewise.
8432 (debug_nothing_uid): Remove.
8433 * doc/invoke.texi (-fenable-icf-debug): Remove.
8434 * common.opt (-fenable-icf-debug): Likewise.
8436 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8437 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8438 call's MEM. Handle functions returning aggregate through a hidden
8439 first pointer. For virtual calls add clobbered pc to call arguments
8441 * dwarf2out.c (gen_subprogram_die): Emit
8442 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8446 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8447 * rtl.h (ENTRY_VALUE_EXP): Define.
8448 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8449 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8450 * print-rtl.c (print_rtx): Likewise.
8451 * gengtype.c (adjust_field_rtx_def): Likewise.
8452 * var-tracking.c (vt_add_function_parameter): Adjust
8453 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8454 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8455 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8456 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8457 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8459 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8460 Call var_location debug hook even on CALL_INSNs.
8461 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8462 * rtl.def (ENTRY_VALUE): New.
8463 * dwarf2out.c: Include cfglayout.h.
8464 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8465 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8466 (struct call_arg_loc_node): New type.
8467 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8468 tail_call_site_count): New variables.
8469 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8470 DW_TAG_GNU_call_site_parameter.
8471 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8472 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8473 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8474 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8475 and DW_AT_GNU_all_source_call_sites.
8476 (mem_loc_descriptor): Handle ENTRY_VALUE.
8477 (add_src_coords_attributes): Don't add enything if
8478 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8479 (dwarf2out_abstract_function): Save and clear call_arg_location,
8480 call_site_count and tail_call_site_count around dwarf2out_decl call.
8481 (gen_call_site_die): New function.
8482 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8483 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8484 (dwarf2out_function_decl): Clear call_arg_locations,
8485 call_arg_loc_last, set call_site_count and tail_call_site_count
8486 to -1 and free block_map.
8487 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8488 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8489 followed by any real instructions.
8490 (dwarf2out_begin_function): Set call_site_count and
8491 tail_call_site_count to 0.
8492 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8493 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8494 attempt to force a DIE for it and worst case remove the attribute.
8495 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8496 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8498 * var-tracking.c: Include tm_p.h.
8499 (vt_stack_adjustments): For calls call note_register_arguments.
8500 (argument_reg_set): New variable.
8501 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8502 ensure the VALUE is resolved.
8503 (call_arguments): New variable.
8504 (prepare_call_arguments): New function.
8505 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8506 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8507 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8508 always use the best expression.
8509 (vt_expand_loc): Add ignore_cur_loc argument.
8510 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8511 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8512 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8514 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8515 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8516 argument. Don't call cselib_preserve_only_values and
8518 (note_register_arguments): New function.
8519 (vt_initialize): Compute argument_reg_set. Call
8520 vt_add_function_parameters before processing basic blocks instead of
8521 afterwards. For calls call prepare_call_arguments before calling
8522 cselib_process_insn.
8523 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8524 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8525 (var-tracking.o): Depend on $(TM_P_H).
8526 * cfglayout.h (insn_scope): New prototype.
8527 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8528 * cfglayout.c (insn_scope): No longer static.
8529 * insn-notes.def (CALL_ARG_LOCATION): New.
8530 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8531 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8532 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8533 nothing for DECL_EXTERNAL BLOCK_VARS.
8535 2011-03-16 Alan Modra <amodra@gmail.com>
8538 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8539 create invalid offset address for vsx splat insn.
8540 * config/rs6000/predicates.md (splat_input_operand): New.
8541 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8543 2011-03-15 Xinliang David Li <davidxl@google.com>
8546 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8547 (normalize_preds): New function.
8548 (is_use_properly_guarded): Normalize def predicates.
8550 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8553 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8554 in the output template.
8556 2011-03-15 Richard Guenther <rguenther@suse.de>
8559 * tree-pretty-print.c (dump_function_declaration): Properly
8560 dump unprototyped and varargs function types.
8562 2011-03-15 Richard Guenther <rguenther@suse.de>
8564 PR tree-optimization/13954
8565 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8568 2011-03-15 Richard Guenther <rguenther@suse.de>
8570 PR tree-optimization/48037
8571 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8572 selects into BIT_FIELD_REFs.
8573 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8576 2011-03-15 Jakub Jelinek <jakub@redhat.com>
8578 PR tree-optimization/48129
8579 * builtins.c (fold_builtin_snprintf): Convert to type of
8580 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8581 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8583 2011-03-15 Richard Guenther <rguenther@suse.de>
8585 PR tree-optimization/41490
8586 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8587 value but with VUSE.
8588 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8590 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8591 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8592 * tree-tailcall.c (find_tail_calls): Ignore returns.
8594 2011-03-15 Richard Guenther <rguenther@suse.de>
8597 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8598 or variable-indexed array accesses when in gimple form.
8600 2011-03-15 Richard Guenther <rguenther@suse.de>
8602 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8604 2011-03-15 Alan Modra <amodra@gmail.com>
8607 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8608 presume symbol_refs without a symbol_ref_decl are suitably
8609 aligned, nor other trees we may see here. Handle anchor symbols.
8610 (legitimate_constant_pool_address_p): Comment. Add mode param.
8611 Check cmodel=medium addresses. Adjust all calls.
8612 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8613 creating cmodel=medium optimized access to locals.
8614 * config/rs6000/constraints.md (R): Pass QImode to
8615 legitimate_constant_pool_address_p.
8616 * config/rs6000/predicates.md (input_operand): Pass mode to
8617 legitimate_constant_pool_address_p.
8618 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8621 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8624 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8625 64-bit constants being loaded into registers other than GPRs such
8626 as loading 0 into a VSX register.
8628 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8630 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8632 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8635 * builtins.c (fold_builtin_snprintf): New function.
8636 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8637 (fold_builtin_4): Likewise.
8640 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8641 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8642 and C - X == X also strip nops from +/-/p+ operand.
8643 When optimizing -X == C, fold C to arg0's type.
8646 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8647 emit it as add_AT_int instead of add_AT_unsigned.
8649 2011-03-14 Tom Tromey <tromey@redhat.com>
8651 * unwind-dw2.c: Include sys/sdt.h if it exists.
8652 (_Unwind_DebugHook): Use STAP_PROBE2.
8653 * config.in, configure: Rebuild.
8654 * configure.ac: Check for sys/sdt.h.
8656 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
8658 * config/i386/i386.md (ROUND_FLOOR): New constant.
8659 (ROUND_CEIL): Ditto.
8660 (ROUND_TRUNC): Ditto.
8661 (ROUND_MXCSR): Ditto.
8662 (ROUND_NO_EXC): Ditto.
8663 (rint<mode>2): Use new defines instead of numerical constants.
8664 (floor<mode>2): Ditto.
8665 (ceil<mode>2): Ditto.
8666 (btrunc<mode>2): Ditto.
8667 * config/i386/i386-builtin-types.def: Define ROUND function type
8669 * config/i386/i386.c (enum ix86_builtins): Add
8670 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8671 (struct builtin_description): Add
8672 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8673 (ix86_expand_sse_round): New static function.
8674 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8676 (ix86_builtin_vectorized_function): Handle
8677 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8679 2011-03-14 Tom Tromey <tromey@redhat.com>
8681 * c-parser.c (c_parser_asm_string_literal): Clear
8682 warn_overlength_strings.
8684 2011-03-14 Tom Tromey <tromey@redhat.com>
8686 * c-parser.c (disable_extension_diagnostics): Save
8687 warn_overlength_strings.
8688 (restore_extension_diagnostics): Restore warn_overlength_strings.
8690 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8692 * BASE-VER: Change to 4.7.0.
8694 2011-03-14 Richard Guenther <rguenther@suse.de>
8697 * tree.c (build_vector_from_val): Adjust assert to requirements
8700 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8703 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8705 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
8707 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8708 terms of target_flags_explicit. Adjust copyright year.
8710 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8711 * config/rs6000/t-freebsd: New file. Add override for
8714 2011-03-13 Chris Demetriou <cgd@google.com>
8716 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8717 (-fno-diagnostics-show-option): this, to reflect current default.
8718 (-Werror=): Update text about -fno-diagnostics-show-option.
8720 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8723 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8724 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8725 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8726 mode is not V2DImode or V2DFmode.
8727 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8728 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8729 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8731 (movdi_internal64): Likewise.
8733 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8735 PR tree-optimization/47127
8736 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8738 (set_cloog_options): Same.
8739 (scop_to_clast): Same.
8740 (print_clast_stmt): Do not call cloog_state_malloc and
8742 (print_generated_program): Same.
8744 * graphite-clast-to-gimple.h (cloog_state): Declared.
8745 (scop_to_clast): Adjust declaration.
8746 * graphite.c (cloog_state): Defined here.
8747 (graphite_initialize): Call cloog_state_malloc.
8748 (graphite_finalize): Call cloog_state_free.
8750 2011-03-11 Jason Merrill <jason@redhat.com>
8752 * attribs.c (lookup_attribute_spec): Take const_tree.
8755 2011-03-11 Joseph Myers <joseph@codesourcery.com>
8757 * config/sparc/sparc.c (sparc_option_override): Use
8758 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8760 2011-03-11 Richard Guenther <rguenther@suse.de>
8762 PR tree-optimization/48067
8763 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8764 multiplication result will be only used once on the target
8767 2011-03-11 Richard Guenther <rguenther@suse.de>
8769 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8771 2011-03-11 Richard Guenther <rguenther@suse.de>
8774 * tree.c (find_decls_types_r): Do not walk types only reachable
8775 from IDENTIFIER_NODEs.
8777 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8780 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8781 all vnode->force_output nodes as needed.
8783 2011-03-11 Jason Merrill <jason@redhat.com>
8786 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8787 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8789 2011-03-11 Martin Jambor <mjambor@suse.cz>
8791 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8794 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8796 PR tree-optimization/48063
8797 * ipa-inline.c (cgraph_decide_inlining): Don't try to
8798 inline functions called once if !tree_can_inline_p (node->callers).
8800 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
8802 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8804 * config/score/score3.c: Delete.
8805 * config/score/score3.h: Delete.
8806 * config/score/mul-div.S: Delete.
8807 * config/score/sfp-machine.h: Add new file.
8808 * config/score/constraints.md: Add new file.
8809 * config/score/t-score-softfp: Add new file.
8810 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
8811 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8812 (score7_extra_constraint): Delete.
8813 (score7_option_override): Remove unused code.
8814 * config/score/score.c: Remove score3 and score5 define and code.
8815 * config/score/score.h: Remove score3 and score5 define and code.
8816 * config/score/score.md: Remove score3 template and unusual insn.
8817 * config/score/score.opt: Remove score3 and score5 options.
8819 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8821 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8822 when _HPUX_SOURCE is defined.
8823 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
8825 2011-03-10 Jason Merrill <jason@redhat.com>
8828 * stor-layout.c (layout_type): Don't set structural equality
8829 on arrays of incomplete type.
8830 * tree.c (type_hash_eq): Handle comparing them properly.
8832 2011-03-10 Jakub Jelinek <jakub@redhat.com>
8835 * config/s390/s390.c (s390_delegitimize_address): Make sure the
8836 result mode matches original rtl mode.
8838 2011-03-10 Nick Clifton <nickc@redhat.com>
8840 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
8841 (andsi3, andsi3_flags): Fix timings for three operand alternative.
8843 2011-03-09 Jakub Jelinek <jakub@redhat.com>
8845 PR rtl-optimization/47866
8846 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
8847 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
8848 if target wasn't scalar.
8849 * function.c (assign_stack_temp_for_type): Assert that neither
8850 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
8851 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
8853 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
8855 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8857 * config/s390/s390-protos.h (s390_label_align): New prototype.
8858 * config/s390/s390.c (s390_label_align): New function.
8859 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
8861 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8864 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
8865 V2DI/V2DF constants. Only all 0's or all 1's are easy.
8866 (output_vec_const_move): Ditto.
8868 2011-03-08 Anatoly Sokolov <aesok@post.ru>
8870 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
8871 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
8872 * config/mips/mips.c (mips_preferred_reload_class): Make static.
8873 Change 'rclass' argument and result type to reg_class_t.
8874 (TARGET_PREFERRED_RELOAD_CLASS): Define.
8876 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
8878 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8879 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
8880 (TARGET_MEMORY_MOVE_COST): Define.
8881 (avr_register_move_cost, avr_memory_move_cost): New Functions.
8883 2011-03-08 Jakub Jelinek <jakub@redhat.com>
8886 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
8889 PR tree-optimization/48022
8890 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
8893 2011-03-07 Jakub Jelinek <jakub@redhat.com>
8896 * var-tracking.c (find_use_val): Return NULL for
8897 cui->sets && cui->store_p BLKmode MEMs.
8899 2011-03-07 Anatoly Sokolov <aesok@post.ru>
8901 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
8903 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
8904 xstormy16_print_operand_address): Remove.
8905 * config/stormy16/stormy16.c (xstormy16_print_operand,
8906 xstormy16_print_operand_address): Make static.
8907 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8909 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
8912 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8913 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
8916 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
8919 * cfgloopmanip.c (fix_bb_placements): Return immediately
8920 if FROM is BASE_LOOP's header.
8922 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
8924 * gimplify.c (gimplify_function_tree): Fix building calls
8925 to __builtin_return_address.
8927 2011-03-07 Alan Modra <amodra@gmail.com>
8929 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
8930 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
8931 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
8932 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
8934 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
8935 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
8936 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
8937 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
8938 * config/rs6000/rs6000.c
8939 (rs6000_elf_end_indicate_exec_stack): Rename to..
8940 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
8941 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
8942 (rs6000_file_start): ..here.
8943 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
8944 file scope variables.
8945 (call_ABI_of_interest): New function.
8946 (init_cumulative_args): Set above vars when function return value
8947 is a float, vector, or small struct.
8948 (rs6000_function_arg_advance_1): Likewise for function args.
8949 (rs6000_va_start): Set rs6000_passes_float if variable arg function
8950 references float args.
8952 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
8954 * doc/cfg.texi: Remove "See" before @ref.
8955 * doc/invoke.texi: Likewise.
8957 2011-03-05 Jason Merrill <jason@redhat.com>
8959 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
8961 2011-03-05 Anthony Green <green@moxielogic.com>
8963 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
8965 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
8967 PR rtl-optimization/47899
8968 * cfgloopmanip.c (fix_bb_placements): Fix first argument
8969 to flow_loop_nested_p when moving the loop upward.
8971 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
8974 * arm.md (movhi_insn_arch4): Accept any immediate constant.
8976 2011-03-05 Jakub Jelinek <jakub@redhat.com>
8978 PR tree-optimization/47967
8979 * ipa-cp.c (build_const_val): Return NULL instead of creating
8980 VIEW_CONVERT_EXPR for mismatching sizes.
8981 (ipcp_create_replace_map): Return NULL if build_const_val failed.
8982 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
8983 give up on versioning.
8985 2011-03-05 Alan Modra <amodra@gmail.com>
8988 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8989 full cmodel medium/large lo_sum + high addresses.
8991 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8993 * config/s390/s390.c (s390_decompose_address): Reject non-literal
8994 pool references in UNSPEC_LTREL_OFFSET.
8996 2011-03-04 Jan Hubicka <jh@suse.cz>
8999 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9000 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9001 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9003 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9004 cgraph_add_thunk): Add node pointers.
9005 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9006 associated to right node.
9007 (input_node): Update use of cgraph_same_body_alias
9008 and cgraph_add_thunk.
9010 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9012 * config/i386/i386.opt (mprefer-avx128): New flag.
9013 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9014 modes when the flag -mprefer-avx128 is on.
9016 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9018 * dwarf2out.c (compare_loc_operands): Fix address handling.
9020 2011-03-04 Alan Modra <amodra@gmail.com>
9022 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9024 2011-03-04 Richard Guenther <rguenther@suse.de>
9027 * expmed.c (extract_bit_field_1): Prefer vector modes that
9028 vec_extract patterns can handle.
9030 2011-03-04 Richard Guenther <rguenther@suse.de>
9033 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9035 2011-03-04 Richard Henderson <rth@redhat.com>
9037 * explow.c (emit_stack_save): Remove 'after' parameter.
9038 (emit_stack_restore): Likewise.
9039 * expr.h: Update to match.
9040 * builtins.c, calls.c, stmt.c: Likewise.
9041 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9042 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9043 * function.c (expand_function_end): Insert the emit_stack_save
9044 sequence before parm_birth_insn instead of after.
9046 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9048 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9049 (ssse3_pmaddubsw128): Ditto.
9050 (ssse3_pmaddubsw): Ditto.
9052 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9054 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9056 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9059 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9060 on TYPE_SIZE_UNIT if it is a DECL.
9063 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9064 first operand is not is_gimple_mem_ref_addr, try to fold it.
9065 If the operand still isn't is_gimple_mem_ref_addr, clear
9068 2011-03-03 Richard Guenther <rguenther@suse.de>
9071 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9073 (refs_may_alias_p_1): For release branches return true if
9074 we are confused by our input.
9076 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9078 * config/s390/s390.c (s390_function_value): Rename to ...
9079 (s390_function_and_libcall_value): ... this.
9080 (s390_function_value): New function.
9081 (s390_libcall_value): New function.
9082 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9083 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9084 target macro definitions.
9085 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9087 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9089 * config/i386/freebsd64.h (CC1_SPEC): Define.
9090 * config/i386/linux64.h (CC1_SPEC): Define.
9091 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9093 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9095 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9097 * config/stormy16/stormy16.c: Include reload.h.
9098 (xstormy16_memory_move_cost): New function.
9099 (TARGET_MEMORY_MOVE_COST): Define.
9101 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9103 PR rtl-optimization/47925
9104 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9105 with side effects. Remove the more-specific check for volatile asms.
9107 2011-03-02 Alan Modra <amodra@gmail.com>
9110 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9111 toc relative addresses for valid offsets.
9113 2011-03-01 Richard Guenther <rguenther@suse.de>
9115 PR tree-optimization/47890
9116 * tree-vect-loop.c (get_initial_def_for_induction): Set
9117 related stmt properly.
9119 2011-03-01 Richard Guenther <rguenther@suse.de>
9122 * lto-streamer.c (lto_record_common_node): Also register
9125 2011-03-01 Richard Guenther <rguenther@suse.de>
9128 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9129 Do not stream DECL_ABSTRACT_ORIGIN.
9130 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9131 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9132 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9133 Do not stream DECL_ABSTRACT_ORIGIN.
9134 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9135 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9137 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9139 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9140 FUNCTION_VALUE_REGNO_P): Remove.
9141 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9142 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9143 Add 'outgoing' argument.
9144 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9146 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9147 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9149 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9152 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9153 (lookup_filename): Likewise.
9154 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9156 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9157 Jakub Jelinek <jakub@redhat.com>
9160 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9161 (assign_stack_local_1): Change last argument type to int.
9162 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9163 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9164 don't record padding space into frame_space_list nor use those areas.
9165 (assign_stack_local): Adjust caller.
9166 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9167 of assign_stack_local, pass 0 as last argument.
9168 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9171 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9174 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9175 Use target address_mode and pointer_mode hooks instead of hardcoded
9176 Pmode and ptr_mode. Handle some simple cases of extending if
9177 POINTERS_EXTEND_UNSIGNED < 0.
9178 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9179 Call convert_debug_memory_address.
9180 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9181 convert_debug_memory_address.
9184 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9185 * configure: Regenerated.
9186 * config.in: Regenerated.
9187 * varasm.c (default_function_section): Return NULL
9188 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9190 2011-02-28 Martin Jambor <mjambor@suse.cz>
9192 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9193 the description to match the printed values.
9195 2011-02-28 Richard Guenther <rguenther@suse.de>
9197 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9198 of the copied scope tree.
9200 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9202 * doc/extend.texi (Function Attributes): Avoid deeply (and
9203 wrongly) nested tables.
9205 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9208 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9209 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9210 r isn't op0 nor op1.
9212 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9214 * config/avr/avr.md: Remove magic comment for emacs.
9216 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9219 * config/avr/avr.c (avr_option_override): Use error on bad options.
9220 (avr_help): New function.
9221 (TARGET_HELP): Define.
9223 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9226 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9227 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9229 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9231 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9232 (ARM Options): Ditto.
9233 (i386 and x86-64 Options): Ditto.
9234 (RX Options): Ditto.
9235 (SPARC Options): Ditto.
9237 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9239 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9240 FreeBSD 6 and later. Generally use cpu generic.
9242 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9244 * doc/cpp.texi: Update copyright years.
9246 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9249 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9251 2011-02-25 Jon Beniston <jon@beniston.com>
9254 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9255 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9256 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9257 (lm32_block_move_inline): Add type cast to remove warning.
9258 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9259 (gen_int_relational): Move declarations to start of function.
9261 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9263 PR tree-optimization/45470
9264 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9265 can throw internally only.
9266 * tree-vect-stmts.c (vectorizable_call): Likewise.
9268 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9270 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9271 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9272 * config/stormy16/stormy16-protos.h
9273 (xstormy16_preferred_reload_class): Remove.
9274 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9275 static. Change 'rclass' argument and return type to reg_class_t.
9276 (TARGET_PREFERRED_RELOAD_CLASS,
9277 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9279 2011-02-24 Richard Guenther <rguenther@suse.de>
9281 * lto-streamer-in.c (input_bb): Do not find referenced vars
9282 in debug statements.
9284 2011-02-23 Jason Merrill <jason@redhat.com>
9286 * common.opt (fabi-version): Document v5 and v6.
9288 2011-02-23 Richard Guenther <rguenther@suse.de>
9290 PR tree-optimization/47849
9291 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9293 2011-02-23 Jie Zhang <jie@codesourcery.com>
9295 * opts-common.c (decode_cmdline_option): Print empty string
9296 argument as "" in decoded->orig_option_with_args_text.
9297 * gcc.c (execute): Print empty string argument as ""
9298 in the verbose output.
9299 (do_spec_1): Keep empty string argument.
9301 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9303 * config.gcc: Declare score-* and crx-* obsolete.
9305 2011-02-23 Jie Zhang <jie@codesourcery.com>
9307 PR rtl-optimization/47763
9308 * web.c (web_main): Ignore naked clobber when replacing register.
9310 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9312 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9315 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9318 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9320 2011-02-22 Mike Stump <mikestump@comcast.net>
9322 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9324 * configure: Regenerate.
9326 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9328 PR rtl-optimization/46002
9329 * ira-color.c (update_copy_costs): Change class intersection
9330 test to reg_class_contents[] test of 'hard_regno'.
9332 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9334 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9336 * config/hpux11.opt (mt): Likewise.
9337 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9338 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9339 * config/vax/elf.opt (mno-asm-pic): Likewise.
9340 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9342 2011-02-21 Mike Stump <mikestump@comcast.net>
9345 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9346 tree so we can get save the type.
9347 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9348 for CFString instead of trying to use past the end of the builtins.
9349 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9350 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9351 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9352 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9353 Rename to darwin_builtin_cfstring.
9354 (darwin_init_cfstring_builtins): Return the built type.
9356 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9359 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9360 (_mm256_insert_epi64): Use _mm_insert_epi64.
9362 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9364 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9365 * config/stormy16/stormy16-protos.h
9366 (xstormy16_mode_dependent_address_p): Remove.
9367 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9368 Make static. Change return type to bool. Change argument type to
9369 const_rtx. Remove dead code.
9370 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9372 2011-02-21 Richard Guenther <rguenther@suse.de>
9375 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9376 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9377 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9379 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9380 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9382 2011-02-20 Richard Guenther <rguenther@suse.de>
9385 * tree.c (free_lang_data_in_decl): Clean builtins from
9386 the TU decl BLOCK_VARS.
9388 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9392 * haifa-sched.c (fix_tick_ready): Skip tick computation
9395 2011-02-19 Richard Guenther <rguenther@suse.de>
9398 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9399 Remove lazy BLOCK_VARS streaming.
9400 (lto_input_ts_block_tree_pointers): Likewise.
9401 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9403 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9405 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9407 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9409 * config/i386/biarch32.h, config/i386/mach.h,
9410 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9412 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9415 * config/i386/i386.md (peephole2 for shift and plus): Use
9416 operands[1] original mode in the first insn.
9418 2011-02-18 Mike Stump <mikestump@comcast.net>
9420 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9422 2011-02-18 Jan Hubicka <jh@suse.cz>
9425 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9426 to zero when the function is not inlinable at all.
9428 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9430 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9431 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9432 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9433 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9434 * config/pa/t-pa64: Likewise.
9435 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9437 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9440 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9442 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9445 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9447 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9449 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9450 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9451 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9452 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9453 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9454 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9455 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9456 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9457 m32r_legitimate_address_p): New functions.
9458 * config/m32r/constraints.md (constraint "S"): Don't use
9459 STORE_PREINC_PREDEC_P.
9460 (constraint "U"): Don't use LOAD_POSTINC_P.
9462 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9464 PR rtl-optimization/46178
9465 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9466 compute ira_hard_regno_cover_class[].
9468 2011-02-18 Richard Guenther <rguenther@suse.de>
9471 * lto-streamer.h (lto_global_var_decls): Declare.
9472 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9473 statics for global var processing.
9475 2011-02-18 Richard Guenther <rguenther@suse.de>
9477 PR tree-optimization/47737
9478 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9479 edge dominance check.
9481 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9484 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9485 avoid invalid rtx sharing.
9487 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9489 * doc/cpp.texi (Obsolete Features): Add background on the
9490 origin of assertions.
9492 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9494 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9496 * config/darwin.c (output_objc_section_asm_op): Added support for
9498 (is_objc_metadata): New.
9499 (darwin_objc2_section): New.
9500 (darwin_objc1_section): New.
9501 (machopic_select_section): Added support for ABI v1 and v2.
9502 (darwin_emit_objc_zeroed): New.
9503 (darwin_output_aligned_bss): Detect objc metadata and treat it
9505 (darwin_asm_output_aligned_decl_common): Same.
9506 (darwin_asm_output_aligned_decl_local): Same.
9507 * config/darwin-sections.def: Updated for ABI v1 and v2.
9508 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9509 compiling Objective-C code for the NeXT runtime, default to using
9510 ABI version 0 for 32-bit, and version 2 for 64-bit.
9512 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9514 * common.opt (optimize_fast): New Variable.
9515 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9516 instead of local variable ofast.
9518 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9520 * doc/invoke.texi (fobjc-abi-version): Documented.
9521 (fobjc-nilcheck): Documented.
9522 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9525 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9528 * common.opt (export-dynamic): New Driver option.
9529 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9531 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9533 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9535 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9536 Jan Hubicka <jh@suse.cz>
9540 * cfgexpand.c (account_used_vars_for_block): Remove.
9541 (estimated_stack_frame_size): Use referenced vars.
9542 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9543 that were referenced in the original function. Test src_fn
9544 rather than cfun. Drop redundant get_var_ann.
9545 (setup_one_parameter): Drop redundant get_var_ann.
9546 (declare_return_variable): Likewise.
9547 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9548 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9549 * ipa-inline.c (compute_inline_parameters): Do not compute
9550 disregard_inline_limits here.
9551 (compute_inlinable_for_current, pass_inlinable): New.
9552 (pass_inline_parameters): Require PROP_referenced_vars.
9553 * cgraphunit.c (cgraph_process_new_functions): Don't run
9554 compute_inline_parameters explicitly unless function is in SSA form.
9555 (cgraph_analyze_function): Set .disregard_inline_limits.
9556 * tree-sra.c (convert_callers): Compute inliner parameters
9557 only for functions already in SSA form.
9559 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9561 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9562 -mlittle-endian-data.
9564 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9566 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9567 -mno-fpu, not -fpu and -no-fpu.
9568 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9569 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9571 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
9574 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9575 input reload with PLUS RTX.
9577 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9579 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9580 of InverseVar(MDMX).
9582 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9584 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9587 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9589 * config/mn10300/mn10300.opt (mno-crt0): New.
9591 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9593 * config/m68k/uclinux.opt (static-libc): New Driver option.
9595 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9597 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9599 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9601 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9602 %{muser-extend-enabled}.
9604 2011-02-16 Richard Guenther <rguenther@suse.de>
9606 PR tree-optimization/47738
9607 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9608 the TODO from tree_predictive_commoning.
9610 2011-02-15 Jeff Law <law@redhat.com>
9613 2011-01-25 Jeff Law <law@redhat.com>
9615 PR rtl-optimization/37273
9616 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9617 handle them like argument loads from stack slots. Do not double
9618 count memory for memory constants and argument loads from stack slots.
9620 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9623 * combine.c (cant_combine_insn_p): Revert the last change.
9625 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9628 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9629 mode for vector constants. Remove code that checks for TImode.
9631 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9635 * cgraph.h (compute_inline_parameters): Return void.
9636 * ipa-inline.c (compute_inline_parameters): Adjust.
9638 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9642 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9644 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9645 * ipa-inline.c (compute_inline_parameters): Adjust.
9647 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9651 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9652 Adjust all users. Pass FN to...
9653 * tree-flow-inline.h (first_referenced_var): ... this. Add
9655 * ipa-struct-reorg.c: Adjust.
9656 * tree-dfa.c: Adjust.
9657 * tree-into-ssa.c: Adjust.
9658 * tree-sra.c: Adjust.
9659 * tree-ssa-alias.c: Adjust.
9660 * tree-ssa-live.c: Adjust.
9661 * tree-ssa.c: Adjust.
9662 * tree-ssanames.c: Adjust.
9663 * tree-tailcall.c: Adjust.
9665 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9669 * tree-flow.h (referenced_var_lookup): Add fn parameter.
9671 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9672 * tree-flow-inline.h: Adjust.
9673 * gimple-pretty-print.c: Adjust.
9674 * tree-into-ssa.c: Adjust.
9675 * tree-ssa.c: Adjust.
9676 * cfgexpand.c: Adjust.
9678 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9680 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9681 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9682 (EXTRA_CONSTRAINT): Delete.
9683 * config/iq2000/constraints.md: New file.
9684 * config/iq2000/iq2000.md: Include it.
9685 (define_insn ""): Delete.
9686 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9687 unsupported constraint letters from patterns.
9688 (call_value, call_value_internal1): Likewise.
9689 (call_value_multiple_internal1): Likewise.
9691 2011-02-15 Nick Clifton <nickc@redhat.com>
9693 * config/mn10300/mn10300.c: Include tm-constrs.h.
9694 (struct liw_data): New data structure describing an LIW candidate
9696 (extract_bundle): Use struct liw_data. Allow small integer
9697 operands for some instructions.
9698 (check_liw_constraints): Use struct liw_data. Remove swapped
9699 parameter. Add comments describing the checks. Fix bug when
9700 assigning the source of liw1 to the source of liw2.
9701 (liw_candidate): Delete. Code moved into extract_bundle.
9702 (mn10300_bundle_liw): Use struct liw_data. Check constraints
9704 * config/mn10300/predicates.md (liw_operand): New predicate.
9705 Allows registers and small integer constants.
9706 * config/mn10300/constraints.md (O): New constraint. Accetps
9707 integers in the range -8 to +7 inclusive.
9708 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9709 for moving a small integer into a register. Give this alternative
9711 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9712 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9713 using the J,K,L and M constraints,
9714 (liw): Remove SI mode on second operands to allow for HI and QI
9716 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
9719 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9722 * combine.c (cant_combine_insn_p): Check zero/sign extended
9725 2011-02-15 Richard Guenther <rguenther@suse.de>
9727 PR tree-optimization/47743
9728 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9729 for a non-type-compatible VN lookup bail out.
9731 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9733 * config/fr30/constraints.md: New file.
9734 * config/fr30/fr30.md: Include it.
9735 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9736 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9737 (EXTRA_CONSTRAINT): Delete.
9739 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9741 * config/frv/constraints.md: New file.
9742 * config/frv/predicates.md: Include it.
9743 * config/frv/frv.c (reg_class_from_letter): Delete.
9744 (frv_option_override): Don't initialize it.
9745 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9746 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9747 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9748 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9749 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9750 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9751 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9752 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9753 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9754 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9755 (REG_CLASS_FROM_CONSTRAINT): Delete.
9757 2011-02-15 Jakub Jelinek <jakub@redhat.com>
9760 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9761 if frame size is 0 in a leaf function.
9763 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9766 * config/alpha/host-osf.c: New file.
9767 * config/alpha/x-osf: New file.
9768 * config.host (alpha*-dec-osf*): Use it.
9770 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9772 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9773 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9774 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9775 (rx_mode_dependent_address_p): ...this. Make static. Change argument
9777 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9779 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9781 * config/stormy16/constraints.md: New file.
9782 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9783 Use satisfies_constraint_Q and satisfies_constraint_R.
9784 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9786 (xstormy16_legitiamte_address_p): Declare.
9787 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9788 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9789 (EXTRA_CONSTRAINT): Delete.
9790 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9792 (xstormy16_extra_constraint_p): Delete.
9794 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
9796 PR tree-optimization/46494
9797 * loop-unroll.c (split_edge_and_insert): Adjust comment.
9798 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9799 (pass_rtl_loop_done): Add TODO_verify_flow.
9800 * fwprop.c (pass_rtl_fwprop): Likewise.
9801 * modulo-sched.c (pass_sms): Likewise.
9802 * tree-ssa-dom.c (pass_dominator): Likewise.
9803 * tree-ssa-loop-ch.c (pass_ch): Likewise.
9804 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9805 (pass_tree_loop_done): Likewise.
9806 * tree-ssa-pre.c (execute_pre): Likewise.
9807 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9808 * tree-ssa-sink.c (pass_sink_code): Likewise.
9809 * tree-vrp.c (pass_vrp): Likewise.
9811 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9813 * config/v850/constraints.md: New file.
9814 * config/v850/v850.md: Include it.
9815 * config/v850/predicates.md (reg_or_0_operand): Use
9816 satisfies_constraint_G.
9817 (special_symbolref_operand): Use satisfies_constraint_K.
9818 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
9819 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9820 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
9821 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9822 (EXTRA_CONSTRAINT): Delete.
9823 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
9824 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
9825 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
9827 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9830 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
9833 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9835 * config/mcore/constraints.md: New file.
9836 * config/mcore/mcore.md: Include it.
9837 * config/mcore/mcore.c (reg_class_from_letter): Delete.
9838 * config/mcore/mcore.h (reg_class_from_letter): Delete.
9839 (REG_CLASS_FROM_LETTER): Delete.
9840 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
9841 insn_const_int_ok_for_constraint.
9842 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
9843 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
9844 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9845 (EXTRA_CONSTRAINT): Delete.
9847 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9850 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
9851 (IS_SIGHANDLER): Define.
9852 (sparc64_is_sighandler): New function, split off from
9853 sparc64_fallback_frame_state.
9854 (sparc_is_sighandler): New function, split off from
9855 sparc_fallback_frame_state.
9856 (sparc64_fallback_frame_state): Merge with ...
9857 (sparc_fallback_frame_state): ... this into ...
9858 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
9859 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
9860 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
9861 stack instead of hardcoded offsets.
9863 2011-02-14 Andriy Gapon <avg@freebsd.org>
9866 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
9868 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9870 * configure: Regenerate.
9872 2011-02-12 Joseph Myers <joseph@codesourcery.com>
9875 * gcc.c (asm_options): Correct spec matching --target-help.
9877 2011-02-12 Martin Jambor <mjambor@suse.cz>
9879 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
9880 to gimple call error.
9882 2011-02-12 Mike Stump <mikestump@comcast.net>
9884 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
9885 comments in backslash regions.
9887 2011-02-12 Mike Stump <mikestump@comcast.net>
9888 Jakub Jelinek <jakub@redhat.com>
9889 Iain Sandoe <iains@gcc.gnu.org>
9892 * dwarf2out.c (output_cfa_loc): When required, apply the
9893 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
9894 (output_loc_sequence): Likewise.
9895 (output_loc_operands_raw): Likewise.
9896 (output_loc_sequence_raw): Likewise.
9897 (output_cfa_loc): Likewise.
9898 (output_loc_list): Suppress register number adjustment when
9899 calling output_loc_sequence()
9900 (output_die): Likewise.
9902 2011-02-12 Anatoly Sokolov <aesok@post.ru>
9904 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9906 * config/xtensa/xtensa.c (xtensa_register_move_cost,
9907 xtensa_memory_move_cost): New functions.
9908 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
9910 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
9913 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
9914 in the current directory.
9915 * configure: Rebuilt.
9917 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9919 * config/darwin.c (darwin_override_options): Add a hunk missed
9920 from the commit of r168571. Trim comment line lengths and
9921 correct indents of the preceding block.
9923 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9925 * gcc.c (driver_handle_option): Concatenate the argument to -F with
9928 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9930 * common.opt (nostartfiles): New Driver option.
9932 2011-02-11 Xinliang David Li <davidxl@google.com>
9934 PR tree-optimization/47707
9935 * tree-chrec.c (convert_affine_scev): Keep type precision.
9937 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
9939 PR tree-optimization/47420
9940 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
9942 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
9944 PR rtl-optimization/47614
9945 * rtl.h (check_for_inc_dec): Declare.
9946 * dse.c (check_for_inc_dec): Externalize...
9947 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
9948 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
9950 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9953 * gcc.c (main): Do not compile inputs if there were errors in
9955 * opts-common.c (read_cmdline_option): Check for wrong language
9956 after other error checks.
9958 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
9960 * cgraph.c: Fix comment typos.
9961 * cgraph.h: Likewise.
9962 * cgraphunit.c: Likewise.
9963 * ipa-cp.c: Likewise.
9964 * ipa-inline.c: Likewise.
9965 * ipa-prop.c: Likewise.
9966 * ipa-pure-const.c: Likewise.
9967 * ipa-ref.c: Likewise.
9968 * ipa-reference.c: Likewise.
9970 2011-02-11 Jakub Jelinek <jakub@redhat.com>
9973 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
9975 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9978 * doc/sourcebuild.texi (Require Support): Document
9979 dg-require-ascii-locale.
9981 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
9983 * doc/lto.texi (Write summary): Fix missing parentheses.
9985 2011-02-10 DJ Delorie <dj@redhat.com>
9987 * config/m32c/m32c.c (m32c_option_override): Disable
9988 -fcombine-stack-adjustments until flag value tracking and compare
9989 optimization can be rewritten.
9991 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
9993 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
9995 (PROCESSOR_DEFAULT64): Likewise.
9997 2011-02-10 Richard Henderson <rth@redhat.com>
9999 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10000 change from 2011-02-03.
10001 * config/rx/rx.c (flags_from_code): Likewise.
10002 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10003 is valid, n/pz otherwise.
10004 (rx_select_cc_mode): Return CCmode if Y is not zero.
10006 2011-02-10 Richard Guenther <rguenther@suse.de>
10008 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10010 2011-02-10 Richard Guenther <rguenther@suse.de>
10012 PR tree-optimization/47677
10013 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10015 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10018 * combine.c (make_compound_operation): Only change shifts into
10019 multiplication for SCALAR_INT_MODE_P.
10021 2011-02-10 Jie Zhang <jie@codesourcery.com>
10025 2011-02-05 Jie Zhang <jie@codesourcery.com>
10027 * web.c (entry_register): Don't clobber the number of the
10028 first uninitialized reference in used[].
10030 2011-02-09 Richard Guenther <rguenther@suse.de>
10032 PR tree-optimization/47664
10033 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10036 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10040 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10042 (PROCESSOR_DEFAULT64): Same.
10043 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10045 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10047 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10049 2011-02-09 Martin Jambor <mjambor@suse.cz>
10051 PR middle-end/45505
10052 * tree-sra.c (struct access): New flags grp_scalar_read and
10053 grp_scalar_write. Changed description of assignment read and write
10055 (dump_access): Dump new flags, reorder all of them.
10056 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10057 to detect multiple scalar reads.
10058 (analyze_access_subtree): Use the new scalar read write flags instead
10059 of the old flags. Adjusted comments.
10061 2011-02-08 DJ Delorie <dj@redhat.com>
10064 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10067 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10069 * config/m68k/uclinux.opt: New.
10070 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10072 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10074 * config/cris/elf.opt (sim): New Driver option.
10076 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10078 * config/xtensa/elf.opt: New.
10079 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10081 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10083 * config/vax/elf.opt: New.
10084 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10086 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10088 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10090 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10092 * config/gnu-user.opt: New.
10093 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10094 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10095 *-*-uclinux*): Use gnu-user.opt.
10097 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10099 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10100 * config/i386/gnu.h (CPP_SPEC): Likewise.
10102 2011-02-08 Ian Lance Taylor <iant@google.com>
10104 * common.opt (fcx-limited-range): Add SetByCombined flag.
10105 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10106 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10107 (fassociative-math, freciprocal-math): Likewise.
10108 (funsafe-math-optimizations): Likewise.
10109 * opth-gen.awk: Handle SetByCombined.
10110 * optc-gen.awk: Likewise.
10111 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10112 (set_unsafe_math_optimizations_flags): Likewise.
10113 * doc/options.texi (Option properties): Document SetByCombined.
10115 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10117 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10118 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10119 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10120 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10121 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10123 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10125 PR tree-optimization/46834
10126 PR tree-optimization/46994
10127 PR tree-optimization/46995
10128 * graphite-sese-to-poly.c (used_outside_reduction): New.
10129 (detect_commutative_reduction): Call used_outside_reduction.
10130 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10131 translate_scalar_reduction_to_array only when at least one
10132 loop-phi/close-phi tuple has been detected.
10134 2011-02-08 Richard Guenther <rguenther@suse.de>
10136 PR middle-end/47639
10137 * tree-vect-generic.c (expand_vector_operations_1): Update
10139 (expand_vector_operations): ... not here. Cleanup EH info
10140 and the CFG if required.
10142 2011-02-08 Richard Guenther <rguenther@suse.de>
10144 PR tree-optimization/47641
10145 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10146 require type compatibility.
10148 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10150 * gimple-low.c (lower_function_body): Don't remove the location of
10151 the return statement here.
10152 (lower_gimple_return): Do it here instead but only if the return
10153 statement is actually used twice.
10155 2011-02-08 Richard Guenther <rguenther@suse.de>
10157 PR tree-optimization/47632
10158 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10159 unused up_to_stmt parameter, return whether cfg-cleanup is
10160 necessary, remove EH info properly.
10161 (forward_propagate_into_gimple_cond): Adjust caller.
10162 (forward_propagate_into_cond): Likewise.
10163 (forward_propagate_comparison): Likewise.
10164 (tree_ssa_forward_propagate_single_use_vars): Make
10165 forward_propagate_comparison case similar to the two others.
10167 2011-02-08 Nick Clifton <nickc@redhat.com>
10169 * config/mn10300/mn10300.opt (mliw): New command line option.
10170 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10171 (liw_bundling): New automaton.
10172 (liw): New attribute.
10173 (liw_op): New attribute.
10174 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10175 (movsi_internal): Add LIW attributes.
10176 (andsi3): Likewise.
10177 (iorsi3): Likewise.
10178 (xorsi3): Likewise.
10179 (addsi3): Separate register and immediate alternatives.
10180 Add LIW attributes.
10181 (subsi3): Likewise.
10183 (aslsi3): Likewise.
10184 (lshrsi3): Likewise.
10185 (ashrsi3): Likewise.
10186 (liw): New pattern.
10187 * config/mn10300/mn10300.c (liw_op_names): New
10188 (mn10300_print_operand): Handle 'W' operand descriptor.
10189 (extract_bundle): New function.
10190 (check_liw_constraints): New function.
10191 (liw_candidate): New function.
10192 (mn10300_bundle_liw): New function.
10193 (mn10300_reorg): New function.
10194 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10195 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10196 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10197 __LIW__ or __NO_LIW__.
10198 * doc/invoke.texi: Describe the -mliw command line option.
10200 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10202 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10203 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10204 pthread_mutex_unlock): Remove.
10205 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10206 * config/pa/t-pa64: Likewise.
10207 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10208 shared libc if not linking against libpthread.
10209 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10211 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10214 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10215 on 10.6 and later to ensure that we always use the unwinder from
10216 the system. Only add -no_compact_unwind when tarteting darwin
10219 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10222 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10223 (vec_interleave_lowv2sf): Ditto.
10224 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10225 (vec_extract_oddv2sf): Ditto.
10227 2011-02-07 Mike Stump <mikestump@comcast.net>
10230 Add __ieee_divdc3 entry point.
10231 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10233 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10234 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10235 * config/darwin.c (darwin_rename_builtins): Add.
10236 * config/darwin-protos.h (darwin_rename_builtins): Add.
10238 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10241 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10244 2011-02-07 Mike Stump <mikestump@comcast.net>
10246 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10248 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10251 * config/avr/libgcc.S (exit): Move .endfunc
10253 2011-02-07 Richard Guenther <rguenther@suse.de>
10255 PR tree-optimization/47615
10256 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10257 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10258 (run_scc_vn): Initialize it.
10259 (visit_reference_op_load): Use it.
10260 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10262 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10264 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10265 DImode trapping arithmetic libfuncs.
10267 2011-02-07 Richard Guenther <rguenther@suse.de>
10269 PR tree-optimization/47621
10270 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10272 (execute_update_addresses_taken): ... here. Make it more
10273 conservative in what we accept.
10275 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10277 * config/sparc/freebsd.h (ASM_SPEC): Define.
10278 * config/sparc/vxworks.h (ASM_SPEC): Define.
10280 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10282 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10284 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10286 * doc/invoke.texi: Remove reference to compiler internals from
10287 user documentation.
10289 * reg-notes.def: Remove REG_VALUE_PROFILE.
10290 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10292 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10294 PR middle-end/47610
10295 * varasm.c (default_section_type_flags): If decl is NULL,
10296 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10298 2011-02-05 Jie Zhang <jie@codesourcery.com>
10301 * web.c (entry_register): Don't clobber the number of the
10302 first uninitialized reference in used[].
10304 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10306 PR tree-optimization/46194
10307 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10308 (build_classic_dist_vector_1): Do not represent classic distance
10309 vectors when the access functions are variating in different loops.
10311 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10313 * config/mips/iris6.opt: New.
10314 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10316 2011-02-04 Richard Henderson <rth@redhat.com>
10317 Steve Ellcey <sje@cup.hp.com>
10320 * config/ia64/predicates.md (mux1_brcst_element): New.
10321 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10322 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10323 (ia64_unpack_sign): New.
10324 (ia64_expand_unpack): Rewrite using new routines.
10325 (ia64_expand_widen_sum): Ditto.
10326 (ia64_expand_dot_prod_v8qi): Ditto.
10327 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10328 routines, add endian check.
10329 (pmpy2_even): Rename from pmpy2_r, add endian check.
10330 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10331 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10332 (vec_widen_smult_hi_v4hi): Ditto.
10333 (vec_widen_umult_lo_v4hi): Ditto.
10334 (vec_widen_umult_hi_v4hi): Ditto.
10335 (mulv2si3): Change endian checks.
10336 (sdot_prodv4hi): Rewrite with new calls.
10337 (udot_prodv4hi): New.
10338 (vec_pack_ssat_v4hi): Add endian check.
10339 (vec_pack_usat_v4hi): Ditto.
10340 (vec_pack_ssat_v2si): Ditto.
10341 (max1_even): Rename from max1_r, add endian check.
10342 (max1_odd): Rename from max1_l, add endian check.
10343 (*mux1_rev): Format change.
10344 (*mux1_mix): Ditto.
10345 (*mux1_shuf): Ditto.
10346 (*mux1_alt): Ditto.
10347 (*mux1_brcst_v8qi): Use new predicate.
10348 (vec_extract_evenv8qi): Remove endian check.
10349 (vec_extract_oddv8qi): Ditto.
10350 (vec_interleave_lowv4hi): Format change.
10351 (vec_interleave_highv4hi): Ditto.
10352 (mix2_even): Rename from mix2_r, add endian check.
10353 (mix2_odd): Rename from mux2_l, add endian check.
10354 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10355 (vec_extract_evenodd_helper): Format change.
10356 (vec_extract_evenv4hi): Remove endian check.
10357 (vec_extract_oddv4hi): Remove endian check.
10358 (vec_interleave_lowv2si): Format change.
10359 (vec_interleave_highv2si): Format change.
10360 (vec_initv2si): Remove endian check.
10361 (vecinit_v2si): Add endian check.
10362 (reduc_splus_v2sf): Add endian check.
10363 (reduc_smax_v2sf): Ditto.
10364 (reduc_smin_v2sf): Ditto.
10365 (vec_initv2sf): Remove endian check.
10366 (fpack): Add endian check.
10367 (fswap): Add endian check.
10368 (vec_interleave_highv2sf): Add endian check.
10369 (vec_interleave_lowv2sf): Add endian check.
10370 (fmix_lr): Add endian check.
10371 (vec_setv2sf): Format change.
10372 (*vec_extractv2sf_0_be): Use shift to extract operand.
10373 (*vec_extractv2sf_1_be): New.
10374 (vec_pack_trunc_v4hi): Add endian check.
10375 (vec_pack_trunc_v2si): Format change.
10377 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10379 PR inline-asm/23200
10380 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10381 do bb, locus and block comparison and disallow loads if it is not set.
10382 (stmt_is_replaceable_p): New function.
10383 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10385 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10386 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10388 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10390 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10392 * config/rs6000/xilinx.opt: New.
10393 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10395 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10397 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10399 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10401 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10402 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10403 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10404 secondary_reload_info, xtensa_secondary_reload): Remove.
10405 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10406 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10407 (xtensa_preferred_reload_class): Make static. Change return and
10408 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10409 Use CONST_DOUBLE_P predicate.
10410 (xtensa_preferred_output_reload_class): New function.
10411 (xtensa_secondary_reload): Make static.
10413 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10415 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10416 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10417 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10419 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10421 PR middle-end/31490
10422 * output.h (SECTION_RELRO): Define.
10423 (SECTION_MACH_DEP): Adjust.
10424 (get_variable_section): New prototype.
10425 * varpool.c (varpool_finalize_named_section_flags): New function.
10426 (varpool_assemble_pending_decls): Call it.
10427 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10428 * cgraphunit.c (cgraph_output_in_order): Call
10429 varpool_finalize_named_section_flags.
10430 * varasm.c (get_section): Allow section flags conflicts between
10431 relro and read-only sections if the section hasn't been declared yet.
10432 Set SECTION_OVERRIDE after diagnosing section type conflict.
10433 (get_variable_section): No longer static.
10434 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10435 readonly sections that need relocations.
10436 (decl_readonly_section_1): New function.
10437 (decl_readonly_section): Use it.
10440 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10441 Steve Ellcey <sje@cup.hp.com>
10443 PR middle-end/31490
10444 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10445 if section attribute used.
10447 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10449 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10450 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10451 (darwin_init_sections): Remove assertion.
10453 2011-02-03 Nick Clifton <nickc@redhat.com>
10455 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10457 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10458 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10459 instead of "n" and "pz".
10460 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10463 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10466 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10467 fma, expand FMA_EXPR as fma{,f,l} call.
10470 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10471 copy them into a unsigned char variable and pass address of it to
10472 lto_output_data_stream.
10475 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10476 around backend_init_target and lang_dependent_init_target calls.
10477 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10478 (verify_cgraph_node): Don't call set_cfun here. Use
10479 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10480 Set error_found for incorrectly represented calls to thunks.
10482 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10485 PR rtl-optimization/43494
10486 * rtl.h (for_each_inc_dec_fn): New type.
10487 (for_each_inc_dec): Declare.
10488 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10489 (for_each_inc_dec_find_inc_dec): New fn.
10490 (for_each_inc_dec_find_mem): New fn.
10491 (for_each_inc_dec): New fn.
10492 * dse.c (struct insn_size): Remove.
10493 (replace_inc_dec, replace_inc_dec_mem): Remove.
10494 (emit_inc_dec_insn_before): New fn.
10495 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10496 (canon_address): Pass mem modes to cselib_lookup.
10497 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10498 (cselib_lookup_from_insn): Likewise.
10499 (cselib_subst_to_values): Likewise.
10500 * cselib.c (find_slot_memmode): New var.
10501 (cselib_find_slot): New fn. Use it instead of
10502 htab_find_slot_with_hash everywhere.
10503 (entry_and_rtx_equal_p): Use find_slot_memmode.
10504 (autoinc_split): New fn.
10505 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10506 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10507 Deal with autoinc. Special-case recursion into MEMs.
10508 (cselib_hash_rtx): Likewise.
10509 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10510 address and MEM modes.
10511 (cselib_subst_to_values): Add memmode, pass it on.
10513 (cselib_lookup): Add memmode argument, pass it on.
10514 (cselib_lookup_from_insn): Add memmode.
10515 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10516 (struct cselib_record_autoinc_data): New.
10517 (cselib_record_autoinc_cb): New fn.
10518 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10519 mode to cselib_lookup. Reset autoinced REGs here instead of...
10520 (cselib_process_insn): ... here.
10521 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10523 (add_uses): Likewise, also to cselib_subst_to_values.
10524 (add_stores): Likewise.
10525 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10526 cselib_subst_to_values.
10527 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10528 * gcse.c (do_local_cprop): Adjusted.
10529 * postreload.c (reload_cse_simplify_set): Adjusted.
10530 (reload_cse_simplify_operands): Adjusted.
10531 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10533 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10535 PR tree-optimization/45122
10536 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10537 unsafe assumptions when there's more than one loop exit.
10539 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10542 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10543 Document using vector double with the load/store builtins, and
10544 that the load/store builtins always use Altivec instructions.
10546 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10547 to use altivec memory instructions, even on VSX.
10548 (vector_altivec_store_<mode>): Ditto.
10550 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10553 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10554 V2DF, V2DI support to load/store overloaded builtins.
10556 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10557 altivec load/store builtins for V2DF/V2DI types.
10559 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10560 set avoid indexed addresses on power6 if -maltivec.
10561 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10562 vector_altivec_load/vector_altivec_store builtins.
10563 (altivec_expand_st_builtin): Ditto.
10564 (altivec_expand_builtin): Add VSX memory builtins.
10565 (rs6000_init_builtins): Add V2DI types to internal types.
10566 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10567 load/store builtins.
10568 (rs6000_address_for_altivec): Insure memory address is appropriate
10571 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10572 vec_vsx_ld and vec_vsx_st.
10573 (vsx_store_<mode>): Ditto.
10575 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10576 variables to hold long long types for VSX vector memory builtins.
10577 (RS6000_BTI_unsigned_long_long): Ditto.
10578 (long_long_integer_type_internal_node): Ditti.
10579 (long_long_unsigned_type_internal_node): Ditti.
10581 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10582 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10583 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10585 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10587 (vec_vsx_st): Ditto.
10589 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10591 * config/pa/pa-hpux10.opt: New.
10592 * config/hpux11.opt (pthread): New Driver option.
10593 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10594 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10596 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10598 * config/ia64/vms.opt: New.
10599 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10601 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10604 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10605 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10606 generator functions.
10607 (vsx_floatuns<VSi><mode>2): Ditto.
10608 (vsx_fix_trunc<mode><VSi>2): Ditto.
10609 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10611 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10613 * config/i386/djgpp.opt (posix): New Driver option.
10615 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10617 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10618 Move to the unsupported targets list.
10620 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10622 PR rtl-optimization/47525
10623 * df-scan.c: Update copyright years.
10624 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10625 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10627 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10629 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10630 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10631 (ASM_OUTPUT_ASCII): Remove.
10632 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10634 2011-02-02 Jeff Law <law@redhat.com>
10636 PR middle-end/47543
10637 * reload.c (find_reloads_address): Handle reg+d address where both
10638 components are invalid by reloading the entire address.
10640 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10641 Richard Guenther <rguenther@suse.de>
10643 PR tree-optimization/40979
10645 * passes.c (init_optimization_passes): After LIM call copy_prop
10646 and DCE to clean up.
10647 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10649 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10651 PR tree-optimization/47576
10652 PR tree-optimization/47555
10653 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10654 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10655 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10656 * tree-scalar-evolution.c (follow_ssa_edge): Use
10657 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10659 2011-02-02 Richard Guenther <rguenther@suse.de>
10661 PR tree-optimization/47566
10662 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10664 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10668 * tree-inline.c (declare_return_variable): Remove unused caller
10673 * tree-flow-inline.h (clear_is_used, is_used_p): New.
10674 * cfgexpand.c (account_used_vars_for_block): Use them.
10675 * tree-nrv.c (tree_nrv): Likewise.
10676 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10677 (dump_scope_block): Likewise.
10678 (remove_unused_locals): Likewise.
10682 * tree-inline.c (declare_return_variable): Add result decl to
10683 local decls only once.
10684 * gimple-low.c (record_vars_into): Mark newly-created variables
10687 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10693 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10695 (no_real_insns_p, schedule_block, set_priorities): Drop special
10696 treatment of boundary debug insns.
10697 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10698 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10699 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10700 (BOUNDARY_DEBUG_INSN_P): Likewise.
10701 (SCHEDULE_DEBUG_INSN_P): Likewise.
10702 * sched-rgn.c (init_ready_list): Drop special treatment of
10703 boundary debug insns.
10704 * final.c (rest_of_clean_state): Clear notes' BB.
10706 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10708 * config/openbsd.opt (assert=): New Driver option.
10710 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10712 * config/i386/nto.opt: New.
10713 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10715 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10717 * config/i386/netware.opt: New.
10718 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10720 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10722 * config/interix.opt (posix): New Driver option.
10724 2011-02-01 DJ Delorie <dj@redhat.com>
10726 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10728 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10731 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10733 PR tree-optimization/47561
10734 * toplev.c (process_options): Print the Graphite flags. Add
10735 flag_loop_flatten to the list of options requiring Graphite.
10737 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10739 * config/i386/cygming.opt (posix): New Driver option.
10741 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10743 * config/arm/vxworks.opt: New.
10744 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10746 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10748 * config/alpha/elf.opt: New.
10749 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10750 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10752 2011-02-01 Richard Guenther <rguenther@suse.de>
10754 PR tree-optimization/47559
10755 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10756 store-motion on references that can throw.
10758 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
10760 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10761 * tree-pass.h (TDF_CSELIB): New macro.
10762 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10763 cselib_lookup): Check for it rather than for TDF_DETAILS.
10765 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
10768 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10769 is HOST_BIT_BUCKET.
10771 * opts.c (finish_options): Don't add x_aux_base_name if it is
10774 2011-02-01 Richard Guenther <rguenther@suse.de>
10776 PR tree-optimization/47555
10778 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
10780 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10782 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
10785 * config/lm32/t-lm32: Add multilib for all CPU options.
10787 2011-02-01 Richard Guenther <rguenther@suse.de>
10789 PR tree-optimization/47541
10790 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10791 sure to have a field at offset zero.
10793 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10795 * config/arc/arc.opt (EB, EL): New Driver options.
10797 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10799 * config/alpha/osf5.opt: New.
10800 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10802 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10804 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10806 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
10808 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10809 -floop-interchange.
10810 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10811 is an alias of -floop-interchange and that it requires the
10812 Graphite infrastructure.
10813 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10814 flag_loop_interchange based on the value of flag_tree_loop_linear.
10816 2011-01-31 Jakub Jelinek <jakub@redhat.com>
10817 Richard Guenther <rguenther@suse.de>
10819 PR tree-optimization/47538
10820 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
10821 type instead of r1type, except for comparisons. For right
10822 shifts and comparisons punt if there are mismatches in
10823 sizetype vs. non-sizetype types.
10825 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10827 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10830 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10832 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
10834 * configure: Regenerate.
10836 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10838 * configure.ac (gcc_cv_ld_static_option): Define.
10839 (gcc_cv_ld_dynamic_option): Define.
10840 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
10842 (HAVE_LD_STATIC_DYNAMIC): Update message.
10843 (LD_STATIC_OPTION): Define.
10844 (LD_DYNAMIC_OPTION): Define.
10845 * configure: Regenerate.
10846 * config.in: Regenerate.
10847 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
10848 HAVE_LD_STATIC_DYNAMIC]: Use them.
10850 2011-01-31 Nick Clifton <nickc@redhat.com>
10852 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
10853 registers inside interrupt handlers if the handler is not a leaf
10856 2011-01-31 Nick Clifton <nickc@redhat.com>
10858 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
10859 reg_renumber returning an INVALID_REGNUM.
10861 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10864 * doc/install.texi: Document host options discarded when cross
10865 configuring target libraries.
10867 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10870 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10873 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10875 (no_real_insns_p, schedule_block, set_priorities): Drop special
10876 treatment of boundary debug insns.
10877 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10878 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10879 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10880 (BOUNDARY_DEBUG_INSN_P): Likewise.
10881 (SCHEDULE_DEBUG_INSN_P): Likewise.
10882 * sched-rgn.c (init_ready_list): Drop special treatment of
10883 boundary debug insns.
10884 * final.c (rest_of_clean-state): Clear notes' BB.
10886 2011-01-31 Alan Modra <amodra@gmail.com>
10888 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
10889 toc relative expressions as we do in print_operand_address.
10891 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
10893 * doc/extend.texi: Follow spelling conventions.
10894 * doc/invoke.texi: Fix a typo.
10896 2011-01-30 Joseph Myers <joseph@codesourcery.com>
10898 * config/hpux11.opt: New.
10899 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
10900 ia64*-*-hpux*): Use hpux11.opt.
10902 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
10904 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
10907 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10909 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
10912 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10914 * doc/install.texi (Binaries): Remove outdated reference for
10915 Motorola 68HC11/68HC12 downloads.
10917 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10919 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
10922 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
10925 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
10928 2011-01-28 Ahmad Sharif <asharif@google.com>
10930 * value-prof.c (check_counter): Corrected error message.
10932 2011-01-29 Jie Zhang <jie@codesourcery.com>
10934 * config/arm/arm.c (arm_legitimize_reload_address): New.
10935 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10936 arm_legitimize_reload_address.
10937 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
10939 2011-01-28 Ian Lance Taylor <iant@google.com>
10941 * godump.c (go_define): Ignore macros whose definitions include
10942 two adjacent operands.
10944 2011-01-28 Jakub Jelinek <jakub@redhat.com>
10947 * varasm.c (force_const_mem): Store copy of x in desc->constant
10948 instead of x itself.
10949 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
10950 itself into REG_EQUAL note.
10952 2011-01-28 Joseph Myers <joseph@codesourcery.com>
10954 * config/freebsd.opt (posix, rdynamic): New Driver options.
10956 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10958 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
10959 -Bstatic/-Bdynamic.
10960 * configure: Regenerate.
10962 2011-01-27 Joseph Myers <joseph@codesourcery.com>
10964 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
10965 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
10967 2011-01-27 Anatoly Sokolov <aesok@post.ru>
10969 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
10970 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
10971 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10972 (s390_preferred_reload_class): Make static. Change return and
10973 'rclass' argument type to reg_class_t.
10975 2011-01-27 Jan Hubicka <jh@suse.cz>
10977 PR middle-end/46949
10978 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
10979 (process_function_and_variable_attributes): Check defined weakrefs.
10981 2011-01-27 Martin Jambor <mjambor@suse.cz>
10983 PR tree-optimization/47228
10984 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
10985 build_ref_for_offset.
10987 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10989 * config/spu/spu-elf.h (ASM_SPEC): Remove.
10991 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
10993 PR rtl-optimization/46856
10994 * postreload.c (reload_combine_recognize_const_pattern): Do not
10995 separate cc0 setter and user on cc0 targets.
10997 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11000 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11001 passed a VOID_TYPE expression, immediately emit an error and
11002 return error_mark_node.
11004 2011-01-26 Jeff Law <law@redhat.com>
11006 PR rtl-optimization/47464
11007 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11008 rather than may_trap_p as needed.
11010 2011-01-26 DJ Delorie <dj@redhat.com>
11012 PR rtl-optimization/46878
11013 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11014 setter/user dependency as well.
11016 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11018 PR rtl-optimization/44469
11019 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11020 after removing trivially dead basic blocks.
11022 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11024 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11025 * config/frv/frv.h (LINK_SPEC): Likewise.
11026 * config/i386/netware.h (LINK_SPEC): Likewise.
11027 * config/m68k/linux.h (ASM_SPEC): Likewise.
11028 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11029 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11030 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11031 * config/sparc/linux.h (ASM_SPEC): Likewise.
11032 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11033 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11035 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11037 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11038 * config/frv/frv.h (ASM_SPEC): Likewise.
11039 * config/m68k/linux.h (ASM_SPEC): Likewise.
11040 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11041 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11042 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11043 * config/sparc/linux.h (ASM_SPEC): Likewise.
11044 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11045 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11047 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11049 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11050 * config/frv/frv.h (LINK_SPEC): Likewise.
11051 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11053 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11055 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11056 * config/frv/frv.h (ASM_SPEC): Likewise.
11057 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11058 * config/m68k/linux.h (ASM_SPEC): Likewise.
11059 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11060 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11061 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11062 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11063 * config/sparc/linux.h (ASM_SPEC): Likewise.
11064 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11065 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11066 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11068 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11071 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11073 (vec_extract_evenodd_help): Ditto.
11074 (vec_extract_evenv4hi): Ditto.
11075 (vec_extract_oddv4hi): Ditto.
11076 (vec_interleave_lowv2si): Ditto.
11077 (vec_interleave_highv2si): Ditto.
11078 (vec_extract_evenv2si): Ditto.
11079 (vec_extract_oddv2si: Ditto.
11080 (vec_pack_trunc_v2si): Ditto.
11082 2011-01-22 Jan Hubicka <jh@suse.cz>
11085 * cgraph.h (cgraph_local_info): New field can_change_signature.
11086 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11087 signature can change.
11088 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11090 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11091 (cgraph_function_versioning): We can not change signature of functions
11092 that don't allow that.
11093 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11094 (lto_input_node): Likewise.
11095 * ipa-inline.c (compute_inline_parameters): Compute
11096 local.can_change_signature.
11097 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11098 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11099 functions that can not change signature.
11100 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11101 init_cumulative_args): Do not use local calling conventions
11102 for functions that can not change signature.
11104 2011-01-22 Jan Hubicka <jh@suse.cz>
11106 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11108 2011-01-26 Richard Guenther <rguenther@suse.de>
11110 PR tree-optimization/47190
11111 * cgraphunit.c (process_common_attributes): New function.
11112 (process_function_and_variable_attributes): Use it.
11114 2011-01-26 Richard Guenther <rguenther@suse.de>
11117 * cgraphbuild.c (record_eh_tables): Record reference to personality
11120 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11123 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11124 non-debug insns from moving up.
11126 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11129 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11130 t-dlldir{,-x} fragment for build and add it to tmake_file.
11131 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11132 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11133 * config/i386/t-dlldir: New file.
11134 (SHLIB_DLLDIR): Define.
11135 * config/i386/t-dlldir-x: New file.
11136 (SHLIB_DLLDIR): Define.
11137 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11138 (SHLIB_INSTALL): Use it.
11140 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11143 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11144 lower bound of the allowed Thumb-2 coprocessor load/store
11145 index range to -256. Add explaining comment.
11147 2011-01-25 Ian Lance Taylor <iant@google.com>
11149 * godump.c (go_define): Improve lexing of macro expansion to only
11150 accept expressions which match Go spec.
11152 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11155 * tree.c (handle_dll_attribute): Handle it.
11156 * doc/extend.texi (@item dllexport): Mention it.
11157 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11159 2011-01-25 Ian Lance Taylor <iant@google.com>
11161 PR tree-optimization/26854
11162 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11163 (decl_jump_unsafe): Move higher in file, with no other change.
11164 (bind): Set has_jump_unsafe_decl if appropriate.
11165 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11166 (check_earlier_gotos): Likewise.
11167 (c_check_switch_jump_warnings): Likewise.
11169 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11171 * doc/invoke.texi (Warning Options): Add missing hyphen.
11172 (-fprofile-dir): Minor grammatical fixes.
11173 (-fbranch-probabilities): Likewise.
11175 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11179 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11181 (no_real_insns_p, schedule_block, set_priorities): Drop special
11182 treatment of boundary debug insns.
11183 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11184 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11185 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11186 (BOUNDARY_DEBUG_INSN_P): Likewise.
11187 (SCHEDULE_DEBUG_INSN_P): Likewise.
11188 * sched-rgn.c (init_ready_list): Drop special treatment of
11189 boundary debug insns.
11190 * final.c (rest_of_clean-state): Clear notes' BB.
11192 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11194 * Makefile.in (LAMBDA_H): Removed.
11195 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11196 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11197 lambda-trans.o, and tree-loop-linear.o.
11198 (lto-symtab.o): Remove dependence on LAMBDA_H.
11199 (tree-loop-linear.o): Remove rule.
11200 (lambda-mat.o): Same.
11201 (lambda-trans.o): Same.
11202 (lambda-code.o): Same.
11203 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11204 (tree-vect-slp.o): Same.
11205 * hwint.h (gcd): Moved here.
11206 (least_common_multiple): Same.
11207 * lambda-code.c: Removed.
11208 * lambda-mat.c: Removed.
11209 * lambda-trans.c: Removed.
11210 * lambda.h: Removed.
11211 * tree-loop-linear.c: Removed.
11212 * lto-symtab.c: Do not include lambda.h.
11213 * omega.c (gcd): Removed.
11214 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11215 * tree-data-ref.c (print_lambda_vector): Moved here.
11216 (lambda_vector_copy): Same.
11217 (lambda_matrix_copy): Same.
11218 (lambda_matrix_id): Same.
11219 (lambda_vector_first_nz): Same.
11220 (lambda_matrix_row_add): Same.
11221 (lambda_matrix_row_exchange): Same.
11222 (lambda_vector_mult_const): Same.
11223 (lambda_vector_negate): Same.
11224 (lambda_matrix_row_negate): Same.
11225 (lambda_vector_equal): Same.
11226 (lambda_matrix_right_hermite): Same.
11227 * tree-data-ref.h: Do not include lambda.h.
11228 (lambda_vector): Moved here.
11229 (lambda_matrix): Same.
11230 (dependence_level): Same.
11231 (lambda_transform_legal_p): Removed declaration.
11232 (lambda_collect_parameters): Same.
11233 (lambda_compute_access_matrices): Same.
11234 (lambda_vector_gcd): Same.
11235 (lambda_vector_new): Same.
11236 (lambda_vector_clear): Same.
11237 (lambda_vector_lexico_pos): Same.
11238 (lambda_vector_zerop): Same.
11239 (lambda_matrix_new): Same.
11240 * tree-flow.h (least_common_multiple): Removed declaration.
11241 * tree-parloops.c (lambda_trans_matrix): Moved here.
11242 (LTM_MATRIX): Same.
11243 (LTM_ROWSIZE): Same.
11244 (LTM_COLSIZE): Same.
11245 (LTM_DENOMINATOR): Same.
11246 (lambda_trans_matrix_new): Same.
11247 (lambda_matrix_vector_mult): Same.
11248 (lambda_transform_legal_p): Same.
11249 * tree-pass.h (pass_linear_transform): Removed declaration.
11250 * tree-ssa-loop.c (tree_linear_transform): Removed.
11251 (gate_tree_linear_transform): Removed.
11252 (pass_linear_transform): Removed.
11253 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11254 flag_loop_interchange.
11256 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11258 PR tree-optimization/47265
11259 PR tree-optimization/47443
11260 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11261 if name still has some uses.
11263 2011-01-25 Martin Jambor <mjambor@suse.cz>
11265 PR tree-optimization/47382
11266 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11267 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11269 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11271 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11272 sjlj_except_unwind_info.
11274 2011-01-25 Richard Guenther <rguenther@suse.de>
11276 PR tree-optimization/47426
11277 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11278 visible functions results escape.
11280 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11283 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11284 (arm_get_frame_offsets): Use it.
11286 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11287 Jakub Jelinek <jakub@redhat.com>
11289 PR tree-optimization/47271
11290 * tree-if-conv.c (bb_postdominates_preds): New.
11291 (if_convertible_bb_p): Call bb_postdominates_preds.
11292 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11293 (predicate_scalar_phi): Call bb_postdominates_preds.
11295 2011-01-25 Nick Clifton <nickc@redhat.com>
11297 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11298 * config/rx/rx.c (rx_function_value): Likewise.
11299 (rx_promote_function_mode): Likewise.
11300 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11301 in order to make it legitimate.
11302 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11303 make sure that the first operand is the same as the result register.
11304 (addsi3_unspec): Delete.
11305 (subdi3): Do not accept immediate operands.
11306 (subdi3_internal): Likewise.
11308 2011-01-25 Jeff Law <law@redhat.com>
11310 PR rtl-optimization/37273
11311 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11312 handle them like argument loads from stack slots. Do not double
11313 count memory for memory constants and argument loads from stack slots.
11315 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11317 PR tree-optimization/47427
11318 PR tree-optimization/47428
11319 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11320 coalesce if the new root var would be TREE_READONLY.
11322 2011-01-25 Richard Guenther <rguenther@suse.de>
11324 PR middle-end/47414
11325 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11326 correct type for TBAA.
11328 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11330 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11331 (close_phi_written_to_memory): Call for_each_index with
11332 dr_indices_valid_in_loop.
11334 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11336 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11337 when it is initialized.
11339 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11341 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11342 call to graphite_find_data_references_in_stmt.
11343 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11344 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11345 call to graphite_find_data_references_in_stmt.
11346 (analyze_drs_in_stmts): Same.
11347 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11348 in which the scalar analysis of indices is performed.
11349 (create_data_ref): Same. Update call to dr_analyze_indices.
11350 (find_data_references_in_stmt): Update call to create_data_ref.
11351 (graphite_find_data_references_in_stmt): Same.
11352 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11354 (create_data_ref): Same.
11355 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11356 call to create_data_ref.
11358 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11360 * graphite-sese-to-poly.c (build_poly_scop): Move
11361 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11363 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11365 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11366 VAR_DECL, PARM_DECL, and RESULT_DECL.
11368 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11370 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11371 in a reduction PBB.
11372 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11373 that have already been marked as PBB_IS_REDUCTION.
11375 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11377 * graphite-scop-detection.c (same_close_phi_node): New.
11378 (remove_duplicate_close_phi): New.
11379 (make_close_phi_nodes_unique): New.
11380 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11382 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11384 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11385 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11386 of both data references to be the same.
11388 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11390 * graphite-dependences.c (build_lexicographical_constraint): Remove
11391 the gdim parameter.
11392 (build_lexicographical_constraint): Adjust call to
11393 ppl_powerset_is_empty.
11394 (dependence_polyhedron): Same.
11395 (graphite_legal_transform_dr): Same.
11396 (graphite_carried_dependence_level_k): Same.
11397 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11399 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11401 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11403 * graphite-sese-to-poly.c
11404 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11405 (close_phi_written_to_memory): New.
11406 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11409 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11411 * doc/install.texi: Update the expected version number of PPL to 0.11.
11412 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11413 #if PPL_VERSION_MINOR < 11.
11415 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11417 * graphite-dependences.c: Include graphite-cloog-util.h.
11418 (new_poly_ddr): Inlined into dependence_polyhedron.
11419 (free_poly_ddr): Moved close by new_poly_ddr.
11420 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11421 Early return NULL when ppl_powerset_is_empty returns true.
11422 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11423 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11424 (graphite_legal_transform_dr): Call new_poly_ddr.
11425 (graphite_carried_dependence_level_k): Same.
11426 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11427 (dot_transformed_deps_stmt_1): Removed.
11428 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11429 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11430 (dot_deps_1): Call dot_deps_2.
11431 * Makefile.in (graphite-dependences.o): Add missing dependence on
11432 graphite-cloog-util.h.
11434 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11436 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11437 (build_lexicographical_constraint): Same.
11438 (dependence_polyhedron_1): Same.
11439 (graphite_legal_transform_dr): Same.
11440 (graphite_carried_dependence_level_k): Same.
11441 * graphite-ppl.c (ppl_powerset_is_empty): New.
11442 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11443 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11445 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11447 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11448 the "a followed by b" relation and document it.
11450 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11452 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11453 iteration when the bag of constraints is empty.
11455 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11457 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11459 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11461 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11462 nest and two loop depths as parameters.
11463 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11464 lst_perfect_nestify.
11466 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11468 * graphite-dependences.c (print_pddr): Call
11469 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11473 * graphite-ppl.c (debug_gmp_value): New.
11474 * graphite-ppl.h (debug_gmp_value): Declared.
11476 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11478 * doc/install.texi: Document availability of cloog-0.16.
11480 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11482 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11483 invalid postdominance info.
11485 2011-01-24 Jan Hubicka <jh@suse.cz>
11488 * doc/extend.texi (weak pragma): Drop claim that it must
11489 appear before definition.
11490 * varasm.c (merge_weak, declare_weak): Only sanity check
11491 that DECL is not output at a time it is declared weak.
11493 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11495 * machmode.def: Fixed comments.
11497 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11499 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11501 2011-01-24 Paul Koning <ni1d@arrl.net>
11503 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11506 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11509 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11510 (block_info): Add scanned and prev.
11511 (move_or_delete_vzeroupper_2): Return if the basic block
11512 has been scanned and the upper 128bit state is unchanged
11513 from the last scan.
11514 (move_or_delete_vzeroupper_1): Return true if the exit
11516 (move_or_delete_vzeroupper): Visit basic blocks using the
11517 work-list based algorithm based on vt_find_locations in
11520 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11522 2011-01-24 Nick Clifton <nickc@redhat.com>
11524 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11525 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11526 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11527 then define __v850e1__.
11528 * doc/invoke.texi: Document -mv850es.
11530 2011-01-24 Richard Henderson <rth@redhat.com>
11532 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11533 compound unordered comparisons.
11534 * config/rx/rx.c (rx_split_fp_compare): Remove.
11535 * config/rx/rx-protos.h: Update.
11536 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11537 (cbranchsf4): Don't call rx_split_fp_compare.
11538 (*cbranchsf4): Use rx_split_cbranch.
11539 (*cmpsf): Don't accept "i" constraint.
11540 (*conditional_branch): Only valid after reload.
11541 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11543 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11546 * config/rs6000/altivec.md (vector constant splitters): Add
11547 support for creating vector single precision constants if -mvsx is
11548 used and we would create the constant using Altivec primitives.
11550 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11551 Richard Sandiford <rdsandiford@googlemail.com>
11553 PR rtl-optimization/47166
11554 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11555 mechanism for PRE_MODIFY and POST_MODIFY.
11556 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11559 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11561 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11563 2011-01-22 Jan Hubicka <jh@suse.cz>
11566 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11568 2011-01-22 Jan Hubicka <jh@suse.cz>
11570 PR tree-optimization/43884
11572 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11573 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11575 2011-01-22 Anatoly Sokolov <aesok@post.ru>
11577 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11578 * config/s390/s390.c (s390_register_move_cost,
11579 s390_memory_move_cost): New.
11580 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11582 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11584 PR middle-end/47401
11585 * except.c (sjlj_assign_call_site_values): Move setting the
11586 crtl->uses_eh_lsda flag to ...
11587 (sjlj_mark_call_sites): ... here.
11588 (sjlj_emit_function_enter): Support NULL dispatch label.
11589 (sjlj_build_landing_pads): In a function with no landing pads
11590 that still has must-not-throw regions, generate code to register
11591 a personality function with empty LSDA.
11593 2011-01-21 Richard Henderson <rth@redhat.com>
11595 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11597 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11599 * compare-elim.c: New file.
11600 * Makefile.in (OBJS-common): Add it.
11601 (compare-elim.o): New.
11602 * common.opt (fcompare-elim): New.
11603 * opts.c (default_options_table): Add OPT_fcompare_elim.
11604 * tree-pass.h (pass_compare_elim_after_reload): New.
11605 * passes.c (init_optimization_passes): Add it.
11606 * recog.h: Protect against re-inclusion.
11607 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11608 * doc/invoke.texi (-fcompare-elim): Document it.
11609 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11610 * doc/tm.texi: Rebuild.
11612 2011-01-22 Nick Clifton <nickc@redhat.com>
11614 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11615 rx_split_fp_compare.
11617 2011-01-22 Nick Clifton <nickc@redhat.com>
11619 * config/rx/rx.md (UNSPEC_CONST): New.
11620 (deallocate_and_return): Wrap the amount popped off the stack in
11621 an UNSPEC_CONST in order to stop it being rejected by
11622 -mmax-constant-size.
11623 (pop_and_return): Add a "(return)" rtx.
11624 (call): Drop the immediate operand.
11625 (call_internal): Likewise.
11626 (call_value): Likewise.
11627 (call_value_internal): Likewise.
11628 (sibcall_internal): Likewise.
11629 (sibcall_value_internal): Likewise.
11630 (sibcall): Likewise. Generate an explicit call using
11632 (sibcall_value): Likewise.
11633 (mov<>): FAIL if a constant operand is not legitimate.
11634 (addsi3_unpsec): New pattern.
11636 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11637 (ok_for_max_constant): New function.
11638 (gen_safe_add): New function.
11639 (rx_expand_prologue): Use gen_safe_add.
11640 (rx_expand_epilogue): Likewise.
11641 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11644 2011-01-21 Jeff Law <law@redhat.com>
11646 PR tree-optimization/47053
11647 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11648 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11649 statements are deleted.
11650 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11651 is nonempty, then purge dead edges and cleanup the CFG.
11653 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11656 Temporarily revert:
11657 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11659 * tree-dfa.c (create_var_ann): Mark variable as used.
11661 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11663 PR middle-end/45566
11664 * except.c (convert_to_eh_region_ranges): Emit queued no-region
11665 notes from other section in hot/cold partitioning even if
11666 last_action is -3. Increment call_site_base.
11668 PR rtl-optimization/47366
11669 * fwprop.c (forward_propagate_into): Return bool. If
11670 any changes are made, -fnon-call-exceptions is used and
11671 REG_EH_REGION note is present, call purge_dead_edges
11672 and return true if it purged anything.
11673 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11674 any EH edges were purged.
11676 2011-01-21 Jeff Law <law@redhat.com>
11678 PR rtl-optimization/41619
11679 * caller-save.c (setup_save_areas): Break out code to determine
11680 which hard regs are live across calls by examining the reload chains
11681 so that it is always used.
11682 Eliminate code which checked REG_N_CALLS_CROSSED.
11684 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11686 PR tree-optimization/47355
11687 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11688 NOP has non-debug uses beyond PHIs in new_bb.
11690 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11693 * cfgexpand.c (account_used_vars_for_block): Only account vars
11694 that are annotated as used.
11695 (estimated_stack_frame_size): Don't set TREE_USED.
11696 * tree-dfa.c (create_var_ann): Mark variable as used.
11698 2011-01-21 Richard Guenther <rguenther@suse.de>
11700 PR middle-end/47395
11701 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11703 2011-01-21 Richard Guenther <rguenther@suse.de>
11705 PR tree-optimization/47365
11706 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11707 (vn_reference_lookup_pieces): Adjust.
11708 (vn_reference_lookup): Likewise.
11709 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11710 (vn_reference_lookup_3): Only look through kills if in
11711 VN_WALKREWRITE mode.
11712 (vn_reference_lookup_pieces): Adjust.
11713 (vn_reference_lookup): Likewise.
11714 (visit_reference_op_load): Likewise.
11715 (visit_reference_op_store): Likewise.
11716 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11717 (compute_avail): Likewise.
11718 (eliminate): Likewise.
11720 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11722 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11723 DECL_IGNORED_P non-reg vars if they are used.
11725 PR tree-optimization/47391
11726 * varpool.c (const_value_known_p): Return false if
11729 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
11732 * config/i386/i386.c (ix86_local_alignment): Handle
11733 case for va_list_type_node is nil.
11734 (ix86_canonical_va_list_type): Likewise.
11736 2011-01-21 Alan Modra <amodra@gmail.com>
11738 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11739 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11741 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11743 * config/arm/arm.md (define_attr type): Rename f_load
11744 and f_store to f_fpa_load and f_fpa_store. Update.
11745 (write_conflict): Deal with rename fallout.
11746 (*push_fp_multi): Likewise.
11747 * config/arm/fpa.md (f_load): Use f_fpa_load.
11748 (f_store): Use f_fpa_store.
11749 (*movsf_fpa): Likewise.
11750 (*movdf_fpa): Likewise.
11751 (*movxf_fpa): Likewise.
11752 (*thumb2_movsf_fpa): Likewise.
11753 (*thumb2_movdf_fpa): Likewise.
11754 (*thumb2_movxf_fpa): Likewise.
11755 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11756 f_loadd and f_stored.
11757 (*thumb2_movdi_vfp): Likewise.
11758 (*thumb2_movsf_vfp): Fix attribute to f_loads.
11759 (*thumb2_movsi_vfp): Likewise.
11760 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11761 Use f_loads instead of f_load.
11762 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11764 2011-01-20 Anatoly Sokolov <aesok@post.ru>
11766 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11767 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11768 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11769 (xtensa_mode_dependent_address_p): New function.
11770 (constantpool_address_p): Make static. Change return type to bool.
11771 Change argument type to const_rtx. Use CONST_INT_P predicate.
11773 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
11776 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11778 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11781 * cfgexpand.c (expand_debug_expr): Instead of generating
11782 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11785 2011-01-20 Richard Guenther <rguenther@suse.de>
11787 PR middle-end/47370
11788 * tree-inline.c (remap_gimple_op_r): Recurse manually for
11789 the pointer operand of MEM_REFs.
11791 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11793 PR tree-optimization/46130
11794 * ipa-split.c (consider_split): If return_bb contains non-virtual
11795 PHIs other than for retval or if split_function would not adjust it,
11798 2011-01-20 Richard Guenther <rguenther@suse.de>
11800 PR tree-optimization/47167
11801 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11802 Revert previous change, only avoid enumeral type changes.
11804 2011-01-19 Mike Stump <mikestump@comcast.net>
11806 * doc/tm.texi.in (BRANCH_COST): Englishify.
11807 * doc/tm.texi (BRANCH_COST): Likewise.
11809 2011-01-19 Dodji Seketeli <dodji@redhat.com>
11812 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
11813 (gen_scheduled_generic_parms_dies): New functions.
11814 (gen_struct_or_union_type_die): Schedule template parameters DIEs
11815 generation for the end of CU compilation.
11816 (dwarf2out_finish): Generate template parameters DIEs here.
11818 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11821 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
11822 debug bind stmt on merge edges.
11824 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11828 * function.c (instantiate_expr): Instantiate incoming rtl of
11829 implicit arguments, and recurse on VALUE_EXPRs.
11830 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
11831 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
11833 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11835 * c-parser.c (c_parser_for_statement): Initialize
11836 collection_expression.
11838 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11840 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
11842 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11844 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
11845 (LINK_SHLIB_SPEC): Don't use %(link_path).
11846 (SUBTARGET_EXTRA_SPECS): Remove link_path.
11848 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11850 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
11851 (NO_SHARED_LIB_SUPPORT): Remove.
11852 (LINK_SHLIB_SPEC): Remove one conditional definition.
11854 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11856 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
11858 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
11859 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
11860 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
11861 %{call_shared} and conditionals on these options not being passed.
11862 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
11865 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11867 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
11870 * ipa-split.c: Spelling fixes.
11872 2011-01-19 Richard Henderson <rth@redhat.com>
11874 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
11875 (*mulsi3): Likewise.
11877 * longlong.h [__mn10300__] (count_leading_zeros): New.
11878 [__mn10300__] (umul_ppmm, smul_ppmm): New.
11879 [__mn10300__] (add_ssaaaa, subddmmss): New.
11880 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
11881 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
11883 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11885 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
11887 2011-01-19 Richard Henderson <rth@redhat.com>
11889 * config/mn10300/mn10300.md (addsi3_flags): New.
11890 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
11891 (subsi3_flags, subc_internal, subdi3): New.
11892 (subdi3_internal, *subdi3_degenerate): New.
11893 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
11895 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
11896 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
11897 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
11898 * config/mn10300/mn10300-protos.h: Update.
11899 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
11900 (return_ret): Likewise. Rename from return_internal_regs.
11901 (return_internal): Remove.
11903 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
11904 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
11905 (mn10300_legitimate_constant_p): Likewise.
11906 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
11907 (mn10300_frame_size): New.
11908 (mn10300_expand_prologue): Use it.
11909 (mn10300_expand_epilogue): Likewise.
11910 (mn10300_initial_offset): Likewise.
11911 * config/mn10300/mn10300-protos.h: Update.
11912 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
11913 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
11914 (prologue, epilogue, return_internal): Tidy output code.
11915 (mn10300_store_multiple_operation, return): Likewise.
11916 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
11917 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
11918 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
11919 (load_pic, am33_load_pic): New.
11920 (mn10300_load_pic0, mn10300_load_pic1): New.
11922 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
11923 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
11924 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
11925 (cc_flags_for_mode, cc_flags_for_code): New.
11926 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
11927 overflow flag is not valid. Validate that the flags we need
11928 for the comparison are valid.
11929 (mn10300_output_cmp): Remove.
11930 (mn10300_output_add): New.
11931 (mn10300_select_cc_mode): Use cc_flags_for_code.
11932 (mn10300_split_cbranch): New.
11933 (mn10300_match_ccmode): New.
11934 (mn10300_split_and_operand_count): New.
11935 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
11937 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
11938 (addsi3): ... here. Use mn10300_output_add.
11939 (*addsi3_flags): New.
11940 (*am33_subsi3, *mn10300_subsi3): Merge...
11941 (subsi3): ... here. Use attribute isa.
11942 (*subsi3_flags): New.
11943 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
11945 (*am33_andsi3, *mn10300_andsi3): Merge...
11946 (andsi3): ... here.
11947 (*andsi3_flags): New.
11948 (andsi3 splitters): New.
11949 (*am33_iorsi3, *mn10300_iorsi3): Merge...
11950 (iorsi3): ... here.
11951 (*iorsi3_flags): New.
11952 (*am33_xorsi3, *mn10300_xorsi3): Merge...
11953 (xorsi3): ... here.
11954 (*xorsi3_flags): New.
11955 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
11956 (one_cmplsi2): ... here.
11957 (*one_cmplsi2_flags): New.
11958 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
11959 instead of "dax" in constraints. Use mn10300_split_cbranch.
11960 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
11961 use matching constraints to eliminate a self-comparison.
11962 (*integer_conditional_branch): Rename from integer_conditional_branch.
11963 Use int_mode_flags to match CC_REG.
11964 (*cbranchsi4_btst, *btstsi): New.
11965 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
11966 mn10300_split_cbranch.
11967 (*am33_cmpsf): Rename from am33_cmpsf.
11968 (*float_conditional_branch): Rename from float_conditional_branch.
11969 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
11970 (zero_extendqisi2): ... here.
11971 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
11972 (zero_extendhisi2): ... here.
11973 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
11974 (extendqisi2): ... here.
11975 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
11976 (extendhisi2): ... here.
11977 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
11978 (ashlsi3): ... here.
11979 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
11980 (lshrsi3): ... here.
11981 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
11982 (ashrsi3): ... here.
11983 (consecutive add peephole): Remove.
11984 * config/mn10300/predicates.md (label_ref_operand): New.
11985 (int_mode_flags): New.
11986 (CCZN_comparison_operator): New.
11988 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
11989 (throughput_42_latency_43): New reservation.
11990 (mulsidi3, umulsidi3): New expanders.
11991 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
11992 the MDR register to allocation; separately allocate the low and
11993 high parts of the DImode result.
11994 (umulsidi3_internal): Similarly.
11995 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
11996 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
11997 (udivsi3, umodsi3): Remove.
11998 (udivmodsi4, divmodsi4): New expanders.
11999 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12000 (*divmodsi4): Simiarly.
12001 (ext_internal): New.
12003 * config/mn10300/constraints.md ("z"): New constraint.
12004 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12005 (FIXED_REGISTERS): Don't fix MDR.
12006 (CALL_USED_REGSITERS): Reformat nicely.
12007 (REG_ALLOC_ORDER): Add MDR.
12008 (enum regclass): Add MDR_REGS.
12009 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12010 (IRA_COVER_CLASSES): Add MDR_REGS.
12011 (REGNO_REG_CLASS): Handle MDR_REG.
12012 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12013 (mn10300_register_move_cost): Likewise.
12014 * config/mn10300/mn10300.md (MDR_REG): New.
12015 (*movsi_internal): Handle moves to/from MDR_REGS.
12017 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12019 (mn10300_secondary_reload): Tidy combination reload classes.
12020 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12021 addresses for AM33. Allow symbolic offsets for reg+imm.
12022 (mn10300_regno_in_class_p): New.
12023 (mn10300_legitimize_reload_address): New.
12024 * config/mn10300/mn10300.h (enum reg_class): Remove
12025 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12026 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12027 SP_OR_GENERAL_REGS.
12028 (REG_CLASS_NAMES): Update to match.
12029 (REG_CLASS_CONTENTS): Likewise.
12030 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12031 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12032 (REGNO_IN_RANGE_P): Remove.
12033 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12034 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12035 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12036 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12037 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12038 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12039 (REGNO_GENERAL_P): New.
12040 (HAVE_POST_MODIFY_DISP): New.
12041 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12042 (LEGITIMIZE_RELOAD_ADDRESS): New.
12043 * config/mn10300/mn10300-protos.h: Update.
12045 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12046 DATA_REGS for AM33 stack-pointer destination.
12047 (mn10300_preferred_output_reload_class): Likewise.
12048 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12049 into a form appropriate for ...
12050 (TARGET_SECONDARY_RELOAD): New.
12051 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12052 * config/mn10300/mn10300-protos.h: Update.
12053 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12054 reload_insi; use the "A" constraint for the scratch; handle AM33
12055 moves of sp to non-address registers.
12057 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12058 (*movqi_internal): ... here.
12059 (*am33_movhi, *mn10300_movhi): Merge into...
12060 (*movhi_internal): ... here.
12061 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12062 as the source/destination of moves from/to SP.
12063 (movsf): Only allow for AM33-2.
12064 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12065 any integer constant constraint. Only allow for AM33-2. Tidy
12066 all of the alternative outputs.
12067 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12068 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12070 (udivsi3, umodsi3): New patterns for MN103 only.
12072 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12074 * doc/tm.texi.in: Spell out that a lack of register class unions
12076 * doc/tm.texi: Regenerate.
12078 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12080 PR rtl-optimization/47337
12081 * dce.c (check_argument_store): New function.
12082 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12084 PR tree-optimization/47290
12085 * tree-eh.c (infinite_empty_loop_p): New function.
12086 (cleanup_empty_eh): Use it.
12088 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12091 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12092 (a64_expand_widen_sum): Ditto.
12093 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12094 (vec_extract_evenodd_help): Ditto.
12095 (vec_extract_evenv4hi): Ditto.
12096 (vec_extract_oddv4hi): Ditto.
12097 (vec_extract_evenv2si): Ditto.
12098 (vec_extract_oddv2si): Ditto.
12099 (vec_extract_evenv2sf): Ditto.
12100 (vec_extract_oddv2sf): Ditto.
12101 (vec_pack_trunc_v4hi: Ditto.
12102 (vec_pack_trunc_v2si): Ditto.
12103 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12104 (vec_interleave_highv8qi): Ditto.
12106 (vec_extract_oddv8qi): Ditto.
12107 (vec_interleave_lowv4hi): Ditto.
12108 (vec_interleave_highv4hi): Ditto.
12109 (vec_interleave_lowv2si): Ditto.
12110 (vec_interleave_highv2si): Ditto.
12112 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12114 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12115 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12116 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12117 (pa_c_mode_for_suffix): New.
12118 (TARGET_EXPAND_BUILTIN): Define.
12119 (TARGET_C_MODE_FOR_SUFFIX): Define.
12120 (pa_builtins): Define.
12121 (pa_init_builtins): Register __float128 type and init new support
12123 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12124 * config/pa/quadlib.c (_U_Qfcopysign): New.
12126 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12128 PR middle-end/46894
12129 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12130 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12133 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12135 PR tree-optimization/47179
12136 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12137 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12139 2011-01-18 Richard Guenther <rguenther@suse.de>
12141 PR rtl-optimization/47216
12142 * emit-rtl.c: Include tree-flow.h.
12143 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12144 of replicating it with different semantics.
12145 * Makefile.in (emit-rtl.o): Adjust.
12147 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12149 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12150 (cortex_a9_dp): Handle neon types correctly.
12152 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12154 PR rtl-optimization/47299
12155 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12156 subtarget. Use normal multiplication if both operands are constants.
12157 * expmed.c (expand_widening_mult): Don't try to optimize constant
12158 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12161 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12163 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12164 spacing after 'e.g.', typos, comma, hyphenation.
12166 2011-01-17 Richard Henderson <rth@redhat.com>
12168 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12169 (rx_restricted_mem_operand): New.
12170 (rx_shift_operand): Use register_operand.
12171 (rx_source_operand, rx_compare_operand): Likewise.
12172 * config/rx/rx.md (addsi3_flags): New expander.
12173 (adddi3): Rewrite as expander.
12174 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12175 (subsi3_flags): New expander.
12176 (subdi3): Rewrite as expander.
12177 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12179 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12180 (rx_init_builtins): Remove sat builtin.
12181 (rx_expand_builtin): Likewise.
12182 * config/rx/rx.md (ssaddsi3): New.
12183 (*sat): Rename from sat. Represent the CC_REG input.
12185 * config/rx/predicates.md (rshift_operator): New.
12186 * config/rx/rx.c (rx_expand_insv): Remove.
12187 * config/rx/rx-protos.h: Update.
12188 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12189 operand to the canonical position.
12190 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12191 (*bitclr, *bitclr_in_memory): Similarly.
12192 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12193 (insv): Retain the zero_extract in the expansion.
12195 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12196 (bswaphi2, bitinvert, revw): Likewise.
12198 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12199 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12200 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12201 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12202 (bitset, bitset_in_memory): Likewise.
12203 (bitinvert, bitinvert_in_memory): Likewise.
12204 (bitclr, bitclr_in_memory): Likewise.
12205 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12206 (rx_strend, rx_cmpstrn): Likewise.
12207 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12208 (bitop peep2 patterns): Remove.
12210 * config/rx/rx.c (rx_match_ccmode): New.
12211 * config/rx/rx-protos.h: Update.
12212 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12213 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12214 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12215 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12216 (fix_truncsfsi2, floatsisf2): Likewise.
12217 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12218 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12219 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12220 (*subsi3_flags, *xorsi3_flags): New.
12222 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12224 * config/rx/rx.c (rx_print_operand): Remove workaround for
12225 unsplit comparison operations.
12227 * config/rx/rx.md (movsicc): Split after reload.
12228 (*movsicc): Merge *movsieq and *movsine via match_operator.
12229 (*stcc): New pattern.
12231 * config/rx/rx.c (rx_float_compare_mode): Remove.
12232 * config/rx/rx.h (rx_float_compare_mode): Remove.
12233 * config/rx/rx.md (cstoresi4): Split after reload.
12234 (*sccc): New pattern.
12236 * config/rx/predicates.md (label_ref_operand): New.
12237 (rx_z_comparison_operator): New.
12238 (rx_zs_comparison_operator): New.
12239 (rx_fp_comparison_operator): New.
12240 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12241 Validate that the flags are set properly for the comparison.
12242 (rx_gen_cond_branch_template): Remove.
12243 (rx_cc_modes_compatible): Remove.
12244 (mode_from_flags): New.
12245 (flags_from_code): Rename from flags_needed_for_conditional.
12246 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12247 (rx_select_cc_mode): Likewise.
12248 (rx_split_fp_compare): New.
12249 (rx_split_cbranch): New.
12250 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12251 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12252 (*cbranchsf4): Similarly.
12253 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12254 match_operator and rx_split_cbranch.
12255 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12256 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12257 (*cmpsi): Rename from cmpsi.
12258 (*tstsi): Rename from tstsi.
12259 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12260 (*conditional_branch): Rename from conditional_branch.
12261 (*reveresed_conditional_branch): Remove.
12262 (b<code>): Remove expander.
12263 * config/rx/rx-protos.h: Update.
12265 * config/rx/rx.c (rx_compare_redundant): Remove.
12266 * config/rx/rx.md (cmpsi): Don't use it.
12267 * config/rx/rx-protos.h: Update.
12269 * config/rx/rx-modes.def (CC_F): New mode.
12270 * config/rx/rx.c (rx_select_cc_mode): New.
12271 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12272 * config/rx/rx-protos.h: Update.
12274 2011-01-17 Richard Henderson <rth@redhat.com>
12276 * except.c (dump_eh_tree): Fix stray ; after for statement.
12278 2011-01-17 Richard Guenther <rguenther@suse.de>
12280 PR tree-optimization/47313
12281 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12282 handling before copying the body. Properly deal with
12283 by-reference result in SSA form.
12285 2011-01-17 Ian Lance Taylor <iant@google.com>
12288 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12289 (struct_value_alias_set): Don't define.
12290 (sparc_option_override): Don't set sparc_sr_alias_set and
12291 struct_value_alias_set.
12292 (save_or_restore_regs): Use gen_frame_mem rather than calling
12294 (sparc_struct_value_rtx): Likewise.
12296 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12299 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12300 (_mm_maskstore_pd): Likewise.
12301 (_mm_maskload_ps): Likewise.
12302 (_mm_maskstore_ps): Likewise.
12303 (_mm256_maskload_pd): Change mask to __m256i.
12304 (_mm256_maskstore_pd): Likewise.
12305 (_mm256_maskload_ps): Likewise.
12306 (_mm256_maskstore_ps): Likewise.
12308 * config/i386/i386-builtin-types.def: Updated.
12309 (ix86_expand_special_args_builtin): Likewise.
12311 * config/i386/i386.c (bdesc_special_args): Update
12312 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12313 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12314 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12315 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12317 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12318 Use <avxpermvecmode> on mask register.
12319 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12321 2011-01-17 Olivier Hainque <hainque@adacore.com>
12322 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12323 Eric Botcazou <ebotcazou@adacore.com>
12326 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12327 if <= USHRT_MAX in 32-bit mode.
12329 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12331 * doc/install.texi (Configuration, Specific): Wrap long
12332 lines in examples. Allow line wrapping in long options
12333 and URLs where beneficial for PDF output.
12335 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12337 * config/mips/mips.c (mips_classify_symbol): Don't return
12338 SYMBOL_PC_RELATIVE for nonlocal labels.
12340 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12342 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12344 2011-01-15 Jan Hubicka <jh@suse.cz>
12346 PR tree-optimization/47276
12347 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12348 declarations as needed.
12350 2011-01-15 Martin Jambor <mjambor@suse.cz>
12352 * common.opt (fdevirtualize): New flag.
12353 * doc/invoke.texi (Option Summary): Document it.
12354 * opts.c (default_options_table): Add devirtualize flag.
12355 * ipa-prop.c (detect_type_change): Return immediately if
12356 devirtualize flag is not set.
12357 (detect_type_change_ssa): Likewise.
12358 (compute_known_type_jump_func): Likewise.
12359 (ipa_analyze_virtual_call_uses): Likewise.
12361 2011-01-14 Martin Jambor <mjambor@suse.cz>
12363 PR tree-optimization/45934
12364 PR tree-optimization/46302
12365 * ipa-prop.c (type_change_info): New type.
12366 (stmt_may_be_vtbl_ptr_store): New function.
12367 (check_stmt_for_type_change): Likewise.
12368 (detect_type_change): Likewise.
12369 (detect_type_change_ssa): Likewise.
12370 (compute_complex_assign_jump_func): Check for dynamic type change.
12371 (compute_complex_ancestor_jump_func): Likewise.
12372 (compute_known_type_jump_func): Likewise.
12373 (compute_scalar_jump_functions): Likewise.
12374 (ipa_analyze_virtual_call_uses): Likewise.
12375 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12377 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12379 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12380 * config/i386/i386.opt (msse5): New Alias.
12382 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12384 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12385 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12386 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12387 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12389 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12391 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12393 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12394 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12395 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12396 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12398 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12400 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12402 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12404 2011-01-14 Mike Stump <mikestump@comcast.net>
12406 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12407 * config/fr30/fr30.md: Likweise
12408 (movsi_push): Likewise.
12409 (movsi_pop): Likewise.
12410 (enter_func): Likewise.
12411 * config/moxie/moxie.md (movsi_push): Likewise.
12412 (movsi_pop): Likewise.
12414 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12416 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12417 %{no_archive} %{exact_version}.
12418 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12419 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12420 %{no_archive} %{exact_version}.
12421 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12422 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12423 * config/mips/vxworks.h: Likewise.
12425 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12427 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12429 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12431 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12432 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12434 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12436 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12439 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12441 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12443 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12444 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12446 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12447 Don't handle -shlib.
12449 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12451 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12452 (CC1_SPEC): Don't handle -profile.
12454 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12456 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12457 * config/mips/mips.h (CC1_SPEC): Likewise.
12459 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12461 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12462 * config/mips/mips.h (CC1_SPEC): Likewise.
12464 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12466 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12467 * config/m32r/linux.h (LINK_SPEC): Likewise.
12468 * config/mips/linux.h (LINK_SPEC): Likewise.
12469 * config/mips/linux64.h (LINK_SPEC): Likewise.
12470 * config/sparc/linux.h (LINK_SPEC): Likewise.
12471 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12472 LINK_SPEC): Likewise.
12473 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12475 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12477 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12479 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12481 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12483 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12484 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12486 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12488 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12490 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12492 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12493 supports -Bstatic/-Bdynamic.
12494 * configure: Regenerate.
12496 2011-01-14 Jan Hubicka <jh@suse.cz>
12497 Jack Howarth <howarth@bromo.med.uc.edu>
12500 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12501 when checking debug_info_level. Test write_symbols instead of
12502 debug_hooks->var_location when setting flag_var_tracking_uninit.
12504 2011-01-14 Richard Guenther <rguenther@suse.de>
12506 PR tree-optimization/47179
12507 * target.def (ref_may_alias_errno): New target hook.
12508 * targhooks.h (default_ref_may_alias_errno): Declare.
12509 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12510 (default_ref_may_alias_errno): New function.
12511 * target.h (struct ao_ref_s): Declare.
12512 * tree-ssa-alias.c: Include target.h.
12513 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12514 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12515 (targhooks.o): Likewise.
12516 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12517 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12519 2011-01-14 Richard Guenther <rguenther@suse.de>
12521 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12523 2011-01-14 Richard Guenther <rguenther@suse.de>
12525 PR tree-optimization/47280
12526 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12527 return CFG changes.
12528 (tree_ssa_forward_propagate_single_use_vars): Deal with
12529 CFG changes from associate_plusminus.
12531 2011-01-14 Richard Guenther <rguenther@suse.de>
12533 PR middle-end/47281
12535 2011-01-11 Richard Guenther <rguenther@suse.de>
12537 PR tree-optimization/46076
12538 * tree-ssa.c (useless_type_conversion_p): Conversions from
12539 unprototyped to empty argument list function types are useless.
12541 2011-01-14 Richard Guenther <rguenther@suse.de>
12543 PR tree-optimization/47286
12544 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12546 2011-01-14 Martin Jambor <mjambor@suse.cz>
12548 PR middle-end/46823
12549 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12551 2011-01-13 Anatoly Sokolov <aesok@post.ru>
12553 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12554 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12555 * config/xtensa/xtensa.c (xtensa_libcall_value,
12556 xtensa_function_value_regno_p): New functions.
12557 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12559 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
12562 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12564 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12565 New function prototype.
12566 * config/i386/winnt.c (i386_pe_assemble_visibility):
12567 Warn only if attribute was specified by user.
12569 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12572 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12574 (floatunsdidf2_fcfidu): Ditto.
12576 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12578 * config/s390/s390.c (print_operand_address): Replace 'error' with
12579 'output_operand_lossage'.
12580 (print_operand): Likewise.
12582 2011-01-13 Jeff Law <law@redhat.com>
12584 PR rtl-optimization/39077
12585 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12586 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12587 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12588 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12589 * gcse.c (prune_insertions_deletions): New function.
12590 (compute_pre_data): Use it.
12592 2011-01-13 Dodji Seketeli <dodji@redhat.com>
12595 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12597 (prune_unused_types_mark): Use it.
12599 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
12601 PR rtl-optimization/45352
12602 * sel-sched.c: Update copyright years.
12603 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12604 in the advancing loop when we have issued issue_rate insns.
12606 2011-01-12 Richard Henderson <rth@redhat.com>
12608 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12609 (TARGET_MD_ASM_CLOBBERS): New.
12611 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12612 (TARGET_DELEGITIMIZE_ADDRESS): New.
12614 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12615 (clzsi2, *bsch): New patterns.
12617 * config/mn10300/mn10300.md (INT): New mode iterator.
12618 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12620 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12621 flag_split_wide_types.
12623 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12624 (mn10300_trampoline_init): Rewrite without a template, an immediate
12625 load and a direct branch.
12626 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12628 2011-01-12 Anatoly Sokolov <aesok@post.ru>
12630 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12631 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12632 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12633 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12635 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
12638 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12641 2011-01-12 Jan Hubicka <jh@suse.cz>
12644 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12645 (PLUGIN_COND_CLOSE): New macro.
12646 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12648 2011-01-12 Richard Guenther <rguenther@suse.de>
12651 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12652 register variables in a MEM_REF.
12654 2011-01-12 Joseph Myers <joseph@codesourcery.com>
12656 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12657 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12658 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12659 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12660 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12661 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12662 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12663 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12664 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12665 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12666 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12667 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12668 * config/gnu-user.h: New. Copied from linux.h.
12669 (LINUX_TARGET_STARTFILE_SPEC): Rename to
12670 GNU_USER_TARGET_STARTFILE_SPEC.
12671 (LINUX_TARGET_ENDFILE_SPEC): Rename to
12672 GNU_USER_TARGET_ENDFILE_SPEC.
12673 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12674 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12675 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12676 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12677 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12678 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12679 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12680 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12681 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12682 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12683 * config/arm/linux-eabi.h (CC1_SPEC): Use
12684 GNU_USER_TARGET_CC1_SPEC.
12685 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12686 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12687 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12688 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12689 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12690 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12691 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12692 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12694 2011-01-12 Richard Guenther <rguenther@suse.de>
12697 * doc/invoke.texi (ffast-math): Document it is turned on
12700 2011-01-12 Jan Hubicka <jh@suse.cz>
12702 PR tree-optimization/47233
12703 * opts.c (common_handle_option): Disable ipa-reference with profile
12706 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12708 * c-parser.c (c_parser_objc_at_property_declaration): Improved
12711 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12713 * c-parser.c (c_lex_one_token): Updated and reindented some
12714 comments. No changes in code.
12716 2011-01-11 Ian Lance Taylor <iant@google.com>
12718 * godump.c (go_output_var): Don't output the variable if there is
12719 already a type with the same name.
12721 2011-01-11 Ian Lance Taylor <iant@google.com>
12723 * godump.c (go_format_type): Don't generate float80.
12725 2011-01-11 Richard Henderson <rth@redhat.com>
12727 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12728 declaration. Rewrite for both speed and size.
12729 (mn10300_address_cost_1): Remove.
12730 (mn10300_register_move_cost): New.
12731 (mn10300_memory_move_cost): New.
12732 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12733 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12734 extensions, shifts, BSWAP, CLZ.
12735 (mn10300_wide_const_load_uses_clr): Remove.
12736 (TARGET_REGISTER_MOVE_COST): New.
12737 (TARGET_MEMORY_MOVE_COST): New.
12738 * config/mn10300/mn10300-protos.h: Update.
12739 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12741 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12742 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12743 * config/mn10300/mn10300-protos.h: Update.
12744 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12745 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12746 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12747 (*test_int_bitfield, *test_byte_bitfield): Remove.
12748 (*bit_test, *subreg_bit_test): Remove.
12749 * config/mn10300/predicates.md (const_8bit_operand): Remove.
12751 * config/mn10300/constraints.md ("c"): Rename from "A".
12752 ("A", "D"): New constraint letters.
12753 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12754 (fmssf4, fnmasf4, fnmssf4): Likewise.
12756 * config/mn10300/mn10300.md (isa): New attribute.
12757 (enabled): New attribute.
12759 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12760 (abssf2, negsf2): Define only for hardware fp.
12761 (sqrtsf2): Reformat.
12762 (addsf3, subsf3, mulsf3): Merge expander and insn.
12764 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12765 (DEBUGGER_AUTO_OFFSET): Remove.
12766 (DEBUGGER_ARG_OFFSET): Remove.
12768 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12769 Emit register stores with the same offsets as the hardware.
12770 (mn10300_store_multiple_operation): Don't check that the register
12771 save offsets are monotonic.
12772 * config/mn10300/mn10300-protos.h: Update.
12774 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12776 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12777 in terms of the value on the stack, not the MDR register.
12779 2011-01-11 Jan Hubicka <jh@suse.cz>
12783 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12784 (symbol_alias_set_destroy, symbol_alias_set_contains,
12785 propagate_aliases_backward): Declare.
12786 * lto-streamer-out.c (struct sets): New sturcture.
12787 (trivally_defined_alias): New function.
12788 (output_alias_pair_p): Rewrite.
12789 (output_unreferenced_globals): Fix output of alias pairs.
12790 (produce_symtab): Likewise.
12791 * ipa.c (function_and_variable_visibility): Set weak alias destination
12793 * varasm.c (symbol_alias_set_t): Remove.
12794 (symbol_alias_set_destroy): Export.
12795 (propagate_aliases_forward, propagate_aliases_backward): New functions
12797 (compute_visible_aliases): ... this one; remove.
12798 (trivially_visible_alias): New
12799 (trivially_defined_alias): New.
12800 (remove_unreachable_alias_pairs): Rewrite.
12801 (finish_aliases_1): Reorganize code checking if alias is defined.
12802 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12805 2011-01-11 Richard Guenther <rguenther@suse.de>
12807 PR tree-optimization/46076
12808 * tree-ssa.c (useless_type_conversion_p): Conversions from
12809 unprototyped to empty argument list function types are useless.
12811 2011-01-11 Richard Guenther <rguenther@suse.de>
12813 PR middle-end/45235
12814 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12815 volatile MEMs as MEM_READONLY_P.
12817 2011-01-11 Richard Guenther <rguenther@suse.de>
12819 PR tree-optimization/47239
12820 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
12822 2011-01-11 Jeff Law <law@redhat.com>
12824 PR tree-optimization/47086
12825 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
12826 IVs from statements that might throw.
12828 2011-01-10 Jan Hubicka <jh@suse.cz>
12831 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
12833 2011-01-10 Jan Hubicka <jh@suse.cz>
12836 * profile.c (read_profile_edge_counts): Ignore profile inconistency
12837 when correcting profile.
12839 2011-01-10 Jan Hubicka <jh@suse.cz>
12842 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
12843 DECL_FINI_PRIORITY.
12844 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
12845 Restore DECL_FINI_PRIORITY.
12847 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12849 * doc/gimple.texi: Fix quoting of multi-word return values in
12850 @deftypefn statements. Ensure presence of return value. Wrap
12851 overlong @deftypefn lines.
12852 (is_gimple_operand, is_gimple_min_invariant_address): Remove
12853 descriptions of removed functions.
12854 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
12855 of multi-word return value in @deftypefn statement.
12857 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12859 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
12860 (Conditional Expressions, Logical Operators)
12861 (Statement and operand traversals): Do not indent smallexample
12862 code. Fix duplicate function argument in example.
12864 2011-01-10 Jeff Law <law@redhat.com>
12866 PR tree-optimization/47141
12867 * ipa-split.c (split_function): Handle case where we are
12868 returning a value and the return block has a virtual operand phi.
12870 2011-01-10 Jan Hubicka <jh@suse.cz>
12872 PR tree-optimization/47234
12873 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
12874 (pass_feedback_split_functions): Declare.
12875 * passes.c (init_optimization_passes): Add ipa-split as subpass of
12877 * ipa-split.c (gate_split_functions): Update comments; disable
12878 split-functions for profile_arc_flag and branch_probabilities.
12879 (gate_feedback_split_functions): New function.
12880 (execute_feedback_split_functions): New function.
12881 (pass_feedback_split_functions): New global var.
12883 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
12886 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
12887 calling gimple_call_set_cannot_inline.
12889 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
12891 * config/darwin-sections.def: Remove unused section.
12893 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
12896 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
12898 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
12901 * c-parser.c (c_parser_declaration_or_fndef): Improved
12904 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
12906 * config/i386/winnt.c (i386_pe_start_function): Make sure
12907 to switch back to function's section.
12909 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
12913 * plugin.c: Move include of dlfcn.h from here...
12914 * system.h: ... to here.
12916 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12918 * doc/cpp.texi (C++ Named Operators): Fix markup for header
12920 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
12921 two extra empty pages in PDF output.
12923 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
12926 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
12927 for error recovery purposes behave as if it was not specified so
12928 that the default type is usd.
12930 2011-01-07 Jan Hubicka <jh@suse.cz>
12932 PR tree-optmization/46469
12933 * ipa.c (function_and_variable_visibility): Clear needed flags on
12934 nodes with external decls; handle weakrefs merging correctly.
12936 2011-01-07 Joseph Myers <joseph@codesourcery.com>
12938 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
12941 2011-01-07 Jan Hubicka <jh@suse.cz>
12943 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
12944 and no longer claim that gold is required for linker plugin.
12945 * configure: Regenerate.
12946 * gcc.c (PLUGIN_COND): New macro.
12947 (LINK_COMMAND_SPEC): Use it.
12948 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
12949 * config.in (HAVE_LTO_PLUGIN): New.
12950 * configure.ac (--with-lto-plugin): New parameter; autodetect
12953 2011-01-07 Jan Hubicka <jh@suse.cz>
12955 PR tree-optimization/46367
12956 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
12957 when we can update original.
12958 (cgraph_mark_inline_edge): Sanity check.
12959 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
12961 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12963 * config/spu/spu.h (ASM_COMMENT_START): Define.
12965 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
12968 * gcc.c (%>S): New.
12969 (SWITCH_KEEP_FOR_GCC): Likewise.
12970 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
12971 (do_spec_1): Handle "%>".
12973 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
12975 2011-01-07 Jakub Jelinek <jakub@redhat.com>
12978 * config/i386/i386.c (ix86_delegitimize_address): If
12979 simplify_gen_subreg fails, return orig_x.
12982 * value-prof.c (gimple_stringop_fixed_value): Handle
12983 lhs of the call properly.
12985 2011-01-07 Jan Hubicka <jh@suse.cz>
12988 * lto-opt.c (lto_reissue_options): Set flag_shlib.
12990 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12992 * target.def (function_switched_text_sections): New hook.
12993 * doc/tm.texi: Regenerated.
12994 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12995 * final.c (default_function_switched_text_sections): New.
12996 (final_scan_insn): Call function_switched_text_sections when a
12997 mid-function section change occurs.
12998 * output.h (default_function_switched_text_sections): Declare.
12999 * config/darwin-protos.h (darwin_function_switched_text_sections):
13001 * config/darwin.c (darwin_function_switched_text_sections): New.
13002 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13004 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13006 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13007 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13008 the secondary code fragment when outputting for DWARF == 2.
13010 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13012 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13013 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13015 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13016 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13018 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13021 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13022 when it is not empty.
13024 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13027 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13028 (case ${target}): Add btver1.
13029 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13030 -march=native recognize btver1 processors.
13031 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13032 btver1 def_and_undef
13033 * config/i386/i386.c (struct processor_costs btver1_cost): New
13035 (m_BTVER1): New definition.
13036 (m_AMD_MULTIPLE): Includes m_BTVER1.
13037 (initial_ix86_tune_features): Add btver1 tune.
13038 (processor_target_table): Add btver1 entry.
13039 (static const char *const cpu_names): Add btver1 entry.
13040 (software_prefetching_beneficial_p): Add btver1.
13041 (ix86_option_override_internal): Add btver1 instruction sets.
13042 (ix86_issue_rate): Add btver1.
13043 (ix86_adjust_cost): Add btver1.
13044 * config/i386/i386.h (TARGET_BTVER1): New definition.
13045 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13046 (enum processor_type): Add PROCESSOR_BTVER1.
13047 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13049 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13052 * config/i386/i386.c (legitimize_tls_address)
13053 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13054 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13055 (tls_initial_exec_64_sun): New pattern.
13057 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13059 * doc/invoke.texi (Overall Options): Improve wording and markup
13060 of the description of -wrapper.
13062 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13064 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13065 rdynamic, threads): New Driver options.
13067 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13070 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13071 if coming from .tdata.
13072 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13074 2011-01-06 Jan Hubicka <jh@suse.cz>
13077 * collect2.c (main): Do not enable LTOmode when plugin is active.
13079 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13082 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13083 --version output if supported.
13084 * configure: Regenerate.
13086 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13088 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13091 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13094 * c-convert.c (convert): When converting a complex expression
13095 other than COMPLEX_EXPR to a different complex type, ensure
13096 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13097 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13098 when converting COMPLEX_TYPE.
13100 2011-01-06 Ira Rosen <irar@il.ibm.com>
13102 PR tree-optimization/47139
13103 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13104 only the last reduction value is used outside the loop. Update
13107 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13109 * config/rtems.opt: New.
13110 * config.gcc (*-*-rtems*): Use rtems.opt.
13112 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13114 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13115 processors do not support 3DNow instructions.
13117 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13119 * config/spu/spu.c (spu_option_override): Set parameter
13120 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13122 2011-01-05 Jan Hubicka <jh@suse.cz>
13124 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13125 at the command line.
13127 2011-01-05 Martin Jambor <mjambor@suse.cz>
13130 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13131 deltas on streamed outgoing edges.
13132 (output_node_opt_summary): Output info for outgoing edges only when
13133 the node is in new parameter set.
13134 (output_cgraph_opt_summary): New parameter set, passed to the two
13135 aforementioned functions. Update its forward declaration and its
13138 2011-01-05 Tom Tromey <tromey@redhat.com>
13140 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13141 operator to c_finish_omp_atomic.
13142 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13143 (build_unary_op): Update.
13144 (build_modify_expr): Update.
13145 (build_asm_expr): Update.
13147 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13149 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13150 newly inserted insns.
13151 (pad_bb): Likewise.
13152 (spu_emit_branch_hint): Likewise.
13153 (insert_hbrp_for_ilb_runout): Likewise.
13154 (spu_machine_dependent_reorg): Call df_finish_pass after
13155 schedule_insns returns.
13157 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13159 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13161 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13163 PR tree-optimization/47005
13164 * tree-sra.c (struct access): Add 'non_addressable' bit.
13165 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13166 (decide_one_param_reduction): Return 0 if the parameter is passed by
13167 reference and one of the accesses in the group is non_addressable.
13169 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13171 PR tree-optimization/47056
13172 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13173 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13174 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13176 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13178 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13179 initializer. Skip view conversions from aggregate types.
13181 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13184 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13186 2011-01-04 Philipp Thomas <pth@suse.de>
13188 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13191 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13193 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13194 on empty epilogue sequences.
13196 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13198 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13199 non-static): New Driver options.
13201 2011-01-04 Jie Zhang <jie@codesourcery.com>
13204 * gcc.c (default_compilers[]): Set combinable field to 0
13205 for all assembly languages.
13207 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13209 * config/mips/loongson3a.md: New file.
13210 * config/mips/mips.md: Include loongson3a.md.
13211 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13214 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13216 PR middle-end/47017
13217 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13218 instead of convert_memory_address_addr_space on the base expression.
13220 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13222 * config/spu/spu.c (spu_option_override): Update error text
13223 for bad -march= / -mtune= values.
13225 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13227 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13228 if branch-hint optimization will be performed.
13230 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13232 PR tree-optimization/47148
13233 * ipa-split.c (split_function): Convert arguments to
13234 DECL_ARG_TYPE if possible.
13236 PR tree-optimization/47155
13237 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13238 when computing uns.
13240 PR rtl-optimization/47157
13241 * combine.c (try_combine): If undobuf.other_insn becomes
13242 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13243 and set *new_direct_jump_p too.
13245 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13247 PR tree-optimization/47021
13248 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13250 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13252 * gcc.c (process_command): Update copyright notice dates.
13253 * gcov.c (print_version): Likewise.
13254 * gcov-dump.c (print_version): Likewise.
13255 * mips-tfile.c (main): Likewise.
13256 * mips-tdump.c (main): Likewise.
13258 2011-01-03 Martin Jambor <mjambor@suse.cz>
13260 PR tree-optimization/46801
13261 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13262 aggregate fields start at byte boundary instead of the bit-field flag.
13264 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13267 * gcc.c (main): Revert revision 168407.
13269 2011-01-03 Martin Jambor <mjambor@suse.cz>
13271 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13273 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13275 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13276 vector optab to expand vector/scalar shift, update gimple to vector.
13278 2011-01-03 Martin Jambor <mjambor@suse.cz>
13280 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13283 2011-01-03 Martin Jambor <mjambor@suse.cz>
13285 PR tree-optimization/46984
13286 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13288 (cgraph_create_indirect_edge): Fixed line length.
13289 (cgraph_indirect_call_info): Declare.
13290 (cgraph_make_edge_direct) Update declaration.
13291 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13292 (cgraph_create_indirect_edge): Use it.
13293 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13295 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13296 the new thunk_delta representation.
13297 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13299 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13300 (ipa_read_indirect_edge_info): Likewise.
13301 * lto-cgraph.c (output_edge_opt_summary): New function.
13302 (output_node_opt_summary): Call it on all outgoing edges.
13303 (input_edge_opt_summary): New function.
13304 (input_node_opt_summary): Call it on all outgoing edges.
13306 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13309 * gcc.c (main): Don't check have_o when settting combine_inputs.
13311 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13313 * regrename.c: Add general comment describing the pass.
13314 (struct du_head): Remove 'length' field.
13315 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13316 (regrename_optimize): Do not sort chains. Rework comments, add others.
13317 Force renaming to the preferred class (if any) in the first pass and do
13318 not consider registers that belong to it in the second pass.
13319 (create_new_chain): Do not set 'length' field.
13320 (scan_rtx_reg): Likewise.
13322 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13324 PR tree-optimization/47140
13325 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13326 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13327 to bit_value_binop.
13329 PR rtl-optimization/47028
13330 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13331 parm_birth_insn instead of at the beginning of first bb.
13333 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13335 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13336 Remove the word "see" before "@pxref".
13337 * doc/rtl.texi: Remove the word "see" before "@pxref".
13339 2011-01-01 Jan Hubicka <jh@suse.cz>
13341 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13344 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13347 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13350 Copyright (C) 2011 Free Software Foundation, Inc.
13352 Copying and distribution of this file, with or without modification,
13353 are permitted in any medium without royalty provided the copyright
13354 notice and this notice are preserved.