1 2011-05-04 Richard Guenther <rguenther@suse.de>
3 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6 for constructor indices.
7 (push_init_level): Likewise.
9 2011-05-04 Richard Guenther <rguenther@suse.de>
11 * explow.c (promote_mode): Move variable declarations before code.
13 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
15 * tree.h (build_function_type_array): Declare.
16 (build_varargs_function_type_array): Declare.
17 (build_function_type_vec, build_varargs_function_type_vec): Define.
18 * tree.c (build_function_type_array_1): New function.
19 (build_function_type_array): New function.
20 (build_varargs_function_type_array): New function.
22 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
24 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
25 before setting STMT_VINFO_TYPE.
27 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
30 instead of spu_pass_by_reference.
32 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34 * calls.c (emit_library_call_value_1): Invoke
35 promote_function_mode hook on libcall arguments.
36 * explow.c (promote_function_mode, promote_mode): Handle TYPE
38 * targhooks.c (default_promote_function_mode): Lisewise.
39 * config/s390/s390.c (s390_promote_function_mode): Likewise.
40 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
42 * doc/tm.texi: Document that TYPE argument might be NULL.
44 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
46 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
48 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
51 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
53 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
55 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
56 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
58 * mips-tfile.c: ... here.
59 Don't include coretypes.h, tm.h, filenames.h.
60 (saber_stop): Remove definition and all calls.
62 (__LINE__): Remove default.
63 (Size_t, Ptrdiff_t): Remove definitions.
64 Replace by size_t, ptrdiff_t.
65 [!MIPS_DEBUGGING_INFO]: Remove.
66 (SHASH_SIZE, THASH_SIZE): Remove defaults.
67 (progname): Add const.
69 Replace all uses by static.
70 (ALIGN_SYMTABLE_OFFSET): Remove default.
71 * mips-tdump.c: Don't include coretypes.h, tm.h.
72 Remove !MIPS_IS_STAB guard.
73 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
74 $(TM_H), filenames.h dependencies.
75 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
77 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
80 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
81 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
83 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
86 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
87 account and save/restore RETS.
88 (PROFILE_BEFORE_PROLOGUE): Define.
89 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
90 the push insn to use predecrement.
92 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
95 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
97 2011-05-04 Nick Clifton <nickc@redhat.com>
99 * config/mn10300/mn10300.c: Include cfgloop.h.
101 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
102 Lcc or a FLcc insn into the instruction stream.
103 (mn10300_block_contains_call): New function. Returns true if the
104 given basic block contains a CALL insn.
105 (mn10300_loop_contains_call_insn): New function. Returns true if
106 the given loop contains a CALL insn.
107 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
108 to use the SETLB and Lcc or FLcc insns.
109 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
110 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
111 * config/mn10300/mn10300.opt (msetlb): New option. Used to
112 disable the SETLB optimization.
113 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
114 __SETLB__ or __NO_SETLB__.
115 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
116 (movsf_internal): Handle MDR register.
117 (cmpsi): Make visible.
118 (setlb): New pattern.
122 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
125 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
127 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
128 (vec_concatv2di_rex64_sse): Ditto.
129 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
130 (*vec_extractv2di_1_rex64): Ditto.
133 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
135 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
137 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
139 2011-05-04 Richard Guenther <rguenther@suse.de>
141 * tree.h (int_const_binop): Remove notrunc argument.
142 * fold-const.c (int_const_binop): Remove notrunc argument. Always
143 create integer constants that are properly truncated.
144 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
145 (const_binop): Remove zero notrunc argument to int_const_binop.
146 (size_binop_loc): Likewise.
147 (fold_div_compare): Likewise.
148 (maybe_canonicalize_comparison_1): Likewise.
149 (fold_comparison): Likewise.
150 (fold_binary_loc): Likewise.
151 (multiple_of_p): Likewise.
152 * expr.c (store_constructor): Likewise.
153 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
154 (maybe_fold_stmt_addition): Likewise.
155 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
156 * stor-layout.c (layout_type): Likewise.
157 * tree-data-ref.c (tree_fold_divides_p): Likewise.
158 * tree-sra.c (build_ref_for_offset): Likewise.
159 (build_user_friendly_ref_for_offset): Likewise.
160 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
161 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
162 * tree-ssa-loop-niter.c (inverse): Likewise.
163 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
164 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
165 * tree-switch-conversion.c (check_range): Likewise.
166 (build_constructors): Likewise.
167 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
168 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
169 (extract_range_from_assert): Likewise.
170 (vrp_int_const_binop): Likewise.
171 (extract_range_from_binary_expr): Likewise.
172 (extract_range_from_unary_expr): Likewise.
173 (check_array_ref): Likewise.
174 (find_case_label_range): Likewise.
175 (simplify_div_or_mod_using_ranges): Likewise.
176 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
177 comparing case labels for merging.
179 2011-05-03 Mark Wielaard <mjw@redhat.com>
181 * dwarf2out.c (debug_str_hash_forced): Removed.
182 (gen_label_for_indirect_string): Removed.
183 (get_debug_string_label): Removed.
184 (AT_string_form): Generate label directly.
185 (output_indirect_string): Test indirect_string_node for
186 DW_FORM_strp instead of checking label and refcount.
187 (prune_indirect_string): Removed.
188 (prune_unused_types): Don't check debug_str_hash_forced or
189 call prune_indirect_string.
191 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
194 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
196 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
200 * combine.c (try_combine): Skip debug insns at m_split tests.
202 2011-04-26 Mark Wielaard <mjw@redhat.com>
205 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
206 when info_section_emitted.
208 2011-05-03 Joseph Myers <joseph@codesourcery.com>
210 * config/mips/mips-opts.h: New.
211 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
213 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
214 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
215 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
217 * config/mips/mips.h (enum mips_code_readable_setting): Move to
219 (mips_abi, mips_code_readable): Don't declare.
220 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
221 (mabi=): Use Enum and Var.
222 (mips_abi): New Enum and EnumValue entries.
223 (mcode-readable=): Use Enum and Var.
224 (mips_code_readable_setting): New Enum and EnumValue entries.
225 (mr10k-cache-barrier=): Use Enum and Var.
226 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
228 2011-05-03 Jan Hubicka <jh@suse.cz>
230 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
231 replace hash by pointer map.
232 (cgraph_node_set_element_def, cgraph_node_set_element,
233 const_cgraph_node_set_element, varpool_node_set_element_def,
234 varpool_node_set_element, const_varpool_node_set_element): Remove.
235 (free_cgraph_node_set, free_varpool_node_set): New function.
236 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
237 * tree-emutls.c: Free varpool node set.
238 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
239 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
240 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
241 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
242 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
243 Move here from ipa.c; implement using pointer_map
244 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
245 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
246 debug_cgraph_node_set, varpool_node_set_new,
247 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
248 dump_varpool_node_set, debug_varpool_node_set):
250 * passes.c (ipa_write_summaries): Update.
252 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
255 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
256 bf542/bf544/bf547/bf548/bf549.
258 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
260 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
262 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
265 * config/bfin/bfin.md (MOVCC): New mode_macro.
266 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
267 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
268 comments from generated assembly.
270 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
273 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
274 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
275 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
276 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
277 * config/bfin/lib1funcs.asm (___muldi3): New function.
279 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
281 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
282 build_function_type_list instead of build_function_type.
283 Rearrange initialization of `args' to do so.
285 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
287 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
288 instead of build_function_type.
290 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
292 * config/rs6000/rs6000.c (spe_init_builtins): Call
293 build_function_type_list instead of build_function_type.
294 (paired_init_builtins, altivec_init_builtins): Likewise.
295 (builtin_function_type): Likewise.
297 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
299 * config/sh/sh.c (sh_media_init_builtins): Call
300 build_function_type_list instead of build_function_type.
302 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
304 * config/sparc/sparc.c (sparc_file_end): Call
305 build_function_type_list instead of build_function_type.
307 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
309 * config/alpha/alpha.c (alpha_init_builtins): Call
310 build_function_type_list instead of build_function_type.
312 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
314 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
315 build_function_type_list instead of build_function_type.
317 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
319 * config/iq2000/i2000.c (iq2000_init_builtins): Call
320 build_function_type_list instead of build_function_type.
321 Delete `endlink' variable.
323 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
325 * config/avr/avr.c (avr_init_builtins): Call
326 build_function_type_list instead of build_function_type.
328 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
330 * config/picochip/picochip.c (picochip_init_builtins): Call
331 build_function_type_list instead of build_function_type.
332 Delete `endlink' variable.
334 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
336 * config/bfin/bfin.c (bfin_init_builtins): Call
337 build_function_type_list instead of build_function_type.
339 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
342 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
343 that's not CONST_INT. Seemingly redundant check is due to PR39768.
345 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
348 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
349 libbffastfp overrides libgcc when -mfast-fp.
351 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
353 Originally from Bernd Schmidt
354 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
355 * config/bfin/bfin.c (override_options): Test it and error if
358 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
360 Originally From Bernd Schmidt
361 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
364 2011-05-03 Jeff Law <law@redhat.com>
366 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
367 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
368 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
369 than accessing AUX field directly. Free the AUX field before
371 (thread_block, thread_through_loop_header): Likewise.
372 (thread_single_edge, mark_threaded_blocks): Likewise.
373 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
374 (register_jump_thread): Do not attempt to thread to a NULL edge.
376 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
378 * function.c (init_function_start): Call decide_function_section.
379 * varasm.c (decide_function_section): New function.
380 (assemble_start_function): When not using
381 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
382 or first_function_block_is_cold.
383 * rtl.h (decide_function_section): Declare.
385 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
386 Jakub Jelinek <jakub@redhat.com>
389 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
390 only succeed if req_mode is the same as set_mode.
392 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
394 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
395 * genemit.c (gen_exp): Handle RETURN.
396 * emit-rtl.c (verify_rtx_sharing): Likewise.
397 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
398 * rtl.c (copy_rtx): RETURN is shared.
399 * rtl.h (enum global_rtl_index): Add GR_RETURN.
401 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
402 * config/s390/s390.c (s390_emit_epilogue): Likewise.
403 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
404 * config/cris/cris.c (cris_expand_return): Likewise.
405 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
406 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
407 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
408 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
409 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
411 * config/v850/v850.c (expand_epilogue): Likewise.
412 * config/bfin/bfin.c (bfin_expand_call): Likewise.
413 * config/arm/arm.md (epilogue): Likewise.
414 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
415 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
418 2011-05-03 Richard Guenther <rguenther@suse.de>
421 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
422 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
423 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
425 2011-05-03 Richard Guenther <rguenther@suse.de>
427 * c-decl.c (grokdeclarator): Instead of looking at
428 TREE_OVERFLOW check if the constant fits in the index type.
430 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
432 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
433 (vec_store_lanes<mode><mode>): Likewise.
435 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
437 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
438 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
439 convert_optab_index values.
440 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
441 * genopinit.c (optabs): Initialize the new optabs.
442 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
443 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
444 (expand_STORE_LANES): New functions.
445 * tree.h (build_array_type_nelts): Declare.
446 * tree.c (build_array_type_nelts): New function.
447 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
448 (vect_model_load_cost): Likewise.
449 (vect_store_lanes_supported, vect_load_lanes_supported)
450 (vect_record_strided_load_vectors): Declare.
451 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
452 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
453 (vect_transform_strided_load): Split out statement recording into...
454 (vect_record_strided_load_vectors): ...this new function.
455 * tree-vect-stmts.c (create_vector_array, read_vector_array)
456 (write_vector_array, create_array_ref): New functions.
457 (vect_model_store_cost): Add store_lanes_p argument.
458 (vect_model_load_cost): Add load_lanes_p argument.
459 (vectorizable_store): Try to use store-lanes functions for
461 (vectorizable_load): Likewise load-lanes and loads.
462 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
463 to vect_model_store_cost.
464 (vect_build_slp_tree): Likewise vect_model_load_cost.
466 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
468 * hooks.h (hook_bool_mode_uhwi_false): Declare.
469 * hooks.c (hook_bool_mode_uhwi_false): New function.
470 * target.def (array_mode_supported_p): New hook.
471 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
472 * doc/tm.texi: Regenerate.
473 * stor-layout.c (mode_for_array): New function.
474 (layout_type): Use it.
475 * config/arm/arm.c (arm_array_mode_supported_p): New function.
476 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
478 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
481 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
482 for -fstack-check if the size to allocate is negative.
484 2011-05-02 Lawrence Crowl <crowl@google.com>
486 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
487 (timevar_cond_start): New for starting a timer only when it is not
489 (timevar_cond_stop): New for stopping a timer when it was not already
492 * timevar.c (timevar_stop): Enable start/stop timers to start again.
493 (timevar_cond_start): New as above.
494 (timevar_cond_stop): New as above.
496 * timevar.def: Add start/stop timers for compiler phases,
497 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
498 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
499 and TV_PHASE_FINALIZE.
500 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
501 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
502 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
503 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
504 Make unused TV_OVERLOAD into a start/stop timer.
506 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
507 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
508 to indicate that they are start/stop timers.
510 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
511 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
512 Move initialization to do_compile.
513 (do_compile): Add initialization from above.
514 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
516 * c-decl.c (c_write_global_declarations): Add start/stop of
517 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
519 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
520 or TV_PARSE_INLINE, as appropriate.
521 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
522 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
524 2011-05-02 Jason Merrill <jason@redhat.com>
527 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
529 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
532 * c-decl.c (finish_decl): Only create a composite if the types are
535 2011-05-02 Joseph Myers <joseph@codesourcery.com>
537 * config/fr30/fr30-protos.h (Mmode): Don't define.
538 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
539 definition where used.
540 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
541 define. Expand definitions where used.
542 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
543 Expand definitions where used.
544 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
545 rx_function_arg, rx_function_arg_advance,
546 rx_function_arg_boundary): Expand definitions of those macros.
547 * config/v850/v850-protos.h (Mmode): Don't define. Expand
548 definition where used.
550 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
552 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
554 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
555 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
556 with *movv2sf_internal_rex64_avx.
557 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
558 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
559 Use %v prefix in insn mnemonic to handle TARGET_AVX.
560 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
561 "vex" in "prefix" attribute calculation.
562 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
564 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
567 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
568 inputs match the output.
570 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
573 * config/m68k/m68k.c (m68k_expand_prologue): Set
574 current_function_static_stack_size.
576 2011-05-02 Jan Hubicka <jh@suse.cz>
578 * lto-streamer.c (lto_streamer_cache_insert_1,
579 lto_streamer_cache_lookup, lto_streamer_cache_create,
580 lto_streamer_cache_delete): Use pointer map instead of hashtable.
581 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
583 2011-05-02 Joseph Myers <joseph@codesourcery.com>
585 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
586 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
587 config/m68k/t-opts: New files.
588 * config/m68k/m68k-tables.opt: New file (generated).
589 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
590 extra_options and m68k/t-opts to tmake_file.
591 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
592 (all_isas): Initialize using m68k-isas.def.
593 (all_microarchs): Initialize using m68k-microarchs.def.
594 (m68k_find_selection): Remove.
595 (m68k_handle_option): Don't assert that global structures are in
596 use. Use error_at. Access variables via opts pointer. Don't
597 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
598 directly for -m68020-40 and -m68020-60.
599 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
600 m68k_tune_entry here.
601 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
603 (m68k_library_id_string): Remove declaration.
604 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
605 (m68k_library_id_string): New Variable.
606 (march=, mcpu=, mtune=): Use Enum and Var.
608 2011-05-02 Richard Guenther <rguenther@suse.de>
610 * varasm.c (output_constructor_regular_field): Compute zero-based
611 index with double-ints. Make sure to ICE instead of producing
613 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
614 in asserts. Properly use a signed type.
616 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
618 * config/i386/sse.md (V): New mode iterator.
619 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
621 (V_256): Rename from AVX256MODE.
622 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
623 condition to all users.
625 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
626 condition to all users.
627 (VF_128): Make V4SF mode unconditional.
628 (VF_256): Rename from AVX256MODEF2P.
629 (VI4F_128): Rename from SSEMODE4S.
630 (VI8F_128): Rename from SSEMODE2D.
631 (VI4F_256): Rename from AVX256MODE8P.
632 (VI8F_256): Rename from AVX256MODE4P.
633 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
634 (ssescalarmodesuffix): Remove SF and DF modes.
635 (SSEMODE124): Remove.
636 (SSEMODE1248): Ditto.
641 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
643 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
645 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
646 xop_pcmov_<mode>256. Use V mode iterator.
648 Adjust RTX patterns globally for renamed mode attributes.
650 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
652 * haifa-sched.c (sched_emit_insn): Emit insn before first
653 non-scheduled insn. Inform back-end about new insn. Add
654 new insn to scheduled_insns list.
656 2011-05-02 Richard Guenther <rguenther@suse.de>
658 PR tree-optimization/48822
659 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
660 (process_scc): Indicate which iteration we start.
662 2011-05-02 Jan Hubicka <jh@suse.cz>
664 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
665 (lto_section_overrun): New.
666 * lto-section-out.c (append_block): Rename to ...
667 (lto_append_block): ... this one; export.
668 (lto_output_1_stream): Move lto lto-streamer.h
669 (lto_output_data_stream): Update.
670 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
671 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
674 2011-05-02 Richard Guenther <rguenther@suse.de>
676 * tree.c (tree_code_counts): New global array.
677 (record_node_allocation_statistics): Count individual tree codes.
678 (dump_tree_statistics): Dump individual code stats.
680 2011-05-01 Jan Hubicka <jh@suse.cz>
682 * ipa-inline.c (caller_growth_limits): Fix thinko when
683 looking for largest stack frame.
684 * ipa-inline.h (dump_inline_summary): Declare.
685 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
687 (dump_inline_summary): Export.
688 (debug_inline_summary): Declare as DEBUG_FUNCTION.
690 2011-05-01 Anatoly Sokolov <aesok@post.ru>
692 * reginfo.c (memory_move_cost): Change rclass argument type form
693 'enum reg_class' to reg_class_t.
694 * reload.h (memory_move_cost): Update prototype.
695 * postreload.c reload_cse_simplify_set): Change type dclass var to
697 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
699 (ira_allocate_and_set_costs): Change aclass argument type form
700 'enum reg_class' to reg_class_t.
701 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
702 Change aclass argument type to reg_class_t.
703 (update_conflict_hard_reg_costs): Change type aclass and pref vars
705 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
706 memory_move_cost call.
708 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
709 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
710 Change type tmp var to reg_class_t.
712 2011-04-30 Jan Hubicka <jh@suse.cz>
714 * ipa-inline.c (can_inline_edge_p): Disregard limits when
715 inlining into function with flatten attribute.
716 (want_inline_small_function_p): Be more realistic about inlining
717 cold calls where callee size grows.
719 2011-04-30 Jan Hubicka <jh@suse.cz>
721 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
724 2011-04-30 Anatoly Sokolov <aesok@post.ru>
726 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
727 PRINT_OPERAND_PUNCT_VALID_P): Remove.
728 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
729 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
730 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
731 (print_operand): Rename to...
732 (sparc_print_operand): ...this. Make static. Adjust
733 sparc_print_operand function call.
734 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
737 2011-04-30 Jan Hubicka <jh@suse.cz>
740 * ipa-inline.c (early_inliner): Disable when doing late
741 addition of function.
743 2011-04-30 Jakub Jelinek <jakub@redhat.com>
745 * dwarf2out.c (get_address_mode): New inline.
746 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
747 if not dwarf_strict emit
748 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
749 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
750 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
751 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
752 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
753 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
754 mem_loc_descriptor callers.
755 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
756 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
757 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
758 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
759 (base_types): New variable.
760 (get_base_type_offset, calc_base_type_die_sizes,
761 base_type_for_mode, mark_base_types, base_type_cmp,
762 move_marked_base_types): New functions.
763 (calc_die_sizes): Assert that die_offset is 0 or equal to
765 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
766 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
767 callers. If not dwarf_strict, call mem_loc_descriptor even for
768 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
769 (gen_subprogram_die): Don't give up on call site parameters
770 with non-integral or large integral modes. Adjust
771 mem_loc_descriptor callers.
772 (prune_unused_types): Call prune_unused_types_mark on base_types
774 (resolve_addr): Call mark_base_types.
775 (dwarf2out_finish): Call move_marked_base_types.
777 PR tree-optimization/48809
778 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
780 (gen_inbound_check): Don't compute index_expr - range_min in utype
781 again, instead reuse SSA_NAME initialized in build_arrays.
782 Remove two useless gsi_for_stmt calls.
784 2011-04-29 Jeff Law <law@redhat.com>
786 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
788 2011-04-29 Martin Jambor <mjambor@suse.cz>
790 * cgraph.h (cgraph_postorder): Remove declaration.
791 * ipa-utils.h (ipa_free_postorder_info): Declare.
792 (ipa_reverse_postorder): Likewise.
793 * cgraphunit.c: Include ipa-utils.h.
794 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
795 * ipa-inline.c: Include ipa-utils.h.
796 (ipa_inline): Update call to ipa_reverse_postorder.
797 * ipa-pure-const.c (propagate_pure_const): Update call to
798 ipa_reduced_postorder and ipa_print_order. Call
799 ipa_free_postorder_info to clean up.
800 (propagate_nothrow): Likewise.
801 * ipa-reference.c (propagate): Removed a useless call to
802 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
803 and ipa_print_order. Call ipa_free_postorder_info to clean up.
804 * ipa.c: Include ipa-utils.h.
805 (ipa_profile): Update call to ipa_reverse_postorder.
806 (cgraph_postorder): Moved to...
807 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
808 (ipa_utils_print_order): Renamed to ipa_print_order.
809 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
811 (ipa_free_postorder_info): New function.
812 * passes.c: Include ipa-utils.h.
813 (do_per_function_toporder): Update call to ipa_reverse_postorder.
814 (ipa_write_summaries): Likewise.
815 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
816 (cgraphunit.o): Likewise.
818 (ipa-inline.o): Likewise.
820 2011-04-29 Jan Hubicka <jh@suse.cz>
822 * gcc.dg/tree-ssa/inline-10.c: New testcase.
823 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
824 * ipa-inline.h (clause_t): Turn into unsigned int.
825 * ipa-inline-analysis.c (add_clause): Do more simplification.
826 (and_predicates): Shortcut more cases.
827 (predicates_equal_p): Move forward; check that clauses are properly
829 (or_predicates): Shortcut more cases.
830 (edge_execution_predicate): Rewrite as...
831 (set_cond_stmt_execution_predicate): ... this function; handle
832 __builtin_constant_p.
833 (set_switch_stmt_execution_predicate): New .
834 (compute_bb_predicates): New.
835 (will_be_nonconstant_predicate): Update TODO.
836 (estimate_function_body_sizes): Use compute_bb_predicates
837 and free them later, always try to estimate if stmt is constant.
838 (estimate_time_after_inlining, estimate_size_after_inlining):
839 Gracefully handle optimized out edges.
840 (read_predicate): Fix off by one error.
842 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
844 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
846 2011-04-27 Xinliang David Li <davidxl@google.com>
848 * tree-profile.c (init_ic_make_global_vars): Set
849 tls attribute on ic vars.
850 * coverage.c (coverage_end_function): Initialize
851 function_list with zero.
853 2011-04-29 Richard Guenther <rguenther@suse.de>
855 * builtins.c (fold_builtin_classify_type): Use integer_type_node
856 for the type of the result.
857 (fold_builtin_isascii): Likewise.
858 (fold_builtin_toascii): Use integer_type_node where appropriate.
859 (fold_builtin_logb): Likewise.
860 (fold_builtin_frexp): Likewise.
861 (fold_builtin_strstr): Likewise.
862 (fold_builtin_strpbrk): Likewise.
863 (fold_builtin_fputs): Likewise.
864 (fold_builtin_sprintf): Likewise.
865 (fold_builtin_snprintf): Likewise.
866 (fold_builtin_printf): Likewise.
867 (do_mpfr_remquo): Use a proper type for the assigned constant.
868 (do_mpfr_lgamma_r): Likewise.
869 * dwarf2out.c (resolve_one_addr): Use size_int.
870 * except.c (init_eh): Likewise.
871 (assign_filter_values): Use integer_type_node for filter values.
872 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
874 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
875 for EH region numbers.
876 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
877 for the shift amount.
879 2011-04-29 Richard Guenther <rguenther@suse.de>
881 * expr.h (expand_shift): Rename to ...
882 (expand_variable_shift): ... this.
883 (expand_shift): Take a constant shift amount.
884 * expmed.c (expand_shift): Rename to ...
885 (expand_variable_shift): ... this.
886 (expand_shift): New wrapper around expand_variable_shift.
887 * expr.c (convert_move, emit_group_load_1, emit_group_store,
888 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
889 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
890 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
891 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
892 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
893 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
894 emit_store_flag_1, emit_store_flag): Likewise.
895 * builtins.c (expand_builtin_signbit): Likewise.
896 * calls.c (load_register_parameters): Likewise.
897 * function.c (assign_parm_setup_block): Likewise.
898 * lower-subreg.c (resolve_shift_zext): Likewise.
899 * optabs.c (widen_bswap, expand_abs_nojump,
900 expand_one_cmpl_abs_nojump, expand_float): Likewise.
901 * spu/spu.c (spu_expand_extv): Likewise.
902 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
904 2011-04-29 Richard Guenther <rguenther@suse.de>
906 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
907 for the remapped region number.
908 * predict.c (build_predict_expr): Use integer_type_node for the
910 * fold-const.c (fold_binary_loc): Use integer_type_node for
911 the shift amount. Use a proper type for the PLUS_EXPR operand.
913 2011-04-29 Michael Matz <matz@suse.de>
915 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
916 other trees that just builtins.
917 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
919 2011-04-29 Richard Guenther <rguenther@suse.de>
921 * tree-nested.c (get_trampoline_type): Use size_int.
922 (get_nl_goto_field): Likewise.
923 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
925 (lower_eh_constructs_2): Likewise.
926 (lower_resx): Likewise.
927 (lower_eh_dispatch): Likewise.
928 * tree-mudflap.c (mf_build_string): Use size_int.
929 (mudflap_register_call): Use integer_type_node for the flag.
930 (mudflap_enqueue_constant): Use size_int.
931 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
932 instead of rebuilding it.
934 2011-04-29 Richard Guenther <rguenther@suse.de>
936 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
938 (find_func_aliases_for_call): Use it more consistently.
940 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
942 * haifa-sched.c (last_nondebug_scheduled_insn): New.
943 (rank_for_schedule): Use it.
944 (schedule_block): Set it.
946 2011-04-28 David Li <davidxl@google.com>
948 * tree.c (crc32_string): Use crc32_byte.
949 (crc32_byte): New function.
950 * tree.h (crc32_byte): New function.
951 * gcov.c (read_graph_file): Handle new cfg_cksum.
952 (read_count_file): Ditto.
953 * profile.c (instrument_values): Ditto.
954 (get_exec_counts): Ditto.
955 (read_profile_edge_counts): Ditto.
956 (compute_branch_probabilities): Ditto.
957 (compute_value_histograms): Ditto.
958 (branch_prob): Ditto.
959 (end_branch_prob): Ditto.
960 * coverage.c (read_counts_file): Ditto.
961 (get_coverage_counts): Ditto.
962 (tree_coverage_counter_addr): Ditto.
963 (coverage_checksum_string): Ditto.
964 (coverage_begin_output): Ditto.
965 (coverage_end_function): Ditto.
966 (build_fn_info_type): Ditto.
967 (build_fn_info_value): Ditto.
968 * libgcov.c (gcov_exit): Ditto.
969 * gcov-dump.c (tag_function): Ditto.
970 (compute_checksum): Remove.
972 2011-04-29 Alan Modra <amodra@gmail.com>
974 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
975 unspec plus offset. Tidy macho code.
977 2011-04-29 Martin Jambor <mjambor@suse.cz>
979 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
980 node instead of a decl. Update all callers.
981 * cgraph.h: Update declaration.
983 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
985 PR tree-optimization/48765
986 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
987 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
988 to indicate if loop aware SLP is being used. Scan the statements
989 and update the vectorization factor according to the type of
990 vectorization before statement analysis.
991 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
992 pass it to vect_analyze_loop_operations.
993 (vectorizable_reduction): Set number of copies to 1 in case of pure
995 * tree-vect-stmts.c (vectorizable_conversion,
996 vectorizable_assignment, vectorizable_shift,
997 vectorizable_operation, vectorizable_type_demotion,
998 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1000 (vectorizable_condition): Move the check that it is not SLP
1001 vectorization before the number of copies check.
1002 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1003 to vectorize the loop using SLP.
1005 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1008 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1011 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1013 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1014 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1015 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1016 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1017 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1019 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1020 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1021 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1022 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1023 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1024 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1026 * config/i386/linux.h (REG_NAME): Don't define.
1027 * config/i386/linux64.h (REG_NAME): Don't define.
1028 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1029 Undefine before defining.
1031 2011-04-28 Jan Hubicka <jh@suse.cz>
1033 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1034 nonconstant_names array.
1035 (estimate_function_body_sizes): Build nonconstant_names array; handle
1036 BUILT_IN_CONSTANT_P.
1038 2011-04-28 Richard Guenther <rguenther@suse.de>
1042 2011-04-28 Richard Guenther <rguenther@suse.de>
1044 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1045 as late as possible.
1047 2011-04-28 Richard Guenther <rguenther@suse.de>
1049 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1050 (debug_constraint): Do it here.
1051 (dump_constraints): And here.
1052 (rewrite_constraints): And here.
1053 (dump_constraint_edge): Remove.
1054 (dump_constraint_graph): Rewrite to produce DOT output.
1055 (solve_constraints): Build succ graph as late as possible.
1056 Dump constraint graphs before and after solving.
1058 2011-04-28 Richard Guenther <rguenther@suse.de>
1060 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1061 New function split out from ...
1062 (find_func_aliases): ... here. Call it.
1063 (find_func_aliases_for_call): Likewise.
1065 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1067 * internal-fn.h (internal_fn_name_array): Declare.
1068 (internal_fn_flags_array): Likewise.
1070 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1072 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1073 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1075 (ssemodefsuffix): Remove.
1076 (ssevecmodesuffix): New mode attribute.
1077 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1078 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1079 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1080 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1081 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1082 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1083 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1084 ssemodesuffix mode attribute.
1085 (float splitters): Use ssevecmodesuffix mode attribute.
1086 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1087 (sseinsmode): Rename from avxvecmode.
1088 (avxsizesuffix): Rename from avxmodesuffix.
1089 (sseintvecmode): Rename from avxpermvecmode.
1090 (ssedoublevecmode): Rename from ssedoublesizemode.
1091 (ssehalfvecmode): Rename from avxhalfvecmode.
1092 (ssescalarmode): Rename from avxscalarmode.
1093 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1094 templates for ssemodesuffix mode attribute.
1095 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1098 Adjust RTX patterns globally for renamed mode attributes.
1100 2011-04-27 Jan Hubcika <jh@suse.cz>
1102 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1103 * ipa-inline-analysis.c: Include alloc-pool.h.
1104 (edge_predicate_pool): New.
1105 (trye_predicate_p): New function
1106 (false_predicate_p): New function.
1107 (add_clause): Sanity check that false clauses are "optimized";
1108 never add clauses to predicate that is already known to be false.
1109 (and_predicate): Use flase_predicate_p.
1110 (evaulate_predicate): Rename to ...
1111 (evaluate_predicate): ... this one; update all callers; assert
1112 that false is not listed among possible truths.
1113 (dump_predicate): Use true_predicate_p.
1114 (account_size_time): Use false_predicate_p.
1115 (evaulate_conditions_for_edge): Rename to ...
1116 (evaluate_conditions_for_edge) ... this one.
1117 (edge_set_predicate): New function.
1118 (inline_edge_duplication_hook): Duplicate edge predicates.
1119 (inline_edge_removal_hook): Free edge predicates.
1120 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1121 (dump_inline_summary): Update.
1122 (estimate_function_body_sizes): Set edge predicates.
1123 (estimate_calls_size_and_time): Handle predicates.
1124 (estimate_callee_size_and_time): Update.
1125 (remap_predicate): Add toplev_predicate; update comment.
1126 (remap_edge_predicates): New function.
1127 (inline_merge_summary): Compute toplev predicate; update.
1128 (read_predicate): New function.
1129 (read_inline_edge_summary): Use it.
1130 (inline_read_section): Likewise.
1131 (write_predicate): New function.
1132 (write_inline_edge_summary): Use it.
1133 (inline_write_summary): Likewise.
1134 (inline_free_summary): Free alloc pool and edge summary vec.
1136 2011-04-27 Richard Guenther <rguenther@suse.de>
1138 * tree-ssa-structalias.c (changed_count): Remove.
1139 (changed): Use a bitmap.
1140 (unify_nodes): Adjust.
1141 (do_sd_constraint): Likewise.
1142 (do_ds_constraint): Likewise.
1143 (do_complex_constraint): Likewise.
1144 (solve_graph): Likewise.
1146 2011-04-27 Jan Hubicka <jh@suse.cz>
1148 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1150 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1152 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1153 (avx_vperm2f128_*_operand): Ditto.
1154 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1155 Use avx_vpermilp_parallel in insn condition.
1156 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1157 Use avx_vperm2f128_parallel in insn condition.
1159 2011-04-27 Richard Guenther <rguenther@suse.de>
1161 * Makefile.in (tree-ssa-structalias.o): Remove
1162 gt-tree-ssa-structalias.h dependency.
1163 (GTFILES): Remove tree-ssa-structalias.c.
1164 * tree.c (allocate_decl_uid): New function.
1165 (make_node_stat): Use it.
1166 (copy_node_stat): Likewise.
1167 * tree.h (allocate_decl_uid): Declare.
1168 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1169 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1170 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1171 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1172 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1173 (struct heapvar_map): Likewise.
1174 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1175 heapvar_insert): Likewise.
1176 (make_heapvar_for): Rename to ...
1177 (make_heapvar): ... this. Simplify.
1178 (fake_var_decl_obstack): New global var.
1179 (build_fake_var_decl): New function.
1180 (make_constraint_from_heapvar): Adjust.
1181 (handle_lhs_call): Likewise.
1182 (create_function_info_for): Likewise.
1183 (intra_create_variable_infos): Likewise.
1184 (init_alias_vars): Allocate fake_var_decl_obstack.
1185 (init_alias_heapvars, delete_alias_heapvars): Remove.
1186 (compute_points_to_sets): Do not call init_alias_heapvars.
1187 (ipa_pta_execute): Likewise.
1188 (delete_points_to_sets): Free fake_var_decl_obstack.
1190 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1192 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1193 (si_from_UTItype, si_to_UTItype): New functions.
1194 (__udivmodti4): Use them to implement type-punning.
1195 * config/spu/multi3.c (union qword_TItype): New data type.
1196 (si_from_TItype, si_to_TItype): New functions.
1197 (__multi3): Use them to implement type-punning.
1199 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1201 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1203 2011-04-27 Jan Hubicka <jh@suse.cz>
1205 * ipa-prop.c (function_insertion_hook_holder): New holder.
1206 (ipa_add_new_function): New function.
1207 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1208 Register/deregister holder.
1210 2011-04-27 Richard Guenther <rguenther@suse.de>
1212 PR tree-optimization/48772
1213 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1215 2011-04-27 Richard Guenther <rguenther@suse.de>
1217 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1218 TARGET_MEM_REF handling.
1220 2011-04-27 Nick Clifton <nickc@redhat.com>
1222 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1223 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1224 (REG_CLASS_NAMES): Likewise.
1225 (REG_CLASS_CONTENTS): Likewise.
1226 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1227 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1228 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1229 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1230 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1231 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1232 duplicate register classes.
1233 (frv_class_likely_spilled_p): Likewise.
1234 (frv_register_move_cost): Likewise.
1236 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1237 end of the regno_reg_class array.
1239 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1242 * c-typeck.c (build_binary_op): Don't wrap arguments if
1243 int_operands is true.
1245 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1248 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1249 targetm.calls.must_pass_in_stack for void type.
1251 2011-04-26 Jan Hubicka <jh@suse.cz>
1253 * cgraphbuild.c (build_cgraph_edges): Update call
1254 of cgraph_create_edge and cgraph_create_indirect_edge.
1255 * cgraph.c (cgraph_create_edge_including_clones,
1256 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1257 cgraph_update_edges_for_call_stmt_node): Do not take nest
1258 argument; do not initialize call_stmt_size/time.
1259 (dump_cgraph_node): Do not dump nest.
1260 (cgraph_clone_edge): Do not take loop_nest argument;
1261 do not propagate it; do not clone call_stmt_size/time.
1262 (cgraph_clone_node): Likewise.
1263 (cgraph_create_virtual_clone): Update.
1264 * cgraph.h (struct cgraph_edge): Remove
1265 call_stmt_size/call_stmt_time/loop_nest.
1266 (cgraph_create_edge, cgraph_create_indirect_edge,
1267 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1269 * tree-emutls.c (gen_emutls_addr): Update.
1270 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1271 loop_nest; handle indirect calls, too.
1272 (clone_inlined_nodes): Do not care about updating inline summaries.
1273 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1274 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1275 stream call_stmt_size/call_stmt_time/loop_nest.
1276 * ipa-inline.c (edge_badness): Update.
1277 (ipa_inline): dump summaries after inlining.
1278 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1280 (inline_edge_summary): New function.
1281 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1282 (inline_edge_removal_hook): Handle edge summaries.
1283 (inline_edge_duplication_hook): New hook.
1284 (inline_summary_alloc): Alloc hooks.
1285 (initialize_growth_caches): Do not register removal hooks.
1286 (free_growth_caches); Do not free removal hook.
1287 (dump_inline_edge_summary): New function.
1288 (dump_inline_summary): Use it.
1289 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1290 (inline_update_callee_summaries): New function.
1291 (inline_merge_summary): Use it.
1292 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1293 (read_inline_edge_summary): New function.
1294 (inline_read_section): Use it.
1295 (write_inline_edge_summary): New function.
1296 (inline_write_summary): Use it.
1297 (inline_free_summary): Free edge new holders.
1298 * tree-inline.c (copy_bb): Update.
1300 2011-04-26 Jason Merrill <jason@redhat.com>
1302 * tree-eh.c (lower_try_finally_switch): Create the label along with
1303 the CASE_LABEL_EXPR.
1305 2011-04-26 David S. Miller <davem@davemloft.net>
1306 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1308 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1309 * configure: Regenerate.
1311 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1314 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1316 (VEC_reduc): New code iterator and splitters for vector reduction.
1317 (VEC_reduc_name): Ditto.
1318 (VEC_reduc_rtx): Ditto.
1319 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1320 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1322 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1323 support for extracting SF on VSX.
1325 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1326 generating xscvspdp.
1327 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1328 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1329 double add, minimum, maximum vector reduction.
1330 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1331 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1332 optimize double vector reduction.
1333 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1335 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1337 * config/fr30/fr30.h (inhibit_libc): Don't define.
1338 * config/m32r/m32r-protos.h: Correct comment.
1339 * config/v850/v850.h (GHS_default_section_names,
1340 GHS_current_section_names): Use tree, not union tree_node *.
1342 2011-04-26 Xinliang David Li <davidxl@google.com>
1344 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1345 * c-family/c-opts.c (c_common_handle_option): Set
1346 warn_maybe_uninitialized.
1347 * opts.c (common_handle_option): Ditto.
1348 * common.opt: New option.
1349 * tree-ssa.c (warn_uninit): Add one more parameter.
1350 (warn_uninitialized_var): Pass warning code.
1351 * tree-flow.h: Interface change.
1354 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1356 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1357 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1358 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1360 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1362 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1363 * config/mips/mips.opt (mmips-tfile): Remove.
1365 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1366 mips-tdump reference to ...
1367 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1368 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1369 reference by Tru64 UNIX.
1371 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1374 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1375 is error_mark_node, set value to NULL.
1377 PR tree-optimization/48734
1378 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1379 if return value from maybe_fold_*_comparsions isn't something
1380 the code is prepared to handle.
1382 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1384 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1386 (ext_QIreg_nomode_operands): Remove.
1387 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1391 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1393 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1395 2011-04-26 Richard Guenther <rguenther@suse.de>
1397 * c-typeck.c (build_unary_op): Do not expand array-refs via
1398 pointer arithmetic. Only adjust qualifiers for function types.
1400 2011-04-26 Richard Guenther <rguenther@suse.de>
1403 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1404 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1405 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1406 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1408 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1410 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1411 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1412 * doc/extend.texi: Document __underlying_type.
1414 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1416 * config/rs6000/titan.md (automata_option "progress"): Remove.
1418 2011-04-25 Jeff Law <law@redhat.com>
1420 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1422 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1424 * system.h (ENUM_BITFIELD): Remove.
1426 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1427 Eric Botcazou <ebotcazou@adacore.com>
1429 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1430 for STORE_FLAG_VALUE==-1 case.
1432 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1435 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1436 LEGITIMATE_PIC_OPERAND_P.
1438 2011-04-24 Jan Hubicka <jh@suse.cz>
1440 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1442 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1443 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1444 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1445 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1446 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1447 Sanity check predicate length.
1448 (remap_predicate): Likewise; sanity check jump functions.
1449 (inline_read_section, inline_write_summary): Sanity check
1452 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1455 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1456 __is_literal_type, and __is_trivial; update throughout about
1457 possibly cv-qualified void types.
1459 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1461 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1462 testsuite and make it version agnostic.
1464 2011-04-22 Jan Hubicka <jh@suse.cz>
1466 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1468 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1471 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1472 to VOID_TYPE even around MODIFY_EXPR.
1474 2011-04-22 Mike Stump <mikestump@comcast.net>
1476 * gensupport.c (read_md_rtx): Fix typo in comment.
1477 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1480 2011-04-22 Jan Hubicka <jh@suse.cz>
1482 * gengtype.c (open_base_files): Add ipa-inline.h include.
1483 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1484 ipa-prop.c; update all uses.
1485 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1486 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1487 merge summary of inlined function into former caller.
1488 * ipa-inline.c (max_benefit): Remove.
1489 (edge_badness): Compensate for removal of benefits.
1490 (update_caller_keys): Use
1491 reset_node_growth_cache/reset_edge_growth_cache.
1492 (update_callee_keys): Likewise.
1493 (update_all_callee_keys): Likewise.
1494 (inline_small_functions): Do not collect max_benefit; do not reset
1495 estimated_growth; call free_growth_caches and initialize_growth_caches.
1496 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1497 struct size_time_entry): New structures.
1498 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1499 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1500 and estimated_growth.
1501 (edge_growth_cache_entry): New structure.
1502 (node_growth_cache, edge_growth_cache): New global vars.
1503 (estimate_growth): Turn into inline.
1504 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1505 initialize_growth_caches, free_growth_caches): Declare.
1506 (estimate_edge_growth): Rewrite.
1507 (estimate_edge_time): Implement as inline cache lookup.
1508 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1510 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1511 (NUM_CONDITIONS): New constant.
1512 (predicate_conditions): New enum.
1513 (IS_NOT_CONSTANT): New constant.
1514 (edge_removal_hook_holder): New var.
1515 (node_growth_cache, edge_growth_cache): New global vars.
1516 (true_predicate, single_cond_predicate, false_predicate,
1517 not_inlined_predicate, add_condition, add_clause, and_predicates,
1518 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1519 dump_clause, dump_predicate, account_size_time,
1520 evaulate_conditions_for_edge): New functions.
1521 (inline_summary_alloc): Move to heap.
1522 (inline_node_removal_hook): Clear condition and entry vectors.
1523 (inline_edge_removal_hook): New function.
1524 (initialize_growth_caches, free_growth_caches): New function.
1525 (dump_inline_summary): Update.
1526 (edge_execution_predicate): New function.
1527 (will_be_nonconstant_predicate): New function.
1528 (estimate_function_body_sizes): Compute BB and constantness predicates.
1529 (compute_inline_parameters): Do not clear estimated_growth.
1530 (estimate_edge_size_and_time): New function.
1531 (estimate_calls_size_and_time): New function.
1532 (estimate_callee_size_and_time): New function.
1533 (remap_predicate): New function.
1534 (inline_merge_summary): New function.
1535 (do_estimate_edge_time): New function based on...
1536 (estimate_edge_time): ... this one.
1537 (do_estimate_edge_growth): New function.
1538 (do_estimate_growth): New function based on....
1539 (estimate_growth): ... this one.
1540 (inline_analyze_function): Analyze after deciding on jump functions.
1541 (inline_read_section): New function.
1542 (inline_read_summary): Use it.
1543 (inline_write_summary): Write all the new data.
1544 * ipa-prop.c (ipa_get_param_decl_index): Export.
1545 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1546 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1548 (ipa_get_lattice): Move here from ipa-cp.c
1549 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1550 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1551 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1552 cgraph_edge_inlinable_p): Remove.
1553 * cgraphunit.c: Include ipainline.h
1554 (cgraph_process_new_functions): Update call of
1555 compute_inline_parameters.
1557 2011-04-22 Richard Guenther <rguenther@suse.de>
1559 * tree.c (build_int_cst): Properly create canonicalized integer
1561 (build_int_cst_type): Remove scary comments.
1563 2011-04-22 Xinliang David Li <davidxl@google.com>
1565 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1566 by default when -Wno-error is not specified.
1567 * opts-global.c (decode_options): Remove call to
1568 control_warning_options.
1570 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1572 PR tree-optimization/48717
1573 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1574 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1576 2011-04-22 Joseph Myers <joseph@codesourcery.com>
1578 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1579 definition where used.
1581 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1584 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1585 TREE_STATIC variables declared inside of some OpenMP construct.
1587 2011-04-22 Martin Jambor <mjambor@suse.cz>
1590 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1592 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
1595 * c-typeck.c (pop_init_level): Do not warn about initializing
1598 2011-04-22 Alan Modra <amodra@gmail.com>
1600 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1601 when returning call_cookie.
1602 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1603 pointers, to functions with no more vector args than the current
1604 function, and some non-local calls for ABI_V4.
1605 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1606 sibcall_nonlocal_aix64): Combine to ..
1607 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1608 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1609 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1610 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1611 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1613 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1614 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1615 sibcall_value_symbolic_64): Delete.
1617 2011-04-21 Xinliang David Li <davidxl@google.com>
1619 * cgraph.h: Remove pid.
1620 * cgraph.c: Remove pid.
1621 * value-prof.c (init_node_map): New function.
1622 (del_node_map): New function.
1623 (find_func_by_funcdef_no): New function.
1624 (gimple_ic_transform): Call new function.
1625 * cgraphunit.c (cgraph_finalize_function): Remove pid.
1626 * function.c (get_last_funcdef_no): New function.
1627 * function.h (get_last_funcdef_no): New function.
1628 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1629 to libgcov function.
1630 (tree-profiling): Call node map init and delete function.
1632 2011-04-21 Ian Lance Taylor <iant@google.com>
1634 * godump.c (go_format_type): Use exported Go name for anonymous
1637 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1639 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1640 Call builtin_function_type_list instead of builtin_function_type.
1641 (UNARY, BINARY, TRINARY, QUAD): Likewise.
1643 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1645 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1646 build_function_type_list instead of build_function_type.
1647 Delete variable `endlink'.
1649 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1651 * config/s390/s390.c (s390_init_builtins): Call
1652 build_function_type_list instead of build_function_type.
1654 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1656 * config/ia64/ia64.c (ia64_init_builtins): Call
1657 build_function_type_list instead of builtin_function_type.
1659 2011-04-21 Easwaran Raman <eraman@google.com>
1661 * cfgexpand.c (stack_var): Remove OFFSET...
1662 (add_stack_var): ...and its reference here...
1663 (expand_stack_vars): ...and here.
1664 (stack_var_cmp): Sort by descending order of size.
1665 (partition_stack_vars): Change heuristic.
1666 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1667 (dump_stack_var_partition): Add newline after each partition.
1669 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
1670 Jeff Law <law@redhat.com>
1672 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1673 * gengtype.c (matching_file_name_substitute): Likewise.
1675 2011-04-21 Richard Guenther <rguenther@suse.de>
1678 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1680 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1682 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1684 2011-04-21 Richard Guenther <rguenther@suse.de>
1686 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1689 2011-04-21 Richard Guenther <rguenther@suse.de>
1691 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1692 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1693 Use DECL_P, not SSA_VAR_P.
1694 (ptr_derefs_may_alias_p): Likewise.
1695 (ptr_deref_may_alias_ref_p_1): Likewise.
1696 (decl_refs_may_alias_p): Likewise.
1697 (refs_may_alias_p_1): Likewise.
1698 (ref_maybe_used_by_call_p_1): Likewise.
1699 (call_may_clobber_ref_p_1): Likewise.
1700 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1701 are either MEM_REF or TARGET_MEM_REF.
1702 (indirect_refs_may_alias_p): Likewise.
1703 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1704 for MEM_EXPR of indirect calls.
1706 2011-04-21 Tristan Gingold <gingold@adacore.com>
1708 * vmsdbgout.c (write_srccorr): Compute file length from the string.
1709 (dst_file_info_struct): Remove flen field.
1710 (lookup_filename): Remove code that set flen field.
1712 2011-04-21 Tristan Gingold <gingold@adacore.com>
1714 * config/ia64/ia64.c (ia64_start_function): Add a guard.
1716 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
1719 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1720 vec_extract and vec_concat for non-SSE4_1 targets.
1722 2011-04-21 Richard Guenther <rguenther@suse.de>
1724 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1727 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1729 * config/i386/cygming.h (union tree_node, TREE): Don't define or
1731 (FILE): Don't undefine.
1733 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1735 * config/alpha/alpha.c (struct machine_function): Use rtx, not
1737 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1739 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
1740 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
1741 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1743 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
1744 definitions where used.
1745 * config/microblaze/microblaze.h (struct microblaze_args): Use
1746 rtx, not struct rtx_def *.
1747 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1749 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1750 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
1751 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1752 not struct rtx_def *.
1753 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1755 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1757 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
1759 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1761 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1762 operand_equal_p to compare DR_BASE_ADDRESSes.
1763 (vect_check_interleaving): Likewise.
1765 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1768 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1769 for all Neon struct constants.
1771 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1773 * target.def (legitimate_constant_p): New hook.
1774 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
1775 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
1776 * doc/tm.texi: Regenerate.
1777 * hooks.h (hook_bool_mode_rtx_true): Declare.
1778 * hooks.c (hook_bool_mode_rtx_true): Define.
1779 * system.h (LEGITIMATE_CONSTANT_P): Poison.
1780 * calls.c (precompute_register_parameters): Replace uses of
1781 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
1782 (emit_library_call_value_1): Likewise.
1783 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
1784 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
1785 * ira-costs.c (scan_one_insn): Likewise.
1786 * recog.c (general_operand, immediate_operand): Likewise.
1787 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
1788 * reload1.c (init_eliminable_invariants): Likewise.
1790 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
1792 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
1793 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
1795 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1796 * config/alpha/predicates.md (input_operand): Update call to
1797 alpha_legitimate_constant_p.
1799 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
1800 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
1801 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
1802 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1803 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
1804 (arm_legitimate_constant_p): New functions.
1805 (arm_cannot_force_const_mem): Make static.
1807 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
1809 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
1810 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
1811 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
1812 instead of bfin_legitimate_constant_p.
1813 (bfin_legitimate_constant_p): Make static. Add a mode argument.
1814 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1816 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
1818 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
1820 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
1821 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
1822 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1823 (frv_legitimate_constant_p): Make static. Add a mode argument.
1825 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
1826 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
1827 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
1829 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
1830 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
1831 * config/i386/i386.c (legitimate_constant_p): Rename to...
1832 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
1834 (ix86_cannot_force_const_mem): Update accordingly.
1835 (ix86_legitimate_address_p): Likewise.
1836 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1837 * config/i386/i386.md: Update commentary.
1839 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
1840 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
1841 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1842 (ia64_legitimate_constant_p): Make static. Add a mode argument.
1844 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
1846 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
1847 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
1848 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1849 (lm32_legitimate_constant_p): Make static. Add a mode argument.
1851 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
1852 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
1853 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
1855 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
1856 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1857 (m32r_legitimate_constant_p): New function.
1859 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
1860 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
1861 LEGITIMATE_CONSTANT_P.
1862 (LEGITIMATE_CONSTANT_P): Delete.
1863 * config/m68k/m68k.c (m68k_expand_prologue): Call
1864 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
1865 (m68k_legitimate_constant_p): New function.
1866 * config/m68k/m68k.md: Update comments.
1868 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
1869 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1870 (mcore_legitimate_constant_p): New function.
1872 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
1873 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
1874 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
1875 Add a mode argument.
1876 (mep_legitimate_address): Update accordingly.
1877 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1879 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
1881 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
1882 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
1883 static. Check OP's mode for VOIDmode.
1884 (microblaze_legitimate_constant_p): New function.
1885 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1887 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
1888 * config/mips/mips.c (mips_legitimate_constant_p): New function.
1889 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
1890 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1891 * config/mips/predicates.md: Update comments.
1893 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
1894 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
1895 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1896 (mmix_legitimate_constant_p): Make static, return a bool, and take
1898 (mmix_print_operand_address): Update accordingly.
1900 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
1902 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
1903 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
1904 static. Add a mode argument.
1905 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1907 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
1909 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
1910 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1911 (pa_legitimate_constant_p): New function.
1913 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
1915 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
1916 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1917 (pdp11_legitimate_constant_p): New function.
1919 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
1920 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1921 (rs6000_legitimate_constant_p): New function.
1923 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
1924 (rx_legitimate_constant_p): ...this.
1925 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
1926 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
1927 (rx_legitimate_constant_p): ...this.
1928 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1929 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
1931 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
1932 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
1933 * config/s390/s390.c (legitimate_constant_p): Rename to...
1934 (s390_legitimate_constant_p): ...this. Make static, return a bool,
1935 and add a mode argument.
1936 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1938 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
1940 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
1941 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1942 (sh_legitimate_constant_p): New function.
1944 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
1945 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
1946 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1947 (legitimate_constant_p): Rename to...
1948 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
1950 (constant_address_p): Update accordingly.
1952 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
1953 argument and return a bool.
1954 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
1955 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1956 (spu_legitimate_constant_p): Add a mode argument and return a bool.
1957 (spu_rtx_costs): Update accordingly.
1958 * config/spu/predicates.md (vec_imm_operand): Likewise.
1960 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
1962 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
1963 * config/v850/v850.c (v850_legitimate_constant_p): New function.
1964 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1966 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
1967 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
1968 * config/vax/vax.c (legitimate_constant_p): Likewise.
1970 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
1971 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1972 (xtensa_legitimate_constant_p): New function.
1974 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1976 * target.def (cannot_force_const_mem): Add a mode argument.
1977 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
1978 * doc/tm.texi: Regenerate.
1979 * hooks.h (hook_bool_mode_rtx_false): Declare.
1980 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
1981 (hook_bool_mode_const_rtx_true): Likewise.
1982 (hook_bool_mode_rtx_false): New function.
1983 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
1984 to be non-VOID. Update call to cannot_force_const_mem.
1985 (find_reloads): Update accordingly.
1986 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
1987 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
1989 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
1990 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
1991 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
1992 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
1993 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
1994 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
1995 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
1996 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1997 (m68k_cannot_force_const_mem): ...this new function.
1998 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2000 (mips_const_insns, mips_legitimize_const_move): Update calls.
2001 (mips_secondary_reload_class): Likewise.
2002 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2003 (pa_cannot_force_const_mem): ...this new function.
2004 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2005 (rs6000_cannot_force_const_mem): ...this new function.
2006 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2008 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2009 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2011 (xtensa_cannot_force_const_mem): ...this new function.
2013 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2015 * config/mips/mips.c (mips16_build_function_stub): Call
2016 build_function_type_list instead of build_function_type.
2017 (mips16_build_call_stub): Likewise.
2019 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2021 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2022 instead of build_function_type.
2024 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2026 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2027 instead of build_function_type.
2029 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2032 * config/i386/i386.md (insv): Change operand 0 constraint to
2033 "register_operand". Change operand 1 and 2 constraint to
2034 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2035 * config/i386/sse.md (sse4_1_pinsrb): Export.
2036 (sse2_pinsrw): Ditto.
2037 (sse4_1_pinsrd): Ditto.
2038 (sse4_1_pinsrq): Ditto.
2039 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2040 * config/i386/i386.c (ix86_expand_pinsr): New.
2042 2011-04-20 Easwaran Raman <eraman@google.com>
2044 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2045 containing union type only with -fstrict-aliasing.
2047 2011-04-20 Jim Meyering <meyering@redhat.com>
2049 Remove useless if-before-free tests.
2050 * calls.c (expand_call, save_area): Likewise.
2051 * cfgcleanup.c (try_forward_edges): Likewise.
2052 * collect2.c (collect_execute): Likewise.
2053 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2054 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2055 * coverage.c (coverage_checksum_string): Likewise.
2056 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2057 * cselib.c (cselib_init): Likewise.
2058 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2059 (df_set_clean_cfg): Likewise.
2060 * function.c (free_after_compilation): Likewise.
2061 * gcc.c (do_spec_1, main): Likewise.
2062 * gcov.c (create_file_names): Likewise.
2063 * gensupport.c (identify_predicable_attribute): Likewise.
2064 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2065 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2066 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2067 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2068 * ipa-pure-const.c (local_pure_const): Likewise.
2069 * ipa-reference.c (propagate): Likewise.
2070 * ira-costs.c (free_ira_costs): Likewise.
2071 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2072 * matrix-reorg.c (mat_free): Likewise.
2073 * prefix.c (get_key_value): Likewise.
2074 * profile.c (compute_value_histograms): Likewise.
2075 * reload1.c (free_reg_equiv): Likewise.
2076 * sched-deps.c (free_deps): Likewise.
2077 * sel-sched-ir.c (fence_clear): Likewise.
2078 * sese.c (set_rename, if_region_set_false_region): Likewise.
2079 * tree-data-ref.c (free_rdg): Likewise.
2080 * tree-eh.c (lower_try_finally): Likewise.
2081 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2082 * tree-ssa-live.c (delete_var_map): Likewise.
2083 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2084 * tree-ssa-pre.c (phi_trans_add): Likewise.
2086 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2088 PR tree-optimization/48611
2089 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2090 beyond ERT_MUST_NOT_THROW region.
2092 2011-04-20 Catherine Moore <clm@codesourcery.com>
2094 * config/mips/mips.opt (mfix-24k): New.
2095 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2096 * config/mips/mips.md (length): Increase by 4 for stores if
2098 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2099 all noreorder if fixing 24K errata.
2100 * doc/invoke.texi: Document mfix-24k.
2102 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2104 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2105 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2107 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2109 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2110 (const_ok_for_op): ... to here.
2112 2011-04-20 Kai Tietz <ktietz@redhat.com>
2114 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2115 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2117 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2119 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2121 2011-04-20 Richard Guenther <rguenther@suse.de>
2123 PR tree-optimization/47892
2124 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2127 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2129 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2131 2011-04-20 Tristan Gingold <gingold@adacore.com>
2133 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2135 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2139 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2140 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2141 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2142 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2143 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2145 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2148 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2149 (avr_asm_named_section, avr_asm_output_aligned_common,
2150 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2151 New functions to update...
2152 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2153 (avr_asm_init_sections): Overwrite section callbacks for
2154 data_section, bss_section.
2155 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2157 (avr_file_end): ...here.
2159 2011-04-20 Richard Guenther <rguenther@suse.de>
2162 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2163 objects and types here. Adjust for their offset before comparing.
2165 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2167 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2170 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2172 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2173 (GIMPLE_H): Include $(INTERNAL_FN_H).
2174 (OBJS-common): Add internal-fn.o.
2175 (internal-fn.o): New rule.
2176 * internal-fn.def: New file.
2177 * internal-fn.h: Likewise.
2178 * internal-fn.c: Likewise.
2179 * gimple.h: Include internal-fn.h.
2180 (GF_CALL_INTERNAL): New gf_mask.
2181 (gimple_statement_call): Put fntype into a union with a new
2183 (gimple_build_call_internal): Declare.
2184 (gimple_build_call_internal_vec): Likewise.
2185 (gimple_call_same_target_p): Likewise.
2186 (gimple_call_internal_p): New function.
2187 (gimple_call_internal_fn): Likewise.
2188 (gimple_call_fntype): Return null for internal calls.
2189 (gimple_call_set_fntype): Assert that the function is not internal.
2190 (gimple_call_set_fn): Likewise.
2191 (gimple_call_set_fndecl): Likewise.
2192 (gimple_call_set_internal_fn): New function.
2193 (gimple_call_addr_fndecl): Handle null functions.
2194 (gimple_call_return_type): Likewise null types.
2195 * gimple.c (gimple_build_call_internal_1): New function.
2196 (gimple_build_call_internal): Likewise.
2197 (gimple_build_call_internal_vec): Likewise.
2198 (gimple_call_same_target_p): Likewise.
2199 (gimple_call_flags): Handle calls to internal functions.
2200 (gimple_call_fnspec): New function.
2201 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2202 (gimple_has_side_effects): Handle null functions.
2203 (gimple_rhs_has_side_effects): Likewise.
2204 (gimple_call_copy_skip_args): Handle calls to internal functions.
2205 * cfgexpand.c (expand_call_stmt): Likewise.
2206 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2207 * gimple-fold.c (gimple_fold_call): Handle null functions.
2208 (gimple_fold_stmt_to_constant_1): Don't fold
2209 calls to internal functions.
2210 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2212 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2213 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2214 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2215 (do_warn_unused_result): Likewise.
2216 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2217 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2218 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2219 the target of a call.
2220 (initialize_hash_element): Update accordingly.
2221 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2222 (iterative_hash_hashable_expr): Handle calls to internal functions.
2223 (print_expr_hash_elt): Likewise.
2224 * tree-ssa-pre.c (can_value_number_call): Likewise.
2225 (eliminate): Handle null functions.
2226 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2227 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2228 (find_func_aliases): Likewise.
2229 * value-prof.c (gimple_ic_transform): Likewise.
2230 (gimple_indirect_call_to_profile): Likewise.
2231 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2232 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2234 2011-04-19 Jan Hubicka <jh@suse.cz>
2236 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2237 * ipa-inline.c (inline_small_functions): Compute summaries first,
2238 populate heap later.
2240 2011-04-19 Jan Hubicka <jh@suse.cz>
2242 * cgraph.h (save_inline_function_body): Remove.
2243 * ipa-inline-transform.c: New file, broke out of...
2244 * ipa-inline.c: ... this one; Update toplevel comment.
2245 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2247 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2248 (cgraph_mark_inline_edge): Rename to inline_call; move to
2249 ipa-inline-transform.c.
2250 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2251 move to ipa-inline-transform.c
2252 (recursive_inlining, inline_small_functions, flatten_function,
2253 ipa_inline, inline_always_inline_functions,
2254 early_inline_small_functions): Update.
2255 (inline_transform): Move to ipa-inline-transform.c.
2256 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2258 * Makefile.in (ipa-inline-transform.o): New file.
2259 * cgraphunit.c (save_inline_function_body): Move to
2260 ipa-inline-transform.c
2262 2011-04-19 DJ Delorie <dj@redhat.com>
2264 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2265 registers if we already know there aren't any.
2266 (m32c_emit_epilogue): Don't emit a barrier here.
2267 (m32c_emit_eh_epilogue): Likewise.
2268 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2269 operands at expand time.
2270 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2272 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2273 duplicates. Provide aliases instead.
2274 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2275 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2278 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2280 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2281 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2282 (general_or_i64_p, sparc_register_move_cost): New function.
2284 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2286 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2287 Add lynx, mipssde. Sort table.
2289 2011-04-19 Xinliang David Li <davidxl@google.com>
2291 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2294 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2297 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2298 is a SUBREG with non-MODE_INT mode inside of it.
2300 2011-04-19 Martin Jambor <mjambor@suse.cz>
2302 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2303 also according to actual contants.
2304 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2305 (gimple_fold_call): Use it.
2306 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2308 2011-04-19 Martin Jambor <mjambor@suse.cz>
2310 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2311 non-pointer assignments.
2313 2011-04-19 Martin Jambor <mjambor@suse.cz>
2315 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2316 account anc_offset and otr_type from the indirect edge info.
2317 * ipa-prop.c (get_ancestor_addr_info): New function.
2318 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2319 get_ancestor_addr_info, call it.
2320 (ipa_note_param_call): Do not initialize information about polymorphic
2321 calls, return the indirect call graph edge. Remove the last
2322 parameter, adjust all callers.
2323 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2324 parameters. Initialize polymorphic information in the indirect edge.
2326 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2329 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2330 the types if they have different enumeration identifiers.
2332 2011-04-19 Jan Hubicka <jh@suse.cz>
2334 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2335 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2336 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2337 (optimize_function_for_size_p) ... here.
2339 2011-04-19 Richard Guenther <rguenther@suse.de>
2342 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2345 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2347 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2348 if DECL_NO_INLINE_WARNING_P is set on the function.
2350 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2353 * reload1.c (inc_for_reload): Return void. All callers changed.
2354 (emit_input_reload_insns): Don't try to delete previous output
2355 reloads to a register, or record spill_reg_store for autoincs.
2357 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2359 * gengtype.h: Updated copyright year.
2360 (struct input_file_st): Add inpisplugin field.
2361 (type_fileloc): New function.
2363 (write_typed_struct_alloc_def): Add gcc_assert.
2364 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2365 (write_typed_alloc_defns): Don't output for plugin files.
2366 (input_file_by_name): Clear inpisplugin field.
2367 (main): Set inpisplugin field for plugin files.
2369 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2371 * gengtype-state.c (string_eq): New.
2372 (read_state): Use string_eq instead of strcmp when creating the
2375 2011-04-19 Wei Guozhi <carrot@google.com>
2378 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2379 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2381 * config/arm/constraints.md (Uu): New constraint.
2382 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2384 2011-04-19 Tristan Gingold <gingold@adacore.com>
2386 * config.gcc (-*-*-*vms): Added.
2387 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2389 * config/vms/vms-ld.c: New file.
2390 * config/vms/vms-ar.c: New file.
2391 * config/vms/t-vmsnative: New file.
2393 2011-04-18 Xinliang David Li <davidxl@google.com>
2395 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2397 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2400 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2401 if TREE_TYPE (v) is non-NULL.
2403 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2404 gimple_get_virt_mehtod_for_binfo.
2405 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2406 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2408 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2410 2011-04-18 Michael Matz <matz@suse.de>
2411 Steve Ellcey <sje@cup.hp.com>
2413 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2414 use its mode as source mode if it isn't VOIDmode.
2416 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2418 * doc/passes.texi: Fill crossref nodes.
2420 2011-04-18 Jim Meyering <meyering@redhat.com>
2422 Fix doubled-word typos in comments and strings
2423 * config/alpha/vms-unwind.h: s/for for/for/
2424 * config/arm/unwind-arm.h: Likewise.
2425 * config/microblaze/microblaze.c: Likewise.
2426 * config/sh/constraints.md: s/in in/in/
2427 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2429 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2431 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2432 (AVX_FLOAT_MODE_P): Ditto.
2433 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2434 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2435 (AVX_VEC_FLOAT_MODE_P): Ditto.
2436 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2437 (UNSPEC_MASKSTORE): Ditto.
2438 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2439 Merge from <sse>_movmsk<ssemodesuffix> and
2440 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2441 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2443 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2444 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2445 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2447 2011-04-18 Jan Hubicka <jh@suse.cz>
2449 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2451 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2452 (want_inline_function_called_once_p): Break out the logic from
2454 (edge_badness): Ensure that profile is not misupdated.
2455 (lookup_recursive_calls): Prioritize by call frequencies.
2456 (inline_small_functions): Move program size estimates here;
2457 actually process whole queue even when unit growth has been
2458 met. (to properly compute inline_failed reasons and for the
2459 case unit size decrease.) Revisit comments on recursive inlining.
2460 (ipa_inline): Remove unit summary code; first inline hot calls
2461 of functions called once, cold calls next.
2462 (order, nnodes): Remove unused variables.
2463 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2464 (GTFILES): Remove ipa-inline.c
2465 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2467 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2469 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2471 2011-04-18 Jie Zhang <jie@codesourcery.com>
2472 Richard Earnshaw <rearnsha@arm.com>
2474 * arm.c (neon_builtin_type_bits): Remove.
2475 (typedef enum neon_builtin_mode): New.
2476 (T_MAX): Don't define.
2477 (typedef enum neon_builtin_datum): Remove bits, codes[],
2478 num_vars and base_fcode. Add mode, code and fcode.
2479 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2480 VAR10): Change accordingly.
2481 (neon_builtin_data[]): Change accordingly
2482 (arm_init_neon_builtins): Change accordingly.
2483 (neon_builtin_compare): Remove.
2484 (locate_neon_builtin_icode): Remove.
2485 (arm_expand_neon_builtin): Change accordingly.
2487 * arm.h (enum arm_builtins): Move to ...
2488 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2490 * arm.c (arm_builtin_decl): Declare.
2491 (TARGET_BUILTIN_DECL): Define.
2492 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2493 (arm_builtin_decls[]): New.
2494 (arm_init_neon_builtins): Store builtin declarations in
2495 arm_builtin_decls[].
2496 (arm_init_tls_builtins): Likewise.
2497 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2498 (arm_builtin_decl): New.
2500 2011-04-18 Richard Guenther <rguenther@suse.de>
2502 * tree.c (upper_bound_in_type): Build properly canonicalized
2504 (lower_bound_in_type): Likewise.
2506 2011-04-18 Richard Guenther <rguenther@suse.de>
2508 * gimple.h (gimple_call_addr_fndecl): New function.
2509 (gimple_call_fndecl): Use it.
2510 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2512 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2513 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2515 2011-04-18 Richard Guenther <rguenther@suse.de>
2518 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2520 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2523 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2524 DECL_IN_CONSTANT_POOL without RTL.
2526 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2527 Ira Rosen <ira.rosen@linaro.org>
2530 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2531 to match neon_vzip/vuzp/vtrn_internal.
2532 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2533 outputs explicitly dependent on both inputs.
2534 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2536 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2538 PR tree-optimization/48616
2539 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2540 whether the shift is by scalar or vector based on whether all SLP
2541 scalar stmts have the same rhs.
2543 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2545 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2548 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2550 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2553 2011-04-17 Jan Hubicka <jh@suse.cz>
2555 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2556 * cgrpahunit.c (cgraph_finalize_function): Do not set
2557 finalized_by_frontend.
2558 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2559 finalized_by_frontend.
2561 2011-04-17 Jan Hubicka <jh@suse.cz>
2563 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2564 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2565 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2566 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2568 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2570 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2572 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2575 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2576 is non-null before accessing it.
2577 (input_cgraph): Remove trailing spaces.
2579 2011-04-17 Revital Eres <revital.eres@linaro.org>
2581 * params.def (sms-min-sc): New param flag.
2582 * modulo-sched.c (sms_schedule): Use it.
2583 * doc/invoke.texi (sms-min-sc): Document it.
2585 2011-04-17 Jan Hubicka <jh@suse.cz>
2587 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2588 present, also set gimple_call_set_cannot_inline.
2589 * ipa-inline.c: Update toplevel comment.
2591 (cgraph_clone_inlined_nodes): Fix linebreaks.
2592 (cgraph_check_inline_limits): Restructure to ...
2593 (caller_growth_limits): ... this one; be more tolerant
2594 on growth in nested inline chains; add explanatory comment;
2595 fix stack accounting thinko introduced by previous patch.
2596 (cgraph_default_inline_p): Remove.
2597 (report_inline_failed_reason): New function.
2598 (can_inline_edge_p): New function.
2599 (can_early_inline_edge_p): New function.
2600 (leaf_node_p): Move upwards in file.
2601 (want_early_inline_function_p): New function.
2602 (want_inline_small_function_p): New function.
2603 (want_inline_self_recursive_call_p): New function.
2604 (cgraph_edge_badness): Rename to ...
2605 (edge_badness) ... this one; fix linebreaks.
2606 (update_edge_key): Update call of edge_baddness; add
2607 detailed dump about queue updates.
2608 (update_caller_keys): Use can_inline_edge_p and
2609 want_inline_small_function_p.
2610 (cgraph_decide_recursive_inlining): Rename to...
2611 (recursive_inlining): Use can_inline_edge_p and
2612 want_inline_self_recursive_call_p; simplify and remove no longer
2614 (cgraph_set_inline_failed): Remove.
2615 (add_new_edges_to_heap): Use can_inline_edge_p and
2616 want_inline_small_function_p.
2617 (cgraph_decide_inlining_of_small_functions): Rename to ...
2618 (inline_small_functions): ... this one; cleanup; use
2619 can/want predicates; cleanup debug ouput; work edges till fibheap
2620 is exhausted and do not stop once unit growth is reached; remove
2621 later loop processing remaining edges.
2622 (cgraph_flatten): Rename to ...
2623 (flatten_function): ... this one; use can_inline_edge_p
2624 and can_early_inline_edge_p predicates.
2625 (cgraph_decide_inlining): Rename to ...
2626 (ipa_inline): ... this one; remove unreachable nodes before
2627 inlining functions called once; simplify the pass.
2628 (cgraph_perform_always_inlining): Rename to ...
2629 (inline_always_inline_functions): ... this one; use
2630 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2631 (cgraph_decide_inlining_incrementally): Rename to ...
2632 (early_inline_small_functions): ... this one; simplify
2633 using new predicates; cleanup; make dumps prettier.
2634 (cgraph_early_inlining): Rename to ...
2635 (early_inliner): newer inline regular functions into always-inlines;
2636 fix updating of call stmt summaries.
2637 (pass_early_inline): Update for new names.
2638 (inline_transform): Fix formating.
2639 (gate_cgraph_decide_inlining): Rename to ...
2640 (pass_ipa_inline): ... this one.
2641 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2642 * ipa-inline-analysis.c (dump_inline_summary): Update.
2643 (compute_inline_parameters): Do not compute disregard_inline_limits;
2644 look for mismatching arguments.
2645 (estimate_growth): Fix handlig of non-trivial self recursion.
2646 (inline_read_summary): Do not read info->disregard_inline_limits.
2647 (inline_write_summary): Do not write info->disregard_inline_limits.
2648 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2649 and move all checks into can_inline_edge_p predicate; re-enable code
2650 comparing optimization levels.
2651 (expand_call_inline): Do not test inline_forbidden_into_p.
2652 * Makefile.in (ipa-inline.o): Update arguments.
2654 2011-04-17 Revital Eres <revital.eres@linaro.org>
2656 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2658 2011-04-17 Revital Eres <revital.eres@linaro.org>
2660 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2662 2011-04-17 Michael Matz <matz@suse.de>
2664 PR tree-optimization/48622
2666 * ipa-inline-analysis.c (inline_read_summary): Read size/time
2667 in same order as they're written.
2669 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2671 * config/pa/predicates.md: Reorganize and simplify predicates.
2672 Eliminate duplicate code checks.
2673 (arith_operand): Rename to arith14_operand
2674 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2675 * config/pa/pa.md: Use renamed operands.
2676 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2677 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2678 arith11_operand, adddi3_operand, indexed_memory_operand,
2679 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2680 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2681 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2682 move_dest_operand, move_src_operand, prefetch_cc_operand,
2683 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2684 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2685 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2686 div_operand, int5_operand, movb_comparison_operator,
2687 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2688 arith_double_operand, ireg_operand, lhs_lshift_operand,
2689 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2690 integer_store_memory_operand): Likewise.
2691 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2692 (integer_store_memory_operand, read_only_operand,
2693 function_label_operand, borx_reg_operand,
2694 non_hard_reg_operand): Likewise.
2695 (eq_neq_comparison_operator): Delete unused operator.
2696 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2697 function_label_operand.
2698 (emit_move_sequence): Likewise.
2700 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2702 * config/i386/sse.md (sseunpackmode): New mode attribute.
2703 (ssepackmode): Ditto.
2704 (vec_pack_trunc_<mode>): Macroize expander from
2705 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2706 (vec_unpacks_lo_<mode>): Macroize expander from
2707 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2708 (vec_unpacks_hi_<mode>): Macroize expander from
2709 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2710 (vec_unpacku_lo_<mode>): Macroize expander from
2711 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2712 (vec_unpacku_hi_<mode>): Macroize expander from
2713 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2714 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2715 ix86_expand_sse4_unpack.
2716 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2718 2011-04-16 Jan Hubicka <jh@suse.cz>
2720 * cgraphbuild.c: Include ipa-inline.h.
2721 (reset_inline_failed): Use initialize_inline_failed.
2722 * cgraph.c: Include ipa-inline.h.
2723 (cgraph_create_node_1): Do not initialize estimated_growth.
2724 (initialize_inline_failed): More to ipa-inline-analysis.c
2725 (dump_cgraph_node): Do not dump inline flags.
2726 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2727 and disregard_inline_limits flags.
2728 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2729 time, size, estimated_growth.
2730 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2732 * cgraphunit.c (cgraph_decide_is_function_needed): Use
2733 DECL_DISREGARD_INLINE_LIMITS.
2734 (cgraph_analyze_function): Do not initialize
2735 node->local.disregard_inline_limits.
2736 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2737 inlinable, versionable and disregard_inline_limits.
2738 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2739 cgraph_check_inline_limits, cgraph_default_inline_p,
2740 cgraph_edge_badness, update_caller_keys, update_callee_keys,
2741 add_new_edges_to_heap): Update.
2742 (cgraph_decide_inlining_of_small_function): Update; set
2743 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
2744 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2745 cgraph_decide_inlining_incrementally): Update.
2746 * ipa-inline.h (inline_summary): Add inlinable, versionable,
2747 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2748 time, size and estimated_growth parameters.
2749 (estimate_edge_growth): Update.
2750 (initialize_inline_failed): Declare.
2751 * ipa-split.c: Include ipa-inline.h
2752 (execute_split_functions): Update.
2753 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2754 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2755 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2756 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2757 estimated_growth to INT_MIN.
2758 (inline_node_duplication_hook): Likewise.
2759 (dump_inline_summary): Dump new fields.
2760 (compute_inline_parameters): Update.
2761 (estimate_edge_time, estimate_time_after_inlining,
2762 estimate_size_after_inlining, estimate_growth, inline_read_summary,
2763 inline_write_summary):
2764 (initialize_inline_failed): Move here from cgraph.c.
2765 * tree-sra.c: Include ipa-inline.h.
2766 (ipa_sra_preliminary_function_checks): Update.
2767 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2770 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2772 * config/i386/sse.md (V16): New mode iterator.
2774 (AVXMODEQI, AVXMODEDI): Remove.
2775 (sse2, sse3): New mode attribute.
2776 (mov<mode>): Use V16 mode iterator.
2777 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
2778 (push<mode>1): Use V16 mode iterator.
2779 (movmisalign<mode>): Ditto.
2780 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2781 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
2782 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2783 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
2784 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
2785 avx_movdqu<avxmodesuffix>.
2786 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
2787 *avx_movdqu<avxmodesuffix>.
2788 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
2789 avx_lddqu<avxmodesuffix>.
2790 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
2791 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
2792 avx_movnt<AVXMODEDI:mode>.
2793 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
2794 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
2796 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
2799 * haifa-sched.c (prune_ready_list, schedule_block): Use
2800 sched_pressure_p rather than flag_sched_pressure.
2802 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
2804 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2805 cgraph_get_node instead of cgraph_get_create_node.
2807 2011-04-15 Jakub Jelinek <jakub@redhat.com>
2809 * cfgexpand.c (expand_debug_expr): Use
2810 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
2812 2011-04-15 Michael Matz <matz@suse.de>
2814 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
2815 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
2816 * function.c (gimplify_parameters): Ditto.
2817 * gimplify.c (gimplify_vla_decl): Ditto.
2819 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
2820 (gimple_call_set_alloca_for_var): New inline function.
2821 (gimple_call_alloca_for_var_p): Ditto.
2822 * gimple.c (gimple_build_call_from_tree): Remember
2823 CALL_ALLOCA_FOR_VAR_P state.
2824 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
2826 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
2827 calls if they were for VLA objects.
2829 2011-04-15 Martin Jambor <mjambor@suse.cz>
2831 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
2834 2011-04-15 Martin Jambor <mjambor@suse.cz>
2837 * tree-emutls.c (lower_emutls_function_body): Call
2838 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
2841 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2843 * c-decl.c (detect_field_duplicates): Call
2844 objc_detect_field_duplicates instead of objc_get_interface_ivars.
2846 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
2848 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
2849 * gimple.c (gimple_asm_clobbers_memory_p): Define.
2850 * ipa-pure-const.c (check_stmt): Call it.
2851 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
2853 2011-04-15 Richard Guenther <rguenther@suse.de>
2855 PR tree-optimization/48290
2856 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
2857 Properly decide inhibiting propagation based on the valueized
2858 operand. Do loop-closed SSA form preserving here ...
2859 (init_copy_prop): ... not here.
2861 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
2864 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
2865 (*ieee_smax<mode>3): Likewise.
2867 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2869 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2870 Replace match_operand with match_dup for the third operand in
2873 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2875 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
2876 to track processing of conditionals. Update all callers.
2877 (try_combine, simplify_if_then_else): Update.
2879 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2881 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
2884 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
2886 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
2887 instead of match_operand for operand 3.
2889 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
2891 * recog.h (insn_operand_data): Add an "allows_mem" field.
2892 * genoutput.c (output_operand_data): Initialize it.
2893 * optabs.c (maybe_legitimize_operand_same_code): New function.
2894 (maybe_legitimize_operand): Use it when matching the original
2897 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2899 * gimplify.c: Fix issues in comments throughout.
2900 (voidify_wrapper_expr): Fix long line.
2901 (build_stack_save_restore): Likewise.
2902 (gimplify_loop_expr): Likewise.
2903 (gimplify_compound_lval): Likewise.
2904 (gimplify_init_ctor_eval): Likewise.
2905 (gimplify_modify_expr_rhs): Likewise.
2906 (omp_notice_threadprivate_variable): Likewise.
2908 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2910 * cfgexpand.c (expand_call_stmt): Convert the function type to the
2911 original one if this is not a builtin function.
2913 2011-04-14 Jakub Jelinek <jakub@redhat.com>
2916 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
2917 offset it as needed based on top 2 bits in operands[3], change
2918 MEM mode to SFmode and mask those 2 bits away from operands[3].
2920 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2922 * c-parser.c (c_parser_objc_protocol_definition): Updated for
2923 change from objc_declare_protocols() to objc_declare_protocol().
2925 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
2927 * config/i386/sse.md (sse4_1): New mode attribute.
2928 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
2929 avx_blend<ssemodesuffix><avxmodesuffix> and
2930 sse4_1_blend<ssemodesuffix> using VF mode iterator.
2931 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
2932 avx_blendv<ssemodesuffix><avxmodesuffix> and
2933 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
2934 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
2935 avx_dp<ssemodesuffix><avxmodesuffix> and
2936 sse4_1_dp<ssemodesuffix> using VF mode iterator.
2937 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
2938 (sse4_1_packusdw): Merge with *avx_packusdw.
2939 (sse4_1_pblendvb): Merge with *avx_pblendvb.
2940 (sse4_1_pblendw): Merge with *avx_pblendw.
2941 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
2942 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
2943 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
2945 (sse4_1_round<ssescalarmodesuffix>): Merge with
2946 *avx_round<ssescalarmodesuffix>.
2947 (aesenc): Merge with *avx_aesenc.
2948 (aesenclast): Merge with *avx_aesenclast.
2949 (aesdec): Merge with *avx_aesdec.
2950 (aesdeclast): Merge with *avx_aesdeclast.
2951 (pclmulqdq): Merge with *pclmulqdq.
2952 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
2954 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
2956 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
2959 * cfgexpand.c (get_decl_align_unit): Renamed to ...
2960 (align_local_variable): This. Update DECL_ALIGN.
2961 (add_stack_var): Updated.
2962 (expand_one_stack_var): Likewise.
2964 2011-04-14 Richard Guenther <rguenther@suse.de>
2966 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
2968 (dse_initialize_block_local_data, dse_leave_block,
2969 record_voperand_set, get_stmt_uid): Likewise.
2970 (dse_possible_dead_store_p): Allow any kind of killing stmt.
2971 (dse_optimize_stmt): Remove voperand set handling code.
2972 Simplify and improve to handle any kind of killing stmt.
2973 (dse_record_phi): Remove.
2974 (dse_enter_block): Simplify.
2975 (tree_ssa_dse): Likewise.
2976 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
2978 2011-04-14 Jan Hubicka <jh@suse.cz>
2980 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
2981 * cgraph.h (struct inline_summary): Move to ipa-inline.h
2982 (cgraph_local_info): Remove inline_summary.
2983 * ipa-cp.c: Include ipa-inline.h.
2984 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
2985 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
2987 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
2988 (input_overwrite_node): Do not set inline summary.
2989 (input_node): Do not stream inline summary.
2990 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
2991 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
2992 growth; we do not have inline parameters computed for that anyway.
2993 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
2994 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
2995 (inline_summary_t): New type and VECtor.
2996 (debug_inline_summary, dump_inline_summaries): Declare.
2997 (inline_summary): Use VOCtor.
2998 (estimate_edge_growth): Kill hack computing call stmt size directly.
2999 * lto-section-in.c (lto_section_name): Add inline section.
3000 * ipa-inline-analysis.c: Include lto-streamer.h
3001 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3002 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3003 (inline_summary_vec): Define.
3004 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3005 dump_inline_summaries): New functions.
3006 (estimate_function_body_sizes): Properly compute size/time of outgoing
3008 (compute_inline_parameters): Alloc inline_summary; do not compute
3009 size/time of incomming calls.
3010 (estimate_edge_time): Avoid missing time summary hack.
3011 (inline_read_summary): Read inline summary info.
3012 (inline_write_summary): Write inline summary info.
3013 (inline_free_summary): Free all hooks and inline summary vector.
3014 * lto-streamer.h: Add LTO_section_inline_summary section.
3015 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3016 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3018 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3020 * tree-vectorizer.h (vect_strided_store_supported): Add a
3021 HOST_WIDE_INT argument.
3022 (vect_strided_load_supported): Likewise.
3023 (vect_permute_store_chain): Return void.
3024 (vect_transform_strided_load): Likewise.
3025 (vect_permute_load_chain): Delete.
3026 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3027 count argument. Check that the count is a power of two.
3028 (vect_strided_load_supported): Likewise.
3029 (vect_permute_store_chain): Return void. Update after above changes.
3030 Assert that the access is supported.
3031 (vect_permute_load_chain): Likewise.
3032 (vect_transform_strided_load): Return void.
3033 * tree-vect-stmts.c (vectorizable_store): Update calls after
3034 above interface changes.
3035 (vectorizable_load): Likewise.
3036 (vect_analyze_stmt): Don't check for strided powers of two here.
3038 2011-04-14 Richard Guenther <rguenther@suse.de>
3040 PR tree-optimization/48590
3041 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3042 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3043 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3044 BUILT_IN_STACK_SAVE.
3045 * tree-ssa-dce.c (propagate_necessity): Handle
3046 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3048 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3050 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3053 2011-04-14 Richard Guenther <rguenther@suse.de>
3055 * tree.h (get_object_alignment_1): Declare.
3056 * builtins.c (get_object_alignment_1): Split out worker from ...
3057 (get_object_alignment): ... here.
3058 * fold-const.c (get_pointer_modulus_and_residue): Use
3059 get_object_alignment_1.
3061 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3063 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3065 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3066 parameter. Generalise code to handle arrays as well as vectors.
3067 (vect_setup_realignment): Update accordingly.
3068 * tree-vect-stmts.c (vectorizable_store): Likewise.
3069 (vectorizable_load): Likewise.
3071 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3073 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3074 within the per-copy loop.
3076 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3078 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3081 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3083 * doc/options.texi (Negative): Explicitly mention that the
3084 Negative chain must be circular.
3086 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3088 * function.h (block_chainon): Declare.
3089 * function.c (block_chainon): Define.
3091 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3092 Eric Weddington <eric.weddington@atmel.com>
3093 Georg-Johann Lay <avr@gjlay.de>
3095 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3097 (avr_init_builtins, avr_expand_builtin,
3098 avr_expand_delay_cycles, avr_expand_unop_builtin,
3099 avr_expand_binop_builtin ): New functions.
3100 (avr_builtin_id): New enum
3101 (struct avr_builtin_description): New struct
3102 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3103 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3105 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3106 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3107 UNSPECV_DELAY_CYCLES): new enumeration values
3108 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3109 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3110 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3111 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3112 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3113 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3114 "fmulsu"): New insns
3116 * config/avr/avr-c.c: fix line endings
3117 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3118 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3119 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3120 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3121 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3123 * doc/extend.texi (AVR Built-in Functions): New node
3124 (Target Builtins): Add documentation of AVR
3127 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3130 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3131 alone. Error if non-const data has attribute progmem.
3133 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3135 * tree.h (struct tree_constructor): Include tree_typed instead of
3137 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3138 TS_TYPED instead of TS_COMMON.
3140 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3142 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3143 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3144 (sse2_psadbw): Merge with *avx_psadbw.
3145 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3146 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3147 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3148 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3149 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3150 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3151 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3152 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3153 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3154 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3155 (ssse3_palignrti): Merge with *avx_palignrti.
3157 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3159 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3160 * tree-ssanames.c (fini_ssanames): VEC_free it.
3161 (make_ssa_name_fn): Update for VECness of free_ssanames.
3162 (release_ssa_name, release_dead_ssa_names): Likewise.
3163 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3165 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3166 TS_TYPED instead of TS_COMMON.
3168 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3170 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3171 statistics_counter_event.
3172 * tree-ssa-copyrename.c (stats): Define.
3173 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3174 statistics_counter_event.
3175 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3176 (bswap_stats, widen_mul_stats): Define.
3177 (insert_reciprocals): Increment rdivs_inserted.
3178 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3179 rfuncs_inserted. Add calls to statistics_counter_event.
3180 (execute_cse_sincos_1): Increment inserted.
3181 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3182 statistics_counter_event.
3183 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3184 of bswap_stats. Add calls to statistics_counter_event.
3185 (convert_mult_to_widen): Increment widen_mults_inserted.
3186 (convert_plusminus_to_widen): Increment maccs_inserted.
3187 (convert_mult_to_fma): Increment fmas_inserted.
3188 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3189 calls to statistics_counter_event.
3191 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3193 PR rtl-optimization/48455
3194 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3195 `temp_costs->mem_cost'.
3197 2011-04-13 Jan Hubicka <jh@suse.cz>
3199 * ipa-inline.h: New file.
3200 * ipa-inline-analysis.c: New file. Broken out of ...
3201 * ipa-inline.c: ... this file; update toplevel comment;
3202 include ipa-inline.h
3203 (inline_summary): Move to ipa-inline.h
3204 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3205 ipa-inline-analysis.c.
3206 (cgraph_estimate_time_after_inlining): Rename to
3207 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3208 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3209 to estimate_edge_growth.
3210 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3211 rename to estimate_size_after_inlining.
3212 (cgraph_mark_inline_edge): Update for new naming convention.
3213 (cgraph_check_inline_limits): Likewise.
3214 (cgraph_edge_badness): Likewise.
3215 (cgraph_decide_recursive_inlining): Likewise.
3216 (cgraph_decide_inlining_of_small_functions): Likewise.
3217 (cgraph_decide_inlining_incrementally): Likewise.
3218 (cgraph_estimate_growth): Rename to estimate_growth; move to
3219 ipa-inline-analysis.c.
3220 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3221 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3222 (compute_inline_parameters): Likewise.
3223 (compute_inline_parameters_for_current): Likewise.
3224 (pass_inline_parameters): Likewise.
3225 (inline_indirect_intraprocedural_analysis): Likewise.
3226 (analyze_function): Rename to inline_analyze_function; likewise.
3227 (add_new_function): Move to ipa-inline-analysis.c.
3228 (inline_generate_summary): Likewise.
3229 (inline_read_summary): Likewise.
3230 (inline_write_summary): Likewise.
3231 * Makefile.in (ipa-inline-analysis.c): New file.
3233 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3235 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3236 * configure: Regenerate.
3238 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3240 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3241 instead of tree_common.
3242 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3244 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3245 TS_TYPED rather than TS_COMMON.
3246 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3248 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3251 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3252 r20 around calls of __tablejump_elpm__
3254 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3257 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3259 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3261 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3263 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3264 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3265 (cfi_vec): New typedef.
3266 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3267 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3268 (cie_cfi_vec): New static variable.
3269 (cie_cfi_head): Delete.
3270 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3271 declaration changed. Use vector rather than list operations.
3272 (new_cfi): Don't initialize the dw_cfi_next field.
3273 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3274 rather than list operations.
3275 (lookup_cfa): Use vector rather than list operations.
3276 (output_cfis): New argument upto. Accept a cfi_vec rather than
3277 a dw_cfi_ref list head as argument. All callers changed.
3278 Iterate over the vector using upto as a maximum index.
3279 (output_all_cfis): New static function.
3280 (output_fde): Use vector rather than list operations. Use the
3281 new upto argument for output_cfis rather than manipulating a
3283 (dwarf2out_begin_prologue): Change initializations to match
3285 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3286 from the vector length rather than searching for the end of a list.
3287 Use output_all_cfis.
3288 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3290 2011-04-13 Nick Clifton <nickc@redhat.com>
3292 * config/rx/rx.md (movmemsi): Do not use this pattern when
3293 volatile pointers are involved.
3295 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3297 * config/i386/sse.md (pinsrbits): Remove.
3298 (sse2_packsswb): Merge with *avx_packsswb.
3299 (sse2_packssdw): Merge with *avx_packssdw.
3300 (sse2_packuswb): Merge with *avx_packuswb.
3301 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3302 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3303 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3304 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3305 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3306 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3307 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3308 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3309 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3310 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3311 (sse2_loadld): Merge with *avx_loadld.
3312 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3313 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3314 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3315 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3316 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3318 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3320 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3322 * print-tree.c (print_node): Likewise.
3323 * tree-inline.c (copy_tree_r): Likewise.
3324 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3325 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3326 instead of TS_COMMON.
3327 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3328 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3329 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3330 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3331 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3333 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3335 (TREE_CHAIN): Check for a TS_COMMON structure.
3336 (TREE_TYPE): Check for a TS_TYPED structure.
3338 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3340 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3341 cgraph_get_create_node instead of cgraph_node.
3343 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3345 * c-parser.c (c_parser_initelt): Updated call to
3346 objc_build_message_expr.
3347 (c_parser_postfix_expression): Likewise.
3349 2011-04-12 Kai Tietz <ktietz@redhat.com>
3351 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3352 MASK_MS_BITFIELD_LAYOUT bit.
3354 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3356 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3357 assert it is always true.
3358 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3361 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3363 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3364 compiling Objective-C to be more efficient.
3366 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3368 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3371 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3373 * recog.h, genoutput.c, optabs.c: Revert last patch.
3375 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3378 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3380 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3382 * recog.h (insn_operand_data): Add an "allows_mem" field.
3383 * genoutput.c (output_operand_data): Initialize it.
3384 * optabs.c (maybe_legitimize_operand_same_code): New function.
3385 (maybe_legitimize_operand): Use it when matching the original
3388 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3390 * genpreds.c (process_define_predicate): Move most processing
3391 to gensupport.c. Continue to validate the expression.
3392 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3393 (process_define_predicate): Move processing to gensupport.c.
3394 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3395 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3396 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3398 (valid_predicate_name_p): New function, split out from old
3399 genpreds.c:process_define_predicate.
3400 (process_define_predicate): New function, combining code from
3401 old genpreds.c and genrecog.c functions.
3402 (process_rtx): Call it for DEFINE_PREDICATE and
3403 DEFINE_SPECIAL_PREDICATE.
3405 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3407 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3408 size of a '%A' memory reference.
3409 (T_DREG, T_QREG): New neon_builtin_type_bits.
3410 (arm_init_neon_builtins): Assert that the load and store operands
3411 are neon_struct_operands.
3412 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3413 (NEON_ARG_MEMORY): New builtin_arg.
3414 (neon_dereference_pointer): New function.
3415 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3416 Handle NEON_ARG_MEMORY.
3417 (arm_expand_neon_builtin): Update after above interface changes.
3418 Use NEON_ARG_MEMORY for loads and stores.
3419 * config/arm/predicates.md (neon_struct_operand): New predicate.
3420 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3421 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3422 (V_four_elem): Tweak formatting.
3423 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3424 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3425 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3426 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3427 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3428 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3429 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3430 Use %A in the output template.
3431 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3432 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3433 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3434 the width of the memory access. Remove post-increment.
3435 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3437 2011-04-12 Nick Clifton <nickc@redhat.com>
3439 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3440 instruction for interrupt handlers if the target is the basic V850
3442 (expand_epilogue): Likewise.
3444 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3446 PR rtl-optimization/48549
3447 * combine.c (propagate_for_debug): Also stop after BB_END of
3448 this_basic_block. Process LAST and just stop processing after it.
3449 (combine_instructions): If last_combined_insn has been deleted,
3450 set last_combined_insn to its PREV_INSN.
3452 2011-04-12 Richard Guenther <rguenther@suse.de>
3454 PR tree-optimization/46076
3455 * gimple.h (struct gimple_statement_call): Add fntype field.
3456 (gimple_call_fntype): Adjust.
3457 (gimple_call_set_fntype): New function.
3458 * gimple.c (gimple_build_call_1): Set the call function type.
3459 * gimplify.c (gimplify_call_expr): Preserve the function
3460 type the frontend used for the call.
3461 (gimplify_modify_expr): Likewise.
3462 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3464 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3466 * tree-ssa.c (useless_type_conversion_p): Function pointer
3467 conversions are useless.
3469 2011-04-12 Martin Jambor <mjambor@suse.cz>
3471 * cgraph.h (cgraph_node): Remove function declaration.
3472 (cgraph_create_node): Declare.
3473 (cgraph_get_create_node): Likewise.
3474 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3475 Updated all callers.
3476 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3477 the decl does not already exist. Call cgraph_get_create_node instead
3479 (cgraph_get_create_node): New function.
3480 (cgraph_same_body_alias): Update comment.
3481 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3482 assert it does not return NULL.
3483 (cgraph_update_edges_for_call_stmt): Likewise.
3484 (cgraph_clone_edge): Likewise.
3485 (cgraph_create_virtual_clone): Likewise.
3486 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3487 instead of cgraph_node.
3488 (cgraph_add_new_function): Call cgraph_create_node or
3489 cgraph_get_create_node instead of cgraph_node.
3490 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3491 instead of cgraph_node.
3492 (record_eh_tables): Likewise.
3493 (mark_address): Likewise.
3494 (mark_load): Likewise.
3495 (build_cgraph_edges): Call cgraph_get_create_node instead
3497 (rebuild_cgraph_edges): Likewise.
3498 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3499 instead of cgraph_node.
3500 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3502 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3503 cgraph_create_node instead of cgraph_node.
3504 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3506 * lto-cgraph.c (input_node): Likewise.
3507 * lto-streamer-in.c (input_function): Likewise.
3508 * varasm.c (mark_decl_referenced): Likewise.
3509 (assemble_alias): Likewise.
3511 2011-04-12 Martin Jambor <mjambor@suse.cz>
3513 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3514 instead of cgraph_node and assert it does not return NULL.
3515 * lto-streamer-in.c (lto_read_body): Likewise.
3516 * omp-low.c (new_omp_context): Likewise.
3517 (create_task_copyfn): Likewise.
3518 * tree-emutls.c (lower_emutls_function_body): Likewise.
3519 * matrix-reorg.c (transform_allocation_sites): Likewise.
3521 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3524 * c-typeck.c (build_asm_expr): Error out on attempts to use
3525 void type outputs or inputs for constraints that allow reg or
3528 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3529 Richard Earnshaw <rearnsha@arm.com>
3532 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3533 to use sign-magnitude offsets. Reject unsupported unaligned
3534 cases. Add detailed description in comments.
3535 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3536 condition from TARGET_32BIT to TARGET_ARM.
3538 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3540 * tree.h (struct typed_tree): New.
3541 (struct tree_common): Include it instead of tree_base.
3542 (TREE_TYPE): Update for new location of type field.
3543 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3544 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3545 (union tree_node): Add typed field.
3546 * treestruct.def (TS_TYPED): New.
3547 * lto-streamer.c (check_handled_ts_structures): Handle it.
3548 * tree.c (MARK_TS_TYPED): New macro.
3549 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3551 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3553 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3554 (force_nonfallthru): Do not alter the loop nest if no basic block
3557 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3559 * config/i386/sse.md (VI): New mode iterator.
3561 (AVX256MODEI): Ditto.
3562 (AVXMODEF4P): Ditto.
3563 (avxvecpsmode): Ditto.
3564 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3565 (sse2_andnot<mode>3): New expander.
3566 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3567 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3568 (<any_logic:code><mode>3): Use VI mode iterator.
3569 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3570 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3571 (*andnottf3): Handle AVX three-operand constraints.
3572 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3574 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3575 Robert Millan <rmh@gnu.org>
3577 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3578 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3579 GNU_USER_DYNAMIC_LINKER64): Define.
3580 (REG_NAME): Don't undefine.
3581 (MD_UNWIND_SUPPORT): Undefine.
3582 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3583 (REG_NAME): Don't undefine.
3584 (MD_UNWIND_SUPPORT): Undefine.
3585 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3587 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3589 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3590 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3592 2011-04-11 Xinliang David Li <davidxl@google.com>
3594 * value-profile.c (check_ic_target): New function.
3595 (gimple_ic_transform): Sanity check indirect call target.
3596 * gimple-low.c (gimple_check_call_args): Interface change.
3597 (gimple_check_call_matching_types): New function.
3598 * tree-inline.c (tree_can_inline_p): Call new function.
3600 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3602 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3603 tree-pretty-print.h & realmpfr.h.
3605 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3608 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3609 (setup_allocno_and_important_classes): Ditto.
3611 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3613 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3614 GNU_USER_DYNAMIC_LINKER.
3615 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3616 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3617 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3618 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3619 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3620 GNU_USER_TARGET_OS_CPP_BUILTINS.
3621 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3622 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3623 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3624 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3625 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3626 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3627 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3628 GNU_USER_TARGET_OS_CPP_BUILTINS.
3629 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3630 GNU_USER_DYNAMIC_LINKER.
3631 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3632 GNU_USER_TARGET_OS_CPP_BUILTINS.
3633 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3634 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3635 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3636 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3637 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3638 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3639 GNU_USER_DYNAMIC_LINKER64): Remove.
3640 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3641 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3642 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3643 GNU_USER_DYNAMIC_LINKER.
3644 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3645 GNU_USER_TARGET_OS_CPP_BUILTINS.
3646 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3647 GNU_USER_TARGET_OS_CPP_BUILTINS.
3648 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3649 to GNU_USER_TARGET_OS_CPP_BUILTINS.
3650 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3651 GNU_USER_TARGET_OS_CPP_BUILTINS.
3652 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3653 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3654 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3655 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3656 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3657 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3658 GNU_USER_DYNAMIC_LINKER.
3659 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3660 GNU_USER_TARGET_OS_CPP_BUILTINS.
3661 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
3662 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3663 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3664 GNU_USER_DYNAMIC_LINKER.
3665 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3666 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3667 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3668 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3669 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3670 GNU_USER_DYNAMIC_LINKER.
3671 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3672 GNU_USER_DYNAMIC_LINKERN32.
3673 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3674 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
3675 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
3676 GNU_USER_DYNAMIC_LINKER32.
3677 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3678 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3679 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3680 GNU_USER_DYNAMIC_LINKER.
3681 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3682 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3683 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3684 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3685 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3686 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3687 GNU_USER_DYNAMIC_LINKER32.
3688 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3689 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3690 GNU_USER_DYNAMIC_LINKER.
3691 * config/s390/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_LINKER32 to
3694 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3695 GNU_USER_DYNAMIC_LINKER64.
3696 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3697 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3698 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3699 GNU_USER_DYNAMIC_LINKER.
3700 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3701 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3702 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3703 GNU_USER_DYNAMIC_LINKER.
3704 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3705 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3706 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3707 GNU_USER_DYNAMIC_LINKER32.
3708 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3709 GNU_USER_DYNAMIC_LINKER64.
3710 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3711 GNU_USER_DYNAMIC_LINKER64.
3712 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3713 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3714 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3715 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3716 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3718 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3720 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
3721 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3722 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3723 GNU_USER_DYNAMIC_LINKER.
3724 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3725 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
3726 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3727 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3728 GNU_USER_DYNAMIC_LINKER64.
3729 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3730 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3731 GNU_USER_LINK_EMULATION.
3732 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3733 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3734 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3735 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3736 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3737 CPP_SPEC, CC1_SPEC): Remove.
3738 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3739 (GNU_USER_DYNAMIC_LINKER): Define.
3740 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3741 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3742 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3743 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3744 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3745 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3746 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3747 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3748 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3749 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3750 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3751 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3752 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3753 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3754 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3755 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3756 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3757 GNU_USER_DYNAMIC_LINKER.
3758 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3759 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3760 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3761 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3762 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3763 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3764 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3765 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3766 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
3767 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
3769 2011-04-11 Kai Tietz <ktietz@redhat.com>
3773 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
3774 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
3776 (ix86_is_msabi_thiscall): Removed.
3777 (ix86_is_type_thiscall): Likewise.
3778 (ix86_get_callcvt): New function.
3779 (ix86_comp_type_attributes): Simplify check.
3780 (ix86_function_regparm): Use ix86_get_callcvt for calling
3781 convention attribute checks.
3782 (ix86_return_pops_args): Likewise.
3783 (ix86_static_chain): Likewise.
3784 (x86_this_parameter): Likewise.
3785 (x86_output_mi_thunk): Likewise.
3786 (ix86_function_type_abi): Optimize check for types without attributes.
3787 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
3788 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
3789 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
3791 (IX86_BASE_CALLCVT): Helper macro.
3792 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3793 Use ix86_get_callcvt for calling convention attribute checks and avoid
3794 symbol-decoration for stdcall in TARGET_RTD case.
3795 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3797 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
3800 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3802 * config/i386/sse.md (VI_128): New mode iterator.
3803 (VI12_128): Rename from SSEMODE12.
3804 (VI14_128): Rename from SSEMODE14.
3805 (VI124_128): New mode iterator.
3806 (VI24_128): Rename from SSEMODE248.
3807 (VI248_128): Rename from SSEMODE248.
3808 (SSEMODE124C8): Remove.
3809 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3810 (*sse2_<plusminus_insn><mode>3): Merge with
3811 *avx_<plusminus_insn><mode>3.
3812 (*mulv8hi3): Merge with *avx_mulv8hi3.
3813 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
3814 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
3815 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
3816 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
3817 (ashr<mode>3): Merge with *avx_ashr<mode>3.
3818 (lshr<mode>3): Merge with *avx_lshr<mode>3.
3819 (ashl<mode>3): Merge with *avx_ashl<mode>3.
3820 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
3821 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
3822 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3823 (*<smaxmin:code>v8hi3): Ditto.
3824 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
3825 (*<smaxmin:code>v16qi3): Ditto.
3826 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
3827 (*sse2_eq<mode>3): Ditto.
3828 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
3829 (*sse2_gt<mode>3): Ditto.
3830 (vcondv2di): Split out of vcond<mode>.
3831 (vconduv2di): Split out of vcondu<mode>.
3833 2011-04-11 Richard Guenther <rguenther@suse.de>
3835 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
3836 before calling tree_low_cst.
3838 2011-04-11 Richard Guenther <rguenther@suse.de>
3840 * stor-layout.c (layout_type): Compute all array index size operations
3841 in the original type.
3842 (initialize_sizetypes): Add comment.
3843 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
3845 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3847 * common.opt (Tbss=, Tdata=, Ttext=): New options.
3849 2011-04-11 Martin Jambor <mjambor@suse.cz>
3851 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
3852 of cgraph_node, handle NULL return value.
3853 (cgraph_global_info): Likewise.
3854 (cgraph_rtl_info): Likewise.
3855 * tree-inline.c (estimate_num_insns): Likewise.
3856 * gimplify.c (unshare_body): Likewise.
3857 (unvisit_body): Likewise.
3858 (gimplify_body): Likewise.
3859 * predict.c (optimize_function_for_size_p): Likewise.
3860 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3861 (call_may_clobber_ref_p_1): Likewise.
3862 * varasm.c (function_section_1): Likewise.
3863 (assemble_start_function): Likewise.
3865 2011-04-11 Martin Jambor <mjambor@suse.cz>
3867 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
3869 * final.c (rest_of_clean_state): Likewise.
3870 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
3871 * passes.c (pass_init_dump_file): Likewise.
3872 (execute_all_ipa_transforms): Likewise.
3873 (function_called_by_processed_nodes_p): Likewise.
3874 * predict.c (maybe_hot_frequency_p): Likewise.
3875 (probably_never_executed_bb_p): Likewise.
3876 (compute_function_frequency): Likewise.
3877 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
3878 (unnest_nesting_tree_1): Likewise.
3879 (lower_nested_functions): Likewise.
3880 * tree-optimize.c (execute_fixup_cfg): Likewise.
3881 (tree_rest_of_compilation): Likewise.
3882 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
3883 * tree-sra.c (ipa_early_sra): Likewise.
3884 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3885 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
3886 * ipa.c (record_cdtor_fn): Likewise.
3887 * ipa-inline.c (cgraph_early_inlining): Likewise.
3888 (compute_inline_parameters_for_current): Likewise.
3889 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3890 * ipa-pure-const.c (local_pure_const): Likewise.
3891 * ipa-split.c (split_function): Likewise.
3892 (execute_split_functions): Likewise.
3893 * cgraphbuild.c (build_cgraph_edges): Likewise.
3894 (rebuild_cgraph_edges): Likewise.
3895 (cgraph_rebuild_references): Likewise.
3896 (remove_cgraph_callee_edges): Likewise.
3897 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
3898 (verify_cgraph_node): Likewise.
3899 (cgraph_analyze_functions): Likewise.
3900 (cgraph_preserve_function_body_p): Likewise.
3901 (save_inline_function_body): Likewise.
3902 (save_inline_function_body): Likewise.
3903 * tree-inline.c (copy_bb): Likewise.
3904 (optimize_inline_calls): Likewise.
3906 2011-04-11 Martin Jambor <mjambor@suse.cz>
3908 PR tree-optimization/48195
3909 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
3910 ipa_check_create_edge_args.
3911 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
3912 ipa_check_create_edge_args.
3913 * ipa-inline.c (inline_generate_summary): Do not call
3914 ipa_check_create_node_params and ipa_check_create_edge_args.
3915 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
3916 ipa_check_create_edge_args.
3918 2011-04-09 Anatoly Sokolov <aesok@post.ru>
3920 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
3922 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3923 * function.c (record_hard_reg_sets): Likewise.
3924 * ira.c (compute_regs_asm_clobbered): Likewise.
3925 * sched-deps.c (sched_analyze_1): Likewise.
3926 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
3928 2011-04-09 Xinliang David Li <davidxl@google.com>
3930 PR tree-optimization/PR48484
3931 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
3932 has_valid_pred lazily
3934 2011-04-09 Duncan Sands <baldrick@free.fr>
3936 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
3938 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
3940 * combine.c (combine_validate_cost): Adjust comments. Set registered
3941 cost of I0 to zero at the end, if any.
3943 2011-04-08 Xinliang David Li <davidxl@google.com>
3945 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
3946 to insane profile data.
3948 2011-04-08 Xinliang David Li <davidxl@google.com>
3950 * ipa-cp.c (ipcp_update_profiling): Correct
3951 negative scale factor due to insane profile data.
3953 2011-04-08 Xinliang David Li <davidxl@google.com>
3955 * final.c (dump_basic_block_info): New function.
3956 (final): Dump basic block.
3957 (final_scan_insn): Remove old dump.
3959 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
3962 * config.gcc (i386-*-freebsd): Disable unwind table generation for
3965 2011-04-08 Michael Matz <matz@suse.de>
3968 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
3970 (rebuild_jump_labels): Call rebuild_jump_labels_1.
3971 * rtl.h (rebuild_jump_labels_chain): Declare.
3972 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
3973 insns inserted on edges.
3975 2011-04-08 Joseph Myers <joseph@codesourcery.com>
3977 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
3978 * config/arm/arm-arches.def: New.
3979 * config/arm/arm-opts.h: New.
3980 * config/arm/genopt.sh: New.
3981 * config/arm/arm-tables.opt: New (generated).
3982 * config/arm/arm.c (arm_handle_option, arm_target_help,
3983 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
3984 (all_architectures): Get most table contents from arm-arches.def.
3985 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
3986 arm_selected_tune here.
3987 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
3988 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
3989 (march=, mcpu=, mtune=): Use Enum and Var.
3990 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
3991 (arm.o): Update dependencies.
3993 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
3995 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
3997 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
3998 (write_typed_alloc_defns): Likewise.
3999 (main): Calls write_typed_alloc_defns with output_header.
4001 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4004 * ira-color.c (setup_profitable_hard_regs): Add comments.
4005 Don't take prohibited hard regs into account.
4006 (setup_conflict_profitable_regs): Rename to
4007 get_conflict_profitable_regs.
4008 (check_hard_reg_p): Check prohibited hard regs.
4010 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4012 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4013 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4014 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4016 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4019 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4020 move from floating point to shift amount register.
4021 (emit_move_sequence): Remove secondary reload support for floating
4022 point to shift amount amount register copies.
4023 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4024 amount register copies.
4025 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4026 register, return false if mode isn't a scalar integer mode.
4027 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4029 2011-04-08 Richard Guenther <rguenther@suse.de>
4031 * gimple.c (gimple_call_flags): Remove kludge.
4033 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4035 * sel-sched.c (sel_region_init): Move call to
4036 sel_setup_region_sched_flags after setup_current_loop_nest.
4038 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4040 PR rtl-optimization/48272
4041 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4042 init_insn_reg_pressure_info. Adjust a caller.
4043 * sched-int.h (init_insn_reg_pressure_info): Declare.
4044 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4045 when sched-pressure is enabled.
4047 2011-04-08 Richard Guenther <rguenther@suse.de>
4049 * gimple.c (gimple_set_modified): Do not queue calls to
4050 MODIFIED_NORETURN_CALLS here ...
4051 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4053 2011-04-08 Richard Guenther <rguenther@suse.de>
4056 * toplev.c (lang_dependent_init): Do not open asm_out_file
4057 in WPA mode, nor perform debug machinery initialization.
4058 (finalize): Do not unlink asm_out_file in WPA mode.
4060 2011-04-08 Richard Guenther <rguenther@suse.de>
4062 * gimple.h (gimple_call_fntype): New function.
4063 (gimple_call_return_type): Use it.
4064 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4065 * gimple-low.c (gimple_check_call_args): Likewise.
4066 * gimple.c (gimple_call_flags): Likewise.
4067 (gimple_call_arg_flags): Likewise.
4068 (gimple_call_return_flags): Likewise.
4069 * tree-cfg.c (verify_gimple_call): Likewise.
4070 (do_warn_unused_result): Likewise.
4071 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4072 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4074 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4076 PR rtl-optimization/48235
4077 * sel-sched.c (code_motion_process_successors): Recompute the last
4078 insn in basic block if control flow changed.
4079 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4080 Update condition for ilist_remove.
4082 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4084 PR rtl-optimization/48302
4085 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4086 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4087 it to record added preheader blocks.
4088 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4089 on to sel_add_loop_preheaders.
4090 (sel_region_init): Move call to setup_current_loop_nest after
4093 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4096 * cfgloop.h (loop_has_exit_edges): New helper.
4097 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4099 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4100 that have no exit edges.
4102 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4104 PR rtl-optimization/48442
4105 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4106 all callers. Adjust assert.
4108 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4110 PR tree-optimization/48377
4111 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4112 is_packed to true even for types with smaller TYPE_ALIGN than
4115 2011-04-08 Richard Guenther <rguenther@suse.de>
4118 * doc/tm.texi: Re-generate.
4120 2011-04-08 Wei Guozhi <carrot@google.com>
4123 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4124 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4125 * config/arm/arm.md (*push_multi): Change the length computation to
4128 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4130 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4131 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4132 * doc/tm.texi: Regenerate.
4133 * system.h (ASM_OUTPUT_BSS): Poison.
4134 * varasm.c (asm_output_bss): Remove function.
4135 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4137 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4138 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4139 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4140 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4142 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4144 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4146 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4148 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4150 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4153 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4155 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4156 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4157 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4159 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4160 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4161 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4162 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4163 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4164 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4165 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4166 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4167 options. Don't map other m68k options manually. Don't handle
4168 old-style options as canonical.
4169 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4170 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4172 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4174 * basic-block.h (force_nonfallthru): Move to...
4175 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4176 (force_nonfallthru): ...here.
4177 * cfghooks.c (force_nonfallthru): New function.
4178 * cfgrtl.c (force_nonfallthru): Rename into...
4179 (rtl_force_nonfallthru): ...this.
4180 (commit_one_edge_insertion): Do not set AUX field.
4181 (commit_edge_insertions): Do not discover new basic blocks.
4182 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4183 (cfg_layout_rtl_cfg_hooks): Likewise.
4184 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4185 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4186 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4188 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4190 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4193 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4195 * config/i386/sse.md: Update copyright year.
4196 (avxcvtvecmode): Remove.
4197 (sse_movhlps): Merge with *avx_movhlps.
4198 (sse_movlhps): Merge with *avx_movlhps.
4199 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4200 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4201 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4202 (sse_loadhps): Merge with *avx_loadhps.
4203 (sse_storelps): Merge with *avx_storelps.
4204 (sse_loadlps): Merge with *avx_loadlps.
4205 (sse_movss): Merge with *avx_movss.
4206 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4207 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4208 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4209 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4210 (vec_set<mode>_0): Ditto.
4211 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4212 (sse4_1_insertps): Merge with *avx_insertps.
4213 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4214 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4215 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4216 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4217 (sse2_storehpd): Merge with *avx_storehpd.
4218 (sse2_loadhpd): Merge with *avx_loadhpd.
4219 (sse2_loadlpd): Merge with *avx_loadlpd.
4220 (sse2_movsd): Merge with *avx_movsd.
4221 (*vec_concatv2df): Merge with *vec_concatv2df.
4223 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4226 * combine.c (combine_instructions): Add last_combined_insn,
4227 update it if insn is after it, pass it to all try_combine calls.
4228 (try_combine): Add last_combined_insn parameter, pass it instead of
4229 i3 to propagate_for_debug.
4231 2011-04-07 Nick Clifton <nickc@redhat.com>
4233 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4234 to handle MDR <-> data register transfers.
4235 (movhi_internal): Likewise.
4237 2011-04-07 Alan Modra <amodra@gmail.com>
4239 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4240 previous stack info.
4242 2011-04-07 Tom de Vries <tom@codesourcery.com>
4245 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4246 flow_find_cross_jump. Swap variables to implement backward replacement.
4247 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4249 2011-04-07 Tom de Vries <tom@codesourcery.com>
4252 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4253 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4255 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4256 src1 or src2. Redirect edges to the last basic block. Update
4257 frequency and count on multiple basic blocks in case of fallthru.
4259 2011-04-07 Tom de Vries <tom@codesourcery.com>
4262 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4264 (old_insns_match_p): Change return type. Replace return false/true
4265 with return dir_none/dir_both. Use can_replace_by.
4266 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4267 direction from dir_p. Register replacement direction in dir, last_dir
4268 and afterlast_dir. Handle new return type of old_insns_match_p using
4269 merge_dir. Return replacement direction in dir_p.
4270 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4271 return type of old_insns_match_p.
4272 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4273 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4274 flow_find_cross_jump.
4275 * basic-block.h (enum replace_direction): New type.
4276 (flow_find_cross_jump): Add parameter to declaration.
4278 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4280 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4281 (AVXMODEDCVTPS2DQ): Ditto.
4282 (VEC_FLOAT_MODE): Ditto.
4283 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4284 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4285 (<any_logic:code><mode>3): Use VF mode iterator.
4286 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4287 Use VF mode iterator.
4288 (copysign<mode>3): Use VF mode iterator.
4289 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4290 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4291 (*<any_logic:code><MODEF:mode>3): Merge with
4292 *avx_<any_logic:code><MODEF:mode>3.
4293 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4294 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4295 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4296 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4297 (sse2_cvtdq2ps): Use %v modifier.
4298 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4299 (avx_cvtps2dq<avxmodesuffix>): Remove.
4300 (sse2_cvtps2dq): Use %v modifier.
4301 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4302 (avx_cvttps2dq<avxmodesuffix>): Remove.
4303 (sse2_cvttps2dq): Use %v modifier.
4304 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4305 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4306 (sse2_cvtsd2siq): Fix insn template.
4307 (sse2_cvtsd2siq_2): Ditto.
4308 (sse2_cvttsd2siq): Ditto.
4309 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4310 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4312 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4314 * gcov-io.c: Use GCC Runtime Library Exception.
4316 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4319 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4320 as base_reg whatever register reg has been eliminated to, instead
4321 of hardcoding STACK_POINTER_REGNUM.
4323 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4325 * doc/tm.texi.in: Document C target hooks as separate from general
4327 * doc/tm.texi: Regenerate.
4328 * genhooks.c (struct hook_desc): Add docname field.
4329 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4331 (hook_array): Include c-target.def.
4332 (emit_documentation): Use docname field in output.
4333 (emit_init_macros): Take docname argument. Only emit definitions
4334 for hooks matching docname.
4335 (main): Expect additional arguments in all cases. Pass argument
4336 to emit_init_macros.
4337 * target.def: Move initial macro definitions and comments to
4338 target-hooks-macros.h.
4339 (gcc_targetcm): Move to c-family/c-target.def.
4340 * target.h (targetcm): Move declaration to c-family/c-target.h.
4341 * targhooks.c (default_handle_c_option): Move to
4343 * targhooks.h (default_handle_c_option): Move declaration to
4344 c-family/c-common.h.
4345 * target-hooks-macros.h: New file.
4346 * config.gcc (target_has_targetcm): Define and use to add to
4347 c_target_objs and cxx_target_objs.
4348 * config/default-c.c: New file.
4349 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4350 of target.h and target-def.h.
4351 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4352 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4353 darwin_check_cfstring_format_arg): Make static.
4354 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4355 TARGET_STRING_OBJECT_REF_TYPE_P,
4356 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4357 * config/darwin-protos.h (darwin_objc_construct_string,
4358 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4360 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4361 TARGET_STRING_OBJECT_REF_TYPE_P,
4362 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4363 * config/t-darwin (darwin-c.o): Update dependencies.
4364 * system.h (TARGET_HAS_TARGETCM): Poison.
4365 * Makefile.in (TARGET_H): Update.
4366 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4367 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4368 (default-c.o): New target.
4369 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4370 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4371 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4373 (build/genhooks.o): Update dependencies.
4375 2011-04-06 Richard Guenther <rguenther@suse.de>
4377 * ipa-inline.c (enum inlining_mode): Remove.
4378 (cgraph_flatten): Use some other token.
4379 (cgraph_edge_early_inlinable_p): New function, split out from ...
4380 (cgraph_perform_always_inlining): New function, split out from ...
4381 (cgraph_decide_inlining_incrementally): ... here.
4382 (cgraph_mark_inline_edge): Adjust.
4383 (cgraph_early_inlining): Re-structure.
4384 (pass_early_inline): Require SSA form.
4386 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4387 Julian Brown <julian@codesourcery.com>
4388 Mark Shinwell <shinwell@codesourcery.com>
4390 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4391 LO_REGS only for Thumb-1.
4392 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4393 be used in short instructions when optimising for size on Thumb-2.
4395 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4397 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4398 associated with user returns to be preserved.
4400 2011-04-06 Tristan Gingold <gingold@adacore.com>
4402 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4403 symbol_queue_size, DBXOUT_DECR_NESTING,
4404 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4405 if XCOFF_DEBUGGING_INFO.
4407 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4409 * config/i386/i386.md (attribute isa): New.
4410 (attribute enabled): New.
4411 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4412 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4413 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4414 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4415 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4416 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4417 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4418 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4420 * config/i386/sse.md (VF): New mode iterator.
4424 (SSEMODEF4): Remove.
4425 (attribute sse): Handle V8SF and V4DF modes.
4426 (<absneg:code><mode>2): Use VF mode iterator.
4427 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4429 (<plusminus_insn><mode>3): Use VF mode iterator.
4430 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4431 Use VF mode iterator.
4432 (<sse>_vm<plusminus_insn><mode>3): Merge with
4433 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4434 (mul<mode>3): Use VF mode iterator.
4435 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4436 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4438 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4439 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4440 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4441 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4443 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4444 Use VF1 mode iterator.
4445 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4446 (sqrt<VF2:mode>2): New expander.
4447 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4448 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4449 and sqrtv2df2. Use VF mode iterator.
4450 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4452 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4453 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4454 Use VF1 mode iterator.
4455 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4456 (<smaxmin:code><mode>3): Use VF mode iterator.
4457 (*<smaxmin:code><mode>3_finite): Merge with
4458 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4459 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4460 (<sse>_vm<smaxmin:code><mode>2): Merge with
4461 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4462 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4464 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4466 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4467 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4468 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4469 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4470 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4472 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4473 Use VF_128 mode iterator.
4474 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4476 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4477 VF_128 mode iterator.
4478 (vcond<mode>): Use VF mode iterator.
4479 * config/i386/predicates.md (sse_comparison_operator): Merge with
4480 avx_comparison_float_operator. Do not declare as special_predicate.
4481 * config/i386/i386.c (struct builtin_description): Update for renamed
4483 (ix86_expand_args_builtin): Ditto.
4484 (ix86_expand_sse_compare_mask): Ditto.
4486 2011-04-06 Richard Guenther <rguenther@suse.de>
4488 * tree-inline.c (estimate_num_insns): For calls simply account
4489 for all passed arguments and a used return value.
4491 2011-04-06 Richard Guenther <rguenther@suse.de>
4493 PR tree-optimization/47663
4494 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4495 call_stmt_time fields.
4496 (cgraph_edge_inlinable_p): Declare.
4497 (cgraph_edge_recursive_p): New inline function.
4498 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4499 (cgraph_clone_edge): Copy it.
4500 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4501 Account for call stmt time.
4502 (cgraph_estimate_time_after_inlining): Take edge argument.
4503 (cgraph_estimate_edge_growth): Account call stmt size.
4504 (cgraph_estimate_size_after_inlining): Take edge argument.
4505 (cgraph_mark_inline_edge): Adjust.
4506 (cgraph_check_inline_limits): Likewise.
4507 (cgraph_recursive_inlining_p): Remove.
4508 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4509 (cgraph_decide_recursive_inlining): Take edge argument and
4511 (cgraph_decide_inlining_of_small_functions): Do not avoid
4512 diags for recursive inlining here.
4513 (cgraph_flatten): Adjust.
4514 (cgraph_decide_inlining_incrementally): Likewise.
4515 (estimate_function_body_sizes): Remove call cost handling.
4516 (compute_inline_parameters): Initialize caller edge call costs.
4517 (cgraph_estimate_edge_growth): New function.
4518 (cgraph_estimate_growth): Use it.
4519 (cgraph_edge_badness): Likewise.
4520 (cgraph_check_inline_limits): Take an edge argument.
4521 (cgraph_decide_inlining_of_small_functions): Adjust.
4522 (cgraph_decide_inlining): Likewise.
4523 * tree-inline.c (estimate_num_insns): Only account for call
4524 return value if it is used.
4525 (expand_call_inline): Avoid diagnostics on recursive inline
4527 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4528 (input_edge): Input edge call costs.
4530 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4532 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4534 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4536 * doc/invoke.texi (Spec Files): Fix typo.
4538 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4540 * profile.c (branch_prob): Move declaration of local variable. Remove
4541 obsolete ??? comment. Expand the location explicitly instead of using
4542 the LOCATION_FILE and LOCATION_LINE macros.
4544 2011-04-06 Wei Guozhi <carrot@google.com>
4547 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4548 (arm_cond_branch): Likewise.
4549 (arm_cond_branch_reversed): Likewise.
4550 (arm_jump): Likewise.
4551 (push_multi): Likewise.
4552 * config/arm/constraints.md (Py): New constraint.
4554 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4557 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4559 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4560 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4561 #ifdef DBX_DEBUGGING_INFO.
4563 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4566 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4567 if old and new states differ.
4569 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4571 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4572 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4573 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4574 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4575 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4577 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4578 ColdFire options to -mcpu= options.
4580 2011-04-05 Jeff Law <law@redhat.com>
4582 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4583 check if BB is a successor of LOOP->header and return
4584 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4586 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4588 * cprop.c (struct reg_use): Remove.
4589 (reg_use_table): Make an array of RTX.
4590 (find_used_regs, constprop_register, local_cprop_pass,
4591 bypass_block): Simplify users of reg_use_table.
4592 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4593 on one of the uses found by find_used_regs.
4595 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4598 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4601 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4603 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4605 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4607 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4610 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4612 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4614 * combine.c: Include obstack.h.
4615 (struct insn_link): Define.
4616 (uid_log_links): Adjust type.
4617 (FOR_EACH_LOG_LINK): New macro.
4618 (insn_link_obstack): Declare.
4619 (alloc_insn_link): Define.
4620 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
4621 type of link variables.
4622 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4623 (try_combine, record_promoted_values, distribute_notes): Likewise.
4624 (distribute_links): Likewise. Tweak prototype.
4625 (clear_log_links): Delete.
4626 (adjust_for_new_dest): Call alloc_insn_link.
4627 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4629 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4631 * gcse.c (modify_mem_list): Convert to an array of VECs.
4632 (canon_modify_mem_list, compute_transp): Tweak formatting.
4633 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
4634 (load_killed_in_block_p): Likewise.
4635 (record_last_mem_set_info): Likewise.
4636 (clear_modify_mem_tables): Likewise.
4638 2011-04-05 Tom de Vries <tom@codesourcery.com>
4641 * function.c (emit_use_return_register_into_block): Only define if
4644 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
4646 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4648 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4650 * config/rx/rx-opts.h: New.
4651 * config/rx/rx.c (rx_cpu_type): Remove.
4652 (rx_handle_option): Don't assert that global structures are in
4653 use. Access variables via opts pointer. Defer most handling of
4654 OPT_mint_register_. Use error_at.
4655 (rx_option_override): Handle deferred OPT_mint_register_ here.
4656 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4657 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4658 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4659 (rx_cpu_types): New Enum and EnumValue entries.
4660 (mint-register=): Use Defer and use Var accordingly.
4662 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4664 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4665 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4666 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4668 (debug_free_queue, debug_nesting, symbol_queue_index):
4670 * dbxout.c: ...to here. Make static.
4672 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4674 * gcse.c (modify_pair): Define. Define a VEC of it.
4675 (canon_modify_mem_list): Convert to an array of VECs.
4676 (free_insn_expr_list_list): Delete.
4677 (clear_modify_mem_tables): Call VEC_free instead.
4678 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4679 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4680 (canon_list_insert, compute_transp): Likewise.
4682 2011-04-05 Tom de Vries <tom@codesourcery.com>
4685 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4688 2011-04-05 Tom de Vries <tom@codesourcery.com>
4691 * function.c (emit_use_return_register_into_block): New function.
4692 (thread_prologue_and_epilogue_insns): Use
4693 emit_use_return_register_into_block.
4695 2011-04-05 Tom de Vries <tom@codesourcery.com>
4698 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4701 2011-04-05 Tom de Vries <tom@codesourcery.com>
4703 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4705 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4707 * config/arm/arm.md (define_constants for unspec): Replace with
4709 (define_constants for unspecv): Replace with define_c_enum.
4710 * config/arm/neon.md (define_constants for unspec): Replace with
4713 2011-04-04 Richard Henderson <rth@redhat.com>
4716 * dwarf2out.c (output_line_info): Always emit line info from
4717 at least one section.
4718 (dwarf2out_init): Create text_section_line_info here ...
4719 (set_cur_line_info_table): ... not here.
4721 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
4724 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4727 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4729 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
4731 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4732 (expr_equiv_p): Remove.
4733 (insert_set_in_table): Look at <dest, src> pair instead of expr.
4734 (hash_scan_set): Update call to insert_set_in_table.
4735 (dump_hash_table): Dump <dest, src> pair.
4736 (lookup_set): Simplify. Lookup <dest, src> pair.
4737 (compute_transp): Remove, fold heavily simplified code into...
4738 (compute_local_properties): ...here. Expect COMP and TRANSP
4740 (find_avail_set): Take set directly from struct expr.
4741 (find_bypass-set): Likewise.
4742 (bypass_block): Likewise.
4743 (cprop_insn): Likewise. Remove redundant INSN_P test.
4745 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4746 checks on form of COND from find_implicit_sets to here.
4747 (find_implicit_sets): Cleanup control flow. Split critical edges
4748 if it exposes implicit sets. Allocate/resize implicit_sets as
4750 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4751 changed something. Run df_analyze after find_implicit_sets if any
4752 edges were split. Do not allocate implicit_sets here.
4754 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4755 (gcse_obstack): Renamed to cprop_obstack.
4756 (GNEW, GNEWVEC, GNEWVAR): Remove.
4758 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4759 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4760 (gcse_alloc): Likewise, and rename to cprop_alloc.
4761 (alloc_gcse_men, free_gcse_mem): Remove.
4762 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4763 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4764 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4766 * cprop.c (oprs_not_set_p): Remove.
4767 (mark_set, mark_clobber): Remove.
4768 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4769 (reg_not_set_p): New function.
4770 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4771 (cprop_insn): Likewise.
4772 (cprop_jump): Use FOR_EACH_EDGE.
4774 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
4777 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
4778 (rank_for_schedule): Use scheduled_insns vector instead of
4779 last_scheduled_insn.
4780 (ok_for_early_queue_removal): Likewise.
4781 (queue_to_ready): Search forward in nonscheduled_insns_begin if
4783 (choose_ready): Likewise.
4784 (commit_schedule): Use VEC_iterate.
4785 (schedule_block): Initialize nonscheduled_insns_begin. If we have
4786 a dbg_cnt, use it and ensure the first insn is in the ready list.
4787 (haifa_sched_init): Allocate scheduled_insns.
4788 (sched_extend_ready_list): Don't allocate it; reserve space.
4789 (haifa_sched_finish): Free it.
4791 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4793 * optc-gen.awk: Always remove type from Variable entry before
4794 recording in var_seen.
4796 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
4798 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
4799 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
4800 call to tidy_fallthru_edges.
4802 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4804 * doc/options.texi (ToLower): Document.
4805 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
4806 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
4807 * opts.h (cl_option): Add cl_tolower field.
4808 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
4809 arguments with lowercase strings.
4810 * config/rx/rx.opt (mcpu=): Add ToLower.
4811 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
4814 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4816 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
4818 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4820 * config/vax/vax.c: Include reload.h.
4822 2011-04-04 Anatoly Sokolov <aesok@post.ru>
4824 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
4825 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4826 (sparc_preferred_reload_class): New function.
4828 2011-04-04 Jakub Jelinek <jakub@redhat.com>
4831 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4832 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
4834 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
4836 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
4837 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
4839 2011-04-03 Anatoly Sokolov <aesok@post.ru>
4841 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
4842 (ASM_OUTPUT_ALIGNED_BSS): Define.
4844 2011-04-03 Michael Matz <matz@suse.de>
4846 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
4847 and next_slot members.
4848 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
4849 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
4850 (lto_streamer_cache_append): Declare.
4851 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
4852 unsigned index, remove offset parameter, ensure that we append
4853 or update existing entries.
4854 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
4855 parameter, update next_slot for append.
4856 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
4858 (lto_streamer_cache_insert_at): Likewise.
4859 (lto_streamer_cache_append): New function.
4860 (lto_streamer_cache_lookup): Use unsigned index.
4861 (lto_streamer_cache_get): Likewise.
4862 (lto_record_common_node): Don't test tree_node_can_be_shared.
4863 (preload_common_node): Adjust call to lto_streamer_cache_insert.
4864 (lto_streamer_cache_delete): Don't free offsets member.
4865 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
4866 (lto_output_string_with_length): Use lto_output_data_stream.
4867 (lto_output_tree_header): Remove ix parameter, don't write it.
4868 (lto_output_builtin_tree): Likewise.
4869 (lto_write_tree): Adjust callers to above, don't track and write
4870 offset, write unsigned index.
4871 (output_unreferenced_globals): Don't emit all global vars.
4872 (write_global_references): Use unsigned indices.
4873 (lto_output_decl_state_refs): Likewise.
4874 (write_symbol): Likewise.
4875 * lto-streamer-in.c (lto_input_chain): Move earlier.
4876 (input_function): Use unsigned index.
4877 (input_alias_pairs): Don't read and then ignore all global vars.
4878 (lto_materialize_tree): Remove ix_p parameter, don't read index,
4879 don't pass it back, use lto_streamer_cache_append.
4880 (lto_register_var_decl_in_symtab): Use unsigned index.
4881 (lto_register_function_decl_in_symtab): Likewise.
4882 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
4884 (lto_get_builtin_tree): Don't read index, use
4885 lto_streamer_cache_append.
4886 (lto_read_tree): Adjust call to lto_materialize_tree.
4888 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
4889 don't use function calls in arguments to MIN.
4891 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
4894 * gimple.c (gimple_type_leader_entry): Mark deletable.
4896 2011-04-03 Alan Modra <amodra@gmail.com>
4898 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
4900 2011-04-03 Michael Matz <matz@suse.de>
4902 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
4904 * tree.h (tree_decl_non_common.vindex): Adjust comment.
4906 2011-04-03 Michael Matz <matz@suse.de>
4908 * cgraphbuild.c (record_reference): Canonicalize constructor values.
4909 * gimple-fold.c (canonicalize_constructor_val): Accept being called
4910 without function context.
4911 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
4912 current_function_decl and cfun.
4914 2011-04-03 Michael Matz <matz@suse.de>
4916 * tree.c (decl_init_priority_insert): Don't create entry for
4918 (decl_fini_priority_insert): Ditto.
4919 (fields_compatible_p, find_compatible_field): Remove.
4920 * tree.h (fields_compatible_p, find_compatible_field): Remove.
4921 * gimple.c (gimple_compare_field_offset): Adjust block comment.
4923 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
4925 * combine.c (try_combine): Remove useless local variable.
4927 2011-04-03 Richard Guenther <rguenther@suse.de>
4928 Ira Rosen <ira.rosen@linaro.org>
4930 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
4931 non-variable offsets and compare the remaining bases of the two
4932 accesses instead of looking for exact same data-ref.
4934 2011-04-02 Kai Tietz <ktietz@redhat.com>
4937 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
4939 * i386.c (ix86_is_msabi_thiscall): New helper function.
4940 (ix86_is_type_thiscall): New helper function.
4941 (ix86_comp_type_attributes): Handle thiscall for method-functions
4943 (init_cumulative_args): Likewise.
4944 (find_drap_reg): Likewise.
4945 (ix86_static_chain): Likewise.
4946 (x86_this_parameter): Likewise.
4947 (x86_output_mi_thunk): Likewise.
4949 2011-04-01 Olivier Hainque <hainque@adacore.com>
4950 Nicolas Setton <setton@adacore.com>
4951 Eric Botcazou <ebotcazou@adacore.com>
4953 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
4954 (add_gnat_descriptive_type_attribute): New function.
4955 (gen_array_type_die): Call it.
4956 (gen_enumeration_type_die): Likewise.
4957 (gen_struct_or_union_type_die): Likewise.
4958 (modified_type_die): Likewise.
4959 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
4960 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
4961 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
4963 2011-04-01 Jakub Jelinek <jakub@redhat.com>
4966 * dwarf2out.c (resolve_addr): Don't call force_decl_die
4967 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
4970 2011-03-17 Richard Guenther <rguenther@suse.de>
4973 * lto-cgraph.c (input_overwrite_node): Clear the abstract
4974 origin for decls in other ltrans units.
4975 (input_varpool_node): Likewise.
4977 2011-04-01 Jakub Jelinek <jakub@redhat.com>
4980 * expr.c (expand_assignment): Handle all possibilities
4981 if TO_RTX is CONCAT.
4982 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
4983 (store_split_bit_field): If SUBREG_REG (op0) or
4984 op0 itself has smaller mode than word, return it
4985 for offset 0 and const0_rtx for out-of-bounds stores.
4986 If word is const0_rtx, skip it.
4988 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
4990 * config/h8300/h8300.c (print_operand_address): Rename to...
4991 (h8300_print_operand_address): ...this. Make static. Adjust comments.
4992 Call h8300_print_operand and h8300_print_operand_address instead of
4993 print_operand and print_operand_address. Declare.
4994 (print_operand): Renake to...
4995 (h8300_print_operand): ...this. Make static. Adjust comments.
4996 Call h8300_print_operand instead of print_operand. Declare.
4997 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
4998 (h8300_register_move_cost): Likewise.
4999 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5000 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5001 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5002 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5003 * config/h8300/h8300-protos.h (print_operand): Delete.
5004 (print_operand_address): Delete.
5006 2011-04-01 Richard Henderson <rth@redhat.com>
5009 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5010 in strict mode before dwarf4. Re-order tests to early out
5011 before switching sections.
5013 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5015 * config/h8300/constraints.md: New file.
5016 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5017 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5018 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5019 * config/h8300/predicates.md (bit_operand): Likewise.
5020 (incdec_operand): Use satisfies_constraint_M and
5021 satisfies_constraint_O. Don't use C code block.
5022 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5023 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5024 (compute_mov_length): Use satisfies_constraint_G.
5025 (fix_bit_operand): Use satisfies_constraint_U.
5026 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5027 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5028 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5029 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5030 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5031 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5032 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5033 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5034 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5035 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5036 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5037 (EXTRA_MEMORY_CONSTRAINT): Delete.
5039 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5040 Michael Meissner <meissner@linux.vnet.ibm.com>
5043 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5044 operands, as per the specifications.
5046 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5047 (vec_extract_evenv4sf): Ditto.
5048 (vec_extract_evenv8hi): Ditto.
5049 (vec_extract_evenv16qi): Ditto.
5050 (vec_extract_oddv4si): Ditto.
5052 2011-03-31 Mark Wielaard <mjw@redhat.com>
5054 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5055 high_pc attribute if the CU has no associated code. Only output
5056 DW_AT_entry_pc for CU if not generating strict dwarf and
5059 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5061 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5062 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5064 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5065 * final.c (final_start_function): Call the new function rather
5066 than using a NULL argument for dwarf2out_frame_debug.
5068 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5069 that contains the prologue.
5071 * haifa-sched.c (queue_insn): New arg REASON. All callers
5072 changed. Print it in debugging output.
5074 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5076 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5077 Split most of the code into...
5078 (begin_move_insn): ... here. New function.
5079 (ebb_sched_info): Add a pointer to it.
5080 * haifa-sched.c (scheduled_insns): New static variable.
5081 (sched_extend_ready_list): Allocate it.
5082 (schedule_block): Use it to record the order of scheduled insns.
5083 Perform RTL changes to move insns only after all scheduling
5084 decisions have been made.
5085 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5086 begin_move_insn field.
5087 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5088 * sched-int.h (struct haifa_sched_info): Remove second argument
5089 from begin_schedule_ready hook. Add new member begin_move_insn.
5090 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5091 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5093 * haifa-sched.c (prune_ready_list): New function, broken out of
5095 (schedule_block): Use it.
5097 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5099 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5101 2011-04-01 Kai Tietz <ktietz@redhat.com>
5103 * config.gcc (*-*-mingw*): Allow as option the
5104 posix threading model.
5105 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5106 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5108 (CPP_SPEC): Add pthread/no-pthread handling.
5109 (LIB_SPEC): Likewise.
5110 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5111 (LIB_SPEC): Likewise.
5112 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5113 flag to pass -pthread option for shared libgcc build.
5114 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5115 for shared libgcc build.
5116 * config/i386/t-mingw-pthread: New file.
5117 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5118 New define to enable use of library pthread by default.
5119 * config/i386/mingw.opt (pthread): New driver option.
5120 (no-pthread): New driver option.
5121 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5122 * config/i386/mingw-w64.opt: Likewise.
5124 2011-04-01 Gary Funck <gary@intrepid.com>
5126 * c-decl.c (grokdeclarator): Fix formatting.
5128 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5130 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5131 instead of n_operands.
5132 (set_storage_via_setmem): Likewise.
5133 * optabs.c (maybe_gen_insn): Likewise.
5134 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5135 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5136 (mips_expand_builtin_direct): Likewise.
5137 * config/spu/spu.c (expand_builtin_args): Likewise.
5139 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5141 * recog.h (insn_data_d): Add n_generator_args.
5142 * genoutput.c (data): Likewise.
5143 (output_insn_data): Print it.
5144 (max_opno, num_dups): Delete.
5145 (scan_operands): Just fill in "d->operand[...]".
5146 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5148 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5150 * gensupport.h (pattern_stats): New structure.
5151 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5152 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5153 (max_operand_1, max_operand_vec): Delete.
5154 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5156 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5158 * emit-rtl.c (emit_pattern_after_setloc): New function.
5159 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5160 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5161 (emit_pattern_after): New function.
5162 (emit_insn_after, emit_jump_insn_after): Call it.
5163 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5164 (emit_pattern_before_setloc): New function.
5165 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5166 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5168 (emit_pattern_before): New function.
5169 (emit_insn_before, emit_jump_insn_before): Call it.
5170 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5172 2011-03-31 Richard Henderson <rth@redhat.com>
5174 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5175 (dw_separate_line_info_entry): Remove.
5176 (enum dw_line_info_opcode): New.
5177 (dw_line_info_entry): Use it.
5178 (dw_line_info_table, dw_line_info_table_p): New.
5179 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5180 (line_info_table, line_info_label_num): Remove.
5181 (line_info_table_in_use): Remove.
5182 (separate_line_info_table): Remove.
5183 (separate_line_info_table_allocated): Remove.
5184 (separate_line_info_table_in_use): Remove.
5185 (LINE_INFO_TABLE_INCREMENT): Remove.
5186 (line_info_label_num): New.
5187 (cur_line_info_table): New.
5188 (text_section_line_info, cold_text_section_line_info): New.
5189 (separate_line_info): New.
5190 (SEPARATE_LINE_CODE_LABEL): Remove.
5191 (print_dwarf_line_table): Remove.
5192 (debug_dwarf): Don't dump it.
5193 (output_one_line_info_table): New.
5194 (output_line_info): Use it.
5195 (new_line_info_table): New.
5196 (set_cur_line_info_table): New.
5197 (dwarf2out_switch_text_section): Use it.
5198 (dwarf2out_begin_function): Likewise.
5199 (push_dw_line_info_entry): New.
5200 (dwarf2out_source_line): Rewrite for new line info tables.
5201 (dwarf2out_init): Remove dead initailizations.
5203 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5205 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5207 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5208 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5209 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5210 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5211 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5212 * opt-functions.awk (flag_init, switch_bit_fields): New.
5213 (switch_flags): Don't handle flags moved to bit-fields. Don't
5214 generate CL_MISSING_OK or CL_SAVE.
5215 * optc-gen.awk: Update to generate bit-field output as well as
5217 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5218 bit-field instead of CL_REJECT_DRIVER flag.
5219 * opts-common.c (generate_canonical_option,
5220 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5221 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5222 instead of CL_REJECT_NEGATIVE flag.
5223 * toplev.c (print_switch_values): Use cl_report bit-field instead
5226 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5228 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5229 a zero minimum index only if it is redundant.
5231 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5233 PR rtl-optimization/48381
5234 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5235 instead of ira_class_hard_reg_index for calculating conflicting
5238 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5240 * cprop.c: Clean up hash table building.
5241 (reg_avail_info): Remove.
5242 (oprs_available_p): Remove.
5243 (record_last_reg_set_info): Remove.
5244 (record_last_set_info): Remove.
5245 (reg_available_p): New function.
5246 (gcse_constant_p): Do not treat unfolded conditions as constants.
5247 (make_set_regs_unavailable): New function.
5248 (hash_scan_set): Simplify with new reg_available_p.
5249 (compute_hash_table_work): Traverse insns stream only once.
5250 Do not compute reg_avail_info. Traverse insns in reverse order.
5251 Record implicit sets after recording explicit sets from the block.
5253 2011-03-31 Michael Matz <matz@suse.de>
5255 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5257 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5259 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5260 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5261 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5262 (h8300_mode_dependent_address_p): New function.
5263 (h8300_get_index): Make static.
5265 2011-03-31 Jeff Law <law@redhat.com>
5267 * reload1.c (elimination_effects): Fix typo in recent change.
5269 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5270 typo potentially leading to null pointer dereference.
5272 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5273 (setup_save_areas): Corresponding changes to avoid useless
5276 * jump.c (reversed_comparison_code_parts): Avoid successive return
5277 statements when REVERSE_CONDITION is defined.
5279 * expr.c (expand_assignment): Avoid useless assignments.
5280 (expand_expr_real_1): Likewise.
5281 (expand_expr_real_2): Avoid useless statements.
5283 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5285 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5287 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5290 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5292 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5295 * doc/tm.texi.in (TARGET_VERSION): Remove.
5296 * doc/tm.texi: Regenerate.
5297 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5298 * collect2.c (main): Don't use TARGET_VERSION.
5299 * mips-tdump.c (main): Don't use TARGET_VERSION.
5300 * mips-tfile.c (main): Don't use TARGET_VERSION.
5301 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5302 * config/rs6000/vxworksae.h: Remove.
5303 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5304 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5305 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5306 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5307 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5308 * config/arm/arm.h (TARGET_VERSION): Remove.
5309 * config/arm/coff.h (TARGET_VERSION): Remove.
5310 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5311 * config/arm/elf.h (TARGET_VERSION): Remove.
5312 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5313 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5314 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5315 * config/arm/pe.h (TARGET_VERSION): Remove.
5316 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5317 * config/arm/semi.h (TARGET_VERSION): Remove.
5318 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5319 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5320 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5321 * config/avr/avr.h (TARGET_VERSION): Remove.
5322 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5323 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5324 * config/frv/frv.h (TARGET_VERSION): Remove.
5325 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5326 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5327 * config/i386/darwin.h (TARGET_VERSION): Remove.
5328 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5329 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5330 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5331 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5332 * config/i386/gnu.h (TARGET_VERSION): Remove.
5333 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5334 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5335 * config/i386/linux.h (TARGET_VERSION): Remove.
5336 * config/i386/linux64.h (TARGET_VERSION): Remove.
5337 * config/i386/lynx.h (TARGET_VERSION): Remove.
5338 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5339 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5340 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5341 * config/i386/netware.h (TARGET_VERSION): Remove.
5342 * config/i386/nto.h (TARGET_VERSION): Remove.
5343 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5344 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5345 * config/ia64/elf.h (TARGET_VERSION): Remove.
5346 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5347 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5348 * config/ia64/linux.h (TARGET_VERSION): Remove.
5349 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5350 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5351 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5352 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5353 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5354 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5355 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5356 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5357 * config/m68k/linux.h (TARGET_VERSION): Remove.
5358 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5359 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5360 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5361 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5362 * config/mep/mep.h (TARGET_VERSION): Remove.
5363 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5364 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5365 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5366 * config/mips/linux.h (TARGET_VERSION): Remove.
5367 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5368 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5369 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5370 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5371 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5372 * config/pa/pa.h (TARGET_VERSION): Remove.
5373 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5374 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5375 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5376 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5377 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5378 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5379 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5380 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5381 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5382 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5383 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5384 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5385 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5386 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5387 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5388 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5389 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5390 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5391 * config/s390/linux.h (TARGET_VERSION): Remove.
5392 * config/s390/s390.h (TARGET_VERSION): Remove.
5393 * config/s390/tpf.h (TARGET_VERSION): Remove.
5394 * config/score/score.h (TARGET_VERSION): Remove.
5395 * config/sh/linux.h (TARGET_VERSION): Remove.
5396 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5397 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5398 * config/sh/sh.h (TARGET_VERSION): Remove.
5399 * config/sh/sh64.h (TARGET_VERSION): Remove.
5400 * config/sh/superh.h (TARGET_VERSION): Remove.
5401 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5402 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5403 * config/sparc/linux.h (TARGET_VERSION): Remove.
5404 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5405 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5406 TARGET_NAME32, TARGET_NAME): Remove.
5407 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5408 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5409 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5410 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5411 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5412 * config/spu/spu.h (TARGET_VERSION): Remove.
5413 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5414 * config/v850/v850.h (TARGET_VERSION): Remove.
5415 * config/vax/linux.h (TARGET_VERSION): Remove.
5416 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5417 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5418 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5420 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5423 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5424 frame-related from frame-unrelated adjustments to the stack pointer.
5426 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5428 * common.opt (fdebug-types-section): Move earlier.
5429 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5431 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5433 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5436 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5438 * tree.h (CASE_CHAIN): Define.
5439 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5440 (gimple_redirect_edge_and_branch): Likewise.
5442 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5445 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5448 2011-03-30 Jeff Law <law@redhat.com>
5450 * PR bootstrap/48371
5451 * reload1.c (reload): Fix botch in last change.
5453 * reload.h (struct reload): Fix typo introduced in last change.
5455 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5457 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5458 Undocumented. Remove help text.
5459 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5462 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5464 * doc/options.texi (NegativeAlias): Document.
5465 (Alias): Mention NegativeAlias.
5466 * opt-functions.awk: Handle NegativeAlias.
5467 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5468 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5469 * opts.h (CL_NEGATIVE_ALIAS): Define.
5470 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5471 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5473 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5475 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5476 mno-spe and mno-isel instead of mspe=no and -misel=no.
5478 2011-03-29 Mark Wielaard <mjw@redhat.com>
5480 * common.opt (fdebug-types-section): New flag.
5481 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5482 * dwarf2out.c (use_debug_types): New define.
5483 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5484 (print_die): Guard output of type unit signatures using
5486 (build_abbrev_table): Replace assert of dwarf_version >= 4
5487 with assert on use_debug_types.
5488 (size_of_die): Likewise.
5489 (unmark_dies): Likewise.
5490 (value_format): Decide AT_ref_external form on use_debug_types.
5491 (output_die): Replace dwarf_version version check guard with
5492 use_debug_types where appropriate.
5493 (modified_type_die): Likewise.
5494 (gen_reference_type_die): Likewise.
5495 (dwarf2out_start_source_file): Likewise.
5496 (dwarf2out_end_source_file): Likewise.
5497 (prune_unused_types_walk_attribs): Likewise.
5498 (dwarf2out_finish): Likewise.
5500 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5502 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5504 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5506 PR rtl-optimization/48332
5507 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5508 mode of input operand N and modeN to its actual mode.
5510 2011-03-30 Jeff Law <law@redhat.com>
5512 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5513 define accessor macro.
5514 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5515 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5516 (reg_equiv_init): Likewise.
5517 (reg_equivs_size): New variable.
5518 (reg_equiv_init_size): Remove.
5519 (allocate_initial_values): Move prototype to here from....
5520 * integrate.h (allocate_initial_values): Remove prototype.
5521 * integrate.c: Include reload.h.
5522 (allocate_initial_values): Corresponding changes.
5523 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5524 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5525 (update_equiv_regs): Corresponding changes.
5526 (ira): Corresponding changes.
5527 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5528 (push_secondary_reload): Corresponding changes.
5529 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5530 (make_memloc, find_reloads_address): Corresponding changes.
5531 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5532 (find_reloads_address_1): Corresponding changes.
5533 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5534 (refers_to_regno_for_reload_p): Corresponding changes.
5535 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5536 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5537 * reload1.c: Include ggc.h.
5538 (grow_reg_equivs): New function.
5539 (replace_pseudos_in, reload): Corresponding changes.
5540 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5541 (eliminate_regs_1, elimination_effects): Corresponding changes.
5542 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5543 (delete_output_reload): Likewise.
5544 * caller-save.c (mark_referenced_regs): Corresponding changes.
5545 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5546 * frv/predicates.md (frv_load_operand): Corresponding changes.
5547 * microblaze/microblaze.c (double_memory_operand): Corresponding
5549 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5550 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5551 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5552 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5553 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5555 * pa/pa.c (emit_move_sequence): Corresponding changes.
5556 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5558 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5561 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5562 structure modes. Don't check neon_vector_mem_operand for
5563 vector or structure modes.
5565 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5566 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5569 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5570 operand 1 and reshuffle the operands to match.
5571 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5573 2011-03-30 Christian Schüler <cschueler@gmx.de>
5576 * config/c.opt (F): Added 'Driver' to -F option.
5579 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5581 * config/darwin.opt: Added '-arch' option.
5583 2011-03-30 Nick Clifton <nickc@redhat.com>
5585 * config/rx/rx.md: Add peepholes and patterns to combine
5586 extending loads and simple arithmetic instructions.
5587 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5588 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5589 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5590 modes to use pre-decrement and post-increment addressing.
5591 (rx_is_restricted_memory_address): Add range checking of REG+INT
5593 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5594 (rx_memory_move_cost): Adjust cost of stores.
5595 (rx_adjust_insn_length): New function.
5597 2011-03-30 Jakub Jelinek <jakub@redhat.com>
5600 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5601 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5602 matching arg00/arg01 types.
5604 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5606 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5607 last_location to UNKNOWN_LOCATION.
5609 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5612 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5615 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5616 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5619 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5621 (sparc_cpu): Likewise.
5622 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5625 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5629 PR rtl-optimization/48345
5630 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5631 hard regs for given mode from profitable regs when doing secondary
5634 2011-03-29 Jeff Law <law@redhat.com>
5637 * tree-ssa-threadupdate.c (struct redirection_data): Remove
5638 do_not_duplicate field.
5639 (lookup_redirection_data): Corresponding changes.
5640 (create_duplicates): Always create a template block.
5641 (redirect_edges): Remove code which reused the original block
5642 when it was going to become unreachable code.
5643 (thread_block): Don't set do_not_duplicate field.
5645 2011-03-29 Joseph Myers <joseph@codesourcery.com>
5647 * lto-opts.c (register_user_option_p, lto_register_user_option):
5648 Make type argument unsigned.
5649 * lto-streamer.h (lto_register_user_option): Make type argument
5651 * opth-gen.awk: Make CL_* macros unsigned.
5652 * opts-common.c (find_opt): Make lang_mask argument unsigned.
5653 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5654 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5655 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5656 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5657 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5658 (find_opt): Make lang_mask argument unsigned.
5660 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5662 PR rtl-optimization/48331
5663 PR rtl-optimization/48334
5664 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5665 for any used algorithm.
5667 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5669 * ira-conflicts.c (build_object_conflicts): Add unused attribute
5672 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
5674 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5675 (alpha_option_override): Don't set alpha_sr_alias_set.
5676 (emit_frame_store_1): Use gen_frame_mem rather than calling
5678 (alpha_expand_epilogue): Ditto.
5680 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
5682 PR tree-optimization/48290
5683 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5684 vectorization, check that relevant phis in the basic block after
5685 the inner loop are really inner loop's exit phis.
5687 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5690 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5691 (cached_dw_loc_list_def): New structure.
5692 (cached_dw_loc_list): New typedef.
5693 (cached_dw_loc_list_table): New variable.
5694 (cached_dw_loc_list_table_hash): New function.
5695 (cached_dw_loc_list_table_eq): Likewise.
5696 (add_location_or_const_value_attribute): Take a bool cache_p.
5697 Cache the list when the parameter is true.
5698 (gen_formal_parameter_die): Update caller.
5699 (gen_variable_die): Likewise.
5700 (dwarf2out_finish): Likewise.
5701 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5702 while generating debug info for the decl.
5703 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5704 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5705 (resolve_addr): Cache the result of resolving a chain of
5708 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
5710 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5711 conflict object hard regset nodes have intersecting hard reg sets.
5713 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5714 after regstat_init_n_sets_and_refs.
5716 * ira.c: Add more comments at the top.
5717 (setup_stack_reg_pressure_class, setup_pressure_classes):
5718 Add comments how we compute the register pressure classes.
5719 (setup_allocno_and_important_classes): Add more comments.
5720 (setup_class_translate_array, reorder_important_classes)
5721 (setup_reg_class_relations): Add comments.
5723 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
5726 * ira-color.c: Add 2011 to the Copyright line.
5727 (assign_hard_reg): Add more comments.
5728 (improve_allocation): Ditto.
5730 * ira-costs.c: Add 2011 to the Copyright line.
5731 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5733 (setup_regno_cost_classes_by_mode): Ditto.
5735 Initial patches from ira-improv branch:
5737 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5739 * ira-build.c (ira_create_object): Remove initialization of
5740 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
5741 (ira_create_allocno): Remove initialization of
5742 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5743 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5744 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5745 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5746 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5747 Initialize ALLOCNO_ADD_DATA.
5748 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5749 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5751 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
5752 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5754 * ira.c (ira_reallocate): Remove.
5755 (setup_pressure_classes): Call
5756 ira_init_register_move_cost_if_necessary. Use
5757 ira_register_move_cost instead of ira_get_register_move_cost.
5758 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5759 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5761 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5762 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5763 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5764 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5765 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5766 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5768 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
5769 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5770 (struct allocno_color_data): New.
5771 (allocno_color_data_t): New typedef.
5772 (allocno_color_data): New definition.
5773 (ALLOCNO_COLOR_DATA): New macro.
5774 (struct object_color_data): New.
5775 (object_color_data_t): New typedef.
5776 (object_color_data): New definition.
5777 (OBJECT_COLOR_DATA): New macro.
5778 (update_copy_costs, calculate_allocno_spill_cost): Call
5779 ira_init_register_move_cost_if_necessary. Use
5780 ira_register_move_cost instead of ira_get_register_move_cost.
5781 (move_spill_restore, update_curr_costs): Ditto.
5782 (allocno_spill_priority): Make it inline.
5783 (color_pass): Allocate and free allocno_color_dat and object_color_data.
5784 (struct coalesce_data, coalesce_data_t): New.
5785 (allocno_coalesce_data): New definition.
5786 (ALLOCNO_COALESCE_DATA): New macro.
5787 (merge_allocnos, coalesced_allocno_conflict_p): Use
5788 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
5789 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
5790 (coalesce_allocnos): Ditto.
5791 (setup_coalesced_allocno_costs_and_nums): Ditto.
5792 (collect_spilled_coalesced_allocnos): Ditto.
5793 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
5794 (setup_slot_coalesced_allocno_live_ranges): Ditto.
5795 (coalesce_spill_slots): Ditto.
5796 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
5797 free allocno_coalesce_data.
5799 * ira-conflicts.c: Fix formatting.
5800 (process_regs_for_copy): Call
5801 ira_init_register_move_cost_if_necessary. Use
5802 ira_register_move_cost instead of ira_get_register_move_cost.
5803 (build_object_conflicts): Optimize.
5805 * ira-costs.c (record_reg_classes): Optimize. Call
5806 ira_init_register_move_cost_if_necessary. Use
5807 ira_register_move_cost, ira_may_move_in_cost, and
5808 ira_may_move_out_cost instead of ira_get_register_move_cost and
5809 ira_get_may_move_cost.
5810 (record_address_regs): Ditto.
5811 (scan_one_insn): Optimize.
5812 (find_costs_and_classes): Optimize.
5813 (process_bb_node_for_hard_reg_moves): Call
5814 ira_init_register_move_cost_if_necessary. Use
5815 ira_register_move_cost instead of ira_get_register_move_cost.
5817 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
5818 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
5819 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
5820 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
5822 (ira_initiate_emit_data, ira_finish_emit_data)
5823 (create_new_allocno): New functions.
5824 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
5825 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
5826 Use ira_register_move_cost instead of ira_get_register_move_cost.
5828 * ira-int.h: Fix some comments.
5829 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
5830 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5831 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
5832 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
5834 (struct ira_allocno): Make mode and aclass a bitfield. Move other
5835 bitfield after mode. Make hard_regno a short int. Make
5836 hard_regno short. Remove first_coalesced_allocno and
5837 next_coalesced_allocno. Move mem_optimized_dest_p,
5838 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
5839 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
5840 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
5841 temp, colorable_p. Add new member add_data.
5842 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
5843 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
5844 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
5845 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
5846 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
5847 (ALLOCNO_ADD_DATA): New macro.
5848 (ira_emit_data_t): New typedef.
5849 (struct ira_emit_data): New. Move mem_optimized_dest_p,
5850 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
5851 from struct ira_allocno.
5852 (ALLOCNO_EMIT_DATA): New macro.
5853 (ira_allocno_emit_data, allocno_emit_reg): New.
5854 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
5855 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
5856 (OBJECT_ADD_DATA): New macro.
5857 (ira_reallocate): Remove.
5858 (ira_initiate_emit_data, ira_finish_emit_data): New.
5859 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
5860 (ira_init_register_move_cost_if_necessary): New.
5861 (ira_object_conflict_iter_next): Merge into
5862 ira_object_conflict_iter_cond.
5863 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
5865 * ira-live.c (process_single_reg_class_operands): Call
5866 ira_init_register_move_cost_if_necessary. Use
5867 ira_register_move_cost instead of ira_get_register_move_cost.
5869 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5871 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
5873 * ira-costs.c: Fix formatting.
5874 (cost_classes, cost_classes_num): Remove.
5875 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
5876 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
5877 (cost_classes_del, cost_classes_htab): New.
5878 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
5879 (initiate_regno_cost_classes, setup_cost_classes): New.
5880 (setup_regno_cost_classes_by_aclass): New.
5881 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
5882 (record_reg_classes): Use regno_cost_classes instead of
5883 cost_classes. Move checking opposite operand up.
5884 (record_address_regs): Use regno_cost_classes
5885 instead of cost_classes.
5886 (scan_one_insn): Ditto. Use always general register.
5887 (print_allocno_costs): Use regno_cost_classes instead of
5889 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
5890 (find_costs_and_classes): Set up cost classes for each registers.
5891 Use also their mode for this. Use regno_cost_classes instead of
5893 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
5895 (free_ira_costs, ira_init_costs): Don't use cost_classes.
5896 (ira_costs, ira_set_pseudo_classes): Call
5897 initiate_regno_cost_classes and finish_regno_cost_classes.
5899 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
5901 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
5903 * target.def (ira_cover_classes): Remove.
5905 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
5907 * doc/tm.texi.in: Ditto.
5909 * ira-conflicts.c: Remove mentioning cover classes from the file.
5910 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
5911 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
5913 * targhooks.c (default_ira_cover_classes): Remove.
5915 * targhooks.h (default_ira_cover_classes): Ditto.
5917 * haifa-sched.c: Remove mentioning cover classes from the file.
5918 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5919 ira_pressure_classes and ira_pressure_classes_num instead of
5920 ira_reg_class_cover_size and ira_reg_class_cover. Use
5921 sched_regno_pressure_class instead of sched_regno_cover_class.
5922 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
5923 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5925 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
5926 classes from the file.
5927 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
5928 (struct object_hard_regs, struct object_hard_regs_node): New.
5929 (struct ira_object): New members profitable_hard_regs,
5930 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
5931 (struct ira_allocno): Rename cover_class to aclass. Rename
5932 cover_class_cost and updated_cover_class_cost to class_cost and
5933 updated_class_cost. Remove splay_removed_p and
5934 left_conflict_size. Add new members colorable_p.
5935 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
5936 (ALLOCNO_COLORABLE_P): New macro.
5937 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
5938 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
5939 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
5940 (OBJECT_...): Rename parameter C to O.
5941 (OBJECT_PROFITABLE_HARD_REGS): New macro.
5942 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
5943 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
5944 (struct target_ira_int): New members x_ira_max_memory_move_cost,
5945 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
5946 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
5947 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
5948 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
5949 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
5950 x_ira_reg_class_subunion.
5951 (ira_max_memory_move_cost, ira_max_register_move_cost)
5952 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
5953 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
5954 (ira_important_class_nums, ira_reg_class_superunion): New macros.
5955 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
5956 (ira_reg_class_union): Rename to ira_reg_class_subunion.
5957 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5958 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5959 (ira_tune_allocno_costs_and_cover_classes): Rename to
5960 ira_tune_allocno_costs.
5961 (ira_debug_hard_regs_forest): New.
5962 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
5963 (ira_object_conflict_iter_next): Fix comments.
5964 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
5965 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
5966 cover_class to aclass.
5967 (ira_allocate_and_accumulate_costs): Ditto.
5968 (ira_allocate_and_set_or_copy_costs): Ditto.
5970 * opts.c (decode_options): Remove ira_cover_class check.
5972 * ira-color.c: Remove mentioning cover classes from the file. Use
5973 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
5974 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
5975 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5976 (splay-tree.h): Remove include.
5977 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
5978 before copy_freq_compare_func.
5979 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
5980 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
5982 (hard_regs_roots, hard_regs_node_vec): Ditto.
5983 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
5984 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
5985 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
5986 (create_new_object_hard_regs_node): Ditto.
5987 (add_new_object_hard_regs_node_to_forest): Ditto.
5988 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
5989 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
5991 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
5992 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
5993 (remove_unused_object_hard_regs_nodes): Ditto.
5994 (enumerate_object_hard_regs_nodes): Ditto.
5995 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
5996 (object_hard_regs_subnode_t): Ditto.
5997 (struct object_hard_regs_subnode): Ditto.
5998 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
5999 (setup_object_hard_regs_subnode_index): Ditto.
6000 (get_object_hard_regs_subnodes_num): Ditto.
6001 (form_object_hard_regs_nodes_forest): Ditto.
6002 (finish_object_hard_regs_nodes_tree): Ditto.
6003 (finish_object_hard_regs_nodes_forest): Ditto.
6004 (allocnos_have_intersected_live_ranges_p): Rename to
6005 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6006 (pseudos_have_intersected_live_ranges_p): Rename to
6007 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6008 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6009 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6010 (update_copy_costs): Remove assert. Skip cost update if the hard
6011 reg does not belong the class.
6012 (assign_hard_reg): Process only profitable hard regs.
6013 (uncolorable_allocnos_num): Make it scalar.
6014 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6015 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6016 and ira_reg_class_max_nregs.
6017 (bucket_allocno_compare_func): Check frequency first.
6018 (sort_bucket): Add compare function as a parameter.
6019 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6020 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6021 (push_allocno_to_stack): Rewrite for checking new allocno
6023 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6024 (push_only_colorable): Pass new parameter to sort_bucket.
6025 (push_allocno_to_spill): Remove.
6026 (allocno_spill_priority_compare): Make it inline and rewrite.
6027 (splay_tree_allocate, splay_tree_free): Remove.
6028 (allocno_spill_sort_compare): New function.
6029 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6030 build and use splay tree. Choose first allocno in uncolorable
6031 allocno bucket to spill. Remove setting spill cost.
6032 (all_conflicting_hard_regs): Remove.
6033 (setup_allocno_available_regs_num): Check only profitable hard
6034 regs. Print info about hard regs nodes.
6035 (setup_allocno_left_conflicts_size): Remove.
6036 (put_allocno_into_bucket): Don't call
6037 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6038 (improve_allocation): New.
6039 (color_allocnos): Call setup_profitable_hard_regs,
6040 form_object_hard_regs_nodes_forest, improve_allocation,
6041 finish_object_hard_regs_nodes_forest. Setup spill cost.
6042 (print_loop_title): Use pressure classes.
6043 (color_allocnso): Ditto.
6044 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6045 and allocnos_for_spilling.
6046 (ira_sort_regnos_for_alter_reg): Don't setup members
6047 {first,next}_coalesced_allocno.
6048 (color): Remove allocating and freeing removed_splay_allocno_vec.
6049 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6050 prohibited_class_mode_regs.
6052 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6054 (update_allocno_pressure_excess_length): Use pressure classes.
6055 (inc_register_pressure, dec_register_pressure): Check for pressure
6057 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6058 pressure class. Use ira_reg_class_nregs instead of
6059 ira_reg_class_max_nregs.
6060 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6061 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6062 (single_reg_class): Use ira_reg_class_nregs instead of
6063 ira_reg_class_max_nregs.
6064 (process_bb_node_lives): Use pressure classes.
6066 * ira-emit.c: Remove mentioning cover classes from the file. Use
6067 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6068 (change_loop): Use pressure classes.
6069 (modify_move_list): Call ira_set_allocno_class instead of
6070 ira_set_allocno_cover_class.
6072 * ira-build.c: Remove mentioning cover classes from the file. Use
6073 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6074 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6075 ALLOCNO_UPDATED_CLASS_COST instead of
6076 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6077 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6078 (ira_create_allocno): Remove initialization of
6079 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6080 ALLOCNO_COLORABLE_P.
6081 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6082 Update conflict regs for the objects.
6083 (create_cap_allocno): Remove assert. Don't propagate
6084 ALLOCNO_AVAILABLE_REGS_NUM.
6085 (ira_free_allocno_costs): New function.
6086 (finish_allocno): Change a part of code into call of
6087 ira_free_allocno_costs.
6088 (low_pressure_loop_node_p): Use pressure classes.
6089 (object_range_compare_func): Don't compare classes.
6090 (setup_min_max_conflict_allocno_ids): Ditto.
6092 * loop-invariant.c: Remove mentioning cover classes from the file.
6093 Use ira_pressure_classes and ira_pressure_classes_num instead of
6094 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6095 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6096 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6097 Use reg_allocno_class instead of reg_cover_class.
6098 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6099 STACK_REG_COVER_CLASS.
6100 (get_regno_cover_class): Rename to get_regno_pressure_class.
6101 (move_loop_invariants): Initialize and finalize regstat.
6103 * ira.c: Remove mentioning cover classes from the file. Add
6104 comments about coloring without cover classes. Use ALLOCNO_CLASS
6105 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6106 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6107 setup_class_subset_and_memory_move_costs.
6108 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6109 (setup_cover_and_important_classes): Rename to
6110 setup_allocno_and_important_classes.
6111 (setup_class_translate_array): New.
6112 (setup_class_translate): Call it for allocno and pressure classes.
6113 (cover_class_order): Rename to allocno_class_order.
6114 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6115 of ira_class_translate.
6116 (reorder_important_classes): Set up ira_important_class_nums.
6117 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6118 (print_class_cover): Rename to print_classes. Add parameter.
6119 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6120 Print pressure classes too.
6121 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6122 setup_reg_subclasses.
6123 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6124 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6125 (setup_prohibited_class_mode_regs): Use
6126 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6127 (clarify_prohibited_class_mode_regs): New function.
6128 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6129 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6130 (ira_init_once): Initialize them.
6131 (free_register_move_costs): Process them.
6132 (ira_init): Move calls of find_reg_classes and
6133 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6134 Call clarify_prohibited_class_mode_regs.
6135 (ira_no_alloc_reg): Remove.
6136 (too_high_register_pressure_p): Use pressure classes.
6138 * sched-deps.c: Remove mentioning cover classes from the file.
6139 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6140 ira_pressure_classes and ira_pressure_classes_num instead of
6141 ira_reg_class_cover_size and ira_reg_class_cover.
6142 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6143 sched_regno_pressure_class instead of sched_regno_cover_class.
6144 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6145 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6147 * ira.h: Add 2010 to Copyright.
6148 (ira_no_alloc_reg): Remove external.
6149 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6150 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6151 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6152 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6153 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6154 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6155 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6156 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6157 x_ira_no_alloc_regs.
6158 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6159 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6160 ira_allocno_classes_num and ira_allocno_classes.
6161 (ira_class_translate): Rename to ira_allocno_class_translate.
6162 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6163 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6164 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6165 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6166 (ira_no_alloc_regs): New.
6168 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6169 classes from the file. Use ALLOCNO_CLASS instead of
6170 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6171 ALLOCNO_COVER_CLASS_COST.
6172 (regno_cover_class): Rename to regno_aclass.
6173 (record_reg_classes): Use ira_reg_class_subunion instead of
6174 ira_reg_class_union.
6175 (record_address_regs): Check overflow.
6176 (scan_one_insn): Ditto.
6177 (print_allocno_costs): Print total mem cost fore regional allocation.
6178 (print_pseudo_costs): Use REG_N_REFS.
6179 (find_costs_and_classes): Use classes intersected with them on the
6180 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6181 ira_reg_class_union. Use ira_allocno_class_translate and
6182 regno_aclass instead of ira_class_translate and regno_cover_class.
6183 Modify code for finding regno_aclass. Setup preferred classes for
6185 (setup_allocno_cover_class_and_costs): Rename to
6186 setup_allocno_class_and_costs. Use regno_aclass instead of
6187 regno_cover_class. Use ira_set_allocno_class instead of
6188 ira_set_allocno_cover_class.
6189 (init_costs, finish_costs): Use regno_aclass instead of
6191 (ira_costs): Use setup_allocno_class_and_costs instead of
6192 setup_allocno_cover_class_and_costs.
6193 (ira_tune_allocno_costs_and_cover_classes): Rename to
6194 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6195 by processing objects. Use ira_reg_class_max_nregs instead of
6196 ira_reg_class_nregs.
6198 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6200 * sched-int.h: Remove mentioning cover classes from the file.
6201 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6203 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6204 classes from the file.
6205 (struct reg_pref): Rename coverclass into allocnoclass.
6206 (reg_cover_class): Rename to reg_allocno_class.
6208 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6210 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6212 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6214 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6216 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6218 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6220 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6222 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6224 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6226 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6228 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6229 (i386_ira_cover_classes): Ditto.
6231 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6233 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6235 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6237 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6239 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6241 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6243 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6244 (mips_ira_cover_classes): Ditto.
6246 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6248 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6250 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6252 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6254 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6256 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6257 (IRA_COVER_CLASSES_VSX): Ditto.
6259 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6260 (rs6000_ira_cover_classes): Ditto.
6262 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6264 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6266 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6268 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6270 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6272 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6274 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6276 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6278 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6280 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6282 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6285 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6286 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6287 dw_fde_unlikely_section_end_label, cold_in_std_section,
6288 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6289 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6291 (output_fde): Use dw_fde_second_{begin,end} if second is
6292 true, otherwise dw_fde_{begin,end}.
6293 (output_call_frame_info): Test dw_fde_second_begin != NULL
6294 instead of dw_fde_switched_sections.
6295 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6296 fields, initialize new fields. Initialize in_std_section
6297 unconditionally from the first partition.
6298 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6299 dw_fde_second_begin is non-NULL.
6300 (dwarf2out_switch_text_section): Stop initializing removed
6301 dw_fde_struct fields, initialize new fields, initialize
6302 also dw_fde_end here. Set dw_fde_switch_cfi even when
6303 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6304 (struct var_loc_list_def): Add last_before_switch field.
6305 (arange_table, arange_table_allocated, arange_table_in_use,
6306 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6307 (size_of_aranges): Count !in_std_section and !second_in_std_section
6308 hunks in fdes, instead of looking at arange_table_in_use.
6309 (output_aranges): Add aranges_length argument, don't call
6310 size_of_aranges here. Instead of using aranges_table*
6311 emit ranges for fdes when !in_std_section resp.
6312 !second_in_std_section.
6313 (dw_loc_list): Break ranges crossing section switch.
6314 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6315 use dw_fde_second_end instead of dw_fde_end as end of last range.
6316 (gen_subprogram_die): Don't call add_arange. Use
6317 dw_fde_{begin,end} for first partition and if switched
6318 section dw_fde_second_{begin,end} for the second.
6319 (var_location_switch_text_section_1,
6320 var_location_switch_text_section): New functions.
6321 (dwarf2out_begin_function): Initialize cold_text_section even
6322 when function_section () isn't text_section.
6323 (prune_unused_types): Don't walk arange_table.
6324 (dwarf2out_finish): Don't needlessly test
6325 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6326 If info_section_emitted, call size_of_aranges and if it indicates
6327 non-empty .debug_aranges, call output_aranges with the computed
6328 size. Stop using removed dw_fde_struct fields, use
6329 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6333 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6334 create ENTRY_VALUE if incoming or address of incoming's MEM
6336 * dwarf2out.c (mem_loc_descriptor): Don't emit
6337 DW_OP_GNU_entry_value of DW_OP_fbreg.
6338 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6339 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6340 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6341 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6343 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6344 is a REG_P or MEM_P with REG_P address, compute hash directly
6345 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6346 (preserve_only_constants): Don't clear VALUES forwaring
6347 ENTRY_VALUE to some other VALUE.
6349 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6351 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6354 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6356 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6357 block before expanding the statement.
6358 (expand_gimple_stmt_1): Likewise. Set them here...
6359 (expand_gimple_stmt): ...and not here. Tidy.
6360 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6363 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6365 * Makefile.in: New rule for cprop.o.
6366 * gcse.c: Move constant/copy propagation to cprop.c.
6367 (compute_local_properties): Only handle expression tables.
6368 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6369 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6370 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6371 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6372 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6373 compute_cprop_data, find_used_regs, try_replace_reg,
6374 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6375 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6376 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6377 find_bypass_set, reg_killed_on_edge, bypass_block,
6378 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6379 execute_rtl_cprop, pass_rtl_cprop): Move to...
6380 * cprop.c: ...here. New file, constant/copy propagation for RTL
6381 moved from gcse.c to here with minor cleanups in duplicated code.
6383 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6385 * config/i386/i386.c (flag_opts): Fix a typo in
6386 -mavx256-split-unaligned-store.
6388 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6390 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6391 LIBCALL_VALUE): Remove macros.
6392 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6393 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6394 (h8300_function_value, h8300_libcall_value,
6395 h8300_function_value_regno_p): New functions.
6397 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6399 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6401 2011-03-28 Jeff Law <law@redhat.com>
6403 * tree-ssa-threadupdate.c (redirect_edges): Call
6404 create_edge_and_update_destination_phis as needed.
6405 (create_edge_and_update_destination_phis): Accept new BB argument.
6406 All callers updated.
6407 (thread_block): Do not update the profile when threading around
6408 intermediate blocks.
6409 (thread_single_edge): Likewise.
6410 (determine_bb_domination_status): If BB is not a successor of the
6411 loop header, return NONDOMINATING.
6412 (register_jump_thread): Note when we register a jump thread around
6413 an intermediate block.
6414 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6415 (thread_across_edge): Use it.
6417 2011-03-28 Tristan Gingold <gingold@adacore.com>
6419 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6420 when for_return is 2.
6422 2011-03-28 Jeff Law <law@redhat.com>
6424 * var-tracking.c (canonicalize_values_mark): Delete unused
6426 (canonicalize_values_star, set_variable_part): Likewise.
6427 (clobber_variable_part, delete_variable_part): Likewise.
6429 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6431 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6433 2011-03-28 Martin Jambor <mjambor@suse.cz>
6435 * tree-inline.c (expand_call_inline): Do not check that destination
6437 (optimize_inline_calls): Assert that destination node is analyzed.
6438 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6439 not call tree_lowering_passes.
6440 * cgraph.h (cgraph_analyze_function): Declare.
6441 * cgraphunit.c (cgraph_analyze_function): Make public.
6443 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6445 * config/sparc/sparc-opts.h: New.
6446 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6447 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6448 (sparc_option_override): Store processor_type enumeration rather
6449 than string in cpu_default. Remove name and enumeration from
6450 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6451 without using sparc_select. Use target_flags_explicit instead of
6453 * config/sparc/sparc.h (enum processor_type): Move to
6455 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6456 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6457 HeaderInclude entry.
6458 (mcpu=, mtune=): Use Var and Enum.
6459 (sparc_processor_type): New Enum and EnumValue entries.
6461 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6462 Iain Sandoe <iains@gcc.gnu.org>
6465 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6467 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6469 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6470 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6471 Insert new statements at it in lieu of STMT.
6472 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6473 * tree-vect-stmts.c (vectorizable_store): Likewise.
6474 (vectorizable_load): Likewise.
6476 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6478 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6483 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6485 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6486 unaligned 256bit load/store.
6487 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6488 (*avx_movdqu<avxmodesuffix>): Likewise.
6490 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6493 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6494 * config/pa/pa.md (iordi3): Use new predicate in expander.
6497 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6499 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6500 FUNCTION_VALUE_REGNO_P): Remove macros.
6501 * config/mips/mips-protos.h (mips_function_value): Remove.
6502 * config/mips/mips.c (mips_function_value): Rename to...
6503 (mips_function_value_1): ... this. Make static. Handle receiving
6504 the function type in 'fn_decl_or_type' argument.
6505 (mips_function_value, mips_libcall_value,
6506 mips_function_value_regno_p): New function.
6507 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6508 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6510 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6512 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6513 and -mavx256-split-unaligned-store.
6514 (ix86_option_override_internal): Split 32-byte AVX unaligned
6515 load/store by default.
6516 (ix86_avx256_split_vector_move_misalign): New.
6517 (ix86_expand_vector_move_misalign): Use it.
6519 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6520 -mavx256-split-unaligned-store.
6522 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6523 256bit load/store. Generate unaligned store on misaligned memory
6525 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6527 (*avx_movdqu<avxmodesuffix>): Likewise.
6529 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6530 -mavx256-split-unaligned-store.
6532 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6535 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6538 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6540 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6541 opno arguments with an expand_operand. Use create_input_operand.
6542 (mips_prepare_builtin_target): Delete.
6543 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6545 (mips_expand_builtin_direct): Use create_output_operand and
6546 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6547 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6548 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6550 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
6552 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6554 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6556 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6558 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6559 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6560 basic blocks and call commit_edge_insertions directly.
6561 (fixup_abnormal_edges): Move from here to...
6562 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6563 on the edges and return whether some have actually been inserted.
6564 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6567 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
6569 PR rtl-optimization/48144
6570 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6571 (merge_expr_data): ... here.
6572 (av_set_intersect): Rename to av_set_code_motion_filter.
6573 Update all callers. Call merge_history_vect when an expression
6574 is found in both sets.
6575 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6577 2011-03-26 Alan Modra <amodra@gmail.com>
6579 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6580 cmodel medium addresses.
6581 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6582 64-bit gpr loads and stores.
6583 (rs6000_secondary_reload_ppc64): New function.
6584 * config/rs6000/rs6000-protos.h: Declare it.
6585 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6587 2011-03-26 Alan Modra <amodra@gmail.com>
6590 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6591 GNU Go in traceback table.
6593 2011-03-25 Richard Henderson <rth@redhat.com>
6595 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6596 if there are exactly 6 operands.
6597 (set_storage_via_setmem): Similarly.
6599 2011-03-25 Kai Tietz <ktietz@redhat.com>
6601 * collect2.c (write_c_file_stat): Handle backslash
6602 as right-hand directory separator.
6603 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6604 checking just for slash.
6605 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6606 instead of checking for trailing slash.
6607 * gcc.c (record_temp_file): Use filename_cmp instead
6609 (do_spec_1): Likewise.
6610 (replace_outfile_spec_function): Likewise.
6611 (is_directory): Use filename_ncmp instead of strncmp.
6612 (print_multilib_info): Likewise.
6613 * gcov.c (find_source): Use filename_cmp instead
6615 (make_gcov_file_name): Fix order of slash/backslash
6617 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6618 (add_standard_paths): Likewise.
6619 * mips-tfile.c (saber_stop): Handle backslash.
6620 * prefix.c (update_path): Use filename_ncmp instead of
6622 * profile.c (output_location): Use filename_cmp instead
6624 * read-md.c (handle_toplevel_file): Handle backslash.
6625 * tlink.c (frob_extension): Likewise.
6626 * tree-cfg.c (same_line_p): Use filename_cmp instead of
6628 * tree-dump.c (dequeue_and_dump): Handle backslash.
6629 * tree.c (get_file_function_name): Likewise.
6630 * gengtype.c (read_input_list): Likewise.
6631 (get_file_realbasename): Likewise.
6632 (get_output_file_with_visibility): Use filename_cmp
6635 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
6637 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6640 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6642 * fold-const.c (expr_location_or): New function.
6643 (fold_truth_not_expr): Call it.
6645 2011-03-25 Jeff Law <law@redhat.com>
6647 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6649 * c-family/c-common.c (def_fn_type): Likewise.
6650 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6651 * emit-rtl.c (gen_rtvec): Likewise.
6652 * lto/lto-lang.c (def_fn_type): Likewise.
6654 2011-03-25 Richard Guenther <rguenther@suse.de>
6656 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6657 also generate copies.
6658 (fini_copy_prop): Handle constant values properly.
6660 2011-03-25 Jakub Jelinek <jakub@redhat.com>
6662 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6663 mode size instead of bitsize with DWARF2_ADDR_SIZE.
6664 (hash_loc_operands, compare_loc_operands): Handle
6665 DW_OP_GNU_entry_value.
6667 2011-03-25 Kai Tietz <ktietz@redhat.com>
6669 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6670 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6671 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6672 comment and use macro TARGET_64BIT_MS_ABI instead.
6673 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6674 and change default behavior for 32-bit MS_ABI.
6675 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6676 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6678 (ix86_cfun_abi): Likewise.
6679 (ix86_maybe_switch_abi): Adjust comment.
6680 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6681 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6682 instead of checking for SYSV_ABI.
6683 (ix86_nsaved_sseregs): Likewise.
6684 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6686 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6687 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6688 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6689 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6690 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6692 2011-03-25 Richard Guenther <rguenther@suse.de>
6694 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6695 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6696 (verify_gimple): Remove.
6697 * tree-cfg.c (verify_gimple_call): Merge verification
6699 (verify_gimple_phi): Merge verification from verify_stmts.
6700 (verify_gimple_label): New function.
6701 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6702 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6703 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6704 (verify_stmts): Rename to verify_gimple_in_cfg.
6705 (verify_gimple_in_cfg): New function.
6706 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6707 * tree-ssa.c (verify_ssa): Likewise.
6708 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6710 2011-03-25 Richard Guenther <rguenther@suse.de>
6712 * passes.c (init_optimization_passes): Add FRE pass after
6715 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
6716 Andrew Stubbs <ams@codesourcery.com>
6718 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6720 (arm_movdi_vfp_cortexa8): New pattern.
6721 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6722 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6723 instructions when tuning for Cortex-A8. Set attribute "arch".
6724 * config/arm/arm.md: Move include arm-tune.md up a bit.
6725 (define_attr "arch"): Add "onlya8" and "nota8" values.
6726 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6728 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6732 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6734 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6735 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6736 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6737 * passes.c (init_optimization_passes): Move
6738 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6740 2011-03-25 Kai Tietz <ktietz@redhat.com>
6742 * c-typeck.c (comptypes_internal): Replace target
6743 hook call of comp_type_attributes by version in tree.c file.
6744 * gimple.c (gimple_types_compatible_p_1): Likewise.
6745 * tree-ssa.c (useless_type_conversion_p): Likewise.
6746 * tree.c (build_type_attribute_qual_variant): Likewise.
6747 (attribute_value_equal): New static helper function.
6748 (comp_type_attributes): New function.
6749 (merge_attributes): Use attribute_value_equal for comparison.
6750 (attribute_list_contained): Likewise.
6751 * tree.h (comp_type_attributes): New prototype.
6753 2011-03-25 Richard Guenther <rguenther@suse.de>
6755 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6756 of complex types at -O0.
6757 (verify_gimple_assign_binary): Likewise.
6758 (verify_gimple_assign_ternary): Likewise.
6760 2011-03-24 Mark Wielaard <mjw@redhat.com>
6762 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6763 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6765 2011-03-24 Mark Wielaard <mjw@redhat.com>
6768 * dwarf2out.c (output_abbrev_section): Only write table when
6769 abbrev_die_table_in_use > 1.
6771 2011-02-24 Richard Henderson <rth@redhat.com>
6773 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
6774 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
6775 (alpha_expand_unaligned_load_words): Use extql.
6776 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
6777 (emit_insxl): Handle all modes for consistency.
6779 2011-02-24 Richard Henderson <rth@redhat.com>
6781 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
6782 (alpha_expand_unaligned_load): Likewise.
6783 (alpha_expand_unaligned_store): Likewise.
6784 (alpha_expand_unaligned_load_words): Likewise.
6785 (alpha_expand_unaligned_store_words): Likewise.
6786 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
6787 (alpha_split_lock_test_and_set_12): Likewise.
6788 (print_operand, alpha_fold_builtin_extxx): Likewise.
6789 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
6790 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
6791 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
6792 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
6793 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
6794 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
6795 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
6796 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
6797 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
6798 (extwl, extll, extql): Similarly.
6799 (inswh, inslh, insqh): Similarly.
6800 (mskbl, mskwl, mskll, mskql): Similarly.
6801 (mskwh, msklh, mskqh): Similarly.
6803 2011-02-24 Richard Henderson <rth@redhat.com>
6805 * config/alpha/alpha.md (attribute isa): Add er, ner.
6806 (attribute enabled): Handle them.
6807 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
6809 2011-02-24 Richard Henderson <rth@redhat.com>
6811 * config/alpha/alpha.md (attribute isa): Add vms.
6812 (attribute enabled): Handle it.
6813 (*movsf): Merge *movsf_{nofix,fix,nofp}.
6814 (*movdf): Merge *movdf_{nofix,fix,nofp}.
6815 (*movtf): Rename from *movtf_internal for consistency.
6816 (*movsi): Merge with *movsi_nt_vms.
6817 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
6818 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
6819 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
6820 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
6822 2011-02-24 Richard Henderson <rth@redhat.com>
6824 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
6825 (extendqisi2, extendhisi2): Likewise.
6826 (extendqidi2): Simplify BWX/non-BWX expansions.
6827 (extendhidi2): Similarly.
6829 2011-02-24 Richard Henderson <rth@redhat.com>
6831 * config/alpha/alpha.md (attribute isa): New.
6832 (attribute enabled): New.
6833 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
6834 (zero_extendqisi2, zero_extendqidi2): Similarly.
6835 (zero_extendhisi2, zero_extendhidi2): Similarly.
6836 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
6838 2011-02-24 Richard Henderson <rth@redhat.com>
6840 * config/alpha/predicates.md (input_operand): Revert last change;
6841 update comment to mention 32-bit VMS rather than Windows.
6843 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6845 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6846 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6847 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6848 * passes.c (init_optimization_passes): Move
6849 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6851 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6853 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
6855 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6857 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
6860 2011-03-24 Jakub Jelinek <jakub@redhat.com>
6863 * simplify-rtx.c (simplify_const_unary_operation): Call
6864 real_convert when changing mode class with FLOAT_EXTEND.
6866 2011-03-24 Nick Clifton <nickc@redhat.com>
6868 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
6869 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6870 * config/rx/rx.c (rx_option_override): Set align_jumps,
6871 align_loops and align_labels if not set by the user.
6872 (rx_align_for_label): New function.
6873 (rx_max_skip_for_label): New function.
6874 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
6875 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
6876 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
6877 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
6878 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
6880 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6882 PR rtl-optimization/48263
6883 * optabs.c (expand_binop_directly): Reinstate convert_modes code
6884 and original commutative_p handling. Use maybe_gen_insn.
6886 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6888 * reload.c (find_reloads_subreg_address): Add address_reloaded
6889 parameter and return true there if the full address has been
6891 (find_reloads_toplev): Pass address_reloaded flag.
6892 (find_reloads_address_1): Don't use address_reloaded parameter.
6894 2011-03-24 Jeff Law <law@redhat.com>
6896 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
6897 unused variable "ann".
6898 (remove_unused_locals): Likewise.
6900 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
6903 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
6906 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6908 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
6909 for invalid symbolic addresses.
6910 (s390_secondary_reload): Don't use s390_check_symref_alignment for
6913 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6915 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
6916 the argument in calls to fold_truth_not_expr.
6918 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6920 * tree.c (record_node_allocation_statistics): New function.
6921 (make_node_stat, copy_node_stat, build_string): Call it.
6922 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
6923 (build1_stat, build_omp_clause): Likewise.
6925 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6927 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
6930 2011-03-24 Richard Guenther <rguenther@suse.de>
6932 PR tree-optimization/48271
6933 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
6934 blocks that still exist.
6936 2011-03-24 Richard Guenther <rguenther@suse.de>
6938 PR tree-optimization/48270
6939 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
6940 not free datarefs before ddrs.
6942 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6944 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
6945 from the address built for a reference with variable offset.
6947 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6950 * config/i386/i386.md (*movdf_internal_rex64): Do not split
6951 alternatives that can be handled with movq or movabsq insn.
6952 (*movdf_internal): Disable for !TARGET_64BIT.
6953 (*movdf_internal_nointeger): Ditto.
6954 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
6956 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6958 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6959 (FUNCTION_ARG_ADVANCE): Likewise.
6960 * tm.texi.in: Change references to them to hook references.
6961 * tm.texi: Regenerate.
6962 * targhooks.c (default_function_arg): Eliminate check for target macro.
6963 (default_function_incoming_arg): Likewise.
6964 (default_function_arg_advance): Likewise.
6965 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6966 (function_arg_advance): Likewise.
6967 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6969 2011-03-24 Richard Guenther <rguenther@suse.de>
6972 * tree-object-size.c (addr_object_size): Do not double-account
6973 for MEM_REF offsets.
6975 2011-03-24 Diego Novillo <dnovillo@google.com>
6977 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
6978 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
6979 (lto_input_data_block): Move from lto-opts.c. Make extern.
6981 (lto_input_string): Rename from input_string. Make extern.
6983 * lto-streamer-out.c (lto_output_string_with_length): Rename from
6984 output_string_with_length.
6985 Output 0 to indicate a non-NULL string. Update all callers to
6987 (lto_output_string): Rename from output_string. Make extern.
6989 (lto_output_decl_state_streams): Make extern.
6990 (lto_output_decl_state_refs): Make extern.
6991 * lto-streamer.h (lto_input_string): Declare.
6992 (lto_input_data_block): Declare.
6993 (lto_output_string): Declare.
6994 (lto_output_string_with_length): Declare.
6995 (lto_output_decl_state_streams): Declare.
6996 (lto_output_decl_state_refs): Declare.
6998 2011-03-24 Richard Guenther <rguenther@suse.de>
7000 PR tree-optimization/46562
7001 * tree.c (build_invariant_address): New function.
7002 * tree.h (build_invariant_address): Declare.
7003 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7004 a renamed function moved ...
7005 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7006 Take valueization callback parameter.
7007 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7008 * gimple-fold.h: New file.
7009 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7010 (ccp_fold, fold_const_aggregate_ref,
7011 fold_ctor_reference, fold_nonarray_ctor_reference,
7012 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7013 get_base_constructor): Move ...
7014 * gimple-fold.c: ... here.
7015 (gimple_fold_stmt_to_constant_1): New function
7016 split out from ccp_fold. Take a valueization callback parameter.
7017 Valueize all operands.
7018 (gimple_fold_stmt_to_constant): New wrapper function.
7019 (fold_const_aggregate_ref_1): New function split out from
7020 fold_const_aggregate_ref. Take a valueization callback parameter.
7021 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7022 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7023 invariant POINTER_PLUS_EXPRs to invariant form.
7024 (vn_valueize): New function.
7025 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7026 * tree-vrp.c (vrp_valueize): New function.
7027 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7028 to fold statements to constants.
7029 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7030 function declarations.
7031 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7032 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7034 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7036 * config/h8300/predicates.md (jump_address_operand): Fix register
7039 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7041 * doc/invoke.texi (max-stores-to-sink): Document.
7042 * params.h (MAX_STORES_TO_SINK): Define.
7043 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7044 if either vectorization or if-conversion is disabled.
7045 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7046 tree-vect-data-refs.c vect_equal_offsets.
7047 (dr_equal_offsets_p): New function.
7048 (find_data_references_in_bb): Remove static.
7049 * tree-data-ref.h (find_data_references_in_bb): Declare.
7050 (dr_equal_offsets_p): Likewise.
7051 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7052 (vect_drs_dependent_in_basic_block): Update calls to
7054 (vect_check_interleaving): Likewise.
7055 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7056 (cond_if_else_store_replacement): Rename to...
7057 (cond_if_else_store_replacement_1): ... this. Change arguments and
7059 (cond_if_else_store_replacement): New function.
7060 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7061 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7063 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7066 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7067 to subtract lower bound instead of GEN_INT().
7069 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7074 * doc/extend.texi (Alignment): Move section to match order in TOC.
7075 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7076 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7078 2011-03-23 Jeff Law <law@redhat.com>
7080 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7081 before removing the edge.
7083 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7084 it may have been freed by redirect_branch_edge or
7085 redirect_edge_succ_nodup.
7087 2011-03-23 Richard Guenther <rguenther@suse.de>
7089 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7090 (check_va_list_escapes): Likewise.
7091 (check_all_va_list_escapes): Likewise.
7093 2011-03-23 Richard Guenther <rguenther@suse.de>
7095 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7096 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7097 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7098 (alias.o): Likewise.
7099 (ipa-type-escape.o): Remove.
7100 (ipa-struct-reorg.o): Likewise.
7101 (GTFILES): Remove ipa-struct-reorg.c.
7102 * alias.c: Do not include ipa-type-escape.h.
7103 * tree-ssa-alias.c: Likewise.
7104 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7105 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7106 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7107 and ipa-type-escape passes.
7108 * tree-pass.h (pass_ipa_type_escape): Remove.
7109 (pass_ipa_struct_reorg): Likewise.
7110 * ipa-struct-reorg.h: Remove.
7111 * ipa-struct-reorg.c: Likewise.
7112 * ipa-type-escape.h: Likewise.
7113 * ipa-type-escape.c: Likewise.
7114 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7115 (--param struct-reorg-cold-struct-ratio): Likewise.
7116 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7117 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7118 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7120 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7122 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7123 cpu attribute value.
7124 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7125 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7126 * config/s390/s390.c (processor_flags_table): New constant array.
7127 (s390_handle_arch_option): Remove.
7128 (s390_handle_option): Remove s390_handle_arch_option invocations
7129 and OPT_mwarn_framesize_ handling.
7130 (s390_option_override): Remove s390_handle_arch_option invocation.
7131 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7133 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7134 * config/s390/s390.opt (s390_tune, s390_arch)
7135 (march=): Replace s390_arch_option enum and values with
7136 processor_type. Set variable name to s390_arch. Set
7137 initialization value.
7138 (mtune=): Replace s390_arch_option with processor_type. Set
7139 variable name to s390_tune. Set initialization value.
7141 2011-03-23 Julian Brown <julian@codesourcery.com>
7143 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7144 accesses which are not naturally aligned.
7146 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7149 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7151 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7153 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7154 parameter from "int" to "enum insn_code".
7155 (expand_operand_type): New enum.
7156 (expand_operand): New structure.
7157 (create_expand_operand): New function.
7158 (create_fixed_operand, create_output_operand): Likewise
7159 (create_input_operand, create_convert_operand_to): Likewise.
7160 (create_convert_operand_from, create_address_operand): Likewise.
7161 (create_integer_operand): Likewise.
7162 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7163 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7164 (expand_insn, expand_jump_insn): Likewise.
7165 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7166 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7167 (expand_movstr, expand_builtin___clear_cache): Likewise.
7168 (expand_builtin_lock_release): Likewise.
7169 * explow.c (allocate_dynamic_stack_space): Likewise.
7170 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7171 and use the default handling in that case.
7172 * expmed.c (check_predicate_volatile_ok): Delete.
7173 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7174 (emit_cstore): Likewise.
7175 * expr.c (emit_block_move_via_movmem): Likewise.
7176 (set_storage_via_setmem, expand_assignment): Likewise.
7177 (emit_storent_insn, try_casesi): Likewise.
7178 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7179 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7180 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7181 (expand_twoval_unop, expand_twoval_binop): Likewise.
7182 (expand_unop_direct, emit_indirect_jump): Likewise.
7183 (emit_conditional_move, vector_compare_rtx): Likewise.
7184 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7185 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7186 (expand_sync_lock_test_and_set): Likewise.
7187 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7188 (emit_unop_insn): Likewise.
7189 (expand_copysign_absneg): Change icode to an insn_code.
7190 (create_convert_operand_from_type): New function.
7191 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7192 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7193 (expand_insn, expand_jump_insn): Likewise.
7194 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7195 than const_int_operand for operand 2.
7197 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7199 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7202 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7204 * emit-rtl.c (emit_pattern_before_noloc): New function.
7205 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7206 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7207 (emit_pattern_after_noloc): New function.
7208 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7209 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7211 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7213 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7214 (__ffsDI2): Likewise.
7216 2011-03-22 Richard Henderson <rth@redhat.com>
7218 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7219 of !TARGET_ABI_OPEN_VMS.
7220 (alpha_trampoline_init, alpha_start_function): Likewise.
7221 (alpha_expand_epilogue, alpha_file_start): Likewise.
7222 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7223 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7224 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7225 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7226 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7228 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7230 * config/s390/s390-opts.h: New.
7231 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7232 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7233 s390_stack_guard): Remove.
7234 (s390_handle_arch_option): Return void. Take enum
7235 s390_arch_option value instead of string and searching array.
7236 (s390_handle_option): Don't assert that global structures are in
7237 use. Access variables via opts pointer. Use error_at. Don't use
7238 sscanf for -mstack-guard= or -mstack-size=. Update call to
7239 s390_handle_arch_option.
7240 (s390_option_override): Update call to s390_handle_arch_option.
7241 (s390_emit_prologue): Use %d format for s390_stack_size in
7242 diagnostic. Use %wd for HOST_WIDE_INT.
7243 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7244 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7245 * config/s390/s390.opt (config/s390/s390-opts.h): New
7246 HeaderInclude entry.
7247 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7248 s390_arch_flags, s390_warn_framesize): New Variable entries.
7249 (s390_arch_option): New Enum and EnumValue entries.
7250 (march=): Use Enum instead of Var.
7251 (mstack-guard=, mstack-size=): Use UInteger and Var.
7254 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7256 * config/score/score.c (score_handle_option): Don't assert that
7257 global structures are in use. Access target_flags via opts
7258 pointer. Use value of -march= option to determine target_flags
7260 * config/score/score.opt (march=): Use Enum.
7261 (score_arch): New Enum and EnumValue entries.
7263 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7265 * config/mep/mep.c (option_mtiny_specified): Remove.
7266 (mep_option_override): Move register handling for -mivc2 from
7267 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7268 instead of option_mtiny_specified.
7269 (mep_handle_option): Access target_flags via opts pointer. Don't
7270 assert that global structures are in use. Defer part of -mivc2
7271 handling and move it to mep_option_override.
7272 * config/mep/mep.opt (IVC2): New Mask entry.
7273 (mivc2): Use Var and Defer instead of Mask.
7275 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7277 * config/v850/v850-opts.h: New.
7278 * config/v850/v850.c (small_memory): Replace with
7279 small_memory_physical_max array. Make that array static const.
7280 (v850_handle_memory_option): Take integer value of argument. Take
7281 gcc_options pointer, option text and location. Return void.
7282 Update for changes to small memory structures.
7283 (v850_handle_option): Access target_flags via opts pointer. Don't
7284 assert that global structures are in use. Update calls to
7285 v850_handle_memory_option.
7286 (v850_encode_data_area): Update references to small memory settings.
7287 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7288 (enum small_memory_type): Move to v850-opts.h.
7289 * config/v850/v850.opt (config/v850/v850-opts.h): New
7290 HeaderInclude entry.
7291 (small_memory_max): New Variable entry.
7292 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7293 (mtda, mzda): Likewise.
7295 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7297 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7298 pointer. Don't assert that global structures are in use.
7300 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7302 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7303 via opts pointer. Don't assert that global structures are in use.
7305 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7307 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7308 (munix=93): Use Var.
7309 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7310 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7311 * config/pa/pa-opts.h: New.
7312 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7313 (pa_handle_option): Don't assert that global structures are in
7314 use. Access target_flags via opts pointer. Don't handle
7315 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7317 (pa_option_override): Handle deferred OPT_mfixed_range_.
7319 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7321 * config/mn10300/mn10300-opts.h: New.
7322 * config/mn10300/mn10300.c (mn10300_processor,
7323 mn10300_tune_string): Remove.
7324 (mn10300_handle_option): Don't assert that global structures are
7325 in use. Access mn10300_processor via opts pointer. Don't handle
7327 * config/mn10300/mn10300.h (enum processor_type): Move to
7329 (mn10300_processor): Remove.
7330 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7331 HeaderInclude entry.
7332 (mn10300_processor): New Variable entry.
7335 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7337 * config/microblaze/microblaze.c: Don't include opts.h.
7338 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7339 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7340 (mno-clearbss): Use Var and Warn.
7342 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7344 * config/m32r/m32r-opts.h: New.
7345 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7346 (m32r_handle_option): Don't assert that global structures are in
7347 use. Access target_flags and m32r_cache_flush_func via opts
7348 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7349 OPT_mno_flush_trap here.
7350 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7351 include of m32r-opts.h.
7352 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7353 HeaderInclude entry.
7354 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7355 (mmodel=): Use Enum and Var.
7356 (m32r_model): New Enum and EnumValue entries.
7357 (mno-flush-trap): Use Var.
7358 (msdata=): Use Enum and Var.
7359 (m32r_sdata): New Enum and EnumValue entries.
7361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7363 * config/m32c/m32c.c: Don't include opts.h.
7364 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7365 m32c_handle_option): Remove.
7366 (m32c_option_override): Check global_options_set.x_target_memregs
7367 instead of target_memregs_set.
7368 * config/m32c/m32c.h (target_memregs): Remove.
7369 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7372 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7374 * config/iq2000/iq2000-opts.h: New.
7375 * config/iq2000/iq2000.c: Don't include opts.h.
7376 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7377 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7378 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7379 HeaderInclude entry.
7380 (iq2000_tune): New Variable entry.
7381 (march=): Add comment. Use Enum.
7382 (iq2000_arch): New Enum and EnumValue entries.
7383 (mcpu=): Use Enum and Var.
7384 (iq2000_tune): New Enum and EnumValue entries.
7386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7388 * config/ia64/ia64-opts.h: New.
7389 * config/ia64/ia64.c (ia64_tune): Remove.
7390 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7392 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7393 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7394 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7395 HeaderInclude entry.
7396 (ia64_tune): New Variable entry.
7397 (mfixed-range=): Use Defer and Var.
7398 (mtune=): Use Enum and Var.
7399 (ia64_tune): New Enum and EnumValue entries.
7401 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7403 * config/frv/frv-opts.h: New.
7404 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7406 (frv_cpu_type): Remove.
7407 * config/frv/frv.c: Don't include opts.h.
7408 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7409 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7410 (frv_cpu_type): New Variable entry.
7411 (frv_cpu): New Enum and EnumValue entries.
7413 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7415 * config/cris/cris.c (cris_handle_option): Access target_flags via
7416 opts pointer. Don't assert that global structures are in use.
7417 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7418 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7420 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7422 * config/bfin/bfin-opts.h: New.
7423 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7424 bfin_si_revision, bfin_workarounds): Remove.
7425 (bfin_cpus): Make static const.
7426 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7427 not bfin_lib_id_given.
7428 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7429 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7430 pointer. Use error_at. Don't assert that global structures are in use.
7431 * config/bfin/bfin.h: Include bfin-opts.h.
7432 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7433 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7434 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7435 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7438 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7440 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7441 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7442 or -msoft-float here.
7443 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7444 -msoft-float and -mhard-float.
7445 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7446 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7448 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7450 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7451 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7453 (LIBGCC_SPEC): Don't handle -msoft-float.
7454 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7456 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7458 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7459 -mfloat-abi=*, not -msoft-float and -mhard-float.
7460 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7462 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7463 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7464 mhard-float and msoft-float.
7465 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7466 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7467 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7468 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7470 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7471 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7473 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7475 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7478 2011-03-22 Richard Henderson <rth@redhat.com>
7480 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7481 TARGET_ABI_WINDOWS_NT.
7482 (alpha_output_function_end_prologue): Likewise.
7483 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7484 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7485 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7486 (trap, *movsi_nt_vms): Likewise.
7487 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7488 (*tablejump_osf_nt_internal): Remove.
7489 * config/alpha/predicates.md (input_operand): Only test Pmode.
7491 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7493 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7494 via opts pointer. Use error_at. Don't assert that global
7495 structures are in use.
7497 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7499 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7500 (ix86_handle_option): Access ix86_isa_flags and
7501 ix86_isa_flags_explicit via opts pointer. Don't assert that
7502 global structures are in use.
7503 (ix86_function_specific_save, ix86_function_specific_restore):
7504 Update ix86_isa_flags_explicit field name.
7505 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7506 (ix86_isa_flags_explicit): Rename TargetSave entry to
7507 x_ix86_isa_flags_explicit.
7509 2011-03-22 Richard Henderson <rth@redhat.com>
7511 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7512 (alpha_option_override, direct_return): Likewise.
7513 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7514 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7515 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7516 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7517 (alpha_expand_epilogue, alpha_end_function): Likewise.
7518 (alpha_init_libfuncs): Likewise.
7519 (struct machine_function): Remove unicosmk members.
7520 (print_operand) ['t']: Remove.
7521 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7522 unicosmk_output_module_name, unicosmk_output_common,
7523 current_section_align, unicosmk_output_text_section_asm_op,
7524 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7525 unicosmk_section_type_flags, unicosmk_unique_section,
7526 unicosmk_asm_named_section, unicosmk_insert_attributes,
7527 unicosmk_output_align, unicosmk_defer_case_vector,
7528 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7529 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7530 unicosmk_output_ssib, unicosmk_add_call_info_word,
7531 unicosmk_extern_head, unicosmk_output_default_externs,
7532 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7533 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7534 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7535 * config/alpha/alpha-protos.h: Update.
7536 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7537 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7538 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7539 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7540 (*mulsi_se, mulvsi3): Likewise.
7541 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7542 (*divmodsi_internal, call, call_value, realign): Likewise.
7543 (moddi3, umoddi3): Likewise; remove duplicate expander.
7544 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7545 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7546 (*movdi_nofix): Remove r/U alternative.
7547 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7548 * config/alpha/constraints.md ("U"): Remove.
7549 * config/alpha/predicates.md (call_operand"): Don't test
7550 TARGET_ABI_UNICOSMK.
7552 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7554 * target.def (handle_option): Take gcc_options and
7555 cl_decoded_option pointers and location_t.
7556 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7557 * doc/tm.texi: Regenerate.
7558 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7559 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7560 * lto-opts.c (lto_reissue_options): Generate option structure for
7561 targetm.handle_option call.
7562 * opts.c (target_handle_option): Update call to
7563 targetm.handle_option. Remove assertions about values now passed
7565 * targhooks.c (default_target_handle_option): New.
7566 * targhooks.h (default_target_handle_option): Declare.
7567 * config/alpha/alpha.c: Include opts.h.
7568 (alpha_handle_option): Update to new hook interface.
7569 * config/arm/arm.c: Include opts.h.
7570 (arm_handle_option): Update to new hook interface.
7571 * config/arm/t-arm (arm.o): Update dependencies.
7572 * config/bfin/bfin.c: Include opts.h.
7573 (bfin_handle_option): Update to new hook interface.
7574 * config/cris/cris.c: Include opts.h.
7575 (cris_handle_option): Update to new hook interface.
7576 * config/frv/frv.c: Include opts.h.
7577 (frv_handle_option): Update to new hook interface.
7578 * config/i386/i386.c: Include opts.h.
7579 (ix86_handle_option): Update to new hook interface.
7580 (ix86_valid_target_attribute_inner_p): Generate option structure
7581 for call to ix86_handle_option.
7582 * config/i386/t-i386 (i386.o): Update dependencies.
7583 * config/ia64/ia64.c: Include opts.h.
7584 (ia64_handle_option): Update to new hook interface.
7585 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7586 * config/iq2000/iq2000.c: Include opts.h.
7587 (iq2000_handle_option): Update to new hook interface.
7588 * config/m32c/m32c.c: Include opts.h.
7589 (m32c_handle_option): Update to new hook interface.
7590 * config/m32r/m32r.c: Include opts.h.
7591 (m32r_handle_option): Update to new hook interface.
7592 * config/m68k/m68k.c: Include opts.h.
7593 (m68k_handle_option): Update to new hook interface.
7594 * config/mep/mep.c: Include opts.h.
7595 (mep_handle_option): Update to new hook interface.
7596 * config/microblaze/microblaze.c: Include opts.h.
7597 (microblaze_handle_option): Update to new hook interface.
7598 * config/mips/mips.c: Include opts.h.
7599 (mips_handle_option): Update to new hook interface.
7600 * config/mn10300/mn10300.c: Include opts.h.
7601 (mn10300_handle_option): Update to new hook interface.
7602 * config/pa/pa.c: Include opts.h.
7603 (pa_handle_option): Update to new hook interface.
7604 * config/pdp11/pdp11.c: Include opts.h.
7605 (pdp11_handle_option): Update to new hook interface.
7606 * config/rs6000/rs6000.c: Include opts.h.
7607 (rs6000_handle_option): Update to new hook interface.
7608 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7609 * config/rx/rx.c: Include opts.h.
7610 (rx_handle_option): Update to new hook interface.
7611 * config/s390/s390.c: Include opts.h.
7612 (s390_handle_option): Update to new hook interface.
7613 * config/score/score.c: Include opts.h.
7614 (score_handle_option): Update to new hook interface.
7615 * config/sh/sh.c: Include opts.h.
7616 (sh_handle_option): Update to new hook interface.
7617 * config/sparc/sparc.c: Include opts.h.
7618 (sparc_handle_option): Update to new hook interface.
7619 * config/v850/v850.c: Include opts.h.
7620 (v850_handle_option): Update to new hook interface.
7622 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7624 * gcc.c (driver_unknown_option_callback): Only permit and save
7625 unknown -Wno- options.
7626 (driver_wrong_lang_callback): Save options directly instead of via
7627 driver_unknown_option_callback.
7629 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7631 * combine.c (simplify_set): Try harder to find the best CC mode when
7632 simplifying a nested COMPARE on the RHS.
7634 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7636 * config/alpha/gnu.h: Remove.
7637 * config/arc: Remove directory.
7638 * config/arm/netbsd.h: Remove.
7639 * config/arm/t-pe: Remove.
7640 * config/crx: Remove directory.
7641 * config/i386/netbsd.h: Remove.
7642 * config/m68hc11: Remove directory.
7643 * config/m68k/uclinux-oldabi.h: Remove.
7644 * config/mcore/mcore-pe.h: Remove.
7645 * config/mcore/t-mcore-pe: Remove.
7646 * config/netbsd-aout.h: Remove.
7647 * config/rs6000/gnu.h: Remove.
7648 * config/sh/sh-symbian.h: Remove.
7649 * config/sh/symbian-base.c: Remove.
7650 * config/sh/symbian-c.c: Remove.
7651 * config/sh/symbian-cxx.c: Remove.
7652 * config/sh/symbian-post.h: Remove.
7653 * config/sh/symbian-pre.h: Remove.
7654 * config/sh/t-symbian: Remove.
7655 * config/svr3.h: Remove.
7656 * config/vax/netbsd.h: Remove.
7657 * config.build: Don't handle i[34567]86-*-pe.
7658 * config.gcc: Remove handling of deprecations for most deprecated
7660 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7661 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7662 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7663 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7664 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7665 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7667 * config.host: Don't handle i[34567]86-*-pe.
7668 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7669 (ASM_SPEC32): Don't handle -mcall-gnu.
7670 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7672 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7673 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7674 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7675 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7676 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7677 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7678 conditional on SYMBIAN.
7679 * configure.ac: Don't handle powerpc*-*-gnu*.
7680 * configure: Regenerate.
7681 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7682 * doc/install-old.texi (m6811, m6812): Don't mention.
7683 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7684 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7685 (m68k-uclinuxoldabi): Don't mention.
7686 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7688 (-mcall-gnu): Remove.
7689 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7690 families): Remove constraint documentation.
7692 2011-03-22 Marius Strobl <marius@FreeBSD.org>
7694 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7695 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7696 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7698 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7701 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7702 vector when peeking at the next token for vector, don't expand the
7705 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
7707 * config/avr/avr-protos.h (expand_epilogue): Change prototype
7708 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7709 * config/avr/avr.c (init_cumulative_args)
7710 (avr_function_arg_advance): Use it.
7711 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7713 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7714 (avr_function_ok_for_sibcall): ...this new function.
7715 (avr_lookup_function_attribute1): New static Function.
7716 (avr_naked_function_p, interrupt_function_p)
7717 (signal_function_p, avr_OS_task_function_p)
7718 (avr_OS_main_function_p): Use it.
7719 * config/avr/avr.md ("sibcall", "sibcall_value")
7720 ("sibcall_epilogue"): New expander.
7721 ("*call_insn", "*call_value_insn"): New insn.
7722 ("call_insn", "call_value_insn"): Remove
7723 ("call", "call_value", "epilogue"): Change expander to handle
7726 2011-03-21 Nick Clifton <nickc@redhat.com>
7728 * doc/invoke.texi (Overall Options): Move closing brace to end of
7730 (Optimization Options): Add missing @gol.
7731 (Directory Options): Likewise.
7732 (i386 and x86-64 Options): Likewise.
7733 (RS6000 and PowerPC Options): Likewise.
7734 (i386 and x86-64 Windows Options): Likewise.
7735 (V850 Options): Add text missing from descriptions.
7737 2011-03-22 Richard Henderson <rth@redhat.com>
7739 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7740 (avr_incoming_return_addr_rtx): New.
7741 (emit_push_byte): New.
7742 (expand_prologue): Use it. Remove incorrect dwarf annotation for
7743 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
7744 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
7745 (emit_pop_byte): New.
7746 (expand_epilogue): Use it. Pop frame pointer by bytes.
7747 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7748 (INCOMING_RETURN_ADDR_RTX): New.
7749 (INCOMING_FRAME_SP_OFFSET): New.
7750 (ARG_POINTER_CFA_OFFSET): New.
7751 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7752 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7755 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7757 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7759 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7760 (FUNCTION_ARG_ADVANCE): Likewise.
7761 * tm.texi.in: Change references to them to hook references.
7762 * tm.texi: Regenerate.
7763 * targhooks.c (default_function_arg): Eliminate check for target
7765 (default_function_incoming_arg): Likewise.
7766 (default_function_arg_advance): Likewise.
7767 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7768 (function_arg_advance): Likewise.
7769 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7771 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7773 * tree.c (build_call_1): New function.
7774 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
7776 2011-03-22 Richard Guenther <rguenther@suse.de>
7778 PR tree-optimization/48228
7779 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
7780 for single-arg PHIs.
7782 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
7784 PR rtl-optimization/48143
7785 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
7786 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
7787 sse2_cvtps2pd): Likewise.
7789 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7791 * recog.c (canonicalize_change_group): Use validate_unshare_change.
7793 2011-03-22 Richard Guenther <rguenther@suse.de>
7795 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
7796 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
7797 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
7798 and REALIGN_LOAD_EXPR.
7799 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
7800 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
7801 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
7802 DOT_PROD_EXPR case ...
7803 (expand_expr_real_2): ... here.
7804 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
7805 and REALIGN_LOAD_EXPR.
7806 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
7807 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
7808 (vect_create_epilog_for_reduction): Likewise.
7809 (vectorizable_reduction): Likewise.
7810 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
7811 * tree-vect-stmts.c (vectorizable_load): Likewise.
7813 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7815 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
7817 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7819 * config/s390/s390.c (s390_delegitimize_address): Fix offset
7820 handling for PLTOFF/GOTOFF.
7822 2011-03-22 Nick Clifton <nickc@redhat.com>
7824 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
7825 trailing backslash from the end of the macro definition.
7827 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7829 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
7832 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
7834 * expr.h (prepare_operand): Move to...
7835 * optabs.h (prepare_operand): ...here and change the insn code
7836 parameter from "int" to "enum insn_code".
7837 (insn_operand_matches): Declare.
7838 * expr.c (init_expr_target): Use insn_operand_matches.
7839 (compress_float_constant): Likewise.
7840 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
7841 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
7842 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
7843 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
7845 (gen_cond_trap): Likewise.
7846 (prepare_operand): Likewise. Change icode to an insn_code.
7847 (insn_operand_matches): New function.
7848 * reload.c (find_reloads_address_1): Use insn_operand_matches.
7849 * reload1.c (gen_reload): Likewise.
7850 * targhooks.c (default_secondary_reload): Likewise.
7852 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7854 * config/alpha/alpha.md (unspec): New define_c_enum.
7857 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7860 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
7861 between a call and its CALL_ARG_LOCATION note.
7863 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
7865 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
7867 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7871 * c-common.c (shorten_compare): If primopN is first sign-extended
7872 to opN and then zero-extended to result type, set primopN to opN.
7874 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7876 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
7877 for barrier handlers.
7879 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7881 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
7882 UNSPEC constants to be in the unspec enumeration, and redefine
7883 all UNSPECV constants to be in the unspecv enumeration, so that
7884 dumps print which unspec/unspec_volatile this is.
7885 * config/rs6000/vector.md (UNSPEC_*): Ditto.
7886 * config/rs6000/paired.md (UNSPEC_*): Ditto.
7887 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
7888 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
7889 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
7891 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
7892 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
7893 UNSPECV_LWSYNC, since these are used as unspec_volatile.
7894 * config/rs6000/sync.md (isync, lwsync): Ditto.
7896 2011-03-21 Richard Guenther <rguenther@suse.de>
7898 * params.def (lto-min-partition): Fix typo.
7900 2011-03-21 Richard Guenther <rguenther@suse.de>
7903 * c-decl.c (grokdeclarator): Drop to the main variant only
7904 for array types. Drop flag_gen_aux_info check.
7906 2011-03-21 Richard Guenther <rguenther@suse.de>
7908 PR translation/47911
7909 * params.def (lto-partitions): Fix typo.
7910 (lto-min-partition): Fix wording.
7912 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
7914 * config/rs6000/t-freebsd: Remove duplication from file.
7916 2011-03-21 Richard Guenther <rguenther@suse.de>
7919 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
7921 2011-03-21 Richard Guenther <rguenther@suse.de>
7924 * params.def (lto-partitions): Require at least 1 partition.
7926 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7928 * gthr-solaris.h: Remove.
7929 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
7930 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
7931 (LIB_SPEC): Likewise.
7932 * config/sol2.opt (threads): Remove.
7933 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
7934 (sparc*-*-solaris2*): Likewise.
7935 * configure.ac (enable_threads): Enable solaris support.
7936 * configure: Regenerate.
7937 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
7938 * doc/install.texi (Configuration, --enable-threads=lib): Remove
7941 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7943 * config.gcc: Obsolete *-*-solaris2.8*.
7944 * doc/install.texi (Specific, *-*-solaris2*): Document it.
7946 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7949 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
7950 reference. Solaris 8 perl works.
7952 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7955 * doc/install.texi (Prerequisites): Move jar etc. up.
7956 Explain support library version requirements.
7958 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7961 * doc/install.texi (Prerequisites): Move Perl to build
7962 requirements. Always necessary on Solaris 2 with Sun ld.
7964 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7966 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
7968 (Specific, i?86-*-solaris2.[89]): Likewise.
7969 (Specific, i?86-*-solaris2.10): Likewise.
7970 (Specific, mips-sgi-irix6): Likewise.
7971 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
7972 Update for binutils 2.21.
7974 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7976 * configure.ac (gcc_cv_lto_plugin): Fix typo.
7977 Allow -fuse-linker-plugin for non-default plugin linker.
7978 * configure: Regenerate.
7980 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
7983 * gengtype.c (files_rules): Added rule for cp/parser.h.
7985 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7988 * config/s390/s390.c (s390_delegitimize_address): Don't call
7989 lowpart_subreg if orig_x has BLKmode.
7991 2011-03-21 Kai Tietz <ktietz@redhat.com>
7994 * doc/plugins.texi: Adjust documentation for plugin register_callback.
7995 * tree.h (attribute_spec): Add new member affects_type_identity.
7996 * attribs.c (empty_attribute_table): Adjust attribute_spec
7998 * config/alpha/alpha.c: Likewise.
7999 * config/arc/arc.c: Likewise.
8000 * config/arm/arm.c: Likewise.
8001 * config/avr/avr.c: Likewise.
8002 * config/bfin/bfin.c: Likewise.
8003 * config/crx/crx.c: Likewise.
8004 * config/darwin.h: Likewise.
8005 * config/h8300/h8300.c: Likewise.
8006 * config/i386/cygming.h: Likewise.
8007 * config/i386/i386.c: Likewise.
8008 * config/ia64/ia64.c: Likewise.
8009 * config/m32c/m32c.c: Likewise.
8010 * config/m32r/m32r.c: Likewise.
8011 * config/m68hc11/m68hc11.c: Likewise.
8012 * config/m68k/m68k.c: Likewise.
8013 * config/mcore/mcore.c: Likewise.
8014 * config/mep/mep.c: Likewise.
8015 * config/microblaze/microblaze.c: Likewise.
8016 * config/mips/mips.c: Likewise.
8017 * config/rs6000/rs6000.c: Likewise.
8018 * config/rx/rx.c: Likewise.
8019 * config/sh/sh.c: Likewise.
8020 * config/sol2.h: Likewise.
8021 * config/sparc/sparc.c: Likewise.
8022 * config/spu/spu.c: Likewise.
8023 * config/stormy16/stormy16.c: Likewise.
8024 * config/v850/v850.c: Likewise.
8026 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8028 * simplify-rtx.c (simplify_binary_operation_1): Handle
8029 (xor (and A B) C) case when B and C are both constants.
8031 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8033 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8035 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8038 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8040 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8042 PR rtl-optimization/48156
8043 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8044 assume df and df_lr are not NULL.
8046 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8049 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8050 between a call and its CALL_ARG_LOCATION note.
8052 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8055 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8056 between a call and its corresponding CALL_ARG_LOCATION note.
8058 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8060 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8061 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8062 * haifa-sched.c (setup_ref_regs): Ditto.
8063 * caller-save.c (add_used_regs_1): Ditto.
8064 * dse.c (look_for_hardregs): Ditto.
8065 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8066 * sched-rgn.c (check_live_1): Ditto.
8068 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8070 * c-decl.c (diagnose_mismatched_decls): Give an error for
8071 redefining a typedef with variably modified type.
8073 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8075 * c-decl.c (grokfield): Don't allow typedefs for structures or
8076 unions with no tag by default.
8077 * doc/extend.texi (Unnamed Fields): Update.
8079 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8081 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8082 Rewrite using indirect functions.
8083 (lwp_slwpcb): Ditto.
8084 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8085 (avx_vinsertf128<mode>): Ditto.
8087 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8089 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8092 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8094 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8095 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8097 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8099 PR rtl-optimization/48170
8100 * gcse.c (hoist_code): Remove bogus asserts.
8102 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8104 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8105 computation for prologue/epilogue.
8107 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8109 * Makefile.in (check-consistency): Remove.
8111 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8114 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8115 arange_table_in_use is 0, but either text_section_used or
8116 cold_text_section_used is true. Don't call it if
8117 !info_section_emitted.
8119 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8121 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8122 FUNCTION_VALUE_REGNO_P): Remove.
8123 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8125 * config/avr/avr.c (avr_ret_register): Make static inline.
8126 (avr_function_value_regno_p): New function.
8127 (avr_libcall_value): Make static. Add 'func' argument.
8128 (avr_function_value): Make static. Rename 'func' argument to
8129 'fn_decl_or_type', forward it to avr_libcall_value. Call
8130 avr_ret_register function instead of RET_REGISTER macro.
8131 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8133 2011-03-18 Jason Merrill <jason@redhat.com>
8136 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8138 2011-03-18 Richard Guenther <rguenther@suse.de>
8140 * doc/install.texi (--enable-gold): Remove.
8141 (--with-plugin-ld): Document.
8142 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8144 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8147 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8148 again after expansion changes.
8150 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8152 * combine.c (try_combine): Do simplification only call of
8153 subst() on i2 even when i1 is present. Update comments.
8155 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8157 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8158 and UNSPEC_PCREL_SYMOFF.
8160 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8162 * config/s390/s390.md: Use define_c_enum for the unspec constant
8165 2011-03-18 Richard Henderson <rth@redhat.com>
8166 Jakub Jelinek <jakub@redhat.com>
8169 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8170 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8172 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8175 * combine.c (cant_combine_insn_p): Don't check zero/sign
8176 extended hard registers.
8178 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8181 * combine.c (cant_combine_insn_p): Check zero/sign extended
8184 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8186 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8187 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8188 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8189 Change return type to bool.
8190 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8192 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8195 * var-tracking.c (prepare_call_arguments): If CALL target
8196 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8197 pc instead of looking it up using cselib_lookup and use
8198 Pmode for it if x has VOIDmode.
8199 * dwarf2out.c (gen_subprogram_die): If also both first and
8200 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8203 * function.c (assign_parms): For data.passed_pointer parms
8204 use MEM of data.entry_parm instead of data.entry_parm itself
8205 as DECL_INCOMING_RTL.
8206 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8207 also when passed and declared mode is the same, DECL_RTL
8208 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8211 2011-03-16 Jeff Law <law@redhat.com>
8213 PR rtl-optimization/37273
8214 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8215 handle them like argument loads from stack slots. Do not double
8216 count memory for memory constants and argument loads from stack slots.
8218 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8221 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8223 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8226 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8228 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8231 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8233 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8234 Clear call_arg_locations and call_arg_loc_last always.
8237 * var-tracking.c (prepare_call_arguments): If argument needs to be
8238 passed by reference, adjust argtype and mode.
8240 2011-03-17 Richard Guenther <rguenther@suse.de>
8243 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8244 a value make sure to fold the statement.
8246 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8249 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8250 return condition with !cfun->calls_alloca.
8252 2011-03-17 Richard Guenther <rguenther@suse.de>
8255 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8256 origin for decls in other ltrans units.
8257 (input_varpool_node): Likewise.
8259 2011-03-17 Richard Guenther <rguenther@suse.de>
8262 * tree-object-size.c (compute_object_offset): Properly return
8263 the offset operand of MEM_REFs as sizetype.
8265 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8267 PR rtl-optimization/48141
8268 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8269 * dse.c: Include params.h.
8270 (active_local_stores_len): New variable.
8271 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8273 (record_store, check_mem_read_rtx): Decrease it when removing
8275 (scan_insn): Likewise. Increase it when adding to chain, if it
8276 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8277 set active_local_stores to NULL before the addition.
8278 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8280 PR rtl-optimization/48141
8281 * dse.c (record_store): If no positions are needed in an insn
8282 that cannot be deleted, at least unchain it from active_local_stores.
8284 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8287 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8288 (lookup_type_die_strip_naming_typedef): ... here.
8289 (get_context_die): Use it.
8290 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8291 the anonymous struct named by the naming typedef.
8293 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8296 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8297 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8299 2011-03-16 Jeff Law <law@redhat.com>
8301 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8302 check for operands of conditional. Allow type to be a pointer.
8304 2011-03-16 Richard Guenther <rguenther@suse.de>
8306 PR tree-optimization/48149
8307 * fold-const.c (fold_binary_loc): Fold
8308 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8310 2011-03-16 Richard Guenther <rguenther@suse.de>
8312 PR tree-optimization/26134
8313 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8314 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8315 (non_rewritable_mem_ref_base): Handle complex type component
8316 accesses, constrain offsets for vector and complex extracts
8319 2011-03-16 Richard Guenther <rguenther@suse.de>
8321 PR tree-optimization/48146
8322 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8323 operands avoiding the need for renaming.
8325 2011-03-16 Richard Guenther <rguenther@suse.de>
8327 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8328 constant folding. Move MEM_REF canonicalization first.
8329 Rely on fold_const_aggregate_ref for initializer folding.
8330 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8332 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8335 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8336 arg0/arg1 or their arguments are always fold converted to matching
8339 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8342 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8345 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8346 Handle in-tree gold.
8347 (ld_vers): Extract binutils version for gold.
8348 (gcc_cv_ld_hidden): Handle gold here.
8349 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8350 * configure: Regenerate.
8351 * config.in: Regenerate.
8352 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8353 -fuse-linker-plugin otherwise.
8354 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8355 (LINK_COMMAND_SPEC): Use it.
8356 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8358 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8360 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8361 * calls.c: Remove debug.h include.
8362 (emit_call_1): Don't call virtual_call_token debug hook.
8363 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8364 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8365 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8366 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8367 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8368 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8369 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8370 dwarf2out_virtual_call): Remove.
8371 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8372 copy_call_info and virtual_call hooks.
8373 (dwarf2out_init): Don't initialize vcall_insn_table,
8374 debug_dcall_section and debug_vcall_section.
8375 (prune_unused_types): Don't mark nodes from dcall_table.
8376 (dwarf2out_finish): Don't output dcall or vcall tables.
8377 * final.c (final_scan_insn): Don't call direct_call or
8378 virtual_call debug hooks.
8379 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8380 virtual_call_token, copy_call_info and virtual_call hooks.
8381 (debug_nothing_uid): Remove prototype.
8382 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8383 copy_call_info and virtual_call hooks.
8384 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8385 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8386 * debug.c (do_nothing_debug_hooks): Likewise.
8387 (debug_nothing_uid): Remove.
8388 * doc/invoke.texi (-fenable-icf-debug): Remove.
8389 * common.opt (-fenable-icf-debug): Likewise.
8391 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8392 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8393 call's MEM. Handle functions returning aggregate through a hidden
8394 first pointer. For virtual calls add clobbered pc to call arguments
8396 * dwarf2out.c (gen_subprogram_die): Emit
8397 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8401 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8402 * rtl.h (ENTRY_VALUE_EXP): Define.
8403 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8404 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8405 * print-rtl.c (print_rtx): Likewise.
8406 * gengtype.c (adjust_field_rtx_def): Likewise.
8407 * var-tracking.c (vt_add_function_parameter): Adjust
8408 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8409 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8410 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8411 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8412 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8414 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8415 Call var_location debug hook even on CALL_INSNs.
8416 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8417 * rtl.def (ENTRY_VALUE): New.
8418 * dwarf2out.c: Include cfglayout.h.
8419 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8420 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8421 (struct call_arg_loc_node): New type.
8422 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8423 tail_call_site_count): New variables.
8424 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8425 DW_TAG_GNU_call_site_parameter.
8426 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8427 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8428 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8429 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8430 and DW_AT_GNU_all_source_call_sites.
8431 (mem_loc_descriptor): Handle ENTRY_VALUE.
8432 (add_src_coords_attributes): Don't add enything if
8433 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8434 (dwarf2out_abstract_function): Save and clear call_arg_location,
8435 call_site_count and tail_call_site_count around dwarf2out_decl call.
8436 (gen_call_site_die): New function.
8437 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8438 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8439 (dwarf2out_function_decl): Clear call_arg_locations,
8440 call_arg_loc_last, set call_site_count and tail_call_site_count
8441 to -1 and free block_map.
8442 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8443 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8444 followed by any real instructions.
8445 (dwarf2out_begin_function): Set call_site_count and
8446 tail_call_site_count to 0.
8447 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8448 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8449 attempt to force a DIE for it and worst case remove the attribute.
8450 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8451 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8453 * var-tracking.c: Include tm_p.h.
8454 (vt_stack_adjustments): For calls call note_register_arguments.
8455 (argument_reg_set): New variable.
8456 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8457 ensure the VALUE is resolved.
8458 (call_arguments): New variable.
8459 (prepare_call_arguments): New function.
8460 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8461 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8462 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8463 always use the best expression.
8464 (vt_expand_loc): Add ignore_cur_loc argument.
8465 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8466 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8467 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8469 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8470 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8471 argument. Don't call cselib_preserve_only_values and
8473 (note_register_arguments): New function.
8474 (vt_initialize): Compute argument_reg_set. Call
8475 vt_add_function_parameters before processing basic blocks instead of
8476 afterwards. For calls call prepare_call_arguments before calling
8477 cselib_process_insn.
8478 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8479 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8480 (var-tracking.o): Depend on $(TM_P_H).
8481 * cfglayout.h (insn_scope): New prototype.
8482 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8483 * cfglayout.c (insn_scope): No longer static.
8484 * insn-notes.def (CALL_ARG_LOCATION): New.
8485 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8486 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8487 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8488 nothing for DECL_EXTERNAL BLOCK_VARS.
8490 2011-03-16 Alan Modra <amodra@gmail.com>
8493 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8494 create invalid offset address for vsx splat insn.
8495 * config/rs6000/predicates.md (splat_input_operand): New.
8496 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8498 2011-03-15 Xinliang David Li <davidxl@google.com>
8501 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8502 (normalize_preds): New function.
8503 (is_use_properly_guarded): Normalize def predicates.
8505 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8508 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8509 in the output template.
8511 2011-03-15 Richard Guenther <rguenther@suse.de>
8514 * tree-pretty-print.c (dump_function_declaration): Properly
8515 dump unprototyped and varargs function types.
8517 2011-03-15 Richard Guenther <rguenther@suse.de>
8519 PR tree-optimization/13954
8520 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8523 2011-03-15 Richard Guenther <rguenther@suse.de>
8525 PR tree-optimization/48037
8526 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8527 selects into BIT_FIELD_REFs.
8528 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8531 2011-03-15 Jakub Jelinek <jakub@redhat.com>
8533 PR tree-optimization/48129
8534 * builtins.c (fold_builtin_snprintf): Convert to type of
8535 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8536 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8538 2011-03-15 Richard Guenther <rguenther@suse.de>
8540 PR tree-optimization/41490
8541 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8542 value but with VUSE.
8543 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8545 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8546 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8547 * tree-tailcall.c (find_tail_calls): Ignore returns.
8549 2011-03-15 Richard Guenther <rguenther@suse.de>
8552 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8553 or variable-indexed array accesses when in gimple form.
8555 2011-03-15 Richard Guenther <rguenther@suse.de>
8557 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8559 2011-03-15 Alan Modra <amodra@gmail.com>
8562 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8563 presume symbol_refs without a symbol_ref_decl are suitably
8564 aligned, nor other trees we may see here. Handle anchor symbols.
8565 (legitimate_constant_pool_address_p): Comment. Add mode param.
8566 Check cmodel=medium addresses. Adjust all calls.
8567 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8568 creating cmodel=medium optimized access to locals.
8569 * config/rs6000/constraints.md (R): Pass QImode to
8570 legitimate_constant_pool_address_p.
8571 * config/rs6000/predicates.md (input_operand): Pass mode to
8572 legitimate_constant_pool_address_p.
8573 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8576 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8579 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8580 64-bit constants being loaded into registers other than GPRs such
8581 as loading 0 into a VSX register.
8583 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8585 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8587 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8590 * builtins.c (fold_builtin_snprintf): New function.
8591 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8592 (fold_builtin_4): Likewise.
8595 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8596 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8597 and C - X == X also strip nops from +/-/p+ operand.
8598 When optimizing -X == C, fold C to arg0's type.
8601 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8602 emit it as add_AT_int instead of add_AT_unsigned.
8604 2011-03-14 Tom Tromey <tromey@redhat.com>
8606 * unwind-dw2.c: Include sys/sdt.h if it exists.
8607 (_Unwind_DebugHook): Use STAP_PROBE2.
8608 * config.in, configure: Rebuild.
8609 * configure.ac: Check for sys/sdt.h.
8611 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
8613 * config/i386/i386.md (ROUND_FLOOR): New constant.
8614 (ROUND_CEIL): Ditto.
8615 (ROUND_TRUNC): Ditto.
8616 (ROUND_MXCSR): Ditto.
8617 (ROUND_NO_EXC): Ditto.
8618 (rint<mode>2): Use new defines instead of numerical constants.
8619 (floor<mode>2): Ditto.
8620 (ceil<mode>2): Ditto.
8621 (btrunc<mode>2): Ditto.
8622 * config/i386/i386-builtin-types.def: Define ROUND function type
8624 * config/i386/i386.c (enum ix86_builtins): Add
8625 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8626 (struct builtin_description): Add
8627 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8628 (ix86_expand_sse_round): New static function.
8629 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8631 (ix86_builtin_vectorized_function): Handle
8632 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8634 2011-03-14 Tom Tromey <tromey@redhat.com>
8636 * c-parser.c (c_parser_asm_string_literal): Clear
8637 warn_overlength_strings.
8639 2011-03-14 Tom Tromey <tromey@redhat.com>
8641 * c-parser.c (disable_extension_diagnostics): Save
8642 warn_overlength_strings.
8643 (restore_extension_diagnostics): Restore warn_overlength_strings.
8645 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8647 * BASE-VER: Change to 4.7.0.
8649 2011-03-14 Richard Guenther <rguenther@suse.de>
8652 * tree.c (build_vector_from_val): Adjust assert to requirements
8655 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8658 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8660 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
8662 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8663 terms of target_flags_explicit. Adjust copyright year.
8665 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8666 * config/rs6000/t-freebsd: New file. Add override for
8669 2011-03-13 Chris Demetriou <cgd@google.com>
8671 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8672 (-fno-diagnostics-show-option): this, to reflect current default.
8673 (-Werror=): Update text about -fno-diagnostics-show-option.
8675 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8678 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8679 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8680 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8681 mode is not V2DImode or V2DFmode.
8682 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8683 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8684 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8686 (movdi_internal64): Likewise.
8688 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8690 PR tree-optimization/47127
8691 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8693 (set_cloog_options): Same.
8694 (scop_to_clast): Same.
8695 (print_clast_stmt): Do not call cloog_state_malloc and
8697 (print_generated_program): Same.
8699 * graphite-clast-to-gimple.h (cloog_state): Declared.
8700 (scop_to_clast): Adjust declaration.
8701 * graphite.c (cloog_state): Defined here.
8702 (graphite_initialize): Call cloog_state_malloc.
8703 (graphite_finalize): Call cloog_state_free.
8705 2011-03-11 Jason Merrill <jason@redhat.com>
8707 * attribs.c (lookup_attribute_spec): Take const_tree.
8710 2011-03-11 Joseph Myers <joseph@codesourcery.com>
8712 * config/sparc/sparc.c (sparc_option_override): Use
8713 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8715 2011-03-11 Richard Guenther <rguenther@suse.de>
8717 PR tree-optimization/48067
8718 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8719 multiplication result will be only used once on the target
8722 2011-03-11 Richard Guenther <rguenther@suse.de>
8724 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8726 2011-03-11 Richard Guenther <rguenther@suse.de>
8729 * tree.c (find_decls_types_r): Do not walk types only reachable
8730 from IDENTIFIER_NODEs.
8732 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8735 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8736 all vnode->force_output nodes as needed.
8738 2011-03-11 Jason Merrill <jason@redhat.com>
8741 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8742 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8744 2011-03-11 Martin Jambor <mjambor@suse.cz>
8746 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8749 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8751 PR tree-optimization/48063
8752 * ipa-inline.c (cgraph_decide_inlining): Don't try to
8753 inline functions called once if !tree_can_inline_p (node->callers).
8755 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
8757 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8759 * config/score/score3.c: Delete.
8760 * config/score/score3.h: Delete.
8761 * config/score/mul-div.S: Delete.
8762 * config/score/sfp-machine.h: Add new file.
8763 * config/score/constraints.md: Add new file.
8764 * config/score/t-score-softfp: Add new file.
8765 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
8766 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8767 (score7_extra_constraint): Delete.
8768 (score7_option_override): Remove unused code.
8769 * config/score/score.c: Remove score3 and score5 define and code.
8770 * config/score/score.h: Remove score3 and score5 define and code.
8771 * config/score/score.md: Remove score3 template and unusual insn.
8772 * config/score/score.opt: Remove score3 and score5 options.
8774 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8776 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8777 when _HPUX_SOURCE is defined.
8778 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
8780 2011-03-10 Jason Merrill <jason@redhat.com>
8783 * stor-layout.c (layout_type): Don't set structural equality
8784 on arrays of incomplete type.
8785 * tree.c (type_hash_eq): Handle comparing them properly.
8787 2011-03-10 Jakub Jelinek <jakub@redhat.com>
8790 * config/s390/s390.c (s390_delegitimize_address): Make sure the
8791 result mode matches original rtl mode.
8793 2011-03-10 Nick Clifton <nickc@redhat.com>
8795 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
8796 (andsi3, andsi3_flags): Fix timings for three operand alternative.
8798 2011-03-09 Jakub Jelinek <jakub@redhat.com>
8800 PR rtl-optimization/47866
8801 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
8802 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
8803 if target wasn't scalar.
8804 * function.c (assign_stack_temp_for_type): Assert that neither
8805 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
8806 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
8808 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
8810 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8812 * config/s390/s390-protos.h (s390_label_align): New prototype.
8813 * config/s390/s390.c (s390_label_align): New function.
8814 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
8816 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8819 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
8820 V2DI/V2DF constants. Only all 0's or all 1's are easy.
8821 (output_vec_const_move): Ditto.
8823 2011-03-08 Anatoly Sokolov <aesok@post.ru>
8825 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
8826 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
8827 * config/mips/mips.c (mips_preferred_reload_class): Make static.
8828 Change 'rclass' argument and result type to reg_class_t.
8829 (TARGET_PREFERRED_RELOAD_CLASS): Define.
8831 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
8833 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8834 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
8835 (TARGET_MEMORY_MOVE_COST): Define.
8836 (avr_register_move_cost, avr_memory_move_cost): New Functions.
8838 2011-03-08 Jakub Jelinek <jakub@redhat.com>
8841 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
8844 PR tree-optimization/48022
8845 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
8848 2011-03-07 Jakub Jelinek <jakub@redhat.com>
8851 * var-tracking.c (find_use_val): Return NULL for
8852 cui->sets && cui->store_p BLKmode MEMs.
8854 2011-03-07 Anatoly Sokolov <aesok@post.ru>
8856 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
8858 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
8859 xstormy16_print_operand_address): Remove.
8860 * config/stormy16/stormy16.c (xstormy16_print_operand,
8861 xstormy16_print_operand_address): Make static.
8862 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8864 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
8867 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8868 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
8871 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
8874 * cfgloopmanip.c (fix_bb_placements): Return immediately
8875 if FROM is BASE_LOOP's header.
8877 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
8879 * gimplify.c (gimplify_function_tree): Fix building calls
8880 to __builtin_return_address.
8882 2011-03-07 Alan Modra <amodra@gmail.com>
8884 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
8885 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
8886 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
8887 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
8889 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
8890 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
8891 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
8892 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
8893 * config/rs6000/rs6000.c
8894 (rs6000_elf_end_indicate_exec_stack): Rename to..
8895 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
8896 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
8897 (rs6000_file_start): ..here.
8898 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
8899 file scope variables.
8900 (call_ABI_of_interest): New function.
8901 (init_cumulative_args): Set above vars when function return value
8902 is a float, vector, or small struct.
8903 (rs6000_function_arg_advance_1): Likewise for function args.
8904 (rs6000_va_start): Set rs6000_passes_float if variable arg function
8905 references float args.
8907 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
8909 * doc/cfg.texi: Remove "See" before @ref.
8910 * doc/invoke.texi: Likewise.
8912 2011-03-05 Jason Merrill <jason@redhat.com>
8914 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
8916 2011-03-05 Anthony Green <green@moxielogic.com>
8918 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
8920 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
8922 PR rtl-optimization/47899
8923 * cfgloopmanip.c (fix_bb_placements): Fix first argument
8924 to flow_loop_nested_p when moving the loop upward.
8926 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
8929 * arm.md (movhi_insn_arch4): Accept any immediate constant.
8931 2011-03-05 Jakub Jelinek <jakub@redhat.com>
8933 PR tree-optimization/47967
8934 * ipa-cp.c (build_const_val): Return NULL instead of creating
8935 VIEW_CONVERT_EXPR for mismatching sizes.
8936 (ipcp_create_replace_map): Return NULL if build_const_val failed.
8937 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
8938 give up on versioning.
8940 2011-03-05 Alan Modra <amodra@gmail.com>
8943 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8944 full cmodel medium/large lo_sum + high addresses.
8946 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8948 * config/s390/s390.c (s390_decompose_address): Reject non-literal
8949 pool references in UNSPEC_LTREL_OFFSET.
8951 2011-03-04 Jan Hubicka <jh@suse.cz>
8954 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
8955 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
8956 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
8958 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
8959 cgraph_add_thunk): Add node pointers.
8960 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
8961 associated to right node.
8962 (input_node): Update use of cgraph_same_body_alias
8963 and cgraph_add_thunk.
8965 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
8967 * config/i386/i386.opt (mprefer-avx128): New flag.
8968 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
8969 modes when the flag -mprefer-avx128 is on.
8971 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
8973 * dwarf2out.c (compare_loc_operands): Fix address handling.
8975 2011-03-04 Alan Modra <amodra@gmail.com>
8977 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
8979 2011-03-04 Richard Guenther <rguenther@suse.de>
8982 * expmed.c (extract_bit_field_1): Prefer vector modes that
8983 vec_extract patterns can handle.
8985 2011-03-04 Richard Guenther <rguenther@suse.de>
8988 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
8990 2011-03-04 Richard Henderson <rth@redhat.com>
8992 * explow.c (emit_stack_save): Remove 'after' parameter.
8993 (emit_stack_restore): Likewise.
8994 * expr.h: Update to match.
8995 * builtins.c, calls.c, stmt.c: Likewise.
8996 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
8997 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
8998 * function.c (expand_function_end): Insert the emit_stack_save
8999 sequence before parm_birth_insn instead of after.
9001 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9003 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9004 (ssse3_pmaddubsw128): Ditto.
9005 (ssse3_pmaddubsw): Ditto.
9007 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9009 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9011 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9014 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9015 on TYPE_SIZE_UNIT if it is a DECL.
9018 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9019 first operand is not is_gimple_mem_ref_addr, try to fold it.
9020 If the operand still isn't is_gimple_mem_ref_addr, clear
9023 2011-03-03 Richard Guenther <rguenther@suse.de>
9026 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9028 (refs_may_alias_p_1): For release branches return true if
9029 we are confused by our input.
9031 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9033 * config/s390/s390.c (s390_function_value): Rename to ...
9034 (s390_function_and_libcall_value): ... this.
9035 (s390_function_value): New function.
9036 (s390_libcall_value): New function.
9037 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9038 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9039 target macro definitions.
9040 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9042 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9044 * config/i386/freebsd64.h (CC1_SPEC): Define.
9045 * config/i386/linux64.h (CC1_SPEC): Define.
9046 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9048 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9050 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9052 * config/stormy16/stormy16.c: Include reload.h.
9053 (xstormy16_memory_move_cost): New function.
9054 (TARGET_MEMORY_MOVE_COST): Define.
9056 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9058 PR rtl-optimization/47925
9059 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9060 with side effects. Remove the more-specific check for volatile asms.
9062 2011-03-02 Alan Modra <amodra@gmail.com>
9065 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9066 toc relative addresses for valid offsets.
9068 2011-03-01 Richard Guenther <rguenther@suse.de>
9070 PR tree-optimization/47890
9071 * tree-vect-loop.c (get_initial_def_for_induction): Set
9072 related stmt properly.
9074 2011-03-01 Richard Guenther <rguenther@suse.de>
9077 * lto-streamer.c (lto_record_common_node): Also register
9080 2011-03-01 Richard Guenther <rguenther@suse.de>
9083 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9084 Do not stream DECL_ABSTRACT_ORIGIN.
9085 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9086 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9087 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9088 Do not stream DECL_ABSTRACT_ORIGIN.
9089 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9090 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9092 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9094 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9095 FUNCTION_VALUE_REGNO_P): Remove.
9096 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9097 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9098 Add 'outgoing' argument.
9099 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9101 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9102 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9104 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9107 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9108 (lookup_filename): Likewise.
9109 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9111 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9112 Jakub Jelinek <jakub@redhat.com>
9115 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9116 (assign_stack_local_1): Change last argument type to int.
9117 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9118 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9119 don't record padding space into frame_space_list nor use those areas.
9120 (assign_stack_local): Adjust caller.
9121 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9122 of assign_stack_local, pass 0 as last argument.
9123 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9126 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9129 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9130 Use target address_mode and pointer_mode hooks instead of hardcoded
9131 Pmode and ptr_mode. Handle some simple cases of extending if
9132 POINTERS_EXTEND_UNSIGNED < 0.
9133 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9134 Call convert_debug_memory_address.
9135 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9136 convert_debug_memory_address.
9139 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9140 * configure: Regenerated.
9141 * config.in: Regenerated.
9142 * varasm.c (default_function_section): Return NULL
9143 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9145 2011-02-28 Martin Jambor <mjambor@suse.cz>
9147 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9148 the description to match the printed values.
9150 2011-02-28 Richard Guenther <rguenther@suse.de>
9152 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9153 of the copied scope tree.
9155 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9157 * doc/extend.texi (Function Attributes): Avoid deeply (and
9158 wrongly) nested tables.
9160 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9163 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9164 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9165 r isn't op0 nor op1.
9167 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9169 * config/avr/avr.md: Remove magic comment for emacs.
9171 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9174 * config/avr/avr.c (avr_option_override): Use error on bad options.
9175 (avr_help): New function.
9176 (TARGET_HELP): Define.
9178 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9181 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9182 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9184 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9186 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9187 (ARM Options): Ditto.
9188 (i386 and x86-64 Options): Ditto.
9189 (RX Options): Ditto.
9190 (SPARC Options): Ditto.
9192 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9194 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9195 FreeBSD 6 and later. Generally use cpu generic.
9197 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9199 * doc/cpp.texi: Update copyright years.
9201 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9204 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9206 2011-02-25 Jon Beniston <jon@beniston.com>
9209 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9210 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9211 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9212 (lm32_block_move_inline): Add type cast to remove warning.
9213 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9214 (gen_int_relational): Move declarations to start of function.
9216 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9218 PR tree-optimization/45470
9219 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9220 can throw internally only.
9221 * tree-vect-stmts.c (vectorizable_call): Likewise.
9223 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9225 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9226 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9227 * config/stormy16/stormy16-protos.h
9228 (xstormy16_preferred_reload_class): Remove.
9229 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9230 static. Change 'rclass' argument and return type to reg_class_t.
9231 (TARGET_PREFERRED_RELOAD_CLASS,
9232 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9234 2011-02-24 Richard Guenther <rguenther@suse.de>
9236 * lto-streamer-in.c (input_bb): Do not find referenced vars
9237 in debug statements.
9239 2011-02-23 Jason Merrill <jason@redhat.com>
9241 * common.opt (fabi-version): Document v5 and v6.
9243 2011-02-23 Richard Guenther <rguenther@suse.de>
9245 PR tree-optimization/47849
9246 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9248 2011-02-23 Jie Zhang <jie@codesourcery.com>
9250 * opts-common.c (decode_cmdline_option): Print empty string
9251 argument as "" in decoded->orig_option_with_args_text.
9252 * gcc.c (execute): Print empty string argument as ""
9253 in the verbose output.
9254 (do_spec_1): Keep empty string argument.
9256 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9258 * config.gcc: Declare score-* and crx-* obsolete.
9260 2011-02-23 Jie Zhang <jie@codesourcery.com>
9262 PR rtl-optimization/47763
9263 * web.c (web_main): Ignore naked clobber when replacing register.
9265 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9267 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9270 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9273 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9275 2011-02-22 Mike Stump <mikestump@comcast.net>
9277 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9279 * configure: Regenerate.
9281 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9283 PR rtl-optimization/46002
9284 * ira-color.c (update_copy_costs): Change class intersection
9285 test to reg_class_contents[] test of 'hard_regno'.
9287 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9289 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9291 * config/hpux11.opt (mt): Likewise.
9292 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9293 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9294 * config/vax/elf.opt (mno-asm-pic): Likewise.
9295 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9297 2011-02-21 Mike Stump <mikestump@comcast.net>
9300 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9301 tree so we can get save the type.
9302 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9303 for CFString instead of trying to use past the end of the builtins.
9304 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9305 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9306 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9307 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9308 Rename to darwin_builtin_cfstring.
9309 (darwin_init_cfstring_builtins): Return the built type.
9311 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9314 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9315 (_mm256_insert_epi64): Use _mm_insert_epi64.
9317 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9319 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9320 * config/stormy16/stormy16-protos.h
9321 (xstormy16_mode_dependent_address_p): Remove.
9322 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9323 Make static. Change return type to bool. Change argument type to
9324 const_rtx. Remove dead code.
9325 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9327 2011-02-21 Richard Guenther <rguenther@suse.de>
9330 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9331 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9332 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9334 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9335 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9337 2011-02-20 Richard Guenther <rguenther@suse.de>
9340 * tree.c (free_lang_data_in_decl): Clean builtins from
9341 the TU decl BLOCK_VARS.
9343 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9347 * haifa-sched.c (fix_tick_ready): Skip tick computation
9350 2011-02-19 Richard Guenther <rguenther@suse.de>
9353 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9354 Remove lazy BLOCK_VARS streaming.
9355 (lto_input_ts_block_tree_pointers): Likewise.
9356 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9358 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9360 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9362 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9364 * config/i386/biarch32.h, config/i386/mach.h,
9365 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9367 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9370 * config/i386/i386.md (peephole2 for shift and plus): Use
9371 operands[1] original mode in the first insn.
9373 2011-02-18 Mike Stump <mikestump@comcast.net>
9375 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9377 2011-02-18 Jan Hubicka <jh@suse.cz>
9380 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9381 to zero when the function is not inlinable at all.
9383 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9385 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9386 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9387 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9388 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9389 * config/pa/t-pa64: Likewise.
9390 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9392 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9395 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9397 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9400 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9402 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9404 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9405 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9406 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9407 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9408 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9409 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9410 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9411 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9412 m32r_legitimate_address_p): New functions.
9413 * config/m32r/constraints.md (constraint "S"): Don't use
9414 STORE_PREINC_PREDEC_P.
9415 (constraint "U"): Don't use LOAD_POSTINC_P.
9417 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9419 PR rtl-optimization/46178
9420 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9421 compute ira_hard_regno_cover_class[].
9423 2011-02-18 Richard Guenther <rguenther@suse.de>
9426 * lto-streamer.h (lto_global_var_decls): Declare.
9427 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9428 statics for global var processing.
9430 2011-02-18 Richard Guenther <rguenther@suse.de>
9432 PR tree-optimization/47737
9433 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9434 edge dominance check.
9436 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9439 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9440 avoid invalid rtx sharing.
9442 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9444 * doc/cpp.texi (Obsolete Features): Add background on the
9445 origin of assertions.
9447 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9449 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9451 * config/darwin.c (output_objc_section_asm_op): Added support for
9453 (is_objc_metadata): New.
9454 (darwin_objc2_section): New.
9455 (darwin_objc1_section): New.
9456 (machopic_select_section): Added support for ABI v1 and v2.
9457 (darwin_emit_objc_zeroed): New.
9458 (darwin_output_aligned_bss): Detect objc metadata and treat it
9460 (darwin_asm_output_aligned_decl_common): Same.
9461 (darwin_asm_output_aligned_decl_local): Same.
9462 * config/darwin-sections.def: Updated for ABI v1 and v2.
9463 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9464 compiling Objective-C code for the NeXT runtime, default to using
9465 ABI version 0 for 32-bit, and version 2 for 64-bit.
9467 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9469 * common.opt (optimize_fast): New Variable.
9470 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9471 instead of local variable ofast.
9473 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9475 * doc/invoke.texi (fobjc-abi-version): Documented.
9476 (fobjc-nilcheck): Documented.
9477 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9480 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9483 * common.opt (export-dynamic): New Driver option.
9484 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9486 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9488 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9490 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9491 Jan Hubicka <jh@suse.cz>
9495 * cfgexpand.c (account_used_vars_for_block): Remove.
9496 (estimated_stack_frame_size): Use referenced vars.
9497 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9498 that were referenced in the original function. Test src_fn
9499 rather than cfun. Drop redundant get_var_ann.
9500 (setup_one_parameter): Drop redundant get_var_ann.
9501 (declare_return_variable): Likewise.
9502 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9503 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9504 * ipa-inline.c (compute_inline_parameters): Do not compute
9505 disregard_inline_limits here.
9506 (compute_inlinable_for_current, pass_inlinable): New.
9507 (pass_inline_parameters): Require PROP_referenced_vars.
9508 * cgraphunit.c (cgraph_process_new_functions): Don't run
9509 compute_inline_parameters explicitly unless function is in SSA form.
9510 (cgraph_analyze_function): Set .disregard_inline_limits.
9511 * tree-sra.c (convert_callers): Compute inliner parameters
9512 only for functions already in SSA form.
9514 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9516 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9517 -mlittle-endian-data.
9519 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9521 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9522 -mno-fpu, not -fpu and -no-fpu.
9523 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9524 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9526 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
9529 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9530 input reload with PLUS RTX.
9532 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9534 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9535 of InverseVar(MDMX).
9537 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9539 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9542 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9544 * config/mn10300/mn10300.opt (mno-crt0): New.
9546 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9548 * config/m68k/uclinux.opt (static-libc): New Driver option.
9550 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9552 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9554 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9556 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9557 %{muser-extend-enabled}.
9559 2011-02-16 Richard Guenther <rguenther@suse.de>
9561 PR tree-optimization/47738
9562 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9563 the TODO from tree_predictive_commoning.
9565 2011-02-15 Jeff Law <law@redhat.com>
9568 2011-01-25 Jeff Law <law@redhat.com>
9570 PR rtl-optimization/37273
9571 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9572 handle them like argument loads from stack slots. Do not double
9573 count memory for memory constants and argument loads from stack slots.
9575 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9578 * combine.c (cant_combine_insn_p): Revert the last change.
9580 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9583 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9584 mode for vector constants. Remove code that checks for TImode.
9586 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9590 * cgraph.h (compute_inline_parameters): Return void.
9591 * ipa-inline.c (compute_inline_parameters): Adjust.
9593 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9597 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9599 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9600 * ipa-inline.c (compute_inline_parameters): Adjust.
9602 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9606 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9607 Adjust all users. Pass FN to...
9608 * tree-flow-inline.h (first_referenced_var): ... this. Add
9610 * ipa-struct-reorg.c: Adjust.
9611 * tree-dfa.c: Adjust.
9612 * tree-into-ssa.c: Adjust.
9613 * tree-sra.c: Adjust.
9614 * tree-ssa-alias.c: Adjust.
9615 * tree-ssa-live.c: Adjust.
9616 * tree-ssa.c: Adjust.
9617 * tree-ssanames.c: Adjust.
9618 * tree-tailcall.c: Adjust.
9620 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9624 * tree-flow.h (referenced_var_lookup): Add fn parameter.
9626 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9627 * tree-flow-inline.h: Adjust.
9628 * gimple-pretty-print.c: Adjust.
9629 * tree-into-ssa.c: Adjust.
9630 * tree-ssa.c: Adjust.
9631 * cfgexpand.c: Adjust.
9633 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9635 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9636 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9637 (EXTRA_CONSTRAINT): Delete.
9638 * config/iq2000/constraints.md: New file.
9639 * config/iq2000/iq2000.md: Include it.
9640 (define_insn ""): Delete.
9641 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9642 unsupported constraint letters from patterns.
9643 (call_value, call_value_internal1): Likewise.
9644 (call_value_multiple_internal1): Likewise.
9646 2011-02-15 Nick Clifton <nickc@redhat.com>
9648 * config/mn10300/mn10300.c: Include tm-constrs.h.
9649 (struct liw_data): New data structure describing an LIW candidate
9651 (extract_bundle): Use struct liw_data. Allow small integer
9652 operands for some instructions.
9653 (check_liw_constraints): Use struct liw_data. Remove swapped
9654 parameter. Add comments describing the checks. Fix bug when
9655 assigning the source of liw1 to the source of liw2.
9656 (liw_candidate): Delete. Code moved into extract_bundle.
9657 (mn10300_bundle_liw): Use struct liw_data. Check constraints
9659 * config/mn10300/predicates.md (liw_operand): New predicate.
9660 Allows registers and small integer constants.
9661 * config/mn10300/constraints.md (O): New constraint. Accetps
9662 integers in the range -8 to +7 inclusive.
9663 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9664 for moving a small integer into a register. Give this alternative
9666 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9667 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9668 using the J,K,L and M constraints,
9669 (liw): Remove SI mode on second operands to allow for HI and QI
9671 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
9674 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9677 * combine.c (cant_combine_insn_p): Check zero/sign extended
9680 2011-02-15 Richard Guenther <rguenther@suse.de>
9682 PR tree-optimization/47743
9683 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9684 for a non-type-compatible VN lookup bail out.
9686 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9688 * config/fr30/constraints.md: New file.
9689 * config/fr30/fr30.md: Include it.
9690 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9691 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9692 (EXTRA_CONSTRAINT): Delete.
9694 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9696 * config/frv/constraints.md: New file.
9697 * config/frv/predicates.md: Include it.
9698 * config/frv/frv.c (reg_class_from_letter): Delete.
9699 (frv_option_override): Don't initialize it.
9700 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9701 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9702 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9703 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9704 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9705 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9706 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9707 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9708 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9709 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9710 (REG_CLASS_FROM_CONSTRAINT): Delete.
9712 2011-02-15 Jakub Jelinek <jakub@redhat.com>
9715 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9716 if frame size is 0 in a leaf function.
9718 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9721 * config/alpha/host-osf.c: New file.
9722 * config/alpha/x-osf: New file.
9723 * config.host (alpha*-dec-osf*): Use it.
9725 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9727 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9728 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9729 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9730 (rx_mode_dependent_address_p): ...this. Make static. Change argument
9732 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9734 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9736 * config/stormy16/constraints.md: New file.
9737 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9738 Use satisfies_constraint_Q and satisfies_constraint_R.
9739 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9741 (xstormy16_legitiamte_address_p): Declare.
9742 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9743 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9744 (EXTRA_CONSTRAINT): Delete.
9745 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9747 (xstormy16_extra_constraint_p): Delete.
9749 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
9751 PR tree-optimization/46494
9752 * loop-unroll.c (split_edge_and_insert): Adjust comment.
9753 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9754 (pass_rtl_loop_done): Add TODO_verify_flow.
9755 * fwprop.c (pass_rtl_fwprop): Likewise.
9756 * modulo-sched.c (pass_sms): Likewise.
9757 * tree-ssa-dom.c (pass_dominator): Likewise.
9758 * tree-ssa-loop-ch.c (pass_ch): Likewise.
9759 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9760 (pass_tree_loop_done): Likewise.
9761 * tree-ssa-pre.c (execute_pre): Likewise.
9762 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9763 * tree-ssa-sink.c (pass_sink_code): Likewise.
9764 * tree-vrp.c (pass_vrp): Likewise.
9766 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9768 * config/v850/constraints.md: New file.
9769 * config/v850/v850.md: Include it.
9770 * config/v850/predicates.md (reg_or_0_operand): Use
9771 satisfies_constraint_G.
9772 (special_symbolref_operand): Use satisfies_constraint_K.
9773 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
9774 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9775 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
9776 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9777 (EXTRA_CONSTRAINT): Delete.
9778 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
9779 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
9780 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
9782 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9785 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
9788 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9790 * config/mcore/constraints.md: New file.
9791 * config/mcore/mcore.md: Include it.
9792 * config/mcore/mcore.c (reg_class_from_letter): Delete.
9793 * config/mcore/mcore.h (reg_class_from_letter): Delete.
9794 (REG_CLASS_FROM_LETTER): Delete.
9795 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
9796 insn_const_int_ok_for_constraint.
9797 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
9798 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
9799 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9800 (EXTRA_CONSTRAINT): Delete.
9802 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9805 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
9806 (IS_SIGHANDLER): Define.
9807 (sparc64_is_sighandler): New function, split off from
9808 sparc64_fallback_frame_state.
9809 (sparc_is_sighandler): New function, split off from
9810 sparc_fallback_frame_state.
9811 (sparc64_fallback_frame_state): Merge with ...
9812 (sparc_fallback_frame_state): ... this into ...
9813 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
9814 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
9815 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
9816 stack instead of hardcoded offsets.
9818 2011-02-14 Andriy Gapon <avg@freebsd.org>
9821 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
9823 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9825 * configure: Regenerate.
9827 2011-02-12 Joseph Myers <joseph@codesourcery.com>
9830 * gcc.c (asm_options): Correct spec matching --target-help.
9832 2011-02-12 Martin Jambor <mjambor@suse.cz>
9834 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
9835 to gimple call error.
9837 2011-02-12 Mike Stump <mikestump@comcast.net>
9839 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
9840 comments in backslash regions.
9842 2011-02-12 Mike Stump <mikestump@comcast.net>
9843 Jakub Jelinek <jakub@redhat.com>
9844 Iain Sandoe <iains@gcc.gnu.org>
9847 * dwarf2out.c (output_cfa_loc): When required, apply the
9848 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
9849 (output_loc_sequence): Likewise.
9850 (output_loc_operands_raw): Likewise.
9851 (output_loc_sequence_raw): Likewise.
9852 (output_cfa_loc): Likewise.
9853 (output_loc_list): Suppress register number adjustment when
9854 calling output_loc_sequence()
9855 (output_die): Likewise.
9857 2011-02-12 Anatoly Sokolov <aesok@post.ru>
9859 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9861 * config/xtensa/xtensa.c (xtensa_register_move_cost,
9862 xtensa_memory_move_cost): New functions.
9863 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
9865 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
9868 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
9869 in the current directory.
9870 * configure: Rebuilt.
9872 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9874 * config/darwin.c (darwin_override_options): Add a hunk missed
9875 from the commit of r168571. Trim comment line lengths and
9876 correct indents of the preceding block.
9878 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9880 * gcc.c (driver_handle_option): Concatenate the argument to -F with
9883 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9885 * common.opt (nostartfiles): New Driver option.
9887 2011-02-11 Xinliang David Li <davidxl@google.com>
9889 PR tree-optimization/47707
9890 * tree-chrec.c (convert_affine_scev): Keep type precision.
9892 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
9894 PR tree-optimization/47420
9895 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
9897 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
9899 PR rtl-optimization/47614
9900 * rtl.h (check_for_inc_dec): Declare.
9901 * dse.c (check_for_inc_dec): Externalize...
9902 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
9903 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
9905 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9908 * gcc.c (main): Do not compile inputs if there were errors in
9910 * opts-common.c (read_cmdline_option): Check for wrong language
9911 after other error checks.
9913 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
9915 * cgraph.c: Fix comment typos.
9916 * cgraph.h: Likewise.
9917 * cgraphunit.c: Likewise.
9918 * ipa-cp.c: Likewise.
9919 * ipa-inline.c: Likewise.
9920 * ipa-prop.c: Likewise.
9921 * ipa-pure-const.c: Likewise.
9922 * ipa-ref.c: Likewise.
9923 * ipa-reference.c: Likewise.
9925 2011-02-11 Jakub Jelinek <jakub@redhat.com>
9928 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
9930 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9933 * doc/sourcebuild.texi (Require Support): Document
9934 dg-require-ascii-locale.
9936 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
9938 * doc/lto.texi (Write summary): Fix missing parentheses.
9940 2011-02-10 DJ Delorie <dj@redhat.com>
9942 * config/m32c/m32c.c (m32c_option_override): Disable
9943 -fcombine-stack-adjustments until flag value tracking and compare
9944 optimization can be rewritten.
9946 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
9948 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
9950 (PROCESSOR_DEFAULT64): Likewise.
9952 2011-02-10 Richard Henderson <rth@redhat.com>
9954 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
9955 change from 2011-02-03.
9956 * config/rx/rx.c (flags_from_code): Likewise.
9957 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
9958 is valid, n/pz otherwise.
9959 (rx_select_cc_mode): Return CCmode if Y is not zero.
9961 2011-02-10 Richard Guenther <rguenther@suse.de>
9963 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
9965 2011-02-10 Richard Guenther <rguenther@suse.de>
9967 PR tree-optimization/47677
9968 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
9970 2011-02-10 Jakub Jelinek <jakub@redhat.com>
9973 * combine.c (make_compound_operation): Only change shifts into
9974 multiplication for SCALAR_INT_MODE_P.
9976 2011-02-10 Jie Zhang <jie@codesourcery.com>
9980 2011-02-05 Jie Zhang <jie@codesourcery.com>
9982 * web.c (entry_register): Don't clobber the number of the
9983 first uninitialized reference in used[].
9985 2011-02-09 Richard Guenther <rguenther@suse.de>
9987 PR tree-optimization/47664
9988 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
9991 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
9995 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
9997 (PROCESSOR_DEFAULT64): Same.
9998 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10000 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10002 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10004 2011-02-09 Martin Jambor <mjambor@suse.cz>
10006 PR middle-end/45505
10007 * tree-sra.c (struct access): New flags grp_scalar_read and
10008 grp_scalar_write. Changed description of assignment read and write
10010 (dump_access): Dump new flags, reorder all of them.
10011 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10012 to detect multiple scalar reads.
10013 (analyze_access_subtree): Use the new scalar read write flags instead
10014 of the old flags. Adjusted comments.
10016 2011-02-08 DJ Delorie <dj@redhat.com>
10019 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10022 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10024 * config/m68k/uclinux.opt: New.
10025 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10027 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10029 * config/cris/elf.opt (sim): New Driver option.
10031 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10033 * config/xtensa/elf.opt: New.
10034 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10036 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10038 * config/vax/elf.opt: New.
10039 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10041 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10043 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10045 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10047 * config/gnu-user.opt: New.
10048 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10049 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10050 *-*-uclinux*): Use gnu-user.opt.
10052 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10054 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10055 * config/i386/gnu.h (CPP_SPEC): Likewise.
10057 2011-02-08 Ian Lance Taylor <iant@google.com>
10059 * common.opt (fcx-limited-range): Add SetByCombined flag.
10060 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10061 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10062 (fassociative-math, freciprocal-math): Likewise.
10063 (funsafe-math-optimizations): Likewise.
10064 * opth-gen.awk: Handle SetByCombined.
10065 * optc-gen.awk: Likewise.
10066 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10067 (set_unsafe_math_optimizations_flags): Likewise.
10068 * doc/options.texi (Option properties): Document SetByCombined.
10070 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10072 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10073 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10074 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10075 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10076 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10078 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10080 PR tree-optimization/46834
10081 PR tree-optimization/46994
10082 PR tree-optimization/46995
10083 * graphite-sese-to-poly.c (used_outside_reduction): New.
10084 (detect_commutative_reduction): Call used_outside_reduction.
10085 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10086 translate_scalar_reduction_to_array only when at least one
10087 loop-phi/close-phi tuple has been detected.
10089 2011-02-08 Richard Guenther <rguenther@suse.de>
10091 PR middle-end/47639
10092 * tree-vect-generic.c (expand_vector_operations_1): Update
10094 (expand_vector_operations): ... not here. Cleanup EH info
10095 and the CFG if required.
10097 2011-02-08 Richard Guenther <rguenther@suse.de>
10099 PR tree-optimization/47641
10100 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10101 require type compatibility.
10103 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10105 * gimple-low.c (lower_function_body): Don't remove the location of
10106 the return statement here.
10107 (lower_gimple_return): Do it here instead but only if the return
10108 statement is actually used twice.
10110 2011-02-08 Richard Guenther <rguenther@suse.de>
10112 PR tree-optimization/47632
10113 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10114 unused up_to_stmt parameter, return whether cfg-cleanup is
10115 necessary, remove EH info properly.
10116 (forward_propagate_into_gimple_cond): Adjust caller.
10117 (forward_propagate_into_cond): Likewise.
10118 (forward_propagate_comparison): Likewise.
10119 (tree_ssa_forward_propagate_single_use_vars): Make
10120 forward_propagate_comparison case similar to the two others.
10122 2011-02-08 Nick Clifton <nickc@redhat.com>
10124 * config/mn10300/mn10300.opt (mliw): New command line option.
10125 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10126 (liw_bundling): New automaton.
10127 (liw): New attribute.
10128 (liw_op): New attribute.
10129 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10130 (movsi_internal): Add LIW attributes.
10131 (andsi3): Likewise.
10132 (iorsi3): Likewise.
10133 (xorsi3): Likewise.
10134 (addsi3): Separate register and immediate alternatives.
10135 Add LIW attributes.
10136 (subsi3): Likewise.
10138 (aslsi3): Likewise.
10139 (lshrsi3): Likewise.
10140 (ashrsi3): Likewise.
10141 (liw): New pattern.
10142 * config/mn10300/mn10300.c (liw_op_names): New
10143 (mn10300_print_operand): Handle 'W' operand descriptor.
10144 (extract_bundle): New function.
10145 (check_liw_constraints): New function.
10146 (liw_candidate): New function.
10147 (mn10300_bundle_liw): New function.
10148 (mn10300_reorg): New function.
10149 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10150 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10151 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10152 __LIW__ or __NO_LIW__.
10153 * doc/invoke.texi: Describe the -mliw command line option.
10155 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10157 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10158 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10159 pthread_mutex_unlock): Remove.
10160 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10161 * config/pa/t-pa64: Likewise.
10162 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10163 shared libc if not linking against libpthread.
10164 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10166 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10169 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10170 on 10.6 and later to ensure that we always use the unwinder from
10171 the system. Only add -no_compact_unwind when tarteting darwin
10174 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10177 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10178 (vec_interleave_lowv2sf): Ditto.
10179 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10180 (vec_extract_oddv2sf): Ditto.
10182 2011-02-07 Mike Stump <mikestump@comcast.net>
10185 Add __ieee_divdc3 entry point.
10186 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10188 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10189 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10190 * config/darwin.c (darwin_rename_builtins): Add.
10191 * config/darwin-protos.h (darwin_rename_builtins): Add.
10193 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10196 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10199 2011-02-07 Mike Stump <mikestump@comcast.net>
10201 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10203 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10206 * config/avr/libgcc.S (exit): Move .endfunc
10208 2011-02-07 Richard Guenther <rguenther@suse.de>
10210 PR tree-optimization/47615
10211 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10212 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10213 (run_scc_vn): Initialize it.
10214 (visit_reference_op_load): Use it.
10215 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10217 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10219 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10220 DImode trapping arithmetic libfuncs.
10222 2011-02-07 Richard Guenther <rguenther@suse.de>
10224 PR tree-optimization/47621
10225 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10227 (execute_update_addresses_taken): ... here. Make it more
10228 conservative in what we accept.
10230 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10232 * config/sparc/freebsd.h (ASM_SPEC): Define.
10233 * config/sparc/vxworks.h (ASM_SPEC): Define.
10235 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10237 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10239 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10241 * doc/invoke.texi: Remove reference to compiler internals from
10242 user documentation.
10244 * reg-notes.def: Remove REG_VALUE_PROFILE.
10245 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10247 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10249 PR middle-end/47610
10250 * varasm.c (default_section_type_flags): If decl is NULL,
10251 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10253 2011-02-05 Jie Zhang <jie@codesourcery.com>
10256 * web.c (entry_register): Don't clobber the number of the
10257 first uninitialized reference in used[].
10259 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10261 PR tree-optimization/46194
10262 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10263 (build_classic_dist_vector_1): Do not represent classic distance
10264 vectors when the access functions are variating in different loops.
10266 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10268 * config/mips/iris6.opt: New.
10269 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10271 2011-02-04 Richard Henderson <rth@redhat.com>
10272 Steve Ellcey <sje@cup.hp.com>
10275 * config/ia64/predicates.md (mux1_brcst_element): New.
10276 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10277 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10278 (ia64_unpack_sign): New.
10279 (ia64_expand_unpack): Rewrite using new routines.
10280 (ia64_expand_widen_sum): Ditto.
10281 (ia64_expand_dot_prod_v8qi): Ditto.
10282 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10283 routines, add endian check.
10284 (pmpy2_even): Rename from pmpy2_r, add endian check.
10285 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10286 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10287 (vec_widen_smult_hi_v4hi): Ditto.
10288 (vec_widen_umult_lo_v4hi): Ditto.
10289 (vec_widen_umult_hi_v4hi): Ditto.
10290 (mulv2si3): Change endian checks.
10291 (sdot_prodv4hi): Rewrite with new calls.
10292 (udot_prodv4hi): New.
10293 (vec_pack_ssat_v4hi): Add endian check.
10294 (vec_pack_usat_v4hi): Ditto.
10295 (vec_pack_ssat_v2si): Ditto.
10296 (max1_even): Rename from max1_r, add endian check.
10297 (max1_odd): Rename from max1_l, add endian check.
10298 (*mux1_rev): Format change.
10299 (*mux1_mix): Ditto.
10300 (*mux1_shuf): Ditto.
10301 (*mux1_alt): Ditto.
10302 (*mux1_brcst_v8qi): Use new predicate.
10303 (vec_extract_evenv8qi): Remove endian check.
10304 (vec_extract_oddv8qi): Ditto.
10305 (vec_interleave_lowv4hi): Format change.
10306 (vec_interleave_highv4hi): Ditto.
10307 (mix2_even): Rename from mix2_r, add endian check.
10308 (mix2_odd): Rename from mux2_l, add endian check.
10309 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10310 (vec_extract_evenodd_helper): Format change.
10311 (vec_extract_evenv4hi): Remove endian check.
10312 (vec_extract_oddv4hi): Remove endian check.
10313 (vec_interleave_lowv2si): Format change.
10314 (vec_interleave_highv2si): Format change.
10315 (vec_initv2si): Remove endian check.
10316 (vecinit_v2si): Add endian check.
10317 (reduc_splus_v2sf): Add endian check.
10318 (reduc_smax_v2sf): Ditto.
10319 (reduc_smin_v2sf): Ditto.
10320 (vec_initv2sf): Remove endian check.
10321 (fpack): Add endian check.
10322 (fswap): Add endian check.
10323 (vec_interleave_highv2sf): Add endian check.
10324 (vec_interleave_lowv2sf): Add endian check.
10325 (fmix_lr): Add endian check.
10326 (vec_setv2sf): Format change.
10327 (*vec_extractv2sf_0_be): Use shift to extract operand.
10328 (*vec_extractv2sf_1_be): New.
10329 (vec_pack_trunc_v4hi): Add endian check.
10330 (vec_pack_trunc_v2si): Format change.
10332 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10334 PR inline-asm/23200
10335 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10336 do bb, locus and block comparison and disallow loads if it is not set.
10337 (stmt_is_replaceable_p): New function.
10338 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10340 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10341 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10343 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10345 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10347 * config/rs6000/xilinx.opt: New.
10348 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10350 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10352 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10354 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10356 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10357 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10358 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10359 secondary_reload_info, xtensa_secondary_reload): Remove.
10360 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10361 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10362 (xtensa_preferred_reload_class): Make static. Change return and
10363 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10364 Use CONST_DOUBLE_P predicate.
10365 (xtensa_preferred_output_reload_class): New function.
10366 (xtensa_secondary_reload): Make static.
10368 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10370 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10371 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10372 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10374 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10376 PR middle-end/31490
10377 * output.h (SECTION_RELRO): Define.
10378 (SECTION_MACH_DEP): Adjust.
10379 (get_variable_section): New prototype.
10380 * varpool.c (varpool_finalize_named_section_flags): New function.
10381 (varpool_assemble_pending_decls): Call it.
10382 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10383 * cgraphunit.c (cgraph_output_in_order): Call
10384 varpool_finalize_named_section_flags.
10385 * varasm.c (get_section): Allow section flags conflicts between
10386 relro and read-only sections if the section hasn't been declared yet.
10387 Set SECTION_OVERRIDE after diagnosing section type conflict.
10388 (get_variable_section): No longer static.
10389 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10390 readonly sections that need relocations.
10391 (decl_readonly_section_1): New function.
10392 (decl_readonly_section): Use it.
10395 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10396 Steve Ellcey <sje@cup.hp.com>
10398 PR middle-end/31490
10399 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10400 if section attribute used.
10402 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10404 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10405 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10406 (darwin_init_sections): Remove assertion.
10408 2011-02-03 Nick Clifton <nickc@redhat.com>
10410 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10412 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10413 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10414 instead of "n" and "pz".
10415 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10418 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10421 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10422 fma, expand FMA_EXPR as fma{,f,l} call.
10425 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10426 copy them into a unsigned char variable and pass address of it to
10427 lto_output_data_stream.
10430 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10431 around backend_init_target and lang_dependent_init_target calls.
10432 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10433 (verify_cgraph_node): Don't call set_cfun here. Use
10434 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10435 Set error_found for incorrectly represented calls to thunks.
10437 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10440 PR rtl-optimization/43494
10441 * rtl.h (for_each_inc_dec_fn): New type.
10442 (for_each_inc_dec): Declare.
10443 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10444 (for_each_inc_dec_find_inc_dec): New fn.
10445 (for_each_inc_dec_find_mem): New fn.
10446 (for_each_inc_dec): New fn.
10447 * dse.c (struct insn_size): Remove.
10448 (replace_inc_dec, replace_inc_dec_mem): Remove.
10449 (emit_inc_dec_insn_before): New fn.
10450 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10451 (canon_address): Pass mem modes to cselib_lookup.
10452 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10453 (cselib_lookup_from_insn): Likewise.
10454 (cselib_subst_to_values): Likewise.
10455 * cselib.c (find_slot_memmode): New var.
10456 (cselib_find_slot): New fn. Use it instead of
10457 htab_find_slot_with_hash everywhere.
10458 (entry_and_rtx_equal_p): Use find_slot_memmode.
10459 (autoinc_split): New fn.
10460 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10461 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10462 Deal with autoinc. Special-case recursion into MEMs.
10463 (cselib_hash_rtx): Likewise.
10464 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10465 address and MEM modes.
10466 (cselib_subst_to_values): Add memmode, pass it on.
10468 (cselib_lookup): Add memmode argument, pass it on.
10469 (cselib_lookup_from_insn): Add memmode.
10470 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10471 (struct cselib_record_autoinc_data): New.
10472 (cselib_record_autoinc_cb): New fn.
10473 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10474 mode to cselib_lookup. Reset autoinced REGs here instead of...
10475 (cselib_process_insn): ... here.
10476 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10478 (add_uses): Likewise, also to cselib_subst_to_values.
10479 (add_stores): Likewise.
10480 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10481 cselib_subst_to_values.
10482 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10483 * gcse.c (do_local_cprop): Adjusted.
10484 * postreload.c (reload_cse_simplify_set): Adjusted.
10485 (reload_cse_simplify_operands): Adjusted.
10486 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10488 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10490 PR tree-optimization/45122
10491 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10492 unsafe assumptions when there's more than one loop exit.
10494 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10497 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10498 Document using vector double with the load/store builtins, and
10499 that the load/store builtins always use Altivec instructions.
10501 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10502 to use altivec memory instructions, even on VSX.
10503 (vector_altivec_store_<mode>): Ditto.
10505 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10508 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10509 V2DF, V2DI support to load/store overloaded builtins.
10511 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10512 altivec load/store builtins for V2DF/V2DI types.
10514 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10515 set avoid indexed addresses on power6 if -maltivec.
10516 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10517 vector_altivec_load/vector_altivec_store builtins.
10518 (altivec_expand_st_builtin): Ditto.
10519 (altivec_expand_builtin): Add VSX memory builtins.
10520 (rs6000_init_builtins): Add V2DI types to internal types.
10521 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10522 load/store builtins.
10523 (rs6000_address_for_altivec): Insure memory address is appropriate
10526 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10527 vec_vsx_ld and vec_vsx_st.
10528 (vsx_store_<mode>): Ditto.
10530 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10531 variables to hold long long types for VSX vector memory builtins.
10532 (RS6000_BTI_unsigned_long_long): Ditto.
10533 (long_long_integer_type_internal_node): Ditti.
10534 (long_long_unsigned_type_internal_node): Ditti.
10536 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10537 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10538 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10540 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10542 (vec_vsx_st): Ditto.
10544 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10546 * config/pa/pa-hpux10.opt: New.
10547 * config/hpux11.opt (pthread): New Driver option.
10548 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10549 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10551 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10553 * config/ia64/vms.opt: New.
10554 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10556 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10559 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10560 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10561 generator functions.
10562 (vsx_floatuns<VSi><mode>2): Ditto.
10563 (vsx_fix_trunc<mode><VSi>2): Ditto.
10564 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10566 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10568 * config/i386/djgpp.opt (posix): New Driver option.
10570 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10572 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10573 Move to the unsupported targets list.
10575 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10577 PR rtl-optimization/47525
10578 * df-scan.c: Update copyright years.
10579 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10580 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10582 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10584 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10585 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10586 (ASM_OUTPUT_ASCII): Remove.
10587 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10589 2011-02-02 Jeff Law <law@redhat.com>
10591 PR middle-end/47543
10592 * reload.c (find_reloads_address): Handle reg+d address where both
10593 components are invalid by reloading the entire address.
10595 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10596 Richard Guenther <rguenther@suse.de>
10598 PR tree-optimization/40979
10600 * passes.c (init_optimization_passes): After LIM call copy_prop
10601 and DCE to clean up.
10602 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10604 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10606 PR tree-optimization/47576
10607 PR tree-optimization/47555
10608 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10609 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10610 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10611 * tree-scalar-evolution.c (follow_ssa_edge): Use
10612 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10614 2011-02-02 Richard Guenther <rguenther@suse.de>
10616 PR tree-optimization/47566
10617 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10619 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10623 * tree-inline.c (declare_return_variable): Remove unused caller
10628 * tree-flow-inline.h (clear_is_used, is_used_p): New.
10629 * cfgexpand.c (account_used_vars_for_block): Use them.
10630 * tree-nrv.c (tree_nrv): Likewise.
10631 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10632 (dump_scope_block): Likewise.
10633 (remove_unused_locals): Likewise.
10637 * tree-inline.c (declare_return_variable): Add result decl to
10638 local decls only once.
10639 * gimple-low.c (record_vars_into): Mark newly-created variables
10642 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10648 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10650 (no_real_insns_p, schedule_block, set_priorities): Drop special
10651 treatment of boundary debug insns.
10652 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10653 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10654 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10655 (BOUNDARY_DEBUG_INSN_P): Likewise.
10656 (SCHEDULE_DEBUG_INSN_P): Likewise.
10657 * sched-rgn.c (init_ready_list): Drop special treatment of
10658 boundary debug insns.
10659 * final.c (rest_of_clean_state): Clear notes' BB.
10661 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10663 * config/openbsd.opt (assert=): New Driver option.
10665 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10667 * config/i386/nto.opt: New.
10668 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10670 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10672 * config/i386/netware.opt: New.
10673 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10675 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10677 * config/interix.opt (posix): New Driver option.
10679 2011-02-01 DJ Delorie <dj@redhat.com>
10681 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10683 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10686 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10688 PR tree-optimization/47561
10689 * toplev.c (process_options): Print the Graphite flags. Add
10690 flag_loop_flatten to the list of options requiring Graphite.
10692 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10694 * config/i386/cygming.opt (posix): New Driver option.
10696 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10698 * config/arm/vxworks.opt: New.
10699 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10701 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10703 * config/alpha/elf.opt: New.
10704 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10705 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10707 2011-02-01 Richard Guenther <rguenther@suse.de>
10709 PR tree-optimization/47559
10710 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10711 store-motion on references that can throw.
10713 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
10715 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10716 * tree-pass.h (TDF_CSELIB): New macro.
10717 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10718 cselib_lookup): Check for it rather than for TDF_DETAILS.
10720 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
10723 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10724 is HOST_BIT_BUCKET.
10726 * opts.c (finish_options): Don't add x_aux_base_name if it is
10729 2011-02-01 Richard Guenther <rguenther@suse.de>
10731 PR tree-optimization/47555
10733 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
10735 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10737 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
10740 * config/lm32/t-lm32: Add multilib for all CPU options.
10742 2011-02-01 Richard Guenther <rguenther@suse.de>
10744 PR tree-optimization/47541
10745 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10746 sure to have a field at offset zero.
10748 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10750 * config/arc/arc.opt (EB, EL): New Driver options.
10752 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10754 * config/alpha/osf5.opt: New.
10755 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10757 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10759 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10761 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
10763 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10764 -floop-interchange.
10765 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10766 is an alias of -floop-interchange and that it requires the
10767 Graphite infrastructure.
10768 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10769 flag_loop_interchange based on the value of flag_tree_loop_linear.
10771 2011-01-31 Jakub Jelinek <jakub@redhat.com>
10772 Richard Guenther <rguenther@suse.de>
10774 PR tree-optimization/47538
10775 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
10776 type instead of r1type, except for comparisons. For right
10777 shifts and comparisons punt if there are mismatches in
10778 sizetype vs. non-sizetype types.
10780 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10782 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10785 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10787 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
10789 * configure: Regenerate.
10791 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10793 * configure.ac (gcc_cv_ld_static_option): Define.
10794 (gcc_cv_ld_dynamic_option): Define.
10795 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
10797 (HAVE_LD_STATIC_DYNAMIC): Update message.
10798 (LD_STATIC_OPTION): Define.
10799 (LD_DYNAMIC_OPTION): Define.
10800 * configure: Regenerate.
10801 * config.in: Regenerate.
10802 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
10803 HAVE_LD_STATIC_DYNAMIC]: Use them.
10805 2011-01-31 Nick Clifton <nickc@redhat.com>
10807 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
10808 registers inside interrupt handlers if the handler is not a leaf
10811 2011-01-31 Nick Clifton <nickc@redhat.com>
10813 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
10814 reg_renumber returning an INVALID_REGNUM.
10816 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10819 * doc/install.texi: Document host options discarded when cross
10820 configuring target libraries.
10822 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10825 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10828 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10830 (no_real_insns_p, schedule_block, set_priorities): Drop special
10831 treatment of boundary debug insns.
10832 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10833 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10834 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10835 (BOUNDARY_DEBUG_INSN_P): Likewise.
10836 (SCHEDULE_DEBUG_INSN_P): Likewise.
10837 * sched-rgn.c (init_ready_list): Drop special treatment of
10838 boundary debug insns.
10839 * final.c (rest_of_clean-state): Clear notes' BB.
10841 2011-01-31 Alan Modra <amodra@gmail.com>
10843 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
10844 toc relative expressions as we do in print_operand_address.
10846 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
10848 * doc/extend.texi: Follow spelling conventions.
10849 * doc/invoke.texi: Fix a typo.
10851 2011-01-30 Joseph Myers <joseph@codesourcery.com>
10853 * config/hpux11.opt: New.
10854 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
10855 ia64*-*-hpux*): Use hpux11.opt.
10857 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
10859 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
10862 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10864 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
10867 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10869 * doc/install.texi (Binaries): Remove outdated reference for
10870 Motorola 68HC11/68HC12 downloads.
10872 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10874 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
10877 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
10880 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
10883 2011-01-28 Ahmad Sharif <asharif@google.com>
10885 * value-prof.c (check_counter): Corrected error message.
10887 2011-01-29 Jie Zhang <jie@codesourcery.com>
10889 * config/arm/arm.c (arm_legitimize_reload_address): New.
10890 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10891 arm_legitimize_reload_address.
10892 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
10894 2011-01-28 Ian Lance Taylor <iant@google.com>
10896 * godump.c (go_define): Ignore macros whose definitions include
10897 two adjacent operands.
10899 2011-01-28 Jakub Jelinek <jakub@redhat.com>
10902 * varasm.c (force_const_mem): Store copy of x in desc->constant
10903 instead of x itself.
10904 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
10905 itself into REG_EQUAL note.
10907 2011-01-28 Joseph Myers <joseph@codesourcery.com>
10909 * config/freebsd.opt (posix, rdynamic): New Driver options.
10911 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10913 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
10914 -Bstatic/-Bdynamic.
10915 * configure: Regenerate.
10917 2011-01-27 Joseph Myers <joseph@codesourcery.com>
10919 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
10920 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
10922 2011-01-27 Anatoly Sokolov <aesok@post.ru>
10924 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
10925 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
10926 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10927 (s390_preferred_reload_class): Make static. Change return and
10928 'rclass' argument type to reg_class_t.
10930 2011-01-27 Jan Hubicka <jh@suse.cz>
10932 PR middle-end/46949
10933 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
10934 (process_function_and_variable_attributes): Check defined weakrefs.
10936 2011-01-27 Martin Jambor <mjambor@suse.cz>
10938 PR tree-optimization/47228
10939 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
10940 build_ref_for_offset.
10942 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10944 * config/spu/spu-elf.h (ASM_SPEC): Remove.
10946 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
10948 PR rtl-optimization/46856
10949 * postreload.c (reload_combine_recognize_const_pattern): Do not
10950 separate cc0 setter and user on cc0 targets.
10952 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
10955 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
10956 passed a VOID_TYPE expression, immediately emit an error and
10957 return error_mark_node.
10959 2011-01-26 Jeff Law <law@redhat.com>
10961 PR rtl-optimization/47464
10962 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
10963 rather than may_trap_p as needed.
10965 2011-01-26 DJ Delorie <dj@redhat.com>
10967 PR rtl-optimization/46878
10968 * combine.c (insn_a_feeds_b): Check for the implicit cc0
10969 setter/user dependency as well.
10971 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
10973 PR rtl-optimization/44469
10974 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
10975 after removing trivially dead basic blocks.
10977 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10979 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
10980 * config/frv/frv.h (LINK_SPEC): Likewise.
10981 * config/i386/netware.h (LINK_SPEC): Likewise.
10982 * config/m68k/linux.h (ASM_SPEC): Likewise.
10983 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
10984 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10985 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10986 * config/sparc/linux.h (ASM_SPEC): Likewise.
10987 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10988 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10990 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10992 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
10993 * config/frv/frv.h (ASM_SPEC): Likewise.
10994 * config/m68k/linux.h (ASM_SPEC): Likewise.
10995 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10996 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
10997 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10998 * config/sparc/linux.h (ASM_SPEC): Likewise.
10999 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11000 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11002 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11004 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11005 * config/frv/frv.h (LINK_SPEC): Likewise.
11006 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11008 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11010 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11011 * config/frv/frv.h (ASM_SPEC): Likewise.
11012 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11013 * config/m68k/linux.h (ASM_SPEC): Likewise.
11014 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11015 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11016 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11017 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11018 * config/sparc/linux.h (ASM_SPEC): Likewise.
11019 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11020 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11021 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11023 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11026 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11028 (vec_extract_evenodd_help): Ditto.
11029 (vec_extract_evenv4hi): Ditto.
11030 (vec_extract_oddv4hi): Ditto.
11031 (vec_interleave_lowv2si): Ditto.
11032 (vec_interleave_highv2si): Ditto.
11033 (vec_extract_evenv2si): Ditto.
11034 (vec_extract_oddv2si: Ditto.
11035 (vec_pack_trunc_v2si): Ditto.
11037 2011-01-22 Jan Hubicka <jh@suse.cz>
11040 * cgraph.h (cgraph_local_info): New field can_change_signature.
11041 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11042 signature can change.
11043 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11045 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11046 (cgraph_function_versioning): We can not change signature of functions
11047 that don't allow that.
11048 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11049 (lto_input_node): Likewise.
11050 * ipa-inline.c (compute_inline_parameters): Compute
11051 local.can_change_signature.
11052 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11053 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11054 functions that can not change signature.
11055 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11056 init_cumulative_args): Do not use local calling conventions
11057 for functions that can not change signature.
11059 2011-01-22 Jan Hubicka <jh@suse.cz>
11061 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11063 2011-01-26 Richard Guenther <rguenther@suse.de>
11065 PR tree-optimization/47190
11066 * cgraphunit.c (process_common_attributes): New function.
11067 (process_function_and_variable_attributes): Use it.
11069 2011-01-26 Richard Guenther <rguenther@suse.de>
11072 * cgraphbuild.c (record_eh_tables): Record reference to personality
11075 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11078 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11079 non-debug insns from moving up.
11081 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11084 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11085 t-dlldir{,-x} fragment for build and add it to tmake_file.
11086 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11087 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11088 * config/i386/t-dlldir: New file.
11089 (SHLIB_DLLDIR): Define.
11090 * config/i386/t-dlldir-x: New file.
11091 (SHLIB_DLLDIR): Define.
11092 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11093 (SHLIB_INSTALL): Use it.
11095 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11098 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11099 lower bound of the allowed Thumb-2 coprocessor load/store
11100 index range to -256. Add explaining comment.
11102 2011-01-25 Ian Lance Taylor <iant@google.com>
11104 * godump.c (go_define): Improve lexing of macro expansion to only
11105 accept expressions which match Go spec.
11107 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11110 * tree.c (handle_dll_attribute): Handle it.
11111 * doc/extend.texi (@item dllexport): Mention it.
11112 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11114 2011-01-25 Ian Lance Taylor <iant@google.com>
11116 PR tree-optimization/26854
11117 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11118 (decl_jump_unsafe): Move higher in file, with no other change.
11119 (bind): Set has_jump_unsafe_decl if appropriate.
11120 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11121 (check_earlier_gotos): Likewise.
11122 (c_check_switch_jump_warnings): Likewise.
11124 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11126 * doc/invoke.texi (Warning Options): Add missing hyphen.
11127 (-fprofile-dir): Minor grammatical fixes.
11128 (-fbranch-probabilities): Likewise.
11130 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11134 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11136 (no_real_insns_p, schedule_block, set_priorities): Drop special
11137 treatment of boundary debug insns.
11138 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11139 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11140 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11141 (BOUNDARY_DEBUG_INSN_P): Likewise.
11142 (SCHEDULE_DEBUG_INSN_P): Likewise.
11143 * sched-rgn.c (init_ready_list): Drop special treatment of
11144 boundary debug insns.
11145 * final.c (rest_of_clean-state): Clear notes' BB.
11147 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11149 * Makefile.in (LAMBDA_H): Removed.
11150 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11151 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11152 lambda-trans.o, and tree-loop-linear.o.
11153 (lto-symtab.o): Remove dependence on LAMBDA_H.
11154 (tree-loop-linear.o): Remove rule.
11155 (lambda-mat.o): Same.
11156 (lambda-trans.o): Same.
11157 (lambda-code.o): Same.
11158 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11159 (tree-vect-slp.o): Same.
11160 * hwint.h (gcd): Moved here.
11161 (least_common_multiple): Same.
11162 * lambda-code.c: Removed.
11163 * lambda-mat.c: Removed.
11164 * lambda-trans.c: Removed.
11165 * lambda.h: Removed.
11166 * tree-loop-linear.c: Removed.
11167 * lto-symtab.c: Do not include lambda.h.
11168 * omega.c (gcd): Removed.
11169 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11170 * tree-data-ref.c (print_lambda_vector): Moved here.
11171 (lambda_vector_copy): Same.
11172 (lambda_matrix_copy): Same.
11173 (lambda_matrix_id): Same.
11174 (lambda_vector_first_nz): Same.
11175 (lambda_matrix_row_add): Same.
11176 (lambda_matrix_row_exchange): Same.
11177 (lambda_vector_mult_const): Same.
11178 (lambda_vector_negate): Same.
11179 (lambda_matrix_row_negate): Same.
11180 (lambda_vector_equal): Same.
11181 (lambda_matrix_right_hermite): Same.
11182 * tree-data-ref.h: Do not include lambda.h.
11183 (lambda_vector): Moved here.
11184 (lambda_matrix): Same.
11185 (dependence_level): Same.
11186 (lambda_transform_legal_p): Removed declaration.
11187 (lambda_collect_parameters): Same.
11188 (lambda_compute_access_matrices): Same.
11189 (lambda_vector_gcd): Same.
11190 (lambda_vector_new): Same.
11191 (lambda_vector_clear): Same.
11192 (lambda_vector_lexico_pos): Same.
11193 (lambda_vector_zerop): Same.
11194 (lambda_matrix_new): Same.
11195 * tree-flow.h (least_common_multiple): Removed declaration.
11196 * tree-parloops.c (lambda_trans_matrix): Moved here.
11197 (LTM_MATRIX): Same.
11198 (LTM_ROWSIZE): Same.
11199 (LTM_COLSIZE): Same.
11200 (LTM_DENOMINATOR): Same.
11201 (lambda_trans_matrix_new): Same.
11202 (lambda_matrix_vector_mult): Same.
11203 (lambda_transform_legal_p): Same.
11204 * tree-pass.h (pass_linear_transform): Removed declaration.
11205 * tree-ssa-loop.c (tree_linear_transform): Removed.
11206 (gate_tree_linear_transform): Removed.
11207 (pass_linear_transform): Removed.
11208 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11209 flag_loop_interchange.
11211 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11213 PR tree-optimization/47265
11214 PR tree-optimization/47443
11215 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11216 if name still has some uses.
11218 2011-01-25 Martin Jambor <mjambor@suse.cz>
11220 PR tree-optimization/47382
11221 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11222 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11224 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11226 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11227 sjlj_except_unwind_info.
11229 2011-01-25 Richard Guenther <rguenther@suse.de>
11231 PR tree-optimization/47426
11232 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11233 visible functions results escape.
11235 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11238 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11239 (arm_get_frame_offsets): Use it.
11241 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11242 Jakub Jelinek <jakub@redhat.com>
11244 PR tree-optimization/47271
11245 * tree-if-conv.c (bb_postdominates_preds): New.
11246 (if_convertible_bb_p): Call bb_postdominates_preds.
11247 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11248 (predicate_scalar_phi): Call bb_postdominates_preds.
11250 2011-01-25 Nick Clifton <nickc@redhat.com>
11252 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11253 * config/rx/rx.c (rx_function_value): Likewise.
11254 (rx_promote_function_mode): Likewise.
11255 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11256 in order to make it legitimate.
11257 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11258 make sure that the first operand is the same as the result register.
11259 (addsi3_unspec): Delete.
11260 (subdi3): Do not accept immediate operands.
11261 (subdi3_internal): Likewise.
11263 2011-01-25 Jeff Law <law@redhat.com>
11265 PR rtl-optimization/37273
11266 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11267 handle them like argument loads from stack slots. Do not double
11268 count memory for memory constants and argument loads from stack slots.
11270 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11272 PR tree-optimization/47427
11273 PR tree-optimization/47428
11274 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11275 coalesce if the new root var would be TREE_READONLY.
11277 2011-01-25 Richard Guenther <rguenther@suse.de>
11279 PR middle-end/47414
11280 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11281 correct type for TBAA.
11283 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11285 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11286 (close_phi_written_to_memory): Call for_each_index with
11287 dr_indices_valid_in_loop.
11289 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11291 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11292 when it is initialized.
11294 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11296 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11297 call to graphite_find_data_references_in_stmt.
11298 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11299 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11300 call to graphite_find_data_references_in_stmt.
11301 (analyze_drs_in_stmts): Same.
11302 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11303 in which the scalar analysis of indices is performed.
11304 (create_data_ref): Same. Update call to dr_analyze_indices.
11305 (find_data_references_in_stmt): Update call to create_data_ref.
11306 (graphite_find_data_references_in_stmt): Same.
11307 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11309 (create_data_ref): Same.
11310 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11311 call to create_data_ref.
11313 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11315 * graphite-sese-to-poly.c (build_poly_scop): Move
11316 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11318 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11320 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11321 VAR_DECL, PARM_DECL, and RESULT_DECL.
11323 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11325 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11326 in a reduction PBB.
11327 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11328 that have already been marked as PBB_IS_REDUCTION.
11330 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11332 * graphite-scop-detection.c (same_close_phi_node): New.
11333 (remove_duplicate_close_phi): New.
11334 (make_close_phi_nodes_unique): New.
11335 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11337 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11339 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11340 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11341 of both data references to be the same.
11343 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11345 * graphite-dependences.c (build_lexicographical_constraint): Remove
11346 the gdim parameter.
11347 (build_lexicographical_constraint): Adjust call to
11348 ppl_powerset_is_empty.
11349 (dependence_polyhedron): Same.
11350 (graphite_legal_transform_dr): Same.
11351 (graphite_carried_dependence_level_k): Same.
11352 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11354 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11356 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11358 * graphite-sese-to-poly.c
11359 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11360 (close_phi_written_to_memory): New.
11361 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11364 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11366 * doc/install.texi: Update the expected version number of PPL to 0.11.
11367 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11368 #if PPL_VERSION_MINOR < 11.
11370 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11372 * graphite-dependences.c: Include graphite-cloog-util.h.
11373 (new_poly_ddr): Inlined into dependence_polyhedron.
11374 (free_poly_ddr): Moved close by new_poly_ddr.
11375 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11376 Early return NULL when ppl_powerset_is_empty returns true.
11377 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11378 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11379 (graphite_legal_transform_dr): Call new_poly_ddr.
11380 (graphite_carried_dependence_level_k): Same.
11381 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11382 (dot_transformed_deps_stmt_1): Removed.
11383 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11384 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11385 (dot_deps_1): Call dot_deps_2.
11386 * Makefile.in (graphite-dependences.o): Add missing dependence on
11387 graphite-cloog-util.h.
11389 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11391 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11392 (build_lexicographical_constraint): Same.
11393 (dependence_polyhedron_1): Same.
11394 (graphite_legal_transform_dr): Same.
11395 (graphite_carried_dependence_level_k): Same.
11396 * graphite-ppl.c (ppl_powerset_is_empty): New.
11397 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11398 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11400 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11402 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11403 the "a followed by b" relation and document it.
11405 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11407 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11408 iteration when the bag of constraints is empty.
11410 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11412 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11414 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11416 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11417 nest and two loop depths as parameters.
11418 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11419 lst_perfect_nestify.
11421 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11423 * graphite-dependences.c (print_pddr): Call
11424 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11426 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11428 * graphite-ppl.c (debug_gmp_value): New.
11429 * graphite-ppl.h (debug_gmp_value): Declared.
11431 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11433 * doc/install.texi: Document availability of cloog-0.16.
11435 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11437 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11438 invalid postdominance info.
11440 2011-01-24 Jan Hubicka <jh@suse.cz>
11443 * doc/extend.texi (weak pragma): Drop claim that it must
11444 appear before definition.
11445 * varasm.c (merge_weak, declare_weak): Only sanity check
11446 that DECL is not output at a time it is declared weak.
11448 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11450 * machmode.def: Fixed comments.
11452 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11454 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11456 2011-01-24 Paul Koning <ni1d@arrl.net>
11458 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11461 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11464 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11465 (block_info): Add scanned and prev.
11466 (move_or_delete_vzeroupper_2): Return if the basic block
11467 has been scanned and the upper 128bit state is unchanged
11468 from the last scan.
11469 (move_or_delete_vzeroupper_1): Return true if the exit
11471 (move_or_delete_vzeroupper): Visit basic blocks using the
11472 work-list based algorithm based on vt_find_locations in
11475 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11477 2011-01-24 Nick Clifton <nickc@redhat.com>
11479 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11480 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11481 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11482 then define __v850e1__.
11483 * doc/invoke.texi: Document -mv850es.
11485 2011-01-24 Richard Henderson <rth@redhat.com>
11487 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11488 compound unordered comparisons.
11489 * config/rx/rx.c (rx_split_fp_compare): Remove.
11490 * config/rx/rx-protos.h: Update.
11491 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11492 (cbranchsf4): Don't call rx_split_fp_compare.
11493 (*cbranchsf4): Use rx_split_cbranch.
11494 (*cmpsf): Don't accept "i" constraint.
11495 (*conditional_branch): Only valid after reload.
11496 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11498 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11501 * config/rs6000/altivec.md (vector constant splitters): Add
11502 support for creating vector single precision constants if -mvsx is
11503 used and we would create the constant using Altivec primitives.
11505 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11506 Richard Sandiford <rdsandiford@googlemail.com>
11508 PR rtl-optimization/47166
11509 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11510 mechanism for PRE_MODIFY and POST_MODIFY.
11511 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11514 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11516 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11518 2011-01-22 Jan Hubicka <jh@suse.cz>
11521 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11523 2011-01-22 Jan Hubicka <jh@suse.cz>
11525 PR tree-optimization/43884
11527 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11528 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11530 2011-01-22 Anatoly Sokolov <aesok@post.ru>
11532 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11533 * config/s390/s390.c (s390_register_move_cost,
11534 s390_memory_move_cost): New.
11535 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11537 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11539 PR middle-end/47401
11540 * except.c (sjlj_assign_call_site_values): Move setting the
11541 crtl->uses_eh_lsda flag to ...
11542 (sjlj_mark_call_sites): ... here.
11543 (sjlj_emit_function_enter): Support NULL dispatch label.
11544 (sjlj_build_landing_pads): In a function with no landing pads
11545 that still has must-not-throw regions, generate code to register
11546 a personality function with empty LSDA.
11548 2011-01-21 Richard Henderson <rth@redhat.com>
11550 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11552 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11554 * compare-elim.c: New file.
11555 * Makefile.in (OBJS-common): Add it.
11556 (compare-elim.o): New.
11557 * common.opt (fcompare-elim): New.
11558 * opts.c (default_options_table): Add OPT_fcompare_elim.
11559 * tree-pass.h (pass_compare_elim_after_reload): New.
11560 * passes.c (init_optimization_passes): Add it.
11561 * recog.h: Protect against re-inclusion.
11562 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11563 * doc/invoke.texi (-fcompare-elim): Document it.
11564 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11565 * doc/tm.texi: Rebuild.
11567 2011-01-22 Nick Clifton <nickc@redhat.com>
11569 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11570 rx_split_fp_compare.
11572 2011-01-22 Nick Clifton <nickc@redhat.com>
11574 * config/rx/rx.md (UNSPEC_CONST): New.
11575 (deallocate_and_return): Wrap the amount popped off the stack in
11576 an UNSPEC_CONST in order to stop it being rejected by
11577 -mmax-constant-size.
11578 (pop_and_return): Add a "(return)" rtx.
11579 (call): Drop the immediate operand.
11580 (call_internal): Likewise.
11581 (call_value): Likewise.
11582 (call_value_internal): Likewise.
11583 (sibcall_internal): Likewise.
11584 (sibcall_value_internal): Likewise.
11585 (sibcall): Likewise. Generate an explicit call using
11587 (sibcall_value): Likewise.
11588 (mov<>): FAIL if a constant operand is not legitimate.
11589 (addsi3_unpsec): New pattern.
11591 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11592 (ok_for_max_constant): New function.
11593 (gen_safe_add): New function.
11594 (rx_expand_prologue): Use gen_safe_add.
11595 (rx_expand_epilogue): Likewise.
11596 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11599 2011-01-21 Jeff Law <law@redhat.com>
11601 PR tree-optimization/47053
11602 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11603 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11604 statements are deleted.
11605 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11606 is nonempty, then purge dead edges and cleanup the CFG.
11608 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11611 Temporarily revert:
11612 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11614 * tree-dfa.c (create_var_ann): Mark variable as used.
11616 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11618 PR middle-end/45566
11619 * except.c (convert_to_eh_region_ranges): Emit queued no-region
11620 notes from other section in hot/cold partitioning even if
11621 last_action is -3. Increment call_site_base.
11623 PR rtl-optimization/47366
11624 * fwprop.c (forward_propagate_into): Return bool. If
11625 any changes are made, -fnon-call-exceptions is used and
11626 REG_EH_REGION note is present, call purge_dead_edges
11627 and return true if it purged anything.
11628 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11629 any EH edges were purged.
11631 2011-01-21 Jeff Law <law@redhat.com>
11633 PR rtl-optimization/41619
11634 * caller-save.c (setup_save_areas): Break out code to determine
11635 which hard regs are live across calls by examining the reload chains
11636 so that it is always used.
11637 Eliminate code which checked REG_N_CALLS_CROSSED.
11639 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11641 PR tree-optimization/47355
11642 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11643 NOP has non-debug uses beyond PHIs in new_bb.
11645 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11648 * cfgexpand.c (account_used_vars_for_block): Only account vars
11649 that are annotated as used.
11650 (estimated_stack_frame_size): Don't set TREE_USED.
11651 * tree-dfa.c (create_var_ann): Mark variable as used.
11653 2011-01-21 Richard Guenther <rguenther@suse.de>
11655 PR middle-end/47395
11656 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11658 2011-01-21 Richard Guenther <rguenther@suse.de>
11660 PR tree-optimization/47365
11661 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11662 (vn_reference_lookup_pieces): Adjust.
11663 (vn_reference_lookup): Likewise.
11664 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11665 (vn_reference_lookup_3): Only look through kills if in
11666 VN_WALKREWRITE mode.
11667 (vn_reference_lookup_pieces): Adjust.
11668 (vn_reference_lookup): Likewise.
11669 (visit_reference_op_load): Likewise.
11670 (visit_reference_op_store): Likewise.
11671 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11672 (compute_avail): Likewise.
11673 (eliminate): Likewise.
11675 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11677 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11678 DECL_IGNORED_P non-reg vars if they are used.
11680 PR tree-optimization/47391
11681 * varpool.c (const_value_known_p): Return false if
11684 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
11687 * config/i386/i386.c (ix86_local_alignment): Handle
11688 case for va_list_type_node is nil.
11689 (ix86_canonical_va_list_type): Likewise.
11691 2011-01-21 Alan Modra <amodra@gmail.com>
11693 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11694 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11696 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11698 * config/arm/arm.md (define_attr type): Rename f_load
11699 and f_store to f_fpa_load and f_fpa_store. Update.
11700 (write_conflict): Deal with rename fallout.
11701 (*push_fp_multi): Likewise.
11702 * config/arm/fpa.md (f_load): Use f_fpa_load.
11703 (f_store): Use f_fpa_store.
11704 (*movsf_fpa): Likewise.
11705 (*movdf_fpa): Likewise.
11706 (*movxf_fpa): Likewise.
11707 (*thumb2_movsf_fpa): Likewise.
11708 (*thumb2_movdf_fpa): Likewise.
11709 (*thumb2_movxf_fpa): Likewise.
11710 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11711 f_loadd and f_stored.
11712 (*thumb2_movdi_vfp): Likewise.
11713 (*thumb2_movsf_vfp): Fix attribute to f_loads.
11714 (*thumb2_movsi_vfp): Likewise.
11715 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11716 Use f_loads instead of f_load.
11717 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11719 2011-01-20 Anatoly Sokolov <aesok@post.ru>
11721 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11722 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11723 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11724 (xtensa_mode_dependent_address_p): New function.
11725 (constantpool_address_p): Make static. Change return type to bool.
11726 Change argument type to const_rtx. Use CONST_INT_P predicate.
11728 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
11731 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11733 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11736 * cfgexpand.c (expand_debug_expr): Instead of generating
11737 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11740 2011-01-20 Richard Guenther <rguenther@suse.de>
11742 PR middle-end/47370
11743 * tree-inline.c (remap_gimple_op_r): Recurse manually for
11744 the pointer operand of MEM_REFs.
11746 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11748 PR tree-optimization/46130
11749 * ipa-split.c (consider_split): If return_bb contains non-virtual
11750 PHIs other than for retval or if split_function would not adjust it,
11753 2011-01-20 Richard Guenther <rguenther@suse.de>
11755 PR tree-optimization/47167
11756 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11757 Revert previous change, only avoid enumeral type changes.
11759 2011-01-19 Mike Stump <mikestump@comcast.net>
11761 * doc/tm.texi.in (BRANCH_COST): Englishify.
11762 * doc/tm.texi (BRANCH_COST): Likewise.
11764 2011-01-19 Dodji Seketeli <dodji@redhat.com>
11767 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
11768 (gen_scheduled_generic_parms_dies): New functions.
11769 (gen_struct_or_union_type_die): Schedule template parameters DIEs
11770 generation for the end of CU compilation.
11771 (dwarf2out_finish): Generate template parameters DIEs here.
11773 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11776 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
11777 debug bind stmt on merge edges.
11779 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11783 * function.c (instantiate_expr): Instantiate incoming rtl of
11784 implicit arguments, and recurse on VALUE_EXPRs.
11785 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
11786 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
11788 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11790 * c-parser.c (c_parser_for_statement): Initialize
11791 collection_expression.
11793 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11795 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
11797 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11799 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
11800 (LINK_SHLIB_SPEC): Don't use %(link_path).
11801 (SUBTARGET_EXTRA_SPECS): Remove link_path.
11803 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11805 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
11806 (NO_SHARED_LIB_SUPPORT): Remove.
11807 (LINK_SHLIB_SPEC): Remove one conditional definition.
11809 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11811 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
11813 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
11814 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
11815 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
11816 %{call_shared} and conditionals on these options not being passed.
11817 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
11820 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11822 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
11825 * ipa-split.c: Spelling fixes.
11827 2011-01-19 Richard Henderson <rth@redhat.com>
11829 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
11830 (*mulsi3): Likewise.
11832 * longlong.h [__mn10300__] (count_leading_zeros): New.
11833 [__mn10300__] (umul_ppmm, smul_ppmm): New.
11834 [__mn10300__] (add_ssaaaa, subddmmss): New.
11835 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
11836 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
11838 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11840 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
11842 2011-01-19 Richard Henderson <rth@redhat.com>
11844 * config/mn10300/mn10300.md (addsi3_flags): New.
11845 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
11846 (subsi3_flags, subc_internal, subdi3): New.
11847 (subdi3_internal, *subdi3_degenerate): New.
11848 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
11850 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
11851 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
11852 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
11853 * config/mn10300/mn10300-protos.h: Update.
11854 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
11855 (return_ret): Likewise. Rename from return_internal_regs.
11856 (return_internal): Remove.
11858 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
11859 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
11860 (mn10300_legitimate_constant_p): Likewise.
11861 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
11862 (mn10300_frame_size): New.
11863 (mn10300_expand_prologue): Use it.
11864 (mn10300_expand_epilogue): Likewise.
11865 (mn10300_initial_offset): Likewise.
11866 * config/mn10300/mn10300-protos.h: Update.
11867 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
11868 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
11869 (prologue, epilogue, return_internal): Tidy output code.
11870 (mn10300_store_multiple_operation, return): Likewise.
11871 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
11872 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
11873 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
11874 (load_pic, am33_load_pic): New.
11875 (mn10300_load_pic0, mn10300_load_pic1): New.
11877 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
11878 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
11879 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
11880 (cc_flags_for_mode, cc_flags_for_code): New.
11881 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
11882 overflow flag is not valid. Validate that the flags we need
11883 for the comparison are valid.
11884 (mn10300_output_cmp): Remove.
11885 (mn10300_output_add): New.
11886 (mn10300_select_cc_mode): Use cc_flags_for_code.
11887 (mn10300_split_cbranch): New.
11888 (mn10300_match_ccmode): New.
11889 (mn10300_split_and_operand_count): New.
11890 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
11892 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
11893 (addsi3): ... here. Use mn10300_output_add.
11894 (*addsi3_flags): New.
11895 (*am33_subsi3, *mn10300_subsi3): Merge...
11896 (subsi3): ... here. Use attribute isa.
11897 (*subsi3_flags): New.
11898 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
11900 (*am33_andsi3, *mn10300_andsi3): Merge...
11901 (andsi3): ... here.
11902 (*andsi3_flags): New.
11903 (andsi3 splitters): New.
11904 (*am33_iorsi3, *mn10300_iorsi3): Merge...
11905 (iorsi3): ... here.
11906 (*iorsi3_flags): New.
11907 (*am33_xorsi3, *mn10300_xorsi3): Merge...
11908 (xorsi3): ... here.
11909 (*xorsi3_flags): New.
11910 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
11911 (one_cmplsi2): ... here.
11912 (*one_cmplsi2_flags): New.
11913 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
11914 instead of "dax" in constraints. Use mn10300_split_cbranch.
11915 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
11916 use matching constraints to eliminate a self-comparison.
11917 (*integer_conditional_branch): Rename from integer_conditional_branch.
11918 Use int_mode_flags to match CC_REG.
11919 (*cbranchsi4_btst, *btstsi): New.
11920 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
11921 mn10300_split_cbranch.
11922 (*am33_cmpsf): Rename from am33_cmpsf.
11923 (*float_conditional_branch): Rename from float_conditional_branch.
11924 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
11925 (zero_extendqisi2): ... here.
11926 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
11927 (zero_extendhisi2): ... here.
11928 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
11929 (extendqisi2): ... here.
11930 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
11931 (extendhisi2): ... here.
11932 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
11933 (ashlsi3): ... here.
11934 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
11935 (lshrsi3): ... here.
11936 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
11937 (ashrsi3): ... here.
11938 (consecutive add peephole): Remove.
11939 * config/mn10300/predicates.md (label_ref_operand): New.
11940 (int_mode_flags): New.
11941 (CCZN_comparison_operator): New.
11943 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
11944 (throughput_42_latency_43): New reservation.
11945 (mulsidi3, umulsidi3): New expanders.
11946 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
11947 the MDR register to allocation; separately allocate the low and
11948 high parts of the DImode result.
11949 (umulsidi3_internal): Similarly.
11950 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
11951 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
11952 (udivsi3, umodsi3): Remove.
11953 (udivmodsi4, divmodsi4): New expanders.
11954 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
11955 (*divmodsi4): Simiarly.
11956 (ext_internal): New.
11958 * config/mn10300/constraints.md ("z"): New constraint.
11959 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
11960 (FIXED_REGISTERS): Don't fix MDR.
11961 (CALL_USED_REGSITERS): Reformat nicely.
11962 (REG_ALLOC_ORDER): Add MDR.
11963 (enum regclass): Add MDR_REGS.
11964 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
11965 (IRA_COVER_CLASSES): Add MDR_REGS.
11966 (REGNO_REG_CLASS): Handle MDR_REG.
11967 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
11968 (mn10300_register_move_cost): Likewise.
11969 * config/mn10300/mn10300.md (MDR_REG): New.
11970 (*movsi_internal): Handle moves to/from MDR_REGS.
11972 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
11974 (mn10300_secondary_reload): Tidy combination reload classes.
11975 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
11976 addresses for AM33. Allow symbolic offsets for reg+imm.
11977 (mn10300_regno_in_class_p): New.
11978 (mn10300_legitimize_reload_address): New.
11979 * config/mn10300/mn10300.h (enum reg_class): Remove
11980 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
11981 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
11982 SP_OR_GENERAL_REGS.
11983 (REG_CLASS_NAMES): Update to match.
11984 (REG_CLASS_CONTENTS): Likewise.
11985 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
11986 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
11987 (REGNO_IN_RANGE_P): Remove.
11988 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
11989 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
11990 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
11991 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
11992 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
11993 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
11994 (REGNO_GENERAL_P): New.
11995 (HAVE_POST_MODIFY_DISP): New.
11996 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
11997 (LEGITIMIZE_RELOAD_ADDRESS): New.
11998 * config/mn10300/mn10300-protos.h: Update.
12000 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12001 DATA_REGS for AM33 stack-pointer destination.
12002 (mn10300_preferred_output_reload_class): Likewise.
12003 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12004 into a form appropriate for ...
12005 (TARGET_SECONDARY_RELOAD): New.
12006 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12007 * config/mn10300/mn10300-protos.h: Update.
12008 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12009 reload_insi; use the "A" constraint for the scratch; handle AM33
12010 moves of sp to non-address registers.
12012 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12013 (*movqi_internal): ... here.
12014 (*am33_movhi, *mn10300_movhi): Merge into...
12015 (*movhi_internal): ... here.
12016 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12017 as the source/destination of moves from/to SP.
12018 (movsf): Only allow for AM33-2.
12019 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12020 any integer constant constraint. Only allow for AM33-2. Tidy
12021 all of the alternative outputs.
12022 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12023 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12025 (udivsi3, umodsi3): New patterns for MN103 only.
12027 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12029 * doc/tm.texi.in: Spell out that a lack of register class unions
12031 * doc/tm.texi: Regenerate.
12033 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12035 PR rtl-optimization/47337
12036 * dce.c (check_argument_store): New function.
12037 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12039 PR tree-optimization/47290
12040 * tree-eh.c (infinite_empty_loop_p): New function.
12041 (cleanup_empty_eh): Use it.
12043 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12046 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12047 (a64_expand_widen_sum): Ditto.
12048 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12049 (vec_extract_evenodd_help): Ditto.
12050 (vec_extract_evenv4hi): Ditto.
12051 (vec_extract_oddv4hi): Ditto.
12052 (vec_extract_evenv2si): Ditto.
12053 (vec_extract_oddv2si): Ditto.
12054 (vec_extract_evenv2sf): Ditto.
12055 (vec_extract_oddv2sf): Ditto.
12056 (vec_pack_trunc_v4hi: Ditto.
12057 (vec_pack_trunc_v2si): Ditto.
12058 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12059 (vec_interleave_highv8qi): Ditto.
12061 (vec_extract_oddv8qi): Ditto.
12062 (vec_interleave_lowv4hi): Ditto.
12063 (vec_interleave_highv4hi): Ditto.
12064 (vec_interleave_lowv2si): Ditto.
12065 (vec_interleave_highv2si): Ditto.
12067 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12069 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12070 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12071 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12072 (pa_c_mode_for_suffix): New.
12073 (TARGET_EXPAND_BUILTIN): Define.
12074 (TARGET_C_MODE_FOR_SUFFIX): Define.
12075 (pa_builtins): Define.
12076 (pa_init_builtins): Register __float128 type and init new support
12078 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12079 * config/pa/quadlib.c (_U_Qfcopysign): New.
12081 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12083 PR middle-end/46894
12084 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12085 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12088 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12090 PR tree-optimization/47179
12091 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12092 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12094 2011-01-18 Richard Guenther <rguenther@suse.de>
12096 PR rtl-optimization/47216
12097 * emit-rtl.c: Include tree-flow.h.
12098 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12099 of replicating it with different semantics.
12100 * Makefile.in (emit-rtl.o): Adjust.
12102 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12104 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12105 (cortex_a9_dp): Handle neon types correctly.
12107 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12109 PR rtl-optimization/47299
12110 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12111 subtarget. Use normal multiplication if both operands are constants.
12112 * expmed.c (expand_widening_mult): Don't try to optimize constant
12113 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12116 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12118 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12119 spacing after 'e.g.', typos, comma, hyphenation.
12121 2011-01-17 Richard Henderson <rth@redhat.com>
12123 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12124 (rx_restricted_mem_operand): New.
12125 (rx_shift_operand): Use register_operand.
12126 (rx_source_operand, rx_compare_operand): Likewise.
12127 * config/rx/rx.md (addsi3_flags): New expander.
12128 (adddi3): Rewrite as expander.
12129 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12130 (subsi3_flags): New expander.
12131 (subdi3): Rewrite as expander.
12132 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12134 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12135 (rx_init_builtins): Remove sat builtin.
12136 (rx_expand_builtin): Likewise.
12137 * config/rx/rx.md (ssaddsi3): New.
12138 (*sat): Rename from sat. Represent the CC_REG input.
12140 * config/rx/predicates.md (rshift_operator): New.
12141 * config/rx/rx.c (rx_expand_insv): Remove.
12142 * config/rx/rx-protos.h: Update.
12143 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12144 operand to the canonical position.
12145 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12146 (*bitclr, *bitclr_in_memory): Similarly.
12147 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12148 (insv): Retain the zero_extract in the expansion.
12150 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12151 (bswaphi2, bitinvert, revw): Likewise.
12153 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12154 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12155 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12156 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12157 (bitset, bitset_in_memory): Likewise.
12158 (bitinvert, bitinvert_in_memory): Likewise.
12159 (bitclr, bitclr_in_memory): Likewise.
12160 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12161 (rx_strend, rx_cmpstrn): Likewise.
12162 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12163 (bitop peep2 patterns): Remove.
12165 * config/rx/rx.c (rx_match_ccmode): New.
12166 * config/rx/rx-protos.h: Update.
12167 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12168 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12169 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12170 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12171 (fix_truncsfsi2, floatsisf2): Likewise.
12172 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12173 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12174 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12175 (*subsi3_flags, *xorsi3_flags): New.
12177 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12179 * config/rx/rx.c (rx_print_operand): Remove workaround for
12180 unsplit comparison operations.
12182 * config/rx/rx.md (movsicc): Split after reload.
12183 (*movsicc): Merge *movsieq and *movsine via match_operator.
12184 (*stcc): New pattern.
12186 * config/rx/rx.c (rx_float_compare_mode): Remove.
12187 * config/rx/rx.h (rx_float_compare_mode): Remove.
12188 * config/rx/rx.md (cstoresi4): Split after reload.
12189 (*sccc): New pattern.
12191 * config/rx/predicates.md (label_ref_operand): New.
12192 (rx_z_comparison_operator): New.
12193 (rx_zs_comparison_operator): New.
12194 (rx_fp_comparison_operator): New.
12195 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12196 Validate that the flags are set properly for the comparison.
12197 (rx_gen_cond_branch_template): Remove.
12198 (rx_cc_modes_compatible): Remove.
12199 (mode_from_flags): New.
12200 (flags_from_code): Rename from flags_needed_for_conditional.
12201 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12202 (rx_select_cc_mode): Likewise.
12203 (rx_split_fp_compare): New.
12204 (rx_split_cbranch): New.
12205 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12206 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12207 (*cbranchsf4): Similarly.
12208 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12209 match_operator and rx_split_cbranch.
12210 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12211 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12212 (*cmpsi): Rename from cmpsi.
12213 (*tstsi): Rename from tstsi.
12214 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12215 (*conditional_branch): Rename from conditional_branch.
12216 (*reveresed_conditional_branch): Remove.
12217 (b<code>): Remove expander.
12218 * config/rx/rx-protos.h: Update.
12220 * config/rx/rx.c (rx_compare_redundant): Remove.
12221 * config/rx/rx.md (cmpsi): Don't use it.
12222 * config/rx/rx-protos.h: Update.
12224 * config/rx/rx-modes.def (CC_F): New mode.
12225 * config/rx/rx.c (rx_select_cc_mode): New.
12226 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12227 * config/rx/rx-protos.h: Update.
12229 2011-01-17 Richard Henderson <rth@redhat.com>
12231 * except.c (dump_eh_tree): Fix stray ; after for statement.
12233 2011-01-17 Richard Guenther <rguenther@suse.de>
12235 PR tree-optimization/47313
12236 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12237 handling before copying the body. Properly deal with
12238 by-reference result in SSA form.
12240 2011-01-17 Ian Lance Taylor <iant@google.com>
12243 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12244 (struct_value_alias_set): Don't define.
12245 (sparc_option_override): Don't set sparc_sr_alias_set and
12246 struct_value_alias_set.
12247 (save_or_restore_regs): Use gen_frame_mem rather than calling
12249 (sparc_struct_value_rtx): Likewise.
12251 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12254 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12255 (_mm_maskstore_pd): Likewise.
12256 (_mm_maskload_ps): Likewise.
12257 (_mm_maskstore_ps): Likewise.
12258 (_mm256_maskload_pd): Change mask to __m256i.
12259 (_mm256_maskstore_pd): Likewise.
12260 (_mm256_maskload_ps): Likewise.
12261 (_mm256_maskstore_ps): Likewise.
12263 * config/i386/i386-builtin-types.def: Updated.
12264 (ix86_expand_special_args_builtin): Likewise.
12266 * config/i386/i386.c (bdesc_special_args): Update
12267 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12268 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12269 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12270 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12272 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12273 Use <avxpermvecmode> on mask register.
12274 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12276 2011-01-17 Olivier Hainque <hainque@adacore.com>
12277 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12278 Eric Botcazou <ebotcazou@adacore.com>
12281 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12282 if <= USHRT_MAX in 32-bit mode.
12284 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12286 * doc/install.texi (Configuration, Specific): Wrap long
12287 lines in examples. Allow line wrapping in long options
12288 and URLs where beneficial for PDF output.
12290 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12292 * config/mips/mips.c (mips_classify_symbol): Don't return
12293 SYMBOL_PC_RELATIVE for nonlocal labels.
12295 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12297 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12299 2011-01-15 Jan Hubicka <jh@suse.cz>
12301 PR tree-optimization/47276
12302 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12303 declarations as needed.
12305 2011-01-15 Martin Jambor <mjambor@suse.cz>
12307 * common.opt (fdevirtualize): New flag.
12308 * doc/invoke.texi (Option Summary): Document it.
12309 * opts.c (default_options_table): Add devirtualize flag.
12310 * ipa-prop.c (detect_type_change): Return immediately if
12311 devirtualize flag is not set.
12312 (detect_type_change_ssa): Likewise.
12313 (compute_known_type_jump_func): Likewise.
12314 (ipa_analyze_virtual_call_uses): Likewise.
12316 2011-01-14 Martin Jambor <mjambor@suse.cz>
12318 PR tree-optimization/45934
12319 PR tree-optimization/46302
12320 * ipa-prop.c (type_change_info): New type.
12321 (stmt_may_be_vtbl_ptr_store): New function.
12322 (check_stmt_for_type_change): Likewise.
12323 (detect_type_change): Likewise.
12324 (detect_type_change_ssa): Likewise.
12325 (compute_complex_assign_jump_func): Check for dynamic type change.
12326 (compute_complex_ancestor_jump_func): Likewise.
12327 (compute_known_type_jump_func): Likewise.
12328 (compute_scalar_jump_functions): Likewise.
12329 (ipa_analyze_virtual_call_uses): Likewise.
12330 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12332 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12334 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12335 * config/i386/i386.opt (msse5): New Alias.
12337 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12339 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12340 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12341 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12342 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12344 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12346 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12348 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12349 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12350 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12351 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12353 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12355 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12357 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12359 2011-01-14 Mike Stump <mikestump@comcast.net>
12361 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12362 * config/fr30/fr30.md: Likweise
12363 (movsi_push): Likewise.
12364 (movsi_pop): Likewise.
12365 (enter_func): Likewise.
12366 * config/moxie/moxie.md (movsi_push): Likewise.
12367 (movsi_pop): Likewise.
12369 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12371 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12372 %{no_archive} %{exact_version}.
12373 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12374 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12375 %{no_archive} %{exact_version}.
12376 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12377 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12378 * config/mips/vxworks.h: Likewise.
12380 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12382 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12384 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12386 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12387 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12389 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12391 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12394 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12396 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12398 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12399 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12401 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12402 Don't handle -shlib.
12404 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12406 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12407 (CC1_SPEC): Don't handle -profile.
12409 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12411 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12412 * config/mips/mips.h (CC1_SPEC): Likewise.
12414 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12416 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12417 * config/mips/mips.h (CC1_SPEC): Likewise.
12419 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12421 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12422 * config/m32r/linux.h (LINK_SPEC): Likewise.
12423 * config/mips/linux.h (LINK_SPEC): Likewise.
12424 * config/mips/linux64.h (LINK_SPEC): Likewise.
12425 * config/sparc/linux.h (LINK_SPEC): Likewise.
12426 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12427 LINK_SPEC): Likewise.
12428 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12430 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12432 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12434 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12436 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12438 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12439 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12441 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12443 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12445 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12447 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12448 supports -Bstatic/-Bdynamic.
12449 * configure: Regenerate.
12451 2011-01-14 Jan Hubicka <jh@suse.cz>
12452 Jack Howarth <howarth@bromo.med.uc.edu>
12455 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12456 when checking debug_info_level. Test write_symbols instead of
12457 debug_hooks->var_location when setting flag_var_tracking_uninit.
12459 2011-01-14 Richard Guenther <rguenther@suse.de>
12461 PR tree-optimization/47179
12462 * target.def (ref_may_alias_errno): New target hook.
12463 * targhooks.h (default_ref_may_alias_errno): Declare.
12464 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12465 (default_ref_may_alias_errno): New function.
12466 * target.h (struct ao_ref_s): Declare.
12467 * tree-ssa-alias.c: Include target.h.
12468 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12469 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12470 (targhooks.o): Likewise.
12471 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12472 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12474 2011-01-14 Richard Guenther <rguenther@suse.de>
12476 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12478 2011-01-14 Richard Guenther <rguenther@suse.de>
12480 PR tree-optimization/47280
12481 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12482 return CFG changes.
12483 (tree_ssa_forward_propagate_single_use_vars): Deal with
12484 CFG changes from associate_plusminus.
12486 2011-01-14 Richard Guenther <rguenther@suse.de>
12488 PR middle-end/47281
12490 2011-01-11 Richard Guenther <rguenther@suse.de>
12492 PR tree-optimization/46076
12493 * tree-ssa.c (useless_type_conversion_p): Conversions from
12494 unprototyped to empty argument list function types are useless.
12496 2011-01-14 Richard Guenther <rguenther@suse.de>
12498 PR tree-optimization/47286
12499 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12501 2011-01-14 Martin Jambor <mjambor@suse.cz>
12503 PR middle-end/46823
12504 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12506 2011-01-13 Anatoly Sokolov <aesok@post.ru>
12508 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12509 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12510 * config/xtensa/xtensa.c (xtensa_libcall_value,
12511 xtensa_function_value_regno_p): New functions.
12512 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12514 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
12517 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12519 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12520 New function prototype.
12521 * config/i386/winnt.c (i386_pe_assemble_visibility):
12522 Warn only if attribute was specified by user.
12524 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12527 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12529 (floatunsdidf2_fcfidu): Ditto.
12531 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12533 * config/s390/s390.c (print_operand_address): Replace 'error' with
12534 'output_operand_lossage'.
12535 (print_operand): Likewise.
12537 2011-01-13 Jeff Law <law@redhat.com>
12539 PR rtl-optimization/39077
12540 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12541 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12542 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12543 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12544 * gcse.c (prune_insertions_deletions): New function.
12545 (compute_pre_data): Use it.
12547 2011-01-13 Dodji Seketeli <dodji@redhat.com>
12550 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12552 (prune_unused_types_mark): Use it.
12554 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
12556 PR rtl-optimization/45352
12557 * sel-sched.c: Update copyright years.
12558 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12559 in the advancing loop when we have issued issue_rate insns.
12561 2011-01-12 Richard Henderson <rth@redhat.com>
12563 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12564 (TARGET_MD_ASM_CLOBBERS): New.
12566 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12567 (TARGET_DELEGITIMIZE_ADDRESS): New.
12569 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12570 (clzsi2, *bsch): New patterns.
12572 * config/mn10300/mn10300.md (INT): New mode iterator.
12573 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12575 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12576 flag_split_wide_types.
12578 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12579 (mn10300_trampoline_init): Rewrite without a template, an immediate
12580 load and a direct branch.
12581 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12583 2011-01-12 Anatoly Sokolov <aesok@post.ru>
12585 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12586 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12587 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12588 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12590 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
12593 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12596 2011-01-12 Jan Hubicka <jh@suse.cz>
12599 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12600 (PLUGIN_COND_CLOSE): New macro.
12601 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12603 2011-01-12 Richard Guenther <rguenther@suse.de>
12606 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12607 register variables in a MEM_REF.
12609 2011-01-12 Joseph Myers <joseph@codesourcery.com>
12611 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12612 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12613 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12614 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12615 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12616 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12617 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12618 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12619 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12620 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12621 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12622 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12623 * config/gnu-user.h: New. Copied from linux.h.
12624 (LINUX_TARGET_STARTFILE_SPEC): Rename to
12625 GNU_USER_TARGET_STARTFILE_SPEC.
12626 (LINUX_TARGET_ENDFILE_SPEC): Rename to
12627 GNU_USER_TARGET_ENDFILE_SPEC.
12628 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12629 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12630 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12631 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12632 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12633 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12634 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12635 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12636 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12637 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12638 * config/arm/linux-eabi.h (CC1_SPEC): Use
12639 GNU_USER_TARGET_CC1_SPEC.
12640 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12641 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12642 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12643 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12644 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12645 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12646 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12647 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12649 2011-01-12 Richard Guenther <rguenther@suse.de>
12652 * doc/invoke.texi (ffast-math): Document it is turned on
12655 2011-01-12 Jan Hubicka <jh@suse.cz>
12657 PR tree-optimization/47233
12658 * opts.c (common_handle_option): Disable ipa-reference with profile
12661 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12663 * c-parser.c (c_parser_objc_at_property_declaration): Improved
12666 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12668 * c-parser.c (c_lex_one_token): Updated and reindented some
12669 comments. No changes in code.
12671 2011-01-11 Ian Lance Taylor <iant@google.com>
12673 * godump.c (go_output_var): Don't output the variable if there is
12674 already a type with the same name.
12676 2011-01-11 Ian Lance Taylor <iant@google.com>
12678 * godump.c (go_format_type): Don't generate float80.
12680 2011-01-11 Richard Henderson <rth@redhat.com>
12682 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12683 declaration. Rewrite for both speed and size.
12684 (mn10300_address_cost_1): Remove.
12685 (mn10300_register_move_cost): New.
12686 (mn10300_memory_move_cost): New.
12687 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12688 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12689 extensions, shifts, BSWAP, CLZ.
12690 (mn10300_wide_const_load_uses_clr): Remove.
12691 (TARGET_REGISTER_MOVE_COST): New.
12692 (TARGET_MEMORY_MOVE_COST): New.
12693 * config/mn10300/mn10300-protos.h: Update.
12694 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12696 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12697 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12698 * config/mn10300/mn10300-protos.h: Update.
12699 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12700 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12701 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12702 (*test_int_bitfield, *test_byte_bitfield): Remove.
12703 (*bit_test, *subreg_bit_test): Remove.
12704 * config/mn10300/predicates.md (const_8bit_operand): Remove.
12706 * config/mn10300/constraints.md ("c"): Rename from "A".
12707 ("A", "D"): New constraint letters.
12708 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12709 (fmssf4, fnmasf4, fnmssf4): Likewise.
12711 * config/mn10300/mn10300.md (isa): New attribute.
12712 (enabled): New attribute.
12714 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12715 (abssf2, negsf2): Define only for hardware fp.
12716 (sqrtsf2): Reformat.
12717 (addsf3, subsf3, mulsf3): Merge expander and insn.
12719 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12720 (DEBUGGER_AUTO_OFFSET): Remove.
12721 (DEBUGGER_ARG_OFFSET): Remove.
12723 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12724 Emit register stores with the same offsets as the hardware.
12725 (mn10300_store_multiple_operation): Don't check that the register
12726 save offsets are monotonic.
12727 * config/mn10300/mn10300-protos.h: Update.
12729 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12731 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12732 in terms of the value on the stack, not the MDR register.
12734 2011-01-11 Jan Hubicka <jh@suse.cz>
12738 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12739 (symbol_alias_set_destroy, symbol_alias_set_contains,
12740 propagate_aliases_backward): Declare.
12741 * lto-streamer-out.c (struct sets): New sturcture.
12742 (trivally_defined_alias): New function.
12743 (output_alias_pair_p): Rewrite.
12744 (output_unreferenced_globals): Fix output of alias pairs.
12745 (produce_symtab): Likewise.
12746 * ipa.c (function_and_variable_visibility): Set weak alias destination
12748 * varasm.c (symbol_alias_set_t): Remove.
12749 (symbol_alias_set_destroy): Export.
12750 (propagate_aliases_forward, propagate_aliases_backward): New functions
12752 (compute_visible_aliases): ... this one; remove.
12753 (trivially_visible_alias): New
12754 (trivially_defined_alias): New.
12755 (remove_unreachable_alias_pairs): Rewrite.
12756 (finish_aliases_1): Reorganize code checking if alias is defined.
12757 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12760 2011-01-11 Richard Guenther <rguenther@suse.de>
12762 PR tree-optimization/46076
12763 * tree-ssa.c (useless_type_conversion_p): Conversions from
12764 unprototyped to empty argument list function types are useless.
12766 2011-01-11 Richard Guenther <rguenther@suse.de>
12768 PR middle-end/45235
12769 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12770 volatile MEMs as MEM_READONLY_P.
12772 2011-01-11 Richard Guenther <rguenther@suse.de>
12774 PR tree-optimization/47239
12775 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
12777 2011-01-11 Jeff Law <law@redhat.com>
12779 PR tree-optimization/47086
12780 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
12781 IVs from statements that might throw.
12783 2011-01-10 Jan Hubicka <jh@suse.cz>
12786 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
12788 2011-01-10 Jan Hubicka <jh@suse.cz>
12791 * profile.c (read_profile_edge_counts): Ignore profile inconistency
12792 when correcting profile.
12794 2011-01-10 Jan Hubicka <jh@suse.cz>
12797 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
12798 DECL_FINI_PRIORITY.
12799 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
12800 Restore DECL_FINI_PRIORITY.
12802 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12804 * doc/gimple.texi: Fix quoting of multi-word return values in
12805 @deftypefn statements. Ensure presence of return value. Wrap
12806 overlong @deftypefn lines.
12807 (is_gimple_operand, is_gimple_min_invariant_address): Remove
12808 descriptions of removed functions.
12809 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
12810 of multi-word return value in @deftypefn statement.
12812 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12814 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
12815 (Conditional Expressions, Logical Operators)
12816 (Statement and operand traversals): Do not indent smallexample
12817 code. Fix duplicate function argument in example.
12819 2011-01-10 Jeff Law <law@redhat.com>
12821 PR tree-optimization/47141
12822 * ipa-split.c (split_function): Handle case where we are
12823 returning a value and the return block has a virtual operand phi.
12825 2011-01-10 Jan Hubicka <jh@suse.cz>
12827 PR tree-optimization/47234
12828 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
12829 (pass_feedback_split_functions): Declare.
12830 * passes.c (init_optimization_passes): Add ipa-split as subpass of
12832 * ipa-split.c (gate_split_functions): Update comments; disable
12833 split-functions for profile_arc_flag and branch_probabilities.
12834 (gate_feedback_split_functions): New function.
12835 (execute_feedback_split_functions): New function.
12836 (pass_feedback_split_functions): New global var.
12838 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
12841 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
12842 calling gimple_call_set_cannot_inline.
12844 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
12846 * config/darwin-sections.def: Remove unused section.
12848 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
12851 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
12853 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
12856 * c-parser.c (c_parser_declaration_or_fndef): Improved
12859 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
12861 * config/i386/winnt.c (i386_pe_start_function): Make sure
12862 to switch back to function's section.
12864 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
12868 * plugin.c: Move include of dlfcn.h from here...
12869 * system.h: ... to here.
12871 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12873 * doc/cpp.texi (C++ Named Operators): Fix markup for header
12875 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
12876 two extra empty pages in PDF output.
12878 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
12881 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
12882 for error recovery purposes behave as if it was not specified so
12883 that the default type is usd.
12885 2011-01-07 Jan Hubicka <jh@suse.cz>
12887 PR tree-optmization/46469
12888 * ipa.c (function_and_variable_visibility): Clear needed flags on
12889 nodes with external decls; handle weakrefs merging correctly.
12891 2011-01-07 Joseph Myers <joseph@codesourcery.com>
12893 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
12896 2011-01-07 Jan Hubicka <jh@suse.cz>
12898 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
12899 and no longer claim that gold is required for linker plugin.
12900 * configure: Regenerate.
12901 * gcc.c (PLUGIN_COND): New macro.
12902 (LINK_COMMAND_SPEC): Use it.
12903 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
12904 * config.in (HAVE_LTO_PLUGIN): New.
12905 * configure.ac (--with-lto-plugin): New parameter; autodetect
12908 2011-01-07 Jan Hubicka <jh@suse.cz>
12910 PR tree-optimization/46367
12911 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
12912 when we can update original.
12913 (cgraph_mark_inline_edge): Sanity check.
12914 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
12916 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12918 * config/spu/spu.h (ASM_COMMENT_START): Define.
12920 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
12923 * gcc.c (%>S): New.
12924 (SWITCH_KEEP_FOR_GCC): Likewise.
12925 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
12926 (do_spec_1): Handle "%>".
12928 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
12930 2011-01-07 Jakub Jelinek <jakub@redhat.com>
12933 * config/i386/i386.c (ix86_delegitimize_address): If
12934 simplify_gen_subreg fails, return orig_x.
12937 * value-prof.c (gimple_stringop_fixed_value): Handle
12938 lhs of the call properly.
12940 2011-01-07 Jan Hubicka <jh@suse.cz>
12943 * lto-opt.c (lto_reissue_options): Set flag_shlib.
12945 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12947 * target.def (function_switched_text_sections): New hook.
12948 * doc/tm.texi: Regenerated.
12949 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12950 * final.c (default_function_switched_text_sections): New.
12951 (final_scan_insn): Call function_switched_text_sections when a
12952 mid-function section change occurs.
12953 * output.h (default_function_switched_text_sections): Declare.
12954 * config/darwin-protos.h (darwin_function_switched_text_sections):
12956 * config/darwin.c (darwin_function_switched_text_sections): New.
12957 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12959 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12961 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
12962 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
12963 the secondary code fragment when outputting for DWARF == 2.
12965 2011-01-07 Anatoly Sokolov <aesok@post.ru>
12967 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12968 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
12970 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
12971 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12973 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
12976 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
12977 when it is not empty.
12979 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
12982 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
12983 (case ${target}): Add btver1.
12984 * config/i386/driver-i386.c (host_detect_local_cpu): Let
12985 -march=native recognize btver1 processors.
12986 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12987 btver1 def_and_undef
12988 * config/i386/i386.c (struct processor_costs btver1_cost): New
12990 (m_BTVER1): New definition.
12991 (m_AMD_MULTIPLE): Includes m_BTVER1.
12992 (initial_ix86_tune_features): Add btver1 tune.
12993 (processor_target_table): Add btver1 entry.
12994 (static const char *const cpu_names): Add btver1 entry.
12995 (software_prefetching_beneficial_p): Add btver1.
12996 (ix86_option_override_internal): Add btver1 instruction sets.
12997 (ix86_issue_rate): Add btver1.
12998 (ix86_adjust_cost): Add btver1.
12999 * config/i386/i386.h (TARGET_BTVER1): New definition.
13000 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13001 (enum processor_type): Add PROCESSOR_BTVER1.
13002 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13004 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13007 * config/i386/i386.c (legitimize_tls_address)
13008 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13009 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13010 (tls_initial_exec_64_sun): New pattern.
13012 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13014 * doc/invoke.texi (Overall Options): Improve wording and markup
13015 of the description of -wrapper.
13017 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13019 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13020 rdynamic, threads): New Driver options.
13022 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13025 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13026 if coming from .tdata.
13027 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13029 2011-01-06 Jan Hubicka <jh@suse.cz>
13032 * collect2.c (main): Do not enable LTOmode when plugin is active.
13034 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13037 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13038 --version output if supported.
13039 * configure: Regenerate.
13041 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13043 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13046 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13049 * c-convert.c (convert): When converting a complex expression
13050 other than COMPLEX_EXPR to a different complex type, ensure
13051 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13052 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13053 when converting COMPLEX_TYPE.
13055 2011-01-06 Ira Rosen <irar@il.ibm.com>
13057 PR tree-optimization/47139
13058 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13059 only the last reduction value is used outside the loop. Update
13062 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13064 * config/rtems.opt: New.
13065 * config.gcc (*-*-rtems*): Use rtems.opt.
13067 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13069 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13070 processors do not support 3DNow instructions.
13072 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13074 * config/spu/spu.c (spu_option_override): Set parameter
13075 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13077 2011-01-05 Jan Hubicka <jh@suse.cz>
13079 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13080 at the command line.
13082 2011-01-05 Martin Jambor <mjambor@suse.cz>
13085 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13086 deltas on streamed outgoing edges.
13087 (output_node_opt_summary): Output info for outgoing edges only when
13088 the node is in new parameter set.
13089 (output_cgraph_opt_summary): New parameter set, passed to the two
13090 aforementioned functions. Update its forward declaration and its
13093 2011-01-05 Tom Tromey <tromey@redhat.com>
13095 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13096 operator to c_finish_omp_atomic.
13097 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13098 (build_unary_op): Update.
13099 (build_modify_expr): Update.
13100 (build_asm_expr): Update.
13102 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13104 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13105 newly inserted insns.
13106 (pad_bb): Likewise.
13107 (spu_emit_branch_hint): Likewise.
13108 (insert_hbrp_for_ilb_runout): Likewise.
13109 (spu_machine_dependent_reorg): Call df_finish_pass after
13110 schedule_insns returns.
13112 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13114 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13116 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13118 PR tree-optimization/47005
13119 * tree-sra.c (struct access): Add 'non_addressable' bit.
13120 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13121 (decide_one_param_reduction): Return 0 if the parameter is passed by
13122 reference and one of the accesses in the group is non_addressable.
13124 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13126 PR tree-optimization/47056
13127 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13128 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13129 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13131 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13133 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13134 initializer. Skip view conversions from aggregate types.
13136 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13139 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13141 2011-01-04 Philipp Thomas <pth@suse.de>
13143 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13146 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13148 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13149 on empty epilogue sequences.
13151 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13153 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13154 non-static): New Driver options.
13156 2011-01-04 Jie Zhang <jie@codesourcery.com>
13159 * gcc.c (default_compilers[]): Set combinable field to 0
13160 for all assembly languages.
13162 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13164 * config/mips/loongson3a.md: New file.
13165 * config/mips/mips.md: Include loongson3a.md.
13166 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13169 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13171 PR middle-end/47017
13172 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13173 instead of convert_memory_address_addr_space on the base expression.
13175 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13177 * config/spu/spu.c (spu_option_override): Update error text
13178 for bad -march= / -mtune= values.
13180 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13182 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13183 if branch-hint optimization will be performed.
13185 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13187 PR tree-optimization/47148
13188 * ipa-split.c (split_function): Convert arguments to
13189 DECL_ARG_TYPE if possible.
13191 PR tree-optimization/47155
13192 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13193 when computing uns.
13195 PR rtl-optimization/47157
13196 * combine.c (try_combine): If undobuf.other_insn becomes
13197 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13198 and set *new_direct_jump_p too.
13200 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13202 PR tree-optimization/47021
13203 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13205 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13207 * gcc.c (process_command): Update copyright notice dates.
13208 * gcov.c (print_version): Likewise.
13209 * gcov-dump.c (print_version): Likewise.
13210 * mips-tfile.c (main): Likewise.
13211 * mips-tdump.c (main): Likewise.
13213 2011-01-03 Martin Jambor <mjambor@suse.cz>
13215 PR tree-optimization/46801
13216 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13217 aggregate fields start at byte boundary instead of the bit-field flag.
13219 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13222 * gcc.c (main): Revert revision 168407.
13224 2011-01-03 Martin Jambor <mjambor@suse.cz>
13226 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13228 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13230 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13231 vector optab to expand vector/scalar shift, update gimple to vector.
13233 2011-01-03 Martin Jambor <mjambor@suse.cz>
13235 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13238 2011-01-03 Martin Jambor <mjambor@suse.cz>
13240 PR tree-optimization/46984
13241 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13243 (cgraph_create_indirect_edge): Fixed line length.
13244 (cgraph_indirect_call_info): Declare.
13245 (cgraph_make_edge_direct) Update declaration.
13246 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13247 (cgraph_create_indirect_edge): Use it.
13248 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13250 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13251 the new thunk_delta representation.
13252 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13254 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13255 (ipa_read_indirect_edge_info): Likewise.
13256 * lto-cgraph.c (output_edge_opt_summary): New function.
13257 (output_node_opt_summary): Call it on all outgoing edges.
13258 (input_edge_opt_summary): New function.
13259 (input_node_opt_summary): Call it on all outgoing edges.
13261 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13264 * gcc.c (main): Don't check have_o when settting combine_inputs.
13266 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13268 * regrename.c: Add general comment describing the pass.
13269 (struct du_head): Remove 'length' field.
13270 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13271 (regrename_optimize): Do not sort chains. Rework comments, add others.
13272 Force renaming to the preferred class (if any) in the first pass and do
13273 not consider registers that belong to it in the second pass.
13274 (create_new_chain): Do not set 'length' field.
13275 (scan_rtx_reg): Likewise.
13277 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13279 PR tree-optimization/47140
13280 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13281 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13282 to bit_value_binop.
13284 PR rtl-optimization/47028
13285 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13286 parm_birth_insn instead of at the beginning of first bb.
13288 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13290 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13291 Remove the word "see" before "@pxref".
13292 * doc/rtl.texi: Remove the word "see" before "@pxref".
13294 2011-01-01 Jan Hubicka <jh@suse.cz>
13296 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13299 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13302 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13305 Copyright (C) 2011 Free Software Foundation, Inc.
13307 Copying and distribution of this file, with or without modification,
13308 are permitted in any medium without royalty provided the copyright
13309 notice and this notice are preserved.