1 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5 (spu_output_mi_thunk): New function.
7 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
10 targetm.asm_out.print_operand.
11 * config/sol2.c: Include target.h.
13 2011-05-04 Jan Hubicka <jh@suse.cz>
15 * ipa-inline.c (reset_edge_caches): New function.
16 (update_caller_keys): Add check_inlinablity_for; do not
17 reset edge caches; remove now unnecesary loop.
18 (update_callee_keys): Add comments; reset
19 node_growth_cache of callee.
20 (update_all_callee_keys): Likewise.
21 (inline_small_functions): Sanity check cache; update code
24 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
26 PR rtl-optimization/47612
27 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
28 as the last insn of the sequence to be moved.
30 2011-05-04 Tobias Burnus <burnus@net-b.de>
33 * doc/invoke.texi (Ofast): Document that it
34 enables Fortran's -fno-protect-parens.
36 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
38 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
40 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
42 * stor-layout.c (variable_size): Do not issue errors.
44 2011-05-04 Richard Guenther <rguenther@suse.de>
46 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
47 for array-ref indices.
48 (tree_coverage_counter_addr): Likewise.
49 (build_fn_info_type): Use size_int for index types.
50 (build_gcov_info): Likewise.
52 2011-05-04 Richard Guenther <rguenther@suse.de>
54 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
56 * c-typeck.c (really_start_incremental_init): Use bitsize_int
57 for constructor indices.
58 (push_init_level): Likewise.
60 2011-05-04 Richard Guenther <rguenther@suse.de>
62 * explow.c (promote_mode): Move variable declarations before code.
64 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
66 * tree.h (build_function_type_array): Declare.
67 (build_varargs_function_type_array): Declare.
68 (build_function_type_vec, build_varargs_function_type_vec): Define.
69 * tree.c (build_function_type_array_1): New function.
70 (build_function_type_array): New function.
71 (build_varargs_function_type_array): New function.
73 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
75 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
76 before setting STMT_VINFO_TYPE.
78 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
80 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
81 instead of spu_pass_by_reference.
83 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
85 * calls.c (emit_library_call_value_1): Invoke
86 promote_function_mode hook on libcall arguments.
87 * explow.c (promote_function_mode, promote_mode): Handle TYPE
89 * targhooks.c (default_promote_function_mode): Lisewise.
90 * config/s390/s390.c (s390_promote_function_mode): Likewise.
91 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
93 * doc/tm.texi: Document that TYPE argument might be NULL.
95 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
97 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
99 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
102 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
104 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
106 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
107 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
109 * mips-tfile.c: ... here.
110 Don't include coretypes.h, tm.h, filenames.h.
111 (saber_stop): Remove definition and all calls.
113 (__LINE__): Remove default.
114 (Size_t, Ptrdiff_t): Remove definitions.
115 Replace by size_t, ptrdiff_t.
116 [!MIPS_DEBUGGING_INFO]: Remove.
117 (SHASH_SIZE, THASH_SIZE): Remove defaults.
118 (progname): Add const.
120 Replace all uses by static.
121 (ALIGN_SYMTABLE_OFFSET): Remove default.
122 * mips-tdump.c: Don't include coretypes.h, tm.h.
123 Remove !MIPS_IS_STAB guard.
124 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
125 $(TM_H), filenames.h dependencies.
126 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
128 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
131 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
132 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
134 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
137 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
138 account and save/restore RETS.
139 (PROFILE_BEFORE_PROLOGUE): Define.
140 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
141 the push insn to use predecrement.
143 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
146 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
148 2011-05-04 Nick Clifton <nickc@redhat.com>
150 * config/mn10300/mn10300.c: Include cfgloop.h.
152 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
153 Lcc or a FLcc insn into the instruction stream.
154 (mn10300_block_contains_call): New function. Returns true if the
155 given basic block contains a CALL insn.
156 (mn10300_loop_contains_call_insn): New function. Returns true if
157 the given loop contains a CALL insn.
158 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
159 to use the SETLB and Lcc or FLcc insns.
160 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
161 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
162 * config/mn10300/mn10300.opt (msetlb): New option. Used to
163 disable the SETLB optimization.
164 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
165 __SETLB__ or __NO_SETLB__.
166 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
167 (movsf_internal): Handle MDR register.
168 (cmpsi): Make visible.
169 (setlb): New pattern.
173 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
176 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
178 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
179 (vec_concatv2di_rex64_sse): Ditto.
180 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
181 (*vec_extractv2di_1_rex64): Ditto.
184 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
186 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
188 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
190 2011-05-04 Richard Guenther <rguenther@suse.de>
192 * tree.h (int_const_binop): Remove notrunc argument.
193 * fold-const.c (int_const_binop): Remove notrunc argument. Always
194 create integer constants that are properly truncated.
195 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
196 (const_binop): Remove zero notrunc argument to int_const_binop.
197 (size_binop_loc): Likewise.
198 (fold_div_compare): Likewise.
199 (maybe_canonicalize_comparison_1): Likewise.
200 (fold_comparison): Likewise.
201 (fold_binary_loc): Likewise.
202 (multiple_of_p): Likewise.
203 * expr.c (store_constructor): Likewise.
204 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
205 (maybe_fold_stmt_addition): Likewise.
206 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
207 * stor-layout.c (layout_type): Likewise.
208 * tree-data-ref.c (tree_fold_divides_p): Likewise.
209 * tree-sra.c (build_ref_for_offset): Likewise.
210 (build_user_friendly_ref_for_offset): Likewise.
211 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
212 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
213 * tree-ssa-loop-niter.c (inverse): Likewise.
214 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
215 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
216 * tree-switch-conversion.c (check_range): Likewise.
217 (build_constructors): Likewise.
218 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
219 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
220 (extract_range_from_assert): Likewise.
221 (vrp_int_const_binop): Likewise.
222 (extract_range_from_binary_expr): Likewise.
223 (extract_range_from_unary_expr): Likewise.
224 (check_array_ref): Likewise.
225 (find_case_label_range): Likewise.
226 (simplify_div_or_mod_using_ranges): Likewise.
227 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
228 comparing case labels for merging.
230 2011-05-03 Mark Wielaard <mjw@redhat.com>
232 * dwarf2out.c (debug_str_hash_forced): Removed.
233 (gen_label_for_indirect_string): Removed.
234 (get_debug_string_label): Removed.
235 (AT_string_form): Generate label directly.
236 (output_indirect_string): Test indirect_string_node for
237 DW_FORM_strp instead of checking label and refcount.
238 (prune_indirect_string): Removed.
239 (prune_unused_types): Don't check debug_str_hash_forced or
240 call prune_indirect_string.
242 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
245 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
247 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
251 * combine.c (try_combine): Skip debug insns at m_split tests.
253 2011-04-26 Mark Wielaard <mjw@redhat.com>
256 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
257 when info_section_emitted.
259 2011-05-03 Joseph Myers <joseph@codesourcery.com>
261 * config/mips/mips-opts.h: New.
262 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
264 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
265 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
266 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
268 * config/mips/mips.h (enum mips_code_readable_setting): Move to
270 (mips_abi, mips_code_readable): Don't declare.
271 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
272 (mabi=): Use Enum and Var.
273 (mips_abi): New Enum and EnumValue entries.
274 (mcode-readable=): Use Enum and Var.
275 (mips_code_readable_setting): New Enum and EnumValue entries.
276 (mr10k-cache-barrier=): Use Enum and Var.
277 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
279 2011-05-03 Jan Hubicka <jh@suse.cz>
281 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
282 replace hash by pointer map.
283 (cgraph_node_set_element_def, cgraph_node_set_element,
284 const_cgraph_node_set_element, varpool_node_set_element_def,
285 varpool_node_set_element, const_varpool_node_set_element): Remove.
286 (free_cgraph_node_set, free_varpool_node_set): New function.
287 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
288 * tree-emutls.c: Free varpool node set.
289 * ipa-utils.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, free_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, free_varpool_node_set, debug_varpool_node_set):
294 Move here from ipa.c; implement using pointer_map
295 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
296 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
297 debug_cgraph_node_set, varpool_node_set_new,
298 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
299 dump_varpool_node_set, debug_varpool_node_set):
301 * passes.c (ipa_write_summaries): Update.
303 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
306 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
307 bf542/bf544/bf547/bf548/bf549.
309 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
311 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
313 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
316 * config/bfin/bfin.md (MOVCC): New mode_macro.
317 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
318 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
319 comments from generated assembly.
321 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
324 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
325 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
326 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
327 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
328 * config/bfin/lib1funcs.asm (___muldi3): New function.
330 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
332 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
333 build_function_type_list instead of build_function_type.
334 Rearrange initialization of `args' to do so.
336 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
338 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
339 instead of build_function_type.
341 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
343 * config/rs6000/rs6000.c (spe_init_builtins): Call
344 build_function_type_list instead of build_function_type.
345 (paired_init_builtins, altivec_init_builtins): Likewise.
346 (builtin_function_type): Likewise.
348 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
350 * config/sh/sh.c (sh_media_init_builtins): Call
351 build_function_type_list instead of build_function_type.
353 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
355 * config/sparc/sparc.c (sparc_file_end): Call
356 build_function_type_list instead of build_function_type.
358 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
360 * config/alpha/alpha.c (alpha_init_builtins): Call
361 build_function_type_list instead of build_function_type.
363 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
365 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
366 build_function_type_list instead of build_function_type.
368 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
370 * config/iq2000/i2000.c (iq2000_init_builtins): Call
371 build_function_type_list instead of build_function_type.
372 Delete `endlink' variable.
374 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
376 * config/avr/avr.c (avr_init_builtins): Call
377 build_function_type_list instead of build_function_type.
379 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
381 * config/picochip/picochip.c (picochip_init_builtins): Call
382 build_function_type_list instead of build_function_type.
383 Delete `endlink' variable.
385 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
387 * config/bfin/bfin.c (bfin_init_builtins): Call
388 build_function_type_list instead of build_function_type.
390 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
393 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
394 that's not CONST_INT. Seemingly redundant check is due to PR39768.
396 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
399 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
400 libbffastfp overrides libgcc when -mfast-fp.
402 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
404 Originally from Bernd Schmidt
405 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
406 * config/bfin/bfin.c (override_options): Test it and error if
409 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
411 Originally From Bernd Schmidt
412 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
415 2011-05-03 Jeff Law <law@redhat.com>
417 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
418 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
419 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
420 than accessing AUX field directly. Free the AUX field before
422 (thread_block, thread_through_loop_header): Likewise.
423 (thread_single_edge, mark_threaded_blocks): Likewise.
424 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
425 (register_jump_thread): Do not attempt to thread to a NULL edge.
427 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
429 * function.c (init_function_start): Call decide_function_section.
430 * varasm.c (decide_function_section): New function.
431 (assemble_start_function): When not using
432 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
433 or first_function_block_is_cold.
434 * rtl.h (decide_function_section): Declare.
436 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
437 Jakub Jelinek <jakub@redhat.com>
440 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
441 only succeed if req_mode is the same as set_mode.
443 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
445 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
446 * genemit.c (gen_exp): Handle RETURN.
447 * emit-rtl.c (verify_rtx_sharing): Likewise.
448 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
449 * rtl.c (copy_rtx): RETURN is shared.
450 * rtl.h (enum global_rtl_index): Add GR_RETURN.
452 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
453 * config/s390/s390.c (s390_emit_epilogue): Likewise.
454 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
455 * config/cris/cris.c (cris_expand_return): Likewise.
456 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
457 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
458 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
459 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
460 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
462 * config/v850/v850.c (expand_epilogue): Likewise.
463 * config/bfin/bfin.c (bfin_expand_call): Likewise.
464 * config/arm/arm.md (epilogue): Likewise.
465 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
466 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
469 2011-05-03 Richard Guenther <rguenther@suse.de>
472 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
473 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
474 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
476 2011-05-03 Richard Guenther <rguenther@suse.de>
478 * c-decl.c (grokdeclarator): Instead of looking at
479 TREE_OVERFLOW check if the constant fits in the index type.
481 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
483 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
484 (vec_store_lanes<mode><mode>): Likewise.
486 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
488 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
489 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
490 convert_optab_index values.
491 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
492 * genopinit.c (optabs): Initialize the new optabs.
493 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
494 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
495 (expand_STORE_LANES): New functions.
496 * tree.h (build_array_type_nelts): Declare.
497 * tree.c (build_array_type_nelts): New function.
498 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
499 (vect_model_load_cost): Likewise.
500 (vect_store_lanes_supported, vect_load_lanes_supported)
501 (vect_record_strided_load_vectors): Declare.
502 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
503 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
504 (vect_transform_strided_load): Split out statement recording into...
505 (vect_record_strided_load_vectors): ...this new function.
506 * tree-vect-stmts.c (create_vector_array, read_vector_array)
507 (write_vector_array, create_array_ref): New functions.
508 (vect_model_store_cost): Add store_lanes_p argument.
509 (vect_model_load_cost): Add load_lanes_p argument.
510 (vectorizable_store): Try to use store-lanes functions for
512 (vectorizable_load): Likewise load-lanes and loads.
513 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
514 to vect_model_store_cost.
515 (vect_build_slp_tree): Likewise vect_model_load_cost.
517 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
519 * hooks.h (hook_bool_mode_uhwi_false): Declare.
520 * hooks.c (hook_bool_mode_uhwi_false): New function.
521 * target.def (array_mode_supported_p): New hook.
522 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
523 * doc/tm.texi: Regenerate.
524 * stor-layout.c (mode_for_array): New function.
525 (layout_type): Use it.
526 * config/arm/arm.c (arm_array_mode_supported_p): New function.
527 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
529 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
532 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
533 for -fstack-check if the size to allocate is negative.
535 2011-05-02 Lawrence Crowl <crowl@google.com>
537 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
538 (timevar_cond_start): New for starting a timer only when it is not
540 (timevar_cond_stop): New for stopping a timer when it was not already
543 * timevar.c (timevar_stop): Enable start/stop timers to start again.
544 (timevar_cond_start): New as above.
545 (timevar_cond_stop): New as above.
547 * timevar.def: Add start/stop timers for compiler phases,
548 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
549 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
550 and TV_PHASE_FINALIZE.
551 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
552 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
553 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
554 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
555 Make unused TV_OVERLOAD into a start/stop timer.
557 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
558 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
559 to indicate that they are start/stop timers.
561 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
562 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
563 Move initialization to do_compile.
564 (do_compile): Add initialization from above.
565 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
567 * c-decl.c (c_write_global_declarations): Add start/stop of
568 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
570 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
571 or TV_PARSE_INLINE, as appropriate.
572 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
573 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
575 2011-05-02 Jason Merrill <jason@redhat.com>
578 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
580 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
583 * c-decl.c (finish_decl): Only create a composite if the types are
586 2011-05-02 Joseph Myers <joseph@codesourcery.com>
588 * config/fr30/fr30-protos.h (Mmode): Don't define.
589 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
590 definition where used.
591 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
592 define. Expand definitions where used.
593 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
594 Expand definitions where used.
595 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
596 rx_function_arg, rx_function_arg_advance,
597 rx_function_arg_boundary): Expand definitions of those macros.
598 * config/v850/v850-protos.h (Mmode): Don't define. Expand
599 definition where used.
601 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
603 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
605 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
606 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
607 with *movv2sf_internal_rex64_avx.
608 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
609 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
610 Use %v prefix in insn mnemonic to handle TARGET_AVX.
611 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
612 "vex" in "prefix" attribute calculation.
613 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
615 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
618 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
619 inputs match the output.
621 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
624 * config/m68k/m68k.c (m68k_expand_prologue): Set
625 current_function_static_stack_size.
627 2011-05-02 Jan Hubicka <jh@suse.cz>
629 * lto-streamer.c (lto_streamer_cache_insert_1,
630 lto_streamer_cache_lookup, lto_streamer_cache_create,
631 lto_streamer_cache_delete): Use pointer map instead of hashtable.
632 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
634 2011-05-02 Joseph Myers <joseph@codesourcery.com>
636 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
637 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
638 config/m68k/t-opts: New files.
639 * config/m68k/m68k-tables.opt: New file (generated).
640 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
641 extra_options and m68k/t-opts to tmake_file.
642 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
643 (all_isas): Initialize using m68k-isas.def.
644 (all_microarchs): Initialize using m68k-microarchs.def.
645 (m68k_find_selection): Remove.
646 (m68k_handle_option): Don't assert that global structures are in
647 use. Use error_at. Access variables via opts pointer. Don't
648 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
649 directly for -m68020-40 and -m68020-60.
650 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
651 m68k_tune_entry here.
652 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
654 (m68k_library_id_string): Remove declaration.
655 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
656 (m68k_library_id_string): New Variable.
657 (march=, mcpu=, mtune=): Use Enum and Var.
659 2011-05-02 Richard Guenther <rguenther@suse.de>
661 * varasm.c (output_constructor_regular_field): Compute zero-based
662 index with double-ints. Make sure to ICE instead of producing
664 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
665 in asserts. Properly use a signed type.
667 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
669 * config/i386/sse.md (V): New mode iterator.
670 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
672 (V_256): Rename from AVX256MODE.
673 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
674 condition to all users.
676 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
677 condition to all users.
678 (VF_128): Make V4SF mode unconditional.
679 (VF_256): Rename from AVX256MODEF2P.
680 (VI4F_128): Rename from SSEMODE4S.
681 (VI8F_128): Rename from SSEMODE2D.
682 (VI4F_256): Rename from AVX256MODE8P.
683 (VI8F_256): Rename from AVX256MODE4P.
684 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
685 (ssescalarmodesuffix): Remove SF and DF modes.
686 (SSEMODE124): Remove.
687 (SSEMODE1248): Ditto.
692 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
694 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
696 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
697 xop_pcmov_<mode>256. Use V mode iterator.
699 Adjust RTX patterns globally for renamed mode attributes.
701 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
703 * haifa-sched.c (sched_emit_insn): Emit insn before first
704 non-scheduled insn. Inform back-end about new insn. Add
705 new insn to scheduled_insns list.
707 2011-05-02 Richard Guenther <rguenther@suse.de>
709 PR tree-optimization/48822
710 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
711 (process_scc): Indicate which iteration we start.
713 2011-05-02 Jan Hubicka <jh@suse.cz>
715 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
716 (lto_section_overrun): New.
717 * lto-section-out.c (append_block): Rename to ...
718 (lto_append_block): ... this one; export.
719 (lto_output_1_stream): Move lto lto-streamer.h
720 (lto_output_data_stream): Update.
721 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
722 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
725 2011-05-02 Richard Guenther <rguenther@suse.de>
727 * tree.c (tree_code_counts): New global array.
728 (record_node_allocation_statistics): Count individual tree codes.
729 (dump_tree_statistics): Dump individual code stats.
731 2011-05-01 Jan Hubicka <jh@suse.cz>
733 * ipa-inline.c (caller_growth_limits): Fix thinko when
734 looking for largest stack frame.
735 * ipa-inline.h (dump_inline_summary): Declare.
736 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
738 (dump_inline_summary): Export.
739 (debug_inline_summary): Declare as DEBUG_FUNCTION.
741 2011-05-01 Anatoly Sokolov <aesok@post.ru>
743 * reginfo.c (memory_move_cost): Change rclass argument type form
744 'enum reg_class' to reg_class_t.
745 * reload.h (memory_move_cost): Update prototype.
746 * postreload.c reload_cse_simplify_set): Change type dclass var to
748 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
750 (ira_allocate_and_set_costs): Change aclass argument type form
751 'enum reg_class' to reg_class_t.
752 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
753 Change aclass argument type to reg_class_t.
754 (update_conflict_hard_reg_costs): Change type aclass and pref vars
756 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
757 memory_move_cost call.
759 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
760 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
761 Change type tmp var to reg_class_t.
763 2011-04-30 Jan Hubicka <jh@suse.cz>
765 * ipa-inline.c (can_inline_edge_p): Disregard limits when
766 inlining into function with flatten attribute.
767 (want_inline_small_function_p): Be more realistic about inlining
768 cold calls where callee size grows.
770 2011-04-30 Jan Hubicka <jh@suse.cz>
772 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
775 2011-04-30 Anatoly Sokolov <aesok@post.ru>
777 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
778 PRINT_OPERAND_PUNCT_VALID_P): Remove.
779 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
780 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
781 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
782 (print_operand): Rename to...
783 (sparc_print_operand): ...this. Make static. Adjust
784 sparc_print_operand function call.
785 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
788 2011-04-30 Jan Hubicka <jh@suse.cz>
791 * ipa-inline.c (early_inliner): Disable when doing late
792 addition of function.
794 2011-04-30 Jakub Jelinek <jakub@redhat.com>
796 * dwarf2out.c (get_address_mode): New inline.
797 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
798 if not dwarf_strict emit
799 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
800 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
801 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
802 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
803 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
804 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
805 mem_loc_descriptor callers.
806 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
807 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
808 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
809 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
810 (base_types): New variable.
811 (get_base_type_offset, calc_base_type_die_sizes,
812 base_type_for_mode, mark_base_types, base_type_cmp,
813 move_marked_base_types): New functions.
814 (calc_die_sizes): Assert that die_offset is 0 or equal to
816 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
817 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
818 callers. If not dwarf_strict, call mem_loc_descriptor even for
819 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
820 (gen_subprogram_die): Don't give up on call site parameters
821 with non-integral or large integral modes. Adjust
822 mem_loc_descriptor callers.
823 (prune_unused_types): Call prune_unused_types_mark on base_types
825 (resolve_addr): Call mark_base_types.
826 (dwarf2out_finish): Call move_marked_base_types.
828 PR tree-optimization/48809
829 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
831 (gen_inbound_check): Don't compute index_expr - range_min in utype
832 again, instead reuse SSA_NAME initialized in build_arrays.
833 Remove two useless gsi_for_stmt calls.
835 2011-04-29 Jeff Law <law@redhat.com>
837 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
839 2011-04-29 Martin Jambor <mjambor@suse.cz>
841 * cgraph.h (cgraph_postorder): Remove declaration.
842 * ipa-utils.h (ipa_free_postorder_info): Declare.
843 (ipa_reverse_postorder): Likewise.
844 * cgraphunit.c: Include ipa-utils.h.
845 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
846 * ipa-inline.c: Include ipa-utils.h.
847 (ipa_inline): Update call to ipa_reverse_postorder.
848 * ipa-pure-const.c (propagate_pure_const): Update call to
849 ipa_reduced_postorder and ipa_print_order. Call
850 ipa_free_postorder_info to clean up.
851 (propagate_nothrow): Likewise.
852 * ipa-reference.c (propagate): Removed a useless call to
853 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
854 and ipa_print_order. Call ipa_free_postorder_info to clean up.
855 * ipa.c: Include ipa-utils.h.
856 (ipa_profile): Update call to ipa_reverse_postorder.
857 (cgraph_postorder): Moved to...
858 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
859 (ipa_utils_print_order): Renamed to ipa_print_order.
860 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
862 (ipa_free_postorder_info): New function.
863 * passes.c: Include ipa-utils.h.
864 (do_per_function_toporder): Update call to ipa_reverse_postorder.
865 (ipa_write_summaries): Likewise.
866 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
867 (cgraphunit.o): Likewise.
869 (ipa-inline.o): Likewise.
871 2011-04-29 Jan Hubicka <jh@suse.cz>
873 * gcc.dg/tree-ssa/inline-10.c: New testcase.
874 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
875 * ipa-inline.h (clause_t): Turn into unsigned int.
876 * ipa-inline-analysis.c (add_clause): Do more simplification.
877 (and_predicates): Shortcut more cases.
878 (predicates_equal_p): Move forward; check that clauses are properly
880 (or_predicates): Shortcut more cases.
881 (edge_execution_predicate): Rewrite as...
882 (set_cond_stmt_execution_predicate): ... this function; handle
883 __builtin_constant_p.
884 (set_switch_stmt_execution_predicate): New .
885 (compute_bb_predicates): New.
886 (will_be_nonconstant_predicate): Update TODO.
887 (estimate_function_body_sizes): Use compute_bb_predicates
888 and free them later, always try to estimate if stmt is constant.
889 (estimate_time_after_inlining, estimate_size_after_inlining):
890 Gracefully handle optimized out edges.
891 (read_predicate): Fix off by one error.
893 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
895 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
897 2011-04-27 Xinliang David Li <davidxl@google.com>
899 * tree-profile.c (init_ic_make_global_vars): Set
900 tls attribute on ic vars.
901 * coverage.c (coverage_end_function): Initialize
902 function_list with zero.
904 2011-04-29 Richard Guenther <rguenther@suse.de>
906 * builtins.c (fold_builtin_classify_type): Use integer_type_node
907 for the type of the result.
908 (fold_builtin_isascii): Likewise.
909 (fold_builtin_toascii): Use integer_type_node where appropriate.
910 (fold_builtin_logb): Likewise.
911 (fold_builtin_frexp): Likewise.
912 (fold_builtin_strstr): Likewise.
913 (fold_builtin_strpbrk): Likewise.
914 (fold_builtin_fputs): Likewise.
915 (fold_builtin_sprintf): Likewise.
916 (fold_builtin_snprintf): Likewise.
917 (fold_builtin_printf): Likewise.
918 (do_mpfr_remquo): Use a proper type for the assigned constant.
919 (do_mpfr_lgamma_r): Likewise.
920 * dwarf2out.c (resolve_one_addr): Use size_int.
921 * except.c (init_eh): Likewise.
922 (assign_filter_values): Use integer_type_node for filter values.
923 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
925 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
926 for EH region numbers.
927 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
928 for the shift amount.
930 2011-04-29 Richard Guenther <rguenther@suse.de>
932 * expr.h (expand_shift): Rename to ...
933 (expand_variable_shift): ... this.
934 (expand_shift): Take a constant shift amount.
935 * expmed.c (expand_shift): Rename to ...
936 (expand_variable_shift): ... this.
937 (expand_shift): New wrapper around expand_variable_shift.
938 * expr.c (convert_move, emit_group_load_1, emit_group_store,
939 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
940 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
941 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
942 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
943 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
944 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
945 emit_store_flag_1, emit_store_flag): Likewise.
946 * builtins.c (expand_builtin_signbit): Likewise.
947 * calls.c (load_register_parameters): Likewise.
948 * function.c (assign_parm_setup_block): Likewise.
949 * lower-subreg.c (resolve_shift_zext): Likewise.
950 * optabs.c (widen_bswap, expand_abs_nojump,
951 expand_one_cmpl_abs_nojump, expand_float): Likewise.
952 * spu/spu.c (spu_expand_extv): Likewise.
953 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
955 2011-04-29 Richard Guenther <rguenther@suse.de>
957 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
958 for the remapped region number.
959 * predict.c (build_predict_expr): Use integer_type_node for the
961 * fold-const.c (fold_binary_loc): Use integer_type_node for
962 the shift amount. Use a proper type for the PLUS_EXPR operand.
964 2011-04-29 Michael Matz <matz@suse.de>
966 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
967 other trees that just builtins.
968 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
970 2011-04-29 Richard Guenther <rguenther@suse.de>
972 * tree-nested.c (get_trampoline_type): Use size_int.
973 (get_nl_goto_field): Likewise.
974 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
976 (lower_eh_constructs_2): Likewise.
977 (lower_resx): Likewise.
978 (lower_eh_dispatch): Likewise.
979 * tree-mudflap.c (mf_build_string): Use size_int.
980 (mudflap_register_call): Use integer_type_node for the flag.
981 (mudflap_enqueue_constant): Use size_int.
982 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
983 instead of rebuilding it.
985 2011-04-29 Richard Guenther <rguenther@suse.de>
987 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
989 (find_func_aliases_for_call): Use it more consistently.
991 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
993 * haifa-sched.c (last_nondebug_scheduled_insn): New.
994 (rank_for_schedule): Use it.
995 (schedule_block): Set it.
997 2011-04-28 David Li <davidxl@google.com>
999 * tree.c (crc32_string): Use crc32_byte.
1000 (crc32_byte): New function.
1001 * tree.h (crc32_byte): New function.
1002 * gcov.c (read_graph_file): Handle new cfg_cksum.
1003 (read_count_file): Ditto.
1004 * profile.c (instrument_values): Ditto.
1005 (get_exec_counts): Ditto.
1006 (read_profile_edge_counts): Ditto.
1007 (compute_branch_probabilities): Ditto.
1008 (compute_value_histograms): Ditto.
1009 (branch_prob): Ditto.
1010 (end_branch_prob): Ditto.
1011 * coverage.c (read_counts_file): Ditto.
1012 (get_coverage_counts): Ditto.
1013 (tree_coverage_counter_addr): Ditto.
1014 (coverage_checksum_string): Ditto.
1015 (coverage_begin_output): Ditto.
1016 (coverage_end_function): Ditto.
1017 (build_fn_info_type): Ditto.
1018 (build_fn_info_value): Ditto.
1019 * libgcov.c (gcov_exit): Ditto.
1020 * gcov-dump.c (tag_function): Ditto.
1021 (compute_checksum): Remove.
1023 2011-04-29 Alan Modra <amodra@gmail.com>
1025 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1026 unspec plus offset. Tidy macho code.
1028 2011-04-29 Martin Jambor <mjambor@suse.cz>
1030 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1031 node instead of a decl. Update all callers.
1032 * cgraph.h: Update declaration.
1034 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1036 PR tree-optimization/48765
1037 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1038 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1039 to indicate if loop aware SLP is being used. Scan the statements
1040 and update the vectorization factor according to the type of
1041 vectorization before statement analysis.
1042 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1043 pass it to vect_analyze_loop_operations.
1044 (vectorizable_reduction): Set number of copies to 1 in case of pure
1046 * tree-vect-stmts.c (vectorizable_conversion,
1047 vectorizable_assignment, vectorizable_shift,
1048 vectorizable_operation, vectorizable_type_demotion,
1049 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1051 (vectorizable_condition): Move the check that it is not SLP
1052 vectorization before the number of copies check.
1053 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1054 to vectorize the loop using SLP.
1056 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1059 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1062 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1064 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1065 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1066 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1067 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1068 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1070 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1071 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1072 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1073 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1074 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1075 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1077 * config/i386/linux.h (REG_NAME): Don't define.
1078 * config/i386/linux64.h (REG_NAME): Don't define.
1079 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1080 Undefine before defining.
1082 2011-04-28 Jan Hubicka <jh@suse.cz>
1084 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1085 nonconstant_names array.
1086 (estimate_function_body_sizes): Build nonconstant_names array; handle
1087 BUILT_IN_CONSTANT_P.
1089 2011-04-28 Richard Guenther <rguenther@suse.de>
1093 2011-04-28 Richard Guenther <rguenther@suse.de>
1095 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1096 as late as possible.
1098 2011-04-28 Richard Guenther <rguenther@suse.de>
1100 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1101 (debug_constraint): Do it here.
1102 (dump_constraints): And here.
1103 (rewrite_constraints): And here.
1104 (dump_constraint_edge): Remove.
1105 (dump_constraint_graph): Rewrite to produce DOT output.
1106 (solve_constraints): Build succ graph as late as possible.
1107 Dump constraint graphs before and after solving.
1109 2011-04-28 Richard Guenther <rguenther@suse.de>
1111 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1112 New function split out from ...
1113 (find_func_aliases): ... here. Call it.
1114 (find_func_aliases_for_call): Likewise.
1116 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1118 * internal-fn.h (internal_fn_name_array): Declare.
1119 (internal_fn_flags_array): Likewise.
1121 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1123 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1124 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1126 (ssemodefsuffix): Remove.
1127 (ssevecmodesuffix): New mode attribute.
1128 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1129 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1130 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1131 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1132 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1133 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1134 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1135 ssemodesuffix mode attribute.
1136 (float splitters): Use ssevecmodesuffix mode attribute.
1137 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1138 (sseinsmode): Rename from avxvecmode.
1139 (avxsizesuffix): Rename from avxmodesuffix.
1140 (sseintvecmode): Rename from avxpermvecmode.
1141 (ssedoublevecmode): Rename from ssedoublesizemode.
1142 (ssehalfvecmode): Rename from avxhalfvecmode.
1143 (ssescalarmode): Rename from avxscalarmode.
1144 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1145 templates for ssemodesuffix mode attribute.
1146 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1149 Adjust RTX patterns globally for renamed mode attributes.
1151 2011-04-27 Jan Hubcika <jh@suse.cz>
1153 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1154 * ipa-inline-analysis.c: Include alloc-pool.h.
1155 (edge_predicate_pool): New.
1156 (trye_predicate_p): New function
1157 (false_predicate_p): New function.
1158 (add_clause): Sanity check that false clauses are "optimized";
1159 never add clauses to predicate that is already known to be false.
1160 (and_predicate): Use flase_predicate_p.
1161 (evaulate_predicate): Rename to ...
1162 (evaluate_predicate): ... this one; update all callers; assert
1163 that false is not listed among possible truths.
1164 (dump_predicate): Use true_predicate_p.
1165 (account_size_time): Use false_predicate_p.
1166 (evaulate_conditions_for_edge): Rename to ...
1167 (evaluate_conditions_for_edge) ... this one.
1168 (edge_set_predicate): New function.
1169 (inline_edge_duplication_hook): Duplicate edge predicates.
1170 (inline_edge_removal_hook): Free edge predicates.
1171 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1172 (dump_inline_summary): Update.
1173 (estimate_function_body_sizes): Set edge predicates.
1174 (estimate_calls_size_and_time): Handle predicates.
1175 (estimate_callee_size_and_time): Update.
1176 (remap_predicate): Add toplev_predicate; update comment.
1177 (remap_edge_predicates): New function.
1178 (inline_merge_summary): Compute toplev predicate; update.
1179 (read_predicate): New function.
1180 (read_inline_edge_summary): Use it.
1181 (inline_read_section): Likewise.
1182 (write_predicate): New function.
1183 (write_inline_edge_summary): Use it.
1184 (inline_write_summary): Likewise.
1185 (inline_free_summary): Free alloc pool and edge summary vec.
1187 2011-04-27 Richard Guenther <rguenther@suse.de>
1189 * tree-ssa-structalias.c (changed_count): Remove.
1190 (changed): Use a bitmap.
1191 (unify_nodes): Adjust.
1192 (do_sd_constraint): Likewise.
1193 (do_ds_constraint): Likewise.
1194 (do_complex_constraint): Likewise.
1195 (solve_graph): Likewise.
1197 2011-04-27 Jan Hubicka <jh@suse.cz>
1199 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1201 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1203 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1204 (avx_vperm2f128_*_operand): Ditto.
1205 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1206 Use avx_vpermilp_parallel in insn condition.
1207 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1208 Use avx_vperm2f128_parallel in insn condition.
1210 2011-04-27 Richard Guenther <rguenther@suse.de>
1212 * Makefile.in (tree-ssa-structalias.o): Remove
1213 gt-tree-ssa-structalias.h dependency.
1214 (GTFILES): Remove tree-ssa-structalias.c.
1215 * tree.c (allocate_decl_uid): New function.
1216 (make_node_stat): Use it.
1217 (copy_node_stat): Likewise.
1218 * tree.h (allocate_decl_uid): Declare.
1219 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1220 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1221 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1222 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1223 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1224 (struct heapvar_map): Likewise.
1225 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1226 heapvar_insert): Likewise.
1227 (make_heapvar_for): Rename to ...
1228 (make_heapvar): ... this. Simplify.
1229 (fake_var_decl_obstack): New global var.
1230 (build_fake_var_decl): New function.
1231 (make_constraint_from_heapvar): Adjust.
1232 (handle_lhs_call): Likewise.
1233 (create_function_info_for): Likewise.
1234 (intra_create_variable_infos): Likewise.
1235 (init_alias_vars): Allocate fake_var_decl_obstack.
1236 (init_alias_heapvars, delete_alias_heapvars): Remove.
1237 (compute_points_to_sets): Do not call init_alias_heapvars.
1238 (ipa_pta_execute): Likewise.
1239 (delete_points_to_sets): Free fake_var_decl_obstack.
1241 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1243 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1244 (si_from_UTItype, si_to_UTItype): New functions.
1245 (__udivmodti4): Use them to implement type-punning.
1246 * config/spu/multi3.c (union qword_TItype): New data type.
1247 (si_from_TItype, si_to_TItype): New functions.
1248 (__multi3): Use them to implement type-punning.
1250 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1252 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1254 2011-04-27 Jan Hubicka <jh@suse.cz>
1256 * ipa-prop.c (function_insertion_hook_holder): New holder.
1257 (ipa_add_new_function): New function.
1258 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1259 Register/deregister holder.
1261 2011-04-27 Richard Guenther <rguenther@suse.de>
1263 PR tree-optimization/48772
1264 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1266 2011-04-27 Richard Guenther <rguenther@suse.de>
1268 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1269 TARGET_MEM_REF handling.
1271 2011-04-27 Nick Clifton <nickc@redhat.com>
1273 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1274 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1275 (REG_CLASS_NAMES): Likewise.
1276 (REG_CLASS_CONTENTS): Likewise.
1277 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1278 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1279 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1280 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1281 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1282 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1283 duplicate register classes.
1284 (frv_class_likely_spilled_p): Likewise.
1285 (frv_register_move_cost): Likewise.
1287 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1288 end of the regno_reg_class array.
1290 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1293 * c-typeck.c (build_binary_op): Don't wrap arguments if
1294 int_operands is true.
1296 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1299 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1300 targetm.calls.must_pass_in_stack for void type.
1302 2011-04-26 Jan Hubicka <jh@suse.cz>
1304 * cgraphbuild.c (build_cgraph_edges): Update call
1305 of cgraph_create_edge and cgraph_create_indirect_edge.
1306 * cgraph.c (cgraph_create_edge_including_clones,
1307 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1308 cgraph_update_edges_for_call_stmt_node): Do not take nest
1309 argument; do not initialize call_stmt_size/time.
1310 (dump_cgraph_node): Do not dump nest.
1311 (cgraph_clone_edge): Do not take loop_nest argument;
1312 do not propagate it; do not clone call_stmt_size/time.
1313 (cgraph_clone_node): Likewise.
1314 (cgraph_create_virtual_clone): Update.
1315 * cgraph.h (struct cgraph_edge): Remove
1316 call_stmt_size/call_stmt_time/loop_nest.
1317 (cgraph_create_edge, cgraph_create_indirect_edge,
1318 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1320 * tree-emutls.c (gen_emutls_addr): Update.
1321 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1322 loop_nest; handle indirect calls, too.
1323 (clone_inlined_nodes): Do not care about updating inline summaries.
1324 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1325 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1326 stream call_stmt_size/call_stmt_time/loop_nest.
1327 * ipa-inline.c (edge_badness): Update.
1328 (ipa_inline): dump summaries after inlining.
1329 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1331 (inline_edge_summary): New function.
1332 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1333 (inline_edge_removal_hook): Handle edge summaries.
1334 (inline_edge_duplication_hook): New hook.
1335 (inline_summary_alloc): Alloc hooks.
1336 (initialize_growth_caches): Do not register removal hooks.
1337 (free_growth_caches); Do not free removal hook.
1338 (dump_inline_edge_summary): New function.
1339 (dump_inline_summary): Use it.
1340 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1341 (inline_update_callee_summaries): New function.
1342 (inline_merge_summary): Use it.
1343 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1344 (read_inline_edge_summary): New function.
1345 (inline_read_section): Use it.
1346 (write_inline_edge_summary): New function.
1347 (inline_write_summary): Use it.
1348 (inline_free_summary): Free edge new holders.
1349 * tree-inline.c (copy_bb): Update.
1351 2011-04-26 Jason Merrill <jason@redhat.com>
1353 * tree-eh.c (lower_try_finally_switch): Create the label along with
1354 the CASE_LABEL_EXPR.
1356 2011-04-26 David S. Miller <davem@davemloft.net>
1357 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1359 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1360 * configure: Regenerate.
1362 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1365 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1367 (VEC_reduc): New code iterator and splitters for vector reduction.
1368 (VEC_reduc_name): Ditto.
1369 (VEC_reduc_rtx): Ditto.
1370 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1371 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1373 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1374 support for extracting SF on VSX.
1376 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1377 generating xscvspdp.
1378 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1379 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1380 double add, minimum, maximum vector reduction.
1381 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1382 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1383 optimize double vector reduction.
1384 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1386 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1388 * config/fr30/fr30.h (inhibit_libc): Don't define.
1389 * config/m32r/m32r-protos.h: Correct comment.
1390 * config/v850/v850.h (GHS_default_section_names,
1391 GHS_current_section_names): Use tree, not union tree_node *.
1393 2011-04-26 Xinliang David Li <davidxl@google.com>
1395 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1396 * c-family/c-opts.c (c_common_handle_option): Set
1397 warn_maybe_uninitialized.
1398 * opts.c (common_handle_option): Ditto.
1399 * common.opt: New option.
1400 * tree-ssa.c (warn_uninit): Add one more parameter.
1401 (warn_uninitialized_var): Pass warning code.
1402 * tree-flow.h: Interface change.
1405 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1407 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1408 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1409 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1411 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1413 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1414 * config/mips/mips.opt (mmips-tfile): Remove.
1416 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1417 mips-tdump reference to ...
1418 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1419 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1420 reference by Tru64 UNIX.
1422 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1425 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1426 is error_mark_node, set value to NULL.
1428 PR tree-optimization/48734
1429 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1430 if return value from maybe_fold_*_comparsions isn't something
1431 the code is prepared to handle.
1433 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1435 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1437 (ext_QIreg_nomode_operands): Remove.
1438 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1442 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1444 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1446 2011-04-26 Richard Guenther <rguenther@suse.de>
1448 * c-typeck.c (build_unary_op): Do not expand array-refs via
1449 pointer arithmetic. Only adjust qualifiers for function types.
1451 2011-04-26 Richard Guenther <rguenther@suse.de>
1454 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1455 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1456 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1457 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1459 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1461 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1462 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1463 * doc/extend.texi: Document __underlying_type.
1465 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1467 * config/rs6000/titan.md (automata_option "progress"): Remove.
1469 2011-04-25 Jeff Law <law@redhat.com>
1471 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1473 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1475 * system.h (ENUM_BITFIELD): Remove.
1477 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1478 Eric Botcazou <ebotcazou@adacore.com>
1480 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1481 for STORE_FLAG_VALUE==-1 case.
1483 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1486 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1487 LEGITIMATE_PIC_OPERAND_P.
1489 2011-04-24 Jan Hubicka <jh@suse.cz>
1491 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1493 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1494 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1495 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1496 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1497 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1498 Sanity check predicate length.
1499 (remap_predicate): Likewise; sanity check jump functions.
1500 (inline_read_section, inline_write_summary): Sanity check
1503 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1506 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1507 __is_literal_type, and __is_trivial; update throughout about
1508 possibly cv-qualified void types.
1510 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1512 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1513 testsuite and make it version agnostic.
1515 2011-04-22 Jan Hubicka <jh@suse.cz>
1517 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1519 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1522 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1523 to VOID_TYPE even around MODIFY_EXPR.
1525 2011-04-22 Mike Stump <mikestump@comcast.net>
1527 * gensupport.c (read_md_rtx): Fix typo in comment.
1528 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1531 2011-04-22 Jan Hubicka <jh@suse.cz>
1533 * gengtype.c (open_base_files): Add ipa-inline.h include.
1534 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1535 ipa-prop.c; update all uses.
1536 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1537 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1538 merge summary of inlined function into former caller.
1539 * ipa-inline.c (max_benefit): Remove.
1540 (edge_badness): Compensate for removal of benefits.
1541 (update_caller_keys): Use
1542 reset_node_growth_cache/reset_edge_growth_cache.
1543 (update_callee_keys): Likewise.
1544 (update_all_callee_keys): Likewise.
1545 (inline_small_functions): Do not collect max_benefit; do not reset
1546 estimated_growth; call free_growth_caches and initialize_growth_caches.
1547 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1548 struct size_time_entry): New structures.
1549 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1550 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1551 and estimated_growth.
1552 (edge_growth_cache_entry): New structure.
1553 (node_growth_cache, edge_growth_cache): New global vars.
1554 (estimate_growth): Turn into inline.
1555 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1556 initialize_growth_caches, free_growth_caches): Declare.
1557 (estimate_edge_growth): Rewrite.
1558 (estimate_edge_time): Implement as inline cache lookup.
1559 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1561 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1562 (NUM_CONDITIONS): New constant.
1563 (predicate_conditions): New enum.
1564 (IS_NOT_CONSTANT): New constant.
1565 (edge_removal_hook_holder): New var.
1566 (node_growth_cache, edge_growth_cache): New global vars.
1567 (true_predicate, single_cond_predicate, false_predicate,
1568 not_inlined_predicate, add_condition, add_clause, and_predicates,
1569 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1570 dump_clause, dump_predicate, account_size_time,
1571 evaulate_conditions_for_edge): New functions.
1572 (inline_summary_alloc): Move to heap.
1573 (inline_node_removal_hook): Clear condition and entry vectors.
1574 (inline_edge_removal_hook): New function.
1575 (initialize_growth_caches, free_growth_caches): New function.
1576 (dump_inline_summary): Update.
1577 (edge_execution_predicate): New function.
1578 (will_be_nonconstant_predicate): New function.
1579 (estimate_function_body_sizes): Compute BB and constantness predicates.
1580 (compute_inline_parameters): Do not clear estimated_growth.
1581 (estimate_edge_size_and_time): New function.
1582 (estimate_calls_size_and_time): New function.
1583 (estimate_callee_size_and_time): New function.
1584 (remap_predicate): New function.
1585 (inline_merge_summary): New function.
1586 (do_estimate_edge_time): New function based on...
1587 (estimate_edge_time): ... this one.
1588 (do_estimate_edge_growth): New function.
1589 (do_estimate_growth): New function based on....
1590 (estimate_growth): ... this one.
1591 (inline_analyze_function): Analyze after deciding on jump functions.
1592 (inline_read_section): New function.
1593 (inline_read_summary): Use it.
1594 (inline_write_summary): Write all the new data.
1595 * ipa-prop.c (ipa_get_param_decl_index): Export.
1596 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1597 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1599 (ipa_get_lattice): Move here from ipa-cp.c
1600 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1601 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1602 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1603 cgraph_edge_inlinable_p): Remove.
1604 * cgraphunit.c: Include ipainline.h
1605 (cgraph_process_new_functions): Update call of
1606 compute_inline_parameters.
1608 2011-04-22 Richard Guenther <rguenther@suse.de>
1610 * tree.c (build_int_cst): Properly create canonicalized integer
1612 (build_int_cst_type): Remove scary comments.
1614 2011-04-22 Xinliang David Li <davidxl@google.com>
1616 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1617 by default when -Wno-error is not specified.
1618 * opts-global.c (decode_options): Remove call to
1619 control_warning_options.
1621 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1623 PR tree-optimization/48717
1624 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1625 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1627 2011-04-22 Joseph Myers <joseph@codesourcery.com>
1629 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1630 definition where used.
1632 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1635 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1636 TREE_STATIC variables declared inside of some OpenMP construct.
1638 2011-04-22 Martin Jambor <mjambor@suse.cz>
1641 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1643 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
1646 * c-typeck.c (pop_init_level): Do not warn about initializing
1649 2011-04-22 Alan Modra <amodra@gmail.com>
1651 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1652 when returning call_cookie.
1653 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1654 pointers, to functions with no more vector args than the current
1655 function, and some non-local calls for ABI_V4.
1656 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1657 sibcall_nonlocal_aix64): Combine to ..
1658 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1659 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1660 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1661 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1662 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1664 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1665 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1666 sibcall_value_symbolic_64): Delete.
1668 2011-04-21 Xinliang David Li <davidxl@google.com>
1670 * cgraph.h: Remove pid.
1671 * cgraph.c: Remove pid.
1672 * value-prof.c (init_node_map): New function.
1673 (del_node_map): New function.
1674 (find_func_by_funcdef_no): New function.
1675 (gimple_ic_transform): Call new function.
1676 * cgraphunit.c (cgraph_finalize_function): Remove pid.
1677 * function.c (get_last_funcdef_no): New function.
1678 * function.h (get_last_funcdef_no): New function.
1679 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1680 to libgcov function.
1681 (tree-profiling): Call node map init and delete function.
1683 2011-04-21 Ian Lance Taylor <iant@google.com>
1685 * godump.c (go_format_type): Use exported Go name for anonymous
1688 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1690 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1691 Call builtin_function_type_list instead of builtin_function_type.
1692 (UNARY, BINARY, TRINARY, QUAD): Likewise.
1694 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1696 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1697 build_function_type_list instead of build_function_type.
1698 Delete variable `endlink'.
1700 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1702 * config/s390/s390.c (s390_init_builtins): Call
1703 build_function_type_list instead of build_function_type.
1705 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1707 * config/ia64/ia64.c (ia64_init_builtins): Call
1708 build_function_type_list instead of builtin_function_type.
1710 2011-04-21 Easwaran Raman <eraman@google.com>
1712 * cfgexpand.c (stack_var): Remove OFFSET...
1713 (add_stack_var): ...and its reference here...
1714 (expand_stack_vars): ...and here.
1715 (stack_var_cmp): Sort by descending order of size.
1716 (partition_stack_vars): Change heuristic.
1717 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1718 (dump_stack_var_partition): Add newline after each partition.
1720 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
1721 Jeff Law <law@redhat.com>
1723 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1724 * gengtype.c (matching_file_name_substitute): Likewise.
1726 2011-04-21 Richard Guenther <rguenther@suse.de>
1729 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1731 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1733 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1735 2011-04-21 Richard Guenther <rguenther@suse.de>
1737 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1740 2011-04-21 Richard Guenther <rguenther@suse.de>
1742 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1743 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1744 Use DECL_P, not SSA_VAR_P.
1745 (ptr_derefs_may_alias_p): Likewise.
1746 (ptr_deref_may_alias_ref_p_1): Likewise.
1747 (decl_refs_may_alias_p): Likewise.
1748 (refs_may_alias_p_1): Likewise.
1749 (ref_maybe_used_by_call_p_1): Likewise.
1750 (call_may_clobber_ref_p_1): Likewise.
1751 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1752 are either MEM_REF or TARGET_MEM_REF.
1753 (indirect_refs_may_alias_p): Likewise.
1754 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1755 for MEM_EXPR of indirect calls.
1757 2011-04-21 Tristan Gingold <gingold@adacore.com>
1759 * vmsdbgout.c (write_srccorr): Compute file length from the string.
1760 (dst_file_info_struct): Remove flen field.
1761 (lookup_filename): Remove code that set flen field.
1763 2011-04-21 Tristan Gingold <gingold@adacore.com>
1765 * config/ia64/ia64.c (ia64_start_function): Add a guard.
1767 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
1770 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1771 vec_extract and vec_concat for non-SSE4_1 targets.
1773 2011-04-21 Richard Guenther <rguenther@suse.de>
1775 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1778 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1780 * config/i386/cygming.h (union tree_node, TREE): Don't define or
1782 (FILE): Don't undefine.
1784 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1786 * config/alpha/alpha.c (struct machine_function): Use rtx, not
1788 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1790 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
1791 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
1792 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1794 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
1795 definitions where used.
1796 * config/microblaze/microblaze.h (struct microblaze_args): Use
1797 rtx, not struct rtx_def *.
1798 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1800 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1801 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
1802 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1803 not struct rtx_def *.
1804 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1806 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1808 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
1810 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1812 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1813 operand_equal_p to compare DR_BASE_ADDRESSes.
1814 (vect_check_interleaving): Likewise.
1816 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1819 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1820 for all Neon struct constants.
1822 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1824 * target.def (legitimate_constant_p): New hook.
1825 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
1826 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
1827 * doc/tm.texi: Regenerate.
1828 * hooks.h (hook_bool_mode_rtx_true): Declare.
1829 * hooks.c (hook_bool_mode_rtx_true): Define.
1830 * system.h (LEGITIMATE_CONSTANT_P): Poison.
1831 * calls.c (precompute_register_parameters): Replace uses of
1832 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
1833 (emit_library_call_value_1): Likewise.
1834 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
1835 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
1836 * ira-costs.c (scan_one_insn): Likewise.
1837 * recog.c (general_operand, immediate_operand): Likewise.
1838 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
1839 * reload1.c (init_eliminable_invariants): Likewise.
1841 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
1843 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
1844 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
1846 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1847 * config/alpha/predicates.md (input_operand): Update call to
1848 alpha_legitimate_constant_p.
1850 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
1851 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
1852 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
1853 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1854 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
1855 (arm_legitimate_constant_p): New functions.
1856 (arm_cannot_force_const_mem): Make static.
1858 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
1860 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
1861 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
1862 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
1863 instead of bfin_legitimate_constant_p.
1864 (bfin_legitimate_constant_p): Make static. Add a mode argument.
1865 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1867 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
1869 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
1871 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
1872 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
1873 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1874 (frv_legitimate_constant_p): Make static. Add a mode argument.
1876 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
1877 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
1878 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
1880 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
1881 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
1882 * config/i386/i386.c (legitimate_constant_p): Rename to...
1883 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
1885 (ix86_cannot_force_const_mem): Update accordingly.
1886 (ix86_legitimate_address_p): Likewise.
1887 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1888 * config/i386/i386.md: Update commentary.
1890 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
1891 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
1892 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1893 (ia64_legitimate_constant_p): Make static. Add a mode argument.
1895 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
1897 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
1898 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
1899 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1900 (lm32_legitimate_constant_p): Make static. Add a mode argument.
1902 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
1903 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
1904 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
1906 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
1907 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1908 (m32r_legitimate_constant_p): New function.
1910 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
1911 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
1912 LEGITIMATE_CONSTANT_P.
1913 (LEGITIMATE_CONSTANT_P): Delete.
1914 * config/m68k/m68k.c (m68k_expand_prologue): Call
1915 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
1916 (m68k_legitimate_constant_p): New function.
1917 * config/m68k/m68k.md: Update comments.
1919 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
1920 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1921 (mcore_legitimate_constant_p): New function.
1923 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
1924 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
1925 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
1926 Add a mode argument.
1927 (mep_legitimate_address): Update accordingly.
1928 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1930 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
1932 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
1933 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
1934 static. Check OP's mode for VOIDmode.
1935 (microblaze_legitimate_constant_p): New function.
1936 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1938 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
1939 * config/mips/mips.c (mips_legitimate_constant_p): New function.
1940 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
1941 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1942 * config/mips/predicates.md: Update comments.
1944 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
1945 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
1946 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1947 (mmix_legitimate_constant_p): Make static, return a bool, and take
1949 (mmix_print_operand_address): Update accordingly.
1951 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
1953 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
1954 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
1955 static. Add a mode argument.
1956 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1958 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
1960 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
1961 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1962 (pa_legitimate_constant_p): New function.
1964 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
1966 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
1967 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1968 (pdp11_legitimate_constant_p): New function.
1970 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
1971 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1972 (rs6000_legitimate_constant_p): New function.
1974 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
1975 (rx_legitimate_constant_p): ...this.
1976 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
1977 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
1978 (rx_legitimate_constant_p): ...this.
1979 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1980 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
1982 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
1983 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
1984 * config/s390/s390.c (legitimate_constant_p): Rename to...
1985 (s390_legitimate_constant_p): ...this. Make static, return a bool,
1986 and add a mode argument.
1987 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1989 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
1991 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
1992 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1993 (sh_legitimate_constant_p): New function.
1995 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
1996 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
1997 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1998 (legitimate_constant_p): Rename to...
1999 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2001 (constant_address_p): Update accordingly.
2003 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2004 argument and return a bool.
2005 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2006 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2007 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2008 (spu_rtx_costs): Update accordingly.
2009 * config/spu/predicates.md (vec_imm_operand): Likewise.
2011 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2013 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2014 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2015 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2017 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2018 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2019 * config/vax/vax.c (legitimate_constant_p): Likewise.
2021 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2022 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2023 (xtensa_legitimate_constant_p): New function.
2025 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2027 * target.def (cannot_force_const_mem): Add a mode argument.
2028 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2029 * doc/tm.texi: Regenerate.
2030 * hooks.h (hook_bool_mode_rtx_false): Declare.
2031 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2032 (hook_bool_mode_const_rtx_true): Likewise.
2033 (hook_bool_mode_rtx_false): New function.
2034 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2035 to be non-VOID. Update call to cannot_force_const_mem.
2036 (find_reloads): Update accordingly.
2037 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2038 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2040 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2041 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2042 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2043 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2044 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2045 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2046 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2047 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2048 (m68k_cannot_force_const_mem): ...this new function.
2049 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2051 (mips_const_insns, mips_legitimize_const_move): Update calls.
2052 (mips_secondary_reload_class): Likewise.
2053 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2054 (pa_cannot_force_const_mem): ...this new function.
2055 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2056 (rs6000_cannot_force_const_mem): ...this new function.
2057 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2059 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2060 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2062 (xtensa_cannot_force_const_mem): ...this new function.
2064 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2066 * config/mips/mips.c (mips16_build_function_stub): Call
2067 build_function_type_list instead of build_function_type.
2068 (mips16_build_call_stub): Likewise.
2070 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2072 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2073 instead of build_function_type.
2075 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2077 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2078 instead of build_function_type.
2080 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2083 * config/i386/i386.md (insv): Change operand 0 constraint to
2084 "register_operand". Change operand 1 and 2 constraint to
2085 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2086 * config/i386/sse.md (sse4_1_pinsrb): Export.
2087 (sse2_pinsrw): Ditto.
2088 (sse4_1_pinsrd): Ditto.
2089 (sse4_1_pinsrq): Ditto.
2090 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2091 * config/i386/i386.c (ix86_expand_pinsr): New.
2093 2011-04-20 Easwaran Raman <eraman@google.com>
2095 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2096 containing union type only with -fstrict-aliasing.
2098 2011-04-20 Jim Meyering <meyering@redhat.com>
2100 Remove useless if-before-free tests.
2101 * calls.c (expand_call, save_area): Likewise.
2102 * cfgcleanup.c (try_forward_edges): Likewise.
2103 * collect2.c (collect_execute): Likewise.
2104 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2105 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2106 * coverage.c (coverage_checksum_string): Likewise.
2107 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2108 * cselib.c (cselib_init): Likewise.
2109 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2110 (df_set_clean_cfg): Likewise.
2111 * function.c (free_after_compilation): Likewise.
2112 * gcc.c (do_spec_1, main): Likewise.
2113 * gcov.c (create_file_names): Likewise.
2114 * gensupport.c (identify_predicable_attribute): Likewise.
2115 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2116 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2117 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2118 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2119 * ipa-pure-const.c (local_pure_const): Likewise.
2120 * ipa-reference.c (propagate): Likewise.
2121 * ira-costs.c (free_ira_costs): Likewise.
2122 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2123 * matrix-reorg.c (mat_free): Likewise.
2124 * prefix.c (get_key_value): Likewise.
2125 * profile.c (compute_value_histograms): Likewise.
2126 * reload1.c (free_reg_equiv): Likewise.
2127 * sched-deps.c (free_deps): Likewise.
2128 * sel-sched-ir.c (fence_clear): Likewise.
2129 * sese.c (set_rename, if_region_set_false_region): Likewise.
2130 * tree-data-ref.c (free_rdg): Likewise.
2131 * tree-eh.c (lower_try_finally): Likewise.
2132 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2133 * tree-ssa-live.c (delete_var_map): Likewise.
2134 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2135 * tree-ssa-pre.c (phi_trans_add): Likewise.
2137 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2139 PR tree-optimization/48611
2140 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2141 beyond ERT_MUST_NOT_THROW region.
2143 2011-04-20 Catherine Moore <clm@codesourcery.com>
2145 * config/mips/mips.opt (mfix-24k): New.
2146 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2147 * config/mips/mips.md (length): Increase by 4 for stores if
2149 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2150 all noreorder if fixing 24K errata.
2151 * doc/invoke.texi: Document mfix-24k.
2153 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2155 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2156 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2158 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2160 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2161 (const_ok_for_op): ... to here.
2163 2011-04-20 Kai Tietz <ktietz@redhat.com>
2165 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2166 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2168 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2170 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2172 2011-04-20 Richard Guenther <rguenther@suse.de>
2174 PR tree-optimization/47892
2175 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2178 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2180 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2182 2011-04-20 Tristan Gingold <gingold@adacore.com>
2184 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2186 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2190 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2191 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2192 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2193 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2194 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2196 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2199 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2200 (avr_asm_named_section, avr_asm_output_aligned_common,
2201 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2202 New functions to update...
2203 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2204 (avr_asm_init_sections): Overwrite section callbacks for
2205 data_section, bss_section.
2206 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2208 (avr_file_end): ...here.
2210 2011-04-20 Richard Guenther <rguenther@suse.de>
2213 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2214 objects and types here. Adjust for their offset before comparing.
2216 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2218 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2221 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2223 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2224 (GIMPLE_H): Include $(INTERNAL_FN_H).
2225 (OBJS-common): Add internal-fn.o.
2226 (internal-fn.o): New rule.
2227 * internal-fn.def: New file.
2228 * internal-fn.h: Likewise.
2229 * internal-fn.c: Likewise.
2230 * gimple.h: Include internal-fn.h.
2231 (GF_CALL_INTERNAL): New gf_mask.
2232 (gimple_statement_call): Put fntype into a union with a new
2234 (gimple_build_call_internal): Declare.
2235 (gimple_build_call_internal_vec): Likewise.
2236 (gimple_call_same_target_p): Likewise.
2237 (gimple_call_internal_p): New function.
2238 (gimple_call_internal_fn): Likewise.
2239 (gimple_call_fntype): Return null for internal calls.
2240 (gimple_call_set_fntype): Assert that the function is not internal.
2241 (gimple_call_set_fn): Likewise.
2242 (gimple_call_set_fndecl): Likewise.
2243 (gimple_call_set_internal_fn): New function.
2244 (gimple_call_addr_fndecl): Handle null functions.
2245 (gimple_call_return_type): Likewise null types.
2246 * gimple.c (gimple_build_call_internal_1): New function.
2247 (gimple_build_call_internal): Likewise.
2248 (gimple_build_call_internal_vec): Likewise.
2249 (gimple_call_same_target_p): Likewise.
2250 (gimple_call_flags): Handle calls to internal functions.
2251 (gimple_call_fnspec): New function.
2252 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2253 (gimple_has_side_effects): Handle null functions.
2254 (gimple_rhs_has_side_effects): Likewise.
2255 (gimple_call_copy_skip_args): Handle calls to internal functions.
2256 * cfgexpand.c (expand_call_stmt): Likewise.
2257 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2258 * gimple-fold.c (gimple_fold_call): Handle null functions.
2259 (gimple_fold_stmt_to_constant_1): Don't fold
2260 calls to internal functions.
2261 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2263 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2264 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2265 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2266 (do_warn_unused_result): Likewise.
2267 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2268 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2269 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2270 the target of a call.
2271 (initialize_hash_element): Update accordingly.
2272 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2273 (iterative_hash_hashable_expr): Handle calls to internal functions.
2274 (print_expr_hash_elt): Likewise.
2275 * tree-ssa-pre.c (can_value_number_call): Likewise.
2276 (eliminate): Handle null functions.
2277 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2278 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2279 (find_func_aliases): Likewise.
2280 * value-prof.c (gimple_ic_transform): Likewise.
2281 (gimple_indirect_call_to_profile): Likewise.
2282 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2283 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2285 2011-04-19 Jan Hubicka <jh@suse.cz>
2287 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2288 * ipa-inline.c (inline_small_functions): Compute summaries first,
2289 populate heap later.
2291 2011-04-19 Jan Hubicka <jh@suse.cz>
2293 * cgraph.h (save_inline_function_body): Remove.
2294 * ipa-inline-transform.c: New file, broke out of...
2295 * ipa-inline.c: ... this one; Update toplevel comment.
2296 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2298 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2299 (cgraph_mark_inline_edge): Rename to inline_call; move to
2300 ipa-inline-transform.c.
2301 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2302 move to ipa-inline-transform.c
2303 (recursive_inlining, inline_small_functions, flatten_function,
2304 ipa_inline, inline_always_inline_functions,
2305 early_inline_small_functions): Update.
2306 (inline_transform): Move to ipa-inline-transform.c.
2307 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2309 * Makefile.in (ipa-inline-transform.o): New file.
2310 * cgraphunit.c (save_inline_function_body): Move to
2311 ipa-inline-transform.c
2313 2011-04-19 DJ Delorie <dj@redhat.com>
2315 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2316 registers if we already know there aren't any.
2317 (m32c_emit_epilogue): Don't emit a barrier here.
2318 (m32c_emit_eh_epilogue): Likewise.
2319 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2320 operands at expand time.
2321 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2323 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2324 duplicates. Provide aliases instead.
2325 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2326 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2329 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2331 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2332 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2333 (general_or_i64_p, sparc_register_move_cost): New function.
2335 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2337 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2338 Add lynx, mipssde. Sort table.
2340 2011-04-19 Xinliang David Li <davidxl@google.com>
2342 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2345 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2348 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2349 is a SUBREG with non-MODE_INT mode inside of it.
2351 2011-04-19 Martin Jambor <mjambor@suse.cz>
2353 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2354 also according to actual contants.
2355 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2356 (gimple_fold_call): Use it.
2357 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2359 2011-04-19 Martin Jambor <mjambor@suse.cz>
2361 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2362 non-pointer assignments.
2364 2011-04-19 Martin Jambor <mjambor@suse.cz>
2366 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2367 account anc_offset and otr_type from the indirect edge info.
2368 * ipa-prop.c (get_ancestor_addr_info): New function.
2369 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2370 get_ancestor_addr_info, call it.
2371 (ipa_note_param_call): Do not initialize information about polymorphic
2372 calls, return the indirect call graph edge. Remove the last
2373 parameter, adjust all callers.
2374 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2375 parameters. Initialize polymorphic information in the indirect edge.
2377 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2380 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2381 the types if they have different enumeration identifiers.
2383 2011-04-19 Jan Hubicka <jh@suse.cz>
2385 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2386 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2387 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2388 (optimize_function_for_size_p) ... here.
2390 2011-04-19 Richard Guenther <rguenther@suse.de>
2393 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2396 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2398 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2399 if DECL_NO_INLINE_WARNING_P is set on the function.
2401 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2404 * reload1.c (inc_for_reload): Return void. All callers changed.
2405 (emit_input_reload_insns): Don't try to delete previous output
2406 reloads to a register, or record spill_reg_store for autoincs.
2408 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2410 * gengtype.h: Updated copyright year.
2411 (struct input_file_st): Add inpisplugin field.
2412 (type_fileloc): New function.
2414 (write_typed_struct_alloc_def): Add gcc_assert.
2415 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2416 (write_typed_alloc_defns): Don't output for plugin files.
2417 (input_file_by_name): Clear inpisplugin field.
2418 (main): Set inpisplugin field for plugin files.
2420 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2422 * gengtype-state.c (string_eq): New.
2423 (read_state): Use string_eq instead of strcmp when creating the
2426 2011-04-19 Wei Guozhi <carrot@google.com>
2429 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2430 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2432 * config/arm/constraints.md (Uu): New constraint.
2433 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2435 2011-04-19 Tristan Gingold <gingold@adacore.com>
2437 * config.gcc (-*-*-*vms): Added.
2438 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2440 * config/vms/vms-ld.c: New file.
2441 * config/vms/vms-ar.c: New file.
2442 * config/vms/t-vmsnative: New file.
2444 2011-04-18 Xinliang David Li <davidxl@google.com>
2446 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2448 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2451 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2452 if TREE_TYPE (v) is non-NULL.
2454 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2455 gimple_get_virt_mehtod_for_binfo.
2456 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2457 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2459 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2461 2011-04-18 Michael Matz <matz@suse.de>
2462 Steve Ellcey <sje@cup.hp.com>
2464 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2465 use its mode as source mode if it isn't VOIDmode.
2467 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2469 * doc/passes.texi: Fill crossref nodes.
2471 2011-04-18 Jim Meyering <meyering@redhat.com>
2473 Fix doubled-word typos in comments and strings
2474 * config/alpha/vms-unwind.h: s/for for/for/
2475 * config/arm/unwind-arm.h: Likewise.
2476 * config/microblaze/microblaze.c: Likewise.
2477 * config/sh/constraints.md: s/in in/in/
2478 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2480 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2482 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2483 (AVX_FLOAT_MODE_P): Ditto.
2484 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2485 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2486 (AVX_VEC_FLOAT_MODE_P): Ditto.
2487 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2488 (UNSPEC_MASKSTORE): Ditto.
2489 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2490 Merge from <sse>_movmsk<ssemodesuffix> and
2491 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2492 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2494 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2495 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2496 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2498 2011-04-18 Jan Hubicka <jh@suse.cz>
2500 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2502 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2503 (want_inline_function_called_once_p): Break out the logic from
2505 (edge_badness): Ensure that profile is not misupdated.
2506 (lookup_recursive_calls): Prioritize by call frequencies.
2507 (inline_small_functions): Move program size estimates here;
2508 actually process whole queue even when unit growth has been
2509 met. (to properly compute inline_failed reasons and for the
2510 case unit size decrease.) Revisit comments on recursive inlining.
2511 (ipa_inline): Remove unit summary code; first inline hot calls
2512 of functions called once, cold calls next.
2513 (order, nnodes): Remove unused variables.
2514 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2515 (GTFILES): Remove ipa-inline.c
2516 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2518 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2520 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2522 2011-04-18 Jie Zhang <jie@codesourcery.com>
2523 Richard Earnshaw <rearnsha@arm.com>
2525 * arm.c (neon_builtin_type_bits): Remove.
2526 (typedef enum neon_builtin_mode): New.
2527 (T_MAX): Don't define.
2528 (typedef enum neon_builtin_datum): Remove bits, codes[],
2529 num_vars and base_fcode. Add mode, code and fcode.
2530 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2531 VAR10): Change accordingly.
2532 (neon_builtin_data[]): Change accordingly
2533 (arm_init_neon_builtins): Change accordingly.
2534 (neon_builtin_compare): Remove.
2535 (locate_neon_builtin_icode): Remove.
2536 (arm_expand_neon_builtin): Change accordingly.
2538 * arm.h (enum arm_builtins): Move to ...
2539 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2541 * arm.c (arm_builtin_decl): Declare.
2542 (TARGET_BUILTIN_DECL): Define.
2543 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2544 (arm_builtin_decls[]): New.
2545 (arm_init_neon_builtins): Store builtin declarations in
2546 arm_builtin_decls[].
2547 (arm_init_tls_builtins): Likewise.
2548 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2549 (arm_builtin_decl): New.
2551 2011-04-18 Richard Guenther <rguenther@suse.de>
2553 * tree.c (upper_bound_in_type): Build properly canonicalized
2555 (lower_bound_in_type): Likewise.
2557 2011-04-18 Richard Guenther <rguenther@suse.de>
2559 * gimple.h (gimple_call_addr_fndecl): New function.
2560 (gimple_call_fndecl): Use it.
2561 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2563 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2564 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2566 2011-04-18 Richard Guenther <rguenther@suse.de>
2569 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2571 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2574 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2575 DECL_IN_CONSTANT_POOL without RTL.
2577 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2578 Ira Rosen <ira.rosen@linaro.org>
2581 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2582 to match neon_vzip/vuzp/vtrn_internal.
2583 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2584 outputs explicitly dependent on both inputs.
2585 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2587 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2589 PR tree-optimization/48616
2590 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2591 whether the shift is by scalar or vector based on whether all SLP
2592 scalar stmts have the same rhs.
2594 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2596 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2599 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2601 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2604 2011-04-17 Jan Hubicka <jh@suse.cz>
2606 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2607 * cgrpahunit.c (cgraph_finalize_function): Do not set
2608 finalized_by_frontend.
2609 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2610 finalized_by_frontend.
2612 2011-04-17 Jan Hubicka <jh@suse.cz>
2614 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2615 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2616 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2617 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2619 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2621 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2623 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2626 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2627 is non-null before accessing it.
2628 (input_cgraph): Remove trailing spaces.
2630 2011-04-17 Revital Eres <revital.eres@linaro.org>
2632 * params.def (sms-min-sc): New param flag.
2633 * modulo-sched.c (sms_schedule): Use it.
2634 * doc/invoke.texi (sms-min-sc): Document it.
2636 2011-04-17 Jan Hubicka <jh@suse.cz>
2638 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2639 present, also set gimple_call_set_cannot_inline.
2640 * ipa-inline.c: Update toplevel comment.
2642 (cgraph_clone_inlined_nodes): Fix linebreaks.
2643 (cgraph_check_inline_limits): Restructure to ...
2644 (caller_growth_limits): ... this one; be more tolerant
2645 on growth in nested inline chains; add explanatory comment;
2646 fix stack accounting thinko introduced by previous patch.
2647 (cgraph_default_inline_p): Remove.
2648 (report_inline_failed_reason): New function.
2649 (can_inline_edge_p): New function.
2650 (can_early_inline_edge_p): New function.
2651 (leaf_node_p): Move upwards in file.
2652 (want_early_inline_function_p): New function.
2653 (want_inline_small_function_p): New function.
2654 (want_inline_self_recursive_call_p): New function.
2655 (cgraph_edge_badness): Rename to ...
2656 (edge_badness) ... this one; fix linebreaks.
2657 (update_edge_key): Update call of edge_baddness; add
2658 detailed dump about queue updates.
2659 (update_caller_keys): Use can_inline_edge_p and
2660 want_inline_small_function_p.
2661 (cgraph_decide_recursive_inlining): Rename to...
2662 (recursive_inlining): Use can_inline_edge_p and
2663 want_inline_self_recursive_call_p; simplify and remove no longer
2665 (cgraph_set_inline_failed): Remove.
2666 (add_new_edges_to_heap): Use can_inline_edge_p and
2667 want_inline_small_function_p.
2668 (cgraph_decide_inlining_of_small_functions): Rename to ...
2669 (inline_small_functions): ... this one; cleanup; use
2670 can/want predicates; cleanup debug ouput; work edges till fibheap
2671 is exhausted and do not stop once unit growth is reached; remove
2672 later loop processing remaining edges.
2673 (cgraph_flatten): Rename to ...
2674 (flatten_function): ... this one; use can_inline_edge_p
2675 and can_early_inline_edge_p predicates.
2676 (cgraph_decide_inlining): Rename to ...
2677 (ipa_inline): ... this one; remove unreachable nodes before
2678 inlining functions called once; simplify the pass.
2679 (cgraph_perform_always_inlining): Rename to ...
2680 (inline_always_inline_functions): ... this one; use
2681 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2682 (cgraph_decide_inlining_incrementally): Rename to ...
2683 (early_inline_small_functions): ... this one; simplify
2684 using new predicates; cleanup; make dumps prettier.
2685 (cgraph_early_inlining): Rename to ...
2686 (early_inliner): newer inline regular functions into always-inlines;
2687 fix updating of call stmt summaries.
2688 (pass_early_inline): Update for new names.
2689 (inline_transform): Fix formating.
2690 (gate_cgraph_decide_inlining): Rename to ...
2691 (pass_ipa_inline): ... this one.
2692 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2693 * ipa-inline-analysis.c (dump_inline_summary): Update.
2694 (compute_inline_parameters): Do not compute disregard_inline_limits;
2695 look for mismatching arguments.
2696 (estimate_growth): Fix handlig of non-trivial self recursion.
2697 (inline_read_summary): Do not read info->disregard_inline_limits.
2698 (inline_write_summary): Do not write info->disregard_inline_limits.
2699 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2700 and move all checks into can_inline_edge_p predicate; re-enable code
2701 comparing optimization levels.
2702 (expand_call_inline): Do not test inline_forbidden_into_p.
2703 * Makefile.in (ipa-inline.o): Update arguments.
2705 2011-04-17 Revital Eres <revital.eres@linaro.org>
2707 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2709 2011-04-17 Revital Eres <revital.eres@linaro.org>
2711 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2713 2011-04-17 Michael Matz <matz@suse.de>
2715 PR tree-optimization/48622
2717 * ipa-inline-analysis.c (inline_read_summary): Read size/time
2718 in same order as they're written.
2720 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2722 * config/pa/predicates.md: Reorganize and simplify predicates.
2723 Eliminate duplicate code checks.
2724 (arith_operand): Rename to arith14_operand
2725 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2726 * config/pa/pa.md: Use renamed operands.
2727 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2728 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2729 arith11_operand, adddi3_operand, indexed_memory_operand,
2730 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2731 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2732 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2733 move_dest_operand, move_src_operand, prefetch_cc_operand,
2734 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2735 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2736 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2737 div_operand, int5_operand, movb_comparison_operator,
2738 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2739 arith_double_operand, ireg_operand, lhs_lshift_operand,
2740 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2741 integer_store_memory_operand): Likewise.
2742 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2743 (integer_store_memory_operand, read_only_operand,
2744 function_label_operand, borx_reg_operand,
2745 non_hard_reg_operand): Likewise.
2746 (eq_neq_comparison_operator): Delete unused operator.
2747 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2748 function_label_operand.
2749 (emit_move_sequence): Likewise.
2751 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2753 * config/i386/sse.md (sseunpackmode): New mode attribute.
2754 (ssepackmode): Ditto.
2755 (vec_pack_trunc_<mode>): Macroize expander from
2756 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2757 (vec_unpacks_lo_<mode>): Macroize expander from
2758 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2759 (vec_unpacks_hi_<mode>): Macroize expander from
2760 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2761 (vec_unpacku_lo_<mode>): Macroize expander from
2762 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2763 (vec_unpacku_hi_<mode>): Macroize expander from
2764 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2765 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2766 ix86_expand_sse4_unpack.
2767 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2769 2011-04-16 Jan Hubicka <jh@suse.cz>
2771 * cgraphbuild.c: Include ipa-inline.h.
2772 (reset_inline_failed): Use initialize_inline_failed.
2773 * cgraph.c: Include ipa-inline.h.
2774 (cgraph_create_node_1): Do not initialize estimated_growth.
2775 (initialize_inline_failed): More to ipa-inline-analysis.c
2776 (dump_cgraph_node): Do not dump inline flags.
2777 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2778 and disregard_inline_limits flags.
2779 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2780 time, size, estimated_growth.
2781 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2783 * cgraphunit.c (cgraph_decide_is_function_needed): Use
2784 DECL_DISREGARD_INLINE_LIMITS.
2785 (cgraph_analyze_function): Do not initialize
2786 node->local.disregard_inline_limits.
2787 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2788 inlinable, versionable and disregard_inline_limits.
2789 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2790 cgraph_check_inline_limits, cgraph_default_inline_p,
2791 cgraph_edge_badness, update_caller_keys, update_callee_keys,
2792 add_new_edges_to_heap): Update.
2793 (cgraph_decide_inlining_of_small_function): Update; set
2794 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
2795 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2796 cgraph_decide_inlining_incrementally): Update.
2797 * ipa-inline.h (inline_summary): Add inlinable, versionable,
2798 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2799 time, size and estimated_growth parameters.
2800 (estimate_edge_growth): Update.
2801 (initialize_inline_failed): Declare.
2802 * ipa-split.c: Include ipa-inline.h
2803 (execute_split_functions): Update.
2804 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2805 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2806 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2807 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2808 estimated_growth to INT_MIN.
2809 (inline_node_duplication_hook): Likewise.
2810 (dump_inline_summary): Dump new fields.
2811 (compute_inline_parameters): Update.
2812 (estimate_edge_time, estimate_time_after_inlining,
2813 estimate_size_after_inlining, estimate_growth, inline_read_summary,
2814 inline_write_summary):
2815 (initialize_inline_failed): Move here from cgraph.c.
2816 * tree-sra.c: Include ipa-inline.h.
2817 (ipa_sra_preliminary_function_checks): Update.
2818 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2821 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2823 * config/i386/sse.md (V16): New mode iterator.
2825 (AVXMODEQI, AVXMODEDI): Remove.
2826 (sse2, sse3): New mode attribute.
2827 (mov<mode>): Use V16 mode iterator.
2828 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
2829 (push<mode>1): Use V16 mode iterator.
2830 (movmisalign<mode>): Ditto.
2831 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2832 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
2833 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2834 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
2835 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
2836 avx_movdqu<avxmodesuffix>.
2837 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
2838 *avx_movdqu<avxmodesuffix>.
2839 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
2840 avx_lddqu<avxmodesuffix>.
2841 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
2842 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
2843 avx_movnt<AVXMODEDI:mode>.
2844 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
2845 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
2847 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
2850 * haifa-sched.c (prune_ready_list, schedule_block): Use
2851 sched_pressure_p rather than flag_sched_pressure.
2853 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
2855 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2856 cgraph_get_node instead of cgraph_get_create_node.
2858 2011-04-15 Jakub Jelinek <jakub@redhat.com>
2860 * cfgexpand.c (expand_debug_expr): Use
2861 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
2863 2011-04-15 Michael Matz <matz@suse.de>
2865 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
2866 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
2867 * function.c (gimplify_parameters): Ditto.
2868 * gimplify.c (gimplify_vla_decl): Ditto.
2870 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
2871 (gimple_call_set_alloca_for_var): New inline function.
2872 (gimple_call_alloca_for_var_p): Ditto.
2873 * gimple.c (gimple_build_call_from_tree): Remember
2874 CALL_ALLOCA_FOR_VAR_P state.
2875 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
2877 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
2878 calls if they were for VLA objects.
2880 2011-04-15 Martin Jambor <mjambor@suse.cz>
2882 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
2885 2011-04-15 Martin Jambor <mjambor@suse.cz>
2888 * tree-emutls.c (lower_emutls_function_body): Call
2889 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
2892 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2894 * c-decl.c (detect_field_duplicates): Call
2895 objc_detect_field_duplicates instead of objc_get_interface_ivars.
2897 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
2899 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
2900 * gimple.c (gimple_asm_clobbers_memory_p): Define.
2901 * ipa-pure-const.c (check_stmt): Call it.
2902 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
2904 2011-04-15 Richard Guenther <rguenther@suse.de>
2906 PR tree-optimization/48290
2907 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
2908 Properly decide inhibiting propagation based on the valueized
2909 operand. Do loop-closed SSA form preserving here ...
2910 (init_copy_prop): ... not here.
2912 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
2915 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
2916 (*ieee_smax<mode>3): Likewise.
2918 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2920 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2921 Replace match_operand with match_dup for the third operand in
2924 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2926 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
2927 to track processing of conditionals. Update all callers.
2928 (try_combine, simplify_if_then_else): Update.
2930 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2932 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
2935 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
2937 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
2938 instead of match_operand for operand 3.
2940 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
2942 * recog.h (insn_operand_data): Add an "allows_mem" field.
2943 * genoutput.c (output_operand_data): Initialize it.
2944 * optabs.c (maybe_legitimize_operand_same_code): New function.
2945 (maybe_legitimize_operand): Use it when matching the original
2948 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2950 * gimplify.c: Fix issues in comments throughout.
2951 (voidify_wrapper_expr): Fix long line.
2952 (build_stack_save_restore): Likewise.
2953 (gimplify_loop_expr): Likewise.
2954 (gimplify_compound_lval): Likewise.
2955 (gimplify_init_ctor_eval): Likewise.
2956 (gimplify_modify_expr_rhs): Likewise.
2957 (omp_notice_threadprivate_variable): Likewise.
2959 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2961 * cfgexpand.c (expand_call_stmt): Convert the function type to the
2962 original one if this is not a builtin function.
2964 2011-04-14 Jakub Jelinek <jakub@redhat.com>
2967 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
2968 offset it as needed based on top 2 bits in operands[3], change
2969 MEM mode to SFmode and mask those 2 bits away from operands[3].
2971 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2973 * c-parser.c (c_parser_objc_protocol_definition): Updated for
2974 change from objc_declare_protocols() to objc_declare_protocol().
2976 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
2978 * config/i386/sse.md (sse4_1): New mode attribute.
2979 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
2980 avx_blend<ssemodesuffix><avxmodesuffix> and
2981 sse4_1_blend<ssemodesuffix> using VF mode iterator.
2982 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
2983 avx_blendv<ssemodesuffix><avxmodesuffix> and
2984 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
2985 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
2986 avx_dp<ssemodesuffix><avxmodesuffix> and
2987 sse4_1_dp<ssemodesuffix> using VF mode iterator.
2988 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
2989 (sse4_1_packusdw): Merge with *avx_packusdw.
2990 (sse4_1_pblendvb): Merge with *avx_pblendvb.
2991 (sse4_1_pblendw): Merge with *avx_pblendw.
2992 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
2993 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
2994 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
2996 (sse4_1_round<ssescalarmodesuffix>): Merge with
2997 *avx_round<ssescalarmodesuffix>.
2998 (aesenc): Merge with *avx_aesenc.
2999 (aesenclast): Merge with *avx_aesenclast.
3000 (aesdec): Merge with *avx_aesdec.
3001 (aesdeclast): Merge with *avx_aesdeclast.
3002 (pclmulqdq): Merge with *pclmulqdq.
3003 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3005 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3007 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3010 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3011 (align_local_variable): This. Update DECL_ALIGN.
3012 (add_stack_var): Updated.
3013 (expand_one_stack_var): Likewise.
3015 2011-04-14 Richard Guenther <rguenther@suse.de>
3017 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3019 (dse_initialize_block_local_data, dse_leave_block,
3020 record_voperand_set, get_stmt_uid): Likewise.
3021 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3022 (dse_optimize_stmt): Remove voperand set handling code.
3023 Simplify and improve to handle any kind of killing stmt.
3024 (dse_record_phi): Remove.
3025 (dse_enter_block): Simplify.
3026 (tree_ssa_dse): Likewise.
3027 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3029 2011-04-14 Jan Hubicka <jh@suse.cz>
3031 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3032 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3033 (cgraph_local_info): Remove inline_summary.
3034 * ipa-cp.c: Include ipa-inline.h.
3035 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3036 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3038 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3039 (input_overwrite_node): Do not set inline summary.
3040 (input_node): Do not stream inline summary.
3041 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3042 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3043 growth; we do not have inline parameters computed for that anyway.
3044 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3045 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3046 (inline_summary_t): New type and VECtor.
3047 (debug_inline_summary, dump_inline_summaries): Declare.
3048 (inline_summary): Use VOCtor.
3049 (estimate_edge_growth): Kill hack computing call stmt size directly.
3050 * lto-section-in.c (lto_section_name): Add inline section.
3051 * ipa-inline-analysis.c: Include lto-streamer.h
3052 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3053 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3054 (inline_summary_vec): Define.
3055 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3056 dump_inline_summaries): New functions.
3057 (estimate_function_body_sizes): Properly compute size/time of outgoing
3059 (compute_inline_parameters): Alloc inline_summary; do not compute
3060 size/time of incomming calls.
3061 (estimate_edge_time): Avoid missing time summary hack.
3062 (inline_read_summary): Read inline summary info.
3063 (inline_write_summary): Write inline summary info.
3064 (inline_free_summary): Free all hooks and inline summary vector.
3065 * lto-streamer.h: Add LTO_section_inline_summary section.
3066 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3067 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3069 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3071 * tree-vectorizer.h (vect_strided_store_supported): Add a
3072 HOST_WIDE_INT argument.
3073 (vect_strided_load_supported): Likewise.
3074 (vect_permute_store_chain): Return void.
3075 (vect_transform_strided_load): Likewise.
3076 (vect_permute_load_chain): Delete.
3077 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3078 count argument. Check that the count is a power of two.
3079 (vect_strided_load_supported): Likewise.
3080 (vect_permute_store_chain): Return void. Update after above changes.
3081 Assert that the access is supported.
3082 (vect_permute_load_chain): Likewise.
3083 (vect_transform_strided_load): Return void.
3084 * tree-vect-stmts.c (vectorizable_store): Update calls after
3085 above interface changes.
3086 (vectorizable_load): Likewise.
3087 (vect_analyze_stmt): Don't check for strided powers of two here.
3089 2011-04-14 Richard Guenther <rguenther@suse.de>
3091 PR tree-optimization/48590
3092 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3093 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3094 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3095 BUILT_IN_STACK_SAVE.
3096 * tree-ssa-dce.c (propagate_necessity): Handle
3097 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3099 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3101 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3104 2011-04-14 Richard Guenther <rguenther@suse.de>
3106 * tree.h (get_object_alignment_1): Declare.
3107 * builtins.c (get_object_alignment_1): Split out worker from ...
3108 (get_object_alignment): ... here.
3109 * fold-const.c (get_pointer_modulus_and_residue): Use
3110 get_object_alignment_1.
3112 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3114 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3116 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3117 parameter. Generalise code to handle arrays as well as vectors.
3118 (vect_setup_realignment): Update accordingly.
3119 * tree-vect-stmts.c (vectorizable_store): Likewise.
3120 (vectorizable_load): Likewise.
3122 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3124 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3125 within the per-copy loop.
3127 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3129 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3132 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3134 * doc/options.texi (Negative): Explicitly mention that the
3135 Negative chain must be circular.
3137 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3139 * function.h (block_chainon): Declare.
3140 * function.c (block_chainon): Define.
3142 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3143 Eric Weddington <eric.weddington@atmel.com>
3144 Georg-Johann Lay <avr@gjlay.de>
3146 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3148 (avr_init_builtins, avr_expand_builtin,
3149 avr_expand_delay_cycles, avr_expand_unop_builtin,
3150 avr_expand_binop_builtin ): New functions.
3151 (avr_builtin_id): New enum
3152 (struct avr_builtin_description): New struct
3153 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3154 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3156 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3157 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3158 UNSPECV_DELAY_CYCLES): new enumeration values
3159 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3160 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3161 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3162 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3163 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3164 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3165 "fmulsu"): New insns
3167 * config/avr/avr-c.c: fix line endings
3168 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3169 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3170 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3171 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3172 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3174 * doc/extend.texi (AVR Built-in Functions): New node
3175 (Target Builtins): Add documentation of AVR
3178 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3181 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3182 alone. Error if non-const data has attribute progmem.
3184 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3186 * tree.h (struct tree_constructor): Include tree_typed instead of
3188 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3189 TS_TYPED instead of TS_COMMON.
3191 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3193 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3194 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3195 (sse2_psadbw): Merge with *avx_psadbw.
3196 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3197 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3198 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3199 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3200 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3201 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3202 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3203 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3204 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3205 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3206 (ssse3_palignrti): Merge with *avx_palignrti.
3208 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3210 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3211 * tree-ssanames.c (fini_ssanames): VEC_free it.
3212 (make_ssa_name_fn): Update for VECness of free_ssanames.
3213 (release_ssa_name, release_dead_ssa_names): Likewise.
3214 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3216 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3217 TS_TYPED instead of TS_COMMON.
3219 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3221 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3222 statistics_counter_event.
3223 * tree-ssa-copyrename.c (stats): Define.
3224 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3225 statistics_counter_event.
3226 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3227 (bswap_stats, widen_mul_stats): Define.
3228 (insert_reciprocals): Increment rdivs_inserted.
3229 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3230 rfuncs_inserted. Add calls to statistics_counter_event.
3231 (execute_cse_sincos_1): Increment inserted.
3232 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3233 statistics_counter_event.
3234 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3235 of bswap_stats. Add calls to statistics_counter_event.
3236 (convert_mult_to_widen): Increment widen_mults_inserted.
3237 (convert_plusminus_to_widen): Increment maccs_inserted.
3238 (convert_mult_to_fma): Increment fmas_inserted.
3239 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3240 calls to statistics_counter_event.
3242 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3244 PR rtl-optimization/48455
3245 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3246 `temp_costs->mem_cost'.
3248 2011-04-13 Jan Hubicka <jh@suse.cz>
3250 * ipa-inline.h: New file.
3251 * ipa-inline-analysis.c: New file. Broken out of ...
3252 * ipa-inline.c: ... this file; update toplevel comment;
3253 include ipa-inline.h
3254 (inline_summary): Move to ipa-inline.h
3255 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3256 ipa-inline-analysis.c.
3257 (cgraph_estimate_time_after_inlining): Rename to
3258 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3259 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3260 to estimate_edge_growth.
3261 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3262 rename to estimate_size_after_inlining.
3263 (cgraph_mark_inline_edge): Update for new naming convention.
3264 (cgraph_check_inline_limits): Likewise.
3265 (cgraph_edge_badness): Likewise.
3266 (cgraph_decide_recursive_inlining): Likewise.
3267 (cgraph_decide_inlining_of_small_functions): Likewise.
3268 (cgraph_decide_inlining_incrementally): Likewise.
3269 (cgraph_estimate_growth): Rename to estimate_growth; move to
3270 ipa-inline-analysis.c.
3271 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3272 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3273 (compute_inline_parameters): Likewise.
3274 (compute_inline_parameters_for_current): Likewise.
3275 (pass_inline_parameters): Likewise.
3276 (inline_indirect_intraprocedural_analysis): Likewise.
3277 (analyze_function): Rename to inline_analyze_function; likewise.
3278 (add_new_function): Move to ipa-inline-analysis.c.
3279 (inline_generate_summary): Likewise.
3280 (inline_read_summary): Likewise.
3281 (inline_write_summary): Likewise.
3282 * Makefile.in (ipa-inline-analysis.c): New file.
3284 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3286 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3287 * configure: Regenerate.
3289 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3291 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3292 instead of tree_common.
3293 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3295 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3296 TS_TYPED rather than TS_COMMON.
3297 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3299 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3302 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3303 r20 around calls of __tablejump_elpm__
3305 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3308 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3310 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3312 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3314 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3315 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3316 (cfi_vec): New typedef.
3317 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3318 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3319 (cie_cfi_vec): New static variable.
3320 (cie_cfi_head): Delete.
3321 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3322 declaration changed. Use vector rather than list operations.
3323 (new_cfi): Don't initialize the dw_cfi_next field.
3324 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3325 rather than list operations.
3326 (lookup_cfa): Use vector rather than list operations.
3327 (output_cfis): New argument upto. Accept a cfi_vec rather than
3328 a dw_cfi_ref list head as argument. All callers changed.
3329 Iterate over the vector using upto as a maximum index.
3330 (output_all_cfis): New static function.
3331 (output_fde): Use vector rather than list operations. Use the
3332 new upto argument for output_cfis rather than manipulating a
3334 (dwarf2out_begin_prologue): Change initializations to match
3336 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3337 from the vector length rather than searching for the end of a list.
3338 Use output_all_cfis.
3339 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3341 2011-04-13 Nick Clifton <nickc@redhat.com>
3343 * config/rx/rx.md (movmemsi): Do not use this pattern when
3344 volatile pointers are involved.
3346 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3348 * config/i386/sse.md (pinsrbits): Remove.
3349 (sse2_packsswb): Merge with *avx_packsswb.
3350 (sse2_packssdw): Merge with *avx_packssdw.
3351 (sse2_packuswb): Merge with *avx_packuswb.
3352 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3353 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3354 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3355 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3356 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3357 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3358 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3359 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3360 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3361 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3362 (sse2_loadld): Merge with *avx_loadld.
3363 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3364 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3365 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3366 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3367 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3369 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3371 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3373 * print-tree.c (print_node): Likewise.
3374 * tree-inline.c (copy_tree_r): Likewise.
3375 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3376 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3377 instead of TS_COMMON.
3378 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3379 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3380 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3381 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3382 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3384 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3386 (TREE_CHAIN): Check for a TS_COMMON structure.
3387 (TREE_TYPE): Check for a TS_TYPED structure.
3389 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3391 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3392 cgraph_get_create_node instead of cgraph_node.
3394 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3396 * c-parser.c (c_parser_initelt): Updated call to
3397 objc_build_message_expr.
3398 (c_parser_postfix_expression): Likewise.
3400 2011-04-12 Kai Tietz <ktietz@redhat.com>
3402 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3403 MASK_MS_BITFIELD_LAYOUT bit.
3405 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3407 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3408 assert it is always true.
3409 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3412 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3414 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3415 compiling Objective-C to be more efficient.
3417 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3419 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3422 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3424 * recog.h, genoutput.c, optabs.c: Revert last patch.
3426 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3429 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3431 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3433 * recog.h (insn_operand_data): Add an "allows_mem" field.
3434 * genoutput.c (output_operand_data): Initialize it.
3435 * optabs.c (maybe_legitimize_operand_same_code): New function.
3436 (maybe_legitimize_operand): Use it when matching the original
3439 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3441 * genpreds.c (process_define_predicate): Move most processing
3442 to gensupport.c. Continue to validate the expression.
3443 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3444 (process_define_predicate): Move processing to gensupport.c.
3445 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3446 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3447 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3449 (valid_predicate_name_p): New function, split out from old
3450 genpreds.c:process_define_predicate.
3451 (process_define_predicate): New function, combining code from
3452 old genpreds.c and genrecog.c functions.
3453 (process_rtx): Call it for DEFINE_PREDICATE and
3454 DEFINE_SPECIAL_PREDICATE.
3456 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3458 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3459 size of a '%A' memory reference.
3460 (T_DREG, T_QREG): New neon_builtin_type_bits.
3461 (arm_init_neon_builtins): Assert that the load and store operands
3462 are neon_struct_operands.
3463 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3464 (NEON_ARG_MEMORY): New builtin_arg.
3465 (neon_dereference_pointer): New function.
3466 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3467 Handle NEON_ARG_MEMORY.
3468 (arm_expand_neon_builtin): Update after above interface changes.
3469 Use NEON_ARG_MEMORY for loads and stores.
3470 * config/arm/predicates.md (neon_struct_operand): New predicate.
3471 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3472 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3473 (V_four_elem): Tweak formatting.
3474 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3475 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3476 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3477 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3478 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3479 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3480 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3481 Use %A in the output template.
3482 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3483 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3484 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3485 the width of the memory access. Remove post-increment.
3486 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3488 2011-04-12 Nick Clifton <nickc@redhat.com>
3490 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3491 instruction for interrupt handlers if the target is the basic V850
3493 (expand_epilogue): Likewise.
3495 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3497 PR rtl-optimization/48549
3498 * combine.c (propagate_for_debug): Also stop after BB_END of
3499 this_basic_block. Process LAST and just stop processing after it.
3500 (combine_instructions): If last_combined_insn has been deleted,
3501 set last_combined_insn to its PREV_INSN.
3503 2011-04-12 Richard Guenther <rguenther@suse.de>
3505 PR tree-optimization/46076
3506 * gimple.h (struct gimple_statement_call): Add fntype field.
3507 (gimple_call_fntype): Adjust.
3508 (gimple_call_set_fntype): New function.
3509 * gimple.c (gimple_build_call_1): Set the call function type.
3510 * gimplify.c (gimplify_call_expr): Preserve the function
3511 type the frontend used for the call.
3512 (gimplify_modify_expr): Likewise.
3513 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3515 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3517 * tree-ssa.c (useless_type_conversion_p): Function pointer
3518 conversions are useless.
3520 2011-04-12 Martin Jambor <mjambor@suse.cz>
3522 * cgraph.h (cgraph_node): Remove function declaration.
3523 (cgraph_create_node): Declare.
3524 (cgraph_get_create_node): Likewise.
3525 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3526 Updated all callers.
3527 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3528 the decl does not already exist. Call cgraph_get_create_node instead
3530 (cgraph_get_create_node): New function.
3531 (cgraph_same_body_alias): Update comment.
3532 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3533 assert it does not return NULL.
3534 (cgraph_update_edges_for_call_stmt): Likewise.
3535 (cgraph_clone_edge): Likewise.
3536 (cgraph_create_virtual_clone): Likewise.
3537 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3538 instead of cgraph_node.
3539 (cgraph_add_new_function): Call cgraph_create_node or
3540 cgraph_get_create_node instead of cgraph_node.
3541 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3542 instead of cgraph_node.
3543 (record_eh_tables): Likewise.
3544 (mark_address): Likewise.
3545 (mark_load): Likewise.
3546 (build_cgraph_edges): Call cgraph_get_create_node instead
3548 (rebuild_cgraph_edges): Likewise.
3549 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3550 instead of cgraph_node.
3551 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3553 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3554 cgraph_create_node instead of cgraph_node.
3555 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3557 * lto-cgraph.c (input_node): Likewise.
3558 * lto-streamer-in.c (input_function): Likewise.
3559 * varasm.c (mark_decl_referenced): Likewise.
3560 (assemble_alias): Likewise.
3562 2011-04-12 Martin Jambor <mjambor@suse.cz>
3564 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3565 instead of cgraph_node and assert it does not return NULL.
3566 * lto-streamer-in.c (lto_read_body): Likewise.
3567 * omp-low.c (new_omp_context): Likewise.
3568 (create_task_copyfn): Likewise.
3569 * tree-emutls.c (lower_emutls_function_body): Likewise.
3570 * matrix-reorg.c (transform_allocation_sites): Likewise.
3572 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3575 * c-typeck.c (build_asm_expr): Error out on attempts to use
3576 void type outputs or inputs for constraints that allow reg or
3579 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3580 Richard Earnshaw <rearnsha@arm.com>
3583 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3584 to use sign-magnitude offsets. Reject unsupported unaligned
3585 cases. Add detailed description in comments.
3586 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3587 condition from TARGET_32BIT to TARGET_ARM.
3589 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3591 * tree.h (struct typed_tree): New.
3592 (struct tree_common): Include it instead of tree_base.
3593 (TREE_TYPE): Update for new location of type field.
3594 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3595 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3596 (union tree_node): Add typed field.
3597 * treestruct.def (TS_TYPED): New.
3598 * lto-streamer.c (check_handled_ts_structures): Handle it.
3599 * tree.c (MARK_TS_TYPED): New macro.
3600 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3602 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3604 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3605 (force_nonfallthru): Do not alter the loop nest if no basic block
3608 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3610 * config/i386/sse.md (VI): New mode iterator.
3612 (AVX256MODEI): Ditto.
3613 (AVXMODEF4P): Ditto.
3614 (avxvecpsmode): Ditto.
3615 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3616 (sse2_andnot<mode>3): New expander.
3617 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3618 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3619 (<any_logic:code><mode>3): Use VI mode iterator.
3620 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3621 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3622 (*andnottf3): Handle AVX three-operand constraints.
3623 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3625 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3626 Robert Millan <rmh@gnu.org>
3628 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3629 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3630 GNU_USER_DYNAMIC_LINKER64): Define.
3631 (REG_NAME): Don't undefine.
3632 (MD_UNWIND_SUPPORT): Undefine.
3633 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3634 (REG_NAME): Don't undefine.
3635 (MD_UNWIND_SUPPORT): Undefine.
3636 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3638 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3640 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3641 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3643 2011-04-11 Xinliang David Li <davidxl@google.com>
3645 * value-profile.c (check_ic_target): New function.
3646 (gimple_ic_transform): Sanity check indirect call target.
3647 * gimple-low.c (gimple_check_call_args): Interface change.
3648 (gimple_check_call_matching_types): New function.
3649 * tree-inline.c (tree_can_inline_p): Call new function.
3651 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3653 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3654 tree-pretty-print.h & realmpfr.h.
3656 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3659 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3660 (setup_allocno_and_important_classes): Ditto.
3662 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3664 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3665 GNU_USER_DYNAMIC_LINKER.
3666 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3667 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3668 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3669 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3670 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3671 GNU_USER_TARGET_OS_CPP_BUILTINS.
3672 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3673 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3674 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3675 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3676 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3677 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3678 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3679 GNU_USER_TARGET_OS_CPP_BUILTINS.
3680 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3681 GNU_USER_DYNAMIC_LINKER.
3682 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3683 GNU_USER_TARGET_OS_CPP_BUILTINS.
3684 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3685 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3686 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3687 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3688 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3689 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3690 GNU_USER_DYNAMIC_LINKER64): Remove.
3691 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3692 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3693 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3694 GNU_USER_DYNAMIC_LINKER.
3695 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3696 GNU_USER_TARGET_OS_CPP_BUILTINS.
3697 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3698 GNU_USER_TARGET_OS_CPP_BUILTINS.
3699 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3700 to GNU_USER_TARGET_OS_CPP_BUILTINS.
3701 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3702 GNU_USER_TARGET_OS_CPP_BUILTINS.
3703 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3704 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3705 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3706 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3707 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3708 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3709 GNU_USER_DYNAMIC_LINKER.
3710 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3711 GNU_USER_TARGET_OS_CPP_BUILTINS.
3712 * config/m68k/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/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3717 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3718 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3719 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3720 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3721 GNU_USER_DYNAMIC_LINKER.
3722 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3723 GNU_USER_DYNAMIC_LINKERN32.
3724 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3725 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
3726 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
3727 GNU_USER_DYNAMIC_LINKER32.
3728 * config/mn10300/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
3731 GNU_USER_DYNAMIC_LINKER.
3732 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3733 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3734 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3735 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3736 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3737 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3738 GNU_USER_DYNAMIC_LINKER32.
3739 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3740 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3741 GNU_USER_DYNAMIC_LINKER.
3742 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3744 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3745 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3746 GNU_USER_DYNAMIC_LINKER64.
3747 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3748 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3749 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3750 GNU_USER_DYNAMIC_LINKER.
3751 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3752 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3753 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3754 GNU_USER_DYNAMIC_LINKER.
3755 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3756 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3757 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3758 GNU_USER_DYNAMIC_LINKER32.
3759 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3760 GNU_USER_DYNAMIC_LINKER64.
3761 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3762 GNU_USER_DYNAMIC_LINKER64.
3763 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3764 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3765 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3766 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3767 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3769 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3771 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
3772 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3773 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3774 GNU_USER_DYNAMIC_LINKER.
3775 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3776 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
3777 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3778 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3779 GNU_USER_DYNAMIC_LINKER64.
3780 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3781 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3782 GNU_USER_LINK_EMULATION.
3783 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3784 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3785 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3786 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3787 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3788 CPP_SPEC, CC1_SPEC): Remove.
3789 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3790 (GNU_USER_DYNAMIC_LINKER): Define.
3791 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3792 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3793 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3794 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3795 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3796 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3797 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3798 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3799 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3800 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3801 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3802 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3803 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3804 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3805 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3806 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3807 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3808 GNU_USER_DYNAMIC_LINKER.
3809 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3810 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3811 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3812 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3813 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3814 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3815 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3816 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3817 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
3818 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
3820 2011-04-11 Kai Tietz <ktietz@redhat.com>
3824 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
3825 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
3827 (ix86_is_msabi_thiscall): Removed.
3828 (ix86_is_type_thiscall): Likewise.
3829 (ix86_get_callcvt): New function.
3830 (ix86_comp_type_attributes): Simplify check.
3831 (ix86_function_regparm): Use ix86_get_callcvt for calling
3832 convention attribute checks.
3833 (ix86_return_pops_args): Likewise.
3834 (ix86_static_chain): Likewise.
3835 (x86_this_parameter): Likewise.
3836 (x86_output_mi_thunk): Likewise.
3837 (ix86_function_type_abi): Optimize check for types without attributes.
3838 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
3839 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
3840 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
3842 (IX86_BASE_CALLCVT): Helper macro.
3843 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3844 Use ix86_get_callcvt for calling convention attribute checks and avoid
3845 symbol-decoration for stdcall in TARGET_RTD case.
3846 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3848 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
3851 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3853 * config/i386/sse.md (VI_128): New mode iterator.
3854 (VI12_128): Rename from SSEMODE12.
3855 (VI14_128): Rename from SSEMODE14.
3856 (VI124_128): New mode iterator.
3857 (VI24_128): Rename from SSEMODE248.
3858 (VI248_128): Rename from SSEMODE248.
3859 (SSEMODE124C8): Remove.
3860 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3861 (*sse2_<plusminus_insn><mode>3): Merge with
3862 *avx_<plusminus_insn><mode>3.
3863 (*mulv8hi3): Merge with *avx_mulv8hi3.
3864 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
3865 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
3866 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
3867 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
3868 (ashr<mode>3): Merge with *avx_ashr<mode>3.
3869 (lshr<mode>3): Merge with *avx_lshr<mode>3.
3870 (ashl<mode>3): Merge with *avx_ashl<mode>3.
3871 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
3872 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
3873 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3874 (*<smaxmin:code>v8hi3): Ditto.
3875 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
3876 (*<smaxmin:code>v16qi3): Ditto.
3877 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
3878 (*sse2_eq<mode>3): Ditto.
3879 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
3880 (*sse2_gt<mode>3): Ditto.
3881 (vcondv2di): Split out of vcond<mode>.
3882 (vconduv2di): Split out of vcondu<mode>.
3884 2011-04-11 Richard Guenther <rguenther@suse.de>
3886 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
3887 before calling tree_low_cst.
3889 2011-04-11 Richard Guenther <rguenther@suse.de>
3891 * stor-layout.c (layout_type): Compute all array index size operations
3892 in the original type.
3893 (initialize_sizetypes): Add comment.
3894 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
3896 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3898 * common.opt (Tbss=, Tdata=, Ttext=): New options.
3900 2011-04-11 Martin Jambor <mjambor@suse.cz>
3902 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
3903 of cgraph_node, handle NULL return value.
3904 (cgraph_global_info): Likewise.
3905 (cgraph_rtl_info): Likewise.
3906 * tree-inline.c (estimate_num_insns): Likewise.
3907 * gimplify.c (unshare_body): Likewise.
3908 (unvisit_body): Likewise.
3909 (gimplify_body): Likewise.
3910 * predict.c (optimize_function_for_size_p): Likewise.
3911 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3912 (call_may_clobber_ref_p_1): Likewise.
3913 * varasm.c (function_section_1): Likewise.
3914 (assemble_start_function): Likewise.
3916 2011-04-11 Martin Jambor <mjambor@suse.cz>
3918 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
3920 * final.c (rest_of_clean_state): Likewise.
3921 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
3922 * passes.c (pass_init_dump_file): Likewise.
3923 (execute_all_ipa_transforms): Likewise.
3924 (function_called_by_processed_nodes_p): Likewise.
3925 * predict.c (maybe_hot_frequency_p): Likewise.
3926 (probably_never_executed_bb_p): Likewise.
3927 (compute_function_frequency): Likewise.
3928 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
3929 (unnest_nesting_tree_1): Likewise.
3930 (lower_nested_functions): Likewise.
3931 * tree-optimize.c (execute_fixup_cfg): Likewise.
3932 (tree_rest_of_compilation): Likewise.
3933 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
3934 * tree-sra.c (ipa_early_sra): Likewise.
3935 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3936 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
3937 * ipa.c (record_cdtor_fn): Likewise.
3938 * ipa-inline.c (cgraph_early_inlining): Likewise.
3939 (compute_inline_parameters_for_current): Likewise.
3940 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3941 * ipa-pure-const.c (local_pure_const): Likewise.
3942 * ipa-split.c (split_function): Likewise.
3943 (execute_split_functions): Likewise.
3944 * cgraphbuild.c (build_cgraph_edges): Likewise.
3945 (rebuild_cgraph_edges): Likewise.
3946 (cgraph_rebuild_references): Likewise.
3947 (remove_cgraph_callee_edges): Likewise.
3948 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
3949 (verify_cgraph_node): Likewise.
3950 (cgraph_analyze_functions): Likewise.
3951 (cgraph_preserve_function_body_p): Likewise.
3952 (save_inline_function_body): Likewise.
3953 (save_inline_function_body): Likewise.
3954 * tree-inline.c (copy_bb): Likewise.
3955 (optimize_inline_calls): Likewise.
3957 2011-04-11 Martin Jambor <mjambor@suse.cz>
3959 PR tree-optimization/48195
3960 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
3961 ipa_check_create_edge_args.
3962 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
3963 ipa_check_create_edge_args.
3964 * ipa-inline.c (inline_generate_summary): Do not call
3965 ipa_check_create_node_params and ipa_check_create_edge_args.
3966 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
3967 ipa_check_create_edge_args.
3969 2011-04-09 Anatoly Sokolov <aesok@post.ru>
3971 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
3973 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3974 * function.c (record_hard_reg_sets): Likewise.
3975 * ira.c (compute_regs_asm_clobbered): Likewise.
3976 * sched-deps.c (sched_analyze_1): Likewise.
3977 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
3979 2011-04-09 Xinliang David Li <davidxl@google.com>
3981 PR tree-optimization/PR48484
3982 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
3983 has_valid_pred lazily
3985 2011-04-09 Duncan Sands <baldrick@free.fr>
3987 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
3989 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
3991 * combine.c (combine_validate_cost): Adjust comments. Set registered
3992 cost of I0 to zero at the end, if any.
3994 2011-04-08 Xinliang David Li <davidxl@google.com>
3996 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
3997 to insane profile data.
3999 2011-04-08 Xinliang David Li <davidxl@google.com>
4001 * ipa-cp.c (ipcp_update_profiling): Correct
4002 negative scale factor due to insane profile data.
4004 2011-04-08 Xinliang David Li <davidxl@google.com>
4006 * final.c (dump_basic_block_info): New function.
4007 (final): Dump basic block.
4008 (final_scan_insn): Remove old dump.
4010 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4013 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4016 2011-04-08 Michael Matz <matz@suse.de>
4019 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4021 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4022 * rtl.h (rebuild_jump_labels_chain): Declare.
4023 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4024 insns inserted on edges.
4026 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4028 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4029 * config/arm/arm-arches.def: New.
4030 * config/arm/arm-opts.h: New.
4031 * config/arm/genopt.sh: New.
4032 * config/arm/arm-tables.opt: New (generated).
4033 * config/arm/arm.c (arm_handle_option, arm_target_help,
4034 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4035 (all_architectures): Get most table contents from arm-arches.def.
4036 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4037 arm_selected_tune here.
4038 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4039 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4040 (march=, mcpu=, mtune=): Use Enum and Var.
4041 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4042 (arm.o): Update dependencies.
4044 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4046 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4048 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4049 (write_typed_alloc_defns): Likewise.
4050 (main): Calls write_typed_alloc_defns with output_header.
4052 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4055 * ira-color.c (setup_profitable_hard_regs): Add comments.
4056 Don't take prohibited hard regs into account.
4057 (setup_conflict_profitable_regs): Rename to
4058 get_conflict_profitable_regs.
4059 (check_hard_reg_p): Check prohibited hard regs.
4061 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4063 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4064 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4065 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4067 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4070 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4071 move from floating point to shift amount register.
4072 (emit_move_sequence): Remove secondary reload support for floating
4073 point to shift amount amount register copies.
4074 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4075 amount register copies.
4076 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4077 register, return false if mode isn't a scalar integer mode.
4078 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4080 2011-04-08 Richard Guenther <rguenther@suse.de>
4082 * gimple.c (gimple_call_flags): Remove kludge.
4084 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4086 * sel-sched.c (sel_region_init): Move call to
4087 sel_setup_region_sched_flags after setup_current_loop_nest.
4089 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4091 PR rtl-optimization/48272
4092 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4093 init_insn_reg_pressure_info. Adjust a caller.
4094 * sched-int.h (init_insn_reg_pressure_info): Declare.
4095 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4096 when sched-pressure is enabled.
4098 2011-04-08 Richard Guenther <rguenther@suse.de>
4100 * gimple.c (gimple_set_modified): Do not queue calls to
4101 MODIFIED_NORETURN_CALLS here ...
4102 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4104 2011-04-08 Richard Guenther <rguenther@suse.de>
4107 * toplev.c (lang_dependent_init): Do not open asm_out_file
4108 in WPA mode, nor perform debug machinery initialization.
4109 (finalize): Do not unlink asm_out_file in WPA mode.
4111 2011-04-08 Richard Guenther <rguenther@suse.de>
4113 * gimple.h (gimple_call_fntype): New function.
4114 (gimple_call_return_type): Use it.
4115 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4116 * gimple-low.c (gimple_check_call_args): Likewise.
4117 * gimple.c (gimple_call_flags): Likewise.
4118 (gimple_call_arg_flags): Likewise.
4119 (gimple_call_return_flags): Likewise.
4120 * tree-cfg.c (verify_gimple_call): Likewise.
4121 (do_warn_unused_result): Likewise.
4122 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4123 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4125 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4127 PR rtl-optimization/48235
4128 * sel-sched.c (code_motion_process_successors): Recompute the last
4129 insn in basic block if control flow changed.
4130 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4131 Update condition for ilist_remove.
4133 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4135 PR rtl-optimization/48302
4136 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4137 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4138 it to record added preheader blocks.
4139 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4140 on to sel_add_loop_preheaders.
4141 (sel_region_init): Move call to setup_current_loop_nest after
4144 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4147 * cfgloop.h (loop_has_exit_edges): New helper.
4148 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4150 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4151 that have no exit edges.
4153 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4155 PR rtl-optimization/48442
4156 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4157 all callers. Adjust assert.
4159 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4161 PR tree-optimization/48377
4162 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4163 is_packed to true even for types with smaller TYPE_ALIGN than
4166 2011-04-08 Richard Guenther <rguenther@suse.de>
4169 * doc/tm.texi: Re-generate.
4171 2011-04-08 Wei Guozhi <carrot@google.com>
4174 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4175 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4176 * config/arm/arm.md (*push_multi): Change the length computation to
4179 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4181 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4182 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4183 * doc/tm.texi: Regenerate.
4184 * system.h (ASM_OUTPUT_BSS): Poison.
4185 * varasm.c (asm_output_bss): Remove function.
4186 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4188 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4189 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4190 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4191 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4193 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4195 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4197 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4199 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4201 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4204 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4206 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4207 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4208 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4210 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4211 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4212 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4213 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4214 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4215 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4216 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4217 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4218 options. Don't map other m68k options manually. Don't handle
4219 old-style options as canonical.
4220 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4221 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4223 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4225 * basic-block.h (force_nonfallthru): Move to...
4226 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4227 (force_nonfallthru): ...here.
4228 * cfghooks.c (force_nonfallthru): New function.
4229 * cfgrtl.c (force_nonfallthru): Rename into...
4230 (rtl_force_nonfallthru): ...this.
4231 (commit_one_edge_insertion): Do not set AUX field.
4232 (commit_edge_insertions): Do not discover new basic blocks.
4233 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4234 (cfg_layout_rtl_cfg_hooks): Likewise.
4235 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4236 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4237 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4239 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4241 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4244 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4246 * config/i386/sse.md: Update copyright year.
4247 (avxcvtvecmode): Remove.
4248 (sse_movhlps): Merge with *avx_movhlps.
4249 (sse_movlhps): Merge with *avx_movlhps.
4250 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4251 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4252 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4253 (sse_loadhps): Merge with *avx_loadhps.
4254 (sse_storelps): Merge with *avx_storelps.
4255 (sse_loadlps): Merge with *avx_loadlps.
4256 (sse_movss): Merge with *avx_movss.
4257 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4258 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4259 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4260 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4261 (vec_set<mode>_0): Ditto.
4262 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4263 (sse4_1_insertps): Merge with *avx_insertps.
4264 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4265 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4266 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4267 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4268 (sse2_storehpd): Merge with *avx_storehpd.
4269 (sse2_loadhpd): Merge with *avx_loadhpd.
4270 (sse2_loadlpd): Merge with *avx_loadlpd.
4271 (sse2_movsd): Merge with *avx_movsd.
4272 (*vec_concatv2df): Merge with *vec_concatv2df.
4274 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4277 * combine.c (combine_instructions): Add last_combined_insn,
4278 update it if insn is after it, pass it to all try_combine calls.
4279 (try_combine): Add last_combined_insn parameter, pass it instead of
4280 i3 to propagate_for_debug.
4282 2011-04-07 Nick Clifton <nickc@redhat.com>
4284 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4285 to handle MDR <-> data register transfers.
4286 (movhi_internal): Likewise.
4288 2011-04-07 Alan Modra <amodra@gmail.com>
4290 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4291 previous stack info.
4293 2011-04-07 Tom de Vries <tom@codesourcery.com>
4296 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4297 flow_find_cross_jump. Swap variables to implement backward replacement.
4298 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4300 2011-04-07 Tom de Vries <tom@codesourcery.com>
4303 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4304 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4306 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4307 src1 or src2. Redirect edges to the last basic block. Update
4308 frequency and count on multiple basic blocks in case of fallthru.
4310 2011-04-07 Tom de Vries <tom@codesourcery.com>
4313 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4315 (old_insns_match_p): Change return type. Replace return false/true
4316 with return dir_none/dir_both. Use can_replace_by.
4317 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4318 direction from dir_p. Register replacement direction in dir, last_dir
4319 and afterlast_dir. Handle new return type of old_insns_match_p using
4320 merge_dir. Return replacement direction in dir_p.
4321 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4322 return type of old_insns_match_p.
4323 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4324 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4325 flow_find_cross_jump.
4326 * basic-block.h (enum replace_direction): New type.
4327 (flow_find_cross_jump): Add parameter to declaration.
4329 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4331 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4332 (AVXMODEDCVTPS2DQ): Ditto.
4333 (VEC_FLOAT_MODE): Ditto.
4334 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4335 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4336 (<any_logic:code><mode>3): Use VF mode iterator.
4337 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4338 Use VF mode iterator.
4339 (copysign<mode>3): Use VF mode iterator.
4340 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4341 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4342 (*<any_logic:code><MODEF:mode>3): Merge with
4343 *avx_<any_logic:code><MODEF:mode>3.
4344 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4345 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4346 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4347 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4348 (sse2_cvtdq2ps): Use %v modifier.
4349 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4350 (avx_cvtps2dq<avxmodesuffix>): Remove.
4351 (sse2_cvtps2dq): Use %v modifier.
4352 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4353 (avx_cvttps2dq<avxmodesuffix>): Remove.
4354 (sse2_cvttps2dq): Use %v modifier.
4355 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4356 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4357 (sse2_cvtsd2siq): Fix insn template.
4358 (sse2_cvtsd2siq_2): Ditto.
4359 (sse2_cvttsd2siq): Ditto.
4360 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4361 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4363 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4365 * gcov-io.c: Use GCC Runtime Library Exception.
4367 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4370 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4371 as base_reg whatever register reg has been eliminated to, instead
4372 of hardcoding STACK_POINTER_REGNUM.
4374 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4376 * doc/tm.texi.in: Document C target hooks as separate from general
4378 * doc/tm.texi: Regenerate.
4379 * genhooks.c (struct hook_desc): Add docname field.
4380 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4382 (hook_array): Include c-target.def.
4383 (emit_documentation): Use docname field in output.
4384 (emit_init_macros): Take docname argument. Only emit definitions
4385 for hooks matching docname.
4386 (main): Expect additional arguments in all cases. Pass argument
4387 to emit_init_macros.
4388 * target.def: Move initial macro definitions and comments to
4389 target-hooks-macros.h.
4390 (gcc_targetcm): Move to c-family/c-target.def.
4391 * target.h (targetcm): Move declaration to c-family/c-target.h.
4392 * targhooks.c (default_handle_c_option): Move to
4394 * targhooks.h (default_handle_c_option): Move declaration to
4395 c-family/c-common.h.
4396 * target-hooks-macros.h: New file.
4397 * config.gcc (target_has_targetcm): Define and use to add to
4398 c_target_objs and cxx_target_objs.
4399 * config/default-c.c: New file.
4400 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4401 of target.h and target-def.h.
4402 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4403 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4404 darwin_check_cfstring_format_arg): Make static.
4405 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4406 TARGET_STRING_OBJECT_REF_TYPE_P,
4407 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4408 * config/darwin-protos.h (darwin_objc_construct_string,
4409 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4411 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4412 TARGET_STRING_OBJECT_REF_TYPE_P,
4413 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4414 * config/t-darwin (darwin-c.o): Update dependencies.
4415 * system.h (TARGET_HAS_TARGETCM): Poison.
4416 * Makefile.in (TARGET_H): Update.
4417 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4418 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4419 (default-c.o): New target.
4420 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4421 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4422 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4424 (build/genhooks.o): Update dependencies.
4426 2011-04-06 Richard Guenther <rguenther@suse.de>
4428 * ipa-inline.c (enum inlining_mode): Remove.
4429 (cgraph_flatten): Use some other token.
4430 (cgraph_edge_early_inlinable_p): New function, split out from ...
4431 (cgraph_perform_always_inlining): New function, split out from ...
4432 (cgraph_decide_inlining_incrementally): ... here.
4433 (cgraph_mark_inline_edge): Adjust.
4434 (cgraph_early_inlining): Re-structure.
4435 (pass_early_inline): Require SSA form.
4437 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4438 Julian Brown <julian@codesourcery.com>
4439 Mark Shinwell <shinwell@codesourcery.com>
4441 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4442 LO_REGS only for Thumb-1.
4443 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4444 be used in short instructions when optimising for size on Thumb-2.
4446 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4448 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4449 associated with user returns to be preserved.
4451 2011-04-06 Tristan Gingold <gingold@adacore.com>
4453 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4454 symbol_queue_size, DBXOUT_DECR_NESTING,
4455 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4456 if XCOFF_DEBUGGING_INFO.
4458 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4460 * config/i386/i386.md (attribute isa): New.
4461 (attribute enabled): New.
4462 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4463 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4464 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4465 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4466 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4467 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4468 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4469 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4471 * config/i386/sse.md (VF): New mode iterator.
4475 (SSEMODEF4): Remove.
4476 (attribute sse): Handle V8SF and V4DF modes.
4477 (<absneg:code><mode>2): Use VF mode iterator.
4478 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4480 (<plusminus_insn><mode>3): Use VF mode iterator.
4481 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4482 Use VF mode iterator.
4483 (<sse>_vm<plusminus_insn><mode>3): Merge with
4484 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4485 (mul<mode>3): Use VF mode iterator.
4486 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4487 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4489 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4490 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4491 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4492 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4494 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4495 Use VF1 mode iterator.
4496 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4497 (sqrt<VF2:mode>2): New expander.
4498 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4499 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4500 and sqrtv2df2. Use VF mode iterator.
4501 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4503 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4504 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4505 Use VF1 mode iterator.
4506 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4507 (<smaxmin:code><mode>3): Use VF mode iterator.
4508 (*<smaxmin:code><mode>3_finite): Merge with
4509 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4510 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4511 (<sse>_vm<smaxmin:code><mode>2): Merge with
4512 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4513 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4515 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4517 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4518 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4519 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4520 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4521 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4523 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4524 Use VF_128 mode iterator.
4525 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4527 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4528 VF_128 mode iterator.
4529 (vcond<mode>): Use VF mode iterator.
4530 * config/i386/predicates.md (sse_comparison_operator): Merge with
4531 avx_comparison_float_operator. Do not declare as special_predicate.
4532 * config/i386/i386.c (struct builtin_description): Update for renamed
4534 (ix86_expand_args_builtin): Ditto.
4535 (ix86_expand_sse_compare_mask): Ditto.
4537 2011-04-06 Richard Guenther <rguenther@suse.de>
4539 * tree-inline.c (estimate_num_insns): For calls simply account
4540 for all passed arguments and a used return value.
4542 2011-04-06 Richard Guenther <rguenther@suse.de>
4544 PR tree-optimization/47663
4545 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4546 call_stmt_time fields.
4547 (cgraph_edge_inlinable_p): Declare.
4548 (cgraph_edge_recursive_p): New inline function.
4549 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4550 (cgraph_clone_edge): Copy it.
4551 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4552 Account for call stmt time.
4553 (cgraph_estimate_time_after_inlining): Take edge argument.
4554 (cgraph_estimate_edge_growth): Account call stmt size.
4555 (cgraph_estimate_size_after_inlining): Take edge argument.
4556 (cgraph_mark_inline_edge): Adjust.
4557 (cgraph_check_inline_limits): Likewise.
4558 (cgraph_recursive_inlining_p): Remove.
4559 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4560 (cgraph_decide_recursive_inlining): Take edge argument and
4562 (cgraph_decide_inlining_of_small_functions): Do not avoid
4563 diags for recursive inlining here.
4564 (cgraph_flatten): Adjust.
4565 (cgraph_decide_inlining_incrementally): Likewise.
4566 (estimate_function_body_sizes): Remove call cost handling.
4567 (compute_inline_parameters): Initialize caller edge call costs.
4568 (cgraph_estimate_edge_growth): New function.
4569 (cgraph_estimate_growth): Use it.
4570 (cgraph_edge_badness): Likewise.
4571 (cgraph_check_inline_limits): Take an edge argument.
4572 (cgraph_decide_inlining_of_small_functions): Adjust.
4573 (cgraph_decide_inlining): Likewise.
4574 * tree-inline.c (estimate_num_insns): Only account for call
4575 return value if it is used.
4576 (expand_call_inline): Avoid diagnostics on recursive inline
4578 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4579 (input_edge): Input edge call costs.
4581 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4583 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4585 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4587 * doc/invoke.texi (Spec Files): Fix typo.
4589 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4591 * profile.c (branch_prob): Move declaration of local variable. Remove
4592 obsolete ??? comment. Expand the location explicitly instead of using
4593 the LOCATION_FILE and LOCATION_LINE macros.
4595 2011-04-06 Wei Guozhi <carrot@google.com>
4598 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4599 (arm_cond_branch): Likewise.
4600 (arm_cond_branch_reversed): Likewise.
4601 (arm_jump): Likewise.
4602 (push_multi): Likewise.
4603 * config/arm/constraints.md (Py): New constraint.
4605 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4608 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4610 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4611 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4612 #ifdef DBX_DEBUGGING_INFO.
4614 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4617 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4618 if old and new states differ.
4620 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4622 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4623 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4624 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4625 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4626 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4628 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4629 ColdFire options to -mcpu= options.
4631 2011-04-05 Jeff Law <law@redhat.com>
4633 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4634 check if BB is a successor of LOOP->header and return
4635 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4637 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4639 * cprop.c (struct reg_use): Remove.
4640 (reg_use_table): Make an array of RTX.
4641 (find_used_regs, constprop_register, local_cprop_pass,
4642 bypass_block): Simplify users of reg_use_table.
4643 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4644 on one of the uses found by find_used_regs.
4646 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4649 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4652 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4654 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4656 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4658 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4661 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4663 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4665 * combine.c: Include obstack.h.
4666 (struct insn_link): Define.
4667 (uid_log_links): Adjust type.
4668 (FOR_EACH_LOG_LINK): New macro.
4669 (insn_link_obstack): Declare.
4670 (alloc_insn_link): Define.
4671 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
4672 type of link variables.
4673 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4674 (try_combine, record_promoted_values, distribute_notes): Likewise.
4675 (distribute_links): Likewise. Tweak prototype.
4676 (clear_log_links): Delete.
4677 (adjust_for_new_dest): Call alloc_insn_link.
4678 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4680 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4682 * gcse.c (modify_mem_list): Convert to an array of VECs.
4683 (canon_modify_mem_list, compute_transp): Tweak formatting.
4684 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
4685 (load_killed_in_block_p): Likewise.
4686 (record_last_mem_set_info): Likewise.
4687 (clear_modify_mem_tables): Likewise.
4689 2011-04-05 Tom de Vries <tom@codesourcery.com>
4692 * function.c (emit_use_return_register_into_block): Only define if
4695 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
4697 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4699 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4701 * config/rx/rx-opts.h: New.
4702 * config/rx/rx.c (rx_cpu_type): Remove.
4703 (rx_handle_option): Don't assert that global structures are in
4704 use. Access variables via opts pointer. Defer most handling of
4705 OPT_mint_register_. Use error_at.
4706 (rx_option_override): Handle deferred OPT_mint_register_ here.
4707 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4708 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4709 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4710 (rx_cpu_types): New Enum and EnumValue entries.
4711 (mint-register=): Use Defer and use Var accordingly.
4713 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4715 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4716 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4717 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4719 (debug_free_queue, debug_nesting, symbol_queue_index):
4721 * dbxout.c: ...to here. Make static.
4723 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4725 * gcse.c (modify_pair): Define. Define a VEC of it.
4726 (canon_modify_mem_list): Convert to an array of VECs.
4727 (free_insn_expr_list_list): Delete.
4728 (clear_modify_mem_tables): Call VEC_free instead.
4729 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4730 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4731 (canon_list_insert, compute_transp): Likewise.
4733 2011-04-05 Tom de Vries <tom@codesourcery.com>
4736 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4739 2011-04-05 Tom de Vries <tom@codesourcery.com>
4742 * function.c (emit_use_return_register_into_block): New function.
4743 (thread_prologue_and_epilogue_insns): Use
4744 emit_use_return_register_into_block.
4746 2011-04-05 Tom de Vries <tom@codesourcery.com>
4749 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4752 2011-04-05 Tom de Vries <tom@codesourcery.com>
4754 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4756 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4758 * config/arm/arm.md (define_constants for unspec): Replace with
4760 (define_constants for unspecv): Replace with define_c_enum.
4761 * config/arm/neon.md (define_constants for unspec): Replace with
4764 2011-04-04 Richard Henderson <rth@redhat.com>
4767 * dwarf2out.c (output_line_info): Always emit line info from
4768 at least one section.
4769 (dwarf2out_init): Create text_section_line_info here ...
4770 (set_cur_line_info_table): ... not here.
4772 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
4775 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4778 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4780 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
4782 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4783 (expr_equiv_p): Remove.
4784 (insert_set_in_table): Look at <dest, src> pair instead of expr.
4785 (hash_scan_set): Update call to insert_set_in_table.
4786 (dump_hash_table): Dump <dest, src> pair.
4787 (lookup_set): Simplify. Lookup <dest, src> pair.
4788 (compute_transp): Remove, fold heavily simplified code into...
4789 (compute_local_properties): ...here. Expect COMP and TRANSP
4791 (find_avail_set): Take set directly from struct expr.
4792 (find_bypass-set): Likewise.
4793 (bypass_block): Likewise.
4794 (cprop_insn): Likewise. Remove redundant INSN_P test.
4796 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4797 checks on form of COND from find_implicit_sets to here.
4798 (find_implicit_sets): Cleanup control flow. Split critical edges
4799 if it exposes implicit sets. Allocate/resize implicit_sets as
4801 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4802 changed something. Run df_analyze after find_implicit_sets if any
4803 edges were split. Do not allocate implicit_sets here.
4805 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4806 (gcse_obstack): Renamed to cprop_obstack.
4807 (GNEW, GNEWVEC, GNEWVAR): Remove.
4809 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4810 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4811 (gcse_alloc): Likewise, and rename to cprop_alloc.
4812 (alloc_gcse_men, free_gcse_mem): Remove.
4813 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4814 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4815 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4817 * cprop.c (oprs_not_set_p): Remove.
4818 (mark_set, mark_clobber): Remove.
4819 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4820 (reg_not_set_p): New function.
4821 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4822 (cprop_insn): Likewise.
4823 (cprop_jump): Use FOR_EACH_EDGE.
4825 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
4828 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
4829 (rank_for_schedule): Use scheduled_insns vector instead of
4830 last_scheduled_insn.
4831 (ok_for_early_queue_removal): Likewise.
4832 (queue_to_ready): Search forward in nonscheduled_insns_begin if
4834 (choose_ready): Likewise.
4835 (commit_schedule): Use VEC_iterate.
4836 (schedule_block): Initialize nonscheduled_insns_begin. If we have
4837 a dbg_cnt, use it and ensure the first insn is in the ready list.
4838 (haifa_sched_init): Allocate scheduled_insns.
4839 (sched_extend_ready_list): Don't allocate it; reserve space.
4840 (haifa_sched_finish): Free it.
4842 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4844 * optc-gen.awk: Always remove type from Variable entry before
4845 recording in var_seen.
4847 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
4849 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
4850 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
4851 call to tidy_fallthru_edges.
4853 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4855 * doc/options.texi (ToLower): Document.
4856 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
4857 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
4858 * opts.h (cl_option): Add cl_tolower field.
4859 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
4860 arguments with lowercase strings.
4861 * config/rx/rx.opt (mcpu=): Add ToLower.
4862 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
4865 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4867 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
4869 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4871 * config/vax/vax.c: Include reload.h.
4873 2011-04-04 Anatoly Sokolov <aesok@post.ru>
4875 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
4876 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4877 (sparc_preferred_reload_class): New function.
4879 2011-04-04 Jakub Jelinek <jakub@redhat.com>
4882 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4883 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
4885 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
4887 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
4888 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
4890 2011-04-03 Anatoly Sokolov <aesok@post.ru>
4892 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
4893 (ASM_OUTPUT_ALIGNED_BSS): Define.
4895 2011-04-03 Michael Matz <matz@suse.de>
4897 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
4898 and next_slot members.
4899 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
4900 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
4901 (lto_streamer_cache_append): Declare.
4902 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
4903 unsigned index, remove offset parameter, ensure that we append
4904 or update existing entries.
4905 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
4906 parameter, update next_slot for append.
4907 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
4909 (lto_streamer_cache_insert_at): Likewise.
4910 (lto_streamer_cache_append): New function.
4911 (lto_streamer_cache_lookup): Use unsigned index.
4912 (lto_streamer_cache_get): Likewise.
4913 (lto_record_common_node): Don't test tree_node_can_be_shared.
4914 (preload_common_node): Adjust call to lto_streamer_cache_insert.
4915 (lto_streamer_cache_delete): Don't free offsets member.
4916 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
4917 (lto_output_string_with_length): Use lto_output_data_stream.
4918 (lto_output_tree_header): Remove ix parameter, don't write it.
4919 (lto_output_builtin_tree): Likewise.
4920 (lto_write_tree): Adjust callers to above, don't track and write
4921 offset, write unsigned index.
4922 (output_unreferenced_globals): Don't emit all global vars.
4923 (write_global_references): Use unsigned indices.
4924 (lto_output_decl_state_refs): Likewise.
4925 (write_symbol): Likewise.
4926 * lto-streamer-in.c (lto_input_chain): Move earlier.
4927 (input_function): Use unsigned index.
4928 (input_alias_pairs): Don't read and then ignore all global vars.
4929 (lto_materialize_tree): Remove ix_p parameter, don't read index,
4930 don't pass it back, use lto_streamer_cache_append.
4931 (lto_register_var_decl_in_symtab): Use unsigned index.
4932 (lto_register_function_decl_in_symtab): Likewise.
4933 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
4935 (lto_get_builtin_tree): Don't read index, use
4936 lto_streamer_cache_append.
4937 (lto_read_tree): Adjust call to lto_materialize_tree.
4939 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
4940 don't use function calls in arguments to MIN.
4942 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
4945 * gimple.c (gimple_type_leader_entry): Mark deletable.
4947 2011-04-03 Alan Modra <amodra@gmail.com>
4949 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
4951 2011-04-03 Michael Matz <matz@suse.de>
4953 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
4955 * tree.h (tree_decl_non_common.vindex): Adjust comment.
4957 2011-04-03 Michael Matz <matz@suse.de>
4959 * cgraphbuild.c (record_reference): Canonicalize constructor values.
4960 * gimple-fold.c (canonicalize_constructor_val): Accept being called
4961 without function context.
4962 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
4963 current_function_decl and cfun.
4965 2011-04-03 Michael Matz <matz@suse.de>
4967 * tree.c (decl_init_priority_insert): Don't create entry for
4969 (decl_fini_priority_insert): Ditto.
4970 (fields_compatible_p, find_compatible_field): Remove.
4971 * tree.h (fields_compatible_p, find_compatible_field): Remove.
4972 * gimple.c (gimple_compare_field_offset): Adjust block comment.
4974 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
4976 * combine.c (try_combine): Remove useless local variable.
4978 2011-04-03 Richard Guenther <rguenther@suse.de>
4979 Ira Rosen <ira.rosen@linaro.org>
4981 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
4982 non-variable offsets and compare the remaining bases of the two
4983 accesses instead of looking for exact same data-ref.
4985 2011-04-02 Kai Tietz <ktietz@redhat.com>
4988 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
4990 * i386.c (ix86_is_msabi_thiscall): New helper function.
4991 (ix86_is_type_thiscall): New helper function.
4992 (ix86_comp_type_attributes): Handle thiscall for method-functions
4994 (init_cumulative_args): Likewise.
4995 (find_drap_reg): Likewise.
4996 (ix86_static_chain): Likewise.
4997 (x86_this_parameter): Likewise.
4998 (x86_output_mi_thunk): Likewise.
5000 2011-04-01 Olivier Hainque <hainque@adacore.com>
5001 Nicolas Setton <setton@adacore.com>
5002 Eric Botcazou <ebotcazou@adacore.com>
5004 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5005 (add_gnat_descriptive_type_attribute): New function.
5006 (gen_array_type_die): Call it.
5007 (gen_enumeration_type_die): Likewise.
5008 (gen_struct_or_union_type_die): Likewise.
5009 (modified_type_die): Likewise.
5010 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5011 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5012 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5014 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5017 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5018 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5021 2011-03-17 Richard Guenther <rguenther@suse.de>
5024 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5025 origin for decls in other ltrans units.
5026 (input_varpool_node): Likewise.
5028 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5031 * expr.c (expand_assignment): Handle all possibilities
5032 if TO_RTX is CONCAT.
5033 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5034 (store_split_bit_field): If SUBREG_REG (op0) or
5035 op0 itself has smaller mode than word, return it
5036 for offset 0 and const0_rtx for out-of-bounds stores.
5037 If word is const0_rtx, skip it.
5039 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5041 * config/h8300/h8300.c (print_operand_address): Rename to...
5042 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5043 Call h8300_print_operand and h8300_print_operand_address instead of
5044 print_operand and print_operand_address. Declare.
5045 (print_operand): Renake to...
5046 (h8300_print_operand): ...this. Make static. Adjust comments.
5047 Call h8300_print_operand instead of print_operand. Declare.
5048 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5049 (h8300_register_move_cost): Likewise.
5050 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5051 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5052 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5053 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5054 * config/h8300/h8300-protos.h (print_operand): Delete.
5055 (print_operand_address): Delete.
5057 2011-04-01 Richard Henderson <rth@redhat.com>
5060 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5061 in strict mode before dwarf4. Re-order tests to early out
5062 before switching sections.
5064 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5066 * config/h8300/constraints.md: New file.
5067 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5068 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5069 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5070 * config/h8300/predicates.md (bit_operand): Likewise.
5071 (incdec_operand): Use satisfies_constraint_M and
5072 satisfies_constraint_O. Don't use C code block.
5073 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5074 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5075 (compute_mov_length): Use satisfies_constraint_G.
5076 (fix_bit_operand): Use satisfies_constraint_U.
5077 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5078 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5079 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5080 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5081 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5082 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5083 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5084 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5085 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5086 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5087 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5088 (EXTRA_MEMORY_CONSTRAINT): Delete.
5090 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5091 Michael Meissner <meissner@linux.vnet.ibm.com>
5094 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5095 operands, as per the specifications.
5097 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5098 (vec_extract_evenv4sf): Ditto.
5099 (vec_extract_evenv8hi): Ditto.
5100 (vec_extract_evenv16qi): Ditto.
5101 (vec_extract_oddv4si): Ditto.
5103 2011-03-31 Mark Wielaard <mjw@redhat.com>
5105 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5106 high_pc attribute if the CU has no associated code. Only output
5107 DW_AT_entry_pc for CU if not generating strict dwarf and
5110 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5112 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5113 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5115 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5116 * final.c (final_start_function): Call the new function rather
5117 than using a NULL argument for dwarf2out_frame_debug.
5119 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5120 that contains the prologue.
5122 * haifa-sched.c (queue_insn): New arg REASON. All callers
5123 changed. Print it in debugging output.
5125 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5127 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5128 Split most of the code into...
5129 (begin_move_insn): ... here. New function.
5130 (ebb_sched_info): Add a pointer to it.
5131 * haifa-sched.c (scheduled_insns): New static variable.
5132 (sched_extend_ready_list): Allocate it.
5133 (schedule_block): Use it to record the order of scheduled insns.
5134 Perform RTL changes to move insns only after all scheduling
5135 decisions have been made.
5136 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5137 begin_move_insn field.
5138 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5139 * sched-int.h (struct haifa_sched_info): Remove second argument
5140 from begin_schedule_ready hook. Add new member begin_move_insn.
5141 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5142 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5144 * haifa-sched.c (prune_ready_list): New function, broken out of
5146 (schedule_block): Use it.
5148 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5150 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5152 2011-04-01 Kai Tietz <ktietz@redhat.com>
5154 * config.gcc (*-*-mingw*): Allow as option the
5155 posix threading model.
5156 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5157 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5159 (CPP_SPEC): Add pthread/no-pthread handling.
5160 (LIB_SPEC): Likewise.
5161 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5162 (LIB_SPEC): Likewise.
5163 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5164 flag to pass -pthread option for shared libgcc build.
5165 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5166 for shared libgcc build.
5167 * config/i386/t-mingw-pthread: New file.
5168 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5169 New define to enable use of library pthread by default.
5170 * config/i386/mingw.opt (pthread): New driver option.
5171 (no-pthread): New driver option.
5172 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5173 * config/i386/mingw-w64.opt: Likewise.
5175 2011-04-01 Gary Funck <gary@intrepid.com>
5177 * c-decl.c (grokdeclarator): Fix formatting.
5179 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5181 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5182 instead of n_operands.
5183 (set_storage_via_setmem): Likewise.
5184 * optabs.c (maybe_gen_insn): Likewise.
5185 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5186 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5187 (mips_expand_builtin_direct): Likewise.
5188 * config/spu/spu.c (expand_builtin_args): Likewise.
5190 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5192 * recog.h (insn_data_d): Add n_generator_args.
5193 * genoutput.c (data): Likewise.
5194 (output_insn_data): Print it.
5195 (max_opno, num_dups): Delete.
5196 (scan_operands): Just fill in "d->operand[...]".
5197 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5199 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5201 * gensupport.h (pattern_stats): New structure.
5202 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5203 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5204 (max_operand_1, max_operand_vec): Delete.
5205 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5207 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5209 * emit-rtl.c (emit_pattern_after_setloc): New function.
5210 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5211 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5212 (emit_pattern_after): New function.
5213 (emit_insn_after, emit_jump_insn_after): Call it.
5214 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5215 (emit_pattern_before_setloc): New function.
5216 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5217 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5219 (emit_pattern_before): New function.
5220 (emit_insn_before, emit_jump_insn_before): Call it.
5221 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5223 2011-03-31 Richard Henderson <rth@redhat.com>
5225 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5226 (dw_separate_line_info_entry): Remove.
5227 (enum dw_line_info_opcode): New.
5228 (dw_line_info_entry): Use it.
5229 (dw_line_info_table, dw_line_info_table_p): New.
5230 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5231 (line_info_table, line_info_label_num): Remove.
5232 (line_info_table_in_use): Remove.
5233 (separate_line_info_table): Remove.
5234 (separate_line_info_table_allocated): Remove.
5235 (separate_line_info_table_in_use): Remove.
5236 (LINE_INFO_TABLE_INCREMENT): Remove.
5237 (line_info_label_num): New.
5238 (cur_line_info_table): New.
5239 (text_section_line_info, cold_text_section_line_info): New.
5240 (separate_line_info): New.
5241 (SEPARATE_LINE_CODE_LABEL): Remove.
5242 (print_dwarf_line_table): Remove.
5243 (debug_dwarf): Don't dump it.
5244 (output_one_line_info_table): New.
5245 (output_line_info): Use it.
5246 (new_line_info_table): New.
5247 (set_cur_line_info_table): New.
5248 (dwarf2out_switch_text_section): Use it.
5249 (dwarf2out_begin_function): Likewise.
5250 (push_dw_line_info_entry): New.
5251 (dwarf2out_source_line): Rewrite for new line info tables.
5252 (dwarf2out_init): Remove dead initailizations.
5254 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5256 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5258 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5259 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5260 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5261 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5262 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5263 * opt-functions.awk (flag_init, switch_bit_fields): New.
5264 (switch_flags): Don't handle flags moved to bit-fields. Don't
5265 generate CL_MISSING_OK or CL_SAVE.
5266 * optc-gen.awk: Update to generate bit-field output as well as
5268 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5269 bit-field instead of CL_REJECT_DRIVER flag.
5270 * opts-common.c (generate_canonical_option,
5271 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5272 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5273 instead of CL_REJECT_NEGATIVE flag.
5274 * toplev.c (print_switch_values): Use cl_report bit-field instead
5277 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5279 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5280 a zero minimum index only if it is redundant.
5282 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5284 PR rtl-optimization/48381
5285 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5286 instead of ira_class_hard_reg_index for calculating conflicting
5289 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5291 * cprop.c: Clean up hash table building.
5292 (reg_avail_info): Remove.
5293 (oprs_available_p): Remove.
5294 (record_last_reg_set_info): Remove.
5295 (record_last_set_info): Remove.
5296 (reg_available_p): New function.
5297 (gcse_constant_p): Do not treat unfolded conditions as constants.
5298 (make_set_regs_unavailable): New function.
5299 (hash_scan_set): Simplify with new reg_available_p.
5300 (compute_hash_table_work): Traverse insns stream only once.
5301 Do not compute reg_avail_info. Traverse insns in reverse order.
5302 Record implicit sets after recording explicit sets from the block.
5304 2011-03-31 Michael Matz <matz@suse.de>
5306 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5308 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5310 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5311 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5312 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5313 (h8300_mode_dependent_address_p): New function.
5314 (h8300_get_index): Make static.
5316 2011-03-31 Jeff Law <law@redhat.com>
5318 * reload1.c (elimination_effects): Fix typo in recent change.
5320 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5321 typo potentially leading to null pointer dereference.
5323 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5324 (setup_save_areas): Corresponding changes to avoid useless
5327 * jump.c (reversed_comparison_code_parts): Avoid successive return
5328 statements when REVERSE_CONDITION is defined.
5330 * expr.c (expand_assignment): Avoid useless assignments.
5331 (expand_expr_real_1): Likewise.
5332 (expand_expr_real_2): Avoid useless statements.
5334 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5336 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5338 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5341 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5343 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5346 * doc/tm.texi.in (TARGET_VERSION): Remove.
5347 * doc/tm.texi: Regenerate.
5348 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5349 * collect2.c (main): Don't use TARGET_VERSION.
5350 * mips-tdump.c (main): Don't use TARGET_VERSION.
5351 * mips-tfile.c (main): Don't use TARGET_VERSION.
5352 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5353 * config/rs6000/vxworksae.h: Remove.
5354 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5355 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5356 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5357 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5358 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5359 * config/arm/arm.h (TARGET_VERSION): Remove.
5360 * config/arm/coff.h (TARGET_VERSION): Remove.
5361 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5362 * config/arm/elf.h (TARGET_VERSION): Remove.
5363 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5364 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5365 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5366 * config/arm/pe.h (TARGET_VERSION): Remove.
5367 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5368 * config/arm/semi.h (TARGET_VERSION): Remove.
5369 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5370 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5371 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5372 * config/avr/avr.h (TARGET_VERSION): Remove.
5373 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5374 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5375 * config/frv/frv.h (TARGET_VERSION): Remove.
5376 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5377 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5378 * config/i386/darwin.h (TARGET_VERSION): Remove.
5379 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5380 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5381 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5382 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5383 * config/i386/gnu.h (TARGET_VERSION): Remove.
5384 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5385 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5386 * config/i386/linux.h (TARGET_VERSION): Remove.
5387 * config/i386/linux64.h (TARGET_VERSION): Remove.
5388 * config/i386/lynx.h (TARGET_VERSION): Remove.
5389 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5390 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5391 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5392 * config/i386/netware.h (TARGET_VERSION): Remove.
5393 * config/i386/nto.h (TARGET_VERSION): Remove.
5394 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5395 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5396 * config/ia64/elf.h (TARGET_VERSION): Remove.
5397 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5398 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5399 * config/ia64/linux.h (TARGET_VERSION): Remove.
5400 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5401 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5402 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5403 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5404 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5405 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5406 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5407 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5408 * config/m68k/linux.h (TARGET_VERSION): Remove.
5409 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5410 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5411 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5412 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5413 * config/mep/mep.h (TARGET_VERSION): Remove.
5414 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5415 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5416 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5417 * config/mips/linux.h (TARGET_VERSION): Remove.
5418 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5419 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5420 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5421 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5422 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5423 * config/pa/pa.h (TARGET_VERSION): Remove.
5424 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5425 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5426 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5427 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5428 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5429 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5430 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5431 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5432 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5433 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5434 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5435 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5436 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5437 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5438 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5439 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5440 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5441 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5442 * config/s390/linux.h (TARGET_VERSION): Remove.
5443 * config/s390/s390.h (TARGET_VERSION): Remove.
5444 * config/s390/tpf.h (TARGET_VERSION): Remove.
5445 * config/score/score.h (TARGET_VERSION): Remove.
5446 * config/sh/linux.h (TARGET_VERSION): Remove.
5447 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5448 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5449 * config/sh/sh.h (TARGET_VERSION): Remove.
5450 * config/sh/sh64.h (TARGET_VERSION): Remove.
5451 * config/sh/superh.h (TARGET_VERSION): Remove.
5452 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5453 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5454 * config/sparc/linux.h (TARGET_VERSION): Remove.
5455 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5456 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5457 TARGET_NAME32, TARGET_NAME): Remove.
5458 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5459 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5460 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5461 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5462 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5463 * config/spu/spu.h (TARGET_VERSION): Remove.
5464 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5465 * config/v850/v850.h (TARGET_VERSION): Remove.
5466 * config/vax/linux.h (TARGET_VERSION): Remove.
5467 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5468 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5469 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5471 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5474 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5475 frame-related from frame-unrelated adjustments to the stack pointer.
5477 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5479 * common.opt (fdebug-types-section): Move earlier.
5480 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5482 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5484 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5487 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5489 * tree.h (CASE_CHAIN): Define.
5490 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5491 (gimple_redirect_edge_and_branch): Likewise.
5493 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5496 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5499 2011-03-30 Jeff Law <law@redhat.com>
5501 * PR bootstrap/48371
5502 * reload1.c (reload): Fix botch in last change.
5504 * reload.h (struct reload): Fix typo introduced in last change.
5506 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5508 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5509 Undocumented. Remove help text.
5510 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5513 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5515 * doc/options.texi (NegativeAlias): Document.
5516 (Alias): Mention NegativeAlias.
5517 * opt-functions.awk: Handle NegativeAlias.
5518 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5519 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5520 * opts.h (CL_NEGATIVE_ALIAS): Define.
5521 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5522 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5524 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5526 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5527 mno-spe and mno-isel instead of mspe=no and -misel=no.
5529 2011-03-29 Mark Wielaard <mjw@redhat.com>
5531 * common.opt (fdebug-types-section): New flag.
5532 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5533 * dwarf2out.c (use_debug_types): New define.
5534 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5535 (print_die): Guard output of type unit signatures using
5537 (build_abbrev_table): Replace assert of dwarf_version >= 4
5538 with assert on use_debug_types.
5539 (size_of_die): Likewise.
5540 (unmark_dies): Likewise.
5541 (value_format): Decide AT_ref_external form on use_debug_types.
5542 (output_die): Replace dwarf_version version check guard with
5543 use_debug_types where appropriate.
5544 (modified_type_die): Likewise.
5545 (gen_reference_type_die): Likewise.
5546 (dwarf2out_start_source_file): Likewise.
5547 (dwarf2out_end_source_file): Likewise.
5548 (prune_unused_types_walk_attribs): Likewise.
5549 (dwarf2out_finish): Likewise.
5551 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5553 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5555 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5557 PR rtl-optimization/48332
5558 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5559 mode of input operand N and modeN to its actual mode.
5561 2011-03-30 Jeff Law <law@redhat.com>
5563 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5564 define accessor macro.
5565 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5566 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5567 (reg_equiv_init): Likewise.
5568 (reg_equivs_size): New variable.
5569 (reg_equiv_init_size): Remove.
5570 (allocate_initial_values): Move prototype to here from....
5571 * integrate.h (allocate_initial_values): Remove prototype.
5572 * integrate.c: Include reload.h.
5573 (allocate_initial_values): Corresponding changes.
5574 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5575 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5576 (update_equiv_regs): Corresponding changes.
5577 (ira): Corresponding changes.
5578 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5579 (push_secondary_reload): Corresponding changes.
5580 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5581 (make_memloc, find_reloads_address): Corresponding changes.
5582 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5583 (find_reloads_address_1): Corresponding changes.
5584 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5585 (refers_to_regno_for_reload_p): Corresponding changes.
5586 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5587 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5588 * reload1.c: Include ggc.h.
5589 (grow_reg_equivs): New function.
5590 (replace_pseudos_in, reload): Corresponding changes.
5591 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5592 (eliminate_regs_1, elimination_effects): Corresponding changes.
5593 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5594 (delete_output_reload): Likewise.
5595 * caller-save.c (mark_referenced_regs): Corresponding changes.
5596 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5597 * frv/predicates.md (frv_load_operand): Corresponding changes.
5598 * microblaze/microblaze.c (double_memory_operand): Corresponding
5600 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5601 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5602 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5603 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5604 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5606 * pa/pa.c (emit_move_sequence): Corresponding changes.
5607 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5609 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5612 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5613 structure modes. Don't check neon_vector_mem_operand for
5614 vector or structure modes.
5616 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5617 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5620 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5621 operand 1 and reshuffle the operands to match.
5622 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5624 2011-03-30 Christian Schüler <cschueler@gmx.de>
5627 * config/c.opt (F): Added 'Driver' to -F option.
5630 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5632 * config/darwin.opt: Added '-arch' option.
5634 2011-03-30 Nick Clifton <nickc@redhat.com>
5636 * config/rx/rx.md: Add peepholes and patterns to combine
5637 extending loads and simple arithmetic instructions.
5638 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5639 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5640 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5641 modes to use pre-decrement and post-increment addressing.
5642 (rx_is_restricted_memory_address): Add range checking of REG+INT
5644 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5645 (rx_memory_move_cost): Adjust cost of stores.
5646 (rx_adjust_insn_length): New function.
5648 2011-03-30 Jakub Jelinek <jakub@redhat.com>
5651 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5652 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5653 matching arg00/arg01 types.
5655 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5657 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5658 last_location to UNKNOWN_LOCATION.
5660 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5663 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5666 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5667 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5670 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5672 (sparc_cpu): Likewise.
5673 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5676 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5680 PR rtl-optimization/48345
5681 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5682 hard regs for given mode from profitable regs when doing secondary
5685 2011-03-29 Jeff Law <law@redhat.com>
5688 * tree-ssa-threadupdate.c (struct redirection_data): Remove
5689 do_not_duplicate field.
5690 (lookup_redirection_data): Corresponding changes.
5691 (create_duplicates): Always create a template block.
5692 (redirect_edges): Remove code which reused the original block
5693 when it was going to become unreachable code.
5694 (thread_block): Don't set do_not_duplicate field.
5696 2011-03-29 Joseph Myers <joseph@codesourcery.com>
5698 * lto-opts.c (register_user_option_p, lto_register_user_option):
5699 Make type argument unsigned.
5700 * lto-streamer.h (lto_register_user_option): Make type argument
5702 * opth-gen.awk: Make CL_* macros unsigned.
5703 * opts-common.c (find_opt): Make lang_mask argument unsigned.
5704 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5705 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5706 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5707 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5708 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5709 (find_opt): Make lang_mask argument unsigned.
5711 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5713 PR rtl-optimization/48331
5714 PR rtl-optimization/48334
5715 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5716 for any used algorithm.
5718 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5720 * ira-conflicts.c (build_object_conflicts): Add unused attribute
5723 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
5725 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5726 (alpha_option_override): Don't set alpha_sr_alias_set.
5727 (emit_frame_store_1): Use gen_frame_mem rather than calling
5729 (alpha_expand_epilogue): Ditto.
5731 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
5733 PR tree-optimization/48290
5734 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5735 vectorization, check that relevant phis in the basic block after
5736 the inner loop are really inner loop's exit phis.
5738 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5741 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5742 (cached_dw_loc_list_def): New structure.
5743 (cached_dw_loc_list): New typedef.
5744 (cached_dw_loc_list_table): New variable.
5745 (cached_dw_loc_list_table_hash): New function.
5746 (cached_dw_loc_list_table_eq): Likewise.
5747 (add_location_or_const_value_attribute): Take a bool cache_p.
5748 Cache the list when the parameter is true.
5749 (gen_formal_parameter_die): Update caller.
5750 (gen_variable_die): Likewise.
5751 (dwarf2out_finish): Likewise.
5752 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5753 while generating debug info for the decl.
5754 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5755 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5756 (resolve_addr): Cache the result of resolving a chain of
5759 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
5761 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5762 conflict object hard regset nodes have intersecting hard reg sets.
5764 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5765 after regstat_init_n_sets_and_refs.
5767 * ira.c: Add more comments at the top.
5768 (setup_stack_reg_pressure_class, setup_pressure_classes):
5769 Add comments how we compute the register pressure classes.
5770 (setup_allocno_and_important_classes): Add more comments.
5771 (setup_class_translate_array, reorder_important_classes)
5772 (setup_reg_class_relations): Add comments.
5774 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
5777 * ira-color.c: Add 2011 to the Copyright line.
5778 (assign_hard_reg): Add more comments.
5779 (improve_allocation): Ditto.
5781 * ira-costs.c: Add 2011 to the Copyright line.
5782 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5784 (setup_regno_cost_classes_by_mode): Ditto.
5786 Initial patches from ira-improv branch:
5788 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5790 * ira-build.c (ira_create_object): Remove initialization of
5791 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
5792 (ira_create_allocno): Remove initialization of
5793 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5794 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5795 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5796 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5797 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5798 Initialize ALLOCNO_ADD_DATA.
5799 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5800 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5802 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
5803 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5805 * ira.c (ira_reallocate): Remove.
5806 (setup_pressure_classes): Call
5807 ira_init_register_move_cost_if_necessary. Use
5808 ira_register_move_cost instead of ira_get_register_move_cost.
5809 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5810 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5812 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5813 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5814 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5815 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5816 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5817 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5819 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
5820 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5821 (struct allocno_color_data): New.
5822 (allocno_color_data_t): New typedef.
5823 (allocno_color_data): New definition.
5824 (ALLOCNO_COLOR_DATA): New macro.
5825 (struct object_color_data): New.
5826 (object_color_data_t): New typedef.
5827 (object_color_data): New definition.
5828 (OBJECT_COLOR_DATA): New macro.
5829 (update_copy_costs, calculate_allocno_spill_cost): Call
5830 ira_init_register_move_cost_if_necessary. Use
5831 ira_register_move_cost instead of ira_get_register_move_cost.
5832 (move_spill_restore, update_curr_costs): Ditto.
5833 (allocno_spill_priority): Make it inline.
5834 (color_pass): Allocate and free allocno_color_dat and object_color_data.
5835 (struct coalesce_data, coalesce_data_t): New.
5836 (allocno_coalesce_data): New definition.
5837 (ALLOCNO_COALESCE_DATA): New macro.
5838 (merge_allocnos, coalesced_allocno_conflict_p): Use
5839 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
5840 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
5841 (coalesce_allocnos): Ditto.
5842 (setup_coalesced_allocno_costs_and_nums): Ditto.
5843 (collect_spilled_coalesced_allocnos): Ditto.
5844 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
5845 (setup_slot_coalesced_allocno_live_ranges): Ditto.
5846 (coalesce_spill_slots): Ditto.
5847 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
5848 free allocno_coalesce_data.
5850 * ira-conflicts.c: Fix formatting.
5851 (process_regs_for_copy): Call
5852 ira_init_register_move_cost_if_necessary. Use
5853 ira_register_move_cost instead of ira_get_register_move_cost.
5854 (build_object_conflicts): Optimize.
5856 * ira-costs.c (record_reg_classes): Optimize. Call
5857 ira_init_register_move_cost_if_necessary. Use
5858 ira_register_move_cost, ira_may_move_in_cost, and
5859 ira_may_move_out_cost instead of ira_get_register_move_cost and
5860 ira_get_may_move_cost.
5861 (record_address_regs): Ditto.
5862 (scan_one_insn): Optimize.
5863 (find_costs_and_classes): Optimize.
5864 (process_bb_node_for_hard_reg_moves): Call
5865 ira_init_register_move_cost_if_necessary. Use
5866 ira_register_move_cost instead of ira_get_register_move_cost.
5868 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
5869 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
5870 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
5871 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
5873 (ira_initiate_emit_data, ira_finish_emit_data)
5874 (create_new_allocno): New functions.
5875 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
5876 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
5877 Use ira_register_move_cost instead of ira_get_register_move_cost.
5879 * ira-int.h: Fix some comments.
5880 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
5881 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5882 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
5883 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
5885 (struct ira_allocno): Make mode and aclass a bitfield. Move other
5886 bitfield after mode. Make hard_regno a short int. Make
5887 hard_regno short. Remove first_coalesced_allocno and
5888 next_coalesced_allocno. Move mem_optimized_dest_p,
5889 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
5890 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
5891 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
5892 temp, colorable_p. Add new member add_data.
5893 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
5894 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
5895 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
5896 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
5897 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
5898 (ALLOCNO_ADD_DATA): New macro.
5899 (ira_emit_data_t): New typedef.
5900 (struct ira_emit_data): New. Move mem_optimized_dest_p,
5901 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
5902 from struct ira_allocno.
5903 (ALLOCNO_EMIT_DATA): New macro.
5904 (ira_allocno_emit_data, allocno_emit_reg): New.
5905 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
5906 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
5907 (OBJECT_ADD_DATA): New macro.
5908 (ira_reallocate): Remove.
5909 (ira_initiate_emit_data, ira_finish_emit_data): New.
5910 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
5911 (ira_init_register_move_cost_if_necessary): New.
5912 (ira_object_conflict_iter_next): Merge into
5913 ira_object_conflict_iter_cond.
5914 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
5916 * ira-live.c (process_single_reg_class_operands): Call
5917 ira_init_register_move_cost_if_necessary. Use
5918 ira_register_move_cost instead of ira_get_register_move_cost.
5920 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5922 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
5924 * ira-costs.c: Fix formatting.
5925 (cost_classes, cost_classes_num): Remove.
5926 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
5927 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
5928 (cost_classes_del, cost_classes_htab): New.
5929 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
5930 (initiate_regno_cost_classes, setup_cost_classes): New.
5931 (setup_regno_cost_classes_by_aclass): New.
5932 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
5933 (record_reg_classes): Use regno_cost_classes instead of
5934 cost_classes. Move checking opposite operand up.
5935 (record_address_regs): Use regno_cost_classes
5936 instead of cost_classes.
5937 (scan_one_insn): Ditto. Use always general register.
5938 (print_allocno_costs): Use regno_cost_classes instead of
5940 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
5941 (find_costs_and_classes): Set up cost classes for each registers.
5942 Use also their mode for this. Use regno_cost_classes instead of
5944 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
5946 (free_ira_costs, ira_init_costs): Don't use cost_classes.
5947 (ira_costs, ira_set_pseudo_classes): Call
5948 initiate_regno_cost_classes and finish_regno_cost_classes.
5950 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
5952 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
5954 * target.def (ira_cover_classes): Remove.
5956 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
5958 * doc/tm.texi.in: Ditto.
5960 * ira-conflicts.c: Remove mentioning cover classes from the file.
5961 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
5962 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
5964 * targhooks.c (default_ira_cover_classes): Remove.
5966 * targhooks.h (default_ira_cover_classes): Ditto.
5968 * haifa-sched.c: Remove mentioning cover classes from the file.
5969 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5970 ira_pressure_classes and ira_pressure_classes_num instead of
5971 ira_reg_class_cover_size and ira_reg_class_cover. Use
5972 sched_regno_pressure_class instead of sched_regno_cover_class.
5973 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
5974 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5976 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
5977 classes from the file.
5978 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
5979 (struct object_hard_regs, struct object_hard_regs_node): New.
5980 (struct ira_object): New members profitable_hard_regs,
5981 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
5982 (struct ira_allocno): Rename cover_class to aclass. Rename
5983 cover_class_cost and updated_cover_class_cost to class_cost and
5984 updated_class_cost. Remove splay_removed_p and
5985 left_conflict_size. Add new members colorable_p.
5986 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
5987 (ALLOCNO_COLORABLE_P): New macro.
5988 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
5989 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
5990 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
5991 (OBJECT_...): Rename parameter C to O.
5992 (OBJECT_PROFITABLE_HARD_REGS): New macro.
5993 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
5994 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
5995 (struct target_ira_int): New members x_ira_max_memory_move_cost,
5996 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
5997 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
5998 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
5999 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6000 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6001 x_ira_reg_class_subunion.
6002 (ira_max_memory_move_cost, ira_max_register_move_cost)
6003 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6004 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6005 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6006 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6007 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6008 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6009 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6010 (ira_tune_allocno_costs_and_cover_classes): Rename to
6011 ira_tune_allocno_costs.
6012 (ira_debug_hard_regs_forest): New.
6013 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6014 (ira_object_conflict_iter_next): Fix comments.
6015 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6016 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6017 cover_class to aclass.
6018 (ira_allocate_and_accumulate_costs): Ditto.
6019 (ira_allocate_and_set_or_copy_costs): Ditto.
6021 * opts.c (decode_options): Remove ira_cover_class check.
6023 * ira-color.c: Remove mentioning cover classes from the file. Use
6024 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6025 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6026 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6027 (splay-tree.h): Remove include.
6028 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6029 before copy_freq_compare_func.
6030 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6031 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6033 (hard_regs_roots, hard_regs_node_vec): Ditto.
6034 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6035 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6036 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6037 (create_new_object_hard_regs_node): Ditto.
6038 (add_new_object_hard_regs_node_to_forest): Ditto.
6039 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6040 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6042 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6043 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6044 (remove_unused_object_hard_regs_nodes): Ditto.
6045 (enumerate_object_hard_regs_nodes): Ditto.
6046 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6047 (object_hard_regs_subnode_t): Ditto.
6048 (struct object_hard_regs_subnode): Ditto.
6049 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6050 (setup_object_hard_regs_subnode_index): Ditto.
6051 (get_object_hard_regs_subnodes_num): Ditto.
6052 (form_object_hard_regs_nodes_forest): Ditto.
6053 (finish_object_hard_regs_nodes_tree): Ditto.
6054 (finish_object_hard_regs_nodes_forest): Ditto.
6055 (allocnos_have_intersected_live_ranges_p): Rename to
6056 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6057 (pseudos_have_intersected_live_ranges_p): Rename to
6058 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6059 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6060 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6061 (update_copy_costs): Remove assert. Skip cost update if the hard
6062 reg does not belong the class.
6063 (assign_hard_reg): Process only profitable hard regs.
6064 (uncolorable_allocnos_num): Make it scalar.
6065 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6066 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6067 and ira_reg_class_max_nregs.
6068 (bucket_allocno_compare_func): Check frequency first.
6069 (sort_bucket): Add compare function as a parameter.
6070 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6071 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6072 (push_allocno_to_stack): Rewrite for checking new allocno
6074 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6075 (push_only_colorable): Pass new parameter to sort_bucket.
6076 (push_allocno_to_spill): Remove.
6077 (allocno_spill_priority_compare): Make it inline and rewrite.
6078 (splay_tree_allocate, splay_tree_free): Remove.
6079 (allocno_spill_sort_compare): New function.
6080 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6081 build and use splay tree. Choose first allocno in uncolorable
6082 allocno bucket to spill. Remove setting spill cost.
6083 (all_conflicting_hard_regs): Remove.
6084 (setup_allocno_available_regs_num): Check only profitable hard
6085 regs. Print info about hard regs nodes.
6086 (setup_allocno_left_conflicts_size): Remove.
6087 (put_allocno_into_bucket): Don't call
6088 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6089 (improve_allocation): New.
6090 (color_allocnos): Call setup_profitable_hard_regs,
6091 form_object_hard_regs_nodes_forest, improve_allocation,
6092 finish_object_hard_regs_nodes_forest. Setup spill cost.
6093 (print_loop_title): Use pressure classes.
6094 (color_allocnso): Ditto.
6095 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6096 and allocnos_for_spilling.
6097 (ira_sort_regnos_for_alter_reg): Don't setup members
6098 {first,next}_coalesced_allocno.
6099 (color): Remove allocating and freeing removed_splay_allocno_vec.
6100 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6101 prohibited_class_mode_regs.
6103 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6105 (update_allocno_pressure_excess_length): Use pressure classes.
6106 (inc_register_pressure, dec_register_pressure): Check for pressure
6108 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6109 pressure class. Use ira_reg_class_nregs instead of
6110 ira_reg_class_max_nregs.
6111 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6112 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6113 (single_reg_class): Use ira_reg_class_nregs instead of
6114 ira_reg_class_max_nregs.
6115 (process_bb_node_lives): Use pressure classes.
6117 * ira-emit.c: Remove mentioning cover classes from the file. Use
6118 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6119 (change_loop): Use pressure classes.
6120 (modify_move_list): Call ira_set_allocno_class instead of
6121 ira_set_allocno_cover_class.
6123 * ira-build.c: Remove mentioning cover classes from the file. Use
6124 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6125 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6126 ALLOCNO_UPDATED_CLASS_COST instead of
6127 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6128 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6129 (ira_create_allocno): Remove initialization of
6130 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6131 ALLOCNO_COLORABLE_P.
6132 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6133 Update conflict regs for the objects.
6134 (create_cap_allocno): Remove assert. Don't propagate
6135 ALLOCNO_AVAILABLE_REGS_NUM.
6136 (ira_free_allocno_costs): New function.
6137 (finish_allocno): Change a part of code into call of
6138 ira_free_allocno_costs.
6139 (low_pressure_loop_node_p): Use pressure classes.
6140 (object_range_compare_func): Don't compare classes.
6141 (setup_min_max_conflict_allocno_ids): Ditto.
6143 * loop-invariant.c: Remove mentioning cover classes from the file.
6144 Use ira_pressure_classes and ira_pressure_classes_num instead of
6145 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6146 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6147 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6148 Use reg_allocno_class instead of reg_cover_class.
6149 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6150 STACK_REG_COVER_CLASS.
6151 (get_regno_cover_class): Rename to get_regno_pressure_class.
6152 (move_loop_invariants): Initialize and finalize regstat.
6154 * ira.c: Remove mentioning cover classes from the file. Add
6155 comments about coloring without cover classes. Use ALLOCNO_CLASS
6156 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6157 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6158 setup_class_subset_and_memory_move_costs.
6159 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6160 (setup_cover_and_important_classes): Rename to
6161 setup_allocno_and_important_classes.
6162 (setup_class_translate_array): New.
6163 (setup_class_translate): Call it for allocno and pressure classes.
6164 (cover_class_order): Rename to allocno_class_order.
6165 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6166 of ira_class_translate.
6167 (reorder_important_classes): Set up ira_important_class_nums.
6168 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6169 (print_class_cover): Rename to print_classes. Add parameter.
6170 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6171 Print pressure classes too.
6172 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6173 setup_reg_subclasses.
6174 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6175 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6176 (setup_prohibited_class_mode_regs): Use
6177 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6178 (clarify_prohibited_class_mode_regs): New function.
6179 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6180 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6181 (ira_init_once): Initialize them.
6182 (free_register_move_costs): Process them.
6183 (ira_init): Move calls of find_reg_classes and
6184 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6185 Call clarify_prohibited_class_mode_regs.
6186 (ira_no_alloc_reg): Remove.
6187 (too_high_register_pressure_p): Use pressure classes.
6189 * sched-deps.c: Remove mentioning cover classes from the file.
6190 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6191 ira_pressure_classes and ira_pressure_classes_num instead of
6192 ira_reg_class_cover_size and ira_reg_class_cover.
6193 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6194 sched_regno_pressure_class instead of sched_regno_cover_class.
6195 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6196 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6198 * ira.h: Add 2010 to Copyright.
6199 (ira_no_alloc_reg): Remove external.
6200 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6201 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6202 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6203 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6204 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6205 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6206 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6207 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6208 x_ira_no_alloc_regs.
6209 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6210 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6211 ira_allocno_classes_num and ira_allocno_classes.
6212 (ira_class_translate): Rename to ira_allocno_class_translate.
6213 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6214 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6215 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6216 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6217 (ira_no_alloc_regs): New.
6219 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6220 classes from the file. Use ALLOCNO_CLASS instead of
6221 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6222 ALLOCNO_COVER_CLASS_COST.
6223 (regno_cover_class): Rename to regno_aclass.
6224 (record_reg_classes): Use ira_reg_class_subunion instead of
6225 ira_reg_class_union.
6226 (record_address_regs): Check overflow.
6227 (scan_one_insn): Ditto.
6228 (print_allocno_costs): Print total mem cost fore regional allocation.
6229 (print_pseudo_costs): Use REG_N_REFS.
6230 (find_costs_and_classes): Use classes intersected with them on the
6231 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6232 ira_reg_class_union. Use ira_allocno_class_translate and
6233 regno_aclass instead of ira_class_translate and regno_cover_class.
6234 Modify code for finding regno_aclass. Setup preferred classes for
6236 (setup_allocno_cover_class_and_costs): Rename to
6237 setup_allocno_class_and_costs. Use regno_aclass instead of
6238 regno_cover_class. Use ira_set_allocno_class instead of
6239 ira_set_allocno_cover_class.
6240 (init_costs, finish_costs): Use regno_aclass instead of
6242 (ira_costs): Use setup_allocno_class_and_costs instead of
6243 setup_allocno_cover_class_and_costs.
6244 (ira_tune_allocno_costs_and_cover_classes): Rename to
6245 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6246 by processing objects. Use ira_reg_class_max_nregs instead of
6247 ira_reg_class_nregs.
6249 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6251 * sched-int.h: Remove mentioning cover classes from the file.
6252 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6254 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6255 classes from the file.
6256 (struct reg_pref): Rename coverclass into allocnoclass.
6257 (reg_cover_class): Rename to reg_allocno_class.
6259 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6261 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6263 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6265 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6267 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6269 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6271 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6273 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6275 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6277 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6279 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6280 (i386_ira_cover_classes): Ditto.
6282 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6284 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6286 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6288 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6290 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6292 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6294 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6295 (mips_ira_cover_classes): Ditto.
6297 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6299 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6301 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6303 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6305 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6307 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6308 (IRA_COVER_CLASSES_VSX): Ditto.
6310 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6311 (rs6000_ira_cover_classes): Ditto.
6313 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6315 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6317 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6319 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6321 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6323 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6325 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6327 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6329 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6331 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6333 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6336 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6337 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6338 dw_fde_unlikely_section_end_label, cold_in_std_section,
6339 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6340 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6342 (output_fde): Use dw_fde_second_{begin,end} if second is
6343 true, otherwise dw_fde_{begin,end}.
6344 (output_call_frame_info): Test dw_fde_second_begin != NULL
6345 instead of dw_fde_switched_sections.
6346 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6347 fields, initialize new fields. Initialize in_std_section
6348 unconditionally from the first partition.
6349 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6350 dw_fde_second_begin is non-NULL.
6351 (dwarf2out_switch_text_section): Stop initializing removed
6352 dw_fde_struct fields, initialize new fields, initialize
6353 also dw_fde_end here. Set dw_fde_switch_cfi even when
6354 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6355 (struct var_loc_list_def): Add last_before_switch field.
6356 (arange_table, arange_table_allocated, arange_table_in_use,
6357 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6358 (size_of_aranges): Count !in_std_section and !second_in_std_section
6359 hunks in fdes, instead of looking at arange_table_in_use.
6360 (output_aranges): Add aranges_length argument, don't call
6361 size_of_aranges here. Instead of using aranges_table*
6362 emit ranges for fdes when !in_std_section resp.
6363 !second_in_std_section.
6364 (dw_loc_list): Break ranges crossing section switch.
6365 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6366 use dw_fde_second_end instead of dw_fde_end as end of last range.
6367 (gen_subprogram_die): Don't call add_arange. Use
6368 dw_fde_{begin,end} for first partition and if switched
6369 section dw_fde_second_{begin,end} for the second.
6370 (var_location_switch_text_section_1,
6371 var_location_switch_text_section): New functions.
6372 (dwarf2out_begin_function): Initialize cold_text_section even
6373 when function_section () isn't text_section.
6374 (prune_unused_types): Don't walk arange_table.
6375 (dwarf2out_finish): Don't needlessly test
6376 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6377 If info_section_emitted, call size_of_aranges and if it indicates
6378 non-empty .debug_aranges, call output_aranges with the computed
6379 size. Stop using removed dw_fde_struct fields, use
6380 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6384 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6385 create ENTRY_VALUE if incoming or address of incoming's MEM
6387 * dwarf2out.c (mem_loc_descriptor): Don't emit
6388 DW_OP_GNU_entry_value of DW_OP_fbreg.
6389 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6390 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6391 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6392 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6394 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6395 is a REG_P or MEM_P with REG_P address, compute hash directly
6396 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6397 (preserve_only_constants): Don't clear VALUES forwaring
6398 ENTRY_VALUE to some other VALUE.
6400 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6402 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6405 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6407 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6408 block before expanding the statement.
6409 (expand_gimple_stmt_1): Likewise. Set them here...
6410 (expand_gimple_stmt): ...and not here. Tidy.
6411 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6414 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6416 * Makefile.in: New rule for cprop.o.
6417 * gcse.c: Move constant/copy propagation to cprop.c.
6418 (compute_local_properties): Only handle expression tables.
6419 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6420 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6421 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6422 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6423 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6424 compute_cprop_data, find_used_regs, try_replace_reg,
6425 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6426 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6427 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6428 find_bypass_set, reg_killed_on_edge, bypass_block,
6429 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6430 execute_rtl_cprop, pass_rtl_cprop): Move to...
6431 * cprop.c: ...here. New file, constant/copy propagation for RTL
6432 moved from gcse.c to here with minor cleanups in duplicated code.
6434 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6436 * config/i386/i386.c (flag_opts): Fix a typo in
6437 -mavx256-split-unaligned-store.
6439 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6441 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6442 LIBCALL_VALUE): Remove macros.
6443 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6444 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6445 (h8300_function_value, h8300_libcall_value,
6446 h8300_function_value_regno_p): New functions.
6448 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6450 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6452 2011-03-28 Jeff Law <law@redhat.com>
6454 * tree-ssa-threadupdate.c (redirect_edges): Call
6455 create_edge_and_update_destination_phis as needed.
6456 (create_edge_and_update_destination_phis): Accept new BB argument.
6457 All callers updated.
6458 (thread_block): Do not update the profile when threading around
6459 intermediate blocks.
6460 (thread_single_edge): Likewise.
6461 (determine_bb_domination_status): If BB is not a successor of the
6462 loop header, return NONDOMINATING.
6463 (register_jump_thread): Note when we register a jump thread around
6464 an intermediate block.
6465 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6466 (thread_across_edge): Use it.
6468 2011-03-28 Tristan Gingold <gingold@adacore.com>
6470 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6471 when for_return is 2.
6473 2011-03-28 Jeff Law <law@redhat.com>
6475 * var-tracking.c (canonicalize_values_mark): Delete unused
6477 (canonicalize_values_star, set_variable_part): Likewise.
6478 (clobber_variable_part, delete_variable_part): Likewise.
6480 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6482 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6484 2011-03-28 Martin Jambor <mjambor@suse.cz>
6486 * tree-inline.c (expand_call_inline): Do not check that destination
6488 (optimize_inline_calls): Assert that destination node is analyzed.
6489 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6490 not call tree_lowering_passes.
6491 * cgraph.h (cgraph_analyze_function): Declare.
6492 * cgraphunit.c (cgraph_analyze_function): Make public.
6494 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6496 * config/sparc/sparc-opts.h: New.
6497 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6498 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6499 (sparc_option_override): Store processor_type enumeration rather
6500 than string in cpu_default. Remove name and enumeration from
6501 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6502 without using sparc_select. Use target_flags_explicit instead of
6504 * config/sparc/sparc.h (enum processor_type): Move to
6506 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6507 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6508 HeaderInclude entry.
6509 (mcpu=, mtune=): Use Var and Enum.
6510 (sparc_processor_type): New Enum and EnumValue entries.
6512 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6513 Iain Sandoe <iains@gcc.gnu.org>
6516 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6518 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6520 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6521 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6522 Insert new statements at it in lieu of STMT.
6523 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6524 * tree-vect-stmts.c (vectorizable_store): Likewise.
6525 (vectorizable_load): Likewise.
6527 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6529 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6534 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6536 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6537 unaligned 256bit load/store.
6538 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6539 (*avx_movdqu<avxmodesuffix>): Likewise.
6541 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6544 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6545 * config/pa/pa.md (iordi3): Use new predicate in expander.
6548 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6550 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6551 FUNCTION_VALUE_REGNO_P): Remove macros.
6552 * config/mips/mips-protos.h (mips_function_value): Remove.
6553 * config/mips/mips.c (mips_function_value): Rename to...
6554 (mips_function_value_1): ... this. Make static. Handle receiving
6555 the function type in 'fn_decl_or_type' argument.
6556 (mips_function_value, mips_libcall_value,
6557 mips_function_value_regno_p): New function.
6558 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6559 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6561 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6563 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6564 and -mavx256-split-unaligned-store.
6565 (ix86_option_override_internal): Split 32-byte AVX unaligned
6566 load/store by default.
6567 (ix86_avx256_split_vector_move_misalign): New.
6568 (ix86_expand_vector_move_misalign): Use it.
6570 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6571 -mavx256-split-unaligned-store.
6573 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6574 256bit load/store. Generate unaligned store on misaligned memory
6576 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6578 (*avx_movdqu<avxmodesuffix>): Likewise.
6580 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6581 -mavx256-split-unaligned-store.
6583 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6586 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6589 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6591 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6592 opno arguments with an expand_operand. Use create_input_operand.
6593 (mips_prepare_builtin_target): Delete.
6594 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6596 (mips_expand_builtin_direct): Use create_output_operand and
6597 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6598 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6599 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6601 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
6603 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6605 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6607 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6609 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6610 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6611 basic blocks and call commit_edge_insertions directly.
6612 (fixup_abnormal_edges): Move from here to...
6613 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6614 on the edges and return whether some have actually been inserted.
6615 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6618 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
6620 PR rtl-optimization/48144
6621 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6622 (merge_expr_data): ... here.
6623 (av_set_intersect): Rename to av_set_code_motion_filter.
6624 Update all callers. Call merge_history_vect when an expression
6625 is found in both sets.
6626 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6628 2011-03-26 Alan Modra <amodra@gmail.com>
6630 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6631 cmodel medium addresses.
6632 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6633 64-bit gpr loads and stores.
6634 (rs6000_secondary_reload_ppc64): New function.
6635 * config/rs6000/rs6000-protos.h: Declare it.
6636 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6638 2011-03-26 Alan Modra <amodra@gmail.com>
6641 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6642 GNU Go in traceback table.
6644 2011-03-25 Richard Henderson <rth@redhat.com>
6646 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6647 if there are exactly 6 operands.
6648 (set_storage_via_setmem): Similarly.
6650 2011-03-25 Kai Tietz <ktietz@redhat.com>
6652 * collect2.c (write_c_file_stat): Handle backslash
6653 as right-hand directory separator.
6654 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6655 checking just for slash.
6656 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6657 instead of checking for trailing slash.
6658 * gcc.c (record_temp_file): Use filename_cmp instead
6660 (do_spec_1): Likewise.
6661 (replace_outfile_spec_function): Likewise.
6662 (is_directory): Use filename_ncmp instead of strncmp.
6663 (print_multilib_info): Likewise.
6664 * gcov.c (find_source): Use filename_cmp instead
6666 (make_gcov_file_name): Fix order of slash/backslash
6668 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6669 (add_standard_paths): Likewise.
6670 * mips-tfile.c (saber_stop): Handle backslash.
6671 * prefix.c (update_path): Use filename_ncmp instead of
6673 * profile.c (output_location): Use filename_cmp instead
6675 * read-md.c (handle_toplevel_file): Handle backslash.
6676 * tlink.c (frob_extension): Likewise.
6677 * tree-cfg.c (same_line_p): Use filename_cmp instead of
6679 * tree-dump.c (dequeue_and_dump): Handle backslash.
6680 * tree.c (get_file_function_name): Likewise.
6681 * gengtype.c (read_input_list): Likewise.
6682 (get_file_realbasename): Likewise.
6683 (get_output_file_with_visibility): Use filename_cmp
6686 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
6688 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6691 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6693 * fold-const.c (expr_location_or): New function.
6694 (fold_truth_not_expr): Call it.
6696 2011-03-25 Jeff Law <law@redhat.com>
6698 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6700 * c-family/c-common.c (def_fn_type): Likewise.
6701 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6702 * emit-rtl.c (gen_rtvec): Likewise.
6703 * lto/lto-lang.c (def_fn_type): Likewise.
6705 2011-03-25 Richard Guenther <rguenther@suse.de>
6707 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6708 also generate copies.
6709 (fini_copy_prop): Handle constant values properly.
6711 2011-03-25 Jakub Jelinek <jakub@redhat.com>
6713 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6714 mode size instead of bitsize with DWARF2_ADDR_SIZE.
6715 (hash_loc_operands, compare_loc_operands): Handle
6716 DW_OP_GNU_entry_value.
6718 2011-03-25 Kai Tietz <ktietz@redhat.com>
6720 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6721 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6722 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6723 comment and use macro TARGET_64BIT_MS_ABI instead.
6724 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6725 and change default behavior for 32-bit MS_ABI.
6726 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6727 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6729 (ix86_cfun_abi): Likewise.
6730 (ix86_maybe_switch_abi): Adjust comment.
6731 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6732 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6733 instead of checking for SYSV_ABI.
6734 (ix86_nsaved_sseregs): Likewise.
6735 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6737 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6738 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6739 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6740 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6741 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6743 2011-03-25 Richard Guenther <rguenther@suse.de>
6745 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6746 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6747 (verify_gimple): Remove.
6748 * tree-cfg.c (verify_gimple_call): Merge verification
6750 (verify_gimple_phi): Merge verification from verify_stmts.
6751 (verify_gimple_label): New function.
6752 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6753 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6754 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6755 (verify_stmts): Rename to verify_gimple_in_cfg.
6756 (verify_gimple_in_cfg): New function.
6757 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6758 * tree-ssa.c (verify_ssa): Likewise.
6759 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6761 2011-03-25 Richard Guenther <rguenther@suse.de>
6763 * passes.c (init_optimization_passes): Add FRE pass after
6766 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
6767 Andrew Stubbs <ams@codesourcery.com>
6769 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6771 (arm_movdi_vfp_cortexa8): New pattern.
6772 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6773 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6774 instructions when tuning for Cortex-A8. Set attribute "arch".
6775 * config/arm/arm.md: Move include arm-tune.md up a bit.
6776 (define_attr "arch"): Add "onlya8" and "nota8" values.
6777 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6779 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6783 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6785 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6786 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6787 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6788 * passes.c (init_optimization_passes): Move
6789 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6791 2011-03-25 Kai Tietz <ktietz@redhat.com>
6793 * c-typeck.c (comptypes_internal): Replace target
6794 hook call of comp_type_attributes by version in tree.c file.
6795 * gimple.c (gimple_types_compatible_p_1): Likewise.
6796 * tree-ssa.c (useless_type_conversion_p): Likewise.
6797 * tree.c (build_type_attribute_qual_variant): Likewise.
6798 (attribute_value_equal): New static helper function.
6799 (comp_type_attributes): New function.
6800 (merge_attributes): Use attribute_value_equal for comparison.
6801 (attribute_list_contained): Likewise.
6802 * tree.h (comp_type_attributes): New prototype.
6804 2011-03-25 Richard Guenther <rguenther@suse.de>
6806 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6807 of complex types at -O0.
6808 (verify_gimple_assign_binary): Likewise.
6809 (verify_gimple_assign_ternary): Likewise.
6811 2011-03-24 Mark Wielaard <mjw@redhat.com>
6813 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6814 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6816 2011-03-24 Mark Wielaard <mjw@redhat.com>
6819 * dwarf2out.c (output_abbrev_section): Only write table when
6820 abbrev_die_table_in_use > 1.
6822 2011-02-24 Richard Henderson <rth@redhat.com>
6824 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
6825 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
6826 (alpha_expand_unaligned_load_words): Use extql.
6827 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
6828 (emit_insxl): Handle all modes for consistency.
6830 2011-02-24 Richard Henderson <rth@redhat.com>
6832 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
6833 (alpha_expand_unaligned_load): Likewise.
6834 (alpha_expand_unaligned_store): Likewise.
6835 (alpha_expand_unaligned_load_words): Likewise.
6836 (alpha_expand_unaligned_store_words): Likewise.
6837 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
6838 (alpha_split_lock_test_and_set_12): Likewise.
6839 (print_operand, alpha_fold_builtin_extxx): Likewise.
6840 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
6841 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
6842 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
6843 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
6844 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
6845 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
6846 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
6847 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
6848 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
6849 (extwl, extll, extql): Similarly.
6850 (inswh, inslh, insqh): Similarly.
6851 (mskbl, mskwl, mskll, mskql): Similarly.
6852 (mskwh, msklh, mskqh): Similarly.
6854 2011-02-24 Richard Henderson <rth@redhat.com>
6856 * config/alpha/alpha.md (attribute isa): Add er, ner.
6857 (attribute enabled): Handle them.
6858 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
6860 2011-02-24 Richard Henderson <rth@redhat.com>
6862 * config/alpha/alpha.md (attribute isa): Add vms.
6863 (attribute enabled): Handle it.
6864 (*movsf): Merge *movsf_{nofix,fix,nofp}.
6865 (*movdf): Merge *movdf_{nofix,fix,nofp}.
6866 (*movtf): Rename from *movtf_internal for consistency.
6867 (*movsi): Merge with *movsi_nt_vms.
6868 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
6869 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
6870 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
6871 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
6873 2011-02-24 Richard Henderson <rth@redhat.com>
6875 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
6876 (extendqisi2, extendhisi2): Likewise.
6877 (extendqidi2): Simplify BWX/non-BWX expansions.
6878 (extendhidi2): Similarly.
6880 2011-02-24 Richard Henderson <rth@redhat.com>
6882 * config/alpha/alpha.md (attribute isa): New.
6883 (attribute enabled): New.
6884 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
6885 (zero_extendqisi2, zero_extendqidi2): Similarly.
6886 (zero_extendhisi2, zero_extendhidi2): Similarly.
6887 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
6889 2011-02-24 Richard Henderson <rth@redhat.com>
6891 * config/alpha/predicates.md (input_operand): Revert last change;
6892 update comment to mention 32-bit VMS rather than Windows.
6894 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6896 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6897 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6898 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6899 * passes.c (init_optimization_passes): Move
6900 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6902 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6904 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
6906 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6908 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
6911 2011-03-24 Jakub Jelinek <jakub@redhat.com>
6914 * simplify-rtx.c (simplify_const_unary_operation): Call
6915 real_convert when changing mode class with FLOAT_EXTEND.
6917 2011-03-24 Nick Clifton <nickc@redhat.com>
6919 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
6920 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6921 * config/rx/rx.c (rx_option_override): Set align_jumps,
6922 align_loops and align_labels if not set by the user.
6923 (rx_align_for_label): New function.
6924 (rx_max_skip_for_label): New function.
6925 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
6926 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
6927 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
6928 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
6929 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
6931 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6933 PR rtl-optimization/48263
6934 * optabs.c (expand_binop_directly): Reinstate convert_modes code
6935 and original commutative_p handling. Use maybe_gen_insn.
6937 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6939 * reload.c (find_reloads_subreg_address): Add address_reloaded
6940 parameter and return true there if the full address has been
6942 (find_reloads_toplev): Pass address_reloaded flag.
6943 (find_reloads_address_1): Don't use address_reloaded parameter.
6945 2011-03-24 Jeff Law <law@redhat.com>
6947 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
6948 unused variable "ann".
6949 (remove_unused_locals): Likewise.
6951 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
6954 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
6957 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6959 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
6960 for invalid symbolic addresses.
6961 (s390_secondary_reload): Don't use s390_check_symref_alignment for
6964 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6966 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
6967 the argument in calls to fold_truth_not_expr.
6969 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6971 * tree.c (record_node_allocation_statistics): New function.
6972 (make_node_stat, copy_node_stat, build_string): Call it.
6973 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
6974 (build1_stat, build_omp_clause): Likewise.
6976 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6978 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
6981 2011-03-24 Richard Guenther <rguenther@suse.de>
6983 PR tree-optimization/48271
6984 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
6985 blocks that still exist.
6987 2011-03-24 Richard Guenther <rguenther@suse.de>
6989 PR tree-optimization/48270
6990 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
6991 not free datarefs before ddrs.
6993 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6995 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
6996 from the address built for a reference with variable offset.
6998 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7001 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7002 alternatives that can be handled with movq or movabsq insn.
7003 (*movdf_internal): Disable for !TARGET_64BIT.
7004 (*movdf_internal_nointeger): Ditto.
7005 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7007 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7009 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7010 (FUNCTION_ARG_ADVANCE): Likewise.
7011 * tm.texi.in: Change references to them to hook references.
7012 * tm.texi: Regenerate.
7013 * targhooks.c (default_function_arg): Eliminate check for target macro.
7014 (default_function_incoming_arg): Likewise.
7015 (default_function_arg_advance): Likewise.
7016 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7017 (function_arg_advance): Likewise.
7018 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7020 2011-03-24 Richard Guenther <rguenther@suse.de>
7023 * tree-object-size.c (addr_object_size): Do not double-account
7024 for MEM_REF offsets.
7026 2011-03-24 Diego Novillo <dnovillo@google.com>
7028 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7029 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7030 (lto_input_data_block): Move from lto-opts.c. Make extern.
7032 (lto_input_string): Rename from input_string. Make extern.
7034 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7035 output_string_with_length.
7036 Output 0 to indicate a non-NULL string. Update all callers to
7038 (lto_output_string): Rename from output_string. Make extern.
7040 (lto_output_decl_state_streams): Make extern.
7041 (lto_output_decl_state_refs): Make extern.
7042 * lto-streamer.h (lto_input_string): Declare.
7043 (lto_input_data_block): Declare.
7044 (lto_output_string): Declare.
7045 (lto_output_string_with_length): Declare.
7046 (lto_output_decl_state_streams): Declare.
7047 (lto_output_decl_state_refs): Declare.
7049 2011-03-24 Richard Guenther <rguenther@suse.de>
7051 PR tree-optimization/46562
7052 * tree.c (build_invariant_address): New function.
7053 * tree.h (build_invariant_address): Declare.
7054 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7055 a renamed function moved ...
7056 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7057 Take valueization callback parameter.
7058 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7059 * gimple-fold.h: New file.
7060 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7061 (ccp_fold, fold_const_aggregate_ref,
7062 fold_ctor_reference, fold_nonarray_ctor_reference,
7063 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7064 get_base_constructor): Move ...
7065 * gimple-fold.c: ... here.
7066 (gimple_fold_stmt_to_constant_1): New function
7067 split out from ccp_fold. Take a valueization callback parameter.
7068 Valueize all operands.
7069 (gimple_fold_stmt_to_constant): New wrapper function.
7070 (fold_const_aggregate_ref_1): New function split out from
7071 fold_const_aggregate_ref. Take a valueization callback parameter.
7072 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7073 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7074 invariant POINTER_PLUS_EXPRs to invariant form.
7075 (vn_valueize): New function.
7076 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7077 * tree-vrp.c (vrp_valueize): New function.
7078 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7079 to fold statements to constants.
7080 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7081 function declarations.
7082 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7083 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7085 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7087 * config/h8300/predicates.md (jump_address_operand): Fix register
7090 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7092 * doc/invoke.texi (max-stores-to-sink): Document.
7093 * params.h (MAX_STORES_TO_SINK): Define.
7094 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7095 if either vectorization or if-conversion is disabled.
7096 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7097 tree-vect-data-refs.c vect_equal_offsets.
7098 (dr_equal_offsets_p): New function.
7099 (find_data_references_in_bb): Remove static.
7100 * tree-data-ref.h (find_data_references_in_bb): Declare.
7101 (dr_equal_offsets_p): Likewise.
7102 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7103 (vect_drs_dependent_in_basic_block): Update calls to
7105 (vect_check_interleaving): Likewise.
7106 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7107 (cond_if_else_store_replacement): Rename to...
7108 (cond_if_else_store_replacement_1): ... this. Change arguments and
7110 (cond_if_else_store_replacement): New function.
7111 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7112 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7114 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7117 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7118 to subtract lower bound instead of GEN_INT().
7120 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7125 * doc/extend.texi (Alignment): Move section to match order in TOC.
7126 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7127 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7129 2011-03-23 Jeff Law <law@redhat.com>
7131 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7132 before removing the edge.
7134 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7135 it may have been freed by redirect_branch_edge or
7136 redirect_edge_succ_nodup.
7138 2011-03-23 Richard Guenther <rguenther@suse.de>
7140 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7141 (check_va_list_escapes): Likewise.
7142 (check_all_va_list_escapes): Likewise.
7144 2011-03-23 Richard Guenther <rguenther@suse.de>
7146 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7147 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7148 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7149 (alias.o): Likewise.
7150 (ipa-type-escape.o): Remove.
7151 (ipa-struct-reorg.o): Likewise.
7152 (GTFILES): Remove ipa-struct-reorg.c.
7153 * alias.c: Do not include ipa-type-escape.h.
7154 * tree-ssa-alias.c: Likewise.
7155 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7156 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7157 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7158 and ipa-type-escape passes.
7159 * tree-pass.h (pass_ipa_type_escape): Remove.
7160 (pass_ipa_struct_reorg): Likewise.
7161 * ipa-struct-reorg.h: Remove.
7162 * ipa-struct-reorg.c: Likewise.
7163 * ipa-type-escape.h: Likewise.
7164 * ipa-type-escape.c: Likewise.
7165 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7166 (--param struct-reorg-cold-struct-ratio): Likewise.
7167 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7168 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7169 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7171 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7173 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7174 cpu attribute value.
7175 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7176 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7177 * config/s390/s390.c (processor_flags_table): New constant array.
7178 (s390_handle_arch_option): Remove.
7179 (s390_handle_option): Remove s390_handle_arch_option invocations
7180 and OPT_mwarn_framesize_ handling.
7181 (s390_option_override): Remove s390_handle_arch_option invocation.
7182 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7184 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7185 * config/s390/s390.opt (s390_tune, s390_arch)
7186 (march=): Replace s390_arch_option enum and values with
7187 processor_type. Set variable name to s390_arch. Set
7188 initialization value.
7189 (mtune=): Replace s390_arch_option with processor_type. Set
7190 variable name to s390_tune. Set initialization value.
7192 2011-03-23 Julian Brown <julian@codesourcery.com>
7194 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7195 accesses which are not naturally aligned.
7197 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7200 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7202 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7204 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7205 parameter from "int" to "enum insn_code".
7206 (expand_operand_type): New enum.
7207 (expand_operand): New structure.
7208 (create_expand_operand): New function.
7209 (create_fixed_operand, create_output_operand): Likewise
7210 (create_input_operand, create_convert_operand_to): Likewise.
7211 (create_convert_operand_from, create_address_operand): Likewise.
7212 (create_integer_operand): Likewise.
7213 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7214 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7215 (expand_insn, expand_jump_insn): Likewise.
7216 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7217 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7218 (expand_movstr, expand_builtin___clear_cache): Likewise.
7219 (expand_builtin_lock_release): Likewise.
7220 * explow.c (allocate_dynamic_stack_space): Likewise.
7221 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7222 and use the default handling in that case.
7223 * expmed.c (check_predicate_volatile_ok): Delete.
7224 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7225 (emit_cstore): Likewise.
7226 * expr.c (emit_block_move_via_movmem): Likewise.
7227 (set_storage_via_setmem, expand_assignment): Likewise.
7228 (emit_storent_insn, try_casesi): Likewise.
7229 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7230 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7231 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7232 (expand_twoval_unop, expand_twoval_binop): Likewise.
7233 (expand_unop_direct, emit_indirect_jump): Likewise.
7234 (emit_conditional_move, vector_compare_rtx): Likewise.
7235 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7236 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7237 (expand_sync_lock_test_and_set): Likewise.
7238 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7239 (emit_unop_insn): Likewise.
7240 (expand_copysign_absneg): Change icode to an insn_code.
7241 (create_convert_operand_from_type): New function.
7242 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7243 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7244 (expand_insn, expand_jump_insn): Likewise.
7245 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7246 than const_int_operand for operand 2.
7248 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7250 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7253 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7255 * emit-rtl.c (emit_pattern_before_noloc): New function.
7256 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7257 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7258 (emit_pattern_after_noloc): New function.
7259 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7260 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7262 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7264 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7265 (__ffsDI2): Likewise.
7267 2011-03-22 Richard Henderson <rth@redhat.com>
7269 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7270 of !TARGET_ABI_OPEN_VMS.
7271 (alpha_trampoline_init, alpha_start_function): Likewise.
7272 (alpha_expand_epilogue, alpha_file_start): Likewise.
7273 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7274 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7275 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7276 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7277 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7279 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7281 * config/s390/s390-opts.h: New.
7282 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7283 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7284 s390_stack_guard): Remove.
7285 (s390_handle_arch_option): Return void. Take enum
7286 s390_arch_option value instead of string and searching array.
7287 (s390_handle_option): Don't assert that global structures are in
7288 use. Access variables via opts pointer. Use error_at. Don't use
7289 sscanf for -mstack-guard= or -mstack-size=. Update call to
7290 s390_handle_arch_option.
7291 (s390_option_override): Update call to s390_handle_arch_option.
7292 (s390_emit_prologue): Use %d format for s390_stack_size in
7293 diagnostic. Use %wd for HOST_WIDE_INT.
7294 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7295 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7296 * config/s390/s390.opt (config/s390/s390-opts.h): New
7297 HeaderInclude entry.
7298 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7299 s390_arch_flags, s390_warn_framesize): New Variable entries.
7300 (s390_arch_option): New Enum and EnumValue entries.
7301 (march=): Use Enum instead of Var.
7302 (mstack-guard=, mstack-size=): Use UInteger and Var.
7305 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7307 * config/score/score.c (score_handle_option): Don't assert that
7308 global structures are in use. Access target_flags via opts
7309 pointer. Use value of -march= option to determine target_flags
7311 * config/score/score.opt (march=): Use Enum.
7312 (score_arch): New Enum and EnumValue entries.
7314 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7316 * config/mep/mep.c (option_mtiny_specified): Remove.
7317 (mep_option_override): Move register handling for -mivc2 from
7318 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7319 instead of option_mtiny_specified.
7320 (mep_handle_option): Access target_flags via opts pointer. Don't
7321 assert that global structures are in use. Defer part of -mivc2
7322 handling and move it to mep_option_override.
7323 * config/mep/mep.opt (IVC2): New Mask entry.
7324 (mivc2): Use Var and Defer instead of Mask.
7326 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7328 * config/v850/v850-opts.h: New.
7329 * config/v850/v850.c (small_memory): Replace with
7330 small_memory_physical_max array. Make that array static const.
7331 (v850_handle_memory_option): Take integer value of argument. Take
7332 gcc_options pointer, option text and location. Return void.
7333 Update for changes to small memory structures.
7334 (v850_handle_option): Access target_flags via opts pointer. Don't
7335 assert that global structures are in use. Update calls to
7336 v850_handle_memory_option.
7337 (v850_encode_data_area): Update references to small memory settings.
7338 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7339 (enum small_memory_type): Move to v850-opts.h.
7340 * config/v850/v850.opt (config/v850/v850-opts.h): New
7341 HeaderInclude entry.
7342 (small_memory_max): New Variable entry.
7343 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7344 (mtda, mzda): Likewise.
7346 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7348 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7349 pointer. Don't assert that global structures are in use.
7351 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7353 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7354 via opts pointer. Don't assert that global structures are in use.
7356 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7358 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7359 (munix=93): Use Var.
7360 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7361 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7362 * config/pa/pa-opts.h: New.
7363 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7364 (pa_handle_option): Don't assert that global structures are in
7365 use. Access target_flags via opts pointer. Don't handle
7366 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7368 (pa_option_override): Handle deferred OPT_mfixed_range_.
7370 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7372 * config/mn10300/mn10300-opts.h: New.
7373 * config/mn10300/mn10300.c (mn10300_processor,
7374 mn10300_tune_string): Remove.
7375 (mn10300_handle_option): Don't assert that global structures are
7376 in use. Access mn10300_processor via opts pointer. Don't handle
7378 * config/mn10300/mn10300.h (enum processor_type): Move to
7380 (mn10300_processor): Remove.
7381 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7382 HeaderInclude entry.
7383 (mn10300_processor): New Variable entry.
7386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7388 * config/microblaze/microblaze.c: Don't include opts.h.
7389 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7390 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7391 (mno-clearbss): Use Var and Warn.
7393 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7395 * config/m32r/m32r-opts.h: New.
7396 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7397 (m32r_handle_option): Don't assert that global structures are in
7398 use. Access target_flags and m32r_cache_flush_func via opts
7399 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7400 OPT_mno_flush_trap here.
7401 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7402 include of m32r-opts.h.
7403 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7404 HeaderInclude entry.
7405 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7406 (mmodel=): Use Enum and Var.
7407 (m32r_model): New Enum and EnumValue entries.
7408 (mno-flush-trap): Use Var.
7409 (msdata=): Use Enum and Var.
7410 (m32r_sdata): New Enum and EnumValue entries.
7412 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7414 * config/m32c/m32c.c: Don't include opts.h.
7415 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7416 m32c_handle_option): Remove.
7417 (m32c_option_override): Check global_options_set.x_target_memregs
7418 instead of target_memregs_set.
7419 * config/m32c/m32c.h (target_memregs): Remove.
7420 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7423 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7425 * config/iq2000/iq2000-opts.h: New.
7426 * config/iq2000/iq2000.c: Don't include opts.h.
7427 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7428 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7429 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7430 HeaderInclude entry.
7431 (iq2000_tune): New Variable entry.
7432 (march=): Add comment. Use Enum.
7433 (iq2000_arch): New Enum and EnumValue entries.
7434 (mcpu=): Use Enum and Var.
7435 (iq2000_tune): New Enum and EnumValue entries.
7437 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7439 * config/ia64/ia64-opts.h: New.
7440 * config/ia64/ia64.c (ia64_tune): Remove.
7441 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7443 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7444 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7445 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7446 HeaderInclude entry.
7447 (ia64_tune): New Variable entry.
7448 (mfixed-range=): Use Defer and Var.
7449 (mtune=): Use Enum and Var.
7450 (ia64_tune): New Enum and EnumValue entries.
7452 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7454 * config/frv/frv-opts.h: New.
7455 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7457 (frv_cpu_type): Remove.
7458 * config/frv/frv.c: Don't include opts.h.
7459 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7460 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7461 (frv_cpu_type): New Variable entry.
7462 (frv_cpu): New Enum and EnumValue entries.
7464 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7466 * config/cris/cris.c (cris_handle_option): Access target_flags via
7467 opts pointer. Don't assert that global structures are in use.
7468 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7469 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7471 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7473 * config/bfin/bfin-opts.h: New.
7474 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7475 bfin_si_revision, bfin_workarounds): Remove.
7476 (bfin_cpus): Make static const.
7477 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7478 not bfin_lib_id_given.
7479 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7480 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7481 pointer. Use error_at. Don't assert that global structures are in use.
7482 * config/bfin/bfin.h: Include bfin-opts.h.
7483 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7484 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7485 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7486 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7489 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7491 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7492 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7493 or -msoft-float here.
7494 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7495 -msoft-float and -mhard-float.
7496 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7497 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7499 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7501 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7502 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7504 (LIBGCC_SPEC): Don't handle -msoft-float.
7505 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7507 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7509 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7510 -mfloat-abi=*, not -msoft-float and -mhard-float.
7511 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7513 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7514 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7515 mhard-float and msoft-float.
7516 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7517 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7518 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7519 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7521 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7522 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7524 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7526 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7529 2011-03-22 Richard Henderson <rth@redhat.com>
7531 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7532 TARGET_ABI_WINDOWS_NT.
7533 (alpha_output_function_end_prologue): Likewise.
7534 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7535 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7536 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7537 (trap, *movsi_nt_vms): Likewise.
7538 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7539 (*tablejump_osf_nt_internal): Remove.
7540 * config/alpha/predicates.md (input_operand): Only test Pmode.
7542 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7544 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7545 via opts pointer. Use error_at. Don't assert that global
7546 structures are in use.
7548 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7550 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7551 (ix86_handle_option): Access ix86_isa_flags and
7552 ix86_isa_flags_explicit via opts pointer. Don't assert that
7553 global structures are in use.
7554 (ix86_function_specific_save, ix86_function_specific_restore):
7555 Update ix86_isa_flags_explicit field name.
7556 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7557 (ix86_isa_flags_explicit): Rename TargetSave entry to
7558 x_ix86_isa_flags_explicit.
7560 2011-03-22 Richard Henderson <rth@redhat.com>
7562 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7563 (alpha_option_override, direct_return): Likewise.
7564 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7565 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7566 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7567 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7568 (alpha_expand_epilogue, alpha_end_function): Likewise.
7569 (alpha_init_libfuncs): Likewise.
7570 (struct machine_function): Remove unicosmk members.
7571 (print_operand) ['t']: Remove.
7572 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7573 unicosmk_output_module_name, unicosmk_output_common,
7574 current_section_align, unicosmk_output_text_section_asm_op,
7575 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7576 unicosmk_section_type_flags, unicosmk_unique_section,
7577 unicosmk_asm_named_section, unicosmk_insert_attributes,
7578 unicosmk_output_align, unicosmk_defer_case_vector,
7579 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7580 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7581 unicosmk_output_ssib, unicosmk_add_call_info_word,
7582 unicosmk_extern_head, unicosmk_output_default_externs,
7583 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7584 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7585 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7586 * config/alpha/alpha-protos.h: Update.
7587 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7588 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7589 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7590 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7591 (*mulsi_se, mulvsi3): Likewise.
7592 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7593 (*divmodsi_internal, call, call_value, realign): Likewise.
7594 (moddi3, umoddi3): Likewise; remove duplicate expander.
7595 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7596 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7597 (*movdi_nofix): Remove r/U alternative.
7598 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7599 * config/alpha/constraints.md ("U"): Remove.
7600 * config/alpha/predicates.md (call_operand"): Don't test
7601 TARGET_ABI_UNICOSMK.
7603 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7605 * target.def (handle_option): Take gcc_options and
7606 cl_decoded_option pointers and location_t.
7607 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7608 * doc/tm.texi: Regenerate.
7609 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7610 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7611 * lto-opts.c (lto_reissue_options): Generate option structure for
7612 targetm.handle_option call.
7613 * opts.c (target_handle_option): Update call to
7614 targetm.handle_option. Remove assertions about values now passed
7616 * targhooks.c (default_target_handle_option): New.
7617 * targhooks.h (default_target_handle_option): Declare.
7618 * config/alpha/alpha.c: Include opts.h.
7619 (alpha_handle_option): Update to new hook interface.
7620 * config/arm/arm.c: Include opts.h.
7621 (arm_handle_option): Update to new hook interface.
7622 * config/arm/t-arm (arm.o): Update dependencies.
7623 * config/bfin/bfin.c: Include opts.h.
7624 (bfin_handle_option): Update to new hook interface.
7625 * config/cris/cris.c: Include opts.h.
7626 (cris_handle_option): Update to new hook interface.
7627 * config/frv/frv.c: Include opts.h.
7628 (frv_handle_option): Update to new hook interface.
7629 * config/i386/i386.c: Include opts.h.
7630 (ix86_handle_option): Update to new hook interface.
7631 (ix86_valid_target_attribute_inner_p): Generate option structure
7632 for call to ix86_handle_option.
7633 * config/i386/t-i386 (i386.o): Update dependencies.
7634 * config/ia64/ia64.c: Include opts.h.
7635 (ia64_handle_option): Update to new hook interface.
7636 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7637 * config/iq2000/iq2000.c: Include opts.h.
7638 (iq2000_handle_option): Update to new hook interface.
7639 * config/m32c/m32c.c: Include opts.h.
7640 (m32c_handle_option): Update to new hook interface.
7641 * config/m32r/m32r.c: Include opts.h.
7642 (m32r_handle_option): Update to new hook interface.
7643 * config/m68k/m68k.c: Include opts.h.
7644 (m68k_handle_option): Update to new hook interface.
7645 * config/mep/mep.c: Include opts.h.
7646 (mep_handle_option): Update to new hook interface.
7647 * config/microblaze/microblaze.c: Include opts.h.
7648 (microblaze_handle_option): Update to new hook interface.
7649 * config/mips/mips.c: Include opts.h.
7650 (mips_handle_option): Update to new hook interface.
7651 * config/mn10300/mn10300.c: Include opts.h.
7652 (mn10300_handle_option): Update to new hook interface.
7653 * config/pa/pa.c: Include opts.h.
7654 (pa_handle_option): Update to new hook interface.
7655 * config/pdp11/pdp11.c: Include opts.h.
7656 (pdp11_handle_option): Update to new hook interface.
7657 * config/rs6000/rs6000.c: Include opts.h.
7658 (rs6000_handle_option): Update to new hook interface.
7659 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7660 * config/rx/rx.c: Include opts.h.
7661 (rx_handle_option): Update to new hook interface.
7662 * config/s390/s390.c: Include opts.h.
7663 (s390_handle_option): Update to new hook interface.
7664 * config/score/score.c: Include opts.h.
7665 (score_handle_option): Update to new hook interface.
7666 * config/sh/sh.c: Include opts.h.
7667 (sh_handle_option): Update to new hook interface.
7668 * config/sparc/sparc.c: Include opts.h.
7669 (sparc_handle_option): Update to new hook interface.
7670 * config/v850/v850.c: Include opts.h.
7671 (v850_handle_option): Update to new hook interface.
7673 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7675 * gcc.c (driver_unknown_option_callback): Only permit and save
7676 unknown -Wno- options.
7677 (driver_wrong_lang_callback): Save options directly instead of via
7678 driver_unknown_option_callback.
7680 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7682 * combine.c (simplify_set): Try harder to find the best CC mode when
7683 simplifying a nested COMPARE on the RHS.
7685 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7687 * config/alpha/gnu.h: Remove.
7688 * config/arc: Remove directory.
7689 * config/arm/netbsd.h: Remove.
7690 * config/arm/t-pe: Remove.
7691 * config/crx: Remove directory.
7692 * config/i386/netbsd.h: Remove.
7693 * config/m68hc11: Remove directory.
7694 * config/m68k/uclinux-oldabi.h: Remove.
7695 * config/mcore/mcore-pe.h: Remove.
7696 * config/mcore/t-mcore-pe: Remove.
7697 * config/netbsd-aout.h: Remove.
7698 * config/rs6000/gnu.h: Remove.
7699 * config/sh/sh-symbian.h: Remove.
7700 * config/sh/symbian-base.c: Remove.
7701 * config/sh/symbian-c.c: Remove.
7702 * config/sh/symbian-cxx.c: Remove.
7703 * config/sh/symbian-post.h: Remove.
7704 * config/sh/symbian-pre.h: Remove.
7705 * config/sh/t-symbian: Remove.
7706 * config/svr3.h: Remove.
7707 * config/vax/netbsd.h: Remove.
7708 * config.build: Don't handle i[34567]86-*-pe.
7709 * config.gcc: Remove handling of deprecations for most deprecated
7711 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7712 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7713 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7714 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7715 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7716 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7718 * config.host: Don't handle i[34567]86-*-pe.
7719 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7720 (ASM_SPEC32): Don't handle -mcall-gnu.
7721 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7723 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7724 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7725 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7726 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7727 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7728 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7729 conditional on SYMBIAN.
7730 * configure.ac: Don't handle powerpc*-*-gnu*.
7731 * configure: Regenerate.
7732 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7733 * doc/install-old.texi (m6811, m6812): Don't mention.
7734 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7735 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7736 (m68k-uclinuxoldabi): Don't mention.
7737 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7739 (-mcall-gnu): Remove.
7740 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7741 families): Remove constraint documentation.
7743 2011-03-22 Marius Strobl <marius@FreeBSD.org>
7745 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7746 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7747 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7749 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7752 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7753 vector when peeking at the next token for vector, don't expand the
7756 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
7758 * config/avr/avr-protos.h (expand_epilogue): Change prototype
7759 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7760 * config/avr/avr.c (init_cumulative_args)
7761 (avr_function_arg_advance): Use it.
7762 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7764 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7765 (avr_function_ok_for_sibcall): ...this new function.
7766 (avr_lookup_function_attribute1): New static Function.
7767 (avr_naked_function_p, interrupt_function_p)
7768 (signal_function_p, avr_OS_task_function_p)
7769 (avr_OS_main_function_p): Use it.
7770 * config/avr/avr.md ("sibcall", "sibcall_value")
7771 ("sibcall_epilogue"): New expander.
7772 ("*call_insn", "*call_value_insn"): New insn.
7773 ("call_insn", "call_value_insn"): Remove
7774 ("call", "call_value", "epilogue"): Change expander to handle
7777 2011-03-21 Nick Clifton <nickc@redhat.com>
7779 * doc/invoke.texi (Overall Options): Move closing brace to end of
7781 (Optimization Options): Add missing @gol.
7782 (Directory Options): Likewise.
7783 (i386 and x86-64 Options): Likewise.
7784 (RS6000 and PowerPC Options): Likewise.
7785 (i386 and x86-64 Windows Options): Likewise.
7786 (V850 Options): Add text missing from descriptions.
7788 2011-03-22 Richard Henderson <rth@redhat.com>
7790 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7791 (avr_incoming_return_addr_rtx): New.
7792 (emit_push_byte): New.
7793 (expand_prologue): Use it. Remove incorrect dwarf annotation for
7794 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
7795 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
7796 (emit_pop_byte): New.
7797 (expand_epilogue): Use it. Pop frame pointer by bytes.
7798 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7799 (INCOMING_RETURN_ADDR_RTX): New.
7800 (INCOMING_FRAME_SP_OFFSET): New.
7801 (ARG_POINTER_CFA_OFFSET): New.
7802 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7803 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7806 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7808 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7810 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7811 (FUNCTION_ARG_ADVANCE): Likewise.
7812 * tm.texi.in: Change references to them to hook references.
7813 * tm.texi: Regenerate.
7814 * targhooks.c (default_function_arg): Eliminate check for target
7816 (default_function_incoming_arg): Likewise.
7817 (default_function_arg_advance): Likewise.
7818 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7819 (function_arg_advance): Likewise.
7820 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7822 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7824 * tree.c (build_call_1): New function.
7825 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
7827 2011-03-22 Richard Guenther <rguenther@suse.de>
7829 PR tree-optimization/48228
7830 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
7831 for single-arg PHIs.
7833 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
7835 PR rtl-optimization/48143
7836 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
7837 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
7838 sse2_cvtps2pd): Likewise.
7840 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7842 * recog.c (canonicalize_change_group): Use validate_unshare_change.
7844 2011-03-22 Richard Guenther <rguenther@suse.de>
7846 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
7847 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
7848 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
7849 and REALIGN_LOAD_EXPR.
7850 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
7851 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
7852 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
7853 DOT_PROD_EXPR case ...
7854 (expand_expr_real_2): ... here.
7855 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
7856 and REALIGN_LOAD_EXPR.
7857 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
7858 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
7859 (vect_create_epilog_for_reduction): Likewise.
7860 (vectorizable_reduction): Likewise.
7861 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
7862 * tree-vect-stmts.c (vectorizable_load): Likewise.
7864 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7866 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
7868 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7870 * config/s390/s390.c (s390_delegitimize_address): Fix offset
7871 handling for PLTOFF/GOTOFF.
7873 2011-03-22 Nick Clifton <nickc@redhat.com>
7875 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
7876 trailing backslash from the end of the macro definition.
7878 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7880 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
7883 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
7885 * expr.h (prepare_operand): Move to...
7886 * optabs.h (prepare_operand): ...here and change the insn code
7887 parameter from "int" to "enum insn_code".
7888 (insn_operand_matches): Declare.
7889 * expr.c (init_expr_target): Use insn_operand_matches.
7890 (compress_float_constant): Likewise.
7891 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
7892 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
7893 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
7894 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
7896 (gen_cond_trap): Likewise.
7897 (prepare_operand): Likewise. Change icode to an insn_code.
7898 (insn_operand_matches): New function.
7899 * reload.c (find_reloads_address_1): Use insn_operand_matches.
7900 * reload1.c (gen_reload): Likewise.
7901 * targhooks.c (default_secondary_reload): Likewise.
7903 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7905 * config/alpha/alpha.md (unspec): New define_c_enum.
7908 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7911 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
7912 between a call and its CALL_ARG_LOCATION note.
7914 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
7916 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
7918 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7922 * c-common.c (shorten_compare): If primopN is first sign-extended
7923 to opN and then zero-extended to result type, set primopN to opN.
7925 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7927 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
7928 for barrier handlers.
7930 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7932 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
7933 UNSPEC constants to be in the unspec enumeration, and redefine
7934 all UNSPECV constants to be in the unspecv enumeration, so that
7935 dumps print which unspec/unspec_volatile this is.
7936 * config/rs6000/vector.md (UNSPEC_*): Ditto.
7937 * config/rs6000/paired.md (UNSPEC_*): Ditto.
7938 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
7939 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
7940 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
7942 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
7943 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
7944 UNSPECV_LWSYNC, since these are used as unspec_volatile.
7945 * config/rs6000/sync.md (isync, lwsync): Ditto.
7947 2011-03-21 Richard Guenther <rguenther@suse.de>
7949 * params.def (lto-min-partition): Fix typo.
7951 2011-03-21 Richard Guenther <rguenther@suse.de>
7954 * c-decl.c (grokdeclarator): Drop to the main variant only
7955 for array types. Drop flag_gen_aux_info check.
7957 2011-03-21 Richard Guenther <rguenther@suse.de>
7959 PR translation/47911
7960 * params.def (lto-partitions): Fix typo.
7961 (lto-min-partition): Fix wording.
7963 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
7965 * config/rs6000/t-freebsd: Remove duplication from file.
7967 2011-03-21 Richard Guenther <rguenther@suse.de>
7970 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
7972 2011-03-21 Richard Guenther <rguenther@suse.de>
7975 * params.def (lto-partitions): Require at least 1 partition.
7977 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7979 * gthr-solaris.h: Remove.
7980 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
7981 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
7982 (LIB_SPEC): Likewise.
7983 * config/sol2.opt (threads): Remove.
7984 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
7985 (sparc*-*-solaris2*): Likewise.
7986 * configure.ac (enable_threads): Enable solaris support.
7987 * configure: Regenerate.
7988 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
7989 * doc/install.texi (Configuration, --enable-threads=lib): Remove
7992 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7994 * config.gcc: Obsolete *-*-solaris2.8*.
7995 * doc/install.texi (Specific, *-*-solaris2*): Document it.
7997 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8000 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8001 reference. Solaris 8 perl works.
8003 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8006 * doc/install.texi (Prerequisites): Move jar etc. up.
8007 Explain support library version requirements.
8009 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8012 * doc/install.texi (Prerequisites): Move Perl to build
8013 requirements. Always necessary on Solaris 2 with Sun ld.
8015 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8017 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8019 (Specific, i?86-*-solaris2.[89]): Likewise.
8020 (Specific, i?86-*-solaris2.10): Likewise.
8021 (Specific, mips-sgi-irix6): Likewise.
8022 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8023 Update for binutils 2.21.
8025 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8027 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8028 Allow -fuse-linker-plugin for non-default plugin linker.
8029 * configure: Regenerate.
8031 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8034 * gengtype.c (files_rules): Added rule for cp/parser.h.
8036 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8039 * config/s390/s390.c (s390_delegitimize_address): Don't call
8040 lowpart_subreg if orig_x has BLKmode.
8042 2011-03-21 Kai Tietz <ktietz@redhat.com>
8045 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8046 * tree.h (attribute_spec): Add new member affects_type_identity.
8047 * attribs.c (empty_attribute_table): Adjust attribute_spec
8049 * config/alpha/alpha.c: Likewise.
8050 * config/arc/arc.c: Likewise.
8051 * config/arm/arm.c: Likewise.
8052 * config/avr/avr.c: Likewise.
8053 * config/bfin/bfin.c: Likewise.
8054 * config/crx/crx.c: Likewise.
8055 * config/darwin.h: Likewise.
8056 * config/h8300/h8300.c: Likewise.
8057 * config/i386/cygming.h: Likewise.
8058 * config/i386/i386.c: Likewise.
8059 * config/ia64/ia64.c: Likewise.
8060 * config/m32c/m32c.c: Likewise.
8061 * config/m32r/m32r.c: Likewise.
8062 * config/m68hc11/m68hc11.c: Likewise.
8063 * config/m68k/m68k.c: Likewise.
8064 * config/mcore/mcore.c: Likewise.
8065 * config/mep/mep.c: Likewise.
8066 * config/microblaze/microblaze.c: Likewise.
8067 * config/mips/mips.c: Likewise.
8068 * config/rs6000/rs6000.c: Likewise.
8069 * config/rx/rx.c: Likewise.
8070 * config/sh/sh.c: Likewise.
8071 * config/sol2.h: Likewise.
8072 * config/sparc/sparc.c: Likewise.
8073 * config/spu/spu.c: Likewise.
8074 * config/stormy16/stormy16.c: Likewise.
8075 * config/v850/v850.c: Likewise.
8077 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8079 * simplify-rtx.c (simplify_binary_operation_1): Handle
8080 (xor (and A B) C) case when B and C are both constants.
8082 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8084 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8086 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8089 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8091 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8093 PR rtl-optimization/48156
8094 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8095 assume df and df_lr are not NULL.
8097 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8100 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8101 between a call and its CALL_ARG_LOCATION note.
8103 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8106 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8107 between a call and its corresponding CALL_ARG_LOCATION note.
8109 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8111 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8112 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8113 * haifa-sched.c (setup_ref_regs): Ditto.
8114 * caller-save.c (add_used_regs_1): Ditto.
8115 * dse.c (look_for_hardregs): Ditto.
8116 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8117 * sched-rgn.c (check_live_1): Ditto.
8119 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8121 * c-decl.c (diagnose_mismatched_decls): Give an error for
8122 redefining a typedef with variably modified type.
8124 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8126 * c-decl.c (grokfield): Don't allow typedefs for structures or
8127 unions with no tag by default.
8128 * doc/extend.texi (Unnamed Fields): Update.
8130 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8132 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8133 Rewrite using indirect functions.
8134 (lwp_slwpcb): Ditto.
8135 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8136 (avx_vinsertf128<mode>): Ditto.
8138 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8140 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8143 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8145 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8146 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8148 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8150 PR rtl-optimization/48170
8151 * gcse.c (hoist_code): Remove bogus asserts.
8153 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8155 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8156 computation for prologue/epilogue.
8158 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8160 * Makefile.in (check-consistency): Remove.
8162 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8165 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8166 arange_table_in_use is 0, but either text_section_used or
8167 cold_text_section_used is true. Don't call it if
8168 !info_section_emitted.
8170 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8172 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8173 FUNCTION_VALUE_REGNO_P): Remove.
8174 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8176 * config/avr/avr.c (avr_ret_register): Make static inline.
8177 (avr_function_value_regno_p): New function.
8178 (avr_libcall_value): Make static. Add 'func' argument.
8179 (avr_function_value): Make static. Rename 'func' argument to
8180 'fn_decl_or_type', forward it to avr_libcall_value. Call
8181 avr_ret_register function instead of RET_REGISTER macro.
8182 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8184 2011-03-18 Jason Merrill <jason@redhat.com>
8187 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8189 2011-03-18 Richard Guenther <rguenther@suse.de>
8191 * doc/install.texi (--enable-gold): Remove.
8192 (--with-plugin-ld): Document.
8193 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8195 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8198 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8199 again after expansion changes.
8201 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8203 * combine.c (try_combine): Do simplification only call of
8204 subst() on i2 even when i1 is present. Update comments.
8206 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8208 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8209 and UNSPEC_PCREL_SYMOFF.
8211 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8213 * config/s390/s390.md: Use define_c_enum for the unspec constant
8216 2011-03-18 Richard Henderson <rth@redhat.com>
8217 Jakub Jelinek <jakub@redhat.com>
8220 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8221 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8223 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8226 * combine.c (cant_combine_insn_p): Don't check zero/sign
8227 extended hard registers.
8229 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8232 * combine.c (cant_combine_insn_p): Check zero/sign extended
8235 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8237 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8238 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8239 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8240 Change return type to bool.
8241 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8243 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8246 * var-tracking.c (prepare_call_arguments): If CALL target
8247 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8248 pc instead of looking it up using cselib_lookup and use
8249 Pmode for it if x has VOIDmode.
8250 * dwarf2out.c (gen_subprogram_die): If also both first and
8251 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8254 * function.c (assign_parms): For data.passed_pointer parms
8255 use MEM of data.entry_parm instead of data.entry_parm itself
8256 as DECL_INCOMING_RTL.
8257 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8258 also when passed and declared mode is the same, DECL_RTL
8259 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8262 2011-03-16 Jeff Law <law@redhat.com>
8264 PR rtl-optimization/37273
8265 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8266 handle them like argument loads from stack slots. Do not double
8267 count memory for memory constants and argument loads from stack slots.
8269 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8272 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8274 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8277 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8279 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8282 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8284 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8285 Clear call_arg_locations and call_arg_loc_last always.
8288 * var-tracking.c (prepare_call_arguments): If argument needs to be
8289 passed by reference, adjust argtype and mode.
8291 2011-03-17 Richard Guenther <rguenther@suse.de>
8294 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8295 a value make sure to fold the statement.
8297 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8300 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8301 return condition with !cfun->calls_alloca.
8303 2011-03-17 Richard Guenther <rguenther@suse.de>
8306 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8307 origin for decls in other ltrans units.
8308 (input_varpool_node): Likewise.
8310 2011-03-17 Richard Guenther <rguenther@suse.de>
8313 * tree-object-size.c (compute_object_offset): Properly return
8314 the offset operand of MEM_REFs as sizetype.
8316 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8318 PR rtl-optimization/48141
8319 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8320 * dse.c: Include params.h.
8321 (active_local_stores_len): New variable.
8322 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8324 (record_store, check_mem_read_rtx): Decrease it when removing
8326 (scan_insn): Likewise. Increase it when adding to chain, if it
8327 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8328 set active_local_stores to NULL before the addition.
8329 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8331 PR rtl-optimization/48141
8332 * dse.c (record_store): If no positions are needed in an insn
8333 that cannot be deleted, at least unchain it from active_local_stores.
8335 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8338 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8339 (lookup_type_die_strip_naming_typedef): ... here.
8340 (get_context_die): Use it.
8341 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8342 the anonymous struct named by the naming typedef.
8344 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8347 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8348 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8350 2011-03-16 Jeff Law <law@redhat.com>
8352 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8353 check for operands of conditional. Allow type to be a pointer.
8355 2011-03-16 Richard Guenther <rguenther@suse.de>
8357 PR tree-optimization/48149
8358 * fold-const.c (fold_binary_loc): Fold
8359 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8361 2011-03-16 Richard Guenther <rguenther@suse.de>
8363 PR tree-optimization/26134
8364 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8365 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8366 (non_rewritable_mem_ref_base): Handle complex type component
8367 accesses, constrain offsets for vector and complex extracts
8370 2011-03-16 Richard Guenther <rguenther@suse.de>
8372 PR tree-optimization/48146
8373 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8374 operands avoiding the need for renaming.
8376 2011-03-16 Richard Guenther <rguenther@suse.de>
8378 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8379 constant folding. Move MEM_REF canonicalization first.
8380 Rely on fold_const_aggregate_ref for initializer folding.
8381 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8383 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8386 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8387 arg0/arg1 or their arguments are always fold converted to matching
8390 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8393 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8396 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8397 Handle in-tree gold.
8398 (ld_vers): Extract binutils version for gold.
8399 (gcc_cv_ld_hidden): Handle gold here.
8400 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8401 * configure: Regenerate.
8402 * config.in: Regenerate.
8403 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8404 -fuse-linker-plugin otherwise.
8405 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8406 (LINK_COMMAND_SPEC): Use it.
8407 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8409 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8411 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8412 * calls.c: Remove debug.h include.
8413 (emit_call_1): Don't call virtual_call_token debug hook.
8414 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8415 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8416 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8417 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8418 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8419 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8420 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8421 dwarf2out_virtual_call): Remove.
8422 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8423 copy_call_info and virtual_call hooks.
8424 (dwarf2out_init): Don't initialize vcall_insn_table,
8425 debug_dcall_section and debug_vcall_section.
8426 (prune_unused_types): Don't mark nodes from dcall_table.
8427 (dwarf2out_finish): Don't output dcall or vcall tables.
8428 * final.c (final_scan_insn): Don't call direct_call or
8429 virtual_call debug hooks.
8430 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8431 virtual_call_token, copy_call_info and virtual_call hooks.
8432 (debug_nothing_uid): Remove prototype.
8433 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8434 copy_call_info and virtual_call hooks.
8435 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8436 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8437 * debug.c (do_nothing_debug_hooks): Likewise.
8438 (debug_nothing_uid): Remove.
8439 * doc/invoke.texi (-fenable-icf-debug): Remove.
8440 * common.opt (-fenable-icf-debug): Likewise.
8442 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8443 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8444 call's MEM. Handle functions returning aggregate through a hidden
8445 first pointer. For virtual calls add clobbered pc to call arguments
8447 * dwarf2out.c (gen_subprogram_die): Emit
8448 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8452 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8453 * rtl.h (ENTRY_VALUE_EXP): Define.
8454 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8455 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8456 * print-rtl.c (print_rtx): Likewise.
8457 * gengtype.c (adjust_field_rtx_def): Likewise.
8458 * var-tracking.c (vt_add_function_parameter): Adjust
8459 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8460 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8461 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8462 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8463 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8465 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8466 Call var_location debug hook even on CALL_INSNs.
8467 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8468 * rtl.def (ENTRY_VALUE): New.
8469 * dwarf2out.c: Include cfglayout.h.
8470 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8471 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8472 (struct call_arg_loc_node): New type.
8473 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8474 tail_call_site_count): New variables.
8475 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8476 DW_TAG_GNU_call_site_parameter.
8477 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8478 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8479 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8480 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8481 and DW_AT_GNU_all_source_call_sites.
8482 (mem_loc_descriptor): Handle ENTRY_VALUE.
8483 (add_src_coords_attributes): Don't add enything if
8484 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8485 (dwarf2out_abstract_function): Save and clear call_arg_location,
8486 call_site_count and tail_call_site_count around dwarf2out_decl call.
8487 (gen_call_site_die): New function.
8488 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8489 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8490 (dwarf2out_function_decl): Clear call_arg_locations,
8491 call_arg_loc_last, set call_site_count and tail_call_site_count
8492 to -1 and free block_map.
8493 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8494 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8495 followed by any real instructions.
8496 (dwarf2out_begin_function): Set call_site_count and
8497 tail_call_site_count to 0.
8498 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8499 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8500 attempt to force a DIE for it and worst case remove the attribute.
8501 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8502 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8504 * var-tracking.c: Include tm_p.h.
8505 (vt_stack_adjustments): For calls call note_register_arguments.
8506 (argument_reg_set): New variable.
8507 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8508 ensure the VALUE is resolved.
8509 (call_arguments): New variable.
8510 (prepare_call_arguments): New function.
8511 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8512 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8513 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8514 always use the best expression.
8515 (vt_expand_loc): Add ignore_cur_loc argument.
8516 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8517 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8518 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8520 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8521 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8522 argument. Don't call cselib_preserve_only_values and
8524 (note_register_arguments): New function.
8525 (vt_initialize): Compute argument_reg_set. Call
8526 vt_add_function_parameters before processing basic blocks instead of
8527 afterwards. For calls call prepare_call_arguments before calling
8528 cselib_process_insn.
8529 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8530 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8531 (var-tracking.o): Depend on $(TM_P_H).
8532 * cfglayout.h (insn_scope): New prototype.
8533 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8534 * cfglayout.c (insn_scope): No longer static.
8535 * insn-notes.def (CALL_ARG_LOCATION): New.
8536 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8537 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8538 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8539 nothing for DECL_EXTERNAL BLOCK_VARS.
8541 2011-03-16 Alan Modra <amodra@gmail.com>
8544 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8545 create invalid offset address for vsx splat insn.
8546 * config/rs6000/predicates.md (splat_input_operand): New.
8547 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8549 2011-03-15 Xinliang David Li <davidxl@google.com>
8552 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8553 (normalize_preds): New function.
8554 (is_use_properly_guarded): Normalize def predicates.
8556 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8559 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8560 in the output template.
8562 2011-03-15 Richard Guenther <rguenther@suse.de>
8565 * tree-pretty-print.c (dump_function_declaration): Properly
8566 dump unprototyped and varargs function types.
8568 2011-03-15 Richard Guenther <rguenther@suse.de>
8570 PR tree-optimization/13954
8571 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8574 2011-03-15 Richard Guenther <rguenther@suse.de>
8576 PR tree-optimization/48037
8577 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8578 selects into BIT_FIELD_REFs.
8579 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8582 2011-03-15 Jakub Jelinek <jakub@redhat.com>
8584 PR tree-optimization/48129
8585 * builtins.c (fold_builtin_snprintf): Convert to type of
8586 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8587 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8589 2011-03-15 Richard Guenther <rguenther@suse.de>
8591 PR tree-optimization/41490
8592 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8593 value but with VUSE.
8594 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8596 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8597 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8598 * tree-tailcall.c (find_tail_calls): Ignore returns.
8600 2011-03-15 Richard Guenther <rguenther@suse.de>
8603 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8604 or variable-indexed array accesses when in gimple form.
8606 2011-03-15 Richard Guenther <rguenther@suse.de>
8608 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8610 2011-03-15 Alan Modra <amodra@gmail.com>
8613 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8614 presume symbol_refs without a symbol_ref_decl are suitably
8615 aligned, nor other trees we may see here. Handle anchor symbols.
8616 (legitimate_constant_pool_address_p): Comment. Add mode param.
8617 Check cmodel=medium addresses. Adjust all calls.
8618 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8619 creating cmodel=medium optimized access to locals.
8620 * config/rs6000/constraints.md (R): Pass QImode to
8621 legitimate_constant_pool_address_p.
8622 * config/rs6000/predicates.md (input_operand): Pass mode to
8623 legitimate_constant_pool_address_p.
8624 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8627 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8630 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8631 64-bit constants being loaded into registers other than GPRs such
8632 as loading 0 into a VSX register.
8634 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8636 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8638 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8641 * builtins.c (fold_builtin_snprintf): New function.
8642 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8643 (fold_builtin_4): Likewise.
8646 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8647 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8648 and C - X == X also strip nops from +/-/p+ operand.
8649 When optimizing -X == C, fold C to arg0's type.
8652 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8653 emit it as add_AT_int instead of add_AT_unsigned.
8655 2011-03-14 Tom Tromey <tromey@redhat.com>
8657 * unwind-dw2.c: Include sys/sdt.h if it exists.
8658 (_Unwind_DebugHook): Use STAP_PROBE2.
8659 * config.in, configure: Rebuild.
8660 * configure.ac: Check for sys/sdt.h.
8662 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
8664 * config/i386/i386.md (ROUND_FLOOR): New constant.
8665 (ROUND_CEIL): Ditto.
8666 (ROUND_TRUNC): Ditto.
8667 (ROUND_MXCSR): Ditto.
8668 (ROUND_NO_EXC): Ditto.
8669 (rint<mode>2): Use new defines instead of numerical constants.
8670 (floor<mode>2): Ditto.
8671 (ceil<mode>2): Ditto.
8672 (btrunc<mode>2): Ditto.
8673 * config/i386/i386-builtin-types.def: Define ROUND function type
8675 * config/i386/i386.c (enum ix86_builtins): Add
8676 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8677 (struct builtin_description): Add
8678 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8679 (ix86_expand_sse_round): New static function.
8680 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8682 (ix86_builtin_vectorized_function): Handle
8683 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8685 2011-03-14 Tom Tromey <tromey@redhat.com>
8687 * c-parser.c (c_parser_asm_string_literal): Clear
8688 warn_overlength_strings.
8690 2011-03-14 Tom Tromey <tromey@redhat.com>
8692 * c-parser.c (disable_extension_diagnostics): Save
8693 warn_overlength_strings.
8694 (restore_extension_diagnostics): Restore warn_overlength_strings.
8696 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8698 * BASE-VER: Change to 4.7.0.
8700 2011-03-14 Richard Guenther <rguenther@suse.de>
8703 * tree.c (build_vector_from_val): Adjust assert to requirements
8706 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8709 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8711 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
8713 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8714 terms of target_flags_explicit. Adjust copyright year.
8716 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8717 * config/rs6000/t-freebsd: New file. Add override for
8720 2011-03-13 Chris Demetriou <cgd@google.com>
8722 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8723 (-fno-diagnostics-show-option): this, to reflect current default.
8724 (-Werror=): Update text about -fno-diagnostics-show-option.
8726 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8729 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8730 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8731 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8732 mode is not V2DImode or V2DFmode.
8733 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8734 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8735 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8737 (movdi_internal64): Likewise.
8739 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8741 PR tree-optimization/47127
8742 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8744 (set_cloog_options): Same.
8745 (scop_to_clast): Same.
8746 (print_clast_stmt): Do not call cloog_state_malloc and
8748 (print_generated_program): Same.
8750 * graphite-clast-to-gimple.h (cloog_state): Declared.
8751 (scop_to_clast): Adjust declaration.
8752 * graphite.c (cloog_state): Defined here.
8753 (graphite_initialize): Call cloog_state_malloc.
8754 (graphite_finalize): Call cloog_state_free.
8756 2011-03-11 Jason Merrill <jason@redhat.com>
8758 * attribs.c (lookup_attribute_spec): Take const_tree.
8761 2011-03-11 Joseph Myers <joseph@codesourcery.com>
8763 * config/sparc/sparc.c (sparc_option_override): Use
8764 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8766 2011-03-11 Richard Guenther <rguenther@suse.de>
8768 PR tree-optimization/48067
8769 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8770 multiplication result will be only used once on the target
8773 2011-03-11 Richard Guenther <rguenther@suse.de>
8775 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8777 2011-03-11 Richard Guenther <rguenther@suse.de>
8780 * tree.c (find_decls_types_r): Do not walk types only reachable
8781 from IDENTIFIER_NODEs.
8783 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8786 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8787 all vnode->force_output nodes as needed.
8789 2011-03-11 Jason Merrill <jason@redhat.com>
8792 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8793 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8795 2011-03-11 Martin Jambor <mjambor@suse.cz>
8797 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8800 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8802 PR tree-optimization/48063
8803 * ipa-inline.c (cgraph_decide_inlining): Don't try to
8804 inline functions called once if !tree_can_inline_p (node->callers).
8806 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
8808 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8810 * config/score/score3.c: Delete.
8811 * config/score/score3.h: Delete.
8812 * config/score/mul-div.S: Delete.
8813 * config/score/sfp-machine.h: Add new file.
8814 * config/score/constraints.md: Add new file.
8815 * config/score/t-score-softfp: Add new file.
8816 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
8817 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8818 (score7_extra_constraint): Delete.
8819 (score7_option_override): Remove unused code.
8820 * config/score/score.c: Remove score3 and score5 define and code.
8821 * config/score/score.h: Remove score3 and score5 define and code.
8822 * config/score/score.md: Remove score3 template and unusual insn.
8823 * config/score/score.opt: Remove score3 and score5 options.
8825 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8827 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8828 when _HPUX_SOURCE is defined.
8829 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
8831 2011-03-10 Jason Merrill <jason@redhat.com>
8834 * stor-layout.c (layout_type): Don't set structural equality
8835 on arrays of incomplete type.
8836 * tree.c (type_hash_eq): Handle comparing them properly.
8838 2011-03-10 Jakub Jelinek <jakub@redhat.com>
8841 * config/s390/s390.c (s390_delegitimize_address): Make sure the
8842 result mode matches original rtl mode.
8844 2011-03-10 Nick Clifton <nickc@redhat.com>
8846 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
8847 (andsi3, andsi3_flags): Fix timings for three operand alternative.
8849 2011-03-09 Jakub Jelinek <jakub@redhat.com>
8851 PR rtl-optimization/47866
8852 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
8853 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
8854 if target wasn't scalar.
8855 * function.c (assign_stack_temp_for_type): Assert that neither
8856 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
8857 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
8859 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
8861 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8863 * config/s390/s390-protos.h (s390_label_align): New prototype.
8864 * config/s390/s390.c (s390_label_align): New function.
8865 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
8867 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8870 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
8871 V2DI/V2DF constants. Only all 0's or all 1's are easy.
8872 (output_vec_const_move): Ditto.
8874 2011-03-08 Anatoly Sokolov <aesok@post.ru>
8876 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
8877 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
8878 * config/mips/mips.c (mips_preferred_reload_class): Make static.
8879 Change 'rclass' argument and result type to reg_class_t.
8880 (TARGET_PREFERRED_RELOAD_CLASS): Define.
8882 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
8884 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8885 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
8886 (TARGET_MEMORY_MOVE_COST): Define.
8887 (avr_register_move_cost, avr_memory_move_cost): New Functions.
8889 2011-03-08 Jakub Jelinek <jakub@redhat.com>
8892 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
8895 PR tree-optimization/48022
8896 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
8899 2011-03-07 Jakub Jelinek <jakub@redhat.com>
8902 * var-tracking.c (find_use_val): Return NULL for
8903 cui->sets && cui->store_p BLKmode MEMs.
8905 2011-03-07 Anatoly Sokolov <aesok@post.ru>
8907 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
8909 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
8910 xstormy16_print_operand_address): Remove.
8911 * config/stormy16/stormy16.c (xstormy16_print_operand,
8912 xstormy16_print_operand_address): Make static.
8913 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8915 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
8918 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8919 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
8922 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
8925 * cfgloopmanip.c (fix_bb_placements): Return immediately
8926 if FROM is BASE_LOOP's header.
8928 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
8930 * gimplify.c (gimplify_function_tree): Fix building calls
8931 to __builtin_return_address.
8933 2011-03-07 Alan Modra <amodra@gmail.com>
8935 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
8936 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
8937 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
8938 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
8940 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
8941 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
8942 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
8943 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
8944 * config/rs6000/rs6000.c
8945 (rs6000_elf_end_indicate_exec_stack): Rename to..
8946 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
8947 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
8948 (rs6000_file_start): ..here.
8949 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
8950 file scope variables.
8951 (call_ABI_of_interest): New function.
8952 (init_cumulative_args): Set above vars when function return value
8953 is a float, vector, or small struct.
8954 (rs6000_function_arg_advance_1): Likewise for function args.
8955 (rs6000_va_start): Set rs6000_passes_float if variable arg function
8956 references float args.
8958 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
8960 * doc/cfg.texi: Remove "See" before @ref.
8961 * doc/invoke.texi: Likewise.
8963 2011-03-05 Jason Merrill <jason@redhat.com>
8965 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
8967 2011-03-05 Anthony Green <green@moxielogic.com>
8969 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
8971 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
8973 PR rtl-optimization/47899
8974 * cfgloopmanip.c (fix_bb_placements): Fix first argument
8975 to flow_loop_nested_p when moving the loop upward.
8977 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
8980 * arm.md (movhi_insn_arch4): Accept any immediate constant.
8982 2011-03-05 Jakub Jelinek <jakub@redhat.com>
8984 PR tree-optimization/47967
8985 * ipa-cp.c (build_const_val): Return NULL instead of creating
8986 VIEW_CONVERT_EXPR for mismatching sizes.
8987 (ipcp_create_replace_map): Return NULL if build_const_val failed.
8988 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
8989 give up on versioning.
8991 2011-03-05 Alan Modra <amodra@gmail.com>
8994 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8995 full cmodel medium/large lo_sum + high addresses.
8997 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8999 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9000 pool references in UNSPEC_LTREL_OFFSET.
9002 2011-03-04 Jan Hubicka <jh@suse.cz>
9005 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9006 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9007 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9009 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9010 cgraph_add_thunk): Add node pointers.
9011 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9012 associated to right node.
9013 (input_node): Update use of cgraph_same_body_alias
9014 and cgraph_add_thunk.
9016 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9018 * config/i386/i386.opt (mprefer-avx128): New flag.
9019 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9020 modes when the flag -mprefer-avx128 is on.
9022 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9024 * dwarf2out.c (compare_loc_operands): Fix address handling.
9026 2011-03-04 Alan Modra <amodra@gmail.com>
9028 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9030 2011-03-04 Richard Guenther <rguenther@suse.de>
9033 * expmed.c (extract_bit_field_1): Prefer vector modes that
9034 vec_extract patterns can handle.
9036 2011-03-04 Richard Guenther <rguenther@suse.de>
9039 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9041 2011-03-04 Richard Henderson <rth@redhat.com>
9043 * explow.c (emit_stack_save): Remove 'after' parameter.
9044 (emit_stack_restore): Likewise.
9045 * expr.h: Update to match.
9046 * builtins.c, calls.c, stmt.c: Likewise.
9047 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9048 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9049 * function.c (expand_function_end): Insert the emit_stack_save
9050 sequence before parm_birth_insn instead of after.
9052 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9054 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9055 (ssse3_pmaddubsw128): Ditto.
9056 (ssse3_pmaddubsw): Ditto.
9058 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9060 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9062 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9065 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9066 on TYPE_SIZE_UNIT if it is a DECL.
9069 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9070 first operand is not is_gimple_mem_ref_addr, try to fold it.
9071 If the operand still isn't is_gimple_mem_ref_addr, clear
9074 2011-03-03 Richard Guenther <rguenther@suse.de>
9077 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9079 (refs_may_alias_p_1): For release branches return true if
9080 we are confused by our input.
9082 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9084 * config/s390/s390.c (s390_function_value): Rename to ...
9085 (s390_function_and_libcall_value): ... this.
9086 (s390_function_value): New function.
9087 (s390_libcall_value): New function.
9088 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9089 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9090 target macro definitions.
9091 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9093 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9095 * config/i386/freebsd64.h (CC1_SPEC): Define.
9096 * config/i386/linux64.h (CC1_SPEC): Define.
9097 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9099 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9101 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9103 * config/stormy16/stormy16.c: Include reload.h.
9104 (xstormy16_memory_move_cost): New function.
9105 (TARGET_MEMORY_MOVE_COST): Define.
9107 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9109 PR rtl-optimization/47925
9110 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9111 with side effects. Remove the more-specific check for volatile asms.
9113 2011-03-02 Alan Modra <amodra@gmail.com>
9116 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9117 toc relative addresses for valid offsets.
9119 2011-03-01 Richard Guenther <rguenther@suse.de>
9121 PR tree-optimization/47890
9122 * tree-vect-loop.c (get_initial_def_for_induction): Set
9123 related stmt properly.
9125 2011-03-01 Richard Guenther <rguenther@suse.de>
9128 * lto-streamer.c (lto_record_common_node): Also register
9131 2011-03-01 Richard Guenther <rguenther@suse.de>
9134 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9135 Do not stream DECL_ABSTRACT_ORIGIN.
9136 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9137 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9138 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9139 Do not stream DECL_ABSTRACT_ORIGIN.
9140 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9141 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9143 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9145 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9146 FUNCTION_VALUE_REGNO_P): Remove.
9147 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9148 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9149 Add 'outgoing' argument.
9150 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9152 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9153 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9155 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9158 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9159 (lookup_filename): Likewise.
9160 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9162 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9163 Jakub Jelinek <jakub@redhat.com>
9166 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9167 (assign_stack_local_1): Change last argument type to int.
9168 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9169 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9170 don't record padding space into frame_space_list nor use those areas.
9171 (assign_stack_local): Adjust caller.
9172 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9173 of assign_stack_local, pass 0 as last argument.
9174 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9177 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9180 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9181 Use target address_mode and pointer_mode hooks instead of hardcoded
9182 Pmode and ptr_mode. Handle some simple cases of extending if
9183 POINTERS_EXTEND_UNSIGNED < 0.
9184 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9185 Call convert_debug_memory_address.
9186 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9187 convert_debug_memory_address.
9190 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9191 * configure: Regenerated.
9192 * config.in: Regenerated.
9193 * varasm.c (default_function_section): Return NULL
9194 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9196 2011-02-28 Martin Jambor <mjambor@suse.cz>
9198 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9199 the description to match the printed values.
9201 2011-02-28 Richard Guenther <rguenther@suse.de>
9203 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9204 of the copied scope tree.
9206 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9208 * doc/extend.texi (Function Attributes): Avoid deeply (and
9209 wrongly) nested tables.
9211 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9214 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9215 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9216 r isn't op0 nor op1.
9218 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9220 * config/avr/avr.md: Remove magic comment for emacs.
9222 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9225 * config/avr/avr.c (avr_option_override): Use error on bad options.
9226 (avr_help): New function.
9227 (TARGET_HELP): Define.
9229 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9232 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9233 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9235 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9237 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9238 (ARM Options): Ditto.
9239 (i386 and x86-64 Options): Ditto.
9240 (RX Options): Ditto.
9241 (SPARC Options): Ditto.
9243 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9245 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9246 FreeBSD 6 and later. Generally use cpu generic.
9248 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9250 * doc/cpp.texi: Update copyright years.
9252 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9255 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9257 2011-02-25 Jon Beniston <jon@beniston.com>
9260 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9261 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9262 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9263 (lm32_block_move_inline): Add type cast to remove warning.
9264 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9265 (gen_int_relational): Move declarations to start of function.
9267 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9269 PR tree-optimization/45470
9270 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9271 can throw internally only.
9272 * tree-vect-stmts.c (vectorizable_call): Likewise.
9274 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9276 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9277 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9278 * config/stormy16/stormy16-protos.h
9279 (xstormy16_preferred_reload_class): Remove.
9280 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9281 static. Change 'rclass' argument and return type to reg_class_t.
9282 (TARGET_PREFERRED_RELOAD_CLASS,
9283 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9285 2011-02-24 Richard Guenther <rguenther@suse.de>
9287 * lto-streamer-in.c (input_bb): Do not find referenced vars
9288 in debug statements.
9290 2011-02-23 Jason Merrill <jason@redhat.com>
9292 * common.opt (fabi-version): Document v5 and v6.
9294 2011-02-23 Richard Guenther <rguenther@suse.de>
9296 PR tree-optimization/47849
9297 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9299 2011-02-23 Jie Zhang <jie@codesourcery.com>
9301 * opts-common.c (decode_cmdline_option): Print empty string
9302 argument as "" in decoded->orig_option_with_args_text.
9303 * gcc.c (execute): Print empty string argument as ""
9304 in the verbose output.
9305 (do_spec_1): Keep empty string argument.
9307 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9309 * config.gcc: Declare score-* and crx-* obsolete.
9311 2011-02-23 Jie Zhang <jie@codesourcery.com>
9313 PR rtl-optimization/47763
9314 * web.c (web_main): Ignore naked clobber when replacing register.
9316 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9318 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9321 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9324 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9326 2011-02-22 Mike Stump <mikestump@comcast.net>
9328 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9330 * configure: Regenerate.
9332 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9334 PR rtl-optimization/46002
9335 * ira-color.c (update_copy_costs): Change class intersection
9336 test to reg_class_contents[] test of 'hard_regno'.
9338 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9340 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9342 * config/hpux11.opt (mt): Likewise.
9343 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9344 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9345 * config/vax/elf.opt (mno-asm-pic): Likewise.
9346 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9348 2011-02-21 Mike Stump <mikestump@comcast.net>
9351 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9352 tree so we can get save the type.
9353 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9354 for CFString instead of trying to use past the end of the builtins.
9355 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9356 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9357 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9358 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9359 Rename to darwin_builtin_cfstring.
9360 (darwin_init_cfstring_builtins): Return the built type.
9362 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9365 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9366 (_mm256_insert_epi64): Use _mm_insert_epi64.
9368 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9370 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9371 * config/stormy16/stormy16-protos.h
9372 (xstormy16_mode_dependent_address_p): Remove.
9373 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9374 Make static. Change return type to bool. Change argument type to
9375 const_rtx. Remove dead code.
9376 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9378 2011-02-21 Richard Guenther <rguenther@suse.de>
9381 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9382 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9383 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9385 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9386 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9388 2011-02-20 Richard Guenther <rguenther@suse.de>
9391 * tree.c (free_lang_data_in_decl): Clean builtins from
9392 the TU decl BLOCK_VARS.
9394 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9398 * haifa-sched.c (fix_tick_ready): Skip tick computation
9401 2011-02-19 Richard Guenther <rguenther@suse.de>
9404 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9405 Remove lazy BLOCK_VARS streaming.
9406 (lto_input_ts_block_tree_pointers): Likewise.
9407 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9409 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9411 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9413 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9415 * config/i386/biarch32.h, config/i386/mach.h,
9416 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9418 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9421 * config/i386/i386.md (peephole2 for shift and plus): Use
9422 operands[1] original mode in the first insn.
9424 2011-02-18 Mike Stump <mikestump@comcast.net>
9426 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9428 2011-02-18 Jan Hubicka <jh@suse.cz>
9431 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9432 to zero when the function is not inlinable at all.
9434 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9436 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9437 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9438 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9439 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9440 * config/pa/t-pa64: Likewise.
9441 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9443 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9446 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9448 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9451 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9453 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9455 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9456 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9457 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9458 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9459 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9460 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9461 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9462 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9463 m32r_legitimate_address_p): New functions.
9464 * config/m32r/constraints.md (constraint "S"): Don't use
9465 STORE_PREINC_PREDEC_P.
9466 (constraint "U"): Don't use LOAD_POSTINC_P.
9468 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9470 PR rtl-optimization/46178
9471 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9472 compute ira_hard_regno_cover_class[].
9474 2011-02-18 Richard Guenther <rguenther@suse.de>
9477 * lto-streamer.h (lto_global_var_decls): Declare.
9478 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9479 statics for global var processing.
9481 2011-02-18 Richard Guenther <rguenther@suse.de>
9483 PR tree-optimization/47737
9484 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9485 edge dominance check.
9487 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9490 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9491 avoid invalid rtx sharing.
9493 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9495 * doc/cpp.texi (Obsolete Features): Add background on the
9496 origin of assertions.
9498 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9500 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9502 * config/darwin.c (output_objc_section_asm_op): Added support for
9504 (is_objc_metadata): New.
9505 (darwin_objc2_section): New.
9506 (darwin_objc1_section): New.
9507 (machopic_select_section): Added support for ABI v1 and v2.
9508 (darwin_emit_objc_zeroed): New.
9509 (darwin_output_aligned_bss): Detect objc metadata and treat it
9511 (darwin_asm_output_aligned_decl_common): Same.
9512 (darwin_asm_output_aligned_decl_local): Same.
9513 * config/darwin-sections.def: Updated for ABI v1 and v2.
9514 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9515 compiling Objective-C code for the NeXT runtime, default to using
9516 ABI version 0 for 32-bit, and version 2 for 64-bit.
9518 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9520 * common.opt (optimize_fast): New Variable.
9521 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9522 instead of local variable ofast.
9524 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9526 * doc/invoke.texi (fobjc-abi-version): Documented.
9527 (fobjc-nilcheck): Documented.
9528 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9531 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9534 * common.opt (export-dynamic): New Driver option.
9535 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9537 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9539 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9541 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9542 Jan Hubicka <jh@suse.cz>
9546 * cfgexpand.c (account_used_vars_for_block): Remove.
9547 (estimated_stack_frame_size): Use referenced vars.
9548 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9549 that were referenced in the original function. Test src_fn
9550 rather than cfun. Drop redundant get_var_ann.
9551 (setup_one_parameter): Drop redundant get_var_ann.
9552 (declare_return_variable): Likewise.
9553 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9554 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9555 * ipa-inline.c (compute_inline_parameters): Do not compute
9556 disregard_inline_limits here.
9557 (compute_inlinable_for_current, pass_inlinable): New.
9558 (pass_inline_parameters): Require PROP_referenced_vars.
9559 * cgraphunit.c (cgraph_process_new_functions): Don't run
9560 compute_inline_parameters explicitly unless function is in SSA form.
9561 (cgraph_analyze_function): Set .disregard_inline_limits.
9562 * tree-sra.c (convert_callers): Compute inliner parameters
9563 only for functions already in SSA form.
9565 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9567 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9568 -mlittle-endian-data.
9570 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9572 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9573 -mno-fpu, not -fpu and -no-fpu.
9574 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9575 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9577 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
9580 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9581 input reload with PLUS RTX.
9583 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9585 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9586 of InverseVar(MDMX).
9588 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9590 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9593 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9595 * config/mn10300/mn10300.opt (mno-crt0): New.
9597 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9599 * config/m68k/uclinux.opt (static-libc): New Driver option.
9601 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9603 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9605 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9607 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9608 %{muser-extend-enabled}.
9610 2011-02-16 Richard Guenther <rguenther@suse.de>
9612 PR tree-optimization/47738
9613 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9614 the TODO from tree_predictive_commoning.
9616 2011-02-15 Jeff Law <law@redhat.com>
9619 2011-01-25 Jeff Law <law@redhat.com>
9621 PR rtl-optimization/37273
9622 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9623 handle them like argument loads from stack slots. Do not double
9624 count memory for memory constants and argument loads from stack slots.
9626 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9629 * combine.c (cant_combine_insn_p): Revert the last change.
9631 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9634 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9635 mode for vector constants. Remove code that checks for TImode.
9637 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9641 * cgraph.h (compute_inline_parameters): Return void.
9642 * ipa-inline.c (compute_inline_parameters): Adjust.
9644 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9648 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9650 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9651 * ipa-inline.c (compute_inline_parameters): Adjust.
9653 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9657 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9658 Adjust all users. Pass FN to...
9659 * tree-flow-inline.h (first_referenced_var): ... this. Add
9661 * ipa-struct-reorg.c: Adjust.
9662 * tree-dfa.c: Adjust.
9663 * tree-into-ssa.c: Adjust.
9664 * tree-sra.c: Adjust.
9665 * tree-ssa-alias.c: Adjust.
9666 * tree-ssa-live.c: Adjust.
9667 * tree-ssa.c: Adjust.
9668 * tree-ssanames.c: Adjust.
9669 * tree-tailcall.c: Adjust.
9671 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9675 * tree-flow.h (referenced_var_lookup): Add fn parameter.
9677 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9678 * tree-flow-inline.h: Adjust.
9679 * gimple-pretty-print.c: Adjust.
9680 * tree-into-ssa.c: Adjust.
9681 * tree-ssa.c: Adjust.
9682 * cfgexpand.c: Adjust.
9684 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9686 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9687 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9688 (EXTRA_CONSTRAINT): Delete.
9689 * config/iq2000/constraints.md: New file.
9690 * config/iq2000/iq2000.md: Include it.
9691 (define_insn ""): Delete.
9692 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9693 unsupported constraint letters from patterns.
9694 (call_value, call_value_internal1): Likewise.
9695 (call_value_multiple_internal1): Likewise.
9697 2011-02-15 Nick Clifton <nickc@redhat.com>
9699 * config/mn10300/mn10300.c: Include tm-constrs.h.
9700 (struct liw_data): New data structure describing an LIW candidate
9702 (extract_bundle): Use struct liw_data. Allow small integer
9703 operands for some instructions.
9704 (check_liw_constraints): Use struct liw_data. Remove swapped
9705 parameter. Add comments describing the checks. Fix bug when
9706 assigning the source of liw1 to the source of liw2.
9707 (liw_candidate): Delete. Code moved into extract_bundle.
9708 (mn10300_bundle_liw): Use struct liw_data. Check constraints
9710 * config/mn10300/predicates.md (liw_operand): New predicate.
9711 Allows registers and small integer constants.
9712 * config/mn10300/constraints.md (O): New constraint. Accetps
9713 integers in the range -8 to +7 inclusive.
9714 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9715 for moving a small integer into a register. Give this alternative
9717 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9718 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9719 using the J,K,L and M constraints,
9720 (liw): Remove SI mode on second operands to allow for HI and QI
9722 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
9725 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9728 * combine.c (cant_combine_insn_p): Check zero/sign extended
9731 2011-02-15 Richard Guenther <rguenther@suse.de>
9733 PR tree-optimization/47743
9734 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9735 for a non-type-compatible VN lookup bail out.
9737 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9739 * config/fr30/constraints.md: New file.
9740 * config/fr30/fr30.md: Include it.
9741 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9742 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9743 (EXTRA_CONSTRAINT): Delete.
9745 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9747 * config/frv/constraints.md: New file.
9748 * config/frv/predicates.md: Include it.
9749 * config/frv/frv.c (reg_class_from_letter): Delete.
9750 (frv_option_override): Don't initialize it.
9751 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9752 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9753 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9754 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9755 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9756 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9757 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9758 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9759 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9760 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9761 (REG_CLASS_FROM_CONSTRAINT): Delete.
9763 2011-02-15 Jakub Jelinek <jakub@redhat.com>
9766 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9767 if frame size is 0 in a leaf function.
9769 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9772 * config/alpha/host-osf.c: New file.
9773 * config/alpha/x-osf: New file.
9774 * config.host (alpha*-dec-osf*): Use it.
9776 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9778 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9779 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9780 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9781 (rx_mode_dependent_address_p): ...this. Make static. Change argument
9783 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9785 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9787 * config/stormy16/constraints.md: New file.
9788 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9789 Use satisfies_constraint_Q and satisfies_constraint_R.
9790 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9792 (xstormy16_legitiamte_address_p): Declare.
9793 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9794 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9795 (EXTRA_CONSTRAINT): Delete.
9796 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9798 (xstormy16_extra_constraint_p): Delete.
9800 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
9802 PR tree-optimization/46494
9803 * loop-unroll.c (split_edge_and_insert): Adjust comment.
9804 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9805 (pass_rtl_loop_done): Add TODO_verify_flow.
9806 * fwprop.c (pass_rtl_fwprop): Likewise.
9807 * modulo-sched.c (pass_sms): Likewise.
9808 * tree-ssa-dom.c (pass_dominator): Likewise.
9809 * tree-ssa-loop-ch.c (pass_ch): Likewise.
9810 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9811 (pass_tree_loop_done): Likewise.
9812 * tree-ssa-pre.c (execute_pre): Likewise.
9813 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9814 * tree-ssa-sink.c (pass_sink_code): Likewise.
9815 * tree-vrp.c (pass_vrp): Likewise.
9817 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9819 * config/v850/constraints.md: New file.
9820 * config/v850/v850.md: Include it.
9821 * config/v850/predicates.md (reg_or_0_operand): Use
9822 satisfies_constraint_G.
9823 (special_symbolref_operand): Use satisfies_constraint_K.
9824 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
9825 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9826 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
9827 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9828 (EXTRA_CONSTRAINT): Delete.
9829 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
9830 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
9831 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
9833 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9836 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
9839 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9841 * config/mcore/constraints.md: New file.
9842 * config/mcore/mcore.md: Include it.
9843 * config/mcore/mcore.c (reg_class_from_letter): Delete.
9844 * config/mcore/mcore.h (reg_class_from_letter): Delete.
9845 (REG_CLASS_FROM_LETTER): Delete.
9846 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
9847 insn_const_int_ok_for_constraint.
9848 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
9849 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
9850 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9851 (EXTRA_CONSTRAINT): Delete.
9853 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9856 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
9857 (IS_SIGHANDLER): Define.
9858 (sparc64_is_sighandler): New function, split off from
9859 sparc64_fallback_frame_state.
9860 (sparc_is_sighandler): New function, split off from
9861 sparc_fallback_frame_state.
9862 (sparc64_fallback_frame_state): Merge with ...
9863 (sparc_fallback_frame_state): ... this into ...
9864 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
9865 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
9866 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
9867 stack instead of hardcoded offsets.
9869 2011-02-14 Andriy Gapon <avg@freebsd.org>
9872 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
9874 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9876 * configure: Regenerate.
9878 2011-02-12 Joseph Myers <joseph@codesourcery.com>
9881 * gcc.c (asm_options): Correct spec matching --target-help.
9883 2011-02-12 Martin Jambor <mjambor@suse.cz>
9885 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
9886 to gimple call error.
9888 2011-02-12 Mike Stump <mikestump@comcast.net>
9890 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
9891 comments in backslash regions.
9893 2011-02-12 Mike Stump <mikestump@comcast.net>
9894 Jakub Jelinek <jakub@redhat.com>
9895 Iain Sandoe <iains@gcc.gnu.org>
9898 * dwarf2out.c (output_cfa_loc): When required, apply the
9899 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
9900 (output_loc_sequence): Likewise.
9901 (output_loc_operands_raw): Likewise.
9902 (output_loc_sequence_raw): Likewise.
9903 (output_cfa_loc): Likewise.
9904 (output_loc_list): Suppress register number adjustment when
9905 calling output_loc_sequence()
9906 (output_die): Likewise.
9908 2011-02-12 Anatoly Sokolov <aesok@post.ru>
9910 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9912 * config/xtensa/xtensa.c (xtensa_register_move_cost,
9913 xtensa_memory_move_cost): New functions.
9914 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
9916 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
9919 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
9920 in the current directory.
9921 * configure: Rebuilt.
9923 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9925 * config/darwin.c (darwin_override_options): Add a hunk missed
9926 from the commit of r168571. Trim comment line lengths and
9927 correct indents of the preceding block.
9929 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9931 * gcc.c (driver_handle_option): Concatenate the argument to -F with
9934 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9936 * common.opt (nostartfiles): New Driver option.
9938 2011-02-11 Xinliang David Li <davidxl@google.com>
9940 PR tree-optimization/47707
9941 * tree-chrec.c (convert_affine_scev): Keep type precision.
9943 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
9945 PR tree-optimization/47420
9946 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
9948 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
9950 PR rtl-optimization/47614
9951 * rtl.h (check_for_inc_dec): Declare.
9952 * dse.c (check_for_inc_dec): Externalize...
9953 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
9954 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
9956 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9959 * gcc.c (main): Do not compile inputs if there were errors in
9961 * opts-common.c (read_cmdline_option): Check for wrong language
9962 after other error checks.
9964 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
9966 * cgraph.c: Fix comment typos.
9967 * cgraph.h: Likewise.
9968 * cgraphunit.c: Likewise.
9969 * ipa-cp.c: Likewise.
9970 * ipa-inline.c: Likewise.
9971 * ipa-prop.c: Likewise.
9972 * ipa-pure-const.c: Likewise.
9973 * ipa-ref.c: Likewise.
9974 * ipa-reference.c: Likewise.
9976 2011-02-11 Jakub Jelinek <jakub@redhat.com>
9979 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
9981 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9984 * doc/sourcebuild.texi (Require Support): Document
9985 dg-require-ascii-locale.
9987 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
9989 * doc/lto.texi (Write summary): Fix missing parentheses.
9991 2011-02-10 DJ Delorie <dj@redhat.com>
9993 * config/m32c/m32c.c (m32c_option_override): Disable
9994 -fcombine-stack-adjustments until flag value tracking and compare
9995 optimization can be rewritten.
9997 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
9999 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10001 (PROCESSOR_DEFAULT64): Likewise.
10003 2011-02-10 Richard Henderson <rth@redhat.com>
10005 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10006 change from 2011-02-03.
10007 * config/rx/rx.c (flags_from_code): Likewise.
10008 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10009 is valid, n/pz otherwise.
10010 (rx_select_cc_mode): Return CCmode if Y is not zero.
10012 2011-02-10 Richard Guenther <rguenther@suse.de>
10014 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10016 2011-02-10 Richard Guenther <rguenther@suse.de>
10018 PR tree-optimization/47677
10019 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10021 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10024 * combine.c (make_compound_operation): Only change shifts into
10025 multiplication for SCALAR_INT_MODE_P.
10027 2011-02-10 Jie Zhang <jie@codesourcery.com>
10031 2011-02-05 Jie Zhang <jie@codesourcery.com>
10033 * web.c (entry_register): Don't clobber the number of the
10034 first uninitialized reference in used[].
10036 2011-02-09 Richard Guenther <rguenther@suse.de>
10038 PR tree-optimization/47664
10039 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10042 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10046 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10048 (PROCESSOR_DEFAULT64): Same.
10049 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10051 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10053 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10055 2011-02-09 Martin Jambor <mjambor@suse.cz>
10057 PR middle-end/45505
10058 * tree-sra.c (struct access): New flags grp_scalar_read and
10059 grp_scalar_write. Changed description of assignment read and write
10061 (dump_access): Dump new flags, reorder all of them.
10062 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10063 to detect multiple scalar reads.
10064 (analyze_access_subtree): Use the new scalar read write flags instead
10065 of the old flags. Adjusted comments.
10067 2011-02-08 DJ Delorie <dj@redhat.com>
10070 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10073 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10075 * config/m68k/uclinux.opt: New.
10076 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10078 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10080 * config/cris/elf.opt (sim): New Driver option.
10082 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10084 * config/xtensa/elf.opt: New.
10085 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10087 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10089 * config/vax/elf.opt: New.
10090 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10092 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10094 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10096 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10098 * config/gnu-user.opt: New.
10099 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10100 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10101 *-*-uclinux*): Use gnu-user.opt.
10103 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10105 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10106 * config/i386/gnu.h (CPP_SPEC): Likewise.
10108 2011-02-08 Ian Lance Taylor <iant@google.com>
10110 * common.opt (fcx-limited-range): Add SetByCombined flag.
10111 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10112 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10113 (fassociative-math, freciprocal-math): Likewise.
10114 (funsafe-math-optimizations): Likewise.
10115 * opth-gen.awk: Handle SetByCombined.
10116 * optc-gen.awk: Likewise.
10117 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10118 (set_unsafe_math_optimizations_flags): Likewise.
10119 * doc/options.texi (Option properties): Document SetByCombined.
10121 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10123 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10124 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10125 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10126 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10127 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10129 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10131 PR tree-optimization/46834
10132 PR tree-optimization/46994
10133 PR tree-optimization/46995
10134 * graphite-sese-to-poly.c (used_outside_reduction): New.
10135 (detect_commutative_reduction): Call used_outside_reduction.
10136 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10137 translate_scalar_reduction_to_array only when at least one
10138 loop-phi/close-phi tuple has been detected.
10140 2011-02-08 Richard Guenther <rguenther@suse.de>
10142 PR middle-end/47639
10143 * tree-vect-generic.c (expand_vector_operations_1): Update
10145 (expand_vector_operations): ... not here. Cleanup EH info
10146 and the CFG if required.
10148 2011-02-08 Richard Guenther <rguenther@suse.de>
10150 PR tree-optimization/47641
10151 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10152 require type compatibility.
10154 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10156 * gimple-low.c (lower_function_body): Don't remove the location of
10157 the return statement here.
10158 (lower_gimple_return): Do it here instead but only if the return
10159 statement is actually used twice.
10161 2011-02-08 Richard Guenther <rguenther@suse.de>
10163 PR tree-optimization/47632
10164 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10165 unused up_to_stmt parameter, return whether cfg-cleanup is
10166 necessary, remove EH info properly.
10167 (forward_propagate_into_gimple_cond): Adjust caller.
10168 (forward_propagate_into_cond): Likewise.
10169 (forward_propagate_comparison): Likewise.
10170 (tree_ssa_forward_propagate_single_use_vars): Make
10171 forward_propagate_comparison case similar to the two others.
10173 2011-02-08 Nick Clifton <nickc@redhat.com>
10175 * config/mn10300/mn10300.opt (mliw): New command line option.
10176 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10177 (liw_bundling): New automaton.
10178 (liw): New attribute.
10179 (liw_op): New attribute.
10180 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10181 (movsi_internal): Add LIW attributes.
10182 (andsi3): Likewise.
10183 (iorsi3): Likewise.
10184 (xorsi3): Likewise.
10185 (addsi3): Separate register and immediate alternatives.
10186 Add LIW attributes.
10187 (subsi3): Likewise.
10189 (aslsi3): Likewise.
10190 (lshrsi3): Likewise.
10191 (ashrsi3): Likewise.
10192 (liw): New pattern.
10193 * config/mn10300/mn10300.c (liw_op_names): New
10194 (mn10300_print_operand): Handle 'W' operand descriptor.
10195 (extract_bundle): New function.
10196 (check_liw_constraints): New function.
10197 (liw_candidate): New function.
10198 (mn10300_bundle_liw): New function.
10199 (mn10300_reorg): New function.
10200 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10201 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10202 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10203 __LIW__ or __NO_LIW__.
10204 * doc/invoke.texi: Describe the -mliw command line option.
10206 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10208 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10209 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10210 pthread_mutex_unlock): Remove.
10211 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10212 * config/pa/t-pa64: Likewise.
10213 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10214 shared libc if not linking against libpthread.
10215 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10217 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10220 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10221 on 10.6 and later to ensure that we always use the unwinder from
10222 the system. Only add -no_compact_unwind when tarteting darwin
10225 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10228 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10229 (vec_interleave_lowv2sf): Ditto.
10230 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10231 (vec_extract_oddv2sf): Ditto.
10233 2011-02-07 Mike Stump <mikestump@comcast.net>
10236 Add __ieee_divdc3 entry point.
10237 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10239 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10240 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10241 * config/darwin.c (darwin_rename_builtins): Add.
10242 * config/darwin-protos.h (darwin_rename_builtins): Add.
10244 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10247 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10250 2011-02-07 Mike Stump <mikestump@comcast.net>
10252 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10254 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10257 * config/avr/libgcc.S (exit): Move .endfunc
10259 2011-02-07 Richard Guenther <rguenther@suse.de>
10261 PR tree-optimization/47615
10262 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10263 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10264 (run_scc_vn): Initialize it.
10265 (visit_reference_op_load): Use it.
10266 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10268 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10270 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10271 DImode trapping arithmetic libfuncs.
10273 2011-02-07 Richard Guenther <rguenther@suse.de>
10275 PR tree-optimization/47621
10276 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10278 (execute_update_addresses_taken): ... here. Make it more
10279 conservative in what we accept.
10281 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10283 * config/sparc/freebsd.h (ASM_SPEC): Define.
10284 * config/sparc/vxworks.h (ASM_SPEC): Define.
10286 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10288 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10290 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10292 * doc/invoke.texi: Remove reference to compiler internals from
10293 user documentation.
10295 * reg-notes.def: Remove REG_VALUE_PROFILE.
10296 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10298 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10300 PR middle-end/47610
10301 * varasm.c (default_section_type_flags): If decl is NULL,
10302 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10304 2011-02-05 Jie Zhang <jie@codesourcery.com>
10307 * web.c (entry_register): Don't clobber the number of the
10308 first uninitialized reference in used[].
10310 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10312 PR tree-optimization/46194
10313 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10314 (build_classic_dist_vector_1): Do not represent classic distance
10315 vectors when the access functions are variating in different loops.
10317 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10319 * config/mips/iris6.opt: New.
10320 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10322 2011-02-04 Richard Henderson <rth@redhat.com>
10323 Steve Ellcey <sje@cup.hp.com>
10326 * config/ia64/predicates.md (mux1_brcst_element): New.
10327 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10328 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10329 (ia64_unpack_sign): New.
10330 (ia64_expand_unpack): Rewrite using new routines.
10331 (ia64_expand_widen_sum): Ditto.
10332 (ia64_expand_dot_prod_v8qi): Ditto.
10333 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10334 routines, add endian check.
10335 (pmpy2_even): Rename from pmpy2_r, add endian check.
10336 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10337 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10338 (vec_widen_smult_hi_v4hi): Ditto.
10339 (vec_widen_umult_lo_v4hi): Ditto.
10340 (vec_widen_umult_hi_v4hi): Ditto.
10341 (mulv2si3): Change endian checks.
10342 (sdot_prodv4hi): Rewrite with new calls.
10343 (udot_prodv4hi): New.
10344 (vec_pack_ssat_v4hi): Add endian check.
10345 (vec_pack_usat_v4hi): Ditto.
10346 (vec_pack_ssat_v2si): Ditto.
10347 (max1_even): Rename from max1_r, add endian check.
10348 (max1_odd): Rename from max1_l, add endian check.
10349 (*mux1_rev): Format change.
10350 (*mux1_mix): Ditto.
10351 (*mux1_shuf): Ditto.
10352 (*mux1_alt): Ditto.
10353 (*mux1_brcst_v8qi): Use new predicate.
10354 (vec_extract_evenv8qi): Remove endian check.
10355 (vec_extract_oddv8qi): Ditto.
10356 (vec_interleave_lowv4hi): Format change.
10357 (vec_interleave_highv4hi): Ditto.
10358 (mix2_even): Rename from mix2_r, add endian check.
10359 (mix2_odd): Rename from mux2_l, add endian check.
10360 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10361 (vec_extract_evenodd_helper): Format change.
10362 (vec_extract_evenv4hi): Remove endian check.
10363 (vec_extract_oddv4hi): Remove endian check.
10364 (vec_interleave_lowv2si): Format change.
10365 (vec_interleave_highv2si): Format change.
10366 (vec_initv2si): Remove endian check.
10367 (vecinit_v2si): Add endian check.
10368 (reduc_splus_v2sf): Add endian check.
10369 (reduc_smax_v2sf): Ditto.
10370 (reduc_smin_v2sf): Ditto.
10371 (vec_initv2sf): Remove endian check.
10372 (fpack): Add endian check.
10373 (fswap): Add endian check.
10374 (vec_interleave_highv2sf): Add endian check.
10375 (vec_interleave_lowv2sf): Add endian check.
10376 (fmix_lr): Add endian check.
10377 (vec_setv2sf): Format change.
10378 (*vec_extractv2sf_0_be): Use shift to extract operand.
10379 (*vec_extractv2sf_1_be): New.
10380 (vec_pack_trunc_v4hi): Add endian check.
10381 (vec_pack_trunc_v2si): Format change.
10383 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10385 PR inline-asm/23200
10386 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10387 do bb, locus and block comparison and disallow loads if it is not set.
10388 (stmt_is_replaceable_p): New function.
10389 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10391 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10392 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10394 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10396 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10398 * config/rs6000/xilinx.opt: New.
10399 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10401 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10403 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10405 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10407 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10408 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10409 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10410 secondary_reload_info, xtensa_secondary_reload): Remove.
10411 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10412 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10413 (xtensa_preferred_reload_class): Make static. Change return and
10414 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10415 Use CONST_DOUBLE_P predicate.
10416 (xtensa_preferred_output_reload_class): New function.
10417 (xtensa_secondary_reload): Make static.
10419 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10421 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10422 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10423 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10425 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10427 PR middle-end/31490
10428 * output.h (SECTION_RELRO): Define.
10429 (SECTION_MACH_DEP): Adjust.
10430 (get_variable_section): New prototype.
10431 * varpool.c (varpool_finalize_named_section_flags): New function.
10432 (varpool_assemble_pending_decls): Call it.
10433 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10434 * cgraphunit.c (cgraph_output_in_order): Call
10435 varpool_finalize_named_section_flags.
10436 * varasm.c (get_section): Allow section flags conflicts between
10437 relro and read-only sections if the section hasn't been declared yet.
10438 Set SECTION_OVERRIDE after diagnosing section type conflict.
10439 (get_variable_section): No longer static.
10440 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10441 readonly sections that need relocations.
10442 (decl_readonly_section_1): New function.
10443 (decl_readonly_section): Use it.
10446 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10447 Steve Ellcey <sje@cup.hp.com>
10449 PR middle-end/31490
10450 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10451 if section attribute used.
10453 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10455 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10456 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10457 (darwin_init_sections): Remove assertion.
10459 2011-02-03 Nick Clifton <nickc@redhat.com>
10461 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10463 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10464 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10465 instead of "n" and "pz".
10466 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10469 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10472 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10473 fma, expand FMA_EXPR as fma{,f,l} call.
10476 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10477 copy them into a unsigned char variable and pass address of it to
10478 lto_output_data_stream.
10481 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10482 around backend_init_target and lang_dependent_init_target calls.
10483 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10484 (verify_cgraph_node): Don't call set_cfun here. Use
10485 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10486 Set error_found for incorrectly represented calls to thunks.
10488 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10491 PR rtl-optimization/43494
10492 * rtl.h (for_each_inc_dec_fn): New type.
10493 (for_each_inc_dec): Declare.
10494 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10495 (for_each_inc_dec_find_inc_dec): New fn.
10496 (for_each_inc_dec_find_mem): New fn.
10497 (for_each_inc_dec): New fn.
10498 * dse.c (struct insn_size): Remove.
10499 (replace_inc_dec, replace_inc_dec_mem): Remove.
10500 (emit_inc_dec_insn_before): New fn.
10501 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10502 (canon_address): Pass mem modes to cselib_lookup.
10503 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10504 (cselib_lookup_from_insn): Likewise.
10505 (cselib_subst_to_values): Likewise.
10506 * cselib.c (find_slot_memmode): New var.
10507 (cselib_find_slot): New fn. Use it instead of
10508 htab_find_slot_with_hash everywhere.
10509 (entry_and_rtx_equal_p): Use find_slot_memmode.
10510 (autoinc_split): New fn.
10511 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10512 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10513 Deal with autoinc. Special-case recursion into MEMs.
10514 (cselib_hash_rtx): Likewise.
10515 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10516 address and MEM modes.
10517 (cselib_subst_to_values): Add memmode, pass it on.
10519 (cselib_lookup): Add memmode argument, pass it on.
10520 (cselib_lookup_from_insn): Add memmode.
10521 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10522 (struct cselib_record_autoinc_data): New.
10523 (cselib_record_autoinc_cb): New fn.
10524 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10525 mode to cselib_lookup. Reset autoinced REGs here instead of...
10526 (cselib_process_insn): ... here.
10527 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10529 (add_uses): Likewise, also to cselib_subst_to_values.
10530 (add_stores): Likewise.
10531 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10532 cselib_subst_to_values.
10533 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10534 * gcse.c (do_local_cprop): Adjusted.
10535 * postreload.c (reload_cse_simplify_set): Adjusted.
10536 (reload_cse_simplify_operands): Adjusted.
10537 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10539 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10541 PR tree-optimization/45122
10542 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10543 unsafe assumptions when there's more than one loop exit.
10545 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10548 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10549 Document using vector double with the load/store builtins, and
10550 that the load/store builtins always use Altivec instructions.
10552 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10553 to use altivec memory instructions, even on VSX.
10554 (vector_altivec_store_<mode>): Ditto.
10556 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10559 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10560 V2DF, V2DI support to load/store overloaded builtins.
10562 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10563 altivec load/store builtins for V2DF/V2DI types.
10565 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10566 set avoid indexed addresses on power6 if -maltivec.
10567 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10568 vector_altivec_load/vector_altivec_store builtins.
10569 (altivec_expand_st_builtin): Ditto.
10570 (altivec_expand_builtin): Add VSX memory builtins.
10571 (rs6000_init_builtins): Add V2DI types to internal types.
10572 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10573 load/store builtins.
10574 (rs6000_address_for_altivec): Insure memory address is appropriate
10577 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10578 vec_vsx_ld and vec_vsx_st.
10579 (vsx_store_<mode>): Ditto.
10581 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10582 variables to hold long long types for VSX vector memory builtins.
10583 (RS6000_BTI_unsigned_long_long): Ditto.
10584 (long_long_integer_type_internal_node): Ditti.
10585 (long_long_unsigned_type_internal_node): Ditti.
10587 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10588 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10589 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10591 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10593 (vec_vsx_st): Ditto.
10595 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10597 * config/pa/pa-hpux10.opt: New.
10598 * config/hpux11.opt (pthread): New Driver option.
10599 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10600 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10602 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10604 * config/ia64/vms.opt: New.
10605 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10607 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10610 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10611 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10612 generator functions.
10613 (vsx_floatuns<VSi><mode>2): Ditto.
10614 (vsx_fix_trunc<mode><VSi>2): Ditto.
10615 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10617 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10619 * config/i386/djgpp.opt (posix): New Driver option.
10621 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10623 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10624 Move to the unsupported targets list.
10626 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10628 PR rtl-optimization/47525
10629 * df-scan.c: Update copyright years.
10630 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10631 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10633 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10635 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10636 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10637 (ASM_OUTPUT_ASCII): Remove.
10638 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10640 2011-02-02 Jeff Law <law@redhat.com>
10642 PR middle-end/47543
10643 * reload.c (find_reloads_address): Handle reg+d address where both
10644 components are invalid by reloading the entire address.
10646 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10647 Richard Guenther <rguenther@suse.de>
10649 PR tree-optimization/40979
10651 * passes.c (init_optimization_passes): After LIM call copy_prop
10652 and DCE to clean up.
10653 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10655 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10657 PR tree-optimization/47576
10658 PR tree-optimization/47555
10659 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10660 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10661 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10662 * tree-scalar-evolution.c (follow_ssa_edge): Use
10663 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10665 2011-02-02 Richard Guenther <rguenther@suse.de>
10667 PR tree-optimization/47566
10668 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10670 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10674 * tree-inline.c (declare_return_variable): Remove unused caller
10679 * tree-flow-inline.h (clear_is_used, is_used_p): New.
10680 * cfgexpand.c (account_used_vars_for_block): Use them.
10681 * tree-nrv.c (tree_nrv): Likewise.
10682 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10683 (dump_scope_block): Likewise.
10684 (remove_unused_locals): Likewise.
10688 * tree-inline.c (declare_return_variable): Add result decl to
10689 local decls only once.
10690 * gimple-low.c (record_vars_into): Mark newly-created variables
10693 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10699 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10701 (no_real_insns_p, schedule_block, set_priorities): Drop special
10702 treatment of boundary debug insns.
10703 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10704 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10705 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10706 (BOUNDARY_DEBUG_INSN_P): Likewise.
10707 (SCHEDULE_DEBUG_INSN_P): Likewise.
10708 * sched-rgn.c (init_ready_list): Drop special treatment of
10709 boundary debug insns.
10710 * final.c (rest_of_clean_state): Clear notes' BB.
10712 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10714 * config/openbsd.opt (assert=): New Driver option.
10716 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10718 * config/i386/nto.opt: New.
10719 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10721 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10723 * config/i386/netware.opt: New.
10724 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10726 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10728 * config/interix.opt (posix): New Driver option.
10730 2011-02-01 DJ Delorie <dj@redhat.com>
10732 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10734 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10737 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10739 PR tree-optimization/47561
10740 * toplev.c (process_options): Print the Graphite flags. Add
10741 flag_loop_flatten to the list of options requiring Graphite.
10743 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10745 * config/i386/cygming.opt (posix): New Driver option.
10747 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10749 * config/arm/vxworks.opt: New.
10750 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10752 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10754 * config/alpha/elf.opt: New.
10755 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10756 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10758 2011-02-01 Richard Guenther <rguenther@suse.de>
10760 PR tree-optimization/47559
10761 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10762 store-motion on references that can throw.
10764 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
10766 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10767 * tree-pass.h (TDF_CSELIB): New macro.
10768 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10769 cselib_lookup): Check for it rather than for TDF_DETAILS.
10771 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
10774 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10775 is HOST_BIT_BUCKET.
10777 * opts.c (finish_options): Don't add x_aux_base_name if it is
10780 2011-02-01 Richard Guenther <rguenther@suse.de>
10782 PR tree-optimization/47555
10784 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
10786 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10788 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
10791 * config/lm32/t-lm32: Add multilib for all CPU options.
10793 2011-02-01 Richard Guenther <rguenther@suse.de>
10795 PR tree-optimization/47541
10796 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10797 sure to have a field at offset zero.
10799 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10801 * config/arc/arc.opt (EB, EL): New Driver options.
10803 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10805 * config/alpha/osf5.opt: New.
10806 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10808 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10810 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10812 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
10814 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10815 -floop-interchange.
10816 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10817 is an alias of -floop-interchange and that it requires the
10818 Graphite infrastructure.
10819 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10820 flag_loop_interchange based on the value of flag_tree_loop_linear.
10822 2011-01-31 Jakub Jelinek <jakub@redhat.com>
10823 Richard Guenther <rguenther@suse.de>
10825 PR tree-optimization/47538
10826 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
10827 type instead of r1type, except for comparisons. For right
10828 shifts and comparisons punt if there are mismatches in
10829 sizetype vs. non-sizetype types.
10831 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10833 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10836 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10838 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
10840 * configure: Regenerate.
10842 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10844 * configure.ac (gcc_cv_ld_static_option): Define.
10845 (gcc_cv_ld_dynamic_option): Define.
10846 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
10848 (HAVE_LD_STATIC_DYNAMIC): Update message.
10849 (LD_STATIC_OPTION): Define.
10850 (LD_DYNAMIC_OPTION): Define.
10851 * configure: Regenerate.
10852 * config.in: Regenerate.
10853 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
10854 HAVE_LD_STATIC_DYNAMIC]: Use them.
10856 2011-01-31 Nick Clifton <nickc@redhat.com>
10858 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
10859 registers inside interrupt handlers if the handler is not a leaf
10862 2011-01-31 Nick Clifton <nickc@redhat.com>
10864 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
10865 reg_renumber returning an INVALID_REGNUM.
10867 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10870 * doc/install.texi: Document host options discarded when cross
10871 configuring target libraries.
10873 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10876 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10879 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10881 (no_real_insns_p, schedule_block, set_priorities): Drop special
10882 treatment of boundary debug insns.
10883 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10884 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10885 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10886 (BOUNDARY_DEBUG_INSN_P): Likewise.
10887 (SCHEDULE_DEBUG_INSN_P): Likewise.
10888 * sched-rgn.c (init_ready_list): Drop special treatment of
10889 boundary debug insns.
10890 * final.c (rest_of_clean-state): Clear notes' BB.
10892 2011-01-31 Alan Modra <amodra@gmail.com>
10894 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
10895 toc relative expressions as we do in print_operand_address.
10897 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
10899 * doc/extend.texi: Follow spelling conventions.
10900 * doc/invoke.texi: Fix a typo.
10902 2011-01-30 Joseph Myers <joseph@codesourcery.com>
10904 * config/hpux11.opt: New.
10905 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
10906 ia64*-*-hpux*): Use hpux11.opt.
10908 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
10910 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
10913 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10915 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
10918 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10920 * doc/install.texi (Binaries): Remove outdated reference for
10921 Motorola 68HC11/68HC12 downloads.
10923 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10925 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
10928 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
10931 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
10934 2011-01-28 Ahmad Sharif <asharif@google.com>
10936 * value-prof.c (check_counter): Corrected error message.
10938 2011-01-29 Jie Zhang <jie@codesourcery.com>
10940 * config/arm/arm.c (arm_legitimize_reload_address): New.
10941 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10942 arm_legitimize_reload_address.
10943 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
10945 2011-01-28 Ian Lance Taylor <iant@google.com>
10947 * godump.c (go_define): Ignore macros whose definitions include
10948 two adjacent operands.
10950 2011-01-28 Jakub Jelinek <jakub@redhat.com>
10953 * varasm.c (force_const_mem): Store copy of x in desc->constant
10954 instead of x itself.
10955 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
10956 itself into REG_EQUAL note.
10958 2011-01-28 Joseph Myers <joseph@codesourcery.com>
10960 * config/freebsd.opt (posix, rdynamic): New Driver options.
10962 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10964 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
10965 -Bstatic/-Bdynamic.
10966 * configure: Regenerate.
10968 2011-01-27 Joseph Myers <joseph@codesourcery.com>
10970 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
10971 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
10973 2011-01-27 Anatoly Sokolov <aesok@post.ru>
10975 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
10976 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
10977 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10978 (s390_preferred_reload_class): Make static. Change return and
10979 'rclass' argument type to reg_class_t.
10981 2011-01-27 Jan Hubicka <jh@suse.cz>
10983 PR middle-end/46949
10984 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
10985 (process_function_and_variable_attributes): Check defined weakrefs.
10987 2011-01-27 Martin Jambor <mjambor@suse.cz>
10989 PR tree-optimization/47228
10990 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
10991 build_ref_for_offset.
10993 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10995 * config/spu/spu-elf.h (ASM_SPEC): Remove.
10997 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
10999 PR rtl-optimization/46856
11000 * postreload.c (reload_combine_recognize_const_pattern): Do not
11001 separate cc0 setter and user on cc0 targets.
11003 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11006 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11007 passed a VOID_TYPE expression, immediately emit an error and
11008 return error_mark_node.
11010 2011-01-26 Jeff Law <law@redhat.com>
11012 PR rtl-optimization/47464
11013 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11014 rather than may_trap_p as needed.
11016 2011-01-26 DJ Delorie <dj@redhat.com>
11018 PR rtl-optimization/46878
11019 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11020 setter/user dependency as well.
11022 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11024 PR rtl-optimization/44469
11025 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11026 after removing trivially dead basic blocks.
11028 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11030 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11031 * config/frv/frv.h (LINK_SPEC): Likewise.
11032 * config/i386/netware.h (LINK_SPEC): Likewise.
11033 * config/m68k/linux.h (ASM_SPEC): Likewise.
11034 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11035 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11036 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11037 * config/sparc/linux.h (ASM_SPEC): Likewise.
11038 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11039 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11041 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11043 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11044 * config/frv/frv.h (ASM_SPEC): Likewise.
11045 * config/m68k/linux.h (ASM_SPEC): Likewise.
11046 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11047 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11048 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11049 * config/sparc/linux.h (ASM_SPEC): Likewise.
11050 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11051 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11053 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11055 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11056 * config/frv/frv.h (LINK_SPEC): Likewise.
11057 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11059 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11061 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11062 * config/frv/frv.h (ASM_SPEC): Likewise.
11063 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11064 * config/m68k/linux.h (ASM_SPEC): Likewise.
11065 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11066 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11067 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11068 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11069 * config/sparc/linux.h (ASM_SPEC): Likewise.
11070 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11071 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11072 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11074 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11077 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11079 (vec_extract_evenodd_help): Ditto.
11080 (vec_extract_evenv4hi): Ditto.
11081 (vec_extract_oddv4hi): Ditto.
11082 (vec_interleave_lowv2si): Ditto.
11083 (vec_interleave_highv2si): Ditto.
11084 (vec_extract_evenv2si): Ditto.
11085 (vec_extract_oddv2si: Ditto.
11086 (vec_pack_trunc_v2si): Ditto.
11088 2011-01-22 Jan Hubicka <jh@suse.cz>
11091 * cgraph.h (cgraph_local_info): New field can_change_signature.
11092 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11093 signature can change.
11094 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11096 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11097 (cgraph_function_versioning): We can not change signature of functions
11098 that don't allow that.
11099 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11100 (lto_input_node): Likewise.
11101 * ipa-inline.c (compute_inline_parameters): Compute
11102 local.can_change_signature.
11103 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11104 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11105 functions that can not change signature.
11106 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11107 init_cumulative_args): Do not use local calling conventions
11108 for functions that can not change signature.
11110 2011-01-22 Jan Hubicka <jh@suse.cz>
11112 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11114 2011-01-26 Richard Guenther <rguenther@suse.de>
11116 PR tree-optimization/47190
11117 * cgraphunit.c (process_common_attributes): New function.
11118 (process_function_and_variable_attributes): Use it.
11120 2011-01-26 Richard Guenther <rguenther@suse.de>
11123 * cgraphbuild.c (record_eh_tables): Record reference to personality
11126 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11129 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11130 non-debug insns from moving up.
11132 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11135 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11136 t-dlldir{,-x} fragment for build and add it to tmake_file.
11137 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11138 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11139 * config/i386/t-dlldir: New file.
11140 (SHLIB_DLLDIR): Define.
11141 * config/i386/t-dlldir-x: New file.
11142 (SHLIB_DLLDIR): Define.
11143 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11144 (SHLIB_INSTALL): Use it.
11146 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11149 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11150 lower bound of the allowed Thumb-2 coprocessor load/store
11151 index range to -256. Add explaining comment.
11153 2011-01-25 Ian Lance Taylor <iant@google.com>
11155 * godump.c (go_define): Improve lexing of macro expansion to only
11156 accept expressions which match Go spec.
11158 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11161 * tree.c (handle_dll_attribute): Handle it.
11162 * doc/extend.texi (@item dllexport): Mention it.
11163 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11165 2011-01-25 Ian Lance Taylor <iant@google.com>
11167 PR tree-optimization/26854
11168 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11169 (decl_jump_unsafe): Move higher in file, with no other change.
11170 (bind): Set has_jump_unsafe_decl if appropriate.
11171 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11172 (check_earlier_gotos): Likewise.
11173 (c_check_switch_jump_warnings): Likewise.
11175 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11177 * doc/invoke.texi (Warning Options): Add missing hyphen.
11178 (-fprofile-dir): Minor grammatical fixes.
11179 (-fbranch-probabilities): Likewise.
11181 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11185 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11187 (no_real_insns_p, schedule_block, set_priorities): Drop special
11188 treatment of boundary debug insns.
11189 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11190 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11191 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11192 (BOUNDARY_DEBUG_INSN_P): Likewise.
11193 (SCHEDULE_DEBUG_INSN_P): Likewise.
11194 * sched-rgn.c (init_ready_list): Drop special treatment of
11195 boundary debug insns.
11196 * final.c (rest_of_clean-state): Clear notes' BB.
11198 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11200 * Makefile.in (LAMBDA_H): Removed.
11201 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11202 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11203 lambda-trans.o, and tree-loop-linear.o.
11204 (lto-symtab.o): Remove dependence on LAMBDA_H.
11205 (tree-loop-linear.o): Remove rule.
11206 (lambda-mat.o): Same.
11207 (lambda-trans.o): Same.
11208 (lambda-code.o): Same.
11209 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11210 (tree-vect-slp.o): Same.
11211 * hwint.h (gcd): Moved here.
11212 (least_common_multiple): Same.
11213 * lambda-code.c: Removed.
11214 * lambda-mat.c: Removed.
11215 * lambda-trans.c: Removed.
11216 * lambda.h: Removed.
11217 * tree-loop-linear.c: Removed.
11218 * lto-symtab.c: Do not include lambda.h.
11219 * omega.c (gcd): Removed.
11220 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11221 * tree-data-ref.c (print_lambda_vector): Moved here.
11222 (lambda_vector_copy): Same.
11223 (lambda_matrix_copy): Same.
11224 (lambda_matrix_id): Same.
11225 (lambda_vector_first_nz): Same.
11226 (lambda_matrix_row_add): Same.
11227 (lambda_matrix_row_exchange): Same.
11228 (lambda_vector_mult_const): Same.
11229 (lambda_vector_negate): Same.
11230 (lambda_matrix_row_negate): Same.
11231 (lambda_vector_equal): Same.
11232 (lambda_matrix_right_hermite): Same.
11233 * tree-data-ref.h: Do not include lambda.h.
11234 (lambda_vector): Moved here.
11235 (lambda_matrix): Same.
11236 (dependence_level): Same.
11237 (lambda_transform_legal_p): Removed declaration.
11238 (lambda_collect_parameters): Same.
11239 (lambda_compute_access_matrices): Same.
11240 (lambda_vector_gcd): Same.
11241 (lambda_vector_new): Same.
11242 (lambda_vector_clear): Same.
11243 (lambda_vector_lexico_pos): Same.
11244 (lambda_vector_zerop): Same.
11245 (lambda_matrix_new): Same.
11246 * tree-flow.h (least_common_multiple): Removed declaration.
11247 * tree-parloops.c (lambda_trans_matrix): Moved here.
11248 (LTM_MATRIX): Same.
11249 (LTM_ROWSIZE): Same.
11250 (LTM_COLSIZE): Same.
11251 (LTM_DENOMINATOR): Same.
11252 (lambda_trans_matrix_new): Same.
11253 (lambda_matrix_vector_mult): Same.
11254 (lambda_transform_legal_p): Same.
11255 * tree-pass.h (pass_linear_transform): Removed declaration.
11256 * tree-ssa-loop.c (tree_linear_transform): Removed.
11257 (gate_tree_linear_transform): Removed.
11258 (pass_linear_transform): Removed.
11259 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11260 flag_loop_interchange.
11262 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11264 PR tree-optimization/47265
11265 PR tree-optimization/47443
11266 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11267 if name still has some uses.
11269 2011-01-25 Martin Jambor <mjambor@suse.cz>
11271 PR tree-optimization/47382
11272 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11273 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11275 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11277 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11278 sjlj_except_unwind_info.
11280 2011-01-25 Richard Guenther <rguenther@suse.de>
11282 PR tree-optimization/47426
11283 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11284 visible functions results escape.
11286 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11289 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11290 (arm_get_frame_offsets): Use it.
11292 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11293 Jakub Jelinek <jakub@redhat.com>
11295 PR tree-optimization/47271
11296 * tree-if-conv.c (bb_postdominates_preds): New.
11297 (if_convertible_bb_p): Call bb_postdominates_preds.
11298 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11299 (predicate_scalar_phi): Call bb_postdominates_preds.
11301 2011-01-25 Nick Clifton <nickc@redhat.com>
11303 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11304 * config/rx/rx.c (rx_function_value): Likewise.
11305 (rx_promote_function_mode): Likewise.
11306 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11307 in order to make it legitimate.
11308 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11309 make sure that the first operand is the same as the result register.
11310 (addsi3_unspec): Delete.
11311 (subdi3): Do not accept immediate operands.
11312 (subdi3_internal): Likewise.
11314 2011-01-25 Jeff Law <law@redhat.com>
11316 PR rtl-optimization/37273
11317 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11318 handle them like argument loads from stack slots. Do not double
11319 count memory for memory constants and argument loads from stack slots.
11321 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11323 PR tree-optimization/47427
11324 PR tree-optimization/47428
11325 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11326 coalesce if the new root var would be TREE_READONLY.
11328 2011-01-25 Richard Guenther <rguenther@suse.de>
11330 PR middle-end/47414
11331 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11332 correct type for TBAA.
11334 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11336 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11337 (close_phi_written_to_memory): Call for_each_index with
11338 dr_indices_valid_in_loop.
11340 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11342 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11343 when it is initialized.
11345 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11347 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11348 call to graphite_find_data_references_in_stmt.
11349 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11350 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11351 call to graphite_find_data_references_in_stmt.
11352 (analyze_drs_in_stmts): Same.
11353 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11354 in which the scalar analysis of indices is performed.
11355 (create_data_ref): Same. Update call to dr_analyze_indices.
11356 (find_data_references_in_stmt): Update call to create_data_ref.
11357 (graphite_find_data_references_in_stmt): Same.
11358 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11360 (create_data_ref): Same.
11361 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11362 call to create_data_ref.
11364 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11366 * graphite-sese-to-poly.c (build_poly_scop): Move
11367 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11369 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11371 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11372 VAR_DECL, PARM_DECL, and RESULT_DECL.
11374 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11376 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11377 in a reduction PBB.
11378 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11379 that have already been marked as PBB_IS_REDUCTION.
11381 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11383 * graphite-scop-detection.c (same_close_phi_node): New.
11384 (remove_duplicate_close_phi): New.
11385 (make_close_phi_nodes_unique): New.
11386 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11388 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11390 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11391 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11392 of both data references to be the same.
11394 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11396 * graphite-dependences.c (build_lexicographical_constraint): Remove
11397 the gdim parameter.
11398 (build_lexicographical_constraint): Adjust call to
11399 ppl_powerset_is_empty.
11400 (dependence_polyhedron): Same.
11401 (graphite_legal_transform_dr): Same.
11402 (graphite_carried_dependence_level_k): Same.
11403 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11405 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11407 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11409 * graphite-sese-to-poly.c
11410 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11411 (close_phi_written_to_memory): New.
11412 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11415 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11417 * doc/install.texi: Update the expected version number of PPL to 0.11.
11418 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11419 #if PPL_VERSION_MINOR < 11.
11421 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11423 * graphite-dependences.c: Include graphite-cloog-util.h.
11424 (new_poly_ddr): Inlined into dependence_polyhedron.
11425 (free_poly_ddr): Moved close by new_poly_ddr.
11426 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11427 Early return NULL when ppl_powerset_is_empty returns true.
11428 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11429 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11430 (graphite_legal_transform_dr): Call new_poly_ddr.
11431 (graphite_carried_dependence_level_k): Same.
11432 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11433 (dot_transformed_deps_stmt_1): Removed.
11434 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11435 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11436 (dot_deps_1): Call dot_deps_2.
11437 * Makefile.in (graphite-dependences.o): Add missing dependence on
11438 graphite-cloog-util.h.
11440 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11442 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11443 (build_lexicographical_constraint): Same.
11444 (dependence_polyhedron_1): Same.
11445 (graphite_legal_transform_dr): Same.
11446 (graphite_carried_dependence_level_k): Same.
11447 * graphite-ppl.c (ppl_powerset_is_empty): New.
11448 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11449 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11451 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11453 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11454 the "a followed by b" relation and document it.
11456 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11458 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11459 iteration when the bag of constraints is empty.
11461 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11463 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11465 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11467 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11468 nest and two loop depths as parameters.
11469 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11470 lst_perfect_nestify.
11472 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11474 * graphite-dependences.c (print_pddr): Call
11475 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11477 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11479 * graphite-ppl.c (debug_gmp_value): New.
11480 * graphite-ppl.h (debug_gmp_value): Declared.
11482 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11484 * doc/install.texi: Document availability of cloog-0.16.
11486 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11488 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11489 invalid postdominance info.
11491 2011-01-24 Jan Hubicka <jh@suse.cz>
11494 * doc/extend.texi (weak pragma): Drop claim that it must
11495 appear before definition.
11496 * varasm.c (merge_weak, declare_weak): Only sanity check
11497 that DECL is not output at a time it is declared weak.
11499 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11501 * machmode.def: Fixed comments.
11503 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11505 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11507 2011-01-24 Paul Koning <ni1d@arrl.net>
11509 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11512 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11515 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11516 (block_info): Add scanned and prev.
11517 (move_or_delete_vzeroupper_2): Return if the basic block
11518 has been scanned and the upper 128bit state is unchanged
11519 from the last scan.
11520 (move_or_delete_vzeroupper_1): Return true if the exit
11522 (move_or_delete_vzeroupper): Visit basic blocks using the
11523 work-list based algorithm based on vt_find_locations in
11526 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11528 2011-01-24 Nick Clifton <nickc@redhat.com>
11530 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11531 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11532 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11533 then define __v850e1__.
11534 * doc/invoke.texi: Document -mv850es.
11536 2011-01-24 Richard Henderson <rth@redhat.com>
11538 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11539 compound unordered comparisons.
11540 * config/rx/rx.c (rx_split_fp_compare): Remove.
11541 * config/rx/rx-protos.h: Update.
11542 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11543 (cbranchsf4): Don't call rx_split_fp_compare.
11544 (*cbranchsf4): Use rx_split_cbranch.
11545 (*cmpsf): Don't accept "i" constraint.
11546 (*conditional_branch): Only valid after reload.
11547 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11549 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11552 * config/rs6000/altivec.md (vector constant splitters): Add
11553 support for creating vector single precision constants if -mvsx is
11554 used and we would create the constant using Altivec primitives.
11556 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11557 Richard Sandiford <rdsandiford@googlemail.com>
11559 PR rtl-optimization/47166
11560 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11561 mechanism for PRE_MODIFY and POST_MODIFY.
11562 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11565 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11567 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11569 2011-01-22 Jan Hubicka <jh@suse.cz>
11572 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11574 2011-01-22 Jan Hubicka <jh@suse.cz>
11576 PR tree-optimization/43884
11578 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11579 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11581 2011-01-22 Anatoly Sokolov <aesok@post.ru>
11583 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11584 * config/s390/s390.c (s390_register_move_cost,
11585 s390_memory_move_cost): New.
11586 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11588 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11590 PR middle-end/47401
11591 * except.c (sjlj_assign_call_site_values): Move setting the
11592 crtl->uses_eh_lsda flag to ...
11593 (sjlj_mark_call_sites): ... here.
11594 (sjlj_emit_function_enter): Support NULL dispatch label.
11595 (sjlj_build_landing_pads): In a function with no landing pads
11596 that still has must-not-throw regions, generate code to register
11597 a personality function with empty LSDA.
11599 2011-01-21 Richard Henderson <rth@redhat.com>
11601 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11603 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11605 * compare-elim.c: New file.
11606 * Makefile.in (OBJS-common): Add it.
11607 (compare-elim.o): New.
11608 * common.opt (fcompare-elim): New.
11609 * opts.c (default_options_table): Add OPT_fcompare_elim.
11610 * tree-pass.h (pass_compare_elim_after_reload): New.
11611 * passes.c (init_optimization_passes): Add it.
11612 * recog.h: Protect against re-inclusion.
11613 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11614 * doc/invoke.texi (-fcompare-elim): Document it.
11615 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11616 * doc/tm.texi: Rebuild.
11618 2011-01-22 Nick Clifton <nickc@redhat.com>
11620 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11621 rx_split_fp_compare.
11623 2011-01-22 Nick Clifton <nickc@redhat.com>
11625 * config/rx/rx.md (UNSPEC_CONST): New.
11626 (deallocate_and_return): Wrap the amount popped off the stack in
11627 an UNSPEC_CONST in order to stop it being rejected by
11628 -mmax-constant-size.
11629 (pop_and_return): Add a "(return)" rtx.
11630 (call): Drop the immediate operand.
11631 (call_internal): Likewise.
11632 (call_value): Likewise.
11633 (call_value_internal): Likewise.
11634 (sibcall_internal): Likewise.
11635 (sibcall_value_internal): Likewise.
11636 (sibcall): Likewise. Generate an explicit call using
11638 (sibcall_value): Likewise.
11639 (mov<>): FAIL if a constant operand is not legitimate.
11640 (addsi3_unpsec): New pattern.
11642 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11643 (ok_for_max_constant): New function.
11644 (gen_safe_add): New function.
11645 (rx_expand_prologue): Use gen_safe_add.
11646 (rx_expand_epilogue): Likewise.
11647 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11650 2011-01-21 Jeff Law <law@redhat.com>
11652 PR tree-optimization/47053
11653 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11654 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11655 statements are deleted.
11656 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11657 is nonempty, then purge dead edges and cleanup the CFG.
11659 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11662 Temporarily revert:
11663 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11665 * tree-dfa.c (create_var_ann): Mark variable as used.
11667 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11669 PR middle-end/45566
11670 * except.c (convert_to_eh_region_ranges): Emit queued no-region
11671 notes from other section in hot/cold partitioning even if
11672 last_action is -3. Increment call_site_base.
11674 PR rtl-optimization/47366
11675 * fwprop.c (forward_propagate_into): Return bool. If
11676 any changes are made, -fnon-call-exceptions is used and
11677 REG_EH_REGION note is present, call purge_dead_edges
11678 and return true if it purged anything.
11679 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11680 any EH edges were purged.
11682 2011-01-21 Jeff Law <law@redhat.com>
11684 PR rtl-optimization/41619
11685 * caller-save.c (setup_save_areas): Break out code to determine
11686 which hard regs are live across calls by examining the reload chains
11687 so that it is always used.
11688 Eliminate code which checked REG_N_CALLS_CROSSED.
11690 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11692 PR tree-optimization/47355
11693 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11694 NOP has non-debug uses beyond PHIs in new_bb.
11696 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11699 * cfgexpand.c (account_used_vars_for_block): Only account vars
11700 that are annotated as used.
11701 (estimated_stack_frame_size): Don't set TREE_USED.
11702 * tree-dfa.c (create_var_ann): Mark variable as used.
11704 2011-01-21 Richard Guenther <rguenther@suse.de>
11706 PR middle-end/47395
11707 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11709 2011-01-21 Richard Guenther <rguenther@suse.de>
11711 PR tree-optimization/47365
11712 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11713 (vn_reference_lookup_pieces): Adjust.
11714 (vn_reference_lookup): Likewise.
11715 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11716 (vn_reference_lookup_3): Only look through kills if in
11717 VN_WALKREWRITE mode.
11718 (vn_reference_lookup_pieces): Adjust.
11719 (vn_reference_lookup): Likewise.
11720 (visit_reference_op_load): Likewise.
11721 (visit_reference_op_store): Likewise.
11722 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11723 (compute_avail): Likewise.
11724 (eliminate): Likewise.
11726 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11728 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11729 DECL_IGNORED_P non-reg vars if they are used.
11731 PR tree-optimization/47391
11732 * varpool.c (const_value_known_p): Return false if
11735 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
11738 * config/i386/i386.c (ix86_local_alignment): Handle
11739 case for va_list_type_node is nil.
11740 (ix86_canonical_va_list_type): Likewise.
11742 2011-01-21 Alan Modra <amodra@gmail.com>
11744 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11745 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11747 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11749 * config/arm/arm.md (define_attr type): Rename f_load
11750 and f_store to f_fpa_load and f_fpa_store. Update.
11751 (write_conflict): Deal with rename fallout.
11752 (*push_fp_multi): Likewise.
11753 * config/arm/fpa.md (f_load): Use f_fpa_load.
11754 (f_store): Use f_fpa_store.
11755 (*movsf_fpa): Likewise.
11756 (*movdf_fpa): Likewise.
11757 (*movxf_fpa): Likewise.
11758 (*thumb2_movsf_fpa): Likewise.
11759 (*thumb2_movdf_fpa): Likewise.
11760 (*thumb2_movxf_fpa): Likewise.
11761 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11762 f_loadd and f_stored.
11763 (*thumb2_movdi_vfp): Likewise.
11764 (*thumb2_movsf_vfp): Fix attribute to f_loads.
11765 (*thumb2_movsi_vfp): Likewise.
11766 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11767 Use f_loads instead of f_load.
11768 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11770 2011-01-20 Anatoly Sokolov <aesok@post.ru>
11772 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11773 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11774 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11775 (xtensa_mode_dependent_address_p): New function.
11776 (constantpool_address_p): Make static. Change return type to bool.
11777 Change argument type to const_rtx. Use CONST_INT_P predicate.
11779 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
11782 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11784 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11787 * cfgexpand.c (expand_debug_expr): Instead of generating
11788 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11791 2011-01-20 Richard Guenther <rguenther@suse.de>
11793 PR middle-end/47370
11794 * tree-inline.c (remap_gimple_op_r): Recurse manually for
11795 the pointer operand of MEM_REFs.
11797 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11799 PR tree-optimization/46130
11800 * ipa-split.c (consider_split): If return_bb contains non-virtual
11801 PHIs other than for retval or if split_function would not adjust it,
11804 2011-01-20 Richard Guenther <rguenther@suse.de>
11806 PR tree-optimization/47167
11807 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11808 Revert previous change, only avoid enumeral type changes.
11810 2011-01-19 Mike Stump <mikestump@comcast.net>
11812 * doc/tm.texi.in (BRANCH_COST): Englishify.
11813 * doc/tm.texi (BRANCH_COST): Likewise.
11815 2011-01-19 Dodji Seketeli <dodji@redhat.com>
11818 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
11819 (gen_scheduled_generic_parms_dies): New functions.
11820 (gen_struct_or_union_type_die): Schedule template parameters DIEs
11821 generation for the end of CU compilation.
11822 (dwarf2out_finish): Generate template parameters DIEs here.
11824 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11827 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
11828 debug bind stmt on merge edges.
11830 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11834 * function.c (instantiate_expr): Instantiate incoming rtl of
11835 implicit arguments, and recurse on VALUE_EXPRs.
11836 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
11837 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
11839 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11841 * c-parser.c (c_parser_for_statement): Initialize
11842 collection_expression.
11844 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11846 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
11848 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11850 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
11851 (LINK_SHLIB_SPEC): Don't use %(link_path).
11852 (SUBTARGET_EXTRA_SPECS): Remove link_path.
11854 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11856 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
11857 (NO_SHARED_LIB_SUPPORT): Remove.
11858 (LINK_SHLIB_SPEC): Remove one conditional definition.
11860 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11862 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
11864 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
11865 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
11866 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
11867 %{call_shared} and conditionals on these options not being passed.
11868 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
11871 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11873 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
11876 * ipa-split.c: Spelling fixes.
11878 2011-01-19 Richard Henderson <rth@redhat.com>
11880 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
11881 (*mulsi3): Likewise.
11883 * longlong.h [__mn10300__] (count_leading_zeros): New.
11884 [__mn10300__] (umul_ppmm, smul_ppmm): New.
11885 [__mn10300__] (add_ssaaaa, subddmmss): New.
11886 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
11887 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
11889 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11891 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
11893 2011-01-19 Richard Henderson <rth@redhat.com>
11895 * config/mn10300/mn10300.md (addsi3_flags): New.
11896 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
11897 (subsi3_flags, subc_internal, subdi3): New.
11898 (subdi3_internal, *subdi3_degenerate): New.
11899 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
11901 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
11902 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
11903 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
11904 * config/mn10300/mn10300-protos.h: Update.
11905 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
11906 (return_ret): Likewise. Rename from return_internal_regs.
11907 (return_internal): Remove.
11909 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
11910 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
11911 (mn10300_legitimate_constant_p): Likewise.
11912 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
11913 (mn10300_frame_size): New.
11914 (mn10300_expand_prologue): Use it.
11915 (mn10300_expand_epilogue): Likewise.
11916 (mn10300_initial_offset): Likewise.
11917 * config/mn10300/mn10300-protos.h: Update.
11918 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
11919 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
11920 (prologue, epilogue, return_internal): Tidy output code.
11921 (mn10300_store_multiple_operation, return): Likewise.
11922 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
11923 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
11924 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
11925 (load_pic, am33_load_pic): New.
11926 (mn10300_load_pic0, mn10300_load_pic1): New.
11928 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
11929 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
11930 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
11931 (cc_flags_for_mode, cc_flags_for_code): New.
11932 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
11933 overflow flag is not valid. Validate that the flags we need
11934 for the comparison are valid.
11935 (mn10300_output_cmp): Remove.
11936 (mn10300_output_add): New.
11937 (mn10300_select_cc_mode): Use cc_flags_for_code.
11938 (mn10300_split_cbranch): New.
11939 (mn10300_match_ccmode): New.
11940 (mn10300_split_and_operand_count): New.
11941 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
11943 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
11944 (addsi3): ... here. Use mn10300_output_add.
11945 (*addsi3_flags): New.
11946 (*am33_subsi3, *mn10300_subsi3): Merge...
11947 (subsi3): ... here. Use attribute isa.
11948 (*subsi3_flags): New.
11949 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
11951 (*am33_andsi3, *mn10300_andsi3): Merge...
11952 (andsi3): ... here.
11953 (*andsi3_flags): New.
11954 (andsi3 splitters): New.
11955 (*am33_iorsi3, *mn10300_iorsi3): Merge...
11956 (iorsi3): ... here.
11957 (*iorsi3_flags): New.
11958 (*am33_xorsi3, *mn10300_xorsi3): Merge...
11959 (xorsi3): ... here.
11960 (*xorsi3_flags): New.
11961 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
11962 (one_cmplsi2): ... here.
11963 (*one_cmplsi2_flags): New.
11964 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
11965 instead of "dax" in constraints. Use mn10300_split_cbranch.
11966 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
11967 use matching constraints to eliminate a self-comparison.
11968 (*integer_conditional_branch): Rename from integer_conditional_branch.
11969 Use int_mode_flags to match CC_REG.
11970 (*cbranchsi4_btst, *btstsi): New.
11971 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
11972 mn10300_split_cbranch.
11973 (*am33_cmpsf): Rename from am33_cmpsf.
11974 (*float_conditional_branch): Rename from float_conditional_branch.
11975 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
11976 (zero_extendqisi2): ... here.
11977 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
11978 (zero_extendhisi2): ... here.
11979 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
11980 (extendqisi2): ... here.
11981 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
11982 (extendhisi2): ... here.
11983 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
11984 (ashlsi3): ... here.
11985 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
11986 (lshrsi3): ... here.
11987 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
11988 (ashrsi3): ... here.
11989 (consecutive add peephole): Remove.
11990 * config/mn10300/predicates.md (label_ref_operand): New.
11991 (int_mode_flags): New.
11992 (CCZN_comparison_operator): New.
11994 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
11995 (throughput_42_latency_43): New reservation.
11996 (mulsidi3, umulsidi3): New expanders.
11997 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
11998 the MDR register to allocation; separately allocate the low and
11999 high parts of the DImode result.
12000 (umulsidi3_internal): Similarly.
12001 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12002 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12003 (udivsi3, umodsi3): Remove.
12004 (udivmodsi4, divmodsi4): New expanders.
12005 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12006 (*divmodsi4): Simiarly.
12007 (ext_internal): New.
12009 * config/mn10300/constraints.md ("z"): New constraint.
12010 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12011 (FIXED_REGISTERS): Don't fix MDR.
12012 (CALL_USED_REGSITERS): Reformat nicely.
12013 (REG_ALLOC_ORDER): Add MDR.
12014 (enum regclass): Add MDR_REGS.
12015 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12016 (IRA_COVER_CLASSES): Add MDR_REGS.
12017 (REGNO_REG_CLASS): Handle MDR_REG.
12018 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12019 (mn10300_register_move_cost): Likewise.
12020 * config/mn10300/mn10300.md (MDR_REG): New.
12021 (*movsi_internal): Handle moves to/from MDR_REGS.
12023 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12025 (mn10300_secondary_reload): Tidy combination reload classes.
12026 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12027 addresses for AM33. Allow symbolic offsets for reg+imm.
12028 (mn10300_regno_in_class_p): New.
12029 (mn10300_legitimize_reload_address): New.
12030 * config/mn10300/mn10300.h (enum reg_class): Remove
12031 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12032 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12033 SP_OR_GENERAL_REGS.
12034 (REG_CLASS_NAMES): Update to match.
12035 (REG_CLASS_CONTENTS): Likewise.
12036 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12037 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12038 (REGNO_IN_RANGE_P): Remove.
12039 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12040 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12041 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12042 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12043 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12044 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12045 (REGNO_GENERAL_P): New.
12046 (HAVE_POST_MODIFY_DISP): New.
12047 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12048 (LEGITIMIZE_RELOAD_ADDRESS): New.
12049 * config/mn10300/mn10300-protos.h: Update.
12051 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12052 DATA_REGS for AM33 stack-pointer destination.
12053 (mn10300_preferred_output_reload_class): Likewise.
12054 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12055 into a form appropriate for ...
12056 (TARGET_SECONDARY_RELOAD): New.
12057 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12058 * config/mn10300/mn10300-protos.h: Update.
12059 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12060 reload_insi; use the "A" constraint for the scratch; handle AM33
12061 moves of sp to non-address registers.
12063 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12064 (*movqi_internal): ... here.
12065 (*am33_movhi, *mn10300_movhi): Merge into...
12066 (*movhi_internal): ... here.
12067 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12068 as the source/destination of moves from/to SP.
12069 (movsf): Only allow for AM33-2.
12070 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12071 any integer constant constraint. Only allow for AM33-2. Tidy
12072 all of the alternative outputs.
12073 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12074 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12076 (udivsi3, umodsi3): New patterns for MN103 only.
12078 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12080 * doc/tm.texi.in: Spell out that a lack of register class unions
12082 * doc/tm.texi: Regenerate.
12084 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12086 PR rtl-optimization/47337
12087 * dce.c (check_argument_store): New function.
12088 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12090 PR tree-optimization/47290
12091 * tree-eh.c (infinite_empty_loop_p): New function.
12092 (cleanup_empty_eh): Use it.
12094 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12097 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12098 (a64_expand_widen_sum): Ditto.
12099 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12100 (vec_extract_evenodd_help): Ditto.
12101 (vec_extract_evenv4hi): Ditto.
12102 (vec_extract_oddv4hi): Ditto.
12103 (vec_extract_evenv2si): Ditto.
12104 (vec_extract_oddv2si): Ditto.
12105 (vec_extract_evenv2sf): Ditto.
12106 (vec_extract_oddv2sf): Ditto.
12107 (vec_pack_trunc_v4hi: Ditto.
12108 (vec_pack_trunc_v2si): Ditto.
12109 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12110 (vec_interleave_highv8qi): Ditto.
12112 (vec_extract_oddv8qi): Ditto.
12113 (vec_interleave_lowv4hi): Ditto.
12114 (vec_interleave_highv4hi): Ditto.
12115 (vec_interleave_lowv2si): Ditto.
12116 (vec_interleave_highv2si): Ditto.
12118 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12120 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12121 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12122 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12123 (pa_c_mode_for_suffix): New.
12124 (TARGET_EXPAND_BUILTIN): Define.
12125 (TARGET_C_MODE_FOR_SUFFIX): Define.
12126 (pa_builtins): Define.
12127 (pa_init_builtins): Register __float128 type and init new support
12129 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12130 * config/pa/quadlib.c (_U_Qfcopysign): New.
12132 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12134 PR middle-end/46894
12135 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12136 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12139 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12141 PR tree-optimization/47179
12142 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12143 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12145 2011-01-18 Richard Guenther <rguenther@suse.de>
12147 PR rtl-optimization/47216
12148 * emit-rtl.c: Include tree-flow.h.
12149 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12150 of replicating it with different semantics.
12151 * Makefile.in (emit-rtl.o): Adjust.
12153 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12155 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12156 (cortex_a9_dp): Handle neon types correctly.
12158 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12160 PR rtl-optimization/47299
12161 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12162 subtarget. Use normal multiplication if both operands are constants.
12163 * expmed.c (expand_widening_mult): Don't try to optimize constant
12164 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12167 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12169 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12170 spacing after 'e.g.', typos, comma, hyphenation.
12172 2011-01-17 Richard Henderson <rth@redhat.com>
12174 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12175 (rx_restricted_mem_operand): New.
12176 (rx_shift_operand): Use register_operand.
12177 (rx_source_operand, rx_compare_operand): Likewise.
12178 * config/rx/rx.md (addsi3_flags): New expander.
12179 (adddi3): Rewrite as expander.
12180 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12181 (subsi3_flags): New expander.
12182 (subdi3): Rewrite as expander.
12183 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12185 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12186 (rx_init_builtins): Remove sat builtin.
12187 (rx_expand_builtin): Likewise.
12188 * config/rx/rx.md (ssaddsi3): New.
12189 (*sat): Rename from sat. Represent the CC_REG input.
12191 * config/rx/predicates.md (rshift_operator): New.
12192 * config/rx/rx.c (rx_expand_insv): Remove.
12193 * config/rx/rx-protos.h: Update.
12194 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12195 operand to the canonical position.
12196 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12197 (*bitclr, *bitclr_in_memory): Similarly.
12198 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12199 (insv): Retain the zero_extract in the expansion.
12201 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12202 (bswaphi2, bitinvert, revw): Likewise.
12204 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12205 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12206 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12207 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12208 (bitset, bitset_in_memory): Likewise.
12209 (bitinvert, bitinvert_in_memory): Likewise.
12210 (bitclr, bitclr_in_memory): Likewise.
12211 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12212 (rx_strend, rx_cmpstrn): Likewise.
12213 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12214 (bitop peep2 patterns): Remove.
12216 * config/rx/rx.c (rx_match_ccmode): New.
12217 * config/rx/rx-protos.h: Update.
12218 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12219 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12220 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12221 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12222 (fix_truncsfsi2, floatsisf2): Likewise.
12223 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12224 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12225 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12226 (*subsi3_flags, *xorsi3_flags): New.
12228 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12230 * config/rx/rx.c (rx_print_operand): Remove workaround for
12231 unsplit comparison operations.
12233 * config/rx/rx.md (movsicc): Split after reload.
12234 (*movsicc): Merge *movsieq and *movsine via match_operator.
12235 (*stcc): New pattern.
12237 * config/rx/rx.c (rx_float_compare_mode): Remove.
12238 * config/rx/rx.h (rx_float_compare_mode): Remove.
12239 * config/rx/rx.md (cstoresi4): Split after reload.
12240 (*sccc): New pattern.
12242 * config/rx/predicates.md (label_ref_operand): New.
12243 (rx_z_comparison_operator): New.
12244 (rx_zs_comparison_operator): New.
12245 (rx_fp_comparison_operator): New.
12246 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12247 Validate that the flags are set properly for the comparison.
12248 (rx_gen_cond_branch_template): Remove.
12249 (rx_cc_modes_compatible): Remove.
12250 (mode_from_flags): New.
12251 (flags_from_code): Rename from flags_needed_for_conditional.
12252 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12253 (rx_select_cc_mode): Likewise.
12254 (rx_split_fp_compare): New.
12255 (rx_split_cbranch): New.
12256 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12257 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12258 (*cbranchsf4): Similarly.
12259 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12260 match_operator and rx_split_cbranch.
12261 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12262 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12263 (*cmpsi): Rename from cmpsi.
12264 (*tstsi): Rename from tstsi.
12265 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12266 (*conditional_branch): Rename from conditional_branch.
12267 (*reveresed_conditional_branch): Remove.
12268 (b<code>): Remove expander.
12269 * config/rx/rx-protos.h: Update.
12271 * config/rx/rx.c (rx_compare_redundant): Remove.
12272 * config/rx/rx.md (cmpsi): Don't use it.
12273 * config/rx/rx-protos.h: Update.
12275 * config/rx/rx-modes.def (CC_F): New mode.
12276 * config/rx/rx.c (rx_select_cc_mode): New.
12277 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12278 * config/rx/rx-protos.h: Update.
12280 2011-01-17 Richard Henderson <rth@redhat.com>
12282 * except.c (dump_eh_tree): Fix stray ; after for statement.
12284 2011-01-17 Richard Guenther <rguenther@suse.de>
12286 PR tree-optimization/47313
12287 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12288 handling before copying the body. Properly deal with
12289 by-reference result in SSA form.
12291 2011-01-17 Ian Lance Taylor <iant@google.com>
12294 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12295 (struct_value_alias_set): Don't define.
12296 (sparc_option_override): Don't set sparc_sr_alias_set and
12297 struct_value_alias_set.
12298 (save_or_restore_regs): Use gen_frame_mem rather than calling
12300 (sparc_struct_value_rtx): Likewise.
12302 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12305 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12306 (_mm_maskstore_pd): Likewise.
12307 (_mm_maskload_ps): Likewise.
12308 (_mm_maskstore_ps): Likewise.
12309 (_mm256_maskload_pd): Change mask to __m256i.
12310 (_mm256_maskstore_pd): Likewise.
12311 (_mm256_maskload_ps): Likewise.
12312 (_mm256_maskstore_ps): Likewise.
12314 * config/i386/i386-builtin-types.def: Updated.
12315 (ix86_expand_special_args_builtin): Likewise.
12317 * config/i386/i386.c (bdesc_special_args): Update
12318 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12319 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12320 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12321 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12323 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12324 Use <avxpermvecmode> on mask register.
12325 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12327 2011-01-17 Olivier Hainque <hainque@adacore.com>
12328 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12329 Eric Botcazou <ebotcazou@adacore.com>
12332 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12333 if <= USHRT_MAX in 32-bit mode.
12335 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12337 * doc/install.texi (Configuration, Specific): Wrap long
12338 lines in examples. Allow line wrapping in long options
12339 and URLs where beneficial for PDF output.
12341 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12343 * config/mips/mips.c (mips_classify_symbol): Don't return
12344 SYMBOL_PC_RELATIVE for nonlocal labels.
12346 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12348 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12350 2011-01-15 Jan Hubicka <jh@suse.cz>
12352 PR tree-optimization/47276
12353 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12354 declarations as needed.
12356 2011-01-15 Martin Jambor <mjambor@suse.cz>
12358 * common.opt (fdevirtualize): New flag.
12359 * doc/invoke.texi (Option Summary): Document it.
12360 * opts.c (default_options_table): Add devirtualize flag.
12361 * ipa-prop.c (detect_type_change): Return immediately if
12362 devirtualize flag is not set.
12363 (detect_type_change_ssa): Likewise.
12364 (compute_known_type_jump_func): Likewise.
12365 (ipa_analyze_virtual_call_uses): Likewise.
12367 2011-01-14 Martin Jambor <mjambor@suse.cz>
12369 PR tree-optimization/45934
12370 PR tree-optimization/46302
12371 * ipa-prop.c (type_change_info): New type.
12372 (stmt_may_be_vtbl_ptr_store): New function.
12373 (check_stmt_for_type_change): Likewise.
12374 (detect_type_change): Likewise.
12375 (detect_type_change_ssa): Likewise.
12376 (compute_complex_assign_jump_func): Check for dynamic type change.
12377 (compute_complex_ancestor_jump_func): Likewise.
12378 (compute_known_type_jump_func): Likewise.
12379 (compute_scalar_jump_functions): Likewise.
12380 (ipa_analyze_virtual_call_uses): Likewise.
12381 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12383 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12385 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12386 * config/i386/i386.opt (msse5): New Alias.
12388 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12390 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12391 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12392 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12393 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12395 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12397 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12399 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12400 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12401 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12402 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12404 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12406 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12408 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12410 2011-01-14 Mike Stump <mikestump@comcast.net>
12412 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12413 * config/fr30/fr30.md: Likweise
12414 (movsi_push): Likewise.
12415 (movsi_pop): Likewise.
12416 (enter_func): Likewise.
12417 * config/moxie/moxie.md (movsi_push): Likewise.
12418 (movsi_pop): Likewise.
12420 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12422 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12423 %{no_archive} %{exact_version}.
12424 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12425 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12426 %{no_archive} %{exact_version}.
12427 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12428 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12429 * config/mips/vxworks.h: Likewise.
12431 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12433 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12435 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12437 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12438 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12440 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12442 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12445 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12447 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12449 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12450 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12452 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12453 Don't handle -shlib.
12455 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12457 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12458 (CC1_SPEC): Don't handle -profile.
12460 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12462 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12463 * config/mips/mips.h (CC1_SPEC): Likewise.
12465 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12467 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12468 * config/mips/mips.h (CC1_SPEC): Likewise.
12470 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12472 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12473 * config/m32r/linux.h (LINK_SPEC): Likewise.
12474 * config/mips/linux.h (LINK_SPEC): Likewise.
12475 * config/mips/linux64.h (LINK_SPEC): Likewise.
12476 * config/sparc/linux.h (LINK_SPEC): Likewise.
12477 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12478 LINK_SPEC): Likewise.
12479 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12481 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12483 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12485 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12487 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12489 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12490 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12492 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12494 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12496 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12498 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12499 supports -Bstatic/-Bdynamic.
12500 * configure: Regenerate.
12502 2011-01-14 Jan Hubicka <jh@suse.cz>
12503 Jack Howarth <howarth@bromo.med.uc.edu>
12506 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12507 when checking debug_info_level. Test write_symbols instead of
12508 debug_hooks->var_location when setting flag_var_tracking_uninit.
12510 2011-01-14 Richard Guenther <rguenther@suse.de>
12512 PR tree-optimization/47179
12513 * target.def (ref_may_alias_errno): New target hook.
12514 * targhooks.h (default_ref_may_alias_errno): Declare.
12515 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12516 (default_ref_may_alias_errno): New function.
12517 * target.h (struct ao_ref_s): Declare.
12518 * tree-ssa-alias.c: Include target.h.
12519 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12520 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12521 (targhooks.o): Likewise.
12522 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12523 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12525 2011-01-14 Richard Guenther <rguenther@suse.de>
12527 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12529 2011-01-14 Richard Guenther <rguenther@suse.de>
12531 PR tree-optimization/47280
12532 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12533 return CFG changes.
12534 (tree_ssa_forward_propagate_single_use_vars): Deal with
12535 CFG changes from associate_plusminus.
12537 2011-01-14 Richard Guenther <rguenther@suse.de>
12539 PR middle-end/47281
12541 2011-01-11 Richard Guenther <rguenther@suse.de>
12543 PR tree-optimization/46076
12544 * tree-ssa.c (useless_type_conversion_p): Conversions from
12545 unprototyped to empty argument list function types are useless.
12547 2011-01-14 Richard Guenther <rguenther@suse.de>
12549 PR tree-optimization/47286
12550 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12552 2011-01-14 Martin Jambor <mjambor@suse.cz>
12554 PR middle-end/46823
12555 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12557 2011-01-13 Anatoly Sokolov <aesok@post.ru>
12559 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12560 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12561 * config/xtensa/xtensa.c (xtensa_libcall_value,
12562 xtensa_function_value_regno_p): New functions.
12563 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12565 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
12568 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12570 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12571 New function prototype.
12572 * config/i386/winnt.c (i386_pe_assemble_visibility):
12573 Warn only if attribute was specified by user.
12575 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12578 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12580 (floatunsdidf2_fcfidu): Ditto.
12582 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12584 * config/s390/s390.c (print_operand_address): Replace 'error' with
12585 'output_operand_lossage'.
12586 (print_operand): Likewise.
12588 2011-01-13 Jeff Law <law@redhat.com>
12590 PR rtl-optimization/39077
12591 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12592 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12593 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12594 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12595 * gcse.c (prune_insertions_deletions): New function.
12596 (compute_pre_data): Use it.
12598 2011-01-13 Dodji Seketeli <dodji@redhat.com>
12601 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12603 (prune_unused_types_mark): Use it.
12605 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
12607 PR rtl-optimization/45352
12608 * sel-sched.c: Update copyright years.
12609 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12610 in the advancing loop when we have issued issue_rate insns.
12612 2011-01-12 Richard Henderson <rth@redhat.com>
12614 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12615 (TARGET_MD_ASM_CLOBBERS): New.
12617 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12618 (TARGET_DELEGITIMIZE_ADDRESS): New.
12620 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12621 (clzsi2, *bsch): New patterns.
12623 * config/mn10300/mn10300.md (INT): New mode iterator.
12624 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12626 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12627 flag_split_wide_types.
12629 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12630 (mn10300_trampoline_init): Rewrite without a template, an immediate
12631 load and a direct branch.
12632 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12634 2011-01-12 Anatoly Sokolov <aesok@post.ru>
12636 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12637 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12638 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12639 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12641 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
12644 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12647 2011-01-12 Jan Hubicka <jh@suse.cz>
12650 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12651 (PLUGIN_COND_CLOSE): New macro.
12652 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12654 2011-01-12 Richard Guenther <rguenther@suse.de>
12657 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12658 register variables in a MEM_REF.
12660 2011-01-12 Joseph Myers <joseph@codesourcery.com>
12662 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12663 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12664 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12665 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12666 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12667 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12668 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12669 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12670 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12671 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12672 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12673 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12674 * config/gnu-user.h: New. Copied from linux.h.
12675 (LINUX_TARGET_STARTFILE_SPEC): Rename to
12676 GNU_USER_TARGET_STARTFILE_SPEC.
12677 (LINUX_TARGET_ENDFILE_SPEC): Rename to
12678 GNU_USER_TARGET_ENDFILE_SPEC.
12679 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12680 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12681 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12682 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12683 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12684 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12685 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12686 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12687 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12688 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12689 * config/arm/linux-eabi.h (CC1_SPEC): Use
12690 GNU_USER_TARGET_CC1_SPEC.
12691 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12692 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12693 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12694 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12695 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12696 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12697 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12698 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12700 2011-01-12 Richard Guenther <rguenther@suse.de>
12703 * doc/invoke.texi (ffast-math): Document it is turned on
12706 2011-01-12 Jan Hubicka <jh@suse.cz>
12708 PR tree-optimization/47233
12709 * opts.c (common_handle_option): Disable ipa-reference with profile
12712 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12714 * c-parser.c (c_parser_objc_at_property_declaration): Improved
12717 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12719 * c-parser.c (c_lex_one_token): Updated and reindented some
12720 comments. No changes in code.
12722 2011-01-11 Ian Lance Taylor <iant@google.com>
12724 * godump.c (go_output_var): Don't output the variable if there is
12725 already a type with the same name.
12727 2011-01-11 Ian Lance Taylor <iant@google.com>
12729 * godump.c (go_format_type): Don't generate float80.
12731 2011-01-11 Richard Henderson <rth@redhat.com>
12733 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12734 declaration. Rewrite for both speed and size.
12735 (mn10300_address_cost_1): Remove.
12736 (mn10300_register_move_cost): New.
12737 (mn10300_memory_move_cost): New.
12738 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12739 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12740 extensions, shifts, BSWAP, CLZ.
12741 (mn10300_wide_const_load_uses_clr): Remove.
12742 (TARGET_REGISTER_MOVE_COST): New.
12743 (TARGET_MEMORY_MOVE_COST): New.
12744 * config/mn10300/mn10300-protos.h: Update.
12745 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12747 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12748 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12749 * config/mn10300/mn10300-protos.h: Update.
12750 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12751 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12752 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12753 (*test_int_bitfield, *test_byte_bitfield): Remove.
12754 (*bit_test, *subreg_bit_test): Remove.
12755 * config/mn10300/predicates.md (const_8bit_operand): Remove.
12757 * config/mn10300/constraints.md ("c"): Rename from "A".
12758 ("A", "D"): New constraint letters.
12759 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12760 (fmssf4, fnmasf4, fnmssf4): Likewise.
12762 * config/mn10300/mn10300.md (isa): New attribute.
12763 (enabled): New attribute.
12765 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12766 (abssf2, negsf2): Define only for hardware fp.
12767 (sqrtsf2): Reformat.
12768 (addsf3, subsf3, mulsf3): Merge expander and insn.
12770 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12771 (DEBUGGER_AUTO_OFFSET): Remove.
12772 (DEBUGGER_ARG_OFFSET): Remove.
12774 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12775 Emit register stores with the same offsets as the hardware.
12776 (mn10300_store_multiple_operation): Don't check that the register
12777 save offsets are monotonic.
12778 * config/mn10300/mn10300-protos.h: Update.
12780 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12782 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12783 in terms of the value on the stack, not the MDR register.
12785 2011-01-11 Jan Hubicka <jh@suse.cz>
12789 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12790 (symbol_alias_set_destroy, symbol_alias_set_contains,
12791 propagate_aliases_backward): Declare.
12792 * lto-streamer-out.c (struct sets): New sturcture.
12793 (trivally_defined_alias): New function.
12794 (output_alias_pair_p): Rewrite.
12795 (output_unreferenced_globals): Fix output of alias pairs.
12796 (produce_symtab): Likewise.
12797 * ipa.c (function_and_variable_visibility): Set weak alias destination
12799 * varasm.c (symbol_alias_set_t): Remove.
12800 (symbol_alias_set_destroy): Export.
12801 (propagate_aliases_forward, propagate_aliases_backward): New functions
12803 (compute_visible_aliases): ... this one; remove.
12804 (trivially_visible_alias): New
12805 (trivially_defined_alias): New.
12806 (remove_unreachable_alias_pairs): Rewrite.
12807 (finish_aliases_1): Reorganize code checking if alias is defined.
12808 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12811 2011-01-11 Richard Guenther <rguenther@suse.de>
12813 PR tree-optimization/46076
12814 * tree-ssa.c (useless_type_conversion_p): Conversions from
12815 unprototyped to empty argument list function types are useless.
12817 2011-01-11 Richard Guenther <rguenther@suse.de>
12819 PR middle-end/45235
12820 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12821 volatile MEMs as MEM_READONLY_P.
12823 2011-01-11 Richard Guenther <rguenther@suse.de>
12825 PR tree-optimization/47239
12826 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
12828 2011-01-11 Jeff Law <law@redhat.com>
12830 PR tree-optimization/47086
12831 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
12832 IVs from statements that might throw.
12834 2011-01-10 Jan Hubicka <jh@suse.cz>
12837 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
12839 2011-01-10 Jan Hubicka <jh@suse.cz>
12842 * profile.c (read_profile_edge_counts): Ignore profile inconistency
12843 when correcting profile.
12845 2011-01-10 Jan Hubicka <jh@suse.cz>
12848 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
12849 DECL_FINI_PRIORITY.
12850 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
12851 Restore DECL_FINI_PRIORITY.
12853 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12855 * doc/gimple.texi: Fix quoting of multi-word return values in
12856 @deftypefn statements. Ensure presence of return value. Wrap
12857 overlong @deftypefn lines.
12858 (is_gimple_operand, is_gimple_min_invariant_address): Remove
12859 descriptions of removed functions.
12860 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
12861 of multi-word return value in @deftypefn statement.
12863 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12865 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
12866 (Conditional Expressions, Logical Operators)
12867 (Statement and operand traversals): Do not indent smallexample
12868 code. Fix duplicate function argument in example.
12870 2011-01-10 Jeff Law <law@redhat.com>
12872 PR tree-optimization/47141
12873 * ipa-split.c (split_function): Handle case where we are
12874 returning a value and the return block has a virtual operand phi.
12876 2011-01-10 Jan Hubicka <jh@suse.cz>
12878 PR tree-optimization/47234
12879 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
12880 (pass_feedback_split_functions): Declare.
12881 * passes.c (init_optimization_passes): Add ipa-split as subpass of
12883 * ipa-split.c (gate_split_functions): Update comments; disable
12884 split-functions for profile_arc_flag and branch_probabilities.
12885 (gate_feedback_split_functions): New function.
12886 (execute_feedback_split_functions): New function.
12887 (pass_feedback_split_functions): New global var.
12889 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
12892 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
12893 calling gimple_call_set_cannot_inline.
12895 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
12897 * config/darwin-sections.def: Remove unused section.
12899 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
12902 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
12904 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
12907 * c-parser.c (c_parser_declaration_or_fndef): Improved
12910 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
12912 * config/i386/winnt.c (i386_pe_start_function): Make sure
12913 to switch back to function's section.
12915 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
12919 * plugin.c: Move include of dlfcn.h from here...
12920 * system.h: ... to here.
12922 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12924 * doc/cpp.texi (C++ Named Operators): Fix markup for header
12926 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
12927 two extra empty pages in PDF output.
12929 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
12932 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
12933 for error recovery purposes behave as if it was not specified so
12934 that the default type is usd.
12936 2011-01-07 Jan Hubicka <jh@suse.cz>
12938 PR tree-optmization/46469
12939 * ipa.c (function_and_variable_visibility): Clear needed flags on
12940 nodes with external decls; handle weakrefs merging correctly.
12942 2011-01-07 Joseph Myers <joseph@codesourcery.com>
12944 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
12947 2011-01-07 Jan Hubicka <jh@suse.cz>
12949 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
12950 and no longer claim that gold is required for linker plugin.
12951 * configure: Regenerate.
12952 * gcc.c (PLUGIN_COND): New macro.
12953 (LINK_COMMAND_SPEC): Use it.
12954 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
12955 * config.in (HAVE_LTO_PLUGIN): New.
12956 * configure.ac (--with-lto-plugin): New parameter; autodetect
12959 2011-01-07 Jan Hubicka <jh@suse.cz>
12961 PR tree-optimization/46367
12962 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
12963 when we can update original.
12964 (cgraph_mark_inline_edge): Sanity check.
12965 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
12967 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12969 * config/spu/spu.h (ASM_COMMENT_START): Define.
12971 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
12974 * gcc.c (%>S): New.
12975 (SWITCH_KEEP_FOR_GCC): Likewise.
12976 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
12977 (do_spec_1): Handle "%>".
12979 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
12981 2011-01-07 Jakub Jelinek <jakub@redhat.com>
12984 * config/i386/i386.c (ix86_delegitimize_address): If
12985 simplify_gen_subreg fails, return orig_x.
12988 * value-prof.c (gimple_stringop_fixed_value): Handle
12989 lhs of the call properly.
12991 2011-01-07 Jan Hubicka <jh@suse.cz>
12994 * lto-opt.c (lto_reissue_options): Set flag_shlib.
12996 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12998 * target.def (function_switched_text_sections): New hook.
12999 * doc/tm.texi: Regenerated.
13000 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13001 * final.c (default_function_switched_text_sections): New.
13002 (final_scan_insn): Call function_switched_text_sections when a
13003 mid-function section change occurs.
13004 * output.h (default_function_switched_text_sections): Declare.
13005 * config/darwin-protos.h (darwin_function_switched_text_sections):
13007 * config/darwin.c (darwin_function_switched_text_sections): New.
13008 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13010 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13012 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13013 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13014 the secondary code fragment when outputting for DWARF == 2.
13016 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13018 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13019 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13021 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13022 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13024 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13027 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13028 when it is not empty.
13030 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13033 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13034 (case ${target}): Add btver1.
13035 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13036 -march=native recognize btver1 processors.
13037 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13038 btver1 def_and_undef
13039 * config/i386/i386.c (struct processor_costs btver1_cost): New
13041 (m_BTVER1): New definition.
13042 (m_AMD_MULTIPLE): Includes m_BTVER1.
13043 (initial_ix86_tune_features): Add btver1 tune.
13044 (processor_target_table): Add btver1 entry.
13045 (static const char *const cpu_names): Add btver1 entry.
13046 (software_prefetching_beneficial_p): Add btver1.
13047 (ix86_option_override_internal): Add btver1 instruction sets.
13048 (ix86_issue_rate): Add btver1.
13049 (ix86_adjust_cost): Add btver1.
13050 * config/i386/i386.h (TARGET_BTVER1): New definition.
13051 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13052 (enum processor_type): Add PROCESSOR_BTVER1.
13053 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13055 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13058 * config/i386/i386.c (legitimize_tls_address)
13059 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13060 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13061 (tls_initial_exec_64_sun): New pattern.
13063 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13065 * doc/invoke.texi (Overall Options): Improve wording and markup
13066 of the description of -wrapper.
13068 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13070 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13071 rdynamic, threads): New Driver options.
13073 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13076 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13077 if coming from .tdata.
13078 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13080 2011-01-06 Jan Hubicka <jh@suse.cz>
13083 * collect2.c (main): Do not enable LTOmode when plugin is active.
13085 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13088 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13089 --version output if supported.
13090 * configure: Regenerate.
13092 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13094 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13097 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13100 * c-convert.c (convert): When converting a complex expression
13101 other than COMPLEX_EXPR to a different complex type, ensure
13102 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13103 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13104 when converting COMPLEX_TYPE.
13106 2011-01-06 Ira Rosen <irar@il.ibm.com>
13108 PR tree-optimization/47139
13109 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13110 only the last reduction value is used outside the loop. Update
13113 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13115 * config/rtems.opt: New.
13116 * config.gcc (*-*-rtems*): Use rtems.opt.
13118 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13120 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13121 processors do not support 3DNow instructions.
13123 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13125 * config/spu/spu.c (spu_option_override): Set parameter
13126 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13128 2011-01-05 Jan Hubicka <jh@suse.cz>
13130 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13131 at the command line.
13133 2011-01-05 Martin Jambor <mjambor@suse.cz>
13136 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13137 deltas on streamed outgoing edges.
13138 (output_node_opt_summary): Output info for outgoing edges only when
13139 the node is in new parameter set.
13140 (output_cgraph_opt_summary): New parameter set, passed to the two
13141 aforementioned functions. Update its forward declaration and its
13144 2011-01-05 Tom Tromey <tromey@redhat.com>
13146 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13147 operator to c_finish_omp_atomic.
13148 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13149 (build_unary_op): Update.
13150 (build_modify_expr): Update.
13151 (build_asm_expr): Update.
13153 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13155 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13156 newly inserted insns.
13157 (pad_bb): Likewise.
13158 (spu_emit_branch_hint): Likewise.
13159 (insert_hbrp_for_ilb_runout): Likewise.
13160 (spu_machine_dependent_reorg): Call df_finish_pass after
13161 schedule_insns returns.
13163 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13165 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13167 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13169 PR tree-optimization/47005
13170 * tree-sra.c (struct access): Add 'non_addressable' bit.
13171 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13172 (decide_one_param_reduction): Return 0 if the parameter is passed by
13173 reference and one of the accesses in the group is non_addressable.
13175 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13177 PR tree-optimization/47056
13178 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13179 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13180 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13182 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13184 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13185 initializer. Skip view conversions from aggregate types.
13187 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13190 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13192 2011-01-04 Philipp Thomas <pth@suse.de>
13194 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13197 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13199 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13200 on empty epilogue sequences.
13202 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13204 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13205 non-static): New Driver options.
13207 2011-01-04 Jie Zhang <jie@codesourcery.com>
13210 * gcc.c (default_compilers[]): Set combinable field to 0
13211 for all assembly languages.
13213 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13215 * config/mips/loongson3a.md: New file.
13216 * config/mips/mips.md: Include loongson3a.md.
13217 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13220 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13222 PR middle-end/47017
13223 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13224 instead of convert_memory_address_addr_space on the base expression.
13226 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13228 * config/spu/spu.c (spu_option_override): Update error text
13229 for bad -march= / -mtune= values.
13231 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13233 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13234 if branch-hint optimization will be performed.
13236 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13238 PR tree-optimization/47148
13239 * ipa-split.c (split_function): Convert arguments to
13240 DECL_ARG_TYPE if possible.
13242 PR tree-optimization/47155
13243 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13244 when computing uns.
13246 PR rtl-optimization/47157
13247 * combine.c (try_combine): If undobuf.other_insn becomes
13248 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13249 and set *new_direct_jump_p too.
13251 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13253 PR tree-optimization/47021
13254 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13256 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13258 * gcc.c (process_command): Update copyright notice dates.
13259 * gcov.c (print_version): Likewise.
13260 * gcov-dump.c (print_version): Likewise.
13261 * mips-tfile.c (main): Likewise.
13262 * mips-tdump.c (main): Likewise.
13264 2011-01-03 Martin Jambor <mjambor@suse.cz>
13266 PR tree-optimization/46801
13267 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13268 aggregate fields start at byte boundary instead of the bit-field flag.
13270 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13273 * gcc.c (main): Revert revision 168407.
13275 2011-01-03 Martin Jambor <mjambor@suse.cz>
13277 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13279 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13281 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13282 vector optab to expand vector/scalar shift, update gimple to vector.
13284 2011-01-03 Martin Jambor <mjambor@suse.cz>
13286 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13289 2011-01-03 Martin Jambor <mjambor@suse.cz>
13291 PR tree-optimization/46984
13292 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13294 (cgraph_create_indirect_edge): Fixed line length.
13295 (cgraph_indirect_call_info): Declare.
13296 (cgraph_make_edge_direct) Update declaration.
13297 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13298 (cgraph_create_indirect_edge): Use it.
13299 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13301 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13302 the new thunk_delta representation.
13303 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13305 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13306 (ipa_read_indirect_edge_info): Likewise.
13307 * lto-cgraph.c (output_edge_opt_summary): New function.
13308 (output_node_opt_summary): Call it on all outgoing edges.
13309 (input_edge_opt_summary): New function.
13310 (input_node_opt_summary): Call it on all outgoing edges.
13312 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13315 * gcc.c (main): Don't check have_o when settting combine_inputs.
13317 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13319 * regrename.c: Add general comment describing the pass.
13320 (struct du_head): Remove 'length' field.
13321 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13322 (regrename_optimize): Do not sort chains. Rework comments, add others.
13323 Force renaming to the preferred class (if any) in the first pass and do
13324 not consider registers that belong to it in the second pass.
13325 (create_new_chain): Do not set 'length' field.
13326 (scan_rtx_reg): Likewise.
13328 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13330 PR tree-optimization/47140
13331 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13332 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13333 to bit_value_binop.
13335 PR rtl-optimization/47028
13336 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13337 parm_birth_insn instead of at the beginning of first bb.
13339 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13341 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13342 Remove the word "see" before "@pxref".
13343 * doc/rtl.texi: Remove the word "see" before "@pxref".
13345 2011-01-01 Jan Hubicka <jh@suse.cz>
13347 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13350 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13353 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13356 Copyright (C) 2011 Free Software Foundation, Inc.
13358 Copying and distribution of this file, with or without modification,
13359 are permitted in any medium without royalty provided the copyright
13360 notice and this notice are preserved.