1 2011-04-20 Jim Meyering <meyering@redhat.com>
3 Remove useless if-before-free tests.
4 * calls.c (expand_call, save_area): Likewise.
5 * cfgcleanup.c (try_forward_edges): Likewise.
6 * collect2.c (collect_execute): Likewise.
7 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9 * coverage.c (coverage_checksum_string): Likewise.
10 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11 * cselib.c (cselib_init): Likewise.
12 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
13 (df_set_clean_cfg): Likewise.
14 * function.c (free_after_compilation): Likewise.
15 * gcc.c (do_spec_1, main): Likewise.
16 * gcov.c (create_file_names): Likewise.
17 * gensupport.c (identify_predicable_attribute): Likewise.
18 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
19 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
21 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
22 * ipa-pure-const.c (local_pure_const): Likewise.
23 * ipa-reference.c (propagate): Likewise.
24 * ira-costs.c (free_ira_costs): Likewise.
25 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
26 * matrix-reorg.c (mat_free): Likewise.
27 * prefix.c (get_key_value): Likewise.
28 * profile.c (compute_value_histograms): Likewise.
29 * reload1.c (free_reg_equiv): Likewise.
30 * sched-deps.c (free_deps): Likewise.
31 * sel-sched-ir.c (fence_clear): Likewise.
32 * sese.c (set_rename, if_region_set_false_region): Likewise.
33 * tree-data-ref.c (free_rdg): Likewise.
34 * tree-eh.c (lower_try_finally): Likewise.
35 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
36 * tree-ssa-live.c (delete_var_map): Likewise.
37 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
38 * tree-ssa-pre.c (phi_trans_add): Likewise.
40 2011-04-20 Jakub Jelinek <jakub@redhat.com>
42 PR tree-optimization/48611
43 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
44 beyond ERT_MUST_NOT_THROW region.
46 2011-04-20 Catherine Moore <clm@codesourcery.com>
48 * config/mips/mips.opt (mfix-24k): New.
49 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
50 * config/mips/mips.md (length): Increase by 4 for stores if
52 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
53 all noreorder if fixing 24K errata.
54 * doc/invoke.texi: Document mfix-24k.
56 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
58 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
59 quad-word modes, reduce to 9-bit index range when above 1016
62 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
64 * config/arm/arm.c (arm_gen_constant): Move movw support ....
65 (const_ok_for_op): ... to here.
67 2011-04-20 Kai Tietz <ktietz@redhat.com>
69 * fold-const.c (fold_binary_loc): Add handling for
70 (X & ~Y) | (~X & Y) and (X && !Y) | (!X && Y) optimization
73 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
75 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
77 2011-04-20 Richard Guenther <rguenther@suse.de>
79 PR tree-optimization/47892
80 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
83 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
85 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
87 2011-04-20 Tristan Gingold <gingold@adacore.com>
89 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
91 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
95 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
96 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
97 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
98 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
99 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
101 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
104 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
105 (avr_asm_named_section, avr_asm_output_aligned_common,
106 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
107 New functions to update...
108 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
109 (avr_asm_init_sections): Overwrite section callbacks for
110 data_section, bss_section.
111 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
113 (avr_file_end): ...here.
115 2011-04-20 Richard Guenther <rguenther@suse.de>
118 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
119 objects and types here. Adjust for their offset before
122 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
124 * tree-vect-stmts.c (vectorizable_store): Only chain one related
127 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
129 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
130 (GIMPLE_H): Include $(INTERNAL_FN_H).
131 (OBJS-common): Add internal-fn.o.
132 (internal-fn.o): New rule.
133 * internal-fn.def: New file.
134 * internal-fn.h: Likewise.
135 * internal-fn.c: Likewise.
136 * gimple.h: Include internal-fn.h.
137 (GF_CALL_INTERNAL): New gf_mask.
138 (gimple_statement_call): Put fntype into a union with a new
140 (gimple_build_call_internal): Declare.
141 (gimple_build_call_internal_vec): Likewise.
142 (gimple_call_same_target_p): Likewise.
143 (gimple_call_internal_p): New function.
144 (gimple_call_internal_fn): Likewise.
145 (gimple_call_fntype): Return null for internal calls.
146 (gimple_call_set_fntype): Assert that the function is not internal.
147 (gimple_call_set_fn): Likewise.
148 (gimple_call_set_fndecl): Likewise.
149 (gimple_call_set_internal_fn): New function.
150 (gimple_call_addr_fndecl): Handle null functions.
151 (gimple_call_return_type): Likewise null types.
152 * gimple.c (gimple_build_call_internal_1): New function.
153 (gimple_build_call_internal): Likewise.
154 (gimple_build_call_internal_vec): Likewise.
155 (gimple_call_same_target_p): Likewise.
156 (gimple_call_flags): Handle calls to internal functions.
157 (gimple_call_fnspec): New function.
158 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
159 (gimple_has_side_effects): Handle null functions.
160 (gimple_rhs_has_side_effects): Likewise.
161 (gimple_call_copy_skip_args): Handle calls to internal functions.
162 * cfgexpand.c (expand_call_stmt): Likewise.
163 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
164 * gimple-fold.c (gimple_fold_call): Handle null functions.
165 (gimple_fold_stmt_to_constant_1): Don't fold
166 calls to internal functions.
167 * gimple-low.c (gimple_check_call_args): Handle calls to internal
169 * gimple-pretty-print.c (dump_gimple_call): Likewise.
170 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
171 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
172 (do_warn_unused_result): Likewise.
173 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
174 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
175 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
176 the target of a call.
177 (initialize_hash_element): Update accordingly.
178 (hashable_expr_equal_p): Use gimple_call_same_target_p.
179 (iterative_hash_hashable_expr): Handle calls to internal functions.
180 (print_expr_hash_elt): Likewise.
181 * tree-ssa-pre.c (can_value_number_call): Likewise.
182 (eliminate): Handle null functions.
183 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
184 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
185 (find_func_aliases): Likewise.
186 * value-prof.c (gimple_ic_transform): Likewise.
187 (gimple_indirect_call_to_profile): Likewise.
188 * lto-streamer-in.c (input_gimple_stmt): Likewise.
189 * lto-streamer-out.c (output_gimple_stmt): Likewise.
191 2011-04-19 Jan Hubicka <jh@suse.cz>
193 * ipa-inline-transform.c (save_inline_function_body): Add comments.
194 * ipa-inline.c (inline_small_functions): Compute summaries first,
197 2011-04-19 Jan Hubicka <jh@suse.cz>
199 * cgraph.h (save_inline_function_body): Remove.
200 * ipa-inline-transform.c: New file, broke out of...
201 * ipa-inline.c: ... this one; Update toplevel comment.
202 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
204 (update_noncloned_frequencies): Move to ipa-inline-transform.c
205 (cgraph_mark_inline_edge): Rename to inline_call; move to
206 ipa-inline-transform.c.
207 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
208 move to ipa-inline-transform.c
209 (recursive_inlining, inline_small_functions, flatten_function,
210 ipa_inline, inline_always_inline_functions,
211 early_inline_small_functions): Update.
212 (inline_transform): Move to ipa-inline-transform.c.
213 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
215 * Makefile.in (ipa-inline-transform.o): New file.
216 * cgraphunit.c (save_inline_function_body): Move to
217 ipa-inline-transform.c
219 2011-04-19 DJ Delorie <dj@redhat.com>
221 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
222 registers if we already know there aren't any.
223 (m32c_emit_epilogue): Don't emit a barrier here.
224 (m32c_emit_eh_epilogue): Likewise.
225 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
226 operands at expand time.
227 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
229 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
230 duplicates. Provide aliases instead.
231 * config/m32c/prologue.md (eh_return): Emit a barrier here.
232 (eh_epilogue): Add a "(return)" here as a hint to other parts of
235 2011-04-19 Anatoly Sokolov <aesok@post.ru>
237 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
238 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
239 (general_or_i64_p, sparc_register_move_cost): New function.
241 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
243 * doc/install.texi (Configuration, --enable-threads): Remove mach.
247 2011-04-19 Xinliang David Li <davidxl@google.com>
249 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
252 2011-04-19 Jakub Jelinek <jakub@redhat.com>
255 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
256 is a SUBREG with non-MODE_INT mode inside of it.
258 2011-04-19 Martin Jambor <mjambor@suse.cz>
260 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
261 also according to actual contants.
262 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
263 (gimple_fold_call): Use it.
264 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
266 2011-04-19 Martin Jambor <mjambor@suse.cz>
268 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
269 non-pointer assignments.
271 2011-04-19 Martin Jambor <mjambor@suse.cz>
273 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
274 account anc_offset and otr_type from the indirect edge info.
275 * ipa-prop.c (get_ancestor_addr_info): New function.
276 (compute_complex_ancestor_jump_func): Assignment analysis moved to
277 get_ancestor_addr_info, call it.
278 (ipa_note_param_call): Do not initialize information about polymorphic
279 calls, return the indirect call graph edge. Remove the last
280 parameter, adjust all callers.
281 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
282 parameters. Initialize polymorphic information in the indirect edge.
284 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
287 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
288 the types if they have different enumeration identifiers.
290 2011-04-19 Jan Hubicka <jh@suse.cz>
292 * cgraph.h (cgraph_optimize_for_size_p): Declare.
293 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
294 * predict.c (cgraph_optimize_for_size_p): Break out from ...
295 (optimize_function_for_size_p) ... here.
297 2011-04-19 Richard Guenther <rguenther@suse.de>
300 * tree.c (free_lang_data): Do not reset the decl-assembler-name
303 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
305 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
306 if DECL_NO_INLINE_WARNING_P is set on the function.
308 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
311 * reload1.c (inc_for_reload): Return void. All callers changed.
312 (emit_input_reload_insns): Don't try to delete previous output
313 reloads to a register, or record spill_reg_store for autoincs.
315 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
317 * gengtype.h: Updated copyright year.
318 (struct input_file_st): Add inpisplugin field.
319 (type_fileloc): New function.
321 (write_typed_struct_alloc_def): Add gcc_assert.
322 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
323 (write_typed_alloc_defns): Don't output for plugin files.
324 (input_file_by_name): Clear inpisplugin field.
325 (main): Set inpisplugin field for plugin files.
327 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
329 * gengtype-state.c (string_eq): New.
330 (read_state): Use string_eq instead of strcmp when creating the
333 2011-04-19 Wei Guozhi <carrot@google.com>
336 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
337 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
339 * config/arm/constraints.md (Uu): New constraint.
340 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
342 2011-04-19 Tristan Gingold <gingold@adacore.com>
344 * config.gcc (-*-*-*vms): Added.
345 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
347 * config/vms/vms-ld.c: New file.
348 * config/vms/vms-ar.c: New file.
349 * config/vms/t-vmsnative: New file.
351 2011-04-18 Xinliang David Li <davidxl@google.com>
353 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
355 2011-04-18 Jakub Jelinek <jakub@redhat.com>
358 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
359 if TREE_TYPE (v) is non-NULL.
361 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
362 gimple_get_virt_mehtod_for_binfo.
363 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
364 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
366 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
368 2011-04-18 Michael Matz <matz@suse.de>
369 Steve Ellcey <sje@cup.hp.com>
371 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
372 use its mode as source mode if it isn't VOIDmode.
374 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
376 * doc/passes.texi: Fill crossref nodes.
378 2011-04-18 Jim Meyering <meyering@redhat.com>
380 Fix doubled-word typos in comments and strings
381 * config/alpha/vms-unwind.h: s/for for/for/
382 * config/arm/unwind-arm.h: Likewise.
383 * config/microblaze/microblaze.c: Likewise.
384 * config/sh/constraints.md: s/in in/in/
385 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
387 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
389 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
390 (AVX_FLOAT_MODE_P): Ditto.
391 (AVX128_VEC_FLOAT_MODE_P): Ditto.
392 (AVX256_VEC_FLOAT_MODE_P): Ditto.
393 (AVX_VEC_FLOAT_MODE_P): Ditto.
394 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
395 (UNSPEC_MASKSTORE): Ditto.
396 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
397 Merge from <sse>_movmsk<ssemodesuffix> and
398 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
399 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
401 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
402 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
403 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
405 2011-04-18 Jan Hubicka <jh@suse.cz>
407 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
409 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
410 (want_inline_function_called_once_p): Break out the logic from
412 (edge_badness): Ensure that profile is not misupdated.
413 (lookup_recursive_calls): Prioritize by call frequencies.
414 (inline_small_functions): Move program size estimates here;
415 actually process whole queue even when unit growth has been
416 met. (to properly compute inline_failed reasons and for the
417 case unit size decrease.) Revisit comments on recursive inlining.
418 (ipa_inline): Remove unit summary code; first inline hot calls
419 of functions called once, cold calls next.
420 (order, nnodes): Remove unused variables.
421 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
422 (GTFILES): Remove ipa-inline.c
423 * sel-sched.c (fill_insns): Silence uninitialized var warning.
425 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
427 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
429 2011-04-18 Jie Zhang <jie@codesourcery.com>
430 Richard Earnshaw <rearnsha@arm.com>
432 * arm.c (neon_builtin_type_bits): Remove.
433 (typedef enum neon_builtin_mode): New.
434 (T_MAX): Don't define.
435 (typedef enum neon_builtin_datum): Remove bits, codes[],
436 num_vars and base_fcode. Add mode, code and fcode.
437 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
438 VAR10): Change accordingly.
439 (neon_builtin_data[]): Change accordingly
440 (arm_init_neon_builtins): Change accordingly.
441 (neon_builtin_compare): Remove.
442 (locate_neon_builtin_icode): Remove.
443 (arm_expand_neon_builtin): Change accordingly.
445 * arm.h (enum arm_builtins): Move to ...
446 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
448 * arm.c (arm_builtin_decl): Declare.
449 (TARGET_BUILTIN_DECL): Define.
450 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
451 (arm_builtin_decls[]): New.
452 (arm_init_neon_builtins): Store builtin declarations in
454 (arm_init_tls_builtins): Likewise.
455 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
456 (arm_builtin_decl): New.
458 2011-04-18 Richard Guenther <rguenther@suse.de>
460 * tree.c (upper_bound_in_type): Build properly canonicalized
462 (lower_bound_in_type): Likewise.
464 2011-04-18 Richard Guenther <rguenther@suse.de>
466 * gimple.h (gimple_call_addr_fndecl): New function.
467 (gimple_call_fndecl): Use it.
468 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
470 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
471 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
473 2011-04-18 Richard Guenther <rguenther@suse.de>
476 * tree.c (build_string): STRING_CST is now derived from tree_typed.
478 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
481 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
482 DECL_IN_CONSTANT_POOL without RTL.
484 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
485 Ira Rosen <ira.rosen@linaro.org>
488 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
489 to match neon_vzip/vuzp/vtrn_internal.
490 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
491 outputs explicitly dependent on both inputs.
492 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
494 2011-04-18 Jakub Jelinek <jakub@redhat.com>
496 PR tree-optimization/48616
497 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
498 whether the shift is by scalar or vector based on whether all SLP
499 scalar stmts have the same rhs.
501 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
503 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
506 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
508 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
511 2011-04-17 Jan Hubicka <jh@suse.cz>
513 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
514 * cgrpahunit.c (cgraph_finalize_function): Do not set
515 finalized_by_frontend.
516 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
517 finalized_by_frontend.
519 2011-04-17 Jan Hubicka <jh@suse.cz>
521 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
522 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
523 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
524 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
526 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
528 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
530 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
533 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
534 is non-null before accessing it.
535 (input_cgraph): Remove trailing spaces.
537 2011-04-17 Revital Eres <revital.eres@linaro.org>
539 * params.def (sms-min-sc): New param flag.
540 * modulo-sched.c (sms_schedule): Use it.
541 * doc/invoke.texi (sms-min-sc): Document it.
543 2011-04-17 Jan Hubicka <jh@suse.cz>
545 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
546 present, also set gimple_call_set_cannot_inline.
547 * ipa-inline.c: Update toplevel comment.
549 (cgraph_clone_inlined_nodes): Fix linebreaks.
550 (cgraph_check_inline_limits): Restructure to ...
551 (caller_growth_limits): ... this one; be more tolerant
552 on growth in nested inline chains; add explanatory comment;
553 fix stack accounting thinko introduced by previous patch.
554 (cgraph_default_inline_p): Remove.
555 (report_inline_failed_reason): New function.
556 (can_inline_edge_p): New function.
557 (can_early_inline_edge_p): New function.
558 (leaf_node_p): Move upwards in file.
559 (want_early_inline_function_p): New function.
560 (want_inline_small_function_p): New function.
561 (want_inline_self_recursive_call_p): New function.
562 (cgraph_edge_badness): Rename to ...
563 (edge_badness) ... this one; fix linebreaks.
564 (update_edge_key): Update call of edge_baddness; add
565 detailed dump about queue updates.
566 (update_caller_keys): Use can_inline_edge_p and
567 want_inline_small_function_p.
568 (cgraph_decide_recursive_inlining): Rename to...
569 (recursive_inlining): Use can_inline_edge_p and
570 want_inline_self_recursive_call_p; simplify and remove no longer
572 (cgraph_set_inline_failed): Remove.
573 (add_new_edges_to_heap): Use can_inline_edge_p and
574 want_inline_small_function_p.
575 (cgraph_decide_inlining_of_small_functions): Rename to ...
576 (inline_small_functions): ... this one; cleanup; use
577 can/want predicates; cleanup debug ouput; work edges till fibheap
578 is exhausted and do not stop once unit growth is reached; remove
579 later loop processing remaining edges.
580 (cgraph_flatten): Rename to ...
581 (flatten_function): ... this one; use can_inline_edge_p
582 and can_early_inline_edge_p predicates.
583 (cgraph_decide_inlining): Rename to ...
584 (ipa_inline): ... this one; remove unreachable nodes before
585 inlining functions called once; simplify the pass.
586 (cgraph_perform_always_inlining): Rename to ...
587 (inline_always_inline_functions): ... this one; use
588 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
589 (cgraph_decide_inlining_incrementally): Rename to ...
590 (early_inline_small_functions): ... this one; simplify
591 using new predicates; cleanup; make dumps prettier.
592 (cgraph_early_inlining): Rename to ...
593 (early_inliner): newer inline regular functions into always-inlines;
594 fix updating of call stmt summaries.
595 (pass_early_inline): Update for new names.
596 (inline_transform): Fix formating.
597 (gate_cgraph_decide_inlining): Rename to ...
598 (pass_ipa_inline): ... this one.
599 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
600 * ipa-inline-analysis.c (dump_inline_summary): Update.
601 (compute_inline_parameters): Do not compute disregard_inline_limits;
602 look for mismatching arguments.
603 (estimate_growth): Fix handlig of non-trivial self recursion.
604 (inline_read_summary): Do not read info->disregard_inline_limits.
605 (inline_write_summary): Do not write info->disregard_inline_limits.
606 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
607 and move all checks into can_inline_edge_p predicate; re-enable code
608 comparing optimization levels.
609 (expand_call_inline): Do not test inline_forbidden_into_p.
610 * Makefile.in (ipa-inline.o): Update arguments.
612 2011-04-17 Revital Eres <revital.eres@linaro.org>
614 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
616 2011-04-17 Revital Eres <revital.eres@linaro.org>
618 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
620 2011-04-17 Michael Matz <matz@suse.de>
622 PR tree-optimization/48622
624 * ipa-inline-analysis.c (inline_read_summary): Read size/time
625 in same order as they're written.
627 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
629 * config/pa/predicates.md: Reorganize and simplify predicates.
630 Eliminate duplicate code checks.
631 (arith_operand): Rename to arith14_operand
632 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
633 * config/pa/pa.md: Use renamed operands.
634 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
635 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
636 arith11_operand, adddi3_operand, indexed_memory_operand,
637 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
638 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
639 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
640 move_dest_operand, move_src_operand, prefetch_cc_operand,
641 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
642 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
643 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
644 div_operand, int5_operand, movb_comparison_operator,
645 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
646 arith_double_operand, ireg_operand, lhs_lshift_operand,
647 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
648 integer_store_memory_operand): Likewise.
649 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
650 (integer_store_memory_operand, read_only_operand,
651 function_label_operand, borx_reg_operand,
652 non_hard_reg_operand): Likewise.
653 (eq_neq_comparison_operator): Delete unused operator.
654 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
655 function_label_operand.
656 (emit_move_sequence): Likewise.
658 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
660 * config/i386/sse.md (sseunpackmode): New mode attribute.
661 (ssepackmode): Ditto.
662 (vec_pack_trunc_<mode>): Macroize expander from
663 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
664 (vec_unpacks_lo_<mode>): Macroize expander from
665 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
666 (vec_unpacks_hi_<mode>): Macroize expander from
667 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
668 (vec_unpacku_lo_<mode>): Macroize expander from
669 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
670 (vec_unpacku_hi_<mode>): Macroize expander from
671 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
672 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
673 ix86_expand_sse4_unpack.
674 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
676 2011-04-16 Jan Hubicka <jh@suse.cz>
678 * cgraphbuild.c: Include ipa-inline.h.
679 (reset_inline_failed): Use initialize_inline_failed.
680 * cgraph.c: Include ipa-inline.h.
681 (cgraph_create_node_1): Do not initialize estimated_growth.
682 (initialize_inline_failed): More to ipa-inline-analysis.c
683 (dump_cgraph_node): Do not dump inline flags.
684 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
685 and disregard_inline_limits flags.
686 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
687 time, size, estimated_growth.
688 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
690 * cgraphunit.c (cgraph_decide_is_function_needed): Use
691 DECL_DISREGARD_INLINE_LIMITS.
692 (cgraph_analyze_function): Do not initialize
693 node->local.disregard_inline_limits.
694 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
695 inlinable, versionable and disregard_inline_limits.
696 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
697 cgraph_check_inline_limits, cgraph_default_inline_p,
698 cgraph_edge_badness, update_caller_keys, update_callee_keys,
699 add_new_edges_to_heap): Update.
700 (cgraph_decide_inlining_of_small_function): Update; set
701 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
702 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
703 cgraph_decide_inlining_incrementally): Update.
704 * ipa-inline.h (inline_summary): Add inlinable, versionable,
705 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
706 time, size and estimated_growth parameters.
707 (estimate_edge_growth): Update.
708 (initialize_inline_failed): Declare.
709 * ipa-split.c: Include ipa-inline.h
710 (execute_split_functions): Update.
711 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
712 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
713 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
714 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
715 estimated_growth to INT_MIN.
716 (inline_node_duplication_hook): Likewise.
717 (dump_inline_summary): Dump new fields.
718 (compute_inline_parameters): Update.
719 (estimate_edge_time, estimate_time_after_inlining,
720 estimate_size_after_inlining, estimate_growth, inline_read_summary,
721 inline_write_summary):
722 (initialize_inline_failed): Move here from cgraph.c.
723 * tree-sra.c: Include ipa-inline.h.
724 (ipa_sra_preliminary_function_checks): Update.
725 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
728 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
730 * config/i386/sse.md (V16): New mode iterator.
732 (AVXMODEQI, AVXMODEDI): Remove.
733 (sse2, sse3): New mode attribute.
734 (mov<mode>): Use V16 mode iterator.
735 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
736 (push<mode>1): Use V16 mode iterator.
737 (movmisalign<mode>): Ditto.
738 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
739 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
740 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
741 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
742 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
743 avx_movdqu<avxmodesuffix>.
744 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
745 *avx_movdqu<avxmodesuffix>.
746 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
747 avx_lddqu<avxmodesuffix>.
748 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
749 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
750 avx_movnt<AVXMODEDI:mode>.
751 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
752 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
754 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
757 * haifa-sched.c (prune_ready_list, schedule_block): Use
758 sched_pressure_p rather than flag_sched_pressure.
760 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
762 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
763 cgraph_get_node instead of cgraph_get_create_node.
765 2011-04-15 Jakub Jelinek <jakub@redhat.com>
767 * cfgexpand.c (expand_debug_expr): Use
768 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
770 2011-04-15 Michael Matz <matz@suse.de>
772 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
773 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
774 * function.c (gimplify_parameters): Ditto.
775 * gimplify.c (gimplify_vla_decl): Ditto.
777 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
778 (gimple_call_set_alloca_for_var): New inline function.
779 (gimple_call_alloca_for_var_p): Ditto.
780 * gimple.c (gimple_build_call_from_tree): Remember
781 CALL_ALLOCA_FOR_VAR_P state.
782 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
784 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
785 calls if they were for VLA objects.
787 2011-04-15 Martin Jambor <mjambor@suse.cz>
789 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
792 2011-04-15 Martin Jambor <mjambor@suse.cz>
795 * tree-emutls.c (lower_emutls_function_body): Call
796 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
799 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
801 * c-decl.c (detect_field_duplicates): Call
802 objc_detect_field_duplicates instead of objc_get_interface_ivars.
804 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
806 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
807 * gimple.c (gimple_asm_clobbers_memory_p): Define.
808 * ipa-pure-const.c (check_stmt): Call it.
809 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
811 2011-04-15 Richard Guenther <rguenther@suse.de>
813 PR tree-optimization/48290
814 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
815 Properly decide inhibiting propagation based on the valueized
816 operand. Do loop-closed SSA form preserving here ...
817 (init_copy_prop): ... not here.
819 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
822 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
823 (*ieee_smax<mode>3): Likewise.
825 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
827 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
828 Replace match_operand with match_dup for the third operand in
831 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
833 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
834 to track processing of conditionals. Update all callers.
835 (try_combine, simplify_if_then_else): Update.
837 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
839 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
842 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
844 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
845 instead of match_operand for operand 3.
847 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
849 * recog.h (insn_operand_data): Add an "allows_mem" field.
850 * genoutput.c (output_operand_data): Initialize it.
851 * optabs.c (maybe_legitimize_operand_same_code): New function.
852 (maybe_legitimize_operand): Use it when matching the original
855 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
857 * gimplify.c: Fix issues in comments throughout.
858 (voidify_wrapper_expr): Fix long line.
859 (build_stack_save_restore): Likewise.
860 (gimplify_loop_expr): Likewise.
861 (gimplify_compound_lval): Likewise.
862 (gimplify_init_ctor_eval): Likewise.
863 (gimplify_modify_expr_rhs): Likewise.
864 (omp_notice_threadprivate_variable): Likewise.
866 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
868 * cfgexpand.c (expand_call_stmt): Convert the function type to the
869 original one if this is not a builtin function.
871 2011-04-14 Jakub Jelinek <jakub@redhat.com>
874 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
875 offset it as needed based on top 2 bits in operands[3], change
876 MEM mode to SFmode and mask those 2 bits away from operands[3].
878 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
880 * c-parser.c (c_parser_objc_protocol_definition): Updated for
881 change from objc_declare_protocols() to objc_declare_protocol().
883 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
885 * config/i386/sse.md (sse4_1): New mode attribute.
886 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
887 avx_blend<ssemodesuffix><avxmodesuffix> and
888 sse4_1_blend<ssemodesuffix> using VF mode iterator.
889 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
890 avx_blendv<ssemodesuffix><avxmodesuffix> and
891 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
892 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
893 avx_dp<ssemodesuffix><avxmodesuffix> and
894 sse4_1_dp<ssemodesuffix> using VF mode iterator.
895 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
896 (sse4_1_packusdw): Merge with *avx_packusdw.
897 (sse4_1_pblendvb): Merge with *avx_pblendvb.
898 (sse4_1_pblendw): Merge with *avx_pblendw.
899 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
900 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
901 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
903 (sse4_1_round<ssescalarmodesuffix>): Merge with
904 *avx_round<ssescalarmodesuffix>.
905 (aesenc): Merge with *avx_aesenc.
906 (aesenclast): Merge with *avx_aesenclast.
907 (aesdec): Merge with *avx_aesdec.
908 (aesdeclast): Merge with *avx_aesdeclast.
909 (pclmulqdq): Merge with *pclmulqdq.
910 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
912 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
914 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
917 * cfgexpand.c (get_decl_align_unit): Renamed to ...
918 (align_local_variable): This. Update DECL_ALIGN.
919 (add_stack_var): Updated.
920 (expand_one_stack_var): Likewise.
922 2011-04-14 Richard Guenther <rguenther@suse.de>
924 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
926 (dse_initialize_block_local_data, dse_leave_block,
927 record_voperand_set, get_stmt_uid): Likewise.
928 (dse_possible_dead_store_p): Allow any kind of killing stmt.
929 (dse_optimize_stmt): Remove voperand set handling code.
930 Simplify and improve to handle any kind of killing stmt.
931 (dse_record_phi): Remove.
932 (dse_enter_block): Simplify.
933 (tree_ssa_dse): Likewise.
934 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
936 2011-04-14 Jan Hubicka <jh@suse.cz>
938 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
939 * cgraph.h (struct inline_summary): Move to ipa-inline.h
940 (cgraph_local_info): Remove inline_summary.
941 * ipa-cp.c: Include ipa-inline.h.
942 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
943 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
945 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
946 (input_overwrite_node): Do not set inline summary.
947 (input_node): Do not stream inline summary.
948 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
949 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
950 growth; we do not have inline parameters computed for that anyway.
951 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
952 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
953 (inline_summary_t): New type and VECtor.
954 (debug_inline_summary, dump_inline_summaries): Declare.
955 (inline_summary): Use VOCtor.
956 (estimate_edge_growth): Kill hack computing call stmt size directly.
957 * lto-section-in.c (lto_section_name): Add inline section.
958 * ipa-inline-analysis.c: Include lto-streamer.h
959 (node_removal_hook_holder, node_duplication_hook_holder): New holders
960 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
961 (inline_summary_vec): Define.
962 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
963 dump_inline_summaries): New functions.
964 (estimate_function_body_sizes): Properly compute size/time of outgoing
966 (compute_inline_parameters): Alloc inline_summary; do not compute
967 size/time of incomming calls.
968 (estimate_edge_time): Avoid missing time summary hack.
969 (inline_read_summary): Read inline summary info.
970 (inline_write_summary): Write inline summary info.
971 (inline_free_summary): Free all hooks and inline summary vector.
972 * lto-streamer.h: Add LTO_section_inline_summary section.
973 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
974 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
976 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
978 * tree-vectorizer.h (vect_strided_store_supported): Add a
979 HOST_WIDE_INT argument.
980 (vect_strided_load_supported): Likewise.
981 (vect_permute_store_chain): Return void.
982 (vect_transform_strided_load): Likewise.
983 (vect_permute_load_chain): Delete.
984 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
985 count argument. Check that the count is a power of two.
986 (vect_strided_load_supported): Likewise.
987 (vect_permute_store_chain): Return void. Update after above changes.
988 Assert that the access is supported.
989 (vect_permute_load_chain): Likewise.
990 (vect_transform_strided_load): Return void.
991 * tree-vect-stmts.c (vectorizable_store): Update calls after
992 above interface changes.
993 (vectorizable_load): Likewise.
994 (vect_analyze_stmt): Don't check for strided powers of two here.
996 2011-04-14 Richard Guenther <rguenther@suse.de>
998 PR tree-optimization/48590
999 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1000 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1001 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1002 BUILT_IN_STACK_SAVE.
1003 * tree-ssa-dce.c (propagate_necessity): Handle
1004 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1006 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1008 * c-parser.c (c_parser_objc_class_declaration): Updated call to
1011 2011-04-14 Richard Guenther <rguenther@suse.de>
1013 * tree.h (get_object_alignment_1): Declare.
1014 * builtins.c (get_object_alignment_1): Split out worker from ...
1015 (get_object_alignment): ... here.
1016 * fold-const.c (get_pointer_modulus_and_residue): Use
1017 get_object_alignment_1.
1019 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1021 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1023 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1024 parameter. Generalise code to handle arrays as well as vectors.
1025 (vect_setup_realignment): Update accordingly.
1026 * tree-vect-stmts.c (vectorizable_store): Likewise.
1027 (vectorizable_load): Likewise.
1029 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1031 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1032 within the per-copy loop.
1034 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1036 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1039 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1041 * doc/options.texi (Negative): Explicitly mention that the
1042 Negative chain must be circular.
1044 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1046 * function.h (block_chainon): Declare.
1047 * function.c (block_chainon): Define.
1049 2011-04-14 Anatoly Sokolov <aesok@post.ru>
1050 Eric Weddington <eric.weddington@atmel.com>
1051 Georg-Johann Lay <avr@gjlay.de>
1053 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1055 (avr_init_builtins, avr_expand_builtin,
1056 avr_expand_delay_cycles, avr_expand_unop_builtin,
1057 avr_expand_binop_builtin ): New functions.
1058 (avr_builtin_id): New enum
1059 (struct avr_builtin_description): New struct
1060 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1061 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1063 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1064 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1065 UNSPECV_DELAY_CYCLES): new enumeration values
1066 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1067 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1068 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1069 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1070 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1071 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1072 "fmulsu"): New insns
1074 * config/avr/avr-c.c: fix line endings
1075 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1076 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1077 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1078 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1079 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1081 * doc/extend.texi (AVR Built-in Functions): New node
1082 (Target Builtins): Add documentation of AVR
1085 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
1088 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1089 alone. Error if non-const data has attribute progmem.
1091 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1093 * tree.h (struct tree_constructor): Include tree_typed instead of
1095 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1096 TS_TYPED instead of TS_COMMON.
1098 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1100 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1101 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1102 (sse2_psadbw): Merge with *avx_psadbw.
1103 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1104 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1105 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1106 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1107 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1108 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1109 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1110 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1111 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1112 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1113 (ssse3_palignrti): Merge with *avx_palignrti.
1115 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1117 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1118 * tree-ssanames.c (fini_ssanames): VEC_free it.
1119 (make_ssa_name_fn): Update for VECness of free_ssanames.
1120 (release_ssa_name, release_dead_ssa_names): Likewise.
1121 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1123 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1124 TS_TYPED instead of TS_COMMON.
1126 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1128 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1129 statistics_counter_event.
1130 * tree-ssa-copyrename.c (stats): Define.
1131 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1132 statistics_counter_event.
1133 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1134 (bswap_stats, widen_mul_stats): Define.
1135 (insert_reciprocals): Increment rdivs_inserted.
1136 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1137 rfuncs_inserted. Add calls to statistics_counter_event.
1138 (execute_cse_sincos_1): Increment inserted.
1139 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1140 statistics_counter_event.
1141 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1142 of bswap_stats. Add calls to statistics_counter_event.
1143 (convert_mult_to_widen): Increment widen_mults_inserted.
1144 (convert_plusminus_to_widen): Increment maccs_inserted.
1145 (convert_mult_to_fma): Increment fmas_inserted.
1146 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1147 calls to statistics_counter_event.
1149 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1151 PR rtl-optimization/48455
1152 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1153 `temp_costs->mem_cost'.
1155 2011-04-13 Jan Hubicka <jh@suse.cz>
1157 * ipa-inline.h: New file.
1158 * ipa-inline-analysis.c: New file. Broken out of ...
1159 * ipa-inline.c: ... this file; update toplevel comment;
1160 include ipa-inline.h
1161 (inline_summary): Move to ipa-inline.h
1162 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1163 ipa-inline-analysis.c.
1164 (cgraph_estimate_time_after_inlining): Rename to
1165 estiamte_time_after_inlining; move to ipa-inline-analysis.c
1166 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1167 to estimate_edge_growth.
1168 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1169 rename to estimate_size_after_inlining.
1170 (cgraph_mark_inline_edge): Update for new naming convention.
1171 (cgraph_check_inline_limits): Likewise.
1172 (cgraph_edge_badness): Likewise.
1173 (cgraph_decide_recursive_inlining): Likewise.
1174 (cgraph_decide_inlining_of_small_functions): Likewise.
1175 (cgraph_decide_inlining_incrementally): Likewise.
1176 (cgraph_estimate_growth): Rename to estimate_growth; move to
1177 ipa-inline-analysis.c.
1178 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1179 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1180 (compute_inline_parameters): Likewise.
1181 (compute_inline_parameters_for_current): Likewise.
1182 (pass_inline_parameters): Likewise.
1183 (inline_indirect_intraprocedural_analysis): Likewise.
1184 (analyze_function): Rename to inline_analyze_function; likewise.
1185 (add_new_function): Move to ipa-inline-analysis.c.
1186 (inline_generate_summary): Likewise.
1187 (inline_read_summary): Likewise.
1188 (inline_write_summary): Likewise.
1189 * Makefile.in (ipa-inline-analysis.c): New file.
1191 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1193 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1194 * configure: Regenerate.
1196 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1198 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1199 instead of tree_common.
1200 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1202 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1203 TS_TYPED rather than TS_COMMON.
1204 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1206 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
1209 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1210 r20 around calls of __tablejump_elpm__
1212 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1215 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1217 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1219 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
1221 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1222 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1223 (cfi_vec): New typedef.
1224 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1225 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1226 (cie_cfi_vec): New static variable.
1227 (cie_cfi_head): Delete.
1228 (add_cfi): Accept a cfi_vec * as first argument. All callers and
1229 declaration changed. Use vector rather than list operations.
1230 (new_cfi): Don't initialize the dw_cfi_next field.
1231 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1232 rather than list operations.
1233 (lookup_cfa): Use vector rather than list operations.
1234 (output_cfis): New argument upto. Accept a cfi_vec rather than
1235 a dw_cfi_ref list head as argument. All callers changed.
1236 Iterate over the vector using upto as a maximum index.
1237 (output_all_cfis): New static function.
1238 (output_fde): Use vector rather than list operations. Use the
1239 new upto argument for output_cfis rather than manipulating a
1241 (dwarf2out_begin_prologue): Change initializations to match
1243 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1244 from the vector length rather than searching for the end of a list.
1245 Use output_all_cfis.
1246 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1248 2011-04-13 Nick Clifton <nickc@redhat.com>
1250 * config/rx/rx.md (movmemsi): Do not use this pattern when
1251 volatile pointers are involved.
1253 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1255 * config/i386/sse.md (pinsrbits): Remove.
1256 (sse2_packsswb): Merge with *avx_packsswb.
1257 (sse2_packssdw): Merge with *avx_packssdw.
1258 (sse2_packuswb): Merge with *avx_packuswb.
1259 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1260 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1261 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1262 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1263 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1264 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1265 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1266 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1267 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1268 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1269 (sse2_loadld): Merge with *avx_loadld.
1270 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1271 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1272 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1273 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1274 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1276 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1278 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1280 * print-tree.c (print_node): Likewise.
1281 * tree-inline.c (copy_tree_r): Likewise.
1282 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1283 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1284 instead of TS_COMMON.
1285 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1286 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1287 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1288 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1289 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1291 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1293 (TREE_CHAIN): Check for a TS_COMMON structure.
1294 (TREE_TYPE): Check for a TS_TYPED structure.
1296 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1298 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1299 cgraph_get_create_node instead of cgraph_node.
1301 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1303 * c-parser.c (c_parser_initelt): Updated call to
1304 objc_build_message_expr.
1305 (c_parser_postfix_expression): Likewise.
1307 2011-04-12 Kai Tietz <ktietz@redhat.com>
1309 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1310 MASK_MS_BITFIELD_LAYOUT bit.
1312 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1314 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1315 assert it is always true.
1316 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1319 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1321 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1322 compiling Objective-C to be more efficient.
1324 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1326 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1329 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1331 * recog.h, genoutput.c, optabs.c: Revert last patch.
1333 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1336 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1338 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1340 * recog.h (insn_operand_data): Add an "allows_mem" field.
1341 * genoutput.c (output_operand_data): Initialize it.
1342 * optabs.c (maybe_legitimize_operand_same_code): New function.
1343 (maybe_legitimize_operand): Use it when matching the original
1346 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1348 * genpreds.c (process_define_predicate): Move most processing
1349 to gensupport.c. Continue to validate the expression.
1350 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1351 (process_define_predicate): Move processing to gensupport.c.
1352 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1353 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1354 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1356 (valid_predicate_name_p): New function, split out from old
1357 genpreds.c:process_define_predicate.
1358 (process_define_predicate): New function, combining code from
1359 old genpreds.c and genrecog.c functions.
1360 (process_rtx): Call it for DEFINE_PREDICATE and
1361 DEFINE_SPECIAL_PREDICATE.
1363 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1365 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1366 size of a '%A' memory reference.
1367 (T_DREG, T_QREG): New neon_builtin_type_bits.
1368 (arm_init_neon_builtins): Assert that the load and store operands
1369 are neon_struct_operands.
1370 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1371 (NEON_ARG_MEMORY): New builtin_arg.
1372 (neon_dereference_pointer): New function.
1373 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1374 Handle NEON_ARG_MEMORY.
1375 (arm_expand_neon_builtin): Update after above interface changes.
1376 Use NEON_ARG_MEMORY for loads and stores.
1377 * config/arm/predicates.md (neon_struct_operand): New predicate.
1378 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1379 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1380 (V_four_elem): Tweak formatting.
1381 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1382 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1383 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1384 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1385 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1386 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1387 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1388 Use %A in the output template.
1389 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1390 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1391 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1392 the width of the memory access. Remove post-increment.
1393 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1395 2011-04-12 Nick Clifton <nickc@redhat.com>
1397 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1398 instruction for interrupt handlers if the target is the basic V850
1400 (expand_epilogue): Likewise.
1402 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1404 PR rtl-optimization/48549
1405 * combine.c (propagate_for_debug): Also stop after BB_END of
1406 this_basic_block. Process LAST and just stop processing after it.
1407 (combine_instructions): If last_combined_insn has been deleted,
1408 set last_combined_insn to its PREV_INSN.
1410 2011-04-12 Richard Guenther <rguenther@suse.de>
1412 PR tree-optimization/46076
1413 * gimple.h (struct gimple_statement_call): Add fntype field.
1414 (gimple_call_fntype): Adjust.
1415 (gimple_call_set_fntype): New function.
1416 * gimple.c (gimple_build_call_1): Set the call function type.
1417 * gimplify.c (gimplify_call_expr): Preserve the function
1418 type the frontend used for the call.
1419 (gimplify_modify_expr): Likewise.
1420 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1422 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1424 * tree-ssa.c (useless_type_conversion_p): Function pointer
1425 conversions are useless.
1427 2011-04-12 Martin Jambor <mjambor@suse.cz>
1429 * cgraph.h (cgraph_node): Remove function declaration.
1430 (cgraph_create_node): Declare.
1431 (cgraph_get_create_node): Likewise.
1432 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1433 Updated all callers.
1434 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1435 the decl does not already exist. Call cgraph_get_create_node instead
1437 (cgraph_get_create_node): New function.
1438 (cgraph_same_body_alias): Update comment.
1439 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1440 assert it does not return NULL.
1441 (cgraph_update_edges_for_call_stmt): Likewise.
1442 (cgraph_clone_edge): Likewise.
1443 (cgraph_create_virtual_clone): Likewise.
1444 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1445 instead of cgraph_node.
1446 (cgraph_add_new_function): Call cgraph_create_node or
1447 cgraph_get_create_node instead of cgraph_node.
1448 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1449 instead of cgraph_node.
1450 (record_eh_tables): Likewise.
1451 (mark_address): Likewise.
1452 (mark_load): Likewise.
1453 (build_cgraph_edges): Call cgraph_get_create_node instead
1455 (rebuild_cgraph_edges): Likewise.
1456 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1457 instead of cgraph_node.
1458 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1460 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1461 cgraph_create_node instead of cgraph_node.
1462 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1464 * lto-cgraph.c (input_node): Likewise.
1465 * lto-streamer-in.c (input_function): Likewise.
1466 * varasm.c (mark_decl_referenced): Likewise.
1467 (assemble_alias): Likewise.
1469 2011-04-12 Martin Jambor <mjambor@suse.cz>
1471 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1472 instead of cgraph_node and assert it does not return NULL.
1473 * lto-streamer-in.c (lto_read_body): Likewise.
1474 * omp-low.c (new_omp_context): Likewise.
1475 (create_task_copyfn): Likewise.
1476 * tree-emutls.c (lower_emutls_function_body): Likewise.
1477 * matrix-reorg.c (transform_allocation_sites): Likewise.
1479 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1482 * c-typeck.c (build_asm_expr): Error out on attempts to use
1483 void type outputs or inputs for constraints that allow reg or
1486 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1487 Richard Earnshaw <rearnsha@arm.com>
1490 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1491 to use sign-magnitude offsets. Reject unsupported unaligned
1492 cases. Add detailed description in comments.
1493 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1494 condition from TARGET_32BIT to TARGET_ARM.
1496 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1498 * tree.h (struct typed_tree): New.
1499 (struct tree_common): Include it instead of tree_base.
1500 (TREE_TYPE): Update for new location of type field.
1501 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1502 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1503 (union tree_node): Add typed field.
1504 * treestruct.def (TS_TYPED): New.
1505 * lto-streamer.c (check_handled_ts_structures): Handle it.
1506 * tree.c (MARK_TS_TYPED): New macro.
1507 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1509 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1511 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1512 (force_nonfallthru): Do not alter the loop nest if no basic block
1515 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1517 * config/i386/sse.md (VI): New mode iterator.
1519 (AVX256MODEI): Ditto.
1520 (AVXMODEF4P): Ditto.
1521 (avxvecpsmode): Ditto.
1522 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1523 (sse2_andnot<mode>3): New expander.
1524 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1525 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1526 (<any_logic:code><mode>3): Use VI mode iterator.
1527 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1528 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1529 (*andnottf3): Handle AVX three-operand constraints.
1530 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1532 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1533 Robert Millan <rmh@gnu.org>
1535 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1536 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1537 GNU_USER_DYNAMIC_LINKER64): Define.
1538 (REG_NAME): Don't undefine.
1539 (MD_UNWIND_SUPPORT): Undefine.
1540 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1541 (REG_NAME): Don't undefine.
1542 (MD_UNWIND_SUPPORT): Undefine.
1543 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1545 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1547 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1548 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1550 2011-04-11 Xinliang David Li <davidxl@google.com>
1552 * value-profile.c (check_ic_target): New function.
1553 (gimple_ic_transform): Sanity check indirect call target.
1554 * gimple-low.c (gimple_check_call_args): Interface change.
1555 (gimple_check_call_matching_types): New function.
1556 * tree-inline.c (tree_can_inline_p): Call new function.
1558 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1560 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1561 tree-pretty-print.h & realmpfr.h.
1563 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1566 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1567 (setup_allocno_and_important_classes): Ditto.
1569 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1571 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1572 GNU_USER_DYNAMIC_LINKER.
1573 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1574 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1575 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1576 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1577 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1578 GNU_USER_TARGET_OS_CPP_BUILTINS.
1579 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1580 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1581 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1582 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1583 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1584 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1585 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1586 GNU_USER_TARGET_OS_CPP_BUILTINS.
1587 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1588 GNU_USER_DYNAMIC_LINKER.
1589 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1590 GNU_USER_TARGET_OS_CPP_BUILTINS.
1591 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1592 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1593 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1594 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1595 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1596 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1597 GNU_USER_DYNAMIC_LINKER64): Remove.
1598 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1599 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1600 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1601 GNU_USER_DYNAMIC_LINKER.
1602 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1603 GNU_USER_TARGET_OS_CPP_BUILTINS.
1604 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1605 GNU_USER_TARGET_OS_CPP_BUILTINS.
1606 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1607 to GNU_USER_TARGET_OS_CPP_BUILTINS.
1608 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1609 GNU_USER_TARGET_OS_CPP_BUILTINS.
1610 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1611 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1612 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1613 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1614 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1615 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1616 GNU_USER_DYNAMIC_LINKER.
1617 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1618 GNU_USER_TARGET_OS_CPP_BUILTINS.
1619 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1620 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1621 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1622 GNU_USER_DYNAMIC_LINKER.
1623 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1624 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1625 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1626 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1627 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1628 GNU_USER_DYNAMIC_LINKER.
1629 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1630 GNU_USER_DYNAMIC_LINKERN32.
1631 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1632 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
1633 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
1634 GNU_USER_DYNAMIC_LINKER32.
1635 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1636 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1637 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1638 GNU_USER_DYNAMIC_LINKER.
1639 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1640 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1641 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1642 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1643 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1644 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1645 GNU_USER_DYNAMIC_LINKER32.
1646 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1647 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1648 GNU_USER_DYNAMIC_LINKER.
1649 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1650 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1651 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1652 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
1653 GNU_USER_DYNAMIC_LINKER64.
1654 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1655 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1656 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1657 GNU_USER_DYNAMIC_LINKER.
1658 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1659 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1660 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1661 GNU_USER_DYNAMIC_LINKER.
1662 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1663 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1664 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1665 GNU_USER_DYNAMIC_LINKER32.
1666 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1667 GNU_USER_DYNAMIC_LINKER64.
1668 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1669 GNU_USER_DYNAMIC_LINKER64.
1670 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1671 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1672 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1673 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1674 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1676 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1678 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
1679 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1680 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1681 GNU_USER_DYNAMIC_LINKER.
1682 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1683 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
1684 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1685 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1686 GNU_USER_DYNAMIC_LINKER64.
1687 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1688 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1689 GNU_USER_LINK_EMULATION.
1690 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1691 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1692 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1693 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1694 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1695 CPP_SPEC, CC1_SPEC): Remove.
1696 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1697 (GNU_USER_DYNAMIC_LINKER): Define.
1698 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1699 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1700 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1701 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1702 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1703 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1704 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1705 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1706 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1707 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1708 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1709 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1710 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1711 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1712 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1713 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1714 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1715 GNU_USER_DYNAMIC_LINKER.
1716 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1717 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1718 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1719 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1720 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1721 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1722 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1723 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1724 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1725 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1727 2011-04-11 Kai Tietz <ktietz@redhat.com>
1731 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1732 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1734 (ix86_is_msabi_thiscall): Removed.
1735 (ix86_is_type_thiscall): Likewise.
1736 (ix86_get_callcvt): New function.
1737 (ix86_comp_type_attributes): Simplify check.
1738 (ix86_function_regparm): Use ix86_get_callcvt for calling
1739 convention attribute checks.
1740 (ix86_return_pops_args): Likewise.
1741 (ix86_static_chain): Likewise.
1742 (x86_this_parameter): Likewise.
1743 (x86_output_mi_thunk): Likewise.
1744 (ix86_function_type_abi): Optimize check for types without attributes.
1745 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1746 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1747 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1749 (IX86_BASE_CALLCVT): Helper macro.
1750 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1751 Use ix86_get_callcvt for calling convention attribute checks and avoid
1752 symbol-decoration for stdcall in TARGET_RTD case.
1753 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1755 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1758 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1760 * config/i386/sse.md (VI_128): New mode iterator.
1761 (VI12_128): Rename from SSEMODE12.
1762 (VI14_128): Rename from SSEMODE14.
1763 (VI124_128): New mode iterator.
1764 (VI24_128): Rename from SSEMODE248.
1765 (VI248_128): Rename from SSEMODE248.
1766 (SSEMODE124C8): Remove.
1767 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1768 (*sse2_<plusminus_insn><mode>3): Merge with
1769 *avx_<plusminus_insn><mode>3.
1770 (*mulv8hi3): Merge with *avx_mulv8hi3.
1771 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1772 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1773 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1774 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1775 (ashr<mode>3): Merge with *avx_ashr<mode>3.
1776 (lshr<mode>3): Merge with *avx_lshr<mode>3.
1777 (ashl<mode>3): Merge with *avx_ashl<mode>3.
1778 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1779 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1780 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1781 (*<smaxmin:code>v8hi3): Ditto.
1782 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1783 (*<smaxmin:code>v16qi3): Ditto.
1784 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1785 (*sse2_eq<mode>3): Ditto.
1786 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1787 (*sse2_gt<mode>3): Ditto.
1788 (vcondv2di): Split out of vcond<mode>.
1789 (vconduv2di): Split out of vcondu<mode>.
1791 2011-04-11 Richard Guenther <rguenther@suse.de>
1793 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1794 before calling tree_low_cst.
1796 2011-04-11 Richard Guenther <rguenther@suse.de>
1798 * stor-layout.c (layout_type): Compute all array index size operations
1799 in the original type.
1800 (initialize_sizetypes): Add comment.
1801 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1803 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1805 * common.opt (Tbss=, Tdata=, Ttext=): New options.
1807 2011-04-11 Martin Jambor <mjambor@suse.cz>
1809 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1810 of cgraph_node, handle NULL return value.
1811 (cgraph_global_info): Likewise.
1812 (cgraph_rtl_info): Likewise.
1813 * tree-inline.c (estimate_num_insns): Likewise.
1814 * gimplify.c (unshare_body): Likewise.
1815 (unvisit_body): Likewise.
1816 (gimplify_body): Likewise.
1817 * predict.c (optimize_function_for_size_p): Likewise.
1818 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1819 (call_may_clobber_ref_p_1): Likewise.
1820 * varasm.c (function_section_1): Likewise.
1821 (assemble_start_function): Likewise.
1823 2011-04-11 Martin Jambor <mjambor@suse.cz>
1825 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1827 * final.c (rest_of_clean_state): Likewise.
1828 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1829 * passes.c (pass_init_dump_file): Likewise.
1830 (execute_all_ipa_transforms): Likewise.
1831 (function_called_by_processed_nodes_p): Likewise.
1832 * predict.c (maybe_hot_frequency_p): Likewise.
1833 (probably_never_executed_bb_p): Likewise.
1834 (compute_function_frequency): Likewise.
1835 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1836 (unnest_nesting_tree_1): Likewise.
1837 (lower_nested_functions): Likewise.
1838 * tree-optimize.c (execute_fixup_cfg): Likewise.
1839 (tree_rest_of_compilation): Likewise.
1840 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1841 * tree-sra.c (ipa_early_sra): Likewise.
1842 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1843 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1844 * ipa.c (record_cdtor_fn): Likewise.
1845 * ipa-inline.c (cgraph_early_inlining): Likewise.
1846 (compute_inline_parameters_for_current): Likewise.
1847 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1848 * ipa-pure-const.c (local_pure_const): Likewise.
1849 * ipa-split.c (split_function): Likewise.
1850 (execute_split_functions): Likewise.
1851 * cgraphbuild.c (build_cgraph_edges): Likewise.
1852 (rebuild_cgraph_edges): Likewise.
1853 (cgraph_rebuild_references): Likewise.
1854 (remove_cgraph_callee_edges): Likewise.
1855 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1856 (verify_cgraph_node): Likewise.
1857 (cgraph_analyze_functions): Likewise.
1858 (cgraph_preserve_function_body_p): Likewise.
1859 (save_inline_function_body): Likewise.
1860 (save_inline_function_body): Likewise.
1861 * tree-inline.c (copy_bb): Likewise.
1862 (optimize_inline_calls): Likewise.
1864 2011-04-11 Martin Jambor <mjambor@suse.cz>
1866 PR tree-optimization/48195
1867 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1868 ipa_check_create_edge_args.
1869 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1870 ipa_check_create_edge_args.
1871 * ipa-inline.c (inline_generate_summary): Do not call
1872 ipa_check_create_node_params and ipa_check_create_edge_args.
1873 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1874 ipa_check_create_edge_args.
1876 2011-04-09 Anatoly Sokolov <aesok@post.ru>
1878 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1880 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1881 * function.c (record_hard_reg_sets): Likewise.
1882 * ira.c (compute_regs_asm_clobbered): Likewise.
1883 * sched-deps.c (sched_analyze_1): Likewise.
1884 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1886 2011-04-09 Xinliang David Li <davidxl@google.com>
1888 PR tree-optimization/PR48484
1889 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1890 has_valid_pred lazily
1892 2011-04-09 Duncan Sands <baldrick@free.fr>
1894 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1896 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1898 * combine.c (combine_validate_cost): Adjust comments. Set registered
1899 cost of I0 to zero at the end, if any.
1901 2011-04-08 Xinliang David Li <davidxl@google.com>
1903 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1904 to insane profile data.
1906 2011-04-08 Xinliang David Li <davidxl@google.com>
1908 * ipa-cp.c (ipcp_update_profiling): Correct
1909 negative scale factor due to insane profile data.
1911 2011-04-08 Xinliang David Li <davidxl@google.com>
1913 * final.c (dump_basic_block_info): New function.
1914 (final): Dump basic block.
1915 (final_scan_insn): Remove old dump.
1917 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
1920 * config.gcc (i386-*-freebsd): Disable unwind table generation for
1923 2011-04-08 Michael Matz <matz@suse.de>
1926 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1928 (rebuild_jump_labels): Call rebuild_jump_labels_1.
1929 * rtl.h (rebuild_jump_labels_chain): Declare.
1930 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1931 insns inserted on edges.
1933 2011-04-08 Joseph Myers <joseph@codesourcery.com>
1935 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1936 * config/arm/arm-arches.def: New.
1937 * config/arm/arm-opts.h: New.
1938 * config/arm/genopt.sh: New.
1939 * config/arm/arm-tables.opt: New (generated).
1940 * config/arm/arm.c (arm_handle_option, arm_target_help,
1941 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1942 (all_architectures): Get most table contents from arm-arches.def.
1943 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1944 arm_selected_tune here.
1945 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1946 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1947 (march=, mcpu=, mtune=): Use Enum and Var.
1948 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1949 (arm.o): Update dependencies.
1951 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
1953 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1955 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1956 (write_typed_alloc_defns): Likewise.
1957 (main): Calls write_typed_alloc_defns with output_header.
1959 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
1962 * ira-color.c (setup_profitable_hard_regs): Add comments.
1963 Don't take prohibited hard regs into account.
1964 (setup_conflict_profitable_regs): Rename to
1965 get_conflict_profitable_regs.
1966 (check_hard_reg_p): Check prohibited hard regs.
1968 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1970 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1971 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1972 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1974 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1977 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1978 move from floating point to shift amount register.
1979 (emit_move_sequence): Remove secondary reload support for floating
1980 point to shift amount amount register copies.
1981 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1982 amount register copies.
1983 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1984 register, return false if mode isn't a scalar integer mode.
1985 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1987 2011-04-08 Richard Guenther <rguenther@suse.de>
1989 * gimple.c (gimple_call_flags): Remove kludge.
1991 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1993 * sel-sched.c (sel_region_init): Move call to
1994 sel_setup_region_sched_flags after setup_current_loop_nest.
1996 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
1998 PR rtl-optimization/48272
1999 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2000 init_insn_reg_pressure_info. Adjust a caller.
2001 * sched-int.h (init_insn_reg_pressure_info): Declare.
2002 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2003 when sched-pressure is enabled.
2005 2011-04-08 Richard Guenther <rguenther@suse.de>
2007 * gimple.c (gimple_set_modified): Do not queue calls to
2008 MODIFIED_NORETURN_CALLS here ...
2009 * tree-ssa-operands.c (update_stmt_operands): ... but here.
2011 2011-04-08 Richard Guenther <rguenther@suse.de>
2014 * toplev.c (lang_dependent_init): Do not open asm_out_file
2015 in WPA mode, nor perform debug machinery initialization.
2016 (finalize): Do not unlink asm_out_file in WPA mode.
2018 2011-04-08 Richard Guenther <rguenther@suse.de>
2020 * gimple.h (gimple_call_fntype): New function.
2021 (gimple_call_return_type): Use it.
2022 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2023 * gimple-low.c (gimple_check_call_args): Likewise.
2024 * gimple.c (gimple_call_flags): Likewise.
2025 (gimple_call_arg_flags): Likewise.
2026 (gimple_call_return_flags): Likewise.
2027 * tree-cfg.c (verify_gimple_call): Likewise.
2028 (do_warn_unused_result): Likewise.
2029 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2030 * value-prof.c (gimple_ic_transform): Fix fndecl check.
2032 2011-04-08 Dmitry Melnik <dm@ispras.ru>
2034 PR rtl-optimization/48235
2035 * sel-sched.c (code_motion_process_successors): Recompute the last
2036 insn in basic block if control flow changed.
2037 (code_motion_path_driver): Ditto. Recompute the first insn as well.
2038 Update condition for ilist_remove.
2040 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2042 PR rtl-optimization/48302
2043 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2044 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
2045 it to record added preheader blocks.
2046 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
2047 on to sel_add_loop_preheaders.
2048 (sel_region_init): Move call to setup_current_loop_nest after
2051 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2054 * cfgloop.h (loop_has_exit_edges): New helper.
2055 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2057 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2058 that have no exit edges.
2060 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2062 PR rtl-optimization/48442
2063 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
2064 all callers. Adjust assert.
2066 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2068 PR tree-optimization/48377
2069 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2070 is_packed to true even for types with smaller TYPE_ALIGN than
2073 2011-04-08 Richard Guenther <rguenther@suse.de>
2076 * doc/tm.texi: Re-generate.
2078 2011-04-08 Wei Guozhi <carrot@google.com>
2081 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2082 * config/arm/arm.c (arm_attr_length_push_multi): New function.
2083 * config/arm/arm.md (*push_multi): Change the length computation to
2086 2011-04-08 Anatoly Sokolov <aesok@post.ru>
2088 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2089 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2090 * doc/tm.texi: Regenerate.
2091 * system.h (ASM_OUTPUT_BSS): Poison.
2092 * varasm.c (asm_output_bss): Remove function.
2093 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2095 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2096 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2097 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2098 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2100 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2102 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2104 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2106 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2108 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2111 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2113 * config/m68k/m68k.c (m68k_handle_option): Don't handle
2114 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2115 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2117 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2118 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2119 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2120 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2121 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2122 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2123 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2124 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2125 options. Don't map other m68k options manually. Don't handle
2126 old-style options as canonical.
2127 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2128 * doc/install.texi (m68k-*-*): Document binutils version requirement.
2130 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2132 * basic-block.h (force_nonfallthru): Move to...
2133 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2134 (force_nonfallthru): ...here.
2135 * cfghooks.c (force_nonfallthru): New function.
2136 * cfgrtl.c (force_nonfallthru): Rename into...
2137 (rtl_force_nonfallthru): ...this.
2138 (commit_one_edge_insertion): Do not set AUX field.
2139 (commit_edge_insertions): Do not discover new basic blocks.
2140 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2141 (cfg_layout_rtl_cfg_hooks): Likewise.
2142 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2143 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2144 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2146 2011-04-07 Anatoly Sokolov <aesok@post.ru>
2148 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2151 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2153 * config/i386/sse.md: Update copyright year.
2154 (avxcvtvecmode): Remove.
2155 (sse_movhlps): Merge with *avx_movhlps.
2156 (sse_movlhps): Merge with *avx_movlhps.
2157 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2158 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2159 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2160 (sse_loadhps): Merge with *avx_loadhps.
2161 (sse_storelps): Merge with *avx_storelps.
2162 (sse_loadlps): Merge with *avx_loadlps.
2163 (sse_movss): Merge with *avx_movss.
2164 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2165 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2166 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2167 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2168 (vec_set<mode>_0): Ditto.
2169 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2170 (sse4_1_insertps): Merge with *avx_insertps.
2171 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2172 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2173 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2174 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2175 (sse2_storehpd): Merge with *avx_storehpd.
2176 (sse2_loadhpd): Merge with *avx_loadhpd.
2177 (sse2_loadlpd): Merge with *avx_loadlpd.
2178 (sse2_movsd): Merge with *avx_movsd.
2179 (*vec_concatv2df): Merge with *vec_concatv2df.
2181 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2184 * combine.c (combine_instructions): Add last_combined_insn,
2185 update it if insn is after it, pass it to all try_combine calls.
2186 (try_combine): Add last_combined_insn parameter, pass it instead of
2187 i3 to propagate_for_debug.
2189 2011-04-07 Nick Clifton <nickc@redhat.com>
2191 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2192 to handle MDR <-> data register transfers.
2193 (movhi_internal): Likewise.
2195 2011-04-07 Alan Modra <amodra@gmail.com>
2197 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2198 previous stack info.
2200 2011-04-07 Tom de Vries <tom@codesourcery.com>
2203 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
2204 flow_find_cross_jump. Swap variables to implement backward replacement.
2205 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2207 2011-04-07 Tom de Vries <tom@codesourcery.com>
2210 * cfgcleanup.c (walk_to_nondebug_insn): New function.
2211 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
2213 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2214 src1 or src2. Redirect edges to the last basic block. Update
2215 frequency and count on multiple basic blocks in case of fallthru.
2217 2011-04-07 Tom de Vries <tom@codesourcery.com>
2220 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2222 (old_insns_match_p): Change return type. Replace return false/true
2223 with return dir_none/dir_both. Use can_replace_by.
2224 (flow_find_cross_jump): Add dir_p parameter. Init replacement
2225 direction from dir_p. Register replacement direction in dir, last_dir
2226 and afterlast_dir. Handle new return type of old_insns_match_p using
2227 merge_dir. Return replacement direction in dir_p.
2228 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2229 return type of old_insns_match_p.
2230 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2231 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2232 flow_find_cross_jump.
2233 * basic-block.h (enum replace_direction): New type.
2234 (flow_find_cross_jump): Add parameter to declaration.
2236 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2238 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2239 (AVXMODEDCVTPS2DQ): Ditto.
2240 (VEC_FLOAT_MODE): Ditto.
2241 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
2242 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2243 (<any_logic:code><mode>3): Use VF mode iterator.
2244 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2245 Use VF mode iterator.
2246 (copysign<mode>3): Use VF mode iterator.
2247 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
2248 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2249 (*<any_logic:code><MODEF:mode>3): Merge with
2250 *avx_<any_logic:code><MODEF:mode>3.
2251 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2252 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2253 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2254 (avx_cvtdq2ps<avxmodesuffix>): Remove.
2255 (sse2_cvtdq2ps): Use %v modifier.
2256 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2257 (avx_cvtps2dq<avxmodesuffix>): Remove.
2258 (sse2_cvtps2dq): Use %v modifier.
2259 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2260 (avx_cvttps2dq<avxmodesuffix>): Remove.
2261 (sse2_cvttps2dq): Use %v modifier.
2262 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2263 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2264 (sse2_cvtsd2siq): Fix insn template.
2265 (sse2_cvtsd2siq_2): Ditto.
2266 (sse2_cvttsd2siq): Ditto.
2267 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2268 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2270 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2272 * gcov-io.c: Use GCC Runtime Library Exception.
2274 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2277 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2278 as base_reg whatever register reg has been eliminated to, instead
2279 of hardcoding STACK_POINTER_REGNUM.
2281 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2283 * doc/tm.texi.in: Document C target hooks as separate from general
2285 * doc/tm.texi: Regenerate.
2286 * genhooks.c (struct hook_desc): Add docname field.
2287 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2289 (hook_array): Include c-target.def.
2290 (emit_documentation): Use docname field in output.
2291 (emit_init_macros): Take docname argument. Only emit definitions
2292 for hooks matching docname.
2293 (main): Expect additional arguments in all cases. Pass argument
2294 to emit_init_macros.
2295 * target.def: Move initial macro definitions and comments to
2296 target-hooks-macros.h.
2297 (gcc_targetcm): Move to c-family/c-target.def.
2298 * target.h (targetcm): Move declaration to c-family/c-target.h.
2299 * targhooks.c (default_handle_c_option): Move to
2301 * targhooks.h (default_handle_c_option): Move declaration to
2302 c-family/c-common.h.
2303 * target-hooks-macros.h: New file.
2304 * config.gcc (target_has_targetcm): Define and use to add to
2305 c_target_objs and cxx_target_objs.
2306 * config/default-c.c: New file.
2307 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2308 of target.h and target-def.h.
2309 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2310 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2311 darwin_check_cfstring_format_arg): Make static.
2312 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2313 TARGET_STRING_OBJECT_REF_TYPE_P,
2314 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2315 * config/darwin-protos.h (darwin_objc_construct_string,
2316 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2318 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2319 TARGET_STRING_OBJECT_REF_TYPE_P,
2320 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2321 * config/t-darwin (darwin-c.o): Update dependencies.
2322 * system.h (TARGET_HAS_TARGETCM): Poison.
2323 * Makefile.in (TARGET_H): Update.
2324 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2325 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2326 (default-c.o): New target.
2327 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2328 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2329 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2331 (build/genhooks.o): Update dependencies.
2333 2011-04-06 Richard Guenther <rguenther@suse.de>
2335 * ipa-inline.c (enum inlining_mode): Remove.
2336 (cgraph_flatten): Use some other token.
2337 (cgraph_edge_early_inlinable_p): New function, split out from ...
2338 (cgraph_perform_always_inlining): New function, split out from ...
2339 (cgraph_decide_inlining_incrementally): ... here.
2340 (cgraph_mark_inline_edge): Adjust.
2341 (cgraph_early_inlining): Re-structure.
2342 (pass_early_inline): Require SSA form.
2344 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2345 Julian Brown <julian@codesourcery.com>
2346 Mark Shinwell <shinwell@codesourcery.com>
2348 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2349 LO_REGS only for Thumb-1.
2350 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2351 be used in short instructions when optimising for size on Thumb-2.
2353 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2355 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2356 associated with user returns to be preserved.
2358 2011-04-06 Tristan Gingold <gingold@adacore.com>
2360 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2361 symbol_queue_size, DBXOUT_DECR_NESTING,
2362 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2363 if XCOFF_DEBUGGING_INFO.
2365 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2367 * config/i386/i386.md (attribute isa): New.
2368 (attribute enabled): New.
2369 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2370 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2371 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2372 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2373 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2374 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2375 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2376 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2378 * config/i386/sse.md (VF): New mode iterator.
2382 (SSEMODEF4): Remove.
2383 (attribute sse): Handle V8SF and V4DF modes.
2384 (<absneg:code><mode>2): Use VF mode iterator.
2385 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2387 (<plusminus_insn><mode>3): Use VF mode iterator.
2388 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2389 Use VF mode iterator.
2390 (<sse>_vm<plusminus_insn><mode>3): Merge with
2391 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2392 (mul<mode>3): Use VF mode iterator.
2393 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2394 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2396 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2397 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2398 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2399 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2401 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2402 Use VF1 mode iterator.
2403 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2404 (sqrt<VF2:mode>2): New expander.
2405 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2406 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2407 and sqrtv2df2. Use VF mode iterator.
2408 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2410 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2411 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2412 Use VF1 mode iterator.
2413 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2414 (<smaxmin:code><mode>3): Use VF mode iterator.
2415 (*<smaxmin:code><mode>3_finite): Merge with
2416 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2417 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2418 (<sse>_vm<smaxmin:code><mode>2): Merge with
2419 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2420 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2422 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2424 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2425 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2426 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2427 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2428 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2430 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2431 Use VF_128 mode iterator.
2432 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2434 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2435 VF_128 mode iterator.
2436 (vcond<mode>): Use VF mode iterator.
2437 * config/i386/predicates.md (sse_comparison_operator): Merge with
2438 avx_comparison_float_operator. Do not declare as special_predicate.
2439 * config/i386/i386.c (struct builtin_description): Update for renamed
2441 (ix86_expand_args_builtin): Ditto.
2442 (ix86_expand_sse_compare_mask): Ditto.
2444 2011-04-06 Richard Guenther <rguenther@suse.de>
2446 * tree-inline.c (estimate_num_insns): For calls simply account
2447 for all passed arguments and a used return value.
2449 2011-04-06 Richard Guenther <rguenther@suse.de>
2451 PR tree-optimization/47663
2452 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2453 call_stmt_time fields.
2454 (cgraph_edge_inlinable_p): Declare.
2455 (cgraph_edge_recursive_p): New inline function.
2456 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2457 (cgraph_clone_edge): Copy it.
2458 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2459 Account for call stmt time.
2460 (cgraph_estimate_time_after_inlining): Take edge argument.
2461 (cgraph_estimate_edge_growth): Account call stmt size.
2462 (cgraph_estimate_size_after_inlining): Take edge argument.
2463 (cgraph_mark_inline_edge): Adjust.
2464 (cgraph_check_inline_limits): Likewise.
2465 (cgraph_recursive_inlining_p): Remove.
2466 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2467 (cgraph_decide_recursive_inlining): Take edge argument and
2469 (cgraph_decide_inlining_of_small_functions): Do not avoid
2470 diags for recursive inlining here.
2471 (cgraph_flatten): Adjust.
2472 (cgraph_decide_inlining_incrementally): Likewise.
2473 (estimate_function_body_sizes): Remove call cost handling.
2474 (compute_inline_parameters): Initialize caller edge call costs.
2475 (cgraph_estimate_edge_growth): New function.
2476 (cgraph_estimate_growth): Use it.
2477 (cgraph_edge_badness): Likewise.
2478 (cgraph_check_inline_limits): Take an edge argument.
2479 (cgraph_decide_inlining_of_small_functions): Adjust.
2480 (cgraph_decide_inlining): Likewise.
2481 * tree-inline.c (estimate_num_insns): Only account for call
2482 return value if it is used.
2483 (expand_call_inline): Avoid diagnostics on recursive inline
2485 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2486 (input_edge): Input edge call costs.
2488 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2490 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2492 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2494 * doc/invoke.texi (Spec Files): Fix typo.
2496 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2498 * profile.c (branch_prob): Move declaration of local variable. Remove
2499 obsolete ??? comment. Expand the location explicitly instead of using
2500 the LOCATION_FILE and LOCATION_LINE macros.
2502 2011-04-06 Wei Guozhi <carrot@google.com>
2505 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2506 (arm_cond_branch): Likewise.
2507 (arm_cond_branch_reversed): Likewise.
2508 (arm_jump): Likewise.
2509 (push_multi): Likewise.
2510 * config/arm/constraints.md (Py): New constraint.
2512 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2515 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2517 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2518 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2519 #ifdef DBX_DEBUGGING_INFO.
2521 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2524 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2525 if old and new states differ.
2527 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2529 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2530 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2531 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2532 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2533 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2535 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2536 ColdFire options to -mcpu= options.
2538 2011-04-05 Jeff Law <law@redhat.com>
2540 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2541 check if BB is a successor of LOOP->header and return
2542 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2544 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2546 * cprop.c (struct reg_use): Remove.
2547 (reg_use_table): Make an array of RTX.
2548 (find_used_regs, constprop_register, local_cprop_pass,
2549 bypass_block): Simplify users of reg_use_table.
2550 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2551 on one of the uses found by find_used_regs.
2553 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2556 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2559 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2561 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2563 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2565 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2568 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2570 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2572 * combine.c: Include obstack.h.
2573 (struct insn_link): Define.
2574 (uid_log_links): Adjust type.
2575 (FOR_EACH_LOG_LINK): New macro.
2576 (insn_link_obstack): Declare.
2577 (alloc_insn_link): Define.
2578 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2579 type of link variables.
2580 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2581 (try_combine, record_promoted_values, distribute_notes): Likewise.
2582 (distribute_links): Likewise. Tweak prototype.
2583 (clear_log_links): Delete.
2584 (adjust_for_new_dest): Call alloc_insn_link.
2585 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2587 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2589 * gcse.c (modify_mem_list): Convert to an array of VECs.
2590 (canon_modify_mem_list, compute_transp): Tweak formatting.
2591 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2592 (load_killed_in_block_p): Likewise.
2593 (record_last_mem_set_info): Likewise.
2594 (clear_modify_mem_tables): Likewise.
2596 2011-04-05 Tom de Vries <tom@codesourcery.com>
2599 * function.c (emit_use_return_register_into_block): Only define if
2602 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2604 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2606 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2608 * config/rx/rx-opts.h: New.
2609 * config/rx/rx.c (rx_cpu_type): Remove.
2610 (rx_handle_option): Don't assert that global structures are in
2611 use. Access variables via opts pointer. Defer most handling of
2612 OPT_mint_register_. Use error_at.
2613 (rx_option_override): Handle deferred OPT_mint_register_ here.
2614 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2615 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2616 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2617 (rx_cpu_types): New Enum and EnumValue entries.
2618 (mint-register=): Use Defer and use Var accordingly.
2620 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2622 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2623 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2624 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2626 (debug_free_queue, debug_nesting, symbol_queue_index):
2628 * dbxout.c: ...to here. Make static.
2630 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2632 * gcse.c (modify_pair): Define. Define a VEC of it.
2633 (canon_modify_mem_list): Convert to an array of VECs.
2634 (free_insn_expr_list_list): Delete.
2635 (clear_modify_mem_tables): Call VEC_free instead.
2636 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2637 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2638 (canon_list_insert, compute_transp): Likewise.
2640 2011-04-05 Tom de Vries <tom@codesourcery.com>
2643 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2646 2011-04-05 Tom de Vries <tom@codesourcery.com>
2649 * function.c (emit_use_return_register_into_block): New function.
2650 (thread_prologue_and_epilogue_insns): Use
2651 emit_use_return_register_into_block.
2653 2011-04-05 Tom de Vries <tom@codesourcery.com>
2656 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2659 2011-04-05 Tom de Vries <tom@codesourcery.com>
2661 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2663 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
2665 * config/arm/arm.md (define_constants for unspec): Replace with
2667 (define_constants for unspecv): Replace with define_c_enum.
2668 * config/arm/neon.md (define_constants for unspec): Replace with
2671 2011-04-04 Richard Henderson <rth@redhat.com>
2674 * dwarf2out.c (output_line_info): Always emit line info from
2675 at least one section.
2676 (dwarf2out_init): Create text_section_line_info here ...
2677 (set_cur_line_info_table): ... not here.
2679 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
2682 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2685 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2687 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
2689 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2690 (expr_equiv_p): Remove.
2691 (insert_set_in_table): Look at <dest, src> pair instead of expr.
2692 (hash_scan_set): Update call to insert_set_in_table.
2693 (dump_hash_table): Dump <dest, src> pair.
2694 (lookup_set): Simplify. Lookup <dest, src> pair.
2695 (compute_transp): Remove, fold heavily simplified code into...
2696 (compute_local_properties): ...here. Expect COMP and TRANSP
2698 (find_avail_set): Take set directly from struct expr.
2699 (find_bypass-set): Likewise.
2700 (bypass_block): Likewise.
2701 (cprop_insn): Likewise. Remove redundant INSN_P test.
2703 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2704 checks on form of COND from find_implicit_sets to here.
2705 (find_implicit_sets): Cleanup control flow. Split critical edges
2706 if it exposes implicit sets. Allocate/resize implicit_sets as
2708 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2709 changed something. Run df_analyze after find_implicit_sets if any
2710 edges were split. Do not allocate implicit_sets here.
2712 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2713 (gcse_obstack): Renamed to cprop_obstack.
2714 (GNEW, GNEWVEC, GNEWVAR): Remove.
2716 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2717 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2718 (gcse_alloc): Likewise, and rename to cprop_alloc.
2719 (alloc_gcse_men, free_gcse_mem): Remove.
2720 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2721 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2722 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2724 * cprop.c (oprs_not_set_p): Remove.
2725 (mark_set, mark_clobber): Remove.
2726 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2727 (reg_not_set_p): New function.
2728 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2729 (cprop_insn): Likewise.
2730 (cprop_jump): Use FOR_EACH_EDGE.
2732 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
2735 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2736 (rank_for_schedule): Use scheduled_insns vector instead of
2737 last_scheduled_insn.
2738 (ok_for_early_queue_removal): Likewise.
2739 (queue_to_ready): Search forward in nonscheduled_insns_begin if
2741 (choose_ready): Likewise.
2742 (commit_schedule): Use VEC_iterate.
2743 (schedule_block): Initialize nonscheduled_insns_begin. If we have
2744 a dbg_cnt, use it and ensure the first insn is in the ready list.
2745 (haifa_sched_init): Allocate scheduled_insns.
2746 (sched_extend_ready_list): Don't allocate it; reserve space.
2747 (haifa_sched_finish): Free it.
2749 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2751 * optc-gen.awk: Always remove type from Variable entry before
2752 recording in var_seen.
2754 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
2756 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2757 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2758 call to tidy_fallthru_edges.
2760 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2762 * doc/options.texi (ToLower): Document.
2763 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2764 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2765 * opts.h (cl_option): Add cl_tolower field.
2766 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2767 arguments with lowercase strings.
2768 * config/rx/rx.opt (mcpu=): Add ToLower.
2769 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2772 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2774 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2776 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2778 * config/vax/vax.c: Include reload.h.
2780 2011-04-04 Anatoly Sokolov <aesok@post.ru>
2782 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2783 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2784 (sparc_preferred_reload_class): New function.
2786 2011-04-04 Jakub Jelinek <jakub@redhat.com>
2789 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2790 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2792 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
2794 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2795 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2797 2011-04-03 Anatoly Sokolov <aesok@post.ru>
2799 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2800 (ASM_OUTPUT_ALIGNED_BSS): Define.
2802 2011-04-03 Michael Matz <matz@suse.de>
2804 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2805 and next_slot members.
2806 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2807 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2808 (lto_streamer_cache_append): Declare.
2809 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2810 unsigned index, remove offset parameter, ensure that we append
2811 or update existing entries.
2812 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2813 parameter, update next_slot for append.
2814 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2816 (lto_streamer_cache_insert_at): Likewise.
2817 (lto_streamer_cache_append): New function.
2818 (lto_streamer_cache_lookup): Use unsigned index.
2819 (lto_streamer_cache_get): Likewise.
2820 (lto_record_common_node): Don't test tree_node_can_be_shared.
2821 (preload_common_node): Adjust call to lto_streamer_cache_insert.
2822 (lto_streamer_cache_delete): Don't free offsets member.
2823 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2824 (lto_output_string_with_length): Use lto_output_data_stream.
2825 (lto_output_tree_header): Remove ix parameter, don't write it.
2826 (lto_output_builtin_tree): Likewise.
2827 (lto_write_tree): Adjust callers to above, don't track and write
2828 offset, write unsigned index.
2829 (output_unreferenced_globals): Don't emit all global vars.
2830 (write_global_references): Use unsigned indices.
2831 (lto_output_decl_state_refs): Likewise.
2832 (write_symbol): Likewise.
2833 * lto-streamer-in.c (lto_input_chain): Move earlier.
2834 (input_function): Use unsigned index.
2835 (input_alias_pairs): Don't read and then ignore all global vars.
2836 (lto_materialize_tree): Remove ix_p parameter, don't read index,
2837 don't pass it back, use lto_streamer_cache_append.
2838 (lto_register_var_decl_in_symtab): Use unsigned index.
2839 (lto_register_function_decl_in_symtab): Likewise.
2840 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2842 (lto_get_builtin_tree): Don't read index, use
2843 lto_streamer_cache_append.
2844 (lto_read_tree): Adjust call to lto_materialize_tree.
2846 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2847 don't use function calls in arguments to MIN.
2849 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2852 * gimple.c (gimple_type_leader_entry): Mark deletable.
2854 2011-04-03 Alan Modra <amodra@gmail.com>
2856 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2858 2011-04-03 Michael Matz <matz@suse.de>
2860 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2862 * tree.h (tree_decl_non_common.vindex): Adjust comment.
2864 2011-04-03 Michael Matz <matz@suse.de>
2866 * cgraphbuild.c (record_reference): Canonicalize constructor values.
2867 * gimple-fold.c (canonicalize_constructor_val): Accept being called
2868 without function context.
2869 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2870 current_function_decl and cfun.
2872 2011-04-03 Michael Matz <matz@suse.de>
2874 * tree.c (decl_init_priority_insert): Don't create entry for
2876 (decl_fini_priority_insert): Ditto.
2877 (fields_compatible_p, find_compatible_field): Remove.
2878 * tree.h (fields_compatible_p, find_compatible_field): Remove.
2879 * gimple.c (gimple_compare_field_offset): Adjust block comment.
2881 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
2883 * combine.c (try_combine): Remove useless local variable.
2885 2011-04-03 Richard Guenther <rguenther@suse.de>
2886 Ira Rosen <ira.rosen@linaro.org>
2888 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2889 non-variable offsets and compare the remaining bases of the two
2890 accesses instead of looking for exact same data-ref.
2892 2011-04-02 Kai Tietz <ktietz@redhat.com>
2895 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2897 * i386.c (ix86_is_msabi_thiscall): New helper function.
2898 (ix86_is_type_thiscall): New helper function.
2899 (ix86_comp_type_attributes): Handle thiscall for method-functions
2901 (init_cumulative_args): Likewise.
2902 (find_drap_reg): Likewise.
2903 (ix86_static_chain): Likewise.
2904 (x86_this_parameter): Likewise.
2905 (x86_output_mi_thunk): Likewise.
2907 2011-04-01 Olivier Hainque <hainque@adacore.com>
2908 Nicolas Setton <setton@adacore.com>
2909 Eric Botcazou <ebotcazou@adacore.com>
2911 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2912 (add_gnat_descriptive_type_attribute): New function.
2913 (gen_array_type_die): Call it.
2914 (gen_enumeration_type_die): Likewise.
2915 (gen_struct_or_union_type_die): Likewise.
2916 (modified_type_die): Likewise.
2917 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2918 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2919 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2921 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2924 * dwarf2out.c (resolve_addr): Don't call force_decl_die
2925 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2928 2011-03-17 Richard Guenther <rguenther@suse.de>
2931 * lto-cgraph.c (input_overwrite_node): Clear the abstract
2932 origin for decls in other ltrans units.
2933 (input_varpool_node): Likewise.
2935 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2938 * expr.c (expand_assignment): Handle all possibilities
2939 if TO_RTX is CONCAT.
2940 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2941 (store_split_bit_field): If SUBREG_REG (op0) or
2942 op0 itself has smaller mode than word, return it
2943 for offset 0 and const0_rtx for out-of-bounds stores.
2944 If word is const0_rtx, skip it.
2946 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
2948 * config/h8300/h8300.c (print_operand_address): Rename to...
2949 (h8300_print_operand_address): ...this. Make static. Adjust comments.
2950 Call h8300_print_operand and h8300_print_operand_address instead of
2951 print_operand and print_operand_address. Declare.
2952 (print_operand): Renake to...
2953 (h8300_print_operand): ...this. Make static. Adjust comments.
2954 Call h8300_print_operand instead of print_operand. Declare.
2955 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2956 (h8300_register_move_cost): Likewise.
2957 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2958 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2959 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2960 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2961 * config/h8300/h8300-protos.h (print_operand): Delete.
2962 (print_operand_address): Delete.
2964 2011-04-01 Richard Henderson <rth@redhat.com>
2967 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2968 in strict mode before dwarf4. Re-order tests to early out
2969 before switching sections.
2971 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
2973 * config/h8300/constraints.md: New file.
2974 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
2975 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2976 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2977 * config/h8300/predicates.md (bit_operand): Likewise.
2978 (incdec_operand): Use satisfies_constraint_M and
2979 satisfies_constraint_O. Don't use C code block.
2980 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2981 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2982 (compute_mov_length): Use satisfies_constraint_G.
2983 (fix_bit_operand): Use satisfies_constraint_U.
2984 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2985 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2986 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2987 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2988 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2989 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2990 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2991 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2992 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2993 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2994 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2995 (EXTRA_MEMORY_CONSTRAINT): Delete.
2997 2011-04-01 Andrew Pinski <pinskia@gmail.com>
2998 Michael Meissner <meissner@linux.vnet.ibm.com>
3001 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3002 operands, as per the specifications.
3004 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3005 (vec_extract_evenv4sf): Ditto.
3006 (vec_extract_evenv8hi): Ditto.
3007 (vec_extract_evenv16qi): Ditto.
3008 (vec_extract_oddv4si): Ditto.
3010 2011-03-31 Mark Wielaard <mjw@redhat.com>
3012 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3013 high_pc attribute if the CU has no associated code. Only output
3014 DW_AT_entry_pc for CU if not generating strict dwarf and
3017 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
3019 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3020 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3022 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3023 * final.c (final_start_function): Call the new function rather
3024 than using a NULL argument for dwarf2out_frame_debug.
3026 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3027 that contains the prologue.
3029 * haifa-sched.c (queue_insn): New arg REASON. All callers
3030 changed. Print it in debugging output.
3032 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3034 * sched-ebb.c (begin_schedule_ready): Remove second argument.
3035 Split most of the code into...
3036 (begin_move_insn): ... here. New function.
3037 (ebb_sched_info): Add a pointer to it.
3038 * haifa-sched.c (scheduled_insns): New static variable.
3039 (sched_extend_ready_list): Allocate it.
3040 (schedule_block): Use it to record the order of scheduled insns.
3041 Perform RTL changes to move insns only after all scheduling
3042 decisions have been made.
3043 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3044 begin_move_insn field.
3045 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3046 * sched-int.h (struct haifa_sched_info): Remove second argument
3047 from begin_schedule_ready hook. Add new member begin_move_insn.
3048 * sched-rgn.c (begin_schedule_ready): Remove second argument.
3049 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3051 * haifa-sched.c (prune_ready_list): New function, broken out of
3053 (schedule_block): Use it.
3055 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3057 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3059 2011-04-01 Kai Tietz <ktietz@redhat.com>
3061 * config.gcc (*-*-mingw*): Allow as option the
3062 posix threading model.
3063 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
3064 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3066 (CPP_SPEC): Add pthread/no-pthread handling.
3067 (LIB_SPEC): Likewise.
3068 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3069 (LIB_SPEC): Likewise.
3070 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3071 flag to pass -pthread option for shared libgcc build.
3072 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3073 for shared libgcc build.
3074 * config/i386/t-mingw-pthread: New file.
3075 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3076 New define to enable use of library pthread by default.
3077 * config/i386/mingw.opt (pthread): New driver option.
3078 (no-pthread): New driver option.
3079 * config/i386/cygming.opt: Make sure trailing empty line is retained.
3080 * config/i386/mingw-w64.opt: Likewise.
3082 2011-04-01 Gary Funck <gary@intrepid.com>
3084 * c-decl.c (grokdeclarator): Fix formatting.
3086 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3088 * expr.c (emit_block_move_via_movmem): Use n_generator_args
3089 instead of n_operands.
3090 (set_storage_via_setmem): Likewise.
3091 * optabs.c (maybe_gen_insn): Likewise.
3092 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3093 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3094 (mips_expand_builtin_direct): Likewise.
3095 * config/spu/spu.c (expand_builtin_args): Likewise.
3097 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3099 * recog.h (insn_data_d): Add n_generator_args.
3100 * genoutput.c (data): Likewise.
3101 (output_insn_data): Print it.
3102 (max_opno, num_dups): Delete.
3103 (scan_operands): Just fill in "d->operand[...]".
3104 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3106 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3108 * gensupport.h (pattern_stats): New structure.
3109 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3110 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3111 (max_operand_1, max_operand_vec): Delete.
3112 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3114 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
3116 * emit-rtl.c (emit_pattern_after_setloc): New function.
3117 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3118 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3119 (emit_pattern_after): New function.
3120 (emit_insn_after, emit_jump_insn_after): Call it.
3121 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3122 (emit_pattern_before_setloc): New function.
3123 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3124 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3126 (emit_pattern_before): New function.
3127 (emit_insn_before, emit_jump_insn_before): Call it.
3128 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3130 2011-03-31 Richard Henderson <rth@redhat.com>
3132 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3133 (dw_separate_line_info_entry): Remove.
3134 (enum dw_line_info_opcode): New.
3135 (dw_line_info_entry): Use it.
3136 (dw_line_info_table, dw_line_info_table_p): New.
3137 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3138 (line_info_table, line_info_label_num): Remove.
3139 (line_info_table_in_use): Remove.
3140 (separate_line_info_table): Remove.
3141 (separate_line_info_table_allocated): Remove.
3142 (separate_line_info_table_in_use): Remove.
3143 (LINE_INFO_TABLE_INCREMENT): Remove.
3144 (line_info_label_num): New.
3145 (cur_line_info_table): New.
3146 (text_section_line_info, cold_text_section_line_info): New.
3147 (separate_line_info): New.
3148 (SEPARATE_LINE_CODE_LABEL): Remove.
3149 (print_dwarf_line_table): Remove.
3150 (debug_dwarf): Don't dump it.
3151 (output_one_line_info_table): New.
3152 (output_line_info): Use it.
3153 (new_line_info_table): New.
3154 (set_cur_line_info_table): New.
3155 (dwarf2out_switch_text_section): Use it.
3156 (dwarf2out_begin_function): Likewise.
3157 (push_dw_line_info_entry): New.
3158 (dwarf2out_source_line): Rewrite for new line info tables.
3159 (dwarf2out_init): Remove dead initailizations.
3161 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3163 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3165 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3166 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3167 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3168 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3169 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3170 * opt-functions.awk (flag_init, switch_bit_fields): New.
3171 (switch_flags): Don't handle flags moved to bit-fields. Don't
3172 generate CL_MISSING_OK or CL_SAVE.
3173 * optc-gen.awk: Update to generate bit-field output as well as
3175 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3176 bit-field instead of CL_REJECT_DRIVER flag.
3177 * opts-common.c (generate_canonical_option,
3178 decode_cmdline_option): Use bit-fields instead of CL_* flags.
3179 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3180 instead of CL_REJECT_NEGATIVE flag.
3181 * toplev.c (print_switch_values): Use cl_report bit-field instead
3184 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3186 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3187 a zero minimum index only if it is redundant.
3189 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
3191 PR rtl-optimization/48381
3192 * ira-color.c (assign_hard_reg): Use hard reg set intersection
3193 instead of ira_class_hard_reg_index for calculating conflicting
3196 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
3198 * cprop.c: Clean up hash table building.
3199 (reg_avail_info): Remove.
3200 (oprs_available_p): Remove.
3201 (record_last_reg_set_info): Remove.
3202 (record_last_set_info): Remove.
3203 (reg_available_p): New function.
3204 (gcse_constant_p): Do not treat unfolded conditions as constants.
3205 (make_set_regs_unavailable): New function.
3206 (hash_scan_set): Simplify with new reg_available_p.
3207 (compute_hash_table_work): Traverse insns stream only once.
3208 Do not compute reg_avail_info. Traverse insns in reverse order.
3209 Record implicit sets after recording explicit sets from the block.
3211 2011-03-31 Michael Matz <matz@suse.de>
3213 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3215 2011-03-31 Anatoly Sokolov <aesok@post.ru>
3217 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3218 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3219 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3220 (h8300_mode_dependent_address_p): New function.
3221 (h8300_get_index): Make static.
3223 2011-03-31 Jeff Law <law@redhat.com>
3225 * reload1.c (elimination_effects): Fix typo in recent change.
3227 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3228 typo potentially leading to null pointer dereference.
3230 * caller-save.c (new_saved_hard_reg): Eliminate return value.
3231 (setup_save_areas): Corresponding changes to avoid useless
3234 * jump.c (reversed_comparison_code_parts): Avoid successive return
3235 statements when REVERSE_CONDITION is defined.
3237 * expr.c (expand_assignment): Avoid useless assignments.
3238 (expand_expr_real_1): Likewise.
3239 (expand_expr_real_2): Avoid useless statements.
3241 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3243 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3245 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3248 * stmt.c (expand_expr_stmt): Avoid useless assignment.
3250 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3253 * doc/tm.texi.in (TARGET_VERSION): Remove.
3254 * doc/tm.texi: Regenerate.
3255 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3256 * collect2.c (main): Don't use TARGET_VERSION.
3257 * mips-tdump.c (main): Don't use TARGET_VERSION.
3258 * mips-tfile.c (main): Don't use TARGET_VERSION.
3259 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3260 * config/rs6000/vxworksae.h: Remove.
3261 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3262 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3263 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3264 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3265 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3266 * config/arm/arm.h (TARGET_VERSION): Remove.
3267 * config/arm/coff.h (TARGET_VERSION): Remove.
3268 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3269 * config/arm/elf.h (TARGET_VERSION): Remove.
3270 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3271 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3272 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3273 * config/arm/pe.h (TARGET_VERSION): Remove.
3274 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3275 * config/arm/semi.h (TARGET_VERSION): Remove.
3276 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3277 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3278 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3279 * config/avr/avr.h (TARGET_VERSION): Remove.
3280 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3281 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3282 * config/frv/frv.h (TARGET_VERSION): Remove.
3283 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3284 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3285 * config/i386/darwin.h (TARGET_VERSION): Remove.
3286 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3287 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3288 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3289 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3290 * config/i386/gnu.h (TARGET_VERSION): Remove.
3291 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3292 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3293 * config/i386/linux.h (TARGET_VERSION): Remove.
3294 * config/i386/linux64.h (TARGET_VERSION): Remove.
3295 * config/i386/lynx.h (TARGET_VERSION): Remove.
3296 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3297 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3298 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3299 * config/i386/netware.h (TARGET_VERSION): Remove.
3300 * config/i386/nto.h (TARGET_VERSION): Remove.
3301 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3302 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3303 * config/ia64/elf.h (TARGET_VERSION): Remove.
3304 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3305 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3306 * config/ia64/linux.h (TARGET_VERSION): Remove.
3307 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3308 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3309 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3310 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3311 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3312 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3313 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3314 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3315 * config/m68k/linux.h (TARGET_VERSION): Remove.
3316 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3317 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3318 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3319 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3320 * config/mep/mep.h (TARGET_VERSION): Remove.
3321 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3322 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3323 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3324 * config/mips/linux.h (TARGET_VERSION): Remove.
3325 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3326 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3327 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3328 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3329 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3330 * config/pa/pa.h (TARGET_VERSION): Remove.
3331 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3332 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3333 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3334 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3335 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3336 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3337 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3338 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3339 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3340 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3341 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3342 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3343 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3344 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3345 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3346 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3347 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3348 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3349 * config/s390/linux.h (TARGET_VERSION): Remove.
3350 * config/s390/s390.h (TARGET_VERSION): Remove.
3351 * config/s390/tpf.h (TARGET_VERSION): Remove.
3352 * config/score/score.h (TARGET_VERSION): Remove.
3353 * config/sh/linux.h (TARGET_VERSION): Remove.
3354 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3355 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3356 * config/sh/sh.h (TARGET_VERSION): Remove.
3357 * config/sh/sh64.h (TARGET_VERSION): Remove.
3358 * config/sh/superh.h (TARGET_VERSION): Remove.
3359 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3360 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3361 * config/sparc/linux.h (TARGET_VERSION): Remove.
3362 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3363 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3364 TARGET_NAME32, TARGET_NAME): Remove.
3365 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3366 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3367 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3368 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3369 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3370 * config/spu/spu.h (TARGET_VERSION): Remove.
3371 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3372 * config/v850/v850.h (TARGET_VERSION): Remove.
3373 * config/vax/linux.h (TARGET_VERSION): Remove.
3374 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3375 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3376 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3378 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3381 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3382 frame-related from frame-unrelated adjustments to the stack pointer.
3384 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3386 * common.opt (fdebug-types-section): Move earlier.
3387 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3389 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3391 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3394 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3396 * tree.h (CASE_CHAIN): Define.
3397 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3398 (gimple_redirect_edge_and_branch): Likewise.
3400 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3403 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3406 2011-03-30 Jeff Law <law@redhat.com>
3408 * PR bootstrap/48371
3409 * reload1.c (reload): Fix botch in last change.
3411 * reload.h (struct reload): Fix typo introduced in last change.
3413 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3415 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3416 Undocumented. Remove help text.
3417 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3420 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3422 * doc/options.texi (NegativeAlias): Document.
3423 (Alias): Mention NegativeAlias.
3424 * opt-functions.awk: Handle NegativeAlias.
3425 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3426 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3427 * opts.h (CL_NEGATIVE_ALIAS): Define.
3428 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3429 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3431 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3433 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3434 mno-spe and mno-isel instead of mspe=no and -misel=no.
3436 2011-03-29 Mark Wielaard <mjw@redhat.com>
3438 * common.opt (fdebug-types-section): New flag.
3439 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3440 * dwarf2out.c (use_debug_types): New define.
3441 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3442 (print_die): Guard output of type unit signatures using
3444 (build_abbrev_table): Replace assert of dwarf_version >= 4
3445 with assert on use_debug_types.
3446 (size_of_die): Likewise.
3447 (unmark_dies): Likewise.
3448 (value_format): Decide AT_ref_external form on use_debug_types.
3449 (output_die): Replace dwarf_version version check guard with
3450 use_debug_types where appropriate.
3451 (modified_type_die): Likewise.
3452 (gen_reference_type_die): Likewise.
3453 (dwarf2out_start_source_file): Likewise.
3454 (dwarf2out_end_source_file): Likewise.
3455 (prune_unused_types_walk_attribs): Likewise.
3456 (dwarf2out_finish): Likewise.
3458 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3460 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3462 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3464 PR rtl-optimization/48332
3465 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3466 mode of input operand N and modeN to its actual mode.
3468 2011-03-30 Jeff Law <law@redhat.com>
3470 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3471 define accessor macro.
3472 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3473 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3474 (reg_equiv_init): Likewise.
3475 (reg_equivs_size): New variable.
3476 (reg_equiv_init_size): Remove.
3477 (allocate_initial_values): Move prototype to here from....
3478 * integrate.h (allocate_initial_values): Remove prototype.
3479 * integrate.c: Include reload.h.
3480 (allocate_initial_values): Corresponding changes.
3481 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3482 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3483 (update_equiv_regs): Corresponding changes.
3484 (ira): Corresponding changes.
3485 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3486 (push_secondary_reload): Corresponding changes.
3487 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3488 (make_memloc, find_reloads_address): Corresponding changes.
3489 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3490 (find_reloads_address_1): Corresponding changes.
3491 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3492 (refers_to_regno_for_reload_p): Corresponding changes.
3493 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3494 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3495 * reload1.c: Include ggc.h.
3496 (grow_reg_equivs): New function.
3497 (replace_pseudos_in, reload): Corresponding changes.
3498 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3499 (eliminate_regs_1, elimination_effects): Corresponding changes.
3500 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3501 (delete_output_reload): Likewise.
3502 * caller-save.c (mark_referenced_regs): Corresponding changes.
3503 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3504 * frv/predicates.md (frv_load_operand): Corresponding changes.
3505 * microblaze/microblaze.c (double_memory_operand): Corresponding
3507 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3508 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3509 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3510 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3511 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3513 * pa/pa.c (emit_move_sequence): Corresponding changes.
3514 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3516 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3519 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3520 structure modes. Don't check neon_vector_mem_operand for
3521 vector or structure modes.
3523 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3524 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3527 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3528 operand 1 and reshuffle the operands to match.
3529 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3531 2011-03-30 Christian Schüler <cschueler@gmx.de>
3534 * config/c.opt (F): Added 'Driver' to -F option.
3537 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3539 * config/darwin.opt: Added '-arch' option.
3541 2011-03-30 Nick Clifton <nickc@redhat.com>
3543 * config/rx/rx.md: Add peepholes and patterns to combine
3544 extending loads and simple arithmetic instructions.
3545 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3546 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3547 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3548 modes to use pre-decrement and post-increment addressing.
3549 (rx_is_restricted_memory_address): Add range checking of REG+INT
3551 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3552 (rx_memory_move_cost): Adjust cost of stores.
3553 (rx_adjust_insn_length): New function.
3555 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3558 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3559 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3560 matching arg00/arg01 types.
3562 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3564 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3565 last_location to UNKNOWN_LOCATION.
3567 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3570 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3573 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3574 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3577 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3579 (sparc_cpu): Likewise.
3580 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3583 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3587 PR rtl-optimization/48345
3588 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3589 hard regs for given mode from profitable regs when doing secondary
3592 2011-03-29 Jeff Law <law@redhat.com>
3595 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3596 do_not_duplicate field.
3597 (lookup_redirection_data): Corresponding changes.
3598 (create_duplicates): Always create a template block.
3599 (redirect_edges): Remove code which reused the original block
3600 when it was going to become unreachable code.
3601 (thread_block): Don't set do_not_duplicate field.
3603 2011-03-29 Joseph Myers <joseph@codesourcery.com>
3605 * lto-opts.c (register_user_option_p, lto_register_user_option):
3606 Make type argument unsigned.
3607 * lto-streamer.h (lto_register_user_option): Make type argument
3609 * opth-gen.awk: Make CL_* macros unsigned.
3610 * opts-common.c (find_opt): Make lang_mask argument unsigned.
3611 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3612 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3613 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3614 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3615 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3616 (find_opt): Make lang_mask argument unsigned.
3618 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3620 PR rtl-optimization/48331
3621 PR rtl-optimization/48334
3622 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3623 for any used algorithm.
3625 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3627 * ira-conflicts.c (build_object_conflicts): Add unused attribute
3630 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
3632 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3633 (alpha_option_override): Don't set alpha_sr_alias_set.
3634 (emit_frame_store_1): Use gen_frame_mem rather than calling
3636 (alpha_expand_epilogue): Ditto.
3638 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
3640 PR tree-optimization/48290
3641 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3642 vectorization, check that relevant phis in the basic block after
3643 the inner loop are really inner loop's exit phis.
3645 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
3648 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3649 (cached_dw_loc_list_def): New structure.
3650 (cached_dw_loc_list): New typedef.
3651 (cached_dw_loc_list_table): New variable.
3652 (cached_dw_loc_list_table_hash): New function.
3653 (cached_dw_loc_list_table_eq): Likewise.
3654 (add_location_or_const_value_attribute): Take a bool cache_p.
3655 Cache the list when the parameter is true.
3656 (gen_formal_parameter_die): Update caller.
3657 (gen_variable_die): Likewise.
3658 (dwarf2out_finish): Likewise.
3659 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3660 while generating debug info for the decl.
3661 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3662 (dwarf2out_init): Initialize cached_dw_loc_list_table.
3663 (resolve_addr): Cache the result of resolving a chain of
3666 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
3668 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3669 conflict object hard regset nodes have intersecting hard reg sets.
3671 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3672 after regstat_init_n_sets_and_refs.
3674 * ira.c: Add more comments at the top.
3675 (setup_stack_reg_pressure_class, setup_pressure_classes):
3676 Add comments how we compute the register pressure classes.
3677 (setup_allocno_and_important_classes): Add more comments.
3678 (setup_class_translate_array, reorder_important_classes)
3679 (setup_reg_class_relations): Add comments.
3681 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
3684 * ira-color.c: Add 2011 to the Copyright line.
3685 (assign_hard_reg): Add more comments.
3686 (improve_allocation): Ditto.
3688 * ira-costs.c: Add 2011 to the Copyright line.
3689 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3691 (setup_regno_cost_classes_by_mode): Ditto.
3693 Initial patches from ira-improv branch:
3695 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3697 * ira-build.c (ira_create_object): Remove initialization of
3698 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
3699 (ira_create_allocno): Remove initialization of
3700 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3701 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3702 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3703 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3704 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3705 Initialize ALLOCNO_ADD_DATA.
3706 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3707 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3709 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
3710 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3712 * ira.c (ira_reallocate): Remove.
3713 (setup_pressure_classes): Call
3714 ira_init_register_move_cost_if_necessary. Use
3715 ira_register_move_cost instead of ira_get_register_move_cost.
3716 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3717 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3719 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3720 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3721 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3722 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3723 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3724 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3726 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3727 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3728 (struct allocno_color_data): New.
3729 (allocno_color_data_t): New typedef.
3730 (allocno_color_data): New definition.
3731 (ALLOCNO_COLOR_DATA): New macro.
3732 (struct object_color_data): New.
3733 (object_color_data_t): New typedef.
3734 (object_color_data): New definition.
3735 (OBJECT_COLOR_DATA): New macro.
3736 (update_copy_costs, calculate_allocno_spill_cost): Call
3737 ira_init_register_move_cost_if_necessary. Use
3738 ira_register_move_cost instead of ira_get_register_move_cost.
3739 (move_spill_restore, update_curr_costs): Ditto.
3740 (allocno_spill_priority): Make it inline.
3741 (color_pass): Allocate and free allocno_color_dat and object_color_data.
3742 (struct coalesce_data, coalesce_data_t): New.
3743 (allocno_coalesce_data): New definition.
3744 (ALLOCNO_COALESCE_DATA): New macro.
3745 (merge_allocnos, coalesced_allocno_conflict_p): Use
3746 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3747 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3748 (coalesce_allocnos): Ditto.
3749 (setup_coalesced_allocno_costs_and_nums): Ditto.
3750 (collect_spilled_coalesced_allocnos): Ditto.
3751 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3752 (setup_slot_coalesced_allocno_live_ranges): Ditto.
3753 (coalesce_spill_slots): Ditto.
3754 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
3755 free allocno_coalesce_data.
3757 * ira-conflicts.c: Fix formatting.
3758 (process_regs_for_copy): Call
3759 ira_init_register_move_cost_if_necessary. Use
3760 ira_register_move_cost instead of ira_get_register_move_cost.
3761 (build_object_conflicts): Optimize.
3763 * ira-costs.c (record_reg_classes): Optimize. Call
3764 ira_init_register_move_cost_if_necessary. Use
3765 ira_register_move_cost, ira_may_move_in_cost, and
3766 ira_may_move_out_cost instead of ira_get_register_move_cost and
3767 ira_get_may_move_cost.
3768 (record_address_regs): Ditto.
3769 (scan_one_insn): Optimize.
3770 (find_costs_and_classes): Optimize.
3771 (process_bb_node_for_hard_reg_moves): Call
3772 ira_init_register_move_cost_if_necessary. Use
3773 ira_register_move_cost instead of ira_get_register_move_cost.
3775 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3776 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3777 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3778 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3780 (ira_initiate_emit_data, ira_finish_emit_data)
3781 (create_new_allocno): New functions.
3782 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3783 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3784 Use ira_register_move_cost instead of ira_get_register_move_cost.
3786 * ira-int.h: Fix some comments.
3787 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3788 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3789 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3790 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
3792 (struct ira_allocno): Make mode and aclass a bitfield. Move other
3793 bitfield after mode. Make hard_regno a short int. Make
3794 hard_regno short. Remove first_coalesced_allocno and
3795 next_coalesced_allocno. Move mem_optimized_dest_p,
3796 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3797 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
3798 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3799 temp, colorable_p. Add new member add_data.
3800 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3801 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3802 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3803 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3804 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3805 (ALLOCNO_ADD_DATA): New macro.
3806 (ira_emit_data_t): New typedef.
3807 (struct ira_emit_data): New. Move mem_optimized_dest_p,
3808 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3809 from struct ira_allocno.
3810 (ALLOCNO_EMIT_DATA): New macro.
3811 (ira_allocno_emit_data, allocno_emit_reg): New.
3812 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3813 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3814 (OBJECT_ADD_DATA): New macro.
3815 (ira_reallocate): Remove.
3816 (ira_initiate_emit_data, ira_finish_emit_data): New.
3817 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3818 (ira_init_register_move_cost_if_necessary): New.
3819 (ira_object_conflict_iter_next): Merge into
3820 ira_object_conflict_iter_cond.
3821 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3823 * ira-live.c (process_single_reg_class_operands): Call
3824 ira_init_register_move_cost_if_necessary. Use
3825 ira_register_move_cost instead of ira_get_register_move_cost.
3827 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3829 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3831 * ira-costs.c: Fix formatting.
3832 (cost_classes, cost_classes_num): Remove.
3833 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3834 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3835 (cost_classes_del, cost_classes_htab): New.
3836 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3837 (initiate_regno_cost_classes, setup_cost_classes): New.
3838 (setup_regno_cost_classes_by_aclass): New.
3839 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3840 (record_reg_classes): Use regno_cost_classes instead of
3841 cost_classes. Move checking opposite operand up.
3842 (record_address_regs): Use regno_cost_classes
3843 instead of cost_classes.
3844 (scan_one_insn): Ditto. Use always general register.
3845 (print_allocno_costs): Use regno_cost_classes instead of
3847 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
3848 (find_costs_and_classes): Set up cost classes for each registers.
3849 Use also their mode for this. Use regno_cost_classes instead of
3851 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3853 (free_ira_costs, ira_init_costs): Don't use cost_classes.
3854 (ira_costs, ira_set_pseudo_classes): Call
3855 initiate_regno_cost_classes and finish_regno_cost_classes.
3857 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3859 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3861 * target.def (ira_cover_classes): Remove.
3863 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3865 * doc/tm.texi.in: Ditto.
3867 * ira-conflicts.c: Remove mentioning cover classes from the file.
3868 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
3869 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
3871 * targhooks.c (default_ira_cover_classes): Remove.
3873 * targhooks.h (default_ira_cover_classes): Ditto.
3875 * haifa-sched.c: Remove mentioning cover classes from the file.
3876 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3877 ira_pressure_classes and ira_pressure_classes_num instead of
3878 ira_reg_class_cover_size and ira_reg_class_cover. Use
3879 sched_regno_pressure_class instead of sched_regno_cover_class.
3880 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3881 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3883 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
3884 classes from the file.
3885 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3886 (struct object_hard_regs, struct object_hard_regs_node): New.
3887 (struct ira_object): New members profitable_hard_regs,
3888 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3889 (struct ira_allocno): Rename cover_class to aclass. Rename
3890 cover_class_cost and updated_cover_class_cost to class_cost and
3891 updated_class_cost. Remove splay_removed_p and
3892 left_conflict_size. Add new members colorable_p.
3893 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3894 (ALLOCNO_COLORABLE_P): New macro.
3895 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3896 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3897 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3898 (OBJECT_...): Rename parameter C to O.
3899 (OBJECT_PROFITABLE_HARD_REGS): New macro.
3900 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3901 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3902 (struct target_ira_int): New members x_ira_max_memory_move_cost,
3903 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3904 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3905 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3906 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
3907 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
3908 x_ira_reg_class_subunion.
3909 (ira_max_memory_move_cost, ira_max_register_move_cost)
3910 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3911 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3912 (ira_important_class_nums, ira_reg_class_superunion): New macros.
3913 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3914 (ira_reg_class_union): Rename to ira_reg_class_subunion.
3915 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3916 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3917 (ira_tune_allocno_costs_and_cover_classes): Rename to
3918 ira_tune_allocno_costs.
3919 (ira_debug_hard_regs_forest): New.
3920 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3921 (ira_object_conflict_iter_next): Fix comments.
3922 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3923 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3924 cover_class to aclass.
3925 (ira_allocate_and_accumulate_costs): Ditto.
3926 (ira_allocate_and_set_or_copy_costs): Ditto.
3928 * opts.c (decode_options): Remove ira_cover_class check.
3930 * ira-color.c: Remove mentioning cover classes from the file. Use
3931 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3932 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3933 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3934 (splay-tree.h): Remove include.
3935 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3936 before copy_freq_compare_func.
3937 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3938 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3940 (hard_regs_roots, hard_regs_node_vec): Ditto.
3941 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3942 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3943 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3944 (create_new_object_hard_regs_node): Ditto.
3945 (add_new_object_hard_regs_node_to_forest): Ditto.
3946 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3947 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3949 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3950 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3951 (remove_unused_object_hard_regs_nodes): Ditto.
3952 (enumerate_object_hard_regs_nodes): Ditto.
3953 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3954 (object_hard_regs_subnode_t): Ditto.
3955 (struct object_hard_regs_subnode): Ditto.
3956 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3957 (setup_object_hard_regs_subnode_index): Ditto.
3958 (get_object_hard_regs_subnodes_num): Ditto.
3959 (form_object_hard_regs_nodes_forest): Ditto.
3960 (finish_object_hard_regs_nodes_tree): Ditto.
3961 (finish_object_hard_regs_nodes_forest): Ditto.
3962 (allocnos_have_intersected_live_ranges_p): Rename to
3963 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3964 (pseudos_have_intersected_live_ranges_p): Rename to
3965 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3966 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3967 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3968 (update_copy_costs): Remove assert. Skip cost update if the hard
3969 reg does not belong the class.
3970 (assign_hard_reg): Process only profitable hard regs.
3971 (uncolorable_allocnos_num): Make it scalar.
3972 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3973 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3974 and ira_reg_class_max_nregs.
3975 (bucket_allocno_compare_func): Check frequency first.
3976 (sort_bucket): Add compare function as a parameter.
3977 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3978 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3979 (push_allocno_to_stack): Rewrite for checking new allocno
3981 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
3982 (push_only_colorable): Pass new parameter to sort_bucket.
3983 (push_allocno_to_spill): Remove.
3984 (allocno_spill_priority_compare): Make it inline and rewrite.
3985 (splay_tree_allocate, splay_tree_free): Remove.
3986 (allocno_spill_sort_compare): New function.
3987 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
3988 build and use splay tree. Choose first allocno in uncolorable
3989 allocno bucket to spill. Remove setting spill cost.
3990 (all_conflicting_hard_regs): Remove.
3991 (setup_allocno_available_regs_num): Check only profitable hard
3992 regs. Print info about hard regs nodes.
3993 (setup_allocno_left_conflicts_size): Remove.
3994 (put_allocno_into_bucket): Don't call
3995 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
3996 (improve_allocation): New.
3997 (color_allocnos): Call setup_profitable_hard_regs,
3998 form_object_hard_regs_nodes_forest, improve_allocation,
3999 finish_object_hard_regs_nodes_forest. Setup spill cost.
4000 (print_loop_title): Use pressure classes.
4001 (color_allocnso): Ditto.
4002 (do_coloring): Remove allocation and freeing splay_tree_node_pool
4003 and allocnos_for_spilling.
4004 (ira_sort_regnos_for_alter_reg): Don't setup members
4005 {first,next}_coalesced_allocno.
4006 (color): Remove allocating and freeing removed_splay_allocno_vec.
4007 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4008 prohibited_class_mode_regs.
4010 * ira-lives.c: Remove mentioning cover classes from the file. Fix
4012 (update_allocno_pressure_excess_length): Use pressure classes.
4013 (inc_register_pressure, dec_register_pressure): Check for pressure
4015 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4016 pressure class. Use ira_reg_class_nregs instead of
4017 ira_reg_class_max_nregs.
4018 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4019 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4020 (single_reg_class): Use ira_reg_class_nregs instead of
4021 ira_reg_class_max_nregs.
4022 (process_bb_node_lives): Use pressure classes.
4024 * ira-emit.c: Remove mentioning cover classes from the file. Use
4025 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
4026 (change_loop): Use pressure classes.
4027 (modify_move_list): Call ira_set_allocno_class instead of
4028 ira_set_allocno_cover_class.
4030 * ira-build.c: Remove mentioning cover classes from the file. Use
4031 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4032 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
4033 ALLOCNO_UPDATED_CLASS_COST instead of
4034 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4035 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4036 (ira_create_allocno): Remove initialization of
4037 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
4038 ALLOCNO_COLORABLE_P.
4039 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4040 Update conflict regs for the objects.
4041 (create_cap_allocno): Remove assert. Don't propagate
4042 ALLOCNO_AVAILABLE_REGS_NUM.
4043 (ira_free_allocno_costs): New function.
4044 (finish_allocno): Change a part of code into call of
4045 ira_free_allocno_costs.
4046 (low_pressure_loop_node_p): Use pressure classes.
4047 (object_range_compare_func): Don't compare classes.
4048 (setup_min_max_conflict_allocno_ids): Ditto.
4050 * loop-invariant.c: Remove mentioning cover classes from the file.
4051 Use ira_pressure_classes and ira_pressure_classes_num instead of
4052 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
4053 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4054 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4055 Use reg_allocno_class instead of reg_cover_class.
4056 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4057 STACK_REG_COVER_CLASS.
4058 (get_regno_cover_class): Rename to get_regno_pressure_class.
4059 (move_loop_invariants): Initialize and finalize regstat.
4061 * ira.c: Remove mentioning cover classes from the file. Add
4062 comments about coloring without cover classes. Use ALLOCNO_CLASS
4063 instead of ALLOCNO_COVER_CLASS. Fix formatting.
4064 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4065 setup_class_subset_and_memory_move_costs.
4066 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4067 (setup_cover_and_important_classes): Rename to
4068 setup_allocno_and_important_classes.
4069 (setup_class_translate_array): New.
4070 (setup_class_translate): Call it for allocno and pressure classes.
4071 (cover_class_order): Rename to allocno_class_order.
4072 (comp_reg_classes_func): Use ira_allocno_class_translate instead
4073 of ira_class_translate.
4074 (reorder_important_classes): Set up ira_important_class_nums.
4075 (setup_reg_class_relations): Set up ira_reg_class_superunion.
4076 (print_class_cover): Rename to print_classes. Add parameter.
4077 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4078 Print pressure classes too.
4079 (find_reg_class_closure): Rename to find_reg_classes. Don't call
4080 setup_reg_subclasses.
4081 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4082 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4083 (setup_prohibited_class_mode_regs): Use
4084 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4085 (clarify_prohibited_class_mode_regs): New function.
4086 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4087 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4088 (ira_init_once): Initialize them.
4089 (free_register_move_costs): Process them.
4090 (ira_init): Move calls of find_reg_classes and
4091 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4092 Call clarify_prohibited_class_mode_regs.
4093 (ira_no_alloc_reg): Remove.
4094 (too_high_register_pressure_p): Use pressure classes.
4096 * sched-deps.c: Remove mentioning cover classes from the file.
4097 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4098 ira_pressure_classes and ira_pressure_classes_num instead of
4099 ira_reg_class_cover_size and ira_reg_class_cover.
4100 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4101 sched_regno_pressure_class instead of sched_regno_cover_class.
4102 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
4103 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4105 * ira.h: Add 2010 to Copyright.
4106 (ira_no_alloc_reg): Remove external.
4107 (struct target_ira): Rename x_ira_hard_regno_cover_class,
4108 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4109 x_ira_class_translate to x_ira_hard_regno_allocno_class,
4110 x_ira_allocno_classes_num, x_ira_allocno_classes, and
4111 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
4112 x_ira_pressure_classes, x_ira_pressure_class_translate, and
4113 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
4114 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
4115 x_ira_no_alloc_regs.
4116 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4117 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4118 ira_allocno_classes_num and ira_allocno_classes.
4119 (ira_class_translate): Rename to ira_allocno_class_translate.
4120 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4121 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4122 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4123 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4124 (ira_no_alloc_regs): New.
4126 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4127 classes from the file. Use ALLOCNO_CLASS instead of
4128 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4129 ALLOCNO_COVER_CLASS_COST.
4130 (regno_cover_class): Rename to regno_aclass.
4131 (record_reg_classes): Use ira_reg_class_subunion instead of
4132 ira_reg_class_union.
4133 (record_address_regs): Check overflow.
4134 (scan_one_insn): Ditto.
4135 (print_allocno_costs): Print total mem cost fore regional allocation.
4136 (print_pseudo_costs): Use REG_N_REFS.
4137 (find_costs_and_classes): Use classes intersected with them on the
4138 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4139 ira_reg_class_union. Use ira_allocno_class_translate and
4140 regno_aclass instead of ira_class_translate and regno_cover_class.
4141 Modify code for finding regno_aclass. Setup preferred classes for
4143 (setup_allocno_cover_class_and_costs): Rename to
4144 setup_allocno_class_and_costs. Use regno_aclass instead of
4145 regno_cover_class. Use ira_set_allocno_class instead of
4146 ira_set_allocno_cover_class.
4147 (init_costs, finish_costs): Use regno_aclass instead of
4149 (ira_costs): Use setup_allocno_class_and_costs instead of
4150 setup_allocno_cover_class_and_costs.
4151 (ira_tune_allocno_costs_and_cover_classes): Rename to
4152 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4153 by processing objects. Use ira_reg_class_max_nregs instead of
4154 ira_reg_class_nregs.
4156 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4158 * sched-int.h: Remove mentioning cover classes from the file.
4159 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4161 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4162 classes from the file.
4163 (struct reg_pref): Rename coverclass into allocnoclass.
4164 (reg_cover_class): Rename to reg_allocno_class.
4166 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4168 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4170 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4172 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4174 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4176 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4178 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4180 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4182 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4184 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4186 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4187 (i386_ira_cover_classes): Ditto.
4189 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4191 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4193 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4195 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4197 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4199 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4201 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4202 (mips_ira_cover_classes): Ditto.
4204 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4206 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4208 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4210 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4212 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4214 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4215 (IRA_COVER_CLASSES_VSX): Ditto.
4217 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4218 (rs6000_ira_cover_classes): Ditto.
4220 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4222 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4224 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4226 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4228 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4230 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4232 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4234 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4236 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4238 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4240 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4243 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4244 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4245 dw_fde_unlikely_section_end_label, cold_in_std_section,
4246 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4247 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4249 (output_fde): Use dw_fde_second_{begin,end} if second is
4250 true, otherwise dw_fde_{begin,end}.
4251 (output_call_frame_info): Test dw_fde_second_begin != NULL
4252 instead of dw_fde_switched_sections.
4253 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4254 fields, initialize new fields. Initialize in_std_section
4255 unconditionally from the first partition.
4256 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4257 dw_fde_second_begin is non-NULL.
4258 (dwarf2out_switch_text_section): Stop initializing removed
4259 dw_fde_struct fields, initialize new fields, initialize
4260 also dw_fde_end here. Set dw_fde_switch_cfi even when
4261 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4262 (struct var_loc_list_def): Add last_before_switch field.
4263 (arange_table, arange_table_allocated, arange_table_in_use,
4264 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4265 (size_of_aranges): Count !in_std_section and !second_in_std_section
4266 hunks in fdes, instead of looking at arange_table_in_use.
4267 (output_aranges): Add aranges_length argument, don't call
4268 size_of_aranges here. Instead of using aranges_table*
4269 emit ranges for fdes when !in_std_section resp.
4270 !second_in_std_section.
4271 (dw_loc_list): Break ranges crossing section switch.
4272 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
4273 use dw_fde_second_end instead of dw_fde_end as end of last range.
4274 (gen_subprogram_die): Don't call add_arange. Use
4275 dw_fde_{begin,end} for first partition and if switched
4276 section dw_fde_second_{begin,end} for the second.
4277 (var_location_switch_text_section_1,
4278 var_location_switch_text_section): New functions.
4279 (dwarf2out_begin_function): Initialize cold_text_section even
4280 when function_section () isn't text_section.
4281 (prune_unused_types): Don't walk arange_table.
4282 (dwarf2out_finish): Don't needlessly test
4283 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4284 If info_section_emitted, call size_of_aranges and if it indicates
4285 non-empty .debug_aranges, call output_aranges with the computed
4286 size. Stop using removed dw_fde_struct fields, use
4287 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4291 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4292 create ENTRY_VALUE if incoming or address of incoming's MEM
4294 * dwarf2out.c (mem_loc_descriptor): Don't emit
4295 DW_OP_GNU_entry_value of DW_OP_fbreg.
4296 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4297 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4298 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4299 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4301 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4302 is a REG_P or MEM_P with REG_P address, compute hash directly
4303 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4304 (preserve_only_constants): Don't clear VALUES forwaring
4305 ENTRY_VALUE to some other VALUE.
4307 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4309 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4312 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4314 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4315 block before expanding the statement.
4316 (expand_gimple_stmt_1): Likewise. Set them here...
4317 (expand_gimple_stmt): ...and not here. Tidy.
4318 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4321 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4323 * Makefile.in: New rule for cprop.o.
4324 * gcse.c: Move constant/copy propagation to cprop.c.
4325 (compute_local_properties): Only handle expression tables.
4326 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4327 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4328 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4329 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4330 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4331 compute_cprop_data, find_used_regs, try_replace_reg,
4332 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4333 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4334 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4335 find_bypass_set, reg_killed_on_edge, bypass_block,
4336 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4337 execute_rtl_cprop, pass_rtl_cprop): Move to...
4338 * cprop.c: ...here. New file, constant/copy propagation for RTL
4339 moved from gcse.c to here with minor cleanups in duplicated code.
4341 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4343 * config/i386/i386.c (flag_opts): Fix a typo in
4344 -mavx256-split-unaligned-store.
4346 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4348 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4349 LIBCALL_VALUE): Remove macros.
4350 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4351 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4352 (h8300_function_value, h8300_libcall_value,
4353 h8300_function_value_regno_p): New functions.
4355 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4357 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4359 2011-03-28 Jeff Law <law@redhat.com>
4361 * tree-ssa-threadupdate.c (redirect_edges): Call
4362 create_edge_and_update_destination_phis as needed.
4363 (create_edge_and_update_destination_phis): Accept new BB argument.
4364 All callers updated.
4365 (thread_block): Do not update the profile when threading around
4366 intermediate blocks.
4367 (thread_single_edge): Likewise.
4368 (determine_bb_domination_status): If BB is not a successor of the
4369 loop header, return NONDOMINATING.
4370 (register_jump_thread): Note when we register a jump thread around
4371 an intermediate block.
4372 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4373 (thread_across_edge): Use it.
4375 2011-03-28 Tristan Gingold <gingold@adacore.com>
4377 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4378 when for_return is 2.
4380 2011-03-28 Jeff Law <law@redhat.com>
4382 * var-tracking.c (canonicalize_values_mark): Delete unused
4384 (canonicalize_values_star, set_variable_part): Likewise.
4385 (clobber_variable_part, delete_variable_part): Likewise.
4387 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4389 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4391 2011-03-28 Martin Jambor <mjambor@suse.cz>
4393 * tree-inline.c (expand_call_inline): Do not check that destination
4395 (optimize_inline_calls): Assert that destination node is analyzed.
4396 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4397 not call tree_lowering_passes.
4398 * cgraph.h (cgraph_analyze_function): Declare.
4399 * cgraphunit.c (cgraph_analyze_function): Make public.
4401 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4403 * config/sparc/sparc-opts.h: New.
4404 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4405 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4406 (sparc_option_override): Store processor_type enumeration rather
4407 than string in cpu_default. Remove name and enumeration from
4408 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4409 without using sparc_select. Use target_flags_explicit instead of
4411 * config/sparc/sparc.h (enum processor_type): Move to
4413 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4414 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4415 HeaderInclude entry.
4416 (mcpu=, mtune=): Use Var and Enum.
4417 (sparc_processor_type): New Enum and EnumValue entries.
4419 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4420 Iain Sandoe <iains@gcc.gnu.org>
4423 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4425 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4427 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4428 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4429 Insert new statements at it in lieu of STMT.
4430 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4431 * tree-vect-stmts.c (vectorizable_store): Likewise.
4432 (vectorizable_load): Likewise.
4434 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4436 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4441 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4443 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4444 unaligned 256bit load/store.
4445 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4446 (*avx_movdqu<avxmodesuffix>): Likewise.
4448 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4451 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4452 * config/pa/pa.md (iordi3): Use new predicate in expander.
4455 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4457 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4458 FUNCTION_VALUE_REGNO_P): Remove macros.
4459 * config/mips/mips-protos.h (mips_function_value): Remove.
4460 * config/mips/mips.c (mips_function_value): Rename to...
4461 (mips_function_value_1): ... this. Make static. Handle receiving
4462 the function type in 'fn_decl_or_type' argument.
4463 (mips_function_value, mips_libcall_value,
4464 mips_function_value_regno_p): New function.
4465 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4466 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4468 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4470 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4471 and -mavx256-split-unaligned-store.
4472 (ix86_option_override_internal): Split 32-byte AVX unaligned
4473 load/store by default.
4474 (ix86_avx256_split_vector_move_misalign): New.
4475 (ix86_expand_vector_move_misalign): Use it.
4477 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4478 -mavx256-split-unaligned-store.
4480 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4481 256bit load/store. Generate unaligned store on misaligned memory
4483 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4485 (*avx_movdqu<avxmodesuffix>): Likewise.
4487 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4488 -mavx256-split-unaligned-store.
4490 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4493 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4496 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4498 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4499 opno arguments with an expand_operand. Use create_input_operand.
4500 (mips_prepare_builtin_target): Delete.
4501 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4503 (mips_expand_builtin_direct): Use create_output_operand and
4504 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4505 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4506 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4508 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4510 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4512 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4514 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4516 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4517 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4518 basic blocks and call commit_edge_insertions directly.
4519 (fixup_abnormal_edges): Move from here to...
4520 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4521 on the edges and return whether some have actually been inserted.
4522 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4525 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4527 PR rtl-optimization/48144
4528 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4529 (merge_expr_data): ... here.
4530 (av_set_intersect): Rename to av_set_code_motion_filter.
4531 Update all callers. Call merge_history_vect when an expression
4532 is found in both sets.
4533 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4535 2011-03-26 Alan Modra <amodra@gmail.com>
4537 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4538 cmodel medium addresses.
4539 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4540 64-bit gpr loads and stores.
4541 (rs6000_secondary_reload_ppc64): New function.
4542 * config/rs6000/rs6000-protos.h: Declare it.
4543 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4545 2011-03-26 Alan Modra <amodra@gmail.com>
4548 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4549 GNU Go in traceback table.
4551 2011-03-25 Richard Henderson <rth@redhat.com>
4553 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4554 if there are exactly 6 operands.
4555 (set_storage_via_setmem): Similarly.
4557 2011-03-25 Kai Tietz <ktietz@redhat.com>
4559 * collect2.c (write_c_file_stat): Handle backslash
4560 as right-hand directory separator.
4561 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4562 checking just for slash.
4563 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4564 instead of checking for trailing slash.
4565 * gcc.c (record_temp_file): Use filename_cmp instead
4567 (do_spec_1): Likewise.
4568 (replace_outfile_spec_function): Likewise.
4569 (is_directory): Use filename_ncmp instead of strncmp.
4570 (print_multilib_info): Likewise.
4571 * gcov.c (find_source): Use filename_cmp instead
4573 (make_gcov_file_name): Fix order of slash/backslash
4575 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4576 (add_standard_paths): Likewise.
4577 * mips-tfile.c (saber_stop): Handle backslash.
4578 * prefix.c (update_path): Use filename_ncmp instead of
4580 * profile.c (output_location): Use filename_cmp instead
4582 * read-md.c (handle_toplevel_file): Handle backslash.
4583 * tlink.c (frob_extension): Likewise.
4584 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4586 * tree-dump.c (dequeue_and_dump): Handle backslash.
4587 * tree.c (get_file_function_name): Likewise.
4588 * gengtype.c (read_input_list): Likewise.
4589 (get_file_realbasename): Likewise.
4590 (get_output_file_with_visibility): Use filename_cmp
4593 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4595 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4598 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4600 * fold-const.c (expr_location_or): New function.
4601 (fold_truth_not_expr): Call it.
4603 2011-03-25 Jeff Law <law@redhat.com>
4605 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4607 * c-family/c-common.c (def_fn_type): Likewise.
4608 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4609 * emit-rtl.c (gen_rtvec): Likewise.
4610 * lto/lto-lang.c (def_fn_type): Likewise.
4612 2011-03-25 Richard Guenther <rguenther@suse.de>
4614 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4615 also generate copies.
4616 (fini_copy_prop): Handle constant values properly.
4618 2011-03-25 Jakub Jelinek <jakub@redhat.com>
4620 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4621 mode size instead of bitsize with DWARF2_ADDR_SIZE.
4622 (hash_loc_operands, compare_loc_operands): Handle
4623 DW_OP_GNU_entry_value.
4625 2011-03-25 Kai Tietz <ktietz@redhat.com>
4627 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4628 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4629 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4630 comment and use macro TARGET_64BIT_MS_ABI instead.
4631 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4632 and change default behavior for 32-bit MS_ABI.
4633 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4634 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4636 (ix86_cfun_abi): Likewise.
4637 (ix86_maybe_switch_abi): Adjust comment.
4638 (init_cumulative_args): Check for bit-ness in MS_ABI case.
4639 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4640 instead of checking for SYSV_ABI.
4641 (ix86_nsaved_sseregs): Likewise.
4642 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4644 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4645 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4646 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4647 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4648 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4650 2011-03-25 Richard Guenther <rguenther@suse.de>
4652 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4653 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4654 (verify_gimple): Remove.
4655 * tree-cfg.c (verify_gimple_call): Merge verification
4657 (verify_gimple_phi): Merge verification from verify_stmts.
4658 (verify_gimple_label): New function.
4659 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4660 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4661 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4662 (verify_stmts): Rename to verify_gimple_in_cfg.
4663 (verify_gimple_in_cfg): New function.
4664 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4665 * tree-ssa.c (verify_ssa): Likewise.
4666 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4668 2011-03-25 Richard Guenther <rguenther@suse.de>
4670 * passes.c (init_optimization_passes): Add FRE pass after
4673 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
4674 Andrew Stubbs <ams@codesourcery.com>
4676 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4678 (arm_movdi_vfp_cortexa8): New pattern.
4679 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4680 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4681 instructions when tuning for Cortex-A8. Set attribute "arch".
4682 * config/arm/arm.md: Move include arm-tune.md up a bit.
4683 (define_attr "arch"): Add "onlya8" and "nota8" values.
4684 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4686 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4690 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4692 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4693 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4694 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4695 * passes.c (init_optimization_passes): Move
4696 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4698 2011-03-25 Kai Tietz <ktietz@redhat.com>
4700 * c-typeck.c (comptypes_internal): Replace target
4701 hook call of comp_type_attributes by version in tree.c file.
4702 * gimple.c (gimple_types_compatible_p_1): Likewise.
4703 * tree-ssa.c (useless_type_conversion_p): Likewise.
4704 * tree.c (build_type_attribute_qual_variant): Likewise.
4705 (attribute_value_equal): New static helper function.
4706 (comp_type_attributes): New function.
4707 (merge_attributes): Use attribute_value_equal for comparison.
4708 (attribute_list_contained): Likewise.
4709 * tree.h (comp_type_attributes): New prototype.
4711 2011-03-25 Richard Guenther <rguenther@suse.de>
4713 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4714 of complex types at -O0.
4715 (verify_gimple_assign_binary): Likewise.
4716 (verify_gimple_assign_ternary): Likewise.
4718 2011-03-24 Mark Wielaard <mjw@redhat.com>
4720 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4721 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4723 2011-03-24 Mark Wielaard <mjw@redhat.com>
4726 * dwarf2out.c (output_abbrev_section): Only write table when
4727 abbrev_die_table_in_use > 1.
4729 2011-02-24 Richard Henderson <rth@redhat.com>
4731 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4732 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4733 (alpha_expand_unaligned_load_words): Use extql.
4734 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4735 (emit_insxl): Handle all modes for consistency.
4737 2011-02-24 Richard Henderson <rth@redhat.com>
4739 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4740 (alpha_expand_unaligned_load): Likewise.
4741 (alpha_expand_unaligned_store): Likewise.
4742 (alpha_expand_unaligned_load_words): Likewise.
4743 (alpha_expand_unaligned_store_words): Likewise.
4744 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4745 (alpha_split_lock_test_and_set_12): Likewise.
4746 (print_operand, alpha_fold_builtin_extxx): Likewise.
4747 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4748 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4749 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4750 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4751 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4752 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4753 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4754 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4755 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4756 (extwl, extll, extql): Similarly.
4757 (inswh, inslh, insqh): Similarly.
4758 (mskbl, mskwl, mskll, mskql): Similarly.
4759 (mskwh, msklh, mskqh): Similarly.
4761 2011-02-24 Richard Henderson <rth@redhat.com>
4763 * config/alpha/alpha.md (attribute isa): Add er, ner.
4764 (attribute enabled): Handle them.
4765 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4767 2011-02-24 Richard Henderson <rth@redhat.com>
4769 * config/alpha/alpha.md (attribute isa): Add vms.
4770 (attribute enabled): Handle it.
4771 (*movsf): Merge *movsf_{nofix,fix,nofp}.
4772 (*movdf): Merge *movdf_{nofix,fix,nofp}.
4773 (*movtf): Rename from *movtf_internal for consistency.
4774 (*movsi): Merge with *movsi_nt_vms.
4775 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4776 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4777 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4778 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4780 2011-02-24 Richard Henderson <rth@redhat.com>
4782 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4783 (extendqisi2, extendhisi2): Likewise.
4784 (extendqidi2): Simplify BWX/non-BWX expansions.
4785 (extendhidi2): Similarly.
4787 2011-02-24 Richard Henderson <rth@redhat.com>
4789 * config/alpha/alpha.md (attribute isa): New.
4790 (attribute enabled): New.
4791 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4792 (zero_extendqisi2, zero_extendqidi2): Similarly.
4793 (zero_extendhisi2, zero_extendhidi2): Similarly.
4794 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4796 2011-02-24 Richard Henderson <rth@redhat.com>
4798 * config/alpha/predicates.md (input_operand): Revert last change;
4799 update comment to mention 32-bit VMS rather than Windows.
4801 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4803 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4804 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4805 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4806 * passes.c (init_optimization_passes): Move
4807 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4809 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4811 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4813 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4815 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4818 2011-03-24 Jakub Jelinek <jakub@redhat.com>
4821 * simplify-rtx.c (simplify_const_unary_operation): Call
4822 real_convert when changing mode class with FLOAT_EXTEND.
4824 2011-03-24 Nick Clifton <nickc@redhat.com>
4826 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4827 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4828 * config/rx/rx.c (rx_option_override): Set align_jumps,
4829 align_loops and align_labels if not set by the user.
4830 (rx_align_for_label): New function.
4831 (rx_max_skip_for_label): New function.
4832 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4833 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4834 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4835 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4836 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4838 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4840 PR rtl-optimization/48263
4841 * optabs.c (expand_binop_directly): Reinstate convert_modes code
4842 and original commutative_p handling. Use maybe_gen_insn.
4844 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4846 * reload.c (find_reloads_subreg_address): Add address_reloaded
4847 parameter and return true there if the full address has been
4849 (find_reloads_toplev): Pass address_reloaded flag.
4850 (find_reloads_address_1): Don't use address_reloaded parameter.
4852 2011-03-24 Jeff Law <law@redhat.com>
4854 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4855 unused variable "ann".
4856 (remove_unused_locals): Likewise.
4858 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4861 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4864 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4866 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4867 for invalid symbolic addresses.
4868 (s390_secondary_reload): Don't use s390_check_symref_alignment for
4871 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4873 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4874 the argument in calls to fold_truth_not_expr.
4876 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4878 * tree.c (record_node_allocation_statistics): New function.
4879 (make_node_stat, copy_node_stat, build_string): Call it.
4880 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4881 (build1_stat, build_omp_clause): Likewise.
4883 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4885 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4888 2011-03-24 Richard Guenther <rguenther@suse.de>
4890 PR tree-optimization/48271
4891 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4892 blocks that still exist.
4894 2011-03-24 Richard Guenther <rguenther@suse.de>
4896 PR tree-optimization/48270
4897 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4898 not free datarefs before ddrs.
4900 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4902 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4903 from the address built for a reference with variable offset.
4905 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4908 * config/i386/i386.md (*movdf_internal_rex64): Do not split
4909 alternatives that can be handled with movq or movabsq insn.
4910 (*movdf_internal): Disable for !TARGET_64BIT.
4911 (*movdf_internal_nointeger): Ditto.
4912 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4914 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4916 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4917 (FUNCTION_ARG_ADVANCE): Likewise.
4918 * tm.texi.in: Change references to them to hook references.
4919 * tm.texi: Regenerate.
4920 * targhooks.c (default_function_arg): Eliminate check for target macro.
4921 (default_function_incoming_arg): Likewise.
4922 (default_function_arg_advance): Likewise.
4923 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4924 (function_arg_advance): Likewise.
4925 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4927 2011-03-24 Richard Guenther <rguenther@suse.de>
4930 * tree-object-size.c (addr_object_size): Do not double-account
4931 for MEM_REF offsets.
4933 2011-03-24 Diego Novillo <dnovillo@google.com>
4935 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4936 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4937 (lto_input_data_block): Move from lto-opts.c. Make extern.
4939 (lto_input_string): Rename from input_string. Make extern.
4941 * lto-streamer-out.c (lto_output_string_with_length): Rename from
4942 output_string_with_length.
4943 Output 0 to indicate a non-NULL string. Update all callers to
4945 (lto_output_string): Rename from output_string. Make extern.
4947 (lto_output_decl_state_streams): Make extern.
4948 (lto_output_decl_state_refs): Make extern.
4949 * lto-streamer.h (lto_input_string): Declare.
4950 (lto_input_data_block): Declare.
4951 (lto_output_string): Declare.
4952 (lto_output_string_with_length): Declare.
4953 (lto_output_decl_state_streams): Declare.
4954 (lto_output_decl_state_refs): Declare.
4956 2011-03-24 Richard Guenther <rguenther@suse.de>
4958 PR tree-optimization/46562
4959 * tree.c (build_invariant_address): New function.
4960 * tree.h (build_invariant_address): Declare.
4961 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4962 a renamed function moved ...
4963 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4964 Take valueization callback parameter.
4965 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4966 * gimple-fold.h: New file.
4967 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4968 (ccp_fold, fold_const_aggregate_ref,
4969 fold_ctor_reference, fold_nonarray_ctor_reference,
4970 fold_array_ctor_reference, fold_string_cst_ctor_reference,
4971 get_base_constructor): Move ...
4972 * gimple-fold.c: ... here.
4973 (gimple_fold_stmt_to_constant_1): New function
4974 split out from ccp_fold. Take a valueization callback parameter.
4975 Valueize all operands.
4976 (gimple_fold_stmt_to_constant): New wrapper function.
4977 (fold_const_aggregate_ref_1): New function split out from
4978 fold_const_aggregate_ref. Take a valueization callback parameter.
4979 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4980 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4981 invariant POINTER_PLUS_EXPRs to invariant form.
4982 (vn_valueize): New function.
4983 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4984 * tree-vrp.c (vrp_valueize): New function.
4985 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4986 to fold statements to constants.
4987 * tree-ssa-pre.c (eliminate): Properly guard propagation of
4988 function declarations.
4989 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4990 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4992 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4994 * config/h8300/predicates.md (jump_address_operand): Fix register
4997 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
4999 * doc/invoke.texi (max-stores-to-sink): Document.
5000 * params.h (MAX_STORES_TO_SINK): Define.
5001 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5002 if either vectorization or if-conversion is disabled.
5003 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5004 tree-vect-data-refs.c vect_equal_offsets.
5005 (dr_equal_offsets_p): New function.
5006 (find_data_references_in_bb): Remove static.
5007 * tree-data-ref.h (find_data_references_in_bb): Declare.
5008 (dr_equal_offsets_p): Likewise.
5009 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5010 (vect_drs_dependent_in_basic_block): Update calls to
5012 (vect_check_interleaving): Likewise.
5013 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5014 (cond_if_else_store_replacement): Rename to...
5015 (cond_if_else_store_replacement_1): ... this. Change arguments and
5017 (cond_if_else_store_replacement): New function.
5018 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5019 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5021 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
5024 * config/arm/arm.md (casesi): Use the gen_int_mode() function
5025 to subtract lower bound instead of GEN_INT().
5027 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
5032 * doc/extend.texi (Alignment): Move section to match order in TOC.
5033 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5034 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5036 2011-03-23 Jeff Law <law@redhat.com>
5038 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5039 before removing the edge.
5041 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5042 it may have been freed by redirect_branch_edge or
5043 redirect_edge_succ_nodup.
5045 2011-03-23 Richard Guenther <rguenther@suse.de>
5047 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5048 (check_va_list_escapes): Likewise.
5049 (check_all_va_list_escapes): Likewise.
5051 2011-03-23 Richard Guenther <rguenther@suse.de>
5053 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5054 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5055 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5056 (alias.o): Likewise.
5057 (ipa-type-escape.o): Remove.
5058 (ipa-struct-reorg.o): Likewise.
5059 (GTFILES): Remove ipa-struct-reorg.c.
5060 * alias.c: Do not include ipa-type-escape.h.
5061 * tree-ssa-alias.c: Likewise.
5062 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5063 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5064 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5065 and ipa-type-escape passes.
5066 * tree-pass.h (pass_ipa_type_escape): Remove.
5067 (pass_ipa_struct_reorg): Likewise.
5068 * ipa-struct-reorg.h: Remove.
5069 * ipa-struct-reorg.c: Likewise.
5070 * ipa-type-escape.h: Likewise.
5071 * ipa-type-escape.c: Likewise.
5072 * doc/invoke.texi (-fipa-struct-reorg): Remove.
5073 (--param struct-reorg-cold-struct-ratio): Likewise.
5074 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5075 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5076 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5078 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5080 * config/s390/2084.md: Enable all insn reservations also for z9_ec
5081 cpu attribute value.
5082 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5083 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5084 * config/s390/s390.c (processor_flags_table): New constant array.
5085 (s390_handle_arch_option): Remove.
5086 (s390_handle_option): Remove s390_handle_arch_option invocations
5087 and OPT_mwarn_framesize_ handling.
5088 (s390_option_override): Remove s390_handle_arch_option invocation.
5089 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5091 * config/s390/s390.md (cpu attribute): Add z9_ec value.
5092 * config/s390/s390.opt (s390_tune, s390_arch)
5093 (march=): Replace s390_arch_option enum and values with
5094 processor_type. Set variable name to s390_arch. Set
5095 initialization value.
5096 (mtune=): Replace s390_arch_option with processor_type. Set
5097 variable name to s390_tune. Set initialization value.
5099 2011-03-23 Julian Brown <julian@codesourcery.com>
5101 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5102 accesses which are not naturally aligned.
5104 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5107 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5109 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5111 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5112 parameter from "int" to "enum insn_code".
5113 (expand_operand_type): New enum.
5114 (expand_operand): New structure.
5115 (create_expand_operand): New function.
5116 (create_fixed_operand, create_output_operand): Likewise
5117 (create_input_operand, create_convert_operand_to): Likewise.
5118 (create_convert_operand_from, create_address_operand): Likewise.
5119 (create_integer_operand): Likewise.
5120 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5121 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5122 (expand_insn, expand_jump_insn): Likewise.
5123 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5124 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5125 (expand_movstr, expand_builtin___clear_cache): Likewise.
5126 (expand_builtin_lock_release): Likewise.
5127 * explow.c (allocate_dynamic_stack_space): Likewise.
5128 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5129 and use the default handling in that case.
5130 * expmed.c (check_predicate_volatile_ok): Delete.
5131 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5132 (emit_cstore): Likewise.
5133 * expr.c (emit_block_move_via_movmem): Likewise.
5134 (set_storage_via_setmem, expand_assignment): Likewise.
5135 (emit_storent_insn, try_casesi): Likewise.
5136 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5137 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5138 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5139 (expand_twoval_unop, expand_twoval_binop): Likewise.
5140 (expand_unop_direct, emit_indirect_jump): Likewise.
5141 (emit_conditional_move, vector_compare_rtx): Likewise.
5142 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5143 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5144 (expand_sync_lock_test_and_set): Likewise.
5145 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5146 (emit_unop_insn): Likewise.
5147 (expand_copysign_absneg): Change icode to an insn_code.
5148 (create_convert_operand_from_type): New function.
5149 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5150 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5151 (expand_insn, expand_jump_insn): Likewise.
5152 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5153 than const_int_operand for operand 2.
5155 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5157 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5160 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5162 * emit-rtl.c (emit_pattern_before_noloc): New function.
5163 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5164 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5165 (emit_pattern_after_noloc): New function.
5166 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5167 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5169 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5171 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5172 (__ffsDI2): Likewise.
5174 2011-03-22 Richard Henderson <rth@redhat.com>
5176 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5177 of !TARGET_ABI_OPEN_VMS.
5178 (alpha_trampoline_init, alpha_start_function): Likewise.
5179 (alpha_expand_epilogue, alpha_file_start): Likewise.
5180 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5181 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5182 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5183 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5184 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5186 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5188 * config/s390/s390-opts.h: New.
5189 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5190 s390_arch_flags, s390_warn_framesize, s390_stack_size,
5191 s390_stack_guard): Remove.
5192 (s390_handle_arch_option): Return void. Take enum
5193 s390_arch_option value instead of string and searching array.
5194 (s390_handle_option): Don't assert that global structures are in
5195 use. Access variables via opts pointer. Use error_at. Don't use
5196 sscanf for -mstack-guard= or -mstack-size=. Update call to
5197 s390_handle_arch_option.
5198 (s390_option_override): Update call to s390_handle_arch_option.
5199 (s390_emit_prologue): Use %d format for s390_stack_size in
5200 diagnostic. Use %wd for HOST_WIDE_INT.
5201 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5202 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5203 * config/s390/s390.opt (config/s390/s390-opts.h): New
5204 HeaderInclude entry.
5205 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5206 s390_arch_flags, s390_warn_framesize): New Variable entries.
5207 (s390_arch_option): New Enum and EnumValue entries.
5208 (march=): Use Enum instead of Var.
5209 (mstack-guard=, mstack-size=): Use UInteger and Var.
5212 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5214 * config/score/score.c (score_handle_option): Don't assert that
5215 global structures are in use. Access target_flags via opts
5216 pointer. Use value of -march= option to determine target_flags
5218 * config/score/score.opt (march=): Use Enum.
5219 (score_arch): New Enum and EnumValue entries.
5221 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5223 * config/mep/mep.c (option_mtiny_specified): Remove.
5224 (mep_option_override): Move register handling for -mivc2 from
5225 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
5226 instead of option_mtiny_specified.
5227 (mep_handle_option): Access target_flags via opts pointer. Don't
5228 assert that global structures are in use. Defer part of -mivc2
5229 handling and move it to mep_option_override.
5230 * config/mep/mep.opt (IVC2): New Mask entry.
5231 (mivc2): Use Var and Defer instead of Mask.
5233 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5235 * config/v850/v850-opts.h: New.
5236 * config/v850/v850.c (small_memory): Replace with
5237 small_memory_physical_max array. Make that array static const.
5238 (v850_handle_memory_option): Take integer value of argument. Take
5239 gcc_options pointer, option text and location. Return void.
5240 Update for changes to small memory structures.
5241 (v850_handle_option): Access target_flags via opts pointer. Don't
5242 assert that global structures are in use. Update calls to
5243 v850_handle_memory_option.
5244 (v850_encode_data_area): Update references to small memory settings.
5245 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5246 (enum small_memory_type): Move to v850-opts.h.
5247 * config/v850/v850.opt (config/v850/v850-opts.h): New
5248 HeaderInclude entry.
5249 (small_memory_max): New Variable entry.
5250 (msda): Replace by pair of options msda= and msda-. Use UInteger.
5251 (mtda, mzda): Likewise.
5253 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5255 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5256 pointer. Don't assert that global structures are in use.
5258 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5260 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5261 via opts pointer. Don't assert that global structures are in use.
5263 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5265 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5266 (munix=93): Use Var.
5267 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5268 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5269 * config/pa/pa-opts.h: New.
5270 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5271 (pa_handle_option): Don't assert that global structures are in
5272 use. Access target_flags via opts pointer. Don't handle
5273 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5275 (pa_option_override): Handle deferred OPT_mfixed_range_.
5277 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5279 * config/mn10300/mn10300-opts.h: New.
5280 * config/mn10300/mn10300.c (mn10300_processor,
5281 mn10300_tune_string): Remove.
5282 (mn10300_handle_option): Don't assert that global structures are
5283 in use. Access mn10300_processor via opts pointer. Don't handle
5285 * config/mn10300/mn10300.h (enum processor_type): Move to
5287 (mn10300_processor): Remove.
5288 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5289 HeaderInclude entry.
5290 (mn10300_processor): New Variable entry.
5293 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5295 * config/microblaze/microblaze.c: Don't include opts.h.
5296 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5297 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5298 (mno-clearbss): Use Var and Warn.
5300 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5302 * config/m32r/m32r-opts.h: New.
5303 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5304 (m32r_handle_option): Don't assert that global structures are in
5305 use. Access target_flags and m32r_cache_flush_func via opts
5306 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5307 OPT_mno_flush_trap here.
5308 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5309 include of m32r-opts.h.
5310 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5311 HeaderInclude entry.
5312 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5313 (mmodel=): Use Enum and Var.
5314 (m32r_model): New Enum and EnumValue entries.
5315 (mno-flush-trap): Use Var.
5316 (msdata=): Use Enum and Var.
5317 (m32r_sdata): New Enum and EnumValue entries.
5319 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5321 * config/m32c/m32c.c: Don't include opts.h.
5322 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5323 m32c_handle_option): Remove.
5324 (m32c_option_override): Check global_options_set.x_target_memregs
5325 instead of target_memregs_set.
5326 * config/m32c/m32c.h (target_memregs): Remove.
5327 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5330 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5332 * config/iq2000/iq2000-opts.h: New.
5333 * config/iq2000/iq2000.c: Don't include opts.h.
5334 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5335 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5336 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5337 HeaderInclude entry.
5338 (iq2000_tune): New Variable entry.
5339 (march=): Add comment. Use Enum.
5340 (iq2000_arch): New Enum and EnumValue entries.
5341 (mcpu=): Use Enum and Var.
5342 (iq2000_tune): New Enum and EnumValue entries.
5344 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5346 * config/ia64/ia64-opts.h: New.
5347 * config/ia64/ia64.c (ia64_tune): Remove.
5348 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5350 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5351 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5352 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5353 HeaderInclude entry.
5354 (ia64_tune): New Variable entry.
5355 (mfixed-range=): Use Defer and Var.
5356 (mtune=): Use Enum and Var.
5357 (ia64_tune): New Enum and EnumValue entries.
5359 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5361 * config/frv/frv-opts.h: New.
5362 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5364 (frv_cpu_type): Remove.
5365 * config/frv/frv.c: Don't include opts.h.
5366 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5367 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5368 (frv_cpu_type): New Variable entry.
5369 (frv_cpu): New Enum and EnumValue entries.
5371 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5373 * config/cris/cris.c (cris_handle_option): Access target_flags via
5374 opts pointer. Don't assert that global structures are in use.
5375 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5376 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5378 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5380 * config/bfin/bfin-opts.h: New.
5381 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5382 bfin_si_revision, bfin_workarounds): Remove.
5383 (bfin_cpus): Make static const.
5384 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5385 not bfin_lib_id_given.
5386 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5387 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5388 pointer. Use error_at. Don't assert that global structures are in use.
5389 * config/bfin/bfin.h: Include bfin-opts.h.
5390 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5391 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5392 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5393 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5396 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5398 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5399 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5400 or -msoft-float here.
5401 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5402 -msoft-float and -mhard-float.
5403 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5404 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5406 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5408 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5409 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5411 (LIBGCC_SPEC): Don't handle -msoft-float.
5412 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5414 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5416 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5417 -mfloat-abi=*, not -msoft-float and -mhard-float.
5418 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5420 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5421 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5422 mhard-float and msoft-float.
5423 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5424 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5425 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5426 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5428 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5429 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5431 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5433 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5436 2011-03-22 Richard Henderson <rth@redhat.com>
5438 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5439 TARGET_ABI_WINDOWS_NT.
5440 (alpha_output_function_end_prologue): Likewise.
5441 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5442 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5443 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5444 (trap, *movsi_nt_vms): Likewise.
5445 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5446 (*tablejump_osf_nt_internal): Remove.
5447 * config/alpha/predicates.md (input_operand): Only test Pmode.
5449 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5451 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5452 via opts pointer. Use error_at. Don't assert that global
5453 structures are in use.
5455 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5457 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5458 (ix86_handle_option): Access ix86_isa_flags and
5459 ix86_isa_flags_explicit via opts pointer. Don't assert that
5460 global structures are in use.
5461 (ix86_function_specific_save, ix86_function_specific_restore):
5462 Update ix86_isa_flags_explicit field name.
5463 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5464 (ix86_isa_flags_explicit): Rename TargetSave entry to
5465 x_ix86_isa_flags_explicit.
5467 2011-03-22 Richard Henderson <rth@redhat.com>
5469 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5470 (alpha_option_override, direct_return): Likewise.
5471 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5472 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5473 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5474 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5475 (alpha_expand_epilogue, alpha_end_function): Likewise.
5476 (alpha_init_libfuncs): Likewise.
5477 (struct machine_function): Remove unicosmk members.
5478 (print_operand) ['t']: Remove.
5479 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5480 unicosmk_output_module_name, unicosmk_output_common,
5481 current_section_align, unicosmk_output_text_section_asm_op,
5482 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5483 unicosmk_section_type_flags, unicosmk_unique_section,
5484 unicosmk_asm_named_section, unicosmk_insert_attributes,
5485 unicosmk_output_align, unicosmk_defer_case_vector,
5486 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5487 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5488 unicosmk_output_ssib, unicosmk_add_call_info_word,
5489 unicosmk_extern_head, unicosmk_output_default_externs,
5490 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5491 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5492 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5493 * config/alpha/alpha-protos.h: Update.
5494 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5495 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5496 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5497 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5498 (*mulsi_se, mulvsi3): Likewise.
5499 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5500 (*divmodsi_internal, call, call_value, realign): Likewise.
5501 (moddi3, umoddi3): Likewise; remove duplicate expander.
5502 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5503 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5504 (*movdi_nofix): Remove r/U alternative.
5505 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5506 * config/alpha/constraints.md ("U"): Remove.
5507 * config/alpha/predicates.md (call_operand"): Don't test
5508 TARGET_ABI_UNICOSMK.
5510 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5512 * target.def (handle_option): Take gcc_options and
5513 cl_decoded_option pointers and location_t.
5514 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5515 * doc/tm.texi: Regenerate.
5516 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5517 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5518 * lto-opts.c (lto_reissue_options): Generate option structure for
5519 targetm.handle_option call.
5520 * opts.c (target_handle_option): Update call to
5521 targetm.handle_option. Remove assertions about values now passed
5523 * targhooks.c (default_target_handle_option): New.
5524 * targhooks.h (default_target_handle_option): Declare.
5525 * config/alpha/alpha.c: Include opts.h.
5526 (alpha_handle_option): Update to new hook interface.
5527 * config/arm/arm.c: Include opts.h.
5528 (arm_handle_option): Update to new hook interface.
5529 * config/arm/t-arm (arm.o): Update dependencies.
5530 * config/bfin/bfin.c: Include opts.h.
5531 (bfin_handle_option): Update to new hook interface.
5532 * config/cris/cris.c: Include opts.h.
5533 (cris_handle_option): Update to new hook interface.
5534 * config/frv/frv.c: Include opts.h.
5535 (frv_handle_option): Update to new hook interface.
5536 * config/i386/i386.c: Include opts.h.
5537 (ix86_handle_option): Update to new hook interface.
5538 (ix86_valid_target_attribute_inner_p): Generate option structure
5539 for call to ix86_handle_option.
5540 * config/i386/t-i386 (i386.o): Update dependencies.
5541 * config/ia64/ia64.c: Include opts.h.
5542 (ia64_handle_option): Update to new hook interface.
5543 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5544 * config/iq2000/iq2000.c: Include opts.h.
5545 (iq2000_handle_option): Update to new hook interface.
5546 * config/m32c/m32c.c: Include opts.h.
5547 (m32c_handle_option): Update to new hook interface.
5548 * config/m32r/m32r.c: Include opts.h.
5549 (m32r_handle_option): Update to new hook interface.
5550 * config/m68k/m68k.c: Include opts.h.
5551 (m68k_handle_option): Update to new hook interface.
5552 * config/mep/mep.c: Include opts.h.
5553 (mep_handle_option): Update to new hook interface.
5554 * config/microblaze/microblaze.c: Include opts.h.
5555 (microblaze_handle_option): Update to new hook interface.
5556 * config/mips/mips.c: Include opts.h.
5557 (mips_handle_option): Update to new hook interface.
5558 * config/mn10300/mn10300.c: Include opts.h.
5559 (mn10300_handle_option): Update to new hook interface.
5560 * config/pa/pa.c: Include opts.h.
5561 (pa_handle_option): Update to new hook interface.
5562 * config/pdp11/pdp11.c: Include opts.h.
5563 (pdp11_handle_option): Update to new hook interface.
5564 * config/rs6000/rs6000.c: Include opts.h.
5565 (rs6000_handle_option): Update to new hook interface.
5566 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5567 * config/rx/rx.c: Include opts.h.
5568 (rx_handle_option): Update to new hook interface.
5569 * config/s390/s390.c: Include opts.h.
5570 (s390_handle_option): Update to new hook interface.
5571 * config/score/score.c: Include opts.h.
5572 (score_handle_option): Update to new hook interface.
5573 * config/sh/sh.c: Include opts.h.
5574 (sh_handle_option): Update to new hook interface.
5575 * config/sparc/sparc.c: Include opts.h.
5576 (sparc_handle_option): Update to new hook interface.
5577 * config/v850/v850.c: Include opts.h.
5578 (v850_handle_option): Update to new hook interface.
5580 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5582 * gcc.c (driver_unknown_option_callback): Only permit and save
5583 unknown -Wno- options.
5584 (driver_wrong_lang_callback): Save options directly instead of via
5585 driver_unknown_option_callback.
5587 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5589 * combine.c (simplify_set): Try harder to find the best CC mode when
5590 simplifying a nested COMPARE on the RHS.
5592 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5594 * config/alpha/gnu.h: Remove.
5595 * config/arc: Remove directory.
5596 * config/arm/netbsd.h: Remove.
5597 * config/arm/t-pe: Remove.
5598 * config/crx: Remove directory.
5599 * config/i386/netbsd.h: Remove.
5600 * config/m68hc11: Remove directory.
5601 * config/m68k/uclinux-oldabi.h: Remove.
5602 * config/mcore/mcore-pe.h: Remove.
5603 * config/mcore/t-mcore-pe: Remove.
5604 * config/netbsd-aout.h: Remove.
5605 * config/rs6000/gnu.h: Remove.
5606 * config/sh/sh-symbian.h: Remove.
5607 * config/sh/symbian-base.c: Remove.
5608 * config/sh/symbian-c.c: Remove.
5609 * config/sh/symbian-cxx.c: Remove.
5610 * config/sh/symbian-post.h: Remove.
5611 * config/sh/symbian-pre.h: Remove.
5612 * config/sh/t-symbian: Remove.
5613 * config/svr3.h: Remove.
5614 * config/vax/netbsd.h: Remove.
5615 * config.build: Don't handle i[34567]86-*-pe.
5616 * config.gcc: Remove handling of deprecations for most deprecated
5618 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5619 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5620 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5621 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5622 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5623 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5625 * config.host: Don't handle i[34567]86-*-pe.
5626 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5627 (ASM_SPEC32): Don't handle -mcall-gnu.
5628 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5630 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5631 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5632 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5633 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5634 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5635 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5636 conditional on SYMBIAN.
5637 * configure.ac: Don't handle powerpc*-*-gnu*.
5638 * configure: Regenerate.
5639 * doc/extend.texi (interrupt attribute): Don't mention CRX.
5640 * doc/install-old.texi (m6811, m6812): Don't mention.
5641 * doc/install.texi (arc-*-elf*): Don't document multilib option.
5642 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5643 (m68k-uclinuxoldabi): Don't mention.
5644 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5646 (-mcall-gnu): Remove.
5647 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5648 families): Remove constraint documentation.
5650 2011-03-22 Marius Strobl <marius@FreeBSD.org>
5652 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5653 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5654 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5656 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
5658 * config/avr/avr-protos.h (expand_epilogue): Change prototype
5659 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5660 * config/avr/avr.c (init_cumulative_args)
5661 (avr_function_arg_advance): Use it.
5662 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5664 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5665 (avr_function_ok_for_sibcall): ...this new function.
5666 (avr_lookup_function_attribute1): New static Function.
5667 (avr_naked_function_p, interrupt_function_p)
5668 (signal_function_p, avr_OS_task_function_p)
5669 (avr_OS_main_function_p): Use it.
5670 * config/avr/avr.md ("sibcall", "sibcall_value")
5671 ("sibcall_epilogue"): New expander.
5672 ("*call_insn", "*call_value_insn"): New insn.
5673 ("call_insn", "call_value_insn"): Remove
5674 ("call", "call_value", "epilogue"): Change expander to handle
5677 2011-03-21 Nick Clifton <nickc@redhat.com>
5679 * doc/invoke.texi (Overall Options): Move closing brace to end of
5681 (Optimization Options): Add missing @gol.
5682 (Directory Options): Likewise.
5683 (i386 and x86-64 Options): Likewise.
5684 (RS6000 and PowerPC Options): Likewise.
5685 (i386 and x86-64 Windows Options): Likewise.
5686 (V850 Options): Add text missing from descriptions.
5688 2011-03-22 Richard Henderson <rth@redhat.com>
5690 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5691 (avr_incoming_return_addr_rtx): New.
5692 (emit_push_byte): New.
5693 (expand_prologue): Use it. Remove incorrect dwarf annotation for
5694 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
5695 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
5696 (emit_pop_byte): New.
5697 (expand_epilogue): Use it. Pop frame pointer by bytes.
5698 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5699 (INCOMING_RETURN_ADDR_RTX): New.
5700 (INCOMING_FRAME_SP_OFFSET): New.
5701 (ARG_POINTER_CFA_OFFSET): New.
5702 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5703 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5706 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5708 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5710 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5711 (FUNCTION_ARG_ADVANCE): Likewise.
5712 * tm.texi.in: Change references to them to hook references.
5713 * tm.texi: Regenerate.
5714 * targhooks.c (default_function_arg): Eliminate check for target
5716 (default_function_incoming_arg): Likewise.
5717 (default_function_arg_advance): Likewise.
5718 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5719 (function_arg_advance): Likewise.
5720 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5722 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5724 * tree.c (build_call_1): New function.
5725 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5727 2011-03-22 Richard Guenther <rguenther@suse.de>
5729 PR tree-optimization/48228
5730 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5731 for single-arg PHIs.
5733 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
5735 PR rtl-optimization/48143
5736 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5737 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5738 sse2_cvtps2pd): Likewise.
5740 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5742 * recog.c (canonicalize_change_group): Use validate_unshare_change.
5744 2011-03-22 Richard Guenther <rguenther@suse.de>
5746 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5747 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5748 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5749 and REALIGN_LOAD_EXPR.
5750 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5751 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5752 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5753 DOT_PROD_EXPR case ...
5754 (expand_expr_real_2): ... here.
5755 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5756 and REALIGN_LOAD_EXPR.
5757 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5758 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5759 (vect_create_epilog_for_reduction): Likewise.
5760 (vectorizable_reduction): Likewise.
5761 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5762 * tree-vect-stmts.c (vectorizable_load): Likewise.
5764 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5766 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5768 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5770 * config/s390/s390.c (s390_delegitimize_address): Fix offset
5771 handling for PLTOFF/GOTOFF.
5773 2011-03-22 Nick Clifton <nickc@redhat.com>
5775 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5776 trailing backslash from the end of the macro definition.
5778 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5780 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5783 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
5785 * expr.h (prepare_operand): Move to...
5786 * optabs.h (prepare_operand): ...here and change the insn code
5787 parameter from "int" to "enum insn_code".
5788 (insn_operand_matches): Declare.
5789 * expr.c (init_expr_target): Use insn_operand_matches.
5790 (compress_float_constant): Likewise.
5791 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5792 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5793 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5794 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5796 (gen_cond_trap): Likewise.
5797 (prepare_operand): Likewise. Change icode to an insn_code.
5798 (insn_operand_matches): New function.
5799 * reload.c (find_reloads_address_1): Use insn_operand_matches.
5800 * reload1.c (gen_reload): Likewise.
5801 * targhooks.c (default_secondary_reload): Likewise.
5803 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5805 * config/alpha/alpha.md (unspec): New define_c_enum.
5808 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5811 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5812 between a call and its CALL_ARG_LOCATION note.
5814 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
5816 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5818 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5822 * c-common.c (shorten_compare): If primopN is first sign-extended
5823 to opN and then zero-extended to result type, set primopN to opN.
5825 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5827 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5828 for barrier handlers.
5830 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5832 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5833 UNSPEC constants to be in the unspec enumeration, and redefine
5834 all UNSPECV constants to be in the unspecv enumeration, so that
5835 dumps print which unspec/unspec_volatile this is.
5836 * config/rs6000/vector.md (UNSPEC_*): Ditto.
5837 * config/rs6000/paired.md (UNSPEC_*): Ditto.
5838 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5839 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5840 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5842 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5843 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5844 UNSPECV_LWSYNC, since these are used as unspec_volatile.
5845 * config/rs6000/sync.md (isync, lwsync): Ditto.
5847 2011-03-21 Richard Guenther <rguenther@suse.de>
5849 * params.def (lto-min-partition): Fix typo.
5851 2011-03-21 Richard Guenther <rguenther@suse.de>
5854 * c-decl.c (grokdeclarator): Drop to the main variant only
5855 for array types. Drop flag_gen_aux_info check.
5857 2011-03-21 Richard Guenther <rguenther@suse.de>
5859 PR translation/47911
5860 * params.def (lto-partitions): Fix typo.
5861 (lto-min-partition): Fix wording.
5863 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
5865 * config/rs6000/t-freebsd: Remove duplication from file.
5867 2011-03-21 Richard Guenther <rguenther@suse.de>
5870 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5872 2011-03-21 Richard Guenther <rguenther@suse.de>
5875 * params.def (lto-partitions): Require at least 1 partition.
5877 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5879 * gthr-solaris.h: Remove.
5880 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5881 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5882 (LIB_SPEC): Likewise.
5883 * config/sol2.opt (threads): Remove.
5884 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5885 (sparc*-*-solaris2*): Likewise.
5886 * configure.ac (enable_threads): Enable solaris support.
5887 * configure: Regenerate.
5888 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5889 * doc/install.texi (Configuration, --enable-threads=lib): Remove
5892 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5894 * config.gcc: Obsolete *-*-solaris2.8*.
5895 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5897 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5900 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5901 reference. Solaris 8 perl works.
5903 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5906 * doc/install.texi (Prerequisites): Move jar etc. up.
5907 Explain support library version requirements.
5909 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5912 * doc/install.texi (Prerequisites): Move Perl to build
5913 requirements. Always necessary on Solaris 2 with Sun ld.
5915 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5917 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5919 (Specific, i?86-*-solaris2.[89]): Likewise.
5920 (Specific, i?86-*-solaris2.10): Likewise.
5921 (Specific, mips-sgi-irix6): Likewise.
5922 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5923 Update for binutils 2.21.
5925 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5927 * configure.ac (gcc_cv_lto_plugin): Fix typo.
5928 Allow -fuse-linker-plugin for non-default plugin linker.
5929 * configure: Regenerate.
5931 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
5934 * gengtype.c (files_rules): Added rule for cp/parser.h.
5936 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5939 * config/s390/s390.c (s390_delegitimize_address): Don't call
5940 lowpart_subreg if orig_x has BLKmode.
5942 2011-03-21 Kai Tietz <ktietz@redhat.com>
5945 * doc/plugins.texi: Adjust documentation for plugin register_callback.
5946 * tree.h (attribute_spec): Add new member affects_type_identity.
5947 * attribs.c (empty_attribute_table): Adjust attribute_spec
5949 * config/alpha/alpha.c: Likewise.
5950 * config/arc/arc.c: Likewise.
5951 * config/arm/arm.c: Likewise.
5952 * config/avr/avr.c: Likewise.
5953 * config/bfin/bfin.c: Likewise.
5954 * config/crx/crx.c: Likewise.
5955 * config/darwin.h: Likewise.
5956 * config/h8300/h8300.c: Likewise.
5957 * config/i386/cygming.h: Likewise.
5958 * config/i386/i386.c: Likewise.
5959 * config/ia64/ia64.c: Likewise.
5960 * config/m32c/m32c.c: Likewise.
5961 * config/m32r/m32r.c: Likewise.
5962 * config/m68hc11/m68hc11.c: Likewise.
5963 * config/m68k/m68k.c: Likewise.
5964 * config/mcore/mcore.c: Likewise.
5965 * config/mep/mep.c: Likewise.
5966 * config/microblaze/microblaze.c: Likewise.
5967 * config/mips/mips.c: Likewise.
5968 * config/rs6000/rs6000.c: Likewise.
5969 * config/rx/rx.c: Likewise.
5970 * config/sh/sh.c: Likewise.
5971 * config/sol2.h: Likewise.
5972 * config/sparc/sparc.c: Likewise.
5973 * config/spu/spu.c: Likewise.
5974 * config/stormy16/stormy16.c: Likewise.
5975 * config/v850/v850.c: Likewise.
5977 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
5979 * simplify-rtx.c (simplify_binary_operation_1): Handle
5980 (xor (and A B) C) case when B and C are both constants.
5982 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
5984 * tree-dfa.c (add_referenced_var): Fix typo in comment.
5986 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
5989 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5991 2011-03-20 Jakub Jelinek <jakub@redhat.com>
5993 PR rtl-optimization/48156
5994 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5995 assume df and df_lr are not NULL.
5997 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6000 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6001 between a call and its CALL_ARG_LOCATION note.
6003 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
6006 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6007 between a call and its corresponding CALL_ARG_LOCATION note.
6009 2011-03-19 Anatoly Sokolov <aesok@post.ru>
6011 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6012 instead of loop. Use HARD_REGISTER_NUM_P predicate.
6013 * haifa-sched.c (setup_ref_regs): Ditto.
6014 * caller-save.c (add_used_regs_1): Ditto.
6015 * dse.c (look_for_hardregs): Ditto.
6016 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6017 * sched-rgn.c (check_live_1): Ditto.
6019 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6021 * c-decl.c (diagnose_mismatched_decls): Give an error for
6022 redefining a typedef with variably modified type.
6024 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6026 * c-decl.c (grokfield): Don't allow typedefs for structures or
6027 unions with no tag by default.
6028 * doc/extend.texi (Unnamed Fields): Update.
6030 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
6032 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6033 Rewrite using indirect functions.
6034 (lwp_slwpcb): Ditto.
6035 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6036 (avx_vinsertf128<mode>): Ditto.
6038 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6040 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6043 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6045 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6046 splitting between a call and its corresponding CALL_ARG_LOCATION note.
6048 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6050 PR rtl-optimization/48170
6051 * gcse.c (hoist_code): Remove bogus asserts.
6053 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
6055 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6056 computation for prologue/epilogue.
6058 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6060 * Makefile.in (check-consistency): Remove.
6062 2011-03-18 Jakub Jelinek <jakub@redhat.com>
6065 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6066 arange_table_in_use is 0, but either text_section_used or
6067 cold_text_section_used is true. Don't call it if
6068 !info_section_emitted.
6070 2011-03-18 Anatoly Sokolov <aesok@post.ru>
6072 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6073 FUNCTION_VALUE_REGNO_P): Remove.
6074 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6076 * config/avr/avr.c (avr_ret_register): Make static inline.
6077 (avr_function_value_regno_p): New function.
6078 (avr_libcall_value): Make static. Add 'func' argument.
6079 (avr_function_value): Make static. Rename 'func' argument to
6080 'fn_decl_or_type', forward it to avr_libcall_value. Call
6081 avr_ret_register function instead of RET_REGISTER macro.
6082 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6084 2011-03-18 Jason Merrill <jason@redhat.com>
6087 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6089 2011-03-18 Richard Guenther <rguenther@suse.de>
6091 * doc/install.texi (--enable-gold): Remove.
6092 (--with-plugin-ld): Document.
6093 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6095 2011-03-18 Andrew Pinski <pinskia@gmail.com>
6098 * expr.c (optimize_bitfield_assignment_op): Revamp to work
6099 again after expansion changes.
6101 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
6103 * combine.c (try_combine): Do simplification only call of
6104 subst() on i2 even when i1 is present. Update comments.
6106 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
6108 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6109 and UNSPEC_PCREL_SYMOFF.
6111 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6113 * config/s390/s390.md: Use define_c_enum for the unspec constant
6116 2011-03-18 Richard Henderson <rth@redhat.com>
6117 Jakub Jelinek <jakub@redhat.com>
6120 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6121 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6123 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6126 * combine.c (cant_combine_insn_p): Don't check zero/sign
6127 extended hard registers.
6129 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6132 * combine.c (cant_combine_insn_p): Check zero/sign extended
6135 2011-03-17 Anatoly Sokolov <aesok@post.ru>
6137 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6138 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6139 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6140 Change return type to bool.
6141 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6143 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6146 * var-tracking.c (prepare_call_arguments): If CALL target
6147 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6148 pc instead of looking it up using cselib_lookup and use
6149 Pmode for it if x has VOIDmode.
6150 * dwarf2out.c (gen_subprogram_die): If also both first and
6151 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6154 * function.c (assign_parms): For data.passed_pointer parms
6155 use MEM of data.entry_parm instead of data.entry_parm itself
6156 as DECL_INCOMING_RTL.
6157 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6158 also when passed and declared mode is the same, DECL_RTL
6159 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6162 2011-03-16 Jeff Law <law@redhat.com>
6164 PR rtl-optimization/37273
6165 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6166 handle them like argument loads from stack slots. Do not double
6167 count memory for memory constants and argument loads from stack slots.
6169 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6172 * var-tracking.c (prepare_call_arguments): Check SUBREG.
6174 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6177 * config/i386/i386.opt: Add Save to -mavx and -mfma.
6179 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6182 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6184 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6185 Clear call_arg_locations and call_arg_loc_last always.
6188 * var-tracking.c (prepare_call_arguments): If argument needs to be
6189 passed by reference, adjust argtype and mode.
6191 2011-03-17 Richard Guenther <rguenther@suse.de>
6194 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6195 a value make sure to fold the statement.
6197 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
6200 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6201 return condition with !cfun->calls_alloca.
6203 2011-03-17 Richard Guenther <rguenther@suse.de>
6206 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6207 origin for decls in other ltrans units.
6208 (input_varpool_node): Likewise.
6210 2011-03-17 Richard Guenther <rguenther@suse.de>
6213 * tree-object-size.c (compute_object_offset): Properly return
6214 the offset operand of MEM_REFs as sizetype.
6216 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6218 PR rtl-optimization/48141
6219 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6220 * dse.c: Include params.h.
6221 (active_local_stores_len): New variable.
6222 (add_wild_read, dse_step1): Clear it when setting active_local_stores
6224 (record_store, check_mem_read_rtx): Decrease it when removing
6226 (scan_insn): Likewise. Increase it when adding to chain, if it
6227 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6228 set active_local_stores to NULL before the addition.
6229 * Makefile.in (dse.o): Depend on $(PARAMS_H).
6231 PR rtl-optimization/48141
6232 * dse.c (record_store): If no positions are needed in an insn
6233 that cannot be deleted, at least unchain it from active_local_stores.
6235 2011-03-16 Dodji Seketeli <dodji@redhat.com>
6238 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6239 (lookup_type_die_strip_naming_typedef): ... here.
6240 (get_context_die): Use it.
6241 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6242 the anonymous struct named by the naming typedef.
6244 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
6247 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6248 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6250 2011-03-16 Jeff Law <law@redhat.com>
6252 * tree-vrp.c (identify_jump_threads): Slightly simplify type
6253 check for operands of conditional. Allow type to be a pointer.
6255 2011-03-16 Richard Guenther <rguenther@suse.de>
6257 PR tree-optimization/48149
6258 * fold-const.c (fold_binary_loc): Fold
6259 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6261 2011-03-16 Richard Guenther <rguenther@suse.de>
6263 PR tree-optimization/26134
6264 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6265 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6266 (non_rewritable_mem_ref_base): Handle complex type component
6267 accesses, constrain offsets for vector and complex extracts
6270 2011-03-16 Richard Guenther <rguenther@suse.de>
6272 PR tree-optimization/48146
6273 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6274 operands avoiding the need for renaming.
6276 2011-03-16 Richard Guenther <rguenther@suse.de>
6278 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6279 constant folding. Move MEM_REF canonicalization first.
6280 Rely on fold_const_aggregate_ref for initializer folding.
6281 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6283 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6286 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6287 arg0/arg1 or their arguments are always fold converted to matching
6290 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6293 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6296 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6297 Handle in-tree gold.
6298 (ld_vers): Extract binutils version for gold.
6299 (gcc_cv_ld_hidden): Handle gold here.
6300 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6301 * configure: Regenerate.
6302 * config.in: Regenerate.
6303 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6304 -fuse-linker-plugin otherwise.
6305 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6306 (LINK_COMMAND_SPEC): Use it.
6307 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6309 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6311 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6312 * calls.c: Remove debug.h include.
6313 (emit_call_1): Don't call virtual_call_token debug hook.
6314 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6315 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6316 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6317 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6318 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6319 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6320 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6321 dwarf2out_virtual_call): Remove.
6322 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6323 copy_call_info and virtual_call hooks.
6324 (dwarf2out_init): Don't initialize vcall_insn_table,
6325 debug_dcall_section and debug_vcall_section.
6326 (prune_unused_types): Don't mark nodes from dcall_table.
6327 (dwarf2out_finish): Don't output dcall or vcall tables.
6328 * final.c (final_scan_insn): Don't call direct_call or
6329 virtual_call debug hooks.
6330 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6331 virtual_call_token, copy_call_info and virtual_call hooks.
6332 (debug_nothing_uid): Remove prototype.
6333 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6334 copy_call_info and virtual_call hooks.
6335 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6336 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6337 * debug.c (do_nothing_debug_hooks): Likewise.
6338 (debug_nothing_uid): Remove.
6339 * doc/invoke.texi (-fenable-icf-debug): Remove.
6340 * common.opt (-fenable-icf-debug): Likewise.
6342 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6343 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6344 call's MEM. Handle functions returning aggregate through a hidden
6345 first pointer. For virtual calls add clobbered pc to call arguments
6347 * dwarf2out.c (gen_subprogram_die): Emit
6348 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6352 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6353 * rtl.h (ENTRY_VALUE_EXP): Define.
6354 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6355 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6356 * print-rtl.c (print_rtx): Likewise.
6357 * gengtype.c (adjust_field_rtx_def): Likewise.
6358 * var-tracking.c (vt_add_function_parameter): Adjust
6359 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6360 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6361 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6362 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6363 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6365 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6366 Call var_location debug hook even on CALL_INSNs.
6367 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6368 * rtl.def (ENTRY_VALUE): New.
6369 * dwarf2out.c: Include cfglayout.h.
6370 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6371 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6372 (struct call_arg_loc_node): New type.
6373 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6374 tail_call_site_count): New variables.
6375 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6376 DW_TAG_GNU_call_site_parameter.
6377 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6378 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6379 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6380 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6381 and DW_AT_GNU_all_source_call_sites.
6382 (mem_loc_descriptor): Handle ENTRY_VALUE.
6383 (add_src_coords_attributes): Don't add enything if
6384 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6385 (dwarf2out_abstract_function): Save and clear call_arg_location,
6386 call_site_count and tail_call_site_count around dwarf2out_decl call.
6387 (gen_call_site_die): New function.
6388 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6389 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6390 (dwarf2out_function_decl): Clear call_arg_locations,
6391 call_arg_loc_last, set call_site_count and tail_call_site_count
6392 to -1 and free block_map.
6393 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6394 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6395 followed by any real instructions.
6396 (dwarf2out_begin_function): Set call_site_count and
6397 tail_call_site_count to 0.
6398 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6399 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6400 attempt to force a DIE for it and worst case remove the attribute.
6401 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6402 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6404 * var-tracking.c: Include tm_p.h.
6405 (vt_stack_adjustments): For calls call note_register_arguments.
6406 (argument_reg_set): New variable.
6407 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6408 ensure the VALUE is resolved.
6409 (call_arguments): New variable.
6410 (prepare_call_arguments): New function.
6411 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6412 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6413 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6414 always use the best expression.
6415 (vt_expand_loc): Add ignore_cur_loc argument.
6416 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6417 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6418 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6420 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6421 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6422 argument. Don't call cselib_preserve_only_values and
6424 (note_register_arguments): New function.
6425 (vt_initialize): Compute argument_reg_set. Call
6426 vt_add_function_parameters before processing basic blocks instead of
6427 afterwards. For calls call prepare_call_arguments before calling
6428 cselib_process_insn.
6429 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6430 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6431 (var-tracking.o): Depend on $(TM_P_H).
6432 * cfglayout.h (insn_scope): New prototype.
6433 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6434 * cfglayout.c (insn_scope): No longer static.
6435 * insn-notes.def (CALL_ARG_LOCATION): New.
6436 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6437 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6438 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6439 nothing for DECL_EXTERNAL BLOCK_VARS.
6441 2011-03-16 Alan Modra <amodra@gmail.com>
6444 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6445 create invalid offset address for vsx splat insn.
6446 * config/rs6000/predicates.md (splat_input_operand): New.
6447 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6449 2011-03-15 Xinliang David Li <davidxl@google.com>
6452 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6453 (normalize_preds): New function.
6454 (is_use_properly_guarded): Normalize def predicates.
6456 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6459 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6460 in the output template.
6462 2011-03-15 Richard Guenther <rguenther@suse.de>
6465 * tree-pretty-print.c (dump_function_declaration): Properly
6466 dump unprototyped and varargs function types.
6468 2011-03-15 Richard Guenther <rguenther@suse.de>
6470 PR tree-optimization/13954
6471 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6474 2011-03-15 Richard Guenther <rguenther@suse.de>
6476 PR tree-optimization/48037
6477 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6478 selects into BIT_FIELD_REFs.
6479 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6482 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6484 PR tree-optimization/48129
6485 * builtins.c (fold_builtin_snprintf): Convert to type of
6486 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6487 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6489 2011-03-15 Richard Guenther <rguenther@suse.de>
6491 PR tree-optimization/41490
6492 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6493 value but with VUSE.
6494 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6496 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6497 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6498 * tree-tailcall.c (find_tail_calls): Ignore returns.
6500 2011-03-15 Richard Guenther <rguenther@suse.de>
6503 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6504 or variable-indexed array accesses when in gimple form.
6506 2011-03-15 Richard Guenther <rguenther@suse.de>
6508 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6510 2011-03-15 Alan Modra <amodra@gmail.com>
6513 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6514 presume symbol_refs without a symbol_ref_decl are suitably
6515 aligned, nor other trees we may see here. Handle anchor symbols.
6516 (legitimate_constant_pool_address_p): Comment. Add mode param.
6517 Check cmodel=medium addresses. Adjust all calls.
6518 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6519 creating cmodel=medium optimized access to locals.
6520 * config/rs6000/constraints.md (R): Pass QImode to
6521 legitimate_constant_pool_address_p.
6522 * config/rs6000/predicates.md (input_operand): Pass mode to
6523 legitimate_constant_pool_address_p.
6524 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6527 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6530 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6531 64-bit constants being loaded into registers other than GPRs such
6532 as loading 0 into a VSX register.
6534 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6536 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6538 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6541 * builtins.c (fold_builtin_snprintf): New function.
6542 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6543 (fold_builtin_4): Likewise.
6546 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6547 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6548 and C - X == X also strip nops from +/-/p+ operand.
6549 When optimizing -X == C, fold C to arg0's type.
6552 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6553 emit it as add_AT_int instead of add_AT_unsigned.
6555 2011-03-14 Tom Tromey <tromey@redhat.com>
6557 * unwind-dw2.c: Include sys/sdt.h if it exists.
6558 (_Unwind_DebugHook): Use STAP_PROBE2.
6559 * config.in, configure: Rebuild.
6560 * configure.ac: Check for sys/sdt.h.
6562 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6564 * config/i386/i386.md (ROUND_FLOOR): New constant.
6565 (ROUND_CEIL): Ditto.
6566 (ROUND_TRUNC): Ditto.
6567 (ROUND_MXCSR): Ditto.
6568 (ROUND_NO_EXC): Ditto.
6569 (rint<mode>2): Use new defines instead of numerical constants.
6570 (floor<mode>2): Ditto.
6571 (ceil<mode>2): Ditto.
6572 (btrunc<mode>2): Ditto.
6573 * config/i386/i386-builtin-types.def: Define ROUND function type
6575 * config/i386/i386.c (enum ix86_builtins): Add
6576 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6577 (struct builtin_description): Add
6578 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6579 (ix86_expand_sse_round): New static function.
6580 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6582 (ix86_builtin_vectorized_function): Handle
6583 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6585 2011-03-14 Tom Tromey <tromey@redhat.com>
6587 * c-parser.c (c_parser_asm_string_literal): Clear
6588 warn_overlength_strings.
6590 2011-03-14 Tom Tromey <tromey@redhat.com>
6592 * c-parser.c (disable_extension_diagnostics): Save
6593 warn_overlength_strings.
6594 (restore_extension_diagnostics): Restore warn_overlength_strings.
6596 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6598 * BASE-VER: Change to 4.7.0.
6600 2011-03-14 Richard Guenther <rguenther@suse.de>
6603 * tree.c (build_vector_from_val): Adjust assert to requirements
6606 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6609 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6611 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
6613 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6614 terms of target_flags_explicit. Adjust copyright year.
6616 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6617 * config/rs6000/t-freebsd: New file. Add override for
6620 2011-03-13 Chris Demetriou <cgd@google.com>
6622 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6623 (-fno-diagnostics-show-option): this, to reflect current default.
6624 (-Werror=): Update text about -fno-diagnostics-show-option.
6626 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
6629 * config/rs6000/predicates.md (easy_vector_constant_add_self,
6630 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6631 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6632 mode is not V2DImode or V2DFmode.
6633 (vspltis_constant): Do not handle V2DImode and V2DFmode.
6634 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6635 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6637 (movdi_internal64): Likewise.
6639 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
6641 PR tree-optimization/47127
6642 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6644 (set_cloog_options): Same.
6645 (scop_to_clast): Same.
6646 (print_clast_stmt): Do not call cloog_state_malloc and
6648 (print_generated_program): Same.
6650 * graphite-clast-to-gimple.h (cloog_state): Declared.
6651 (scop_to_clast): Adjust declaration.
6652 * graphite.c (cloog_state): Defined here.
6653 (graphite_initialize): Call cloog_state_malloc.
6654 (graphite_finalize): Call cloog_state_free.
6656 2011-03-11 Jason Merrill <jason@redhat.com>
6658 * attribs.c (lookup_attribute_spec): Take const_tree.
6661 2011-03-11 Joseph Myers <joseph@codesourcery.com>
6663 * config/sparc/sparc.c (sparc_option_override): Use
6664 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6666 2011-03-11 Richard Guenther <rguenther@suse.de>
6668 PR tree-optimization/48067
6669 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6670 multiplication result will be only used once on the target
6673 2011-03-11 Richard Guenther <rguenther@suse.de>
6675 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6677 2011-03-11 Richard Guenther <rguenther@suse.de>
6680 * tree.c (find_decls_types_r): Do not walk types only reachable
6681 from IDENTIFIER_NODEs.
6683 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6686 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6687 all vnode->force_output nodes as needed.
6689 2011-03-11 Jason Merrill <jason@redhat.com>
6692 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6693 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6695 2011-03-11 Martin Jambor <mjambor@suse.cz>
6697 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6700 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6702 PR tree-optimization/48063
6703 * ipa-inline.c (cgraph_decide_inlining): Don't try to
6704 inline functions called once if !tree_can_inline_p (node->callers).
6706 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
6708 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6710 * config/score/score3.c: Delete.
6711 * config/score/score3.h: Delete.
6712 * config/score/mul-div.S: Delete.
6713 * config/score/sfp-machine.h: Add new file.
6714 * config/score/constraints.md: Add new file.
6715 * config/score/t-score-softfp: Add new file.
6716 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6717 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6718 (score7_extra_constraint): Delete.
6719 (score7_option_override): Remove unused code.
6720 * config/score/score.c: Remove score3 and score5 define and code.
6721 * config/score/score.h: Remove score3 and score5 define and code.
6722 * config/score/score.md: Remove score3 template and unusual insn.
6723 * config/score/score.opt: Remove score3 and score5 options.
6725 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6727 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6728 when _HPUX_SOURCE is defined.
6729 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6731 2011-03-10 Jason Merrill <jason@redhat.com>
6734 * stor-layout.c (layout_type): Don't set structural equality
6735 on arrays of incomplete type.
6736 * tree.c (type_hash_eq): Handle comparing them properly.
6738 2011-03-10 Jakub Jelinek <jakub@redhat.com>
6741 * config/s390/s390.c (s390_delegitimize_address): Make sure the
6742 result mode matches original rtl mode.
6744 2011-03-10 Nick Clifton <nickc@redhat.com>
6746 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6747 (andsi3, andsi3_flags): Fix timings for three operand alternative.
6749 2011-03-09 Jakub Jelinek <jakub@redhat.com>
6751 PR rtl-optimization/47866
6752 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6753 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6754 if target wasn't scalar.
6755 * function.c (assign_stack_temp_for_type): Assert that neither
6756 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6757 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6759 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6761 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6763 * config/s390/s390-protos.h (s390_label_align): New prototype.
6764 * config/s390/s390.c (s390_label_align): New function.
6765 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6767 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6770 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6771 V2DI/V2DF constants. Only all 0's or all 1's are easy.
6772 (output_vec_const_move): Ditto.
6774 2011-03-08 Anatoly Sokolov <aesok@post.ru>
6776 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6777 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6778 * config/mips/mips.c (mips_preferred_reload_class): Make static.
6779 Change 'rclass' argument and result type to reg_class_t.
6780 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6782 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
6784 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6785 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6786 (TARGET_MEMORY_MOVE_COST): Define.
6787 (avr_register_move_cost, avr_memory_move_cost): New Functions.
6789 2011-03-08 Jakub Jelinek <jakub@redhat.com>
6792 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6795 PR tree-optimization/48022
6796 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6799 2011-03-07 Jakub Jelinek <jakub@redhat.com>
6802 * var-tracking.c (find_use_val): Return NULL for
6803 cui->sets && cui->store_p BLKmode MEMs.
6805 2011-03-07 Anatoly Sokolov <aesok@post.ru>
6807 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6809 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6810 xstormy16_print_operand_address): Remove.
6811 * config/stormy16/stormy16.c (xstormy16_print_operand,
6812 xstormy16_print_operand_address): Make static.
6813 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6815 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
6818 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6819 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6822 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
6825 * cfgloopmanip.c (fix_bb_placements): Return immediately
6826 if FROM is BASE_LOOP's header.
6828 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
6830 * gimplify.c (gimplify_function_tree): Fix building calls
6831 to __builtin_return_address.
6833 2011-03-07 Alan Modra <amodra@gmail.com>
6835 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6836 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6837 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6838 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6840 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6841 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6842 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6843 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6844 * config/rs6000/rs6000.c
6845 (rs6000_elf_end_indicate_exec_stack): Rename to..
6846 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
6847 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
6848 (rs6000_file_start): ..here.
6849 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6850 file scope variables.
6851 (call_ABI_of_interest): New function.
6852 (init_cumulative_args): Set above vars when function return value
6853 is a float, vector, or small struct.
6854 (rs6000_function_arg_advance_1): Likewise for function args.
6855 (rs6000_va_start): Set rs6000_passes_float if variable arg function
6856 references float args.
6858 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
6860 * doc/cfg.texi: Remove "See" before @ref.
6861 * doc/invoke.texi: Likewise.
6863 2011-03-05 Jason Merrill <jason@redhat.com>
6865 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6867 2011-03-05 Anthony Green <green@moxielogic.com>
6869 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6871 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
6873 PR rtl-optimization/47899
6874 * cfgloopmanip.c (fix_bb_placements): Fix first argument
6875 to flow_loop_nested_p when moving the loop upward.
6877 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
6880 * arm.md (movhi_insn_arch4): Accept any immediate constant.
6882 2011-03-05 Jakub Jelinek <jakub@redhat.com>
6884 PR tree-optimization/47967
6885 * ipa-cp.c (build_const_val): Return NULL instead of creating
6886 VIEW_CONVERT_EXPR for mismatching sizes.
6887 (ipcp_create_replace_map): Return NULL if build_const_val failed.
6888 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6889 give up on versioning.
6891 2011-03-05 Alan Modra <amodra@gmail.com>
6894 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6895 full cmodel medium/large lo_sum + high addresses.
6897 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6899 * config/s390/s390.c (s390_decompose_address): Reject non-literal
6900 pool references in UNSPEC_LTREL_OFFSET.
6902 2011-03-04 Jan Hubicka <jh@suse.cz>
6905 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6906 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6907 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6909 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6910 cgraph_add_thunk): Add node pointers.
6911 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6912 associated to right node.
6913 (input_node): Update use of cgraph_same_body_alias
6914 and cgraph_add_thunk.
6916 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
6918 * config/i386/i386.opt (mprefer-avx128): New flag.
6919 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6920 modes when the flag -mprefer-avx128 is on.
6922 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
6924 * dwarf2out.c (compare_loc_operands): Fix address handling.
6926 2011-03-04 Alan Modra <amodra@gmail.com>
6928 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6930 2011-03-04 Richard Guenther <rguenther@suse.de>
6933 * expmed.c (extract_bit_field_1): Prefer vector modes that
6934 vec_extract patterns can handle.
6936 2011-03-04 Richard Guenther <rguenther@suse.de>
6939 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6941 2011-03-04 Richard Henderson <rth@redhat.com>
6943 * explow.c (emit_stack_save): Remove 'after' parameter.
6944 (emit_stack_restore): Likewise.
6945 * expr.h: Update to match.
6946 * builtins.c, calls.c, stmt.c: Likewise.
6947 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6948 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6949 * function.c (expand_function_end): Insert the emit_stack_save
6950 sequence before parm_birth_insn instead of after.
6952 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
6954 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6955 (ssse3_pmaddubsw128): Ditto.
6956 (ssse3_pmaddubsw): Ditto.
6958 2011-03-03 Steve Ellcey <sje@cup.hp.com>
6960 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6962 2011-03-03 Jakub Jelinek <jakub@redhat.com>
6965 * gimplify.c (omp_add_variable): Only call omp_notice_variable
6966 on TYPE_SIZE_UNIT if it is a DECL.
6969 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6970 first operand is not is_gimple_mem_ref_addr, try to fold it.
6971 If the operand still isn't is_gimple_mem_ref_addr, clear
6974 2011-03-03 Richard Guenther <rguenther@suse.de>
6977 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6979 (refs_may_alias_p_1): For release branches return true if
6980 we are confused by our input.
6982 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6984 * config/s390/s390.c (s390_function_value): Rename to ...
6985 (s390_function_and_libcall_value): ... this.
6986 (s390_function_value): New function.
6987 (s390_libcall_value): New function.
6988 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6989 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6990 target macro definitions.
6991 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6993 2011-03-02 Joseph Myers <joseph@codesourcery.com>
6995 * config/i386/freebsd64.h (CC1_SPEC): Define.
6996 * config/i386/linux64.h (CC1_SPEC): Define.
6997 * config/i386/x86-64.h (CC1_SPEC): Don't define.
6999 2011-03-02 Anatoly Sokolov <aesok@post.ru>
7001 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7003 * config/stormy16/stormy16.c: Include reload.h.
7004 (xstormy16_memory_move_cost): New function.
7005 (TARGET_MEMORY_MOVE_COST): Define.
7007 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
7009 PR rtl-optimization/47925
7010 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7011 with side effects. Remove the more-specific check for volatile asms.
7013 2011-03-02 Alan Modra <amodra@gmail.com>
7016 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7017 toc relative addresses for valid offsets.
7019 2011-03-01 Richard Guenther <rguenther@suse.de>
7021 PR tree-optimization/47890
7022 * tree-vect-loop.c (get_initial_def_for_induction): Set
7023 related stmt properly.
7025 2011-03-01 Richard Guenther <rguenther@suse.de>
7028 * lto-streamer.c (lto_record_common_node): Also register
7031 2011-03-01 Richard Guenther <rguenther@suse.de>
7034 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7035 Do not stream DECL_ABSTRACT_ORIGIN.
7036 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7037 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7038 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7039 Do not stream DECL_ABSTRACT_ORIGIN.
7040 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7041 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7043 2011-02-28 Anatoly Sokolov <aesok@post.ru>
7045 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7046 FUNCTION_VALUE_REGNO_P): Remove.
7047 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7048 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7049 Add 'outgoing' argument.
7050 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7052 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7053 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7055 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
7058 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7059 (lookup_filename): Likewise.
7060 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7062 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
7063 Jakub Jelinek <jakub@redhat.com>
7066 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7067 (assign_stack_local_1): Change last argument type to int.
7068 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7069 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
7070 don't record padding space into frame_space_list nor use those areas.
7071 (assign_stack_local): Adjust caller.
7072 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7073 of assign_stack_local, pass 0 as last argument.
7074 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7077 2011-02-28 Jakub Jelinek <jakub@redhat.com>
7080 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7081 Use target address_mode and pointer_mode hooks instead of hardcoded
7082 Pmode and ptr_mode. Handle some simple cases of extending if
7083 POINTERS_EXTEND_UNSIGNED < 0.
7084 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7085 Call convert_debug_memory_address.
7086 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7087 convert_debug_memory_address.
7090 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7091 * configure: Regenerated.
7092 * config.in: Regenerated.
7093 * varasm.c (default_function_section): Return NULL
7094 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7096 2011-02-28 Martin Jambor <mjambor@suse.cz>
7098 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7099 the description to match the printed values.
7101 2011-02-28 Richard Guenther <rguenther@suse.de>
7103 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7104 of the copied scope tree.
7106 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7108 * doc/extend.texi (Function Attributes): Avoid deeply (and
7109 wrongly) nested tables.
7111 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7114 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7115 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7116 r isn't op0 nor op1.
7118 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7120 * config/avr/avr.md: Remove magic comment for emacs.
7122 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7125 * config/avr/avr.c (avr_option_override): Use error on bad options.
7126 (avr_help): New function.
7127 (TARGET_HELP): Define.
7129 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
7132 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7133 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7135 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7137 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7138 (ARM Options): Ditto.
7139 (i386 and x86-64 Options): Ditto.
7140 (RX Options): Ditto.
7141 (SPARC Options): Ditto.
7143 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
7145 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7146 FreeBSD 6 and later. Generally use cpu generic.
7148 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7150 * doc/cpp.texi: Update copyright years.
7152 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
7155 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7157 2011-02-25 Jon Beniston <jon@beniston.com>
7160 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7161 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7162 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7163 (lm32_block_move_inline): Add type cast to remove warning.
7164 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7165 (gen_int_relational): Move declarations to start of function.
7167 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
7169 PR tree-optimization/45470
7170 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7171 can throw internally only.
7172 * tree-vect-stmts.c (vectorizable_call): Likewise.
7174 2011-02-24 Anatoly Sokolov <aesok@post.ru>
7176 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7177 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7178 * config/stormy16/stormy16-protos.h
7179 (xstormy16_preferred_reload_class): Remove.
7180 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7181 static. Change 'rclass' argument and return type to reg_class_t.
7182 (TARGET_PREFERRED_RELOAD_CLASS,
7183 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7185 2011-02-24 Richard Guenther <rguenther@suse.de>
7187 * lto-streamer-in.c (input_bb): Do not find referenced vars
7188 in debug statements.
7190 2011-02-23 Jason Merrill <jason@redhat.com>
7192 * common.opt (fabi-version): Document v5 and v6.
7194 2011-02-23 Richard Guenther <rguenther@suse.de>
7196 PR tree-optimization/47849
7197 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7199 2011-02-23 Jie Zhang <jie@codesourcery.com>
7201 * opts-common.c (decode_cmdline_option): Print empty string
7202 argument as "" in decoded->orig_option_with_args_text.
7203 * gcc.c (execute): Print empty string argument as ""
7204 in the verbose output.
7205 (do_spec_1): Keep empty string argument.
7207 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
7209 * config.gcc: Declare score-* and crx-* obsolete.
7211 2011-02-23 Jie Zhang <jie@codesourcery.com>
7213 PR rtl-optimization/47763
7214 * web.c (web_main): Ignore naked clobber when replacing register.
7216 2011-02-22 Anatoly Sokolov <aesok@post.ru>
7218 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7221 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
7224 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7226 2011-02-22 Mike Stump <mikestump@comcast.net>
7228 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7230 * configure: Regenerate.
7232 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
7234 PR rtl-optimization/46002
7235 * ira-color.c (update_copy_costs): Change class intersection
7236 test to reg_class_contents[] test of 'hard_regno'.
7238 2011-02-21 Joseph Myers <joseph@codesourcery.com>
7240 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7242 * config/hpux11.opt (mt): Likewise.
7243 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7244 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7245 * config/vax/elf.opt (mno-asm-pic): Likewise.
7246 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7248 2011-02-21 Mike Stump <mikestump@comcast.net>
7251 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7252 tree so we can get save the type.
7253 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7254 for CFString instead of trying to use past the end of the builtins.
7255 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7256 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7257 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7258 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7259 Rename to darwin_builtin_cfstring.
7260 (darwin_init_cfstring_builtins): Return the built type.
7262 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
7265 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7266 (_mm256_insert_epi64): Use _mm_insert_epi64.
7268 2011-02-21 Anatoly Sokolov <aesok@post.ru>
7270 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7271 * config/stormy16/stormy16-protos.h
7272 (xstormy16_mode_dependent_address_p): Remove.
7273 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7274 Make static. Change return type to bool. Change argument type to
7275 const_rtx. Remove dead code.
7276 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7278 2011-02-21 Richard Guenther <rguenther@suse.de>
7281 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7282 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7283 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7285 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7286 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7288 2011-02-20 Richard Guenther <rguenther@suse.de>
7291 * tree.c (free_lang_data_in_decl): Clean builtins from
7292 the TU decl BLOCK_VARS.
7294 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
7298 * haifa-sched.c (fix_tick_ready): Skip tick computation
7301 2011-02-19 Richard Guenther <rguenther@suse.de>
7304 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7305 Remove lazy BLOCK_VARS streaming.
7306 (lto_input_ts_block_tree_pointers): Likewise.
7307 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7309 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7311 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7313 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7315 * config/i386/biarch32.h, config/i386/mach.h,
7316 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7318 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7321 * config/i386/i386.md (peephole2 for shift and plus): Use
7322 operands[1] original mode in the first insn.
7324 2011-02-18 Mike Stump <mikestump@comcast.net>
7326 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7328 2011-02-18 Jan Hubicka <jh@suse.cz>
7331 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7332 to zero when the function is not inlinable at all.
7334 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7336 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7337 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7338 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7339 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7340 * config/pa/t-pa64: Likewise.
7341 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7343 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7346 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7348 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7351 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7353 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7355 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7356 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7357 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7358 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7359 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7360 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7361 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7362 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7363 m32r_legitimate_address_p): New functions.
7364 * config/m32r/constraints.md (constraint "S"): Don't use
7365 STORE_PREINC_PREDEC_P.
7366 (constraint "U"): Don't use LOAD_POSTINC_P.
7368 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7370 PR rtl-optimization/46178
7371 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7372 compute ira_hard_regno_cover_class[].
7374 2011-02-18 Richard Guenther <rguenther@suse.de>
7377 * lto-streamer.h (lto_global_var_decls): Declare.
7378 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7379 statics for global var processing.
7381 2011-02-18 Richard Guenther <rguenther@suse.de>
7383 PR tree-optimization/47737
7384 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7385 edge dominance check.
7387 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7390 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7391 avoid invalid rtx sharing.
7393 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7395 * doc/cpp.texi (Obsolete Features): Add background on the
7396 origin of assertions.
7398 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7400 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7402 * config/darwin.c (output_objc_section_asm_op): Added support for
7404 (is_objc_metadata): New.
7405 (darwin_objc2_section): New.
7406 (darwin_objc1_section): New.
7407 (machopic_select_section): Added support for ABI v1 and v2.
7408 (darwin_emit_objc_zeroed): New.
7409 (darwin_output_aligned_bss): Detect objc metadata and treat it
7411 (darwin_asm_output_aligned_decl_common): Same.
7412 (darwin_asm_output_aligned_decl_local): Same.
7413 * config/darwin-sections.def: Updated for ABI v1 and v2.
7414 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7415 compiling Objective-C code for the NeXT runtime, default to using
7416 ABI version 0 for 32-bit, and version 2 for 64-bit.
7418 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7420 * common.opt (optimize_fast): New Variable.
7421 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7422 instead of local variable ofast.
7424 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7426 * doc/invoke.texi (fobjc-abi-version): Documented.
7427 (fobjc-nilcheck): Documented.
7428 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7431 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7434 * common.opt (export-dynamic): New Driver option.
7435 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7437 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7439 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7441 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7442 Jan Hubicka <jh@suse.cz>
7446 * cfgexpand.c (account_used_vars_for_block): Remove.
7447 (estimated_stack_frame_size): Use referenced vars.
7448 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7449 that were referenced in the original function. Test src_fn
7450 rather than cfun. Drop redundant get_var_ann.
7451 (setup_one_parameter): Drop redundant get_var_ann.
7452 (declare_return_variable): Likewise.
7453 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7454 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7455 * ipa-inline.c (compute_inline_parameters): Do not compute
7456 disregard_inline_limits here.
7457 (compute_inlinable_for_current, pass_inlinable): New.
7458 (pass_inline_parameters): Require PROP_referenced_vars.
7459 * cgraphunit.c (cgraph_process_new_functions): Don't run
7460 compute_inline_parameters explicitly unless function is in SSA form.
7461 (cgraph_analyze_function): Set .disregard_inline_limits.
7462 * tree-sra.c (convert_callers): Compute inliner parameters
7463 only for functions already in SSA form.
7465 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7467 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7468 -mlittle-endian-data.
7470 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7472 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7473 -mno-fpu, not -fpu and -no-fpu.
7474 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7475 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7477 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7480 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7481 input reload with PLUS RTX.
7483 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7485 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7486 of InverseVar(MDMX).
7488 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7490 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7493 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7495 * config/mn10300/mn10300.opt (mno-crt0): New.
7497 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7499 * config/m68k/uclinux.opt (static-libc): New Driver option.
7501 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7503 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7505 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7507 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7508 %{muser-extend-enabled}.
7510 2011-02-16 Richard Guenther <rguenther@suse.de>
7512 PR tree-optimization/47738
7513 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7514 the TODO from tree_predictive_commoning.
7516 2011-02-15 Jeff Law <law@redhat.com>
7519 2011-01-25 Jeff Law <law@redhat.com>
7521 PR rtl-optimization/37273
7522 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7523 handle them like argument loads from stack slots. Do not double
7524 count memory for memory constants and argument loads from stack slots.
7526 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7529 * combine.c (cant_combine_insn_p): Revert the last change.
7531 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7534 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7535 mode for vector constants. Remove code that checks for TImode.
7537 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7541 * cgraph.h (compute_inline_parameters): Return void.
7542 * ipa-inline.c (compute_inline_parameters): Adjust.
7544 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7548 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7550 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7551 * ipa-inline.c (compute_inline_parameters): Adjust.
7553 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7557 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7558 Adjust all users. Pass FN to...
7559 * tree-flow-inline.h (first_referenced_var): ... this. Add
7561 * ipa-struct-reorg.c: Adjust.
7562 * tree-dfa.c: Adjust.
7563 * tree-into-ssa.c: Adjust.
7564 * tree-sra.c: Adjust.
7565 * tree-ssa-alias.c: Adjust.
7566 * tree-ssa-live.c: Adjust.
7567 * tree-ssa.c: Adjust.
7568 * tree-ssanames.c: Adjust.
7569 * tree-tailcall.c: Adjust.
7571 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7575 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7577 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7578 * tree-flow-inline.h: Adjust.
7579 * gimple-pretty-print.c: Adjust.
7580 * tree-into-ssa.c: Adjust.
7581 * tree-ssa.c: Adjust.
7582 * cfgexpand.c: Adjust.
7584 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7586 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7587 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7588 (EXTRA_CONSTRAINT): Delete.
7589 * config/iq2000/constraints.md: New file.
7590 * config/iq2000/iq2000.md: Include it.
7591 (define_insn ""): Delete.
7592 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7593 unsupported constraint letters from patterns.
7594 (call_value, call_value_internal1): Likewise.
7595 (call_value_multiple_internal1): Likewise.
7597 2011-02-15 Nick Clifton <nickc@redhat.com>
7599 * config/mn10300/mn10300.c: Include tm-constrs.h.
7600 (struct liw_data): New data structure describing an LIW candidate
7602 (extract_bundle): Use struct liw_data. Allow small integer
7603 operands for some instructions.
7604 (check_liw_constraints): Use struct liw_data. Remove swapped
7605 parameter. Add comments describing the checks. Fix bug when
7606 assigning the source of liw1 to the source of liw2.
7607 (liw_candidate): Delete. Code moved into extract_bundle.
7608 (mn10300_bundle_liw): Use struct liw_data. Check constraints
7610 * config/mn10300/predicates.md (liw_operand): New predicate.
7611 Allows registers and small integer constants.
7612 * config/mn10300/constraints.md (O): New constraint. Accetps
7613 integers in the range -8 to +7 inclusive.
7614 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7615 for moving a small integer into a register. Give this alternative
7617 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7618 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7619 using the J,K,L and M constraints,
7620 (liw): Remove SI mode on second operands to allow for HI and QI
7622 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
7625 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7628 * combine.c (cant_combine_insn_p): Check zero/sign extended
7631 2011-02-15 Richard Guenther <rguenther@suse.de>
7633 PR tree-optimization/47743
7634 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7635 for a non-type-compatible VN lookup bail out.
7637 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7639 * config/fr30/constraints.md: New file.
7640 * config/fr30/fr30.md: Include it.
7641 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7642 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7643 (EXTRA_CONSTRAINT): Delete.
7645 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7647 * config/frv/constraints.md: New file.
7648 * config/frv/predicates.md: Include it.
7649 * config/frv/frv.c (reg_class_from_letter): Delete.
7650 (frv_option_override): Don't initialize it.
7651 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7652 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7653 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7654 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7655 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7656 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7657 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7658 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7659 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7660 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7661 (REG_CLASS_FROM_CONSTRAINT): Delete.
7663 2011-02-15 Jakub Jelinek <jakub@redhat.com>
7666 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7667 if frame size is 0 in a leaf function.
7669 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7672 * config/alpha/host-osf.c: New file.
7673 * config/alpha/x-osf: New file.
7674 * config.host (alpha*-dec-osf*): Use it.
7676 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7678 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7679 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7680 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7681 (rx_mode_dependent_address_p): ...this. Make static. Change argument
7683 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7685 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7687 * config/stormy16/constraints.md: New file.
7688 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7689 Use satisfies_constraint_Q and satisfies_constraint_R.
7690 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7692 (xstormy16_legitiamte_address_p): Declare.
7693 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7694 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7695 (EXTRA_CONSTRAINT): Delete.
7696 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7698 (xstormy16_extra_constraint_p): Delete.
7700 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
7702 PR tree-optimization/46494
7703 * loop-unroll.c (split_edge_and_insert): Adjust comment.
7704 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7705 (pass_rtl_loop_done): Add TODO_verify_flow.
7706 * fwprop.c (pass_rtl_fwprop): Likewise.
7707 * modulo-sched.c (pass_sms): Likewise.
7708 * tree-ssa-dom.c (pass_dominator): Likewise.
7709 * tree-ssa-loop-ch.c (pass_ch): Likewise.
7710 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7711 (pass_tree_loop_done): Likewise.
7712 * tree-ssa-pre.c (execute_pre): Likewise.
7713 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7714 * tree-ssa-sink.c (pass_sink_code): Likewise.
7715 * tree-vrp.c (pass_vrp): Likewise.
7717 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7719 * config/v850/constraints.md: New file.
7720 * config/v850/v850.md: Include it.
7721 * config/v850/predicates.md (reg_or_0_operand): Use
7722 satisfies_constraint_G.
7723 (special_symbolref_operand): Use satisfies_constraint_K.
7724 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7725 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7726 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7727 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7728 (EXTRA_CONSTRAINT): Delete.
7729 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7730 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7731 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7733 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7736 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7739 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7741 * config/mcore/constraints.md: New file.
7742 * config/mcore/mcore.md: Include it.
7743 * config/mcore/mcore.c (reg_class_from_letter): Delete.
7744 * config/mcore/mcore.h (reg_class_from_letter): Delete.
7745 (REG_CLASS_FROM_LETTER): Delete.
7746 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7747 insn_const_int_ok_for_constraint.
7748 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7749 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7750 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7751 (EXTRA_CONSTRAINT): Delete.
7753 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7756 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7757 (IS_SIGHANDLER): Define.
7758 (sparc64_is_sighandler): New function, split off from
7759 sparc64_fallback_frame_state.
7760 (sparc_is_sighandler): New function, split off from
7761 sparc_fallback_frame_state.
7762 (sparc64_fallback_frame_state): Merge with ...
7763 (sparc_fallback_frame_state): ... this into ...
7764 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7765 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
7766 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
7767 stack instead of hardcoded offsets.
7769 2011-02-14 Andriy Gapon <avg@freebsd.org>
7772 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7774 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7776 * configure: Regenerate.
7778 2011-02-12 Joseph Myers <joseph@codesourcery.com>
7781 * gcc.c (asm_options): Correct spec matching --target-help.
7783 2011-02-12 Martin Jambor <mjambor@suse.cz>
7785 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7786 to gimple call error.
7788 2011-02-12 Mike Stump <mikestump@comcast.net>
7790 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7791 comments in backslash regions.
7793 2011-02-12 Mike Stump <mikestump@comcast.net>
7794 Jakub Jelinek <jakub@redhat.com>
7795 Iain Sandoe <iains@gcc.gnu.org>
7798 * dwarf2out.c (output_cfa_loc): When required, apply the
7799 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7800 (output_loc_sequence): Likewise.
7801 (output_loc_operands_raw): Likewise.
7802 (output_loc_sequence_raw): Likewise.
7803 (output_cfa_loc): Likewise.
7804 (output_loc_list): Suppress register number adjustment when
7805 calling output_loc_sequence()
7806 (output_die): Likewise.
7808 2011-02-12 Anatoly Sokolov <aesok@post.ru>
7810 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7812 * config/xtensa/xtensa.c (xtensa_register_move_cost,
7813 xtensa_memory_move_cost): New functions.
7814 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7816 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
7819 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7820 in the current directory.
7821 * configure: Rebuilt.
7823 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7825 * config/darwin.c (darwin_override_options): Add a hunk missed
7826 from the commit of r168571. Trim comment line lengths and
7827 correct indents of the preceding block.
7829 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7831 * gcc.c (driver_handle_option): Concatenate the argument to -F with
7834 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7836 * common.opt (nostartfiles): New Driver option.
7838 2011-02-11 Xinliang David Li <davidxl@google.com>
7840 PR tree-optimization/47707
7841 * tree-chrec.c (convert_affine_scev): Keep type precision.
7843 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
7845 PR tree-optimization/47420
7846 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7848 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
7850 PR rtl-optimization/47614
7851 * rtl.h (check_for_inc_dec): Declare.
7852 * dse.c (check_for_inc_dec): Externalize...
7853 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7854 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7856 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7859 * gcc.c (main): Do not compile inputs if there were errors in
7861 * opts-common.c (read_cmdline_option): Check for wrong language
7862 after other error checks.
7864 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
7866 * cgraph.c: Fix comment typos.
7867 * cgraph.h: Likewise.
7868 * cgraphunit.c: Likewise.
7869 * ipa-cp.c: Likewise.
7870 * ipa-inline.c: Likewise.
7871 * ipa-prop.c: Likewise.
7872 * ipa-pure-const.c: Likewise.
7873 * ipa-ref.c: Likewise.
7874 * ipa-reference.c: Likewise.
7876 2011-02-11 Jakub Jelinek <jakub@redhat.com>
7879 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7881 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7884 * doc/sourcebuild.texi (Require Support): Document
7885 dg-require-ascii-locale.
7887 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
7889 * doc/lto.texi (Write summary): Fix missing parentheses.
7891 2011-02-10 DJ Delorie <dj@redhat.com>
7893 * config/m32c/m32c.c (m32c_option_override): Disable
7894 -fcombine-stack-adjustments until flag value tracking and compare
7895 optimization can be rewritten.
7897 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
7899 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7901 (PROCESSOR_DEFAULT64): Likewise.
7903 2011-02-10 Richard Henderson <rth@redhat.com>
7905 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7906 change from 2011-02-03.
7907 * config/rx/rx.c (flags_from_code): Likewise.
7908 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7909 is valid, n/pz otherwise.
7910 (rx_select_cc_mode): Return CCmode if Y is not zero.
7912 2011-02-10 Richard Guenther <rguenther@suse.de>
7914 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7916 2011-02-10 Richard Guenther <rguenther@suse.de>
7918 PR tree-optimization/47677
7919 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7921 2011-02-10 Jakub Jelinek <jakub@redhat.com>
7924 * combine.c (make_compound_operation): Only change shifts into
7925 multiplication for SCALAR_INT_MODE_P.
7927 2011-02-10 Jie Zhang <jie@codesourcery.com>
7931 2011-02-05 Jie Zhang <jie@codesourcery.com>
7933 * web.c (entry_register): Don't clobber the number of the
7934 first uninitialized reference in used[].
7936 2011-02-09 Richard Guenther <rguenther@suse.de>
7938 PR tree-optimization/47664
7939 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7942 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
7946 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7948 (PROCESSOR_DEFAULT64): Same.
7949 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7951 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7953 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7955 2011-02-09 Martin Jambor <mjambor@suse.cz>
7958 * tree-sra.c (struct access): New flags grp_scalar_read and
7959 grp_scalar_write. Changed description of assignment read and write
7961 (dump_access): Dump new flags, reorder all of them.
7962 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7963 to detect multiple scalar reads.
7964 (analyze_access_subtree): Use the new scalar read write flags instead
7965 of the old flags. Adjusted comments.
7967 2011-02-08 DJ Delorie <dj@redhat.com>
7970 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7973 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7975 * config/m68k/uclinux.opt: New.
7976 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7978 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7980 * config/cris/elf.opt (sim): New Driver option.
7982 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7984 * config/xtensa/elf.opt: New.
7985 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7987 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7989 * config/vax/elf.opt: New.
7990 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7992 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7994 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7996 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7998 * config/gnu-user.opt: New.
7999 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8000 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8001 *-*-uclinux*): Use gnu-user.opt.
8003 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
8005 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8006 * config/i386/gnu.h (CPP_SPEC): Likewise.
8008 2011-02-08 Ian Lance Taylor <iant@google.com>
8010 * common.opt (fcx-limited-range): Add SetByCombined flag.
8011 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8012 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8013 (fassociative-math, freciprocal-math): Likewise.
8014 (funsafe-math-optimizations): Likewise.
8015 * opth-gen.awk: Handle SetByCombined.
8016 * optc-gen.awk: Likewise.
8017 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8018 (set_unsafe_math_optimizations_flags): Likewise.
8019 * doc/options.texi (Option properties): Document SetByCombined.
8021 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8023 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8024 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8025 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8026 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8027 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8029 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
8031 PR tree-optimization/46834
8032 PR tree-optimization/46994
8033 PR tree-optimization/46995
8034 * graphite-sese-to-poly.c (used_outside_reduction): New.
8035 (detect_commutative_reduction): Call used_outside_reduction.
8036 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8037 translate_scalar_reduction_to_array only when at least one
8038 loop-phi/close-phi tuple has been detected.
8040 2011-02-08 Richard Guenther <rguenther@suse.de>
8043 * tree-vect-generic.c (expand_vector_operations_1): Update
8045 (expand_vector_operations): ... not here. Cleanup EH info
8046 and the CFG if required.
8048 2011-02-08 Richard Guenther <rguenther@suse.de>
8050 PR tree-optimization/47641
8051 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8052 require type compatibility.
8054 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8056 * gimple-low.c (lower_function_body): Don't remove the location of
8057 the return statement here.
8058 (lower_gimple_return): Do it here instead but only if the return
8059 statement is actually used twice.
8061 2011-02-08 Richard Guenther <rguenther@suse.de>
8063 PR tree-optimization/47632
8064 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8065 unused up_to_stmt parameter, return whether cfg-cleanup is
8066 necessary, remove EH info properly.
8067 (forward_propagate_into_gimple_cond): Adjust caller.
8068 (forward_propagate_into_cond): Likewise.
8069 (forward_propagate_comparison): Likewise.
8070 (tree_ssa_forward_propagate_single_use_vars): Make
8071 forward_propagate_comparison case similar to the two others.
8073 2011-02-08 Nick Clifton <nickc@redhat.com>
8075 * config/mn10300/mn10300.opt (mliw): New command line option.
8076 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8077 (liw_bundling): New automaton.
8078 (liw): New attribute.
8079 (liw_op): New attribute.
8080 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8081 (movsi_internal): Add LIW attributes.
8085 (addsi3): Separate register and immediate alternatives.
8090 (lshrsi3): Likewise.
8091 (ashrsi3): Likewise.
8093 * config/mn10300/mn10300.c (liw_op_names): New
8094 (mn10300_print_operand): Handle 'W' operand descriptor.
8095 (extract_bundle): New function.
8096 (check_liw_constraints): New function.
8097 (liw_candidate): New function.
8098 (mn10300_bundle_liw): New function.
8099 (mn10300_reorg): New function.
8100 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8101 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8102 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8103 __LIW__ or __NO_LIW__.
8104 * doc/invoke.texi: Describe the -mliw command line option.
8106 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8108 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8109 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8110 pthread_mutex_unlock): Remove.
8111 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8112 * config/pa/t-pa64: Likewise.
8113 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8114 shared libc if not linking against libpthread.
8115 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8117 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
8120 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8121 on 10.6 and later to ensure that we always use the unwinder from
8122 the system. Only add -no_compact_unwind when tarteting darwin
8125 2011-02-07 Steve Ellcey <sje@cup.hp.com>
8128 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8129 (vec_interleave_lowv2sf): Ditto.
8130 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8131 (vec_extract_oddv2sf): Ditto.
8133 2011-02-07 Mike Stump <mikestump@comcast.net>
8136 Add __ieee_divdc3 entry point.
8137 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8139 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8140 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8141 * config/darwin.c (darwin_rename_builtins): Add.
8142 * config/darwin-protos.h (darwin_rename_builtins): Add.
8144 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8147 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8150 2011-02-07 Mike Stump <mikestump@comcast.net>
8152 * config/darwin.opt (mmacosx-version-min): Update default OS version.
8154 2011-02-07 Denis Chertykov <chertykov@gmail.com>
8157 * config/avr/libgcc.S (exit): Move .endfunc
8159 2011-02-07 Richard Guenther <rguenther@suse.de>
8161 PR tree-optimization/47615
8162 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8163 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8164 (run_scc_vn): Initialize it.
8165 (visit_reference_op_load): Use it.
8166 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8168 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8170 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8171 DImode trapping arithmetic libfuncs.
8173 2011-02-07 Richard Guenther <rguenther@suse.de>
8175 PR tree-optimization/47621
8176 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8178 (execute_update_addresses_taken): ... here. Make it more
8179 conservative in what we accept.
8181 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8183 * config/sparc/freebsd.h (ASM_SPEC): Define.
8184 * config/sparc/vxworks.h (ASM_SPEC): Define.
8186 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8188 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8190 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
8192 * doc/invoke.texi: Remove reference to compiler internals from
8195 * reg-notes.def: Remove REG_VALUE_PROFILE.
8196 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8198 2011-02-05 Jakub Jelinek <jakub@redhat.com>
8201 * varasm.c (default_section_type_flags): If decl is NULL,
8202 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8204 2011-02-05 Jie Zhang <jie@codesourcery.com>
8207 * web.c (entry_register): Don't clobber the number of the
8208 first uninitialized reference in used[].
8210 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
8212 PR tree-optimization/46194
8213 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8214 (build_classic_dist_vector_1): Do not represent classic distance
8215 vectors when the access functions are variating in different loops.
8217 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8219 * config/mips/iris6.opt: New.
8220 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8222 2011-02-04 Richard Henderson <rth@redhat.com>
8223 Steve Ellcey <sje@cup.hp.com>
8226 * config/ia64/predicates.md (mux1_brcst_element): New.
8227 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8228 * config/ia64/ia64.c (ia64_unpack_assemble): New.
8229 (ia64_unpack_sign): New.
8230 (ia64_expand_unpack): Rewrite using new routines.
8231 (ia64_expand_widen_sum): Ditto.
8232 (ia64_expand_dot_prod_v8qi): Ditto.
8233 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8234 routines, add endian check.
8235 (pmpy2_even): Rename from pmpy2_r, add endian check.
8236 (pmpy2_odd): Rename from pmpy2_l, add endian check.
8237 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8238 (vec_widen_smult_hi_v4hi): Ditto.
8239 (vec_widen_umult_lo_v4hi): Ditto.
8240 (vec_widen_umult_hi_v4hi): Ditto.
8241 (mulv2si3): Change endian checks.
8242 (sdot_prodv4hi): Rewrite with new calls.
8243 (udot_prodv4hi): New.
8244 (vec_pack_ssat_v4hi): Add endian check.
8245 (vec_pack_usat_v4hi): Ditto.
8246 (vec_pack_ssat_v2si): Ditto.
8247 (max1_even): Rename from max1_r, add endian check.
8248 (max1_odd): Rename from max1_l, add endian check.
8249 (*mux1_rev): Format change.
8251 (*mux1_shuf): Ditto.
8253 (*mux1_brcst_v8qi): Use new predicate.
8254 (vec_extract_evenv8qi): Remove endian check.
8255 (vec_extract_oddv8qi): Ditto.
8256 (vec_interleave_lowv4hi): Format change.
8257 (vec_interleave_highv4hi): Ditto.
8258 (mix2_even): Rename from mix2_r, add endian check.
8259 (mix2_odd): Rename from mux2_l, add endian check.
8260 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8261 (vec_extract_evenodd_helper): Format change.
8262 (vec_extract_evenv4hi): Remove endian check.
8263 (vec_extract_oddv4hi): Remove endian check.
8264 (vec_interleave_lowv2si): Format change.
8265 (vec_interleave_highv2si): Format change.
8266 (vec_initv2si): Remove endian check.
8267 (vecinit_v2si): Add endian check.
8268 (reduc_splus_v2sf): Add endian check.
8269 (reduc_smax_v2sf): Ditto.
8270 (reduc_smin_v2sf): Ditto.
8271 (vec_initv2sf): Remove endian check.
8272 (fpack): Add endian check.
8273 (fswap): Add endian check.
8274 (vec_interleave_highv2sf): Add endian check.
8275 (vec_interleave_lowv2sf): Add endian check.
8276 (fmix_lr): Add endian check.
8277 (vec_setv2sf): Format change.
8278 (*vec_extractv2sf_0_be): Use shift to extract operand.
8279 (*vec_extractv2sf_1_be): New.
8280 (vec_pack_trunc_v4hi): Add endian check.
8281 (vec_pack_trunc_v2si): Format change.
8283 2011-02-04 Jakub Jelinek <jakub@redhat.com>
8286 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
8287 do bb, locus and block comparison and disallow loads if it is not set.
8288 (stmt_is_replaceable_p): New function.
8289 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8291 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8292 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8294 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8296 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8298 * config/rs6000/xilinx.opt: New.
8299 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8301 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8303 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8305 2011-02-03 Anatoly Sokolov <aesok@post.ru>
8307 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8308 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8309 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8310 secondary_reload_info, xtensa_secondary_reload): Remove.
8311 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8312 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8313 (xtensa_preferred_reload_class): Make static. Change return and
8314 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8315 Use CONST_DOUBLE_P predicate.
8316 (xtensa_preferred_output_reload_class): New function.
8317 (xtensa_secondary_reload): Make static.
8319 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8321 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8322 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8323 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8325 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8328 * output.h (SECTION_RELRO): Define.
8329 (SECTION_MACH_DEP): Adjust.
8330 (get_variable_section): New prototype.
8331 * varpool.c (varpool_finalize_named_section_flags): New function.
8332 (varpool_assemble_pending_decls): Call it.
8333 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8334 * cgraphunit.c (cgraph_output_in_order): Call
8335 varpool_finalize_named_section_flags.
8336 * varasm.c (get_section): Allow section flags conflicts between
8337 relro and read-only sections if the section hasn't been declared yet.
8338 Set SECTION_OVERRIDE after diagnosing section type conflict.
8339 (get_variable_section): No longer static.
8340 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8341 readonly sections that need relocations.
8342 (decl_readonly_section_1): New function.
8343 (decl_readonly_section): Use it.
8346 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8347 Steve Ellcey <sje@cup.hp.com>
8350 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8351 if section attribute used.
8353 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8355 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8356 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8357 (darwin_init_sections): Remove assertion.
8359 2011-02-03 Nick Clifton <nickc@redhat.com>
8361 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8363 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8364 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8365 instead of "n" and "pz".
8366 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8369 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8372 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8373 fma, expand FMA_EXPR as fma{,f,l} call.
8376 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8377 copy them into a unsigned char variable and pass address of it to
8378 lto_output_data_stream.
8381 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8382 around backend_init_target and lang_dependent_init_target calls.
8383 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8384 (verify_cgraph_node): Don't call set_cfun here. Use
8385 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8386 Set error_found for incorrectly represented calls to thunks.
8388 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8391 PR rtl-optimization/43494
8392 * rtl.h (for_each_inc_dec_fn): New type.
8393 (for_each_inc_dec): Declare.
8394 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8395 (for_each_inc_dec_find_inc_dec): New fn.
8396 (for_each_inc_dec_find_mem): New fn.
8397 (for_each_inc_dec): New fn.
8398 * dse.c (struct insn_size): Remove.
8399 (replace_inc_dec, replace_inc_dec_mem): Remove.
8400 (emit_inc_dec_insn_before): New fn.
8401 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8402 (canon_address): Pass mem modes to cselib_lookup.
8403 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8404 (cselib_lookup_from_insn): Likewise.
8405 (cselib_subst_to_values): Likewise.
8406 * cselib.c (find_slot_memmode): New var.
8407 (cselib_find_slot): New fn. Use it instead of
8408 htab_find_slot_with_hash everywhere.
8409 (entry_and_rtx_equal_p): Use find_slot_memmode.
8410 (autoinc_split): New fn.
8411 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8412 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8413 Deal with autoinc. Special-case recursion into MEMs.
8414 (cselib_hash_rtx): Likewise.
8415 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8416 address and MEM modes.
8417 (cselib_subst_to_values): Add memmode, pass it on.
8419 (cselib_lookup): Add memmode argument, pass it on.
8420 (cselib_lookup_from_insn): Add memmode.
8421 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8422 (struct cselib_record_autoinc_data): New.
8423 (cselib_record_autoinc_cb): New fn.
8424 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8425 mode to cselib_lookup. Reset autoinced REGs here instead of...
8426 (cselib_process_insn): ... here.
8427 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8429 (add_uses): Likewise, also to cselib_subst_to_values.
8430 (add_stores): Likewise.
8431 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8432 cselib_subst_to_values.
8433 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8434 * gcse.c (do_local_cprop): Adjusted.
8435 * postreload.c (reload_cse_simplify_set): Adjusted.
8436 (reload_cse_simplify_operands): Adjusted.
8437 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8439 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8441 PR tree-optimization/45122
8442 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8443 unsafe assumptions when there's more than one loop exit.
8445 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8448 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8449 Document using vector double with the load/store builtins, and
8450 that the load/store builtins always use Altivec instructions.
8452 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8453 to use altivec memory instructions, even on VSX.
8454 (vector_altivec_store_<mode>): Ditto.
8456 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8459 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8460 V2DF, V2DI support to load/store overloaded builtins.
8462 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8463 altivec load/store builtins for V2DF/V2DI types.
8465 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8466 set avoid indexed addresses on power6 if -maltivec.
8467 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8468 vector_altivec_load/vector_altivec_store builtins.
8469 (altivec_expand_st_builtin): Ditto.
8470 (altivec_expand_builtin): Add VSX memory builtins.
8471 (rs6000_init_builtins): Add V2DI types to internal types.
8472 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8473 load/store builtins.
8474 (rs6000_address_for_altivec): Insure memory address is appropriate
8477 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8478 vec_vsx_ld and vec_vsx_st.
8479 (vsx_store_<mode>): Ditto.
8481 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8482 variables to hold long long types for VSX vector memory builtins.
8483 (RS6000_BTI_unsigned_long_long): Ditto.
8484 (long_long_integer_type_internal_node): Ditti.
8485 (long_long_unsigned_type_internal_node): Ditti.
8487 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8488 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8489 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8491 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8493 (vec_vsx_st): Ditto.
8495 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8497 * config/pa/pa-hpux10.opt: New.
8498 * config/hpux11.opt (pthread): New Driver option.
8499 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8500 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8502 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8504 * config/ia64/vms.opt: New.
8505 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8507 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8510 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8511 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8512 generator functions.
8513 (vsx_floatuns<VSi><mode>2): Ditto.
8514 (vsx_fix_trunc<mode><VSi>2): Ditto.
8515 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8517 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8519 * config/i386/djgpp.opt (posix): New Driver option.
8521 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8523 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8524 Move to the unsupported targets list.
8526 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8528 PR rtl-optimization/47525
8529 * df-scan.c: Update copyright years.
8530 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8531 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8533 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8535 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8536 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8537 (ASM_OUTPUT_ASCII): Remove.
8538 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8540 2011-02-02 Jeff Law <law@redhat.com>
8543 * reload.c (find_reloads_address): Handle reg+d address where both
8544 components are invalid by reloading the entire address.
8546 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8547 Richard Guenther <rguenther@suse.de>
8549 PR tree-optimization/40979
8551 * passes.c (init_optimization_passes): After LIM call copy_prop
8552 and DCE to clean up.
8553 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8555 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8557 PR tree-optimization/47576
8558 PR tree-optimization/47555
8559 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8560 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8561 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8562 * tree-scalar-evolution.c (follow_ssa_edge): Use
8563 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8565 2011-02-02 Richard Guenther <rguenther@suse.de>
8567 PR tree-optimization/47566
8568 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8570 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8574 * tree-inline.c (declare_return_variable): Remove unused caller
8579 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8580 * cfgexpand.c (account_used_vars_for_block): Use them.
8581 * tree-nrv.c (tree_nrv): Likewise.
8582 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8583 (dump_scope_block): Likewise.
8584 (remove_unused_locals): Likewise.
8588 * tree-inline.c (declare_return_variable): Add result decl to
8589 local decls only once.
8590 * gimple-low.c (record_vars_into): Mark newly-created variables
8593 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8599 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8601 (no_real_insns_p, schedule_block, set_priorities): Drop special
8602 treatment of boundary debug insns.
8603 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8604 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8605 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8606 (BOUNDARY_DEBUG_INSN_P): Likewise.
8607 (SCHEDULE_DEBUG_INSN_P): Likewise.
8608 * sched-rgn.c (init_ready_list): Drop special treatment of
8609 boundary debug insns.
8610 * final.c (rest_of_clean_state): Clear notes' BB.
8612 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8614 * config/openbsd.opt (assert=): New Driver option.
8616 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8618 * config/i386/nto.opt: New.
8619 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8621 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8623 * config/i386/netware.opt: New.
8624 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8626 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8628 * config/interix.opt (posix): New Driver option.
8630 2011-02-01 DJ Delorie <dj@redhat.com>
8632 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8634 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8637 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
8639 PR tree-optimization/47561
8640 * toplev.c (process_options): Print the Graphite flags. Add
8641 flag_loop_flatten to the list of options requiring Graphite.
8643 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8645 * config/i386/cygming.opt (posix): New Driver option.
8647 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8649 * config/arm/vxworks.opt: New.
8650 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8652 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8654 * config/alpha/elf.opt: New.
8655 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8656 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8658 2011-02-01 Richard Guenther <rguenther@suse.de>
8660 PR tree-optimization/47559
8661 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8662 store-motion on references that can throw.
8664 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
8666 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8667 * tree-pass.h (TDF_CSELIB): New macro.
8668 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8669 cselib_lookup): Check for it rather than for TDF_DETAILS.
8671 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
8674 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8677 * opts.c (finish_options): Don't add x_aux_base_name if it is
8680 2011-02-01 Richard Guenther <rguenther@suse.de>
8682 PR tree-optimization/47555
8684 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
8686 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8688 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
8691 * config/lm32/t-lm32: Add multilib for all CPU options.
8693 2011-02-01 Richard Guenther <rguenther@suse.de>
8695 PR tree-optimization/47541
8696 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8697 sure to have a field at offset zero.
8699 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8701 * config/arc/arc.opt (EB, EL): New Driver options.
8703 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8705 * config/alpha/osf5.opt: New.
8706 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8708 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8710 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8712 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
8714 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8716 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8717 is an alias of -floop-interchange and that it requires the
8718 Graphite infrastructure.
8719 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8720 flag_loop_interchange based on the value of flag_tree_loop_linear.
8722 2011-01-31 Jakub Jelinek <jakub@redhat.com>
8723 Richard Guenther <rguenther@suse.de>
8725 PR tree-optimization/47538
8726 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8727 type instead of r1type, except for comparisons. For right
8728 shifts and comparisons punt if there are mismatches in
8729 sizetype vs. non-sizetype types.
8731 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8733 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8736 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8738 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8740 * configure: Regenerate.
8742 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8744 * configure.ac (gcc_cv_ld_static_option): Define.
8745 (gcc_cv_ld_dynamic_option): Define.
8746 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8748 (HAVE_LD_STATIC_DYNAMIC): Update message.
8749 (LD_STATIC_OPTION): Define.
8750 (LD_DYNAMIC_OPTION): Define.
8751 * configure: Regenerate.
8752 * config.in: Regenerate.
8753 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8754 HAVE_LD_STATIC_DYNAMIC]: Use them.
8756 2011-01-31 Nick Clifton <nickc@redhat.com>
8758 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8759 registers inside interrupt handlers if the handler is not a leaf
8762 2011-01-31 Nick Clifton <nickc@redhat.com>
8764 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8765 reg_renumber returning an INVALID_REGNUM.
8767 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8770 * doc/install.texi: Document host options discarded when cross
8771 configuring target libraries.
8773 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8776 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8779 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8781 (no_real_insns_p, schedule_block, set_priorities): Drop special
8782 treatment of boundary debug insns.
8783 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8784 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8785 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8786 (BOUNDARY_DEBUG_INSN_P): Likewise.
8787 (SCHEDULE_DEBUG_INSN_P): Likewise.
8788 * sched-rgn.c (init_ready_list): Drop special treatment of
8789 boundary debug insns.
8790 * final.c (rest_of_clean-state): Clear notes' BB.
8792 2011-01-31 Alan Modra <amodra@gmail.com>
8794 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8795 toc relative expressions as we do in print_operand_address.
8797 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
8799 * doc/extend.texi: Follow spelling conventions.
8800 * doc/invoke.texi: Fix a typo.
8802 2011-01-30 Joseph Myers <joseph@codesourcery.com>
8804 * config/hpux11.opt: New.
8805 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8806 ia64*-*-hpux*): Use hpux11.opt.
8808 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
8810 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8813 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8815 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8818 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8820 * doc/install.texi (Binaries): Remove outdated reference for
8821 Motorola 68HC11/68HC12 downloads.
8823 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8825 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8828 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8831 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8834 2011-01-28 Ahmad Sharif <asharif@google.com>
8836 * value-prof.c (check_counter): Corrected error message.
8838 2011-01-29 Jie Zhang <jie@codesourcery.com>
8840 * config/arm/arm.c (arm_legitimize_reload_address): New.
8841 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8842 arm_legitimize_reload_address.
8843 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8845 2011-01-28 Ian Lance Taylor <iant@google.com>
8847 * godump.c (go_define): Ignore macros whose definitions include
8848 two adjacent operands.
8850 2011-01-28 Jakub Jelinek <jakub@redhat.com>
8853 * varasm.c (force_const_mem): Store copy of x in desc->constant
8854 instead of x itself.
8855 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8856 itself into REG_EQUAL note.
8858 2011-01-28 Joseph Myers <joseph@codesourcery.com>
8860 * config/freebsd.opt (posix, rdynamic): New Driver options.
8862 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8864 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8866 * configure: Regenerate.
8868 2011-01-27 Joseph Myers <joseph@codesourcery.com>
8870 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8871 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8873 2011-01-27 Anatoly Sokolov <aesok@post.ru>
8875 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8876 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8877 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8878 (s390_preferred_reload_class): Make static. Change return and
8879 'rclass' argument type to reg_class_t.
8881 2011-01-27 Jan Hubicka <jh@suse.cz>
8884 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8885 (process_function_and_variable_attributes): Check defined weakrefs.
8887 2011-01-27 Martin Jambor <mjambor@suse.cz>
8889 PR tree-optimization/47228
8890 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8891 build_ref_for_offset.
8893 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8895 * config/spu/spu-elf.h (ASM_SPEC): Remove.
8897 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
8899 PR rtl-optimization/46856
8900 * postreload.c (reload_combine_recognize_const_pattern): Do not
8901 separate cc0 setter and user on cc0 targets.
8903 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
8906 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8907 passed a VOID_TYPE expression, immediately emit an error and
8908 return error_mark_node.
8910 2011-01-26 Jeff Law <law@redhat.com>
8912 PR rtl-optimization/47464
8913 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8914 rather than may_trap_p as needed.
8916 2011-01-26 DJ Delorie <dj@redhat.com>
8918 PR rtl-optimization/46878
8919 * combine.c (insn_a_feeds_b): Check for the implicit cc0
8920 setter/user dependency as well.
8922 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8924 PR rtl-optimization/44469
8925 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8926 after removing trivially dead basic blocks.
8928 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8930 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8931 * config/frv/frv.h (LINK_SPEC): Likewise.
8932 * config/i386/netware.h (LINK_SPEC): Likewise.
8933 * config/m68k/linux.h (ASM_SPEC): Likewise.
8934 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8935 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8936 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8937 * config/sparc/linux.h (ASM_SPEC): Likewise.
8938 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8939 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8941 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8943 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8944 * config/frv/frv.h (ASM_SPEC): Likewise.
8945 * config/m68k/linux.h (ASM_SPEC): Likewise.
8946 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8947 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8948 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8949 * config/sparc/linux.h (ASM_SPEC): Likewise.
8950 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8951 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8953 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8955 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8956 * config/frv/frv.h (LINK_SPEC): Likewise.
8957 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8959 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8961 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8962 * config/frv/frv.h (ASM_SPEC): Likewise.
8963 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8964 * config/m68k/linux.h (ASM_SPEC): Likewise.
8965 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8966 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8967 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8968 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8969 * config/sparc/linux.h (ASM_SPEC): Likewise.
8970 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8971 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8972 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8974 2011-01-26 Steve Ellcey <sje@cup.hp.com>
8977 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8979 (vec_extract_evenodd_help): Ditto.
8980 (vec_extract_evenv4hi): Ditto.
8981 (vec_extract_oddv4hi): Ditto.
8982 (vec_interleave_lowv2si): Ditto.
8983 (vec_interleave_highv2si): Ditto.
8984 (vec_extract_evenv2si): Ditto.
8985 (vec_extract_oddv2si: Ditto.
8986 (vec_pack_trunc_v2si): Ditto.
8988 2011-01-22 Jan Hubicka <jh@suse.cz>
8991 * cgraph.h (cgraph_local_info): New field can_change_signature.
8992 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8993 signature can change.
8994 (ipcp_estimate_growth): Call sequence simplify only if calle signature
8996 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8997 (cgraph_function_versioning): We can not change signature of functions
8998 that don't allow that.
8999 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9000 (lto_input_node): Likewise.
9001 * ipa-inline.c (compute_inline_parameters): Compute
9002 local.can_change_signature.
9003 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9004 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9005 functions that can not change signature.
9006 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9007 init_cumulative_args): Do not use local calling conventions
9008 for functions that can not change signature.
9010 2011-01-22 Jan Hubicka <jh@suse.cz>
9012 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9014 2011-01-26 Richard Guenther <rguenther@suse.de>
9016 PR tree-optimization/47190
9017 * cgraphunit.c (process_common_attributes): New function.
9018 (process_function_and_variable_attributes): Use it.
9020 2011-01-26 Richard Guenther <rguenther@suse.de>
9023 * cgraphbuild.c (record_eh_tables): Record reference to personality
9026 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
9029 * sel-sched.c (moveup_expr): Don't let debug insns prevent
9030 non-debug insns from moving up.
9032 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9035 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9036 t-dlldir{,-x} fragment for build and add it to tmake_file.
9037 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9038 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9039 * config/i386/t-dlldir: New file.
9040 (SHLIB_DLLDIR): Define.
9041 * config/i386/t-dlldir-x: New file.
9042 (SHLIB_DLLDIR): Define.
9043 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9044 (SHLIB_INSTALL): Use it.
9046 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
9049 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9050 lower bound of the allowed Thumb-2 coprocessor load/store
9051 index range to -256. Add explaining comment.
9053 2011-01-25 Ian Lance Taylor <iant@google.com>
9055 * godump.c (go_define): Improve lexing of macro expansion to only
9056 accept expressions which match Go spec.
9058 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9061 * tree.c (handle_dll_attribute): Handle it.
9062 * doc/extend.texi (@item dllexport): Mention it.
9063 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9065 2011-01-25 Ian Lance Taylor <iant@google.com>
9067 PR tree-optimization/26854
9068 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9069 (decl_jump_unsafe): Move higher in file, with no other change.
9070 (bind): Set has_jump_unsafe_decl if appropriate.
9071 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9072 (check_earlier_gotos): Likewise.
9073 (c_check_switch_jump_warnings): Likewise.
9075 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
9077 * doc/invoke.texi (Warning Options): Add missing hyphen.
9078 (-fprofile-dir): Minor grammatical fixes.
9079 (-fbranch-probabilities): Likewise.
9081 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9085 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9087 (no_real_insns_p, schedule_block, set_priorities): Drop special
9088 treatment of boundary debug insns.
9089 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9090 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9091 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9092 (BOUNDARY_DEBUG_INSN_P): Likewise.
9093 (SCHEDULE_DEBUG_INSN_P): Likewise.
9094 * sched-rgn.c (init_ready_list): Drop special treatment of
9095 boundary debug insns.
9096 * final.c (rest_of_clean-state): Clear notes' BB.
9098 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9100 * Makefile.in (LAMBDA_H): Removed.
9101 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9102 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9103 lambda-trans.o, and tree-loop-linear.o.
9104 (lto-symtab.o): Remove dependence on LAMBDA_H.
9105 (tree-loop-linear.o): Remove rule.
9106 (lambda-mat.o): Same.
9107 (lambda-trans.o): Same.
9108 (lambda-code.o): Same.
9109 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9110 (tree-vect-slp.o): Same.
9111 * hwint.h (gcd): Moved here.
9112 (least_common_multiple): Same.
9113 * lambda-code.c: Removed.
9114 * lambda-mat.c: Removed.
9115 * lambda-trans.c: Removed.
9116 * lambda.h: Removed.
9117 * tree-loop-linear.c: Removed.
9118 * lto-symtab.c: Do not include lambda.h.
9119 * omega.c (gcd): Removed.
9120 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9121 * tree-data-ref.c (print_lambda_vector): Moved here.
9122 (lambda_vector_copy): Same.
9123 (lambda_matrix_copy): Same.
9124 (lambda_matrix_id): Same.
9125 (lambda_vector_first_nz): Same.
9126 (lambda_matrix_row_add): Same.
9127 (lambda_matrix_row_exchange): Same.
9128 (lambda_vector_mult_const): Same.
9129 (lambda_vector_negate): Same.
9130 (lambda_matrix_row_negate): Same.
9131 (lambda_vector_equal): Same.
9132 (lambda_matrix_right_hermite): Same.
9133 * tree-data-ref.h: Do not include lambda.h.
9134 (lambda_vector): Moved here.
9135 (lambda_matrix): Same.
9136 (dependence_level): Same.
9137 (lambda_transform_legal_p): Removed declaration.
9138 (lambda_collect_parameters): Same.
9139 (lambda_compute_access_matrices): Same.
9140 (lambda_vector_gcd): Same.
9141 (lambda_vector_new): Same.
9142 (lambda_vector_clear): Same.
9143 (lambda_vector_lexico_pos): Same.
9144 (lambda_vector_zerop): Same.
9145 (lambda_matrix_new): Same.
9146 * tree-flow.h (least_common_multiple): Removed declaration.
9147 * tree-parloops.c (lambda_trans_matrix): Moved here.
9149 (LTM_ROWSIZE): Same.
9150 (LTM_COLSIZE): Same.
9151 (LTM_DENOMINATOR): Same.
9152 (lambda_trans_matrix_new): Same.
9153 (lambda_matrix_vector_mult): Same.
9154 (lambda_transform_legal_p): Same.
9155 * tree-pass.h (pass_linear_transform): Removed declaration.
9156 * tree-ssa-loop.c (tree_linear_transform): Removed.
9157 (gate_tree_linear_transform): Removed.
9158 (pass_linear_transform): Removed.
9159 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9160 flag_loop_interchange.
9162 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9164 PR tree-optimization/47265
9165 PR tree-optimization/47443
9166 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9167 if name still has some uses.
9169 2011-01-25 Martin Jambor <mjambor@suse.cz>
9171 PR tree-optimization/47382
9172 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9173 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9175 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
9177 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9178 sjlj_except_unwind_info.
9180 2011-01-25 Richard Guenther <rguenther@suse.de>
9182 PR tree-optimization/47426
9183 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9184 visible functions results escape.
9186 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9189 * config/arm/arm.c (any_sibcall_uses_r3): New function.
9190 (arm_get_frame_offsets): Use it.
9192 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9193 Jakub Jelinek <jakub@redhat.com>
9195 PR tree-optimization/47271
9196 * tree-if-conv.c (bb_postdominates_preds): New.
9197 (if_convertible_bb_p): Call bb_postdominates_preds.
9198 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9199 (predicate_scalar_phi): Call bb_postdominates_preds.
9201 2011-01-25 Nick Clifton <nickc@redhat.com>
9203 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9204 * config/rx/rx.c (rx_function_value): Likewise.
9205 (rx_promote_function_mode): Likewise.
9206 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9207 in order to make it legitimate.
9208 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9209 make sure that the first operand is the same as the result register.
9210 (addsi3_unspec): Delete.
9211 (subdi3): Do not accept immediate operands.
9212 (subdi3_internal): Likewise.
9214 2011-01-25 Jeff Law <law@redhat.com>
9216 PR rtl-optimization/37273
9217 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9218 handle them like argument loads from stack slots. Do not double
9219 count memory for memory constants and argument loads from stack slots.
9221 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9223 PR tree-optimization/47427
9224 PR tree-optimization/47428
9225 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9226 coalesce if the new root var would be TREE_READONLY.
9228 2011-01-25 Richard Guenther <rguenther@suse.de>
9231 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9232 correct type for TBAA.
9234 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9236 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9237 (close_phi_written_to_memory): Call for_each_index with
9238 dr_indices_valid_in_loop.
9240 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9242 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9243 when it is initialized.
9245 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9247 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9248 call to graphite_find_data_references_in_stmt.
9249 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9250 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
9251 call to graphite_find_data_references_in_stmt.
9252 (analyze_drs_in_stmts): Same.
9253 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9254 in which the scalar analysis of indices is performed.
9255 (create_data_ref): Same. Update call to dr_analyze_indices.
9256 (find_data_references_in_stmt): Update call to create_data_ref.
9257 (graphite_find_data_references_in_stmt): Same.
9258 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9260 (create_data_ref): Same.
9261 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9262 call to create_data_ref.
9264 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9266 * graphite-sese-to-poly.c (build_poly_scop): Move
9267 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9269 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9271 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9272 VAR_DECL, PARM_DECL, and RESULT_DECL.
9274 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9276 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9278 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9279 that have already been marked as PBB_IS_REDUCTION.
9281 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9283 * graphite-scop-detection.c (same_close_phi_node): New.
9284 (remove_duplicate_close_phi): New.
9285 (make_close_phi_nodes_unique): New.
9286 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9288 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9290 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9291 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9292 of both data references to be the same.
9294 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9296 * graphite-dependences.c (build_lexicographical_constraint): Remove
9298 (build_lexicographical_constraint): Adjust call to
9299 ppl_powerset_is_empty.
9300 (dependence_polyhedron): Same.
9301 (graphite_legal_transform_dr): Same.
9302 (graphite_carried_dependence_level_k): Same.
9303 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9305 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9307 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9309 * graphite-sese-to-poly.c
9310 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9311 (close_phi_written_to_memory): New.
9312 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9315 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9317 * doc/install.texi: Update the expected version number of PPL to 0.11.
9318 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9319 #if PPL_VERSION_MINOR < 11.
9321 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9323 * graphite-dependences.c: Include graphite-cloog-util.h.
9324 (new_poly_ddr): Inlined into dependence_polyhedron.
9325 (free_poly_ddr): Moved close by new_poly_ddr.
9326 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9327 Early return NULL when ppl_powerset_is_empty returns true.
9328 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9329 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9330 (graphite_legal_transform_dr): Call new_poly_ddr.
9331 (graphite_carried_dependence_level_k): Same.
9332 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9333 (dot_transformed_deps_stmt_1): Removed.
9334 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9335 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9336 (dot_deps_1): Call dot_deps_2.
9337 * Makefile.in (graphite-dependences.o): Add missing dependence on
9338 graphite-cloog-util.h.
9340 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9342 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9343 (build_lexicographical_constraint): Same.
9344 (dependence_polyhedron_1): Same.
9345 (graphite_legal_transform_dr): Same.
9346 (graphite_carried_dependence_level_k): Same.
9347 * graphite-ppl.c (ppl_powerset_is_empty): New.
9348 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9349 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9351 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9353 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9354 the "a followed by b" relation and document it.
9356 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9358 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9359 iteration when the bag of constraints is empty.
9361 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9363 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9365 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9367 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9368 nest and two loop depths as parameters.
9369 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9370 lst_perfect_nestify.
9372 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9374 * graphite-dependences.c (print_pddr): Call
9375 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9377 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9379 * graphite-ppl.c (debug_gmp_value): New.
9380 * graphite-ppl.h (debug_gmp_value): Declared.
9382 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9384 * doc/install.texi: Document availability of cloog-0.16.
9386 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9388 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9389 invalid postdominance info.
9391 2011-01-24 Jan Hubicka <jh@suse.cz>
9394 * doc/extend.texi (weak pragma): Drop claim that it must
9395 appear before definition.
9396 * varasm.c (merge_weak, declare_weak): Only sanity check
9397 that DECL is not output at a time it is declared weak.
9399 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9401 * machmode.def: Fixed comments.
9403 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9405 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9407 2011-01-24 Paul Koning <ni1d@arrl.net>
9409 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9412 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9415 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9416 (block_info): Add scanned and prev.
9417 (move_or_delete_vzeroupper_2): Return if the basic block
9418 has been scanned and the upper 128bit state is unchanged
9420 (move_or_delete_vzeroupper_1): Return true if the exit
9422 (move_or_delete_vzeroupper): Visit basic blocks using the
9423 work-list based algorithm based on vt_find_locations in
9426 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9428 2011-01-24 Nick Clifton <nickc@redhat.com>
9430 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9431 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9432 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9433 then define __v850e1__.
9434 * doc/invoke.texi: Document -mv850es.
9436 2011-01-24 Richard Henderson <rth@redhat.com>
9438 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9439 compound unordered comparisons.
9440 * config/rx/rx.c (rx_split_fp_compare): Remove.
9441 * config/rx/rx-protos.h: Update.
9442 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9443 (cbranchsf4): Don't call rx_split_fp_compare.
9444 (*cbranchsf4): Use rx_split_cbranch.
9445 (*cmpsf): Don't accept "i" constraint.
9446 (*conditional_branch): Only valid after reload.
9447 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9449 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9452 * config/rs6000/altivec.md (vector constant splitters): Add
9453 support for creating vector single precision constants if -mvsx is
9454 used and we would create the constant using Altivec primitives.
9456 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9457 Richard Sandiford <rdsandiford@googlemail.com>
9459 PR rtl-optimization/47166
9460 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9461 mechanism for PRE_MODIFY and POST_MODIFY.
9462 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9465 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9467 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9469 2011-01-22 Jan Hubicka <jh@suse.cz>
9472 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9474 2011-01-22 Jan Hubicka <jh@suse.cz>
9476 PR tree-optimization/43884
9478 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9479 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9481 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9483 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9484 * config/s390/s390.c (s390_register_move_cost,
9485 s390_memory_move_cost): New.
9486 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9488 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9491 * except.c (sjlj_assign_call_site_values): Move setting the
9492 crtl->uses_eh_lsda flag to ...
9493 (sjlj_mark_call_sites): ... here.
9494 (sjlj_emit_function_enter): Support NULL dispatch label.
9495 (sjlj_build_landing_pads): In a function with no landing pads
9496 that still has must-not-throw regions, generate code to register
9497 a personality function with empty LSDA.
9499 2011-01-21 Richard Henderson <rth@redhat.com>
9501 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9503 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9505 * compare-elim.c: New file.
9506 * Makefile.in (OBJS-common): Add it.
9507 (compare-elim.o): New.
9508 * common.opt (fcompare-elim): New.
9509 * opts.c (default_options_table): Add OPT_fcompare_elim.
9510 * tree-pass.h (pass_compare_elim_after_reload): New.
9511 * passes.c (init_optimization_passes): Add it.
9512 * recog.h: Protect against re-inclusion.
9513 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9514 * doc/invoke.texi (-fcompare-elim): Document it.
9515 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9516 * doc/tm.texi: Rebuild.
9518 2011-01-22 Nick Clifton <nickc@redhat.com>
9520 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9521 rx_split_fp_compare.
9523 2011-01-22 Nick Clifton <nickc@redhat.com>
9525 * config/rx/rx.md (UNSPEC_CONST): New.
9526 (deallocate_and_return): Wrap the amount popped off the stack in
9527 an UNSPEC_CONST in order to stop it being rejected by
9528 -mmax-constant-size.
9529 (pop_and_return): Add a "(return)" rtx.
9530 (call): Drop the immediate operand.
9531 (call_internal): Likewise.
9532 (call_value): Likewise.
9533 (call_value_internal): Likewise.
9534 (sibcall_internal): Likewise.
9535 (sibcall_value_internal): Likewise.
9536 (sibcall): Likewise. Generate an explicit call using
9538 (sibcall_value): Likewise.
9539 (mov<>): FAIL if a constant operand is not legitimate.
9540 (addsi3_unpsec): New pattern.
9542 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9543 (ok_for_max_constant): New function.
9544 (gen_safe_add): New function.
9545 (rx_expand_prologue): Use gen_safe_add.
9546 (rx_expand_epilogue): Likewise.
9547 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9550 2011-01-21 Jeff Law <law@redhat.com>
9552 PR tree-optimization/47053
9553 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9554 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9555 statements are deleted.
9556 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9557 is nonempty, then purge dead edges and cleanup the CFG.
9559 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9563 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9565 * tree-dfa.c (create_var_ann): Mark variable as used.
9567 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9570 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9571 notes from other section in hot/cold partitioning even if
9572 last_action is -3. Increment call_site_base.
9574 PR rtl-optimization/47366
9575 * fwprop.c (forward_propagate_into): Return bool. If
9576 any changes are made, -fnon-call-exceptions is used and
9577 REG_EH_REGION note is present, call purge_dead_edges
9578 and return true if it purged anything.
9579 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9580 any EH edges were purged.
9582 2011-01-21 Jeff Law <law@redhat.com>
9584 PR rtl-optimization/41619
9585 * caller-save.c (setup_save_areas): Break out code to determine
9586 which hard regs are live across calls by examining the reload chains
9587 so that it is always used.
9588 Eliminate code which checked REG_N_CALLS_CROSSED.
9590 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9592 PR tree-optimization/47355
9593 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9594 NOP has non-debug uses beyond PHIs in new_bb.
9596 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9599 * cfgexpand.c (account_used_vars_for_block): Only account vars
9600 that are annotated as used.
9601 (estimated_stack_frame_size): Don't set TREE_USED.
9602 * tree-dfa.c (create_var_ann): Mark variable as used.
9604 2011-01-21 Richard Guenther <rguenther@suse.de>
9607 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9609 2011-01-21 Richard Guenther <rguenther@suse.de>
9611 PR tree-optimization/47365
9612 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9613 (vn_reference_lookup_pieces): Adjust.
9614 (vn_reference_lookup): Likewise.
9615 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9616 (vn_reference_lookup_3): Only look through kills if in
9617 VN_WALKREWRITE mode.
9618 (vn_reference_lookup_pieces): Adjust.
9619 (vn_reference_lookup): Likewise.
9620 (visit_reference_op_load): Likewise.
9621 (visit_reference_op_store): Likewise.
9622 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9623 (compute_avail): Likewise.
9624 (eliminate): Likewise.
9626 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9628 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9629 DECL_IGNORED_P non-reg vars if they are used.
9631 PR tree-optimization/47391
9632 * varpool.c (const_value_known_p): Return false if
9635 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
9638 * config/i386/i386.c (ix86_local_alignment): Handle
9639 case for va_list_type_node is nil.
9640 (ix86_canonical_va_list_type): Likewise.
9642 2011-01-21 Alan Modra <amodra@gmail.com>
9644 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9645 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9647 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9649 * config/arm/arm.md (define_attr type): Rename f_load
9650 and f_store to f_fpa_load and f_fpa_store. Update.
9651 (write_conflict): Deal with rename fallout.
9652 (*push_fp_multi): Likewise.
9653 * config/arm/fpa.md (f_load): Use f_fpa_load.
9654 (f_store): Use f_fpa_store.
9655 (*movsf_fpa): Likewise.
9656 (*movdf_fpa): Likewise.
9657 (*movxf_fpa): Likewise.
9658 (*thumb2_movsf_fpa): Likewise.
9659 (*thumb2_movdf_fpa): Likewise.
9660 (*thumb2_movxf_fpa): Likewise.
9661 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9662 f_loadd and f_stored.
9663 (*thumb2_movdi_vfp): Likewise.
9664 (*thumb2_movsf_vfp): Fix attribute to f_loads.
9665 (*thumb2_movsi_vfp): Likewise.
9666 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9667 Use f_loads instead of f_load.
9668 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9670 2011-01-20 Anatoly Sokolov <aesok@post.ru>
9672 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9673 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9674 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9675 (xtensa_mode_dependent_address_p): New function.
9676 (constantpool_address_p): Make static. Change return type to bool.
9677 Change argument type to const_rtx. Use CONST_INT_P predicate.
9679 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
9682 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9684 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9687 * cfgexpand.c (expand_debug_expr): Instead of generating
9688 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9691 2011-01-20 Richard Guenther <rguenther@suse.de>
9694 * tree-inline.c (remap_gimple_op_r): Recurse manually for
9695 the pointer operand of MEM_REFs.
9697 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9699 PR tree-optimization/46130
9700 * ipa-split.c (consider_split): If return_bb contains non-virtual
9701 PHIs other than for retval or if split_function would not adjust it,
9704 2011-01-20 Richard Guenther <rguenther@suse.de>
9706 PR tree-optimization/47167
9707 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9708 Revert previous change, only avoid enumeral type changes.
9710 2011-01-19 Mike Stump <mikestump@comcast.net>
9712 * doc/tm.texi.in (BRANCH_COST): Englishify.
9713 * doc/tm.texi (BRANCH_COST): Likewise.
9715 2011-01-19 Dodji Seketeli <dodji@redhat.com>
9718 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9719 (gen_scheduled_generic_parms_dies): New functions.
9720 (gen_struct_or_union_type_die): Schedule template parameters DIEs
9721 generation for the end of CU compilation.
9722 (dwarf2out_finish): Generate template parameters DIEs here.
9724 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9727 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9728 debug bind stmt on merge edges.
9730 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9734 * function.c (instantiate_expr): Instantiate incoming rtl of
9735 implicit arguments, and recurse on VALUE_EXPRs.
9736 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9737 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9739 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9741 * c-parser.c (c_parser_for_statement): Initialize
9742 collection_expression.
9744 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9746 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9748 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9750 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9751 (LINK_SHLIB_SPEC): Don't use %(link_path).
9752 (SUBTARGET_EXTRA_SPECS): Remove link_path.
9754 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9756 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9757 (NO_SHARED_LIB_SUPPORT): Remove.
9758 (LINK_SHLIB_SPEC): Remove one conditional definition.
9760 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9762 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9764 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9765 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9766 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9767 %{call_shared} and conditionals on these options not being passed.
9768 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9771 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9773 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9776 * ipa-split.c: Spelling fixes.
9778 2011-01-19 Richard Henderson <rth@redhat.com>
9780 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9781 (*mulsi3): Likewise.
9783 * longlong.h [__mn10300__] (count_leading_zeros): New.
9784 [__mn10300__] (umul_ppmm, smul_ppmm): New.
9785 [__mn10300__] (add_ssaaaa, subddmmss): New.
9786 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9787 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9789 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9791 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9793 2011-01-19 Richard Henderson <rth@redhat.com>
9795 * config/mn10300/mn10300.md (addsi3_flags): New.
9796 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9797 (subsi3_flags, subc_internal, subdi3): New.
9798 (subdi3_internal, *subdi3_degenerate): New.
9799 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9801 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9802 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9803 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
9804 * config/mn10300/mn10300-protos.h: Update.
9805 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9806 (return_ret): Likewise. Rename from return_internal_regs.
9807 (return_internal): Remove.
9809 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9810 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9811 (mn10300_legitimate_constant_p): Likewise.
9812 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9813 (mn10300_frame_size): New.
9814 (mn10300_expand_prologue): Use it.
9815 (mn10300_expand_epilogue): Likewise.
9816 (mn10300_initial_offset): Likewise.
9817 * config/mn10300/mn10300-protos.h: Update.
9818 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9819 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9820 (prologue, epilogue, return_internal): Tidy output code.
9821 (mn10300_store_multiple_operation, return): Likewise.
9822 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9823 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9824 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9825 (load_pic, am33_load_pic): New.
9826 (mn10300_load_pic0, mn10300_load_pic1): New.
9828 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9829 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9830 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9831 (cc_flags_for_mode, cc_flags_for_code): New.
9832 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9833 overflow flag is not valid. Validate that the flags we need
9834 for the comparison are valid.
9835 (mn10300_output_cmp): Remove.
9836 (mn10300_output_add): New.
9837 (mn10300_select_cc_mode): Use cc_flags_for_code.
9838 (mn10300_split_cbranch): New.
9839 (mn10300_match_ccmode): New.
9840 (mn10300_split_and_operand_count): New.
9841 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9843 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9844 (addsi3): ... here. Use mn10300_output_add.
9845 (*addsi3_flags): New.
9846 (*am33_subsi3, *mn10300_subsi3): Merge...
9847 (subsi3): ... here. Use attribute isa.
9848 (*subsi3_flags): New.
9849 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
9851 (*am33_andsi3, *mn10300_andsi3): Merge...
9853 (*andsi3_flags): New.
9854 (andsi3 splitters): New.
9855 (*am33_iorsi3, *mn10300_iorsi3): Merge...
9857 (*iorsi3_flags): New.
9858 (*am33_xorsi3, *mn10300_xorsi3): Merge...
9860 (*xorsi3_flags): New.
9861 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9862 (one_cmplsi2): ... here.
9863 (*one_cmplsi2_flags): New.
9864 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
9865 instead of "dax" in constraints. Use mn10300_split_cbranch.
9866 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
9867 use matching constraints to eliminate a self-comparison.
9868 (*integer_conditional_branch): Rename from integer_conditional_branch.
9869 Use int_mode_flags to match CC_REG.
9870 (*cbranchsi4_btst, *btstsi): New.
9871 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
9872 mn10300_split_cbranch.
9873 (*am33_cmpsf): Rename from am33_cmpsf.
9874 (*float_conditional_branch): Rename from float_conditional_branch.
9875 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9876 (zero_extendqisi2): ... here.
9877 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9878 (zero_extendhisi2): ... here.
9879 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9880 (extendqisi2): ... here.
9881 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9882 (extendhisi2): ... here.
9883 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9884 (ashlsi3): ... here.
9885 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9886 (lshrsi3): ... here.
9887 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9888 (ashrsi3): ... here.
9889 (consecutive add peephole): Remove.
9890 * config/mn10300/predicates.md (label_ref_operand): New.
9891 (int_mode_flags): New.
9892 (CCZN_comparison_operator): New.
9894 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9895 (throughput_42_latency_43): New reservation.
9896 (mulsidi3, umulsidi3): New expanders.
9897 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
9898 the MDR register to allocation; separately allocate the low and
9899 high parts of the DImode result.
9900 (umulsidi3_internal): Similarly.
9901 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9902 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
9903 (udivsi3, umodsi3): Remove.
9904 (udivmodsi4, divmodsi4): New expanders.
9905 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
9906 (*divmodsi4): Simiarly.
9907 (ext_internal): New.
9909 * config/mn10300/constraints.md ("z"): New constraint.
9910 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9911 (FIXED_REGISTERS): Don't fix MDR.
9912 (CALL_USED_REGSITERS): Reformat nicely.
9913 (REG_ALLOC_ORDER): Add MDR.
9914 (enum regclass): Add MDR_REGS.
9915 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9916 (IRA_COVER_CLASSES): Add MDR_REGS.
9917 (REGNO_REG_CLASS): Handle MDR_REG.
9918 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9919 (mn10300_register_move_cost): Likewise.
9920 * config/mn10300/mn10300.md (MDR_REG): New.
9921 (*movsi_internal): Handle moves to/from MDR_REGS.
9923 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9925 (mn10300_secondary_reload): Tidy combination reload classes.
9926 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9927 addresses for AM33. Allow symbolic offsets for reg+imm.
9928 (mn10300_regno_in_class_p): New.
9929 (mn10300_legitimize_reload_address): New.
9930 * config/mn10300/mn10300.h (enum reg_class): Remove
9931 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9932 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
9934 (REG_CLASS_NAMES): Update to match.
9935 (REG_CLASS_CONTENTS): Likewise.
9936 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9937 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9938 (REGNO_IN_RANGE_P): Remove.
9939 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9940 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9941 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9942 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9943 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9944 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9945 (REGNO_GENERAL_P): New.
9946 (HAVE_POST_MODIFY_DISP): New.
9947 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9948 (LEGITIMIZE_RELOAD_ADDRESS): New.
9949 * config/mn10300/mn10300-protos.h: Update.
9951 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9952 DATA_REGS for AM33 stack-pointer destination.
9953 (mn10300_preferred_output_reload_class): Likewise.
9954 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9955 into a form appropriate for ...
9956 (TARGET_SECONDARY_RELOAD): New.
9957 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9958 * config/mn10300/mn10300-protos.h: Update.
9959 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9960 reload_insi; use the "A" constraint for the scratch; handle AM33
9961 moves of sp to non-address registers.
9963 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9964 (*movqi_internal): ... here.
9965 (*am33_movhi, *mn10300_movhi): Merge into...
9966 (*movhi_internal): ... here.
9967 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
9968 as the source/destination of moves from/to SP.
9969 (movsf): Only allow for AM33-2.
9970 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9971 any integer constant constraint. Only allow for AM33-2. Tidy
9972 all of the alternative outputs.
9973 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9974 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
9976 (udivsi3, umodsi3): New patterns for MN103 only.
9978 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
9980 * doc/tm.texi.in: Spell out that a lack of register class unions
9982 * doc/tm.texi: Regenerate.
9984 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9986 PR rtl-optimization/47337
9987 * dce.c (check_argument_store): New function.
9988 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
9990 PR tree-optimization/47290
9991 * tree-eh.c (infinite_empty_loop_p): New function.
9992 (cleanup_empty_eh): Use it.
9994 2011-01-18 Steve Ellcey <sje@cup.hp.com>
9997 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9998 (a64_expand_widen_sum): Ditto.
9999 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10000 (vec_extract_evenodd_help): Ditto.
10001 (vec_extract_evenv4hi): Ditto.
10002 (vec_extract_oddv4hi): Ditto.
10003 (vec_extract_evenv2si): Ditto.
10004 (vec_extract_oddv2si): Ditto.
10005 (vec_extract_evenv2sf): Ditto.
10006 (vec_extract_oddv2sf): Ditto.
10007 (vec_pack_trunc_v4hi: Ditto.
10008 (vec_pack_trunc_v2si): Ditto.
10009 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10010 (vec_interleave_highv8qi): Ditto.
10012 (vec_extract_oddv8qi): Ditto.
10013 (vec_interleave_lowv4hi): Ditto.
10014 (vec_interleave_highv4hi): Ditto.
10015 (vec_interleave_lowv2si): Ditto.
10016 (vec_interleave_highv2si): Ditto.
10018 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10020 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10021 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10022 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
10023 (pa_c_mode_for_suffix): New.
10024 (TARGET_EXPAND_BUILTIN): Define.
10025 (TARGET_C_MODE_FOR_SUFFIX): Define.
10026 (pa_builtins): Define.
10027 (pa_init_builtins): Register __float128 type and init new support
10029 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10030 * config/pa/quadlib.c (_U_Qfcopysign): New.
10032 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
10034 PR middle-end/46894
10035 * explow.c (allocate_dynamic_stack_space): Do not assume more than
10036 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10039 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10041 PR tree-optimization/47179
10042 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10043 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10045 2011-01-18 Richard Guenther <rguenther@suse.de>
10047 PR rtl-optimization/47216
10048 * emit-rtl.c: Include tree-flow.h.
10049 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10050 of replicating it with different semantics.
10051 * Makefile.in (emit-rtl.o): Adjust.
10053 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10055 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10056 (cortex_a9_dp): Handle neon types correctly.
10058 2011-01-18 Jakub Jelinek <jakub@redhat.com>
10060 PR rtl-optimization/47299
10061 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10062 subtarget. Use normal multiplication if both operands are constants.
10063 * expmed.c (expand_widening_mult): Don't try to optimize constant
10064 multiplication if op0 has VOIDmode. Convert op1 constant to mode
10067 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10069 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
10070 spacing after 'e.g.', typos, comma, hyphenation.
10072 2011-01-17 Richard Henderson <rth@redhat.com>
10074 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10075 (rx_restricted_mem_operand): New.
10076 (rx_shift_operand): Use register_operand.
10077 (rx_source_operand, rx_compare_operand): Likewise.
10078 * config/rx/rx.md (addsi3_flags): New expander.
10079 (adddi3): Rewrite as expander.
10080 (adc_internal, *adc_flags, adddi3_internal): New patterns.
10081 (subsi3_flags): New expander.
10082 (subdi3): Rewrite as expander.
10083 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10085 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10086 (rx_init_builtins): Remove sat builtin.
10087 (rx_expand_builtin): Likewise.
10088 * config/rx/rx.md (ssaddsi3): New.
10089 (*sat): Rename from sat. Represent the CC_REG input.
10091 * config/rx/predicates.md (rshift_operator): New.
10092 * config/rx/rx.c (rx_expand_insv): Remove.
10093 * config/rx/rx-protos.h: Update.
10094 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
10095 operand to the canonical position.
10096 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10097 (*bitclr, *bitclr_in_memory): Similarly.
10098 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10099 (insv): Retain the zero_extract in the expansion.
10101 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10102 (bswaphi2, bitinvert, revw): Likewise.
10104 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10105 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10106 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10107 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10108 (bitset, bitset_in_memory): Likewise.
10109 (bitinvert, bitinvert_in_memory): Likewise.
10110 (bitclr, bitclr_in_memory): Likewise.
10111 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10112 (rx_strend, rx_cmpstrn): Likewise.
10113 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
10114 (bitop peep2 patterns): Remove.
10116 * config/rx/rx.c (rx_match_ccmode): New.
10117 * config/rx/rx-protos.h: Update.
10118 * config/rx/rx.md (abssi2): Clobber, don't set flags.
10119 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10120 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10121 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10122 (fix_truncsfsi2, floatsisf2): Likewise.
10123 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10124 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10125 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10126 (*subsi3_flags, *xorsi3_flags): New.
10128 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10130 * config/rx/rx.c (rx_print_operand): Remove workaround for
10131 unsplit comparison operations.
10133 * config/rx/rx.md (movsicc): Split after reload.
10134 (*movsicc): Merge *movsieq and *movsine via match_operator.
10135 (*stcc): New pattern.
10137 * config/rx/rx.c (rx_float_compare_mode): Remove.
10138 * config/rx/rx.h (rx_float_compare_mode): Remove.
10139 * config/rx/rx.md (cstoresi4): Split after reload.
10140 (*sccc): New pattern.
10142 * config/rx/predicates.md (label_ref_operand): New.
10143 (rx_z_comparison_operator): New.
10144 (rx_zs_comparison_operator): New.
10145 (rx_fp_comparison_operator): New.
10146 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10147 Validate that the flags are set properly for the comparison.
10148 (rx_gen_cond_branch_template): Remove.
10149 (rx_cc_modes_compatible): Remove.
10150 (mode_from_flags): New.
10151 (flags_from_code): Rename from flags_needed_for_conditional.
10152 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10153 (rx_select_cc_mode): Likewise.
10154 (rx_split_fp_compare): New.
10155 (rx_split_cbranch): New.
10156 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10157 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10158 (*cbranchsf4): Similarly.
10159 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10160 match_operator and rx_split_cbranch.
10161 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10162 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10163 (*cmpsi): Rename from cmpsi.
10164 (*tstsi): Rename from tstsi.
10165 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10166 (*conditional_branch): Rename from conditional_branch.
10167 (*reveresed_conditional_branch): Remove.
10168 (b<code>): Remove expander.
10169 * config/rx/rx-protos.h: Update.
10171 * config/rx/rx.c (rx_compare_redundant): Remove.
10172 * config/rx/rx.md (cmpsi): Don't use it.
10173 * config/rx/rx-protos.h: Update.
10175 * config/rx/rx-modes.def (CC_F): New mode.
10176 * config/rx/rx.c (rx_select_cc_mode): New.
10177 * config/rx/rx.h (SELECT_CC_MODE): Use it.
10178 * config/rx/rx-protos.h: Update.
10180 2011-01-17 Richard Henderson <rth@redhat.com>
10182 * except.c (dump_eh_tree): Fix stray ; after for statement.
10184 2011-01-17 Richard Guenther <rguenther@suse.de>
10186 PR tree-optimization/47313
10187 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10188 handling before copying the body. Properly deal with
10189 by-reference result in SSA form.
10191 2011-01-17 Ian Lance Taylor <iant@google.com>
10194 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10195 (struct_value_alias_set): Don't define.
10196 (sparc_option_override): Don't set sparc_sr_alias_set and
10197 struct_value_alias_set.
10198 (save_or_restore_regs): Use gen_frame_mem rather than calling
10200 (sparc_struct_value_rtx): Likewise.
10202 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
10205 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10206 (_mm_maskstore_pd): Likewise.
10207 (_mm_maskload_ps): Likewise.
10208 (_mm_maskstore_ps): Likewise.
10209 (_mm256_maskload_pd): Change mask to __m256i.
10210 (_mm256_maskstore_pd): Likewise.
10211 (_mm256_maskload_ps): Likewise.
10212 (_mm256_maskstore_ps): Likewise.
10214 * config/i386/i386-builtin-types.def: Updated.
10215 (ix86_expand_special_args_builtin): Likewise.
10217 * config/i386/i386.c (bdesc_special_args): Update
10218 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10219 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10220 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10221 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10223 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10224 Use <avxpermvecmode> on mask register.
10225 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10227 2011-01-17 Olivier Hainque <hainque@adacore.com>
10228 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10229 Eric Botcazou <ebotcazou@adacore.com>
10232 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10233 if <= USHRT_MAX in 32-bit mode.
10235 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10237 * doc/install.texi (Configuration, Specific): Wrap long
10238 lines in examples. Allow line wrapping in long options
10239 and URLs where beneficial for PDF output.
10241 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
10243 * config/mips/mips.c (mips_classify_symbol): Don't return
10244 SYMBOL_PC_RELATIVE for nonlocal labels.
10246 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
10248 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10250 2011-01-15 Jan Hubicka <jh@suse.cz>
10252 PR tree-optimization/47276
10253 * ipa.c (function_and_variable_visibility): Do not try to mark alias
10254 declarations as needed.
10256 2011-01-15 Martin Jambor <mjambor@suse.cz>
10258 * common.opt (fdevirtualize): New flag.
10259 * doc/invoke.texi (Option Summary): Document it.
10260 * opts.c (default_options_table): Add devirtualize flag.
10261 * ipa-prop.c (detect_type_change): Return immediately if
10262 devirtualize flag is not set.
10263 (detect_type_change_ssa): Likewise.
10264 (compute_known_type_jump_func): Likewise.
10265 (ipa_analyze_virtual_call_uses): Likewise.
10267 2011-01-14 Martin Jambor <mjambor@suse.cz>
10269 PR tree-optimization/45934
10270 PR tree-optimization/46302
10271 * ipa-prop.c (type_change_info): New type.
10272 (stmt_may_be_vtbl_ptr_store): New function.
10273 (check_stmt_for_type_change): Likewise.
10274 (detect_type_change): Likewise.
10275 (detect_type_change_ssa): Likewise.
10276 (compute_complex_assign_jump_func): Check for dynamic type change.
10277 (compute_complex_ancestor_jump_func): Likewise.
10278 (compute_known_type_jump_func): Likewise.
10279 (compute_scalar_jump_functions): Likewise.
10280 (ipa_analyze_virtual_call_uses): Likewise.
10281 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10283 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10285 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10286 * config/i386/i386.opt (msse5): New Alias.
10288 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10290 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10291 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10292 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10293 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10295 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10297 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10299 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10300 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10301 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10302 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10304 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10306 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10308 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10310 2011-01-14 Mike Stump <mikestump@comcast.net>
10312 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10313 * config/fr30/fr30.md: Likweise
10314 (movsi_push): Likewise.
10315 (movsi_pop): Likewise.
10316 (enter_func): Likewise.
10317 * config/moxie/moxie.md (movsi_push): Likewise.
10318 (movsi_pop): Likewise.
10320 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10322 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10323 %{no_archive} %{exact_version}.
10324 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10325 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10326 %{no_archive} %{exact_version}.
10327 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10328 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10329 * config/mips/vxworks.h: Likewise.
10331 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10333 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10335 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10337 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10338 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10340 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10342 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10345 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10347 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10349 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10350 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10352 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10353 Don't handle -shlib.
10355 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10357 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10358 (CC1_SPEC): Don't handle -profile.
10360 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10362 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10363 * config/mips/mips.h (CC1_SPEC): Likewise.
10365 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10367 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10368 * config/mips/mips.h (CC1_SPEC): Likewise.
10370 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10372 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10373 * config/m32r/linux.h (LINK_SPEC): Likewise.
10374 * config/mips/linux.h (LINK_SPEC): Likewise.
10375 * config/mips/linux64.h (LINK_SPEC): Likewise.
10376 * config/sparc/linux.h (LINK_SPEC): Likewise.
10377 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10378 LINK_SPEC): Likewise.
10379 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10381 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10383 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10385 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10387 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10389 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10390 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10392 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10394 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10396 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10398 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10399 supports -Bstatic/-Bdynamic.
10400 * configure: Regenerate.
10402 2011-01-14 Jan Hubicka <jh@suse.cz>
10403 Jack Howarth <howarth@bromo.med.uc.edu>
10406 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10407 when checking debug_info_level. Test write_symbols instead of
10408 debug_hooks->var_location when setting flag_var_tracking_uninit.
10410 2011-01-14 Richard Guenther <rguenther@suse.de>
10412 PR tree-optimization/47179
10413 * target.def (ref_may_alias_errno): New target hook.
10414 * targhooks.h (default_ref_may_alias_errno): Declare.
10415 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10416 (default_ref_may_alias_errno): New function.
10417 * target.h (struct ao_ref_s): Declare.
10418 * tree-ssa-alias.c: Include target.h.
10419 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10420 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10421 (targhooks.o): Likewise.
10422 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10423 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10425 2011-01-14 Richard Guenther <rguenther@suse.de>
10427 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10429 2011-01-14 Richard Guenther <rguenther@suse.de>
10431 PR tree-optimization/47280
10432 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10433 return CFG changes.
10434 (tree_ssa_forward_propagate_single_use_vars): Deal with
10435 CFG changes from associate_plusminus.
10437 2011-01-14 Richard Guenther <rguenther@suse.de>
10439 PR middle-end/47281
10441 2011-01-11 Richard Guenther <rguenther@suse.de>
10443 PR tree-optimization/46076
10444 * tree-ssa.c (useless_type_conversion_p): Conversions from
10445 unprototyped to empty argument list function types are useless.
10447 2011-01-14 Richard Guenther <rguenther@suse.de>
10449 PR tree-optimization/47286
10450 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10452 2011-01-14 Martin Jambor <mjambor@suse.cz>
10454 PR middle-end/46823
10455 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10457 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10459 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10460 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10461 * config/xtensa/xtensa.c (xtensa_libcall_value,
10462 xtensa_function_value_regno_p): New functions.
10463 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10465 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10468 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10470 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10471 New function prototype.
10472 * config/i386/winnt.c (i386_pe_assemble_visibility):
10473 Warn only if attribute was specified by user.
10475 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10478 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10480 (floatunsdidf2_fcfidu): Ditto.
10482 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10484 * config/s390/s390.c (print_operand_address): Replace 'error' with
10485 'output_operand_lossage'.
10486 (print_operand): Likewise.
10488 2011-01-13 Jeff Law <law@redhat.com>
10490 PR rtl-optimization/39077
10491 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10492 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10493 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10494 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10495 * gcse.c (prune_insertions_deletions): New function.
10496 (compute_pre_data): Use it.
10498 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10501 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10503 (prune_unused_types_mark): Use it.
10505 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10507 PR rtl-optimization/45352
10508 * sel-sched.c: Update copyright years.
10509 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10510 in the advancing loop when we have issued issue_rate insns.
10512 2011-01-12 Richard Henderson <rth@redhat.com>
10514 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10515 (TARGET_MD_ASM_CLOBBERS): New.
10517 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10518 (TARGET_DELEGITIMIZE_ADDRESS): New.
10520 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10521 (clzsi2, *bsch): New patterns.
10523 * config/mn10300/mn10300.md (INT): New mode iterator.
10524 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10526 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10527 flag_split_wide_types.
10529 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10530 (mn10300_trampoline_init): Rewrite without a template, an immediate
10531 load and a direct branch.
10532 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10534 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10536 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10537 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10538 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10539 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10541 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10544 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10547 2011-01-12 Jan Hubicka <jh@suse.cz>
10550 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10551 (PLUGIN_COND_CLOSE): New macro.
10552 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10554 2011-01-12 Richard Guenther <rguenther@suse.de>
10557 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10558 register variables in a MEM_REF.
10560 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10562 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10563 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10564 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10565 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10566 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10567 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10568 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10569 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10570 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10571 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10572 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10573 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10574 * config/gnu-user.h: New. Copied from linux.h.
10575 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10576 GNU_USER_TARGET_STARTFILE_SPEC.
10577 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10578 GNU_USER_TARGET_ENDFILE_SPEC.
10579 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10580 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10581 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10582 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10583 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10584 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10585 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10586 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10587 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10588 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10589 * config/arm/linux-eabi.h (CC1_SPEC): Use
10590 GNU_USER_TARGET_CC1_SPEC.
10591 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10592 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10593 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10594 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10595 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10596 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10597 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10598 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10600 2011-01-12 Richard Guenther <rguenther@suse.de>
10603 * doc/invoke.texi (ffast-math): Document it is turned on
10606 2011-01-12 Jan Hubicka <jh@suse.cz>
10608 PR tree-optimization/47233
10609 * opts.c (common_handle_option): Disable ipa-reference with profile
10612 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10614 * c-parser.c (c_parser_objc_at_property_declaration): Improved
10617 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10619 * c-parser.c (c_lex_one_token): Updated and reindented some
10620 comments. No changes in code.
10622 2011-01-11 Ian Lance Taylor <iant@google.com>
10624 * godump.c (go_output_var): Don't output the variable if there is
10625 already a type with the same name.
10627 2011-01-11 Ian Lance Taylor <iant@google.com>
10629 * godump.c (go_format_type): Don't generate float80.
10631 2011-01-11 Richard Henderson <rth@redhat.com>
10633 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10634 declaration. Rewrite for both speed and size.
10635 (mn10300_address_cost_1): Remove.
10636 (mn10300_register_move_cost): New.
10637 (mn10300_memory_move_cost): New.
10638 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
10639 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
10640 extensions, shifts, BSWAP, CLZ.
10641 (mn10300_wide_const_load_uses_clr): Remove.
10642 (TARGET_REGISTER_MOVE_COST): New.
10643 (TARGET_MEMORY_MOVE_COST): New.
10644 * config/mn10300/mn10300-protos.h: Update.
10645 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10647 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10648 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10649 * config/mn10300/mn10300-protos.h: Update.
10650 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10651 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10652 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10653 (*test_int_bitfield, *test_byte_bitfield): Remove.
10654 (*bit_test, *subreg_bit_test): Remove.
10655 * config/mn10300/predicates.md (const_8bit_operand): Remove.
10657 * config/mn10300/constraints.md ("c"): Rename from "A".
10658 ("A", "D"): New constraint letters.
10659 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10660 (fmssf4, fnmasf4, fnmssf4): Likewise.
10662 * config/mn10300/mn10300.md (isa): New attribute.
10663 (enabled): New attribute.
10665 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10666 (abssf2, negsf2): Define only for hardware fp.
10667 (sqrtsf2): Reformat.
10668 (addsf3, subsf3, mulsf3): Merge expander and insn.
10670 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10671 (DEBUGGER_AUTO_OFFSET): Remove.
10672 (DEBUGGER_ARG_OFFSET): Remove.
10674 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10675 Emit register stores with the same offsets as the hardware.
10676 (mn10300_store_multiple_operation): Don't check that the register
10677 save offsets are monotonic.
10678 * config/mn10300/mn10300-protos.h: Update.
10680 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10682 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10683 in terms of the value on the stack, not the MDR register.
10685 2011-01-11 Jan Hubicka <jh@suse.cz>
10689 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10690 (symbol_alias_set_destroy, symbol_alias_set_contains,
10691 propagate_aliases_backward): Declare.
10692 * lto-streamer-out.c (struct sets): New sturcture.
10693 (trivally_defined_alias): New function.
10694 (output_alias_pair_p): Rewrite.
10695 (output_unreferenced_globals): Fix output of alias pairs.
10696 (produce_symtab): Likewise.
10697 * ipa.c (function_and_variable_visibility): Set weak alias destination
10699 * varasm.c (symbol_alias_set_t): Remove.
10700 (symbol_alias_set_destroy): Export.
10701 (propagate_aliases_forward, propagate_aliases_backward): New functions
10703 (compute_visible_aliases): ... this one; remove.
10704 (trivially_visible_alias): New
10705 (trivially_defined_alias): New.
10706 (remove_unreachable_alias_pairs): Rewrite.
10707 (finish_aliases_1): Reorganize code checking if alias is defined.
10708 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10711 2011-01-11 Richard Guenther <rguenther@suse.de>
10713 PR tree-optimization/46076
10714 * tree-ssa.c (useless_type_conversion_p): Conversions from
10715 unprototyped to empty argument list function types are useless.
10717 2011-01-11 Richard Guenther <rguenther@suse.de>
10719 PR middle-end/45235
10720 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10721 volatile MEMs as MEM_READONLY_P.
10723 2011-01-11 Richard Guenther <rguenther@suse.de>
10725 PR tree-optimization/47239
10726 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10728 2011-01-11 Jeff Law <law@redhat.com>
10730 PR tree-optimization/47086
10731 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10732 IVs from statements that might throw.
10734 2011-01-10 Jan Hubicka <jh@suse.cz>
10737 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10739 2011-01-10 Jan Hubicka <jh@suse.cz>
10742 * profile.c (read_profile_edge_counts): Ignore profile inconistency
10743 when correcting profile.
10745 2011-01-10 Jan Hubicka <jh@suse.cz>
10748 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10749 DECL_FINI_PRIORITY.
10750 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10751 Restore DECL_FINI_PRIORITY.
10753 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10755 * doc/gimple.texi: Fix quoting of multi-word return values in
10756 @deftypefn statements. Ensure presence of return value. Wrap
10757 overlong @deftypefn lines.
10758 (is_gimple_operand, is_gimple_min_invariant_address): Remove
10759 descriptions of removed functions.
10760 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10761 of multi-word return value in @deftypefn statement.
10763 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10765 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10766 (Conditional Expressions, Logical Operators)
10767 (Statement and operand traversals): Do not indent smallexample
10768 code. Fix duplicate function argument in example.
10770 2011-01-10 Jeff Law <law@redhat.com>
10772 PR tree-optimization/47141
10773 * ipa-split.c (split_function): Handle case where we are
10774 returning a value and the return block has a virtual operand phi.
10776 2011-01-10 Jan Hubicka <jh@suse.cz>
10778 PR tree-optimization/47234
10779 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10780 (pass_feedback_split_functions): Declare.
10781 * passes.c (init_optimization_passes): Add ipa-split as subpass of
10783 * ipa-split.c (gate_split_functions): Update comments; disable
10784 split-functions for profile_arc_flag and branch_probabilities.
10785 (gate_feedback_split_functions): New function.
10786 (execute_feedback_split_functions): New function.
10787 (pass_feedback_split_functions): New global var.
10789 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
10792 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10793 calling gimple_call_set_cannot_inline.
10795 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
10797 * config/darwin-sections.def: Remove unused section.
10799 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
10802 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10804 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
10807 * c-parser.c (c_parser_declaration_or_fndef): Improved
10810 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
10812 * config/i386/winnt.c (i386_pe_start_function): Make sure
10813 to switch back to function's section.
10815 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
10819 * plugin.c: Move include of dlfcn.h from here...
10820 * system.h: ... to here.
10822 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10824 * doc/cpp.texi (C++ Named Operators): Fix markup for header
10826 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10827 two extra empty pages in PDF output.
10829 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
10832 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10833 for error recovery purposes behave as if it was not specified so
10834 that the default type is usd.
10836 2011-01-07 Jan Hubicka <jh@suse.cz>
10838 PR tree-optmization/46469
10839 * ipa.c (function_and_variable_visibility): Clear needed flags on
10840 nodes with external decls; handle weakrefs merging correctly.
10842 2011-01-07 Joseph Myers <joseph@codesourcery.com>
10844 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10847 2011-01-07 Jan Hubicka <jh@suse.cz>
10849 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10850 and no longer claim that gold is required for linker plugin.
10851 * configure: Regenerate.
10852 * gcc.c (PLUGIN_COND): New macro.
10853 (LINK_COMMAND_SPEC): Use it.
10854 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10855 * config.in (HAVE_LTO_PLUGIN): New.
10856 * configure.ac (--with-lto-plugin): New parameter; autodetect
10859 2011-01-07 Jan Hubicka <jh@suse.cz>
10861 PR tree-optimization/46367
10862 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10863 when we can update original.
10864 (cgraph_mark_inline_edge): Sanity check.
10865 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10867 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10869 * config/spu/spu.h (ASM_COMMENT_START): Define.
10871 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
10874 * gcc.c (%>S): New.
10875 (SWITCH_KEEP_FOR_GCC): Likewise.
10876 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10877 (do_spec_1): Handle "%>".
10879 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10881 2011-01-07 Jakub Jelinek <jakub@redhat.com>
10884 * config/i386/i386.c (ix86_delegitimize_address): If
10885 simplify_gen_subreg fails, return orig_x.
10888 * value-prof.c (gimple_stringop_fixed_value): Handle
10889 lhs of the call properly.
10891 2011-01-07 Jan Hubicka <jh@suse.cz>
10894 * lto-opt.c (lto_reissue_options): Set flag_shlib.
10896 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10898 * target.def (function_switched_text_sections): New hook.
10899 * doc/tm.texi: Regenerated.
10900 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10901 * final.c (default_function_switched_text_sections): New.
10902 (final_scan_insn): Call function_switched_text_sections when a
10903 mid-function section change occurs.
10904 * output.h (default_function_switched_text_sections): Declare.
10905 * config/darwin-protos.h (darwin_function_switched_text_sections):
10907 * config/darwin.c (darwin_function_switched_text_sections): New.
10908 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10910 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10912 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
10913 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
10914 the secondary code fragment when outputting for DWARF == 2.
10916 2011-01-07 Anatoly Sokolov <aesok@post.ru>
10918 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10919 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10921 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10922 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10924 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
10927 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10928 when it is not empty.
10930 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
10933 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10934 (case ${target}): Add btver1.
10935 * config/i386/driver-i386.c (host_detect_local_cpu): Let
10936 -march=native recognize btver1 processors.
10937 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10938 btver1 def_and_undef
10939 * config/i386/i386.c (struct processor_costs btver1_cost): New
10941 (m_BTVER1): New definition.
10942 (m_AMD_MULTIPLE): Includes m_BTVER1.
10943 (initial_ix86_tune_features): Add btver1 tune.
10944 (processor_target_table): Add btver1 entry.
10945 (static const char *const cpu_names): Add btver1 entry.
10946 (software_prefetching_beneficial_p): Add btver1.
10947 (ix86_option_override_internal): Add btver1 instruction sets.
10948 (ix86_issue_rate): Add btver1.
10949 (ix86_adjust_cost): Add btver1.
10950 * config/i386/i386.h (TARGET_BTVER1): New definition.
10951 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10952 (enum processor_type): Add PROCESSOR_BTVER1.
10953 * config/i386/i386.md (define_attr "cpu"): Add btver1.
10955 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10958 * config/i386/i386.c (legitimize_tls_address)
10959 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10960 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10961 (tls_initial_exec_64_sun): New pattern.
10963 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
10965 * doc/invoke.texi (Overall Options): Improve wording and markup
10966 of the description of -wrapper.
10968 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10970 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10971 rdynamic, threads): New Driver options.
10973 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10976 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10977 if coming from .tdata.
10978 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10980 2011-01-06 Jan Hubicka <jh@suse.cz>
10983 * collect2.c (main): Do not enable LTOmode when plugin is active.
10985 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10988 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10989 --version output if supported.
10990 * configure: Regenerate.
10992 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10994 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10997 2011-01-06 Jakub Jelinek <jakub@redhat.com>
11000 * c-convert.c (convert): When converting a complex expression
11001 other than COMPLEX_EXPR to a different complex type, ensure
11002 c_save_expr is called instead of save_expr, unless in_late_binary_op.
11003 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11004 when converting COMPLEX_TYPE.
11006 2011-01-06 Ira Rosen <irar@il.ibm.com>
11008 PR tree-optimization/47139
11009 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11010 only the last reduction value is used outside the loop. Update
11013 2011-01-05 Joseph Myers <joseph@codesourcery.com>
11015 * config/rtems.opt: New.
11016 * config.gcc (*-*-rtems*): Use rtems.opt.
11018 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
11020 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11021 processors do not support 3DNow instructions.
11023 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11025 * config/spu/spu.c (spu_option_override): Set parameter
11026 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11028 2011-01-05 Jan Hubicka <jh@suse.cz>
11030 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11031 at the command line.
11033 2011-01-05 Martin Jambor <mjambor@suse.cz>
11036 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11037 deltas on streamed outgoing edges.
11038 (output_node_opt_summary): Output info for outgoing edges only when
11039 the node is in new parameter set.
11040 (output_cgraph_opt_summary): New parameter set, passed to the two
11041 aforementioned functions. Update its forward declaration and its
11044 2011-01-05 Tom Tromey <tromey@redhat.com>
11046 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11047 operator to c_finish_omp_atomic.
11048 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11049 (build_unary_op): Update.
11050 (build_modify_expr): Update.
11051 (build_asm_expr): Update.
11053 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11055 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11056 newly inserted insns.
11057 (pad_bb): Likewise.
11058 (spu_emit_branch_hint): Likewise.
11059 (insert_hbrp_for_ilb_runout): Likewise.
11060 (spu_machine_dependent_reorg): Call df_finish_pass after
11061 schedule_insns returns.
11063 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11065 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11067 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
11069 PR tree-optimization/47005
11070 * tree-sra.c (struct access): Add 'non_addressable' bit.
11071 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11072 (decide_one_param_reduction): Return 0 if the parameter is passed by
11073 reference and one of the accesses in the group is non_addressable.
11075 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11077 PR tree-optimization/47056
11078 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11079 (mark_load): Likewise. Handle FUNCTION_DECL specially.
11080 (mark_store): Likewise. Pass STMT to ipa_record_reference.
11082 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11084 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11085 initializer. Skip view conversions from aggregate types.
11087 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
11090 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11092 2011-01-04 Philipp Thomas <pth@suse.de>
11094 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11097 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11099 * function.c (thread_prologue_and_epilogue_insns): Do not crash
11100 on empty epilogue sequences.
11102 2011-01-04 Joseph Myers <joseph@codesourcery.com>
11104 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11105 non-static): New Driver options.
11107 2011-01-04 Jie Zhang <jie@codesourcery.com>
11110 * gcc.c (default_compilers[]): Set combinable field to 0
11111 for all assembly languages.
11113 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
11115 * config/mips/loongson3a.md: New file.
11116 * config/mips/mips.md: Include loongson3a.md.
11117 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11120 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11122 PR middle-end/47017
11123 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11124 instead of convert_memory_address_addr_space on the base expression.
11126 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11128 * config/spu/spu.c (spu_option_override): Update error text
11129 for bad -march= / -mtune= values.
11131 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11133 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11134 if branch-hint optimization will be performed.
11136 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11138 PR tree-optimization/47148
11139 * ipa-split.c (split_function): Convert arguments to
11140 DECL_ARG_TYPE if possible.
11142 PR tree-optimization/47155
11143 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11144 when computing uns.
11146 PR rtl-optimization/47157
11147 * combine.c (try_combine): If undobuf.other_insn becomes
11148 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11149 and set *new_direct_jump_p too.
11151 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11153 PR tree-optimization/47021
11154 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11156 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11158 * gcc.c (process_command): Update copyright notice dates.
11159 * gcov.c (print_version): Likewise.
11160 * gcov-dump.c (print_version): Likewise.
11161 * mips-tfile.c (main): Likewise.
11162 * mips-tdump.c (main): Likewise.
11164 2011-01-03 Martin Jambor <mjambor@suse.cz>
11166 PR tree-optimization/46801
11167 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11168 aggregate fields start at byte boundary instead of the bit-field flag.
11170 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
11173 * gcc.c (main): Revert revision 168407.
11175 2011-01-03 Martin Jambor <mjambor@suse.cz>
11177 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11179 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11181 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11182 vector optab to expand vector/scalar shift, update gimple to vector.
11184 2011-01-03 Martin Jambor <mjambor@suse.cz>
11186 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11189 2011-01-03 Martin Jambor <mjambor@suse.cz>
11191 PR tree-optimization/46984
11192 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11194 (cgraph_create_indirect_edge): Fixed line length.
11195 (cgraph_indirect_call_info): Declare.
11196 (cgraph_make_edge_direct) Update declaration.
11197 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11198 (cgraph_create_indirect_edge): Use it.
11199 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
11201 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11202 the new thunk_delta representation.
11203 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11205 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11206 (ipa_read_indirect_edge_info): Likewise.
11207 * lto-cgraph.c (output_edge_opt_summary): New function.
11208 (output_node_opt_summary): Call it on all outgoing edges.
11209 (input_edge_opt_summary): New function.
11210 (input_node_opt_summary): Call it on all outgoing edges.
11212 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
11215 * gcc.c (main): Don't check have_o when settting combine_inputs.
11217 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
11219 * regrename.c: Add general comment describing the pass.
11220 (struct du_head): Remove 'length' field.
11221 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11222 (regrename_optimize): Do not sort chains. Rework comments, add others.
11223 Force renaming to the preferred class (if any) in the first pass and do
11224 not consider registers that belong to it in the second pass.
11225 (create_new_chain): Do not set 'length' field.
11226 (scan_rtx_reg): Likewise.
11228 2011-01-02 Jakub Jelinek <jakub@redhat.com>
11230 PR tree-optimization/47140
11231 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11232 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11233 to bit_value_binop.
11235 PR rtl-optimization/47028
11236 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11237 parm_birth_insn instead of at the beginning of first bb.
11239 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
11241 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11242 Remove the word "see" before "@pxref".
11243 * doc/rtl.texi: Remove the word "see" before "@pxref".
11245 2011-01-01 Jan Hubicka <jh@suse.cz>
11247 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11250 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
11253 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11256 Copyright (C) 2011 Free Software Foundation, Inc.
11258 Copying and distribution of this file, with or without modification,
11259 are permitted in any medium without royalty provided the copyright
11260 notice and this notice are preserved.