1 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9 (GIMPLE_H): Include $(INTERNAL_FN_H).
10 (OBJS-common): Add internal-fn.o.
11 (internal-fn.o): New rule.
12 * internal-fn.def: New file.
13 * internal-fn.h: Likewise.
14 * internal-fn.c: Likewise.
15 * gimple.h: Include internal-fn.h.
16 (GF_CALL_INTERNAL): New gf_mask.
17 (gimple_statement_call): Put fntype into a union with a new
19 (gimple_build_call_internal): Declare.
20 (gimple_build_call_internal_vec): Likewise.
21 (gimple_call_same_target_p): Likewise.
22 (gimple_call_internal_p): New function.
23 (gimple_call_internal_fn): Likewise.
24 (gimple_call_fntype): Return null for internal calls.
25 (gimple_call_set_fntype): Assert that the function is not internal.
26 (gimple_call_set_fn): Likewise.
27 (gimple_call_set_fndecl): Likewise.
28 (gimple_call_set_internal_fn): New function.
29 (gimple_call_addr_fndecl): Handle null functions.
30 (gimple_call_return_type): Likewise null types.
31 * gimple.c (gimple_build_call_internal_1): New function.
32 (gimple_build_call_internal): Likewise.
33 (gimple_build_call_internal_vec): Likewise.
34 (gimple_call_same_target_p): Likewise.
35 (gimple_call_flags): Handle calls to internal functions.
36 (gimple_call_fnspec): New function.
37 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
38 (gimple_has_side_effects): Handle null functions.
39 (gimple_rhs_has_side_effects): Likewise.
40 (gimple_call_copy_skip_args): Handle calls to internal functions.
41 * cfgexpand.c (expand_call_stmt): Likewise.
42 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
43 * gimple-fold.c (gimple_fold_call): Handle null functions.
44 (gimple_fold_stmt_to_constant_1): Don't fold
45 calls to internal functions.
46 * gimple-low.c (gimple_check_call_args): Handle calls to internal
48 * gimple-pretty-print.c (dump_gimple_call): Likewise.
49 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
50 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
51 (do_warn_unused_result): Likewise.
52 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
53 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
54 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
56 (initialize_hash_element): Update accordingly.
57 (hashable_expr_equal_p): Use gimple_call_same_target_p.
58 (iterative_hash_hashable_expr): Handle calls to internal functions.
59 (print_expr_hash_elt): Likewise.
60 * tree-ssa-pre.c (can_value_number_call): Likewise.
61 (eliminate): Handle null functions.
62 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
63 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
64 (find_func_aliases): Likewise.
65 * value-prof.c (gimple_ic_transform): Likewise.
66 (gimple_indirect_call_to_profile): Likewise.
67 * lto-streamer-in.c (input_gimple_stmt): Likewise.
68 * lto-streamer-out.c (output_gimple_stmt): Likewise.
70 2011-04-19 Jan Hubicka <jh@suse.cz>
72 * ipa-inline-transform.c (save_inline_function_body): Add comments.
73 * ipa-inline.c (inline_small_functions): Compute summaries first, populate
76 2011-04-19 Jan Hubicka <jh@suse.cz>
78 * cgraph.h (save_inline_function_body): Remove.
79 * ipa-inline-transform.c: New file, broke out of...
80 * ipa-inline.c: ... this one; Update toplevel comment.
81 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
83 (update_noncloned_frequencies): Move to ipa-inline-transform.c
84 (cgraph_mark_inline_edge): Rename to inline_call; move to
85 ipa-inline-transform.c.
86 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
87 move to ipa-inline-transform.c
88 (recursive_inlining, inline_small_functions, flatten_function,
89 ipa_inline, inline_always_inline_functions,
90 early_inline_small_functions): Update.
91 (inline_transform): Move to ipa-inline-transform.c.
92 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
94 * Makefile.in (ipa-inline-transform.o): New file.
95 * cgraphunit.c (save_inline_function_body): Move to
96 ipa-inline-transform.c
98 2011-04-19 DJ Delorie <dj@redhat.com>
100 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
101 registers if we already know there aren't any.
102 (m32c_emit_epilogue): Don't emit a barrier here.
103 (m32c_emit_eh_epilogue): Likewise.
104 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
105 operands at expand time.
106 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
108 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
109 duplicates. Provide aliases instead.
110 * config/m32c/prologue.md (eh_return): Emit a barrier here.
111 (eh_epilogue): Add a "(return)" here as a hint to other parts of
114 2011-04-19 Anatoly Sokolov <aesok@post.ru>
116 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
117 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
118 (general_or_i64_p, sparc_register_move_cost): New function.
120 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
122 * doc/install.texi (Configuration, --enable-threads): Remove mach.
126 2011-04-19 Xinliang David Li <davidxl@google.com>
128 * ipa-cp.c (ipcp_update_profiling): asserting
129 scale_completement is not negative.
131 2011-04-19 Jakub Jelinek <jakub@redhat.com>
134 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
135 is a SUBREG with non-MODE_INT mode inside of it.
137 2011-04-19 Martin Jambor <mjambor@suse.cz>
139 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
140 also according to actual contants.
141 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
142 (gimple_fold_call): Use it.
143 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
145 2011-04-19 Martin Jambor <mjambor@suse.cz>
147 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
148 non-pointer assignments.
150 2011-04-19 Martin Jambor <mjambor@suse.cz>
152 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
153 account anc_offset and otr_type from the indirect edge info.
154 * ipa-prop.c (get_ancestor_addr_info): New function.
155 (compute_complex_ancestor_jump_func): Assignment analysis moved to
156 get_ancestor_addr_info, call it.
157 (ipa_note_param_call): Do not initialize information about polymorphic
158 calls, return the indirect call graph edge. Remove the last
159 parameter, adjust all callers.
160 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
161 parameters. Initialize polymorphic information in the indirect edge.
163 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
166 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
167 the types if they have different enumeration identifiers.
169 2011-04-19 Jan Hubicka <jh@suse.cz>
171 * cgraph.h (cgraph_optimize_for_size_p): Declare.
172 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
173 * predict.c (cgraph_optimize_for_size_p): Break out from ...
174 (optimize_function_for_size_p) ... here.
176 2011-04-19 Richard Guenther <rguenther@suse.de>
179 * tree.c (free_lang_data): Do not reset the decl-assembler-name
182 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
184 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
185 if DECL_NO_INLINE_WARNING_P is set on the function.
187 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
190 * reload1.c (inc_for_reload): Return void. All callers changed.
191 (emit_input_reload_insns): Don't try to delete previous output
192 reloads to a register, or record spill_reg_store for autoincs.
194 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
196 * gengtype.h: Updated copyright year.
197 (struct input_file_st): Add inpisplugin field.
198 (type_fileloc): New function.
200 (write_typed_struct_alloc_def): Add gcc_assert.
201 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
202 (write_typed_alloc_defns): Don't output for plugin files.
203 (input_file_by_name): Clear inpisplugin field.
204 (main): Set inpisplugin field for plugin files.
206 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
208 * gengtype-state.c (string_eq): New.
209 (read_state): Use string_eq instead of strcmp when creating the
212 2011-04-19 Wei Guozhi <carrot@google.com>
215 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
216 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
218 * config/arm/constraints.md (Uu): New constraint.
219 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
221 2011-04-19 Tristan Gingold <gingold@adacore.com>
223 * config.gcc (-*-*-*vms): Added.
224 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
226 * config/vms/vms-ld.c: New file.
227 * config/vms/vms-ar.c: New file.
228 * config/vms/t-vmsnative: New file.
230 2011-04-18 Xinliang David Li <davidxl@google.com>
232 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
234 2011-04-18 Jakub Jelinek <jakub@redhat.com>
237 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
238 if TREE_TYPE (v) is non-NULL.
240 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
241 gimple_get_virt_mehtod_for_binfo.
242 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
243 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
245 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
247 2011-04-18 Michael Matz <matz@suse.de>
248 Steve Ellcey <sje@cup.hp.com>
250 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
251 use its mode as source mode if it isn't VOIDmode.
253 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
255 * doc/passes.texi: Fill crossref nodes.
257 2011-04-18 Jim Meyering <meyering@redhat.com>
259 Fix doubled-word typos in comments and strings
260 * config/alpha/vms-unwind.h: s/for for/for/
261 * config/arm/unwind-arm.h: Likewise.
262 * config/microblaze/microblaze.c: Likewise.
263 * config/sh/constraints.md: s/in in/in/
264 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
266 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
268 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
269 (AVX_FLOAT_MODE_P): Ditto.
270 (AVX128_VEC_FLOAT_MODE_P): Ditto.
271 (AVX256_VEC_FLOAT_MODE_P): Ditto.
272 (AVX_VEC_FLOAT_MODE_P): Ditto.
273 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
274 (UNSPEC_MASKSTORE): Ditto.
275 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
276 Merge from <sse>_movmsk<ssemodesuffix> and
277 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
278 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
280 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
281 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
282 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
284 2011-04-18 Jan Hubicka <jh@suse.cz>
286 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
288 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
289 (want_inline_function_called_once_p): Break out the logic from
291 (edge_badness): Ensure that profile is not misupdated.
292 (lookup_recursive_calls): Prioritize by call frequencies.
293 (inline_small_functions): Move program size estimates here;
294 actually process whole queue even when unit growth has been
295 met. (to properly compute inline_failed reasons and for the
296 case unit size decrease.) Revisit comments on recursive inlining.
297 (ipa_inline): Remove unit summary code; first inline hot calls
298 of functions called once, cold calls next.
299 (order, nnodes): Remove unused variables.
300 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
301 (GTFILES): Remove ipa-inline.c
302 * sel-sched.c (fill_insns): Silence uninitialized var warning.
304 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
306 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
308 2011-04-18 Jie Zhang <jie@codesourcery.com>
309 Richard Earnshaw <rearnsha@arm.com>
311 * arm.c (neon_builtin_type_bits): Remove.
312 (typedef enum neon_builtin_mode): New.
313 (T_MAX): Don't define.
314 (typedef enum neon_builtin_datum): Remove bits, codes[],
315 num_vars and base_fcode. Add mode, code and fcode.
316 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
317 VAR10): Change accordingly.
318 (neon_builtin_data[]): Change accordingly
319 (arm_init_neon_builtins): Change accordingly.
320 (neon_builtin_compare): Remove.
321 (locate_neon_builtin_icode): Remove.
322 (arm_expand_neon_builtin): Change accordingly.
324 * arm.h (enum arm_builtins): Move to ...
325 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
327 * arm.c (arm_builtin_decl): Declare.
328 (TARGET_BUILTIN_DECL): Define.
329 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
330 (arm_builtin_decls[]): New.
331 (arm_init_neon_builtins): Store builtin declarations in
333 (arm_init_tls_builtins): Likewise.
334 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
335 (arm_builtin_decl): New.
337 2011-04-18 Richard Guenther <rguenther@suse.de>
339 * tree.c (upper_bound_in_type): Build properly canonicalized
341 (lower_bound_in_type): Likewise.
343 2011-04-18 Richard Guenther <rguenther@suse.de>
345 * gimple.h (gimple_call_addr_fndecl): New function.
346 (gimple_call_fndecl): Use it.
347 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
349 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
350 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
352 2011-04-18 Richard Guenther <rguenther@suse.de>
355 * tree.c (build_string): STRING_CST is now derived from tree_typed.
357 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
360 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
361 DECL_IN_CONSTANT_POOL without RTL.
363 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
364 Ira Rosen <ira.rosen@linaro.org>
367 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
368 to match neon_vzip/vuzp/vtrn_internal.
369 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
370 outputs explicitly dependent on both inputs.
371 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
373 2011-04-18 Jakub Jelinek <jakub@redhat.com>
375 PR tree-optimization/48616
376 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
377 whether the shift is by scalar or vector based on whether all SLP
378 scalar stmts have the same rhs.
380 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
382 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
385 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
387 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
390 2011-04-17 Jan Hubicka <jh@suse.cz>
392 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
393 * cgrpahunit.c (cgraph_finalize_function): Do not set
394 finalized_by_frontend.
395 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
396 finalized_by_frontend.
398 2011-04-17 Jan Hubicka <jh@suse.cz>
400 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
401 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
402 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
403 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
405 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
407 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
409 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
412 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
413 is non-null before accessing it.
414 (input_cgraph): Remove trailing spaces.
416 2011-04-17 Revital Eres <revital.eres@linaro.org>
418 * params.def (sms-min-sc): New param flag.
419 * modulo-sched.c (sms_schedule): Use it.
420 * doc/invoke.texi (sms-min-sc): Document it.
422 2011-04-17 Jan Hubicka <jh@suse.cz>
424 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
425 present, also set gimple_call_set_cannot_inline.
426 * ipa-inline.c: Update toplevel comment.
428 (cgraph_clone_inlined_nodes): Fix linebreaks.
429 (cgraph_check_inline_limits): Restructure to ...
430 (caller_growth_limits): ... this one; be more tolerant
431 on growth in nested inline chains; add explanatory comment;
432 fix stack accounting thinko introduced by previous patch.
433 (cgraph_default_inline_p): Remove.
434 (report_inline_failed_reason): New function.
435 (can_inline_edge_p): New function.
436 (can_early_inline_edge_p): New function.
437 (leaf_node_p): Move upwards in file.
438 (want_early_inline_function_p): New function.
439 (want_inline_small_function_p): New function.
440 (want_inline_self_recursive_call_p): New function.
441 (cgraph_edge_badness): Rename to ...
442 (edge_badness) ... this one; fix linebreaks.
443 (update_edge_key): Update call of edge_baddness; add
444 detailed dump about queue updates.
445 (update_caller_keys): Use can_inline_edge_p and
446 want_inline_small_function_p.
447 (cgraph_decide_recursive_inlining): Rename to...
448 (recursive_inlining): Use can_inline_edge_p and
449 want_inline_self_recursive_call_p; simplify and remove no longer
451 (cgraph_set_inline_failed): Remove.
452 (add_new_edges_to_heap): Use can_inline_edge_p and
453 want_inline_small_function_p.
454 (cgraph_decide_inlining_of_small_functions): Rename to ...
455 (inline_small_functions): ... this one; cleanup; use
456 can/want predicates; cleanup debug ouput; work edges till fibheap
457 is exhausted and do not stop once unit growth is reached; remove
458 later loop processing remaining edges.
459 (cgraph_flatten): Rename to ...
460 (flatten_function): ... this one; use can_inline_edge_p
461 and can_early_inline_edge_p predicates.
462 (cgraph_decide_inlining): Rename to ...
463 (ipa_inline): ... this one; remove unreachable nodes before
464 inlining functions called once; simplify the pass.
465 (cgraph_perform_always_inlining): Rename to ...
466 (inline_always_inline_functions): ... this one; use
467 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
468 (cgraph_decide_inlining_incrementally): Rename to ...
469 (early_inline_small_functions): ... this one; simplify
470 using new predicates; cleanup; make dumps prettier.
471 (cgraph_early_inlining): Rename to ...
472 (early_inliner): newer inline regular functions into always-inlines;
473 fix updating of call stmt summaries.
474 (pass_early_inline): Update for new names.
475 (inline_transform): Fix formating.
476 (gate_cgraph_decide_inlining): Rename to ...
477 (pass_ipa_inline): ... this one.
478 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
479 * ipa-inline-analysis.c (dump_inline_summary): Update.
480 (compute_inline_parameters): Do not compute disregard_inline_limits;
481 look for mismatching arguments.
482 (estimate_growth): Fix handlig of non-trivial self recursion.
483 (inline_read_summary): Do not read info->disregard_inline_limits.
484 (inline_write_summary): Do not write info->disregard_inline_limits.
485 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
486 and move all checks into can_inline_edge_p predicate; re-enable code
487 comparing optimization levels.
488 (expand_call_inline): Do not test inline_forbidden_into_p.
489 * Makefile.in (ipa-inline.o): Update arguments.
491 2011-04-17 Revital Eres <revital.eres@linaro.org>
493 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
495 2011-04-17 Revital Eres <revital.eres@linaro.org>
497 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
499 2011-04-17 Michael Matz <matz@suse.de>
501 PR tree-optimization/48622
503 * ipa-inline-analysis.c (inline_read_summary): Read size/time
504 in same order as they're written.
506 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
508 * config/pa/predicates.md: Reorganize and simplify predicates.
509 Eliminate duplicate code checks.
510 (arith_operand): Rename to arith14_operand
511 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
512 * config/pa/pa.md: Use renamed operands.
513 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
514 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
515 arith11_operand, adddi3_operand, indexed_memory_operand,
516 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
517 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
518 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
519 move_dest_operand, move_src_operand, prefetch_cc_operand,
520 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
521 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
522 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
523 div_operand, int5_operand, movb_comparison_operator,
524 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
525 arith_double_operand, ireg_operand, lhs_lshift_operand,
526 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
527 integer_store_memory_operand): Likewise.
528 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
529 (integer_store_memory_operand, read_only_operand,
530 function_label_operand, borx_reg_operand,
531 non_hard_reg_operand): Likewise.
532 (eq_neq_comparison_operator): Delete unused operator.
533 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
534 function_label_operand.
535 (emit_move_sequence): Likewise.
537 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
539 * config/i386/sse.md (sseunpackmode): New mode attribute.
540 (ssepackmode): Ditto.
541 (vec_pack_trunc_<mode>): Macroize expander from
542 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
543 (vec_unpacks_lo_<mode>): Macroize expander from
544 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
545 (vec_unpacks_hi_<mode>): Macroize expander from
546 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
547 (vec_unpacku_lo_<mode>): Macroize expander from
548 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
549 (vec_unpacku_hi_<mode>): Macroize expander from
550 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
551 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
552 ix86_expand_sse4_unpack.
553 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
555 2011-04-16 Jan Hubicka <jh@suse.cz>
557 * cgraphbuild.c: Include ipa-inline.h.
558 (reset_inline_failed): Use initialize_inline_failed.
559 * cgraph.c: Include ipa-inline.h.
560 (cgraph_create_node_1): Do not initialize estimated_growth.
561 (initialize_inline_failed): More to ipa-inline-analysis.c
562 (dump_cgraph_node): Do not dump inline flags.
563 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
564 and disregard_inline_limits flags.
565 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
566 time, size, estimated_growth.
567 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
569 * cgraphunit.c (cgraph_decide_is_function_needed): Use
570 DECL_DISREGARD_INLINE_LIMITS.
571 (cgraph_analyze_function): Do not initialize
572 node->local.disregard_inline_limits.
573 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
574 inlinable, versionable and disregard_inline_limits.
575 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
576 cgraph_check_inline_limits, cgraph_default_inline_p,
577 cgraph_edge_badness, update_caller_keys, update_callee_keys,
578 add_new_edges_to_heap): Update.
579 (cgraph_decide_inlining_of_small_function): Update; set
580 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
581 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
582 cgraph_decide_inlining_incrementally): Update.
583 * ipa-inline.h (inline_summary): Add inlinable, versionable,
584 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
585 time, size and estimated_growth parameters.
586 (estimate_edge_growth): Update.
587 (initialize_inline_failed): Declare.
588 * ipa-split.c: Include ipa-inline.h
589 (execute_split_functions): Update.
590 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
591 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
592 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
593 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
594 estimated_growth to INT_MIN.
595 (inline_node_duplication_hook): Likewise.
596 (dump_inline_summary): Dump new fields.
597 (compute_inline_parameters): Update.
598 (estimate_edge_time, estimate_time_after_inlining,
599 estimate_size_after_inlining, estimate_growth, inline_read_summary,
600 inline_write_summary):
601 (initialize_inline_failed): Move here from cgraph.c.
602 * tree-sra.c: Include ipa-inline.h.
603 (ipa_sra_preliminary_function_checks): Update.
604 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
607 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
609 * config/i386/sse.md (V16): New mode iterator.
611 (AVXMODEQI, AVXMODEDI): Remove.
612 (sse2, sse3): New mode attribute.
613 (mov<mode>): Use V16 mode iterator.
614 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
615 (push<mode>1): Use V16 mode iterator.
616 (movmisalign<mode>): Ditto.
617 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
618 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
619 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
620 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
621 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
622 avx_movdqu<avxmodesuffix>.
623 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
624 *avx_movdqu<avxmodesuffix>.
625 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
626 avx_lddqu<avxmodesuffix>.
627 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
628 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
629 avx_movnt<AVXMODEDI:mode>.
630 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
631 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
633 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
636 * haifa-sched.c (prune_ready_list, schedule_block): Use
637 sched_pressure_p rather than flag_sched_pressure.
639 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
641 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
642 cgraph_get_node instead of cgraph_get_create_node.
644 2011-04-15 Jakub Jelinek <jakub@redhat.com>
646 * cfgexpand.c (expand_debug_expr): Use
647 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
649 2011-04-15 Michael Matz <matz@suse.de>
651 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
652 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
653 * function.c (gimplify_parameters): Ditto.
654 * gimplify.c (gimplify_vla_decl): Ditto.
656 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
657 (gimple_call_set_alloca_for_var): New inline function.
658 (gimple_call_alloca_for_var_p): Ditto.
659 * gimple.c (gimple_build_call_from_tree): Remember
660 CALL_ALLOCA_FOR_VAR_P state.
661 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
663 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
664 calls if they were for VLA objects.
666 2011-04-15 Martin Jambor <mjambor@suse.cz>
668 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
671 2011-04-15 Martin Jambor <mjambor@suse.cz>
674 * tree-emutls.c (lower_emutls_function_body): Call
675 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
678 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
680 * c-decl.c (detect_field_duplicates): Call
681 objc_detect_field_duplicates instead of objc_get_interface_ivars.
683 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
685 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
686 * gimple.c (gimple_asm_clobbers_memory_p): Define.
687 * ipa-pure-const.c (check_stmt): Call it.
688 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
690 2011-04-15 Richard Guenther <rguenther@suse.de>
692 PR tree-optimization/48290
693 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
694 Properly decide inhibiting propagation based on the valueized
695 operand. Do loop-closed SSA form preserving here ...
696 (init_copy_prop): ... not here.
698 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
701 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
702 (*ieee_smax<mode>3): Likewise.
704 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
706 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
707 Replace match_operand with match_dup for the third operand in
710 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
712 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
713 to track processing of conditionals. Update all callers.
714 (try_combine, simplify_if_then_else): Update.
716 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
718 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
721 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
723 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
724 instead of match_operand for operand 3.
726 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
728 * recog.h (insn_operand_data): Add an "allows_mem" field.
729 * genoutput.c (output_operand_data): Initialize it.
730 * optabs.c (maybe_legitimize_operand_same_code): New function.
731 (maybe_legitimize_operand): Use it when matching the original
734 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
736 * gimplify.c: Fix issues in comments throughout.
737 (voidify_wrapper_expr): Fix long line.
738 (build_stack_save_restore): Likewise.
739 (gimplify_loop_expr): Likewise.
740 (gimplify_compound_lval): Likewise.
741 (gimplify_init_ctor_eval): Likewise.
742 (gimplify_modify_expr_rhs): Likewise.
743 (omp_notice_threadprivate_variable): Likewise.
745 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
747 * cfgexpand.c (expand_call_stmt): Convert the function type to the
748 original one if this is not a builtin function.
750 2011-04-14 Jakub Jelinek <jakub@redhat.com>
753 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
754 offset it as needed based on top 2 bits in operands[3], change
755 MEM mode to SFmode and mask those 2 bits away from operands[3].
757 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
759 * c-parser.c (c_parser_objc_protocol_definition): Updated for
760 change from objc_declare_protocols() to objc_declare_protocol().
762 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
764 * config/i386/sse.md (sse4_1): New mode attribute.
765 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
766 avx_blend<ssemodesuffix><avxmodesuffix> and
767 sse4_1_blend<ssemodesuffix> using VF mode iterator.
768 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
769 avx_blendv<ssemodesuffix><avxmodesuffix> and
770 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
771 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
772 avx_dp<ssemodesuffix><avxmodesuffix> and
773 sse4_1_dp<ssemodesuffix> using VF mode iterator.
774 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
775 (sse4_1_packusdw): Merge with *avx_packusdw.
776 (sse4_1_pblendvb): Merge with *avx_pblendvb.
777 (sse4_1_pblendw): Merge with *avx_pblendw.
778 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
779 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
780 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
782 (sse4_1_round<ssescalarmodesuffix>): Merge with
783 *avx_round<ssescalarmodesuffix>.
784 (aesenc): Merge with *avx_aesenc.
785 (aesenclast): Merge with *avx_aesenclast.
786 (aesdec): Merge with *avx_aesdec.
787 (aesdeclast): Merge with *avx_aesdeclast.
788 (pclmulqdq): Merge with *pclmulqdq.
789 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
791 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
793 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
796 * cfgexpand.c (get_decl_align_unit): Renamed to ...
797 (align_local_variable): This. Update DECL_ALIGN.
798 (add_stack_var): Updated.
799 (expand_one_stack_var): Likewise.
801 2011-04-14 Richard Guenther <rguenther@suse.de>
803 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
805 (dse_initialize_block_local_data, dse_leave_block,
806 record_voperand_set, get_stmt_uid): Likewise.
807 (dse_possible_dead_store_p): Allow any kind of killing stmt.
808 (dse_optimize_stmt): Remove voperand set handling code.
809 Simplify and improve to handle any kind of killing stmt.
810 (dse_record_phi): Remove.
811 (dse_enter_block): Simplify.
812 (tree_ssa_dse): Likewise.
813 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
815 2011-04-14 Jan Hubicka <jh@suse.cz>
817 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
818 * cgraph.h (struct inline_summary): Move to ipa-inline.h
819 (cgraph_local_info): Remove inline_summary.
820 * ipa-cp.c: Include ipa-inline.h.
821 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
822 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
824 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
825 (input_overwrite_node): Do not set inline summary.
826 (input_node): Do not stream inline summary.
827 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
828 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
829 growth; we do not have inline parameters computed for that anyway.
830 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
831 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
832 (inline_summary_t): New type and VECtor.
833 (debug_inline_summary, dump_inline_summaries): Declare.
834 (inline_summary): Use VOCtor.
835 (estimate_edge_growth): Kill hack computing call stmt size directly.
836 * lto-section-in.c (lto_section_name): Add inline section.
837 * ipa-inline-analysis.c: Include lto-streamer.h
838 (node_removal_hook_holder, node_duplication_hook_holder): New holders
839 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
840 (inline_summary_vec): Define.
841 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
842 dump_inline_summaries): New functions.
843 (estimate_function_body_sizes): Properly compute size/time of outgoing
845 (compute_inline_parameters): Alloc inline_summary; do not compute
846 size/time of incomming calls.
847 (estimate_edge_time): Avoid missing time summary hack.
848 (inline_read_summary): Read inline summary info.
849 (inline_write_summary): Write inline summary info.
850 (inline_free_summary): Free all hooks and inline summary vector.
851 * lto-streamer.h: Add LTO_section_inline_summary section.
852 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
853 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
855 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
857 * tree-vectorizer.h (vect_strided_store_supported): Add a
858 HOST_WIDE_INT argument.
859 (vect_strided_load_supported): Likewise.
860 (vect_permute_store_chain): Return void.
861 (vect_transform_strided_load): Likewise.
862 (vect_permute_load_chain): Delete.
863 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
864 count argument. Check that the count is a power of two.
865 (vect_strided_load_supported): Likewise.
866 (vect_permute_store_chain): Return void. Update after above changes.
867 Assert that the access is supported.
868 (vect_permute_load_chain): Likewise.
869 (vect_transform_strided_load): Return void.
870 * tree-vect-stmts.c (vectorizable_store): Update calls after
871 above interface changes.
872 (vectorizable_load): Likewise.
873 (vect_analyze_stmt): Don't check for strided powers of two here.
875 2011-04-14 Richard Guenther <rguenther@suse.de>
877 PR tree-optimization/48590
878 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
879 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
880 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
882 * tree-ssa-dce.c (propagate_necessity): Handle
883 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
885 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
887 * c-parser.c (c_parser_objc_class_declaration): Updated call to
890 2011-04-14 Richard Guenther <rguenther@suse.de>
892 * tree.h (get_object_alignment_1): Declare.
893 * builtins.c (get_object_alignment_1): Split out worker from ...
894 (get_object_alignment): ... here.
895 * fold-const.c (get_pointer_modulus_and_residue): Use
896 get_object_alignment_1.
898 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
900 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
902 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
903 parameter. Generalise code to handle arrays as well as vectors.
904 (vect_setup_realignment): Update accordingly.
905 * tree-vect-stmts.c (vectorizable_store): Likewise.
906 (vectorizable_load): Likewise.
908 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
910 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
911 within the per-copy loop.
913 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
915 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
918 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
920 * doc/options.texi (Negative): Explicitly mention that the
921 Negative chain must be circular.
923 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
925 * function.h (block_chainon): Declare.
926 * function.c (block_chainon): Define.
928 2011-04-14 Anatoly Sokolov <aesok@post.ru>
929 Eric Weddington <eric.weddington@atmel.com>
930 Georg-Johann Lay <avr@gjlay.de>
932 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
934 (avr_init_builtins, avr_expand_builtin,
935 avr_expand_delay_cycles, avr_expand_unop_builtin,
936 avr_expand_binop_builtin ): New functions.
937 (avr_builtin_id): New enum
938 (struct avr_builtin_description): New struct
939 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
940 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
942 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
943 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
944 UNSPECV_DELAY_CYCLES): new enumeration values
945 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
946 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
947 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
948 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
949 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
950 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
953 * config/avr/avr-c.c: fix line endings
954 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
955 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
956 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
957 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
958 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
960 * doc/extend.texi (AVR Built-in Functions): New node
961 (Target Builtins): Add documentation of AVR
964 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
967 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
968 alone. Error if non-const data has attribute progmem.
970 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
972 * tree.h (struct tree_constructor): Include tree_typed instead of
974 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
975 TS_TYPED instead of TS_COMMON.
977 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
979 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
980 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
981 (sse2_psadbw): Merge with *avx_psadbw.
982 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
983 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
984 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
985 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
986 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
987 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
988 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
989 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
990 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
991 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
992 (ssse3_palignrti): Merge with *avx_palignrti.
994 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
996 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
997 * tree-ssanames.c (fini_ssanames): VEC_free it.
998 (make_ssa_name_fn): Update for VECness of free_ssanames.
999 (release_ssa_name, release_dead_ssa_names): Likewise.
1000 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1002 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1003 TS_TYPED instead of TS_COMMON.
1005 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1007 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1008 statistics_counter_event.
1009 * tree-ssa-copyrename.c (stats): Define.
1010 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1011 statistics_counter_event.
1012 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1013 (bswap_stats, widen_mul_stats): Define.
1014 (insert_reciprocals): Increment rdivs_inserted.
1015 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1016 rfuncs_inserted. Add calls to statistics_counter_event.
1017 (execute_cse_sincos_1): Increment inserted.
1018 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1019 statistics_counter_event.
1020 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1021 of bswap_stats. Add calls to statistics_counter_event.
1022 (convert_mult_to_widen): Increment widen_mults_inserted.
1023 (convert_plusminus_to_widen): Increment maccs_inserted.
1024 (convert_mult_to_fma): Increment fmas_inserted.
1025 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1026 calls to statistics_counter_event.
1028 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1030 PR rtl-optimization/48455
1031 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1032 `temp_costs->mem_cost'.
1034 2011-04-13 Jan Hubicka <jh@suse.cz>
1036 * ipa-inline.h: New file.
1037 * ipa-inline-analysis.c: New file. Broken out of ...
1038 * ipa-inline.c: ... this file; update toplevel comment;
1039 include ipa-inline.h
1040 (inline_summary): Move to ipa-inline.h
1041 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1042 ipa-inline-analysis.c.
1043 (cgraph_estimate_time_after_inlining): Rename to
1044 estiamte_time_after_inlining; move to ipa-inline-analysis.c
1045 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1046 to estimate_edge_growth.
1047 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1048 rename to estimate_size_after_inlining.
1049 (cgraph_mark_inline_edge): Update for new naming convention.
1050 (cgraph_check_inline_limits): Likewise.
1051 (cgraph_edge_badness): Likewise.
1052 (cgraph_decide_recursive_inlining): Likewise.
1053 (cgraph_decide_inlining_of_small_functions): Likewise.
1054 (cgraph_decide_inlining_incrementally): Likewise.
1055 (cgraph_estimate_growth): Rename to estimate_growth; move to
1056 ipa-inline-analysis.c.
1057 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1058 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1059 (compute_inline_parameters): Likewise.
1060 (compute_inline_parameters_for_current): Likewise.
1061 (pass_inline_parameters): Likewise.
1062 (inline_indirect_intraprocedural_analysis): Likewise.
1063 (analyze_function): Rename to inline_analyze_function; likewise.
1064 (add_new_function): Move to ipa-inline-analysis.c.
1065 (inline_generate_summary): Likewise.
1066 (inline_read_summary): Likewise.
1067 (inline_write_summary): Likewise.
1068 * Makefile.in (ipa-inline-analysis.c): New file.
1070 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1072 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1073 * configure: Regenerate.
1075 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1077 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1078 instead of tree_common.
1079 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1081 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1082 TS_TYPED rather than TS_COMMON.
1083 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1085 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
1088 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1089 r20 around calls of __tablejump_elpm__
1091 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1094 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1096 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1098 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
1100 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1101 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1102 (cfi_vec): New typedef.
1103 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1104 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1105 (cie_cfi_vec): New static variable.
1106 (cie_cfi_head): Delete.
1107 (add_cfi): Accept a cfi_vec * as first argument. All callers and
1108 declaration changed. Use vector rather than list operations.
1109 (new_cfi): Don't initialize the dw_cfi_next field.
1110 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1111 rather than list operations.
1112 (lookup_cfa): Use vector rather than list operations.
1113 (output_cfis): New argument upto. Accept a cfi_vec rather than
1114 a dw_cfi_ref list head as argument. All callers changed.
1115 Iterate over the vector using upto as a maximum index.
1116 (output_all_cfis): New static function.
1117 (output_fde): Use vector rather than list operations. Use the
1118 new upto argument for output_cfis rather than manipulating a
1120 (dwarf2out_begin_prologue): Change initializations to match
1122 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1123 from the vector length rather than searching for the end of a list.
1124 Use output_all_cfis.
1125 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1127 2011-04-13 Nick Clifton <nickc@redhat.com>
1129 * config/rx/rx.md (movmemsi): Do not use this pattern when
1130 volatile pointers are involved.
1132 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1134 * config/i386/sse.md (pinsrbits): Remove.
1135 (sse2_packsswb): Merge with *avx_packsswb.
1136 (sse2_packssdw): Merge with *avx_packssdw.
1137 (sse2_packuswb): Merge with *avx_packuswb.
1138 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1139 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1140 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1141 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1142 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1143 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1144 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1145 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1146 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1147 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1148 (sse2_loadld): Merge with *avx_loadld.
1149 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1150 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1151 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1152 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1153 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1155 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1157 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1159 * print-tree.c (print_node): Likewise.
1160 * tree-inline.c (copy_tree_r): Likewise.
1161 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1162 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1163 instead of TS_COMMON.
1164 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1165 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1166 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1167 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1168 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1170 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1172 (TREE_CHAIN): Check for a TS_COMMON structure.
1173 (TREE_TYPE): Check for a TS_TYPED structure.
1175 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1177 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1178 cgraph_get_create_node instead of cgraph_node.
1180 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1182 * c-parser.c (c_parser_initelt): Updated call to
1183 objc_build_message_expr.
1184 (c_parser_postfix_expression): Likewise.
1186 2011-04-12 Kai Tietz <ktietz@redhat.com>
1188 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1189 MASK_MS_BITFIELD_LAYOUT bit.
1191 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1193 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1194 assert it is always true.
1195 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1198 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1200 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1201 compiling Objective-C to be more efficient.
1203 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1205 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1208 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1210 * recog.h, genoutput.c, optabs.c: Revert last patch.
1212 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1215 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1217 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1219 * recog.h (insn_operand_data): Add an "allows_mem" field.
1220 * genoutput.c (output_operand_data): Initialize it.
1221 * optabs.c (maybe_legitimize_operand_same_code): New function.
1222 (maybe_legitimize_operand): Use it when matching the original
1225 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1227 * genpreds.c (process_define_predicate): Move most processing
1228 to gensupport.c. Continue to validate the expression.
1229 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1230 (process_define_predicate): Move processing to gensupport.c.
1231 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1232 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1233 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1235 (valid_predicate_name_p): New function, split out from old
1236 genpreds.c:process_define_predicate.
1237 (process_define_predicate): New function, combining code from
1238 old genpreds.c and genrecog.c functions.
1239 (process_rtx): Call it for DEFINE_PREDICATE and
1240 DEFINE_SPECIAL_PREDICATE.
1242 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1244 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1245 size of a '%A' memory reference.
1246 (T_DREG, T_QREG): New neon_builtin_type_bits.
1247 (arm_init_neon_builtins): Assert that the load and store operands
1248 are neon_struct_operands.
1249 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1250 (NEON_ARG_MEMORY): New builtin_arg.
1251 (neon_dereference_pointer): New function.
1252 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1253 Handle NEON_ARG_MEMORY.
1254 (arm_expand_neon_builtin): Update after above interface changes.
1255 Use NEON_ARG_MEMORY for loads and stores.
1256 * config/arm/predicates.md (neon_struct_operand): New predicate.
1257 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1258 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1259 (V_four_elem): Tweak formatting.
1260 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1261 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1262 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1263 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1264 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1265 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1266 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1267 Use %A in the output template.
1268 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1269 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1270 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1271 the width of the memory access. Remove post-increment.
1272 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1274 2011-04-12 Nick Clifton <nickc@redhat.com>
1276 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1277 instruction for interrupt handlers if the target is the basic V850
1279 (expand_epilogue): Likewise.
1281 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1283 PR rtl-optimization/48549
1284 * combine.c (propagate_for_debug): Also stop after BB_END of
1285 this_basic_block. Process LAST and just stop processing after it.
1286 (combine_instructions): If last_combined_insn has been deleted,
1287 set last_combined_insn to its PREV_INSN.
1289 2011-04-12 Richard Guenther <rguenther@suse.de>
1291 PR tree-optimization/46076
1292 * gimple.h (struct gimple_statement_call): Add fntype field.
1293 (gimple_call_fntype): Adjust.
1294 (gimple_call_set_fntype): New function.
1295 * gimple.c (gimple_build_call_1): Set the call function type.
1296 * gimplify.c (gimplify_call_expr): Preserve the function
1297 type the frontend used for the call.
1298 (gimplify_modify_expr): Likewise.
1299 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1301 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1303 * tree-ssa.c (useless_type_conversion_p): Function pointer
1304 conversions are useless.
1306 2011-04-12 Martin Jambor <mjambor@suse.cz>
1308 * cgraph.h (cgraph_node): Remove function declaration.
1309 (cgraph_create_node): Declare.
1310 (cgraph_get_create_node): Likewise.
1311 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1312 Updated all callers.
1313 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1314 the decl does not already exist. Call cgraph_get_create_node instead
1316 (cgraph_get_create_node): New function.
1317 (cgraph_same_body_alias): Update comment.
1318 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1319 assert it does not return NULL.
1320 (cgraph_update_edges_for_call_stmt): Likewise.
1321 (cgraph_clone_edge): Likewise.
1322 (cgraph_create_virtual_clone): Likewise.
1323 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1324 instead of cgraph_node.
1325 (cgraph_add_new_function): Call cgraph_create_node or
1326 cgraph_get_create_node instead of cgraph_node.
1327 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1328 instead of cgraph_node.
1329 (record_eh_tables): Likewise.
1330 (mark_address): Likewise.
1331 (mark_load): Likewise.
1332 (build_cgraph_edges): Call cgraph_get_create_node instead
1334 (rebuild_cgraph_edges): Likewise.
1335 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1336 instead of cgraph_node.
1337 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1339 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1340 cgraph_create_node instead of cgraph_node.
1341 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1343 * lto-cgraph.c (input_node): Likewise.
1344 * lto-streamer-in.c (input_function): Likewise.
1345 * varasm.c (mark_decl_referenced): Likewise.
1346 (assemble_alias): Likewise.
1348 2011-04-12 Martin Jambor <mjambor@suse.cz>
1350 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1351 instead of cgraph_node and assert it does not return NULL.
1352 * lto-streamer-in.c (lto_read_body): Likewise.
1353 * omp-low.c (new_omp_context): Likewise.
1354 (create_task_copyfn): Likewise.
1355 * tree-emutls.c (lower_emutls_function_body): Likewise.
1356 * matrix-reorg.c (transform_allocation_sites): Likewise.
1358 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1361 * c-typeck.c (build_asm_expr): Error out on attempts to use
1362 void type outputs or inputs for constraints that allow reg or
1365 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1366 Richard Earnshaw <rearnsha@arm.com>
1369 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1370 to use sign-magnitude offsets. Reject unsupported unaligned
1371 cases. Add detailed description in comments.
1372 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1373 condition from TARGET_32BIT to TARGET_ARM.
1375 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1377 * tree.h (struct typed_tree): New.
1378 (struct tree_common): Include it instead of tree_base.
1379 (TREE_TYPE): Update for new location of type field.
1380 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1381 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1382 (union tree_node): Add typed field.
1383 * treestruct.def (TS_TYPED): New.
1384 * lto-streamer.c (check_handled_ts_structures): Handle it.
1385 * tree.c (MARK_TS_TYPED): New macro.
1386 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1388 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1390 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1391 (force_nonfallthru): Do not alter the loop nest if no basic block
1394 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1396 * config/i386/sse.md (VI): New mode iterator.
1398 (AVX256MODEI): Ditto.
1399 (AVXMODEF4P): Ditto.
1400 (avxvecpsmode): Ditto.
1401 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1402 (sse2_andnot<mode>3): New expander.
1403 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1404 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1405 (<any_logic:code><mode>3): Use VI mode iterator.
1406 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1407 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1408 (*andnottf3): Handle AVX three-operand constraints.
1409 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1411 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1412 Robert Millan <rmh@gnu.org>
1414 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1415 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1416 GNU_USER_DYNAMIC_LINKER64): Define.
1417 (REG_NAME): Don't undefine.
1418 (MD_UNWIND_SUPPORT): Undefine.
1419 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1420 (REG_NAME): Don't undefine.
1421 (MD_UNWIND_SUPPORT): Undefine.
1422 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1424 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1426 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1427 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1429 2011-04-11 Xinliang David Li <davidxl@google.com>
1431 * value-profile.c (check_ic_target): New function.
1432 (gimple_ic_transform): Sanity check indirect call target.
1433 * gimple-low.c (gimple_check_call_args): Interface change.
1434 (gimple_check_call_matching_types): New function.
1435 * tree-inline.c (tree_can_inline_p): Call new function.
1437 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1439 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1440 tree-pretty-print.h & realmpfr.h.
1442 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1445 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1446 (setup_allocno_and_important_classes): Ditto.
1448 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1450 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1451 GNU_USER_DYNAMIC_LINKER.
1452 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1453 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1454 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1455 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1456 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1457 GNU_USER_TARGET_OS_CPP_BUILTINS.
1458 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1459 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1460 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1461 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1462 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1463 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1464 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1465 GNU_USER_TARGET_OS_CPP_BUILTINS.
1466 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1467 GNU_USER_DYNAMIC_LINKER.
1468 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1469 GNU_USER_TARGET_OS_CPP_BUILTINS.
1470 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1471 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1472 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1473 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1474 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1475 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1476 GNU_USER_DYNAMIC_LINKER64): Remove.
1477 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1478 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1479 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1480 GNU_USER_DYNAMIC_LINKER.
1481 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1482 GNU_USER_TARGET_OS_CPP_BUILTINS.
1483 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1484 GNU_USER_TARGET_OS_CPP_BUILTINS.
1485 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1486 to GNU_USER_TARGET_OS_CPP_BUILTINS.
1487 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1488 GNU_USER_TARGET_OS_CPP_BUILTINS.
1489 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1490 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1491 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1492 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1493 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1494 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1495 GNU_USER_DYNAMIC_LINKER.
1496 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1497 GNU_USER_TARGET_OS_CPP_BUILTINS.
1498 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1499 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1500 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1501 GNU_USER_DYNAMIC_LINKER.
1502 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1503 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1504 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1505 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1506 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1507 GNU_USER_DYNAMIC_LINKER.
1508 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1509 GNU_USER_DYNAMIC_LINKERN32.
1510 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1511 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
1512 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
1513 GNU_USER_DYNAMIC_LINKER32.
1514 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1515 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1516 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1517 GNU_USER_DYNAMIC_LINKER.
1518 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1519 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1520 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1521 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1522 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1523 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1524 GNU_USER_DYNAMIC_LINKER32.
1525 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1526 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1527 GNU_USER_DYNAMIC_LINKER.
1528 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1529 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1530 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1531 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
1532 GNU_USER_DYNAMIC_LINKER64.
1533 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1534 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1535 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1536 GNU_USER_DYNAMIC_LINKER.
1537 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1538 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1539 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1540 GNU_USER_DYNAMIC_LINKER.
1541 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1542 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1543 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1544 GNU_USER_DYNAMIC_LINKER32.
1545 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1546 GNU_USER_DYNAMIC_LINKER64.
1547 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1548 GNU_USER_DYNAMIC_LINKER64.
1549 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1550 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1551 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1552 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1553 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1555 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1557 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
1558 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1559 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1560 GNU_USER_DYNAMIC_LINKER.
1561 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1562 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
1563 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1564 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1565 GNU_USER_DYNAMIC_LINKER64.
1566 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1567 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1568 GNU_USER_LINK_EMULATION.
1569 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1570 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1571 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1572 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1573 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1574 CPP_SPEC, CC1_SPEC): Remove.
1575 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1576 (GNU_USER_DYNAMIC_LINKER): Define.
1577 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1578 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1579 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1580 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1581 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1582 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1583 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1584 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1585 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1586 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1587 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1588 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1589 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1590 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1591 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1592 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1593 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1594 GNU_USER_DYNAMIC_LINKER.
1595 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1596 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1597 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1598 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1599 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1600 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1601 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1602 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1603 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1604 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1606 2011-04-11 Kai Tietz <ktietz@redhat.com>
1610 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1611 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1613 (ix86_is_msabi_thiscall): Removed.
1614 (ix86_is_type_thiscall): Likewise.
1615 (ix86_get_callcvt): New function.
1616 (ix86_comp_type_attributes): Simplify check.
1617 (ix86_function_regparm): Use ix86_get_callcvt for calling
1618 convention attribute checks.
1619 (ix86_return_pops_args): Likewise.
1620 (ix86_static_chain): Likewise.
1621 (x86_this_parameter): Likewise.
1622 (x86_output_mi_thunk): Likewise.
1623 (ix86_function_type_abi): Optimize check for types without attributes.
1624 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1625 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1626 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1628 (IX86_BASE_CALLCVT): Helper macro.
1629 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1630 Use ix86_get_callcvt for calling convention attribute checks and avoid
1631 symbol-decoration for stdcall in TARGET_RTD case.
1632 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1634 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1637 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1639 * config/i386/sse.md (VI_128): New mode iterator.
1640 (VI12_128): Rename from SSEMODE12.
1641 (VI14_128): Rename from SSEMODE14.
1642 (VI124_128): New mode iterator.
1643 (VI24_128): Rename from SSEMODE248.
1644 (VI248_128): Rename from SSEMODE248.
1645 (SSEMODE124C8): Remove.
1646 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1647 (*sse2_<plusminus_insn><mode>3): Merge with
1648 *avx_<plusminus_insn><mode>3.
1649 (*mulv8hi3): Merge with *avx_mulv8hi3.
1650 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1651 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1652 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1653 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1654 (ashr<mode>3): Merge with *avx_ashr<mode>3.
1655 (lshr<mode>3): Merge with *avx_lshr<mode>3.
1656 (ashl<mode>3): Merge with *avx_ashl<mode>3.
1657 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1658 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1659 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1660 (*<smaxmin:code>v8hi3): Ditto.
1661 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1662 (*<smaxmin:code>v16qi3): Ditto.
1663 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1664 (*sse2_eq<mode>3): Ditto.
1665 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1666 (*sse2_gt<mode>3): Ditto.
1667 (vcondv2di): Split out of vcond<mode>.
1668 (vconduv2di): Split out of vcondu<mode>.
1670 2011-04-11 Richard Guenther <rguenther@suse.de>
1672 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1673 before calling tree_low_cst.
1675 2011-04-11 Richard Guenther <rguenther@suse.de>
1677 * stor-layout.c (layout_type): Compute all array index size operations
1678 in the original type.
1679 (initialize_sizetypes): Add comment.
1680 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1682 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1684 * common.opt (Tbss=, Tdata=, Ttext=): New options.
1686 2011-04-11 Martin Jambor <mjambor@suse.cz>
1688 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1689 of cgraph_node, handle NULL return value.
1690 (cgraph_global_info): Likewise.
1691 (cgraph_rtl_info): Likewise.
1692 * tree-inline.c (estimate_num_insns): Likewise.
1693 * gimplify.c (unshare_body): Likewise.
1694 (unvisit_body): Likewise.
1695 (gimplify_body): Likewise.
1696 * predict.c (optimize_function_for_size_p): Likewise.
1697 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1698 (call_may_clobber_ref_p_1): Likewise.
1699 * varasm.c (function_section_1): Likewise.
1700 (assemble_start_function): Likewise.
1702 2011-04-11 Martin Jambor <mjambor@suse.cz>
1704 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1706 * final.c (rest_of_clean_state): Likewise.
1707 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1708 * passes.c (pass_init_dump_file): Likewise.
1709 (execute_all_ipa_transforms): Likewise.
1710 (function_called_by_processed_nodes_p): Likewise.
1711 * predict.c (maybe_hot_frequency_p): Likewise.
1712 (probably_never_executed_bb_p): Likewise.
1713 (compute_function_frequency): Likewise.
1714 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1715 (unnest_nesting_tree_1): Likewise.
1716 (lower_nested_functions): Likewise.
1717 * tree-optimize.c (execute_fixup_cfg): Likewise.
1718 (tree_rest_of_compilation): Likewise.
1719 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1720 * tree-sra.c (ipa_early_sra): Likewise.
1721 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1722 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1723 * ipa.c (record_cdtor_fn): Likewise.
1724 * ipa-inline.c (cgraph_early_inlining): Likewise.
1725 (compute_inline_parameters_for_current): Likewise.
1726 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1727 * ipa-pure-const.c (local_pure_const): Likewise.
1728 * ipa-split.c (split_function): Likewise.
1729 (execute_split_functions): Likewise.
1730 * cgraphbuild.c (build_cgraph_edges): Likewise.
1731 (rebuild_cgraph_edges): Likewise.
1732 (cgraph_rebuild_references): Likewise.
1733 (remove_cgraph_callee_edges): Likewise.
1734 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1735 (verify_cgraph_node): Likewise.
1736 (cgraph_analyze_functions): Likewise.
1737 (cgraph_preserve_function_body_p): Likewise.
1738 (save_inline_function_body): Likewise.
1739 (save_inline_function_body): Likewise.
1740 * tree-inline.c (copy_bb): Likewise.
1741 (optimize_inline_calls): Likewise.
1743 2011-04-11 Martin Jambor <mjambor@suse.cz>
1745 PR tree-optimization/48195
1746 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1747 ipa_check_create_edge_args.
1748 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1749 ipa_check_create_edge_args.
1750 * ipa-inline.c (inline_generate_summary): Do not call
1751 ipa_check_create_node_params and ipa_check_create_edge_args.
1752 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1753 ipa_check_create_edge_args.
1755 2011-04-09 Anatoly Sokolov <aesok@post.ru>
1757 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1759 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1760 * function.c (record_hard_reg_sets): Likewise.
1761 * ira.c (compute_regs_asm_clobbered): Likewise.
1762 * sched-deps.c (sched_analyze_1): Likewise.
1763 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1765 2011-04-09 Xinliang David Li <davidxl@google.com>
1767 PR tree-optimization/PR48484
1768 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1769 has_valid_pred lazily
1771 2011-04-09 Duncan Sands <baldrick@free.fr>
1773 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1775 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1777 * combine.c (combine_validate_cost): Adjust comments. Set registered
1778 cost of I0 to zero at the end, if any.
1780 2011-04-08 Xinliang David Li <davidxl@google.com>
1782 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1783 to insane profile data.
1785 2011-04-08 Xinliang David Li <davidxl@google.com>
1787 * ipa-cp.c (ipcp_update_profiling): Correct
1788 negative scale factor due to insane profile data.
1790 2011-04-08 Xinliang David Li <davidxl@google.com>
1792 * final.c (dump_basic_block_info): New function.
1793 (final): Dump basic block.
1794 (final_scan_insn): Remove old dump.
1796 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
1799 * config.gcc (i386-*-freebsd): Disable unwind table generation for
1802 2011-04-08 Michael Matz <matz@suse.de>
1805 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1807 (rebuild_jump_labels): Call rebuild_jump_labels_1.
1808 * rtl.h (rebuild_jump_labels_chain): Declare.
1809 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1810 insns inserted on edges.
1812 2011-04-08 Joseph Myers <joseph@codesourcery.com>
1814 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1815 * config/arm/arm-arches.def: New.
1816 * config/arm/arm-opts.h: New.
1817 * config/arm/genopt.sh: New.
1818 * config/arm/arm-tables.opt: New (generated).
1819 * config/arm/arm.c (arm_handle_option, arm_target_help,
1820 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1821 (all_architectures): Get most table contents from arm-arches.def.
1822 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1823 arm_selected_tune here.
1824 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1825 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1826 (march=, mcpu=, mtune=): Use Enum and Var.
1827 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1828 (arm.o): Update dependencies.
1830 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
1832 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1834 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1835 (write_typed_alloc_defns): Likewise.
1836 (main): Calls write_typed_alloc_defns with output_header.
1838 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
1841 * ira-color.c (setup_profitable_hard_regs): Add comments.
1842 Don't take prohibited hard regs into account.
1843 (setup_conflict_profitable_regs): Rename to
1844 get_conflict_profitable_regs.
1845 (check_hard_reg_p): Check prohibited hard regs.
1847 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1849 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1850 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1851 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1853 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1856 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1857 move from floating point to shift amount register.
1858 (emit_move_sequence): Remove secondary reload support for floating
1859 point to shift amount amount register copies.
1860 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1861 amount register copies.
1862 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1863 register, return false if mode isn't a scalar integer mode.
1864 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1866 2011-04-08 Richard Guenther <rguenther@suse.de>
1868 * gimple.c (gimple_call_flags): Remove kludge.
1870 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1872 * sel-sched.c (sel_region_init): Move call to
1873 sel_setup_region_sched_flags after setup_current_loop_nest.
1875 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
1877 PR rtl-optimization/48272
1878 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1879 init_insn_reg_pressure_info. Adjust a caller.
1880 * sched-int.h (init_insn_reg_pressure_info): Declare.
1881 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1882 when sched-pressure is enabled.
1884 2011-04-08 Richard Guenther <rguenther@suse.de>
1886 * gimple.c (gimple_set_modified): Do not queue calls to
1887 MODIFIED_NORETURN_CALLS here ...
1888 * tree-ssa-operands.c (update_stmt_operands): ... but here.
1890 2011-04-08 Richard Guenther <rguenther@suse.de>
1893 * toplev.c (lang_dependent_init): Do not open asm_out_file
1894 in WPA mode, nor perform debug machinery initialization.
1895 (finalize): Do not unlink asm_out_file in WPA mode.
1897 2011-04-08 Richard Guenther <rguenther@suse.de>
1899 * gimple.h (gimple_call_fntype): New function.
1900 (gimple_call_return_type): Use it.
1901 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1902 * gimple-low.c (gimple_check_call_args): Likewise.
1903 * gimple.c (gimple_call_flags): Likewise.
1904 (gimple_call_arg_flags): Likewise.
1905 (gimple_call_return_flags): Likewise.
1906 * tree-cfg.c (verify_gimple_call): Likewise.
1907 (do_warn_unused_result): Likewise.
1908 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1909 * value-prof.c (gimple_ic_transform): Fix fndecl check.
1911 2011-04-08 Dmitry Melnik <dm@ispras.ru>
1913 PR rtl-optimization/48235
1914 * sel-sched.c (code_motion_process_successors): Recompute the last
1915 insn in basic block if control flow changed.
1916 (code_motion_path_driver): Ditto. Recompute the first insn as well.
1917 Update condition for ilist_remove.
1919 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1921 PR rtl-optimization/48302
1922 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1923 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
1924 it to record added preheader blocks.
1925 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
1926 on to sel_add_loop_preheaders.
1927 (sel_region_init): Move call to setup_current_loop_nest after
1930 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1933 * cfgloop.h (loop_has_exit_edges): New helper.
1934 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1936 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1937 that have no exit edges.
1939 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1941 PR rtl-optimization/48442
1942 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
1943 all callers. Adjust assert.
1945 2011-04-08 Jakub Jelinek <jakub@redhat.com>
1947 PR tree-optimization/48377
1948 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1949 is_packed to true even for types with smaller TYPE_ALIGN than
1952 2011-04-08 Richard Guenther <rguenther@suse.de>
1955 * doc/tm.texi: Re-generate.
1957 2011-04-08 Wei Guozhi <carrot@google.com>
1960 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1961 * config/arm/arm.c (arm_attr_length_push_multi): New function.
1962 * config/arm/arm.md (*push_multi): Change the length computation to
1965 2011-04-08 Anatoly Sokolov <aesok@post.ru>
1967 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1968 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1969 * doc/tm.texi: Regenerate.
1970 * system.h (ASM_OUTPUT_BSS): Poison.
1971 * varasm.c (asm_output_bss): Remove function.
1972 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1974 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1975 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1976 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1977 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1979 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1981 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1983 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1985 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1987 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1990 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1992 * config/m68k/m68k.c (m68k_handle_option): Don't handle
1993 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1994 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1996 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1997 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1998 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1999 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2000 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2001 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2002 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2003 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2004 options. Don't map other m68k options manually. Don't handle
2005 old-style options as canonical.
2006 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2007 * doc/install.texi (m68k-*-*): Document binutils version requirement.
2009 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2011 * basic-block.h (force_nonfallthru): Move to...
2012 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2013 (force_nonfallthru): ...here.
2014 * cfghooks.c (force_nonfallthru): New function.
2015 * cfgrtl.c (force_nonfallthru): Rename into...
2016 (rtl_force_nonfallthru): ...this.
2017 (commit_one_edge_insertion): Do not set AUX field.
2018 (commit_edge_insertions): Do not discover new basic blocks.
2019 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2020 (cfg_layout_rtl_cfg_hooks): Likewise.
2021 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2022 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2023 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2025 2011-04-07 Anatoly Sokolov <aesok@post.ru>
2027 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2030 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2032 * config/i386/sse.md: Update copyright year.
2033 (avxcvtvecmode): Remove.
2034 (sse_movhlps): Merge with *avx_movhlps.
2035 (sse_movlhps): Merge with *avx_movlhps.
2036 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2037 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2038 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2039 (sse_loadhps): Merge with *avx_loadhps.
2040 (sse_storelps): Merge with *avx_storelps.
2041 (sse_loadlps): Merge with *avx_loadlps.
2042 (sse_movss): Merge with *avx_movss.
2043 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2044 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2045 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2046 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2047 (vec_set<mode>_0): Ditto.
2048 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2049 (sse4_1_insertps): Merge with *avx_insertps.
2050 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2051 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2052 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2053 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2054 (sse2_storehpd): Merge with *avx_storehpd.
2055 (sse2_loadhpd): Merge with *avx_loadhpd.
2056 (sse2_loadlpd): Merge with *avx_loadlpd.
2057 (sse2_movsd): Merge with *avx_movsd.
2058 (*vec_concatv2df): Merge with *vec_concatv2df.
2060 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2063 * combine.c (combine_instructions): Add last_combined_insn,
2064 update it if insn is after it, pass it to all try_combine calls.
2065 (try_combine): Add last_combined_insn parameter, pass it instead of
2066 i3 to propagate_for_debug.
2068 2011-04-07 Nick Clifton <nickc@redhat.com>
2070 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2071 to handle MDR <-> data register transfers.
2072 (movhi_internal): Likewise.
2074 2011-04-07 Alan Modra <amodra@gmail.com>
2076 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2077 previous stack info.
2079 2011-04-07 Tom de Vries <tom@codesourcery.com>
2082 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
2083 flow_find_cross_jump. Swap variables to implement backward replacement.
2084 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2086 2011-04-07 Tom de Vries <tom@codesourcery.com>
2089 * cfgcleanup.c (walk_to_nondebug_insn): New function.
2090 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
2092 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2093 src1 or src2. Redirect edges to the last basic block. Update
2094 frequency and count on multiple basic blocks in case of fallthru.
2096 2011-04-07 Tom de Vries <tom@codesourcery.com>
2099 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2101 (old_insns_match_p): Change return type. Replace return false/true
2102 with return dir_none/dir_both. Use can_replace_by.
2103 (flow_find_cross_jump): Add dir_p parameter. Init replacement
2104 direction from dir_p. Register replacement direction in dir, last_dir
2105 and afterlast_dir. Handle new return type of old_insns_match_p using
2106 merge_dir. Return replacement direction in dir_p.
2107 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2108 return type of old_insns_match_p.
2109 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2110 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2111 flow_find_cross_jump.
2112 * basic-block.h (enum replace_direction): New type.
2113 (flow_find_cross_jump): Add parameter to declaration.
2115 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2117 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2118 (AVXMODEDCVTPS2DQ): Ditto.
2119 (VEC_FLOAT_MODE): Ditto.
2120 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
2121 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2122 (<any_logic:code><mode>3): Use VF mode iterator.
2123 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2124 Use VF mode iterator.
2125 (copysign<mode>3): Use VF mode iterator.
2126 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
2127 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2128 (*<any_logic:code><MODEF:mode>3): Merge with
2129 *avx_<any_logic:code><MODEF:mode>3.
2130 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2131 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2132 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2133 (avx_cvtdq2ps<avxmodesuffix>): Remove.
2134 (sse2_cvtdq2ps): Use %v modifier.
2135 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2136 (avx_cvtps2dq<avxmodesuffix>): Remove.
2137 (sse2_cvtps2dq): Use %v modifier.
2138 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2139 (avx_cvttps2dq<avxmodesuffix>): Remove.
2140 (sse2_cvttps2dq): Use %v modifier.
2141 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2142 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2143 (sse2_cvtsd2siq): Fix insn template.
2144 (sse2_cvtsd2siq_2): Ditto.
2145 (sse2_cvttsd2siq): Ditto.
2146 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2147 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2149 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2151 * gcov-io.c: Use GCC Runtime Library Exception.
2153 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2156 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2157 as base_reg whatever register reg has been eliminated to, instead
2158 of hardcoding STACK_POINTER_REGNUM.
2160 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2162 * doc/tm.texi.in: Document C target hooks as separate from general
2164 * doc/tm.texi: Regenerate.
2165 * genhooks.c (struct hook_desc): Add docname field.
2166 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2168 (hook_array): Include c-target.def.
2169 (emit_documentation): Use docname field in output.
2170 (emit_init_macros): Take docname argument. Only emit definitions
2171 for hooks matching docname.
2172 (main): Expect additional arguments in all cases. Pass argument
2173 to emit_init_macros.
2174 * target.def: Move initial macro definitions and comments to
2175 target-hooks-macros.h.
2176 (gcc_targetcm): Move to c-family/c-target.def.
2177 * target.h (targetcm): Move declaration to c-family/c-target.h.
2178 * targhooks.c (default_handle_c_option): Move to
2180 * targhooks.h (default_handle_c_option): Move declaration to
2181 c-family/c-common.h.
2182 * target-hooks-macros.h: New file.
2183 * config.gcc (target_has_targetcm): Define and use to add to
2184 c_target_objs and cxx_target_objs.
2185 * config/default-c.c: New file.
2186 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2187 of target.h and target-def.h.
2188 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2189 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2190 darwin_check_cfstring_format_arg): Make static.
2191 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2192 TARGET_STRING_OBJECT_REF_TYPE_P,
2193 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2194 * config/darwin-protos.h (darwin_objc_construct_string,
2195 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2197 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2198 TARGET_STRING_OBJECT_REF_TYPE_P,
2199 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2200 * config/t-darwin (darwin-c.o): Update dependencies.
2201 * system.h (TARGET_HAS_TARGETCM): Poison.
2202 * Makefile.in (TARGET_H): Update.
2203 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2204 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2205 (default-c.o): New target.
2206 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2207 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2208 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2210 (build/genhooks.o): Update dependencies.
2212 2011-04-06 Richard Guenther <rguenther@suse.de>
2214 * ipa-inline.c (enum inlining_mode): Remove.
2215 (cgraph_flatten): Use some other token.
2216 (cgraph_edge_early_inlinable_p): New function, split out from ...
2217 (cgraph_perform_always_inlining): New function, split out from ...
2218 (cgraph_decide_inlining_incrementally): ... here.
2219 (cgraph_mark_inline_edge): Adjust.
2220 (cgraph_early_inlining): Re-structure.
2221 (pass_early_inline): Require SSA form.
2223 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2224 Julian Brown <julian@codesourcery.com>
2225 Mark Shinwell <shinwell@codesourcery.com>
2227 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2228 LO_REGS only for Thumb-1.
2229 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2230 be used in short instructions when optimising for size on Thumb-2.
2232 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2234 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2235 associated with user returns to be preserved.
2237 2011-04-06 Tristan Gingold <gingold@adacore.com>
2239 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2240 symbol_queue_size, DBXOUT_DECR_NESTING,
2241 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2242 if XCOFF_DEBUGGING_INFO.
2244 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2246 * config/i386/i386.md (attribute isa): New.
2247 (attribute enabled): New.
2248 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2249 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2250 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2251 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2252 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2253 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2254 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2255 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2257 * config/i386/sse.md (VF): New mode iterator.
2261 (SSEMODEF4): Remove.
2262 (attribute sse): Handle V8SF and V4DF modes.
2263 (<absneg:code><mode>2): Use VF mode iterator.
2264 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2266 (<plusminus_insn><mode>3): Use VF mode iterator.
2267 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2268 Use VF mode iterator.
2269 (<sse>_vm<plusminus_insn><mode>3): Merge with
2270 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2271 (mul<mode>3): Use VF mode iterator.
2272 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2273 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2275 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2276 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2277 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2278 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2280 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2281 Use VF1 mode iterator.
2282 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2283 (sqrt<VF2:mode>2): New expander.
2284 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2285 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2286 and sqrtv2df2. Use VF mode iterator.
2287 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2289 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2290 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2291 Use VF1 mode iterator.
2292 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2293 (<smaxmin:code><mode>3): Use VF mode iterator.
2294 (*<smaxmin:code><mode>3_finite): Merge with
2295 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2296 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2297 (<sse>_vm<smaxmin:code><mode>2): Merge with
2298 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2299 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2301 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2303 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2304 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2305 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2306 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2307 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2309 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2310 Use VF_128 mode iterator.
2311 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2313 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2314 VF_128 mode iterator.
2315 (vcond<mode>): Use VF mode iterator.
2316 * config/i386/predicates.md (sse_comparison_operator): Merge with
2317 avx_comparison_float_operator. Do not declare as special_predicate.
2318 * config/i386/i386.c (struct builtin_description): Update for renamed
2320 (ix86_expand_args_builtin): Ditto.
2321 (ix86_expand_sse_compare_mask): Ditto.
2323 2011-04-06 Richard Guenther <rguenther@suse.de>
2325 * tree-inline.c (estimate_num_insns): For calls simply account
2326 for all passed arguments and a used return value.
2328 2011-04-06 Richard Guenther <rguenther@suse.de>
2330 PR tree-optimization/47663
2331 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2332 call_stmt_time fields.
2333 (cgraph_edge_inlinable_p): Declare.
2334 (cgraph_edge_recursive_p): New inline function.
2335 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2336 (cgraph_clone_edge): Copy it.
2337 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2338 Account for call stmt time.
2339 (cgraph_estimate_time_after_inlining): Take edge argument.
2340 (cgraph_estimate_edge_growth): Account call stmt size.
2341 (cgraph_estimate_size_after_inlining): Take edge argument.
2342 (cgraph_mark_inline_edge): Adjust.
2343 (cgraph_check_inline_limits): Likewise.
2344 (cgraph_recursive_inlining_p): Remove.
2345 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2346 (cgraph_decide_recursive_inlining): Take edge argument and
2348 (cgraph_decide_inlining_of_small_functions): Do not avoid
2349 diags for recursive inlining here.
2350 (cgraph_flatten): Adjust.
2351 (cgraph_decide_inlining_incrementally): Likewise.
2352 (estimate_function_body_sizes): Remove call cost handling.
2353 (compute_inline_parameters): Initialize caller edge call costs.
2354 (cgraph_estimate_edge_growth): New function.
2355 (cgraph_estimate_growth): Use it.
2356 (cgraph_edge_badness): Likewise.
2357 (cgraph_check_inline_limits): Take an edge argument.
2358 (cgraph_decide_inlining_of_small_functions): Adjust.
2359 (cgraph_decide_inlining): Likewise.
2360 * tree-inline.c (estimate_num_insns): Only account for call
2361 return value if it is used.
2362 (expand_call_inline): Avoid diagnostics on recursive inline
2364 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2365 (input_edge): Input edge call costs.
2367 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2369 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2371 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2373 * doc/invoke.texi (Spec Files): Fix typo.
2375 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2377 * profile.c (branch_prob): Move declaration of local variable. Remove
2378 obsolete ??? comment. Expand the location explicitly instead of using
2379 the LOCATION_FILE and LOCATION_LINE macros.
2381 2011-04-06 Wei Guozhi <carrot@google.com>
2384 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2385 (arm_cond_branch): Likewise.
2386 (arm_cond_branch_reversed): Likewise.
2387 (arm_jump): Likewise.
2388 (push_multi): Likewise.
2389 * config/arm/constraints.md (Py): New constraint.
2391 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2394 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2396 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2397 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2398 #ifdef DBX_DEBUGGING_INFO.
2400 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2403 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2404 if old and new states differ.
2406 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2408 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2409 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2410 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2411 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2412 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2414 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2415 ColdFire options to -mcpu= options.
2417 2011-04-05 Jeff Law <law@redhat.com>
2419 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2420 check if BB is a successor of LOOP->header and return
2421 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2423 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2425 * cprop.c (struct reg_use): Remove.
2426 (reg_use_table): Make an array of RTX.
2427 (find_used_regs, constprop_register, local_cprop_pass,
2428 bypass_block): Simplify users of reg_use_table.
2429 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2430 on one of the uses found by find_used_regs.
2432 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2435 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2438 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2440 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2442 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2444 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2447 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2449 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2451 * combine.c: Include obstack.h.
2452 (struct insn_link): Define.
2453 (uid_log_links): Adjust type.
2454 (FOR_EACH_LOG_LINK): New macro.
2455 (insn_link_obstack): Declare.
2456 (alloc_insn_link): Define.
2457 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2458 type of link variables.
2459 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2460 (try_combine, record_promoted_values, distribute_notes): Likewise.
2461 (distribute_links): Likewise. Tweak prototype.
2462 (clear_log_links): Delete.
2463 (adjust_for_new_dest): Call alloc_insn_link.
2464 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2466 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2468 * gcse.c (modify_mem_list): Convert to an array of VECs.
2469 (canon_modify_mem_list, compute_transp): Tweak formatting.
2470 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2471 (load_killed_in_block_p): Likewise.
2472 (record_last_mem_set_info): Likewise.
2473 (clear_modify_mem_tables): Likewise.
2475 2011-04-05 Tom de Vries <tom@codesourcery.com>
2478 * function.c (emit_use_return_register_into_block): Only define if
2481 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2483 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2485 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2487 * config/rx/rx-opts.h: New.
2488 * config/rx/rx.c (rx_cpu_type): Remove.
2489 (rx_handle_option): Don't assert that global structures are in
2490 use. Access variables via opts pointer. Defer most handling of
2491 OPT_mint_register_. Use error_at.
2492 (rx_option_override): Handle deferred OPT_mint_register_ here.
2493 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2494 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2495 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2496 (rx_cpu_types): New Enum and EnumValue entries.
2497 (mint-register=): Use Defer and use Var accordingly.
2499 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2501 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2502 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2503 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2505 (debug_free_queue, debug_nesting, symbol_queue_index):
2507 * dbxout.c: ...to here. Make static.
2509 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2511 * gcse.c (modify_pair): Define. Define a VEC of it.
2512 (canon_modify_mem_list): Convert to an array of VECs.
2513 (free_insn_expr_list_list): Delete.
2514 (clear_modify_mem_tables): Call VEC_free instead.
2515 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2516 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2517 (canon_list_insert, compute_transp): Likewise.
2519 2011-04-05 Tom de Vries <tom@codesourcery.com>
2522 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2525 2011-04-05 Tom de Vries <tom@codesourcery.com>
2528 * function.c (emit_use_return_register_into_block): New function.
2529 (thread_prologue_and_epilogue_insns): Use
2530 emit_use_return_register_into_block.
2532 2011-04-05 Tom de Vries <tom@codesourcery.com>
2535 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2538 2011-04-05 Tom de Vries <tom@codesourcery.com>
2540 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2542 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
2544 * config/arm/arm.md (define_constants for unspec): Replace with
2546 (define_constants for unspecv): Replace with define_c_enum.
2547 * config/arm/neon.md (define_constants for unspec): Replace with
2550 2011-04-04 Richard Henderson <rth@redhat.com>
2553 * dwarf2out.c (output_line_info): Always emit line info from
2554 at least one section.
2555 (dwarf2out_init): Create text_section_line_info here ...
2556 (set_cur_line_info_table): ... not here.
2558 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
2561 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2564 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2566 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
2568 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2569 (expr_equiv_p): Remove.
2570 (insert_set_in_table): Look at <dest, src> pair instead of expr.
2571 (hash_scan_set): Update call to insert_set_in_table.
2572 (dump_hash_table): Dump <dest, src> pair.
2573 (lookup_set): Simplify. Lookup <dest, src> pair.
2574 (compute_transp): Remove, fold heavily simplified code into...
2575 (compute_local_properties): ...here. Expect COMP and TRANSP
2577 (find_avail_set): Take set directly from struct expr.
2578 (find_bypass-set): Likewise.
2579 (bypass_block): Likewise.
2580 (cprop_insn): Likewise. Remove redundant INSN_P test.
2582 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2583 checks on form of COND from find_implicit_sets to here.
2584 (find_implicit_sets): Cleanup control flow. Split critical edges
2585 if it exposes implicit sets. Allocate/resize implicit_sets as
2587 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2588 changed something. Run df_analyze after find_implicit_sets if any
2589 edges were split. Do not allocate implicit_sets here.
2591 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2592 (gcse_obstack): Renamed to cprop_obstack.
2593 (GNEW, GNEWVEC, GNEWVAR): Remove.
2595 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2596 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2597 (gcse_alloc): Likewise, and rename to cprop_alloc.
2598 (alloc_gcse_men, free_gcse_mem): Remove.
2599 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2600 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2601 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2603 * cprop.c (oprs_not_set_p): Remove.
2604 (mark_set, mark_clobber): Remove.
2605 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2606 (reg_not_set_p): New function.
2607 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2608 (cprop_insn): Likewise.
2609 (cprop_jump): Use FOR_EACH_EDGE.
2611 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
2614 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2615 (rank_for_schedule): Use scheduled_insns vector instead of
2616 last_scheduled_insn.
2617 (ok_for_early_queue_removal): Likewise.
2618 (queue_to_ready): Search forward in nonscheduled_insns_begin if
2620 (choose_ready): Likewise.
2621 (commit_schedule): Use VEC_iterate.
2622 (schedule_block): Initialize nonscheduled_insns_begin. If we have
2623 a dbg_cnt, use it and ensure the first insn is in the ready list.
2624 (haifa_sched_init): Allocate scheduled_insns.
2625 (sched_extend_ready_list): Don't allocate it; reserve space.
2626 (haifa_sched_finish): Free it.
2628 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2630 * optc-gen.awk: Always remove type from Variable entry before
2631 recording in var_seen.
2633 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
2635 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2636 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2637 call to tidy_fallthru_edges.
2639 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2641 * doc/options.texi (ToLower): Document.
2642 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2643 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2644 * opts.h (cl_option): Add cl_tolower field.
2645 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2646 arguments with lowercase strings.
2647 * config/rx/rx.opt (mcpu=): Add ToLower.
2648 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2651 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2653 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2655 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2657 * config/vax/vax.c: Include reload.h.
2659 2011-04-04 Anatoly Sokolov <aesok@post.ru>
2661 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2662 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2663 (sparc_preferred_reload_class): New function.
2665 2011-04-04 Jakub Jelinek <jakub@redhat.com>
2668 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2669 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2671 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
2673 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2674 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2676 2011-04-03 Anatoly Sokolov <aesok@post.ru>
2678 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2679 (ASM_OUTPUT_ALIGNED_BSS): Define.
2681 2011-04-03 Michael Matz <matz@suse.de>
2683 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2684 and next_slot members.
2685 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2686 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2687 (lto_streamer_cache_append): Declare.
2688 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2689 unsigned index, remove offset parameter, ensure that we append
2690 or update existing entries.
2691 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2692 parameter, update next_slot for append.
2693 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2695 (lto_streamer_cache_insert_at): Likewise.
2696 (lto_streamer_cache_append): New function.
2697 (lto_streamer_cache_lookup): Use unsigned index.
2698 (lto_streamer_cache_get): Likewise.
2699 (lto_record_common_node): Don't test tree_node_can_be_shared.
2700 (preload_common_node): Adjust call to lto_streamer_cache_insert.
2701 (lto_streamer_cache_delete): Don't free offsets member.
2702 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2703 (lto_output_string_with_length): Use lto_output_data_stream.
2704 (lto_output_tree_header): Remove ix parameter, don't write it.
2705 (lto_output_builtin_tree): Likewise.
2706 (lto_write_tree): Adjust callers to above, don't track and write
2707 offset, write unsigned index.
2708 (output_unreferenced_globals): Don't emit all global vars.
2709 (write_global_references): Use unsigned indices.
2710 (lto_output_decl_state_refs): Likewise.
2711 (write_symbol): Likewise.
2712 * lto-streamer-in.c (lto_input_chain): Move earlier.
2713 (input_function): Use unsigned index.
2714 (input_alias_pairs): Don't read and then ignore all global vars.
2715 (lto_materialize_tree): Remove ix_p parameter, don't read index,
2716 don't pass it back, use lto_streamer_cache_append.
2717 (lto_register_var_decl_in_symtab): Use unsigned index.
2718 (lto_register_function_decl_in_symtab): Likewise.
2719 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2721 (lto_get_builtin_tree): Don't read index, use
2722 lto_streamer_cache_append.
2723 (lto_read_tree): Adjust call to lto_materialize_tree.
2725 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2726 don't use function calls in arguments to MIN.
2728 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2731 * gimple.c (gimple_type_leader_entry): Mark deletable.
2733 2011-04-03 Alan Modra <amodra@gmail.com>
2735 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2737 2011-04-03 Michael Matz <matz@suse.de>
2739 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2741 * tree.h (tree_decl_non_common.vindex): Adjust comment.
2743 2011-04-03 Michael Matz <matz@suse.de>
2745 * cgraphbuild.c (record_reference): Canonicalize constructor values.
2746 * gimple-fold.c (canonicalize_constructor_val): Accept being called
2747 without function context.
2748 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2749 current_function_decl and cfun.
2751 2011-04-03 Michael Matz <matz@suse.de>
2753 * tree.c (decl_init_priority_insert): Don't create entry for
2755 (decl_fini_priority_insert): Ditto.
2756 (fields_compatible_p, find_compatible_field): Remove.
2757 * tree.h (fields_compatible_p, find_compatible_field): Remove.
2758 * gimple.c (gimple_compare_field_offset): Adjust block comment.
2760 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
2762 * combine.c (try_combine): Remove useless local variable.
2764 2011-04-03 Richard Guenther <rguenther@suse.de>
2765 Ira Rosen <ira.rosen@linaro.org>
2767 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2768 non-variable offsets and compare the remaining bases of the two
2769 accesses instead of looking for exact same data-ref.
2771 2011-04-02 Kai Tietz <ktietz@redhat.com>
2774 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2776 * i386.c (ix86_is_msabi_thiscall): New helper function.
2777 (ix86_is_type_thiscall): New helper function.
2778 (ix86_comp_type_attributes): Handle thiscall for method-functions
2780 (init_cumulative_args): Likewise.
2781 (find_drap_reg): Likewise.
2782 (ix86_static_chain): Likewise.
2783 (x86_this_parameter): Likewise.
2784 (x86_output_mi_thunk): Likewise.
2786 2011-04-01 Olivier Hainque <hainque@adacore.com>
2787 Nicolas Setton <setton@adacore.com>
2788 Eric Botcazou <ebotcazou@adacore.com>
2790 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2791 (add_gnat_descriptive_type_attribute): New function.
2792 (gen_array_type_die): Call it.
2793 (gen_enumeration_type_die): Likewise.
2794 (gen_struct_or_union_type_die): Likewise.
2795 (modified_type_die): Likewise.
2796 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2797 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2798 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2800 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2803 * dwarf2out.c (resolve_addr): Don't call force_decl_die
2804 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2807 2011-03-17 Richard Guenther <rguenther@suse.de>
2810 * lto-cgraph.c (input_overwrite_node): Clear the abstract
2811 origin for decls in other ltrans units.
2812 (input_varpool_node): Likewise.
2814 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2817 * expr.c (expand_assignment): Handle all possibilities
2818 if TO_RTX is CONCAT.
2819 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2820 (store_split_bit_field): If SUBREG_REG (op0) or
2821 op0 itself has smaller mode than word, return it
2822 for offset 0 and const0_rtx for out-of-bounds stores.
2823 If word is const0_rtx, skip it.
2825 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
2827 * config/h8300/h8300.c (print_operand_address): Rename to...
2828 (h8300_print_operand_address): ...this. Make static. Adjust comments.
2829 Call h8300_print_operand and h8300_print_operand_address instead of
2830 print_operand and print_operand_address. Declare.
2831 (print_operand): Renake to...
2832 (h8300_print_operand): ...this. Make static. Adjust comments.
2833 Call h8300_print_operand instead of print_operand. Declare.
2834 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2835 (h8300_register_move_cost): Likewise.
2836 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2837 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2838 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2839 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2840 * config/h8300/h8300-protos.h (print_operand): Delete.
2841 (print_operand_address): Delete.
2843 2011-04-01 Richard Henderson <rth@redhat.com>
2846 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2847 in strict mode before dwarf4. Re-order tests to early out
2848 before switching sections.
2850 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
2852 * config/h8300/constraints.md: New file.
2853 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
2854 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2855 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2856 * config/h8300/predicates.md (bit_operand): Likewise.
2857 (incdec_operand): Use satisfies_constraint_M and
2858 satisfies_constraint_O. Don't use C code block.
2859 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2860 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2861 (compute_mov_length): Use satisfies_constraint_G.
2862 (fix_bit_operand): Use satisfies_constraint_U.
2863 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2864 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2865 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2866 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2867 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2868 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2869 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2870 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2871 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2872 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2873 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2874 (EXTRA_MEMORY_CONSTRAINT): Delete.
2876 2011-04-01 Andrew Pinski <pinskia@gmail.com>
2877 Michael Meissner <meissner@linux.vnet.ibm.com>
2880 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2881 operands, as per the specifications.
2883 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2884 (vec_extract_evenv4sf): Ditto.
2885 (vec_extract_evenv8hi): Ditto.
2886 (vec_extract_evenv16qi): Ditto.
2887 (vec_extract_oddv4si): Ditto.
2889 2011-03-31 Mark Wielaard <mjw@redhat.com>
2891 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2892 high_pc attribute if the CU has no associated code. Only output
2893 DW_AT_entry_pc for CU if not generating strict dwarf and
2896 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
2898 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2899 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2901 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2902 * final.c (final_start_function): Call the new function rather
2903 than using a NULL argument for dwarf2out_frame_debug.
2905 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2906 that contains the prologue.
2908 * haifa-sched.c (queue_insn): New arg REASON. All callers
2909 changed. Print it in debugging output.
2911 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2913 * sched-ebb.c (begin_schedule_ready): Remove second argument.
2914 Split most of the code into...
2915 (begin_move_insn): ... here. New function.
2916 (ebb_sched_info): Add a pointer to it.
2917 * haifa-sched.c (scheduled_insns): New static variable.
2918 (sched_extend_ready_list): Allocate it.
2919 (schedule_block): Use it to record the order of scheduled insns.
2920 Perform RTL changes to move insns only after all scheduling
2921 decisions have been made.
2922 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2923 begin_move_insn field.
2924 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2925 * sched-int.h (struct haifa_sched_info): Remove second argument
2926 from begin_schedule_ready hook. Add new member begin_move_insn.
2927 * sched-rgn.c (begin_schedule_ready): Remove second argument.
2928 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2930 * haifa-sched.c (prune_ready_list): New function, broken out of
2932 (schedule_block): Use it.
2934 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2936 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2938 2011-04-01 Kai Tietz <ktietz@redhat.com>
2940 * config.gcc (*-*-mingw*): Allow as option the
2941 posix threading model.
2942 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
2943 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2945 (CPP_SPEC): Add pthread/no-pthread handling.
2946 (LIB_SPEC): Likewise.
2947 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2948 (LIB_SPEC): Likewise.
2949 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2950 flag to pass -pthread option for shared libgcc build.
2951 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2952 for shared libgcc build.
2953 * config/i386/t-mingw-pthread: New file.
2954 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2955 New define to enable use of library pthread by default.
2956 * config/i386/mingw.opt (pthread): New driver option.
2957 (no-pthread): New driver option.
2958 * config/i386/cygming.opt: Make sure trailing empty line is retained.
2959 * config/i386/mingw-w64.opt: Likewise.
2961 2011-04-01 Gary Funck <gary@intrepid.com>
2963 * c-decl.c (grokdeclarator): Fix formatting.
2965 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2967 * expr.c (emit_block_move_via_movmem): Use n_generator_args
2968 instead of n_operands.
2969 (set_storage_via_setmem): Likewise.
2970 * optabs.c (maybe_gen_insn): Likewise.
2971 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2972 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2973 (mips_expand_builtin_direct): Likewise.
2974 * config/spu/spu.c (expand_builtin_args): Likewise.
2976 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2978 * recog.h (insn_data_d): Add n_generator_args.
2979 * genoutput.c (data): Likewise.
2980 (output_insn_data): Print it.
2981 (max_opno, num_dups): Delete.
2982 (scan_operands): Just fill in "d->operand[...]".
2983 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2985 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2987 * gensupport.h (pattern_stats): New structure.
2988 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2989 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2990 (max_operand_1, max_operand_vec): Delete.
2991 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2993 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
2995 * emit-rtl.c (emit_pattern_after_setloc): New function.
2996 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2997 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2998 (emit_pattern_after): New function.
2999 (emit_insn_after, emit_jump_insn_after): Call it.
3000 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3001 (emit_pattern_before_setloc): New function.
3002 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3003 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3005 (emit_pattern_before): New function.
3006 (emit_insn_before, emit_jump_insn_before): Call it.
3007 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3009 2011-03-31 Richard Henderson <rth@redhat.com>
3011 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3012 (dw_separate_line_info_entry): Remove.
3013 (enum dw_line_info_opcode): New.
3014 (dw_line_info_entry): Use it.
3015 (dw_line_info_table, dw_line_info_table_p): New.
3016 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3017 (line_info_table, line_info_label_num): Remove.
3018 (line_info_table_in_use): Remove.
3019 (separate_line_info_table): Remove.
3020 (separate_line_info_table_allocated): Remove.
3021 (separate_line_info_table_in_use): Remove.
3022 (LINE_INFO_TABLE_INCREMENT): Remove.
3023 (line_info_label_num): New.
3024 (cur_line_info_table): New.
3025 (text_section_line_info, cold_text_section_line_info): New.
3026 (separate_line_info): New.
3027 (SEPARATE_LINE_CODE_LABEL): Remove.
3028 (print_dwarf_line_table): Remove.
3029 (debug_dwarf): Don't dump it.
3030 (output_one_line_info_table): New.
3031 (output_line_info): Use it.
3032 (new_line_info_table): New.
3033 (set_cur_line_info_table): New.
3034 (dwarf2out_switch_text_section): Use it.
3035 (dwarf2out_begin_function): Likewise.
3036 (push_dw_line_info_entry): New.
3037 (dwarf2out_source_line): Rewrite for new line info tables.
3038 (dwarf2out_init): Remove dead initailizations.
3040 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3042 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3044 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3045 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3046 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3047 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3048 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3049 * opt-functions.awk (flag_init, switch_bit_fields): New.
3050 (switch_flags): Don't handle flags moved to bit-fields. Don't
3051 generate CL_MISSING_OK or CL_SAVE.
3052 * optc-gen.awk: Update to generate bit-field output as well as
3054 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3055 bit-field instead of CL_REJECT_DRIVER flag.
3056 * opts-common.c (generate_canonical_option,
3057 decode_cmdline_option): Use bit-fields instead of CL_* flags.
3058 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3059 instead of CL_REJECT_NEGATIVE flag.
3060 * toplev.c (print_switch_values): Use cl_report bit-field instead
3063 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3065 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3066 a zero minimum index only if it is redundant.
3068 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
3070 PR rtl-optimization/48381
3071 * ira-color.c (assign_hard_reg): Use hard reg set intersection
3072 instead of ira_class_hard_reg_index for calculating conflicting
3075 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
3077 * cprop.c: Clean up hash table building.
3078 (reg_avail_info): Remove.
3079 (oprs_available_p): Remove.
3080 (record_last_reg_set_info): Remove.
3081 (record_last_set_info): Remove.
3082 (reg_available_p): New function.
3083 (gcse_constant_p): Do not treat unfolded conditions as constants.
3084 (make_set_regs_unavailable): New function.
3085 (hash_scan_set): Simplify with new reg_available_p.
3086 (compute_hash_table_work): Traverse insns stream only once.
3087 Do not compute reg_avail_info. Traverse insns in reverse order.
3088 Record implicit sets after recording explicit sets from the block.
3090 2011-03-31 Michael Matz <matz@suse.de>
3092 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3094 2011-03-31 Anatoly Sokolov <aesok@post.ru>
3096 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3097 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3098 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3099 (h8300_mode_dependent_address_p): New function.
3100 (h8300_get_index): Make static.
3102 2011-03-31 Jeff Law <law@redhat.com>
3104 * reload1.c (elimination_effects): Fix typo in recent change.
3106 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3107 typo potentially leading to null pointer dereference.
3109 * caller-save.c (new_saved_hard_reg): Eliminate return value.
3110 (setup_save_areas): Corresponding changes to avoid useless
3113 * jump.c (reversed_comparison_code_parts): Avoid successive return
3114 statements when REVERSE_CONDITION is defined.
3116 * expr.c (expand_assignment): Avoid useless assignments.
3117 (expand_expr_real_1): Likewise.
3118 (expand_expr_real_2): Avoid useless statements.
3120 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3122 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3124 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3127 * stmt.c (expand_expr_stmt): Avoid useless assignment.
3129 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3132 * doc/tm.texi.in (TARGET_VERSION): Remove.
3133 * doc/tm.texi: Regenerate.
3134 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3135 * collect2.c (main): Don't use TARGET_VERSION.
3136 * mips-tdump.c (main): Don't use TARGET_VERSION.
3137 * mips-tfile.c (main): Don't use TARGET_VERSION.
3138 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3139 * config/rs6000/vxworksae.h: Remove.
3140 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3141 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3142 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3143 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3144 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3145 * config/arm/arm.h (TARGET_VERSION): Remove.
3146 * config/arm/coff.h (TARGET_VERSION): Remove.
3147 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3148 * config/arm/elf.h (TARGET_VERSION): Remove.
3149 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3150 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3151 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3152 * config/arm/pe.h (TARGET_VERSION): Remove.
3153 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3154 * config/arm/semi.h (TARGET_VERSION): Remove.
3155 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3156 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3157 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3158 * config/avr/avr.h (TARGET_VERSION): Remove.
3159 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3160 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3161 * config/frv/frv.h (TARGET_VERSION): Remove.
3162 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3163 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3164 * config/i386/darwin.h (TARGET_VERSION): Remove.
3165 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3166 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3167 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3168 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3169 * config/i386/gnu.h (TARGET_VERSION): Remove.
3170 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3171 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3172 * config/i386/linux.h (TARGET_VERSION): Remove.
3173 * config/i386/linux64.h (TARGET_VERSION): Remove.
3174 * config/i386/lynx.h (TARGET_VERSION): Remove.
3175 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3176 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3177 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3178 * config/i386/netware.h (TARGET_VERSION): Remove.
3179 * config/i386/nto.h (TARGET_VERSION): Remove.
3180 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3181 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3182 * config/ia64/elf.h (TARGET_VERSION): Remove.
3183 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3184 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3185 * config/ia64/linux.h (TARGET_VERSION): Remove.
3186 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3187 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3188 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3189 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3190 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3191 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3192 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3193 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3194 * config/m68k/linux.h (TARGET_VERSION): Remove.
3195 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3196 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3197 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3198 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3199 * config/mep/mep.h (TARGET_VERSION): Remove.
3200 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3201 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3202 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3203 * config/mips/linux.h (TARGET_VERSION): Remove.
3204 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3205 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3206 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3207 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3208 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3209 * config/pa/pa.h (TARGET_VERSION): Remove.
3210 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3211 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3212 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3213 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3214 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3215 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3216 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3217 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3218 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3219 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3220 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3221 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3222 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3223 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3224 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3225 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3226 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3227 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3228 * config/s390/linux.h (TARGET_VERSION): Remove.
3229 * config/s390/s390.h (TARGET_VERSION): Remove.
3230 * config/s390/tpf.h (TARGET_VERSION): Remove.
3231 * config/score/score.h (TARGET_VERSION): Remove.
3232 * config/sh/linux.h (TARGET_VERSION): Remove.
3233 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3234 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3235 * config/sh/sh.h (TARGET_VERSION): Remove.
3236 * config/sh/sh64.h (TARGET_VERSION): Remove.
3237 * config/sh/superh.h (TARGET_VERSION): Remove.
3238 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3239 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3240 * config/sparc/linux.h (TARGET_VERSION): Remove.
3241 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3242 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3243 TARGET_NAME32, TARGET_NAME): Remove.
3244 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3245 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3246 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3247 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3248 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3249 * config/spu/spu.h (TARGET_VERSION): Remove.
3250 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3251 * config/v850/v850.h (TARGET_VERSION): Remove.
3252 * config/vax/linux.h (TARGET_VERSION): Remove.
3253 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3254 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3255 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3257 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3260 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3261 frame-related from frame-unrelated adjustments to the stack pointer.
3263 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3265 * common.opt (fdebug-types-section): Move earlier.
3266 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3268 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3270 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3273 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3275 * tree.h (CASE_CHAIN): Define.
3276 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3277 (gimple_redirect_edge_and_branch): Likewise.
3279 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3282 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3285 2011-03-30 Jeff Law <law@redhat.com>
3287 * PR bootstrap/48371
3288 * reload1.c (reload): Fix botch in last change.
3290 * reload.h (struct reload): Fix typo introduced in last change.
3292 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3294 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3295 Undocumented. Remove help text.
3296 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3299 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3301 * doc/options.texi (NegativeAlias): Document.
3302 (Alias): Mention NegativeAlias.
3303 * opt-functions.awk: Handle NegativeAlias.
3304 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3305 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3306 * opts.h (CL_NEGATIVE_ALIAS): Define.
3307 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3308 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3310 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3312 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3313 mno-spe and mno-isel instead of mspe=no and -misel=no.
3315 2011-03-29 Mark Wielaard <mjw@redhat.com>
3317 * common.opt (fdebug-types-section): New flag.
3318 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3319 * dwarf2out.c (use_debug_types): New define.
3320 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3321 (print_die): Guard output of type unit signatures using
3323 (build_abbrev_table): Replace assert of dwarf_version >= 4
3324 with assert on use_debug_types.
3325 (size_of_die): Likewise.
3326 (unmark_dies): Likewise.
3327 (value_format): Decide AT_ref_external form on use_debug_types.
3328 (output_die): Replace dwarf_version version check guard with
3329 use_debug_types where appropriate.
3330 (modified_type_die): Likewise.
3331 (gen_reference_type_die): Likewise.
3332 (dwarf2out_start_source_file): Likewise.
3333 (dwarf2out_end_source_file): Likewise.
3334 (prune_unused_types_walk_attribs): Likewise.
3335 (dwarf2out_finish): Likewise.
3337 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3339 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3341 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3343 PR rtl-optimization/48332
3344 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3345 mode of input operand N and modeN to its actual mode.
3347 2011-03-30 Jeff Law <law@redhat.com>
3349 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3350 define accessor macro.
3351 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3352 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3353 (reg_equiv_init): Likewise.
3354 (reg_equivs_size): New variable.
3355 (reg_equiv_init_size): Remove.
3356 (allocate_initial_values): Move prototype to here from....
3357 * integrate.h (allocate_initial_values): Remove prototype.
3358 * integrate.c: Include reload.h.
3359 (allocate_initial_values): Corresponding changes.
3360 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3361 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3362 (update_equiv_regs): Corresponding changes.
3363 (ira): Corresponding changes.
3364 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3365 (push_secondary_reload): Corresponding changes.
3366 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3367 (make_memloc, find_reloads_address): Corresponding changes.
3368 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3369 (find_reloads_address_1): Corresponding changes.
3370 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3371 (refers_to_regno_for_reload_p): Corresponding changes.
3372 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3373 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3374 * reload1.c: Include ggc.h.
3375 (grow_reg_equivs): New function.
3376 (replace_pseudos_in, reload): Corresponding changes.
3377 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3378 (eliminate_regs_1, elimination_effects): Corresponding changes.
3379 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3380 (delete_output_reload): Likewise.
3381 * caller-save.c (mark_referenced_regs): Corresponding changes.
3382 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3383 * frv/predicates.md (frv_load_operand): Corresponding changes.
3384 * microblaze/microblaze.c (double_memory_operand): Corresponding
3386 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3387 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3388 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3389 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3390 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3392 * pa/pa.c (emit_move_sequence): Corresponding changes.
3393 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3395 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3398 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3399 structure modes. Don't check neon_vector_mem_operand for
3400 vector or structure modes.
3402 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3403 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3406 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3407 operand 1 and reshuffle the operands to match.
3408 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3410 2011-03-30 Christian Schüler <cschueler@gmx.de>
3413 * config/c.opt (F): Added 'Driver' to -F option.
3416 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3418 * config/darwin.opt: Added '-arch' option.
3420 2011-03-30 Nick Clifton <nickc@redhat.com>
3422 * config/rx/rx.md: Add peepholes and patterns to combine
3423 extending loads and simple arithmetic instructions.
3424 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3425 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3426 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3427 modes to use pre-decrement and post-increment addressing.
3428 (rx_is_restricted_memory_address): Add range checking of REG+INT
3430 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3431 (rx_memory_move_cost): Adjust cost of stores.
3432 (rx_adjust_insn_length): New function.
3434 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3437 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3438 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3439 matching arg00/arg01 types.
3441 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3443 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3444 last_location to UNKNOWN_LOCATION.
3446 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3449 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3452 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3453 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3456 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3458 (sparc_cpu): Likewise.
3459 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3462 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3466 PR rtl-optimization/48345
3467 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3468 hard regs for given mode from profitable regs when doing secondary
3471 2011-03-29 Jeff Law <law@redhat.com>
3474 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3475 do_not_duplicate field.
3476 (lookup_redirection_data): Corresponding changes.
3477 (create_duplicates): Always create a template block.
3478 (redirect_edges): Remove code which reused the original block
3479 when it was going to become unreachable code.
3480 (thread_block): Don't set do_not_duplicate field.
3482 2011-03-29 Joseph Myers <joseph@codesourcery.com>
3484 * lto-opts.c (register_user_option_p, lto_register_user_option):
3485 Make type argument unsigned.
3486 * lto-streamer.h (lto_register_user_option): Make type argument
3488 * opth-gen.awk: Make CL_* macros unsigned.
3489 * opts-common.c (find_opt): Make lang_mask argument unsigned.
3490 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3491 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3492 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3493 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3494 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3495 (find_opt): Make lang_mask argument unsigned.
3497 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3499 PR rtl-optimization/48331
3500 PR rtl-optimization/48334
3501 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3502 for any used algorithm.
3504 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3506 * ira-conflicts.c (build_object_conflicts): Add unused attribute
3509 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
3511 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3512 (alpha_option_override): Don't set alpha_sr_alias_set.
3513 (emit_frame_store_1): Use gen_frame_mem rather than calling
3515 (alpha_expand_epilogue): Ditto.
3517 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
3519 PR tree-optimization/48290
3520 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3521 vectorization, check that relevant phis in the basic block after
3522 the inner loop are really inner loop's exit phis.
3524 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
3527 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3528 (cached_dw_loc_list_def): New structure.
3529 (cached_dw_loc_list): New typedef.
3530 (cached_dw_loc_list_table): New variable.
3531 (cached_dw_loc_list_table_hash): New function.
3532 (cached_dw_loc_list_table_eq): Likewise.
3533 (add_location_or_const_value_attribute): Take a bool cache_p.
3534 Cache the list when the parameter is true.
3535 (gen_formal_parameter_die): Update caller.
3536 (gen_variable_die): Likewise.
3537 (dwarf2out_finish): Likewise.
3538 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3539 while generating debug info for the decl.
3540 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3541 (dwarf2out_init): Initialize cached_dw_loc_list_table.
3542 (resolve_addr): Cache the result of resolving a chain of
3545 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
3547 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3548 conflict object hard regset nodes have intersecting hard reg sets.
3550 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3551 after regstat_init_n_sets_and_refs.
3553 * ira.c: Add more comments at the top.
3554 (setup_stack_reg_pressure_class, setup_pressure_classes):
3555 Add comments how we compute the register pressure classes.
3556 (setup_allocno_and_important_classes): Add more comments.
3557 (setup_class_translate_array, reorder_important_classes)
3558 (setup_reg_class_relations): Add comments.
3560 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
3563 * ira-color.c: Add 2011 to the Copyright line.
3564 (assign_hard_reg): Add more comments.
3565 (improve_allocation): Ditto.
3567 * ira-costs.c: Add 2011 to the Copyright line.
3568 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3570 (setup_regno_cost_classes_by_mode): Ditto.
3572 Initial patches from ira-improv branch:
3574 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3576 * ira-build.c (ira_create_object): Remove initialization of
3577 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
3578 (ira_create_allocno): Remove initialization of
3579 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3580 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3581 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3582 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3583 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3584 Initialize ALLOCNO_ADD_DATA.
3585 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3586 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3588 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
3589 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3591 * ira.c (ira_reallocate): Remove.
3592 (setup_pressure_classes): Call
3593 ira_init_register_move_cost_if_necessary. Use
3594 ira_register_move_cost instead of ira_get_register_move_cost.
3595 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3596 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3598 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3599 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3600 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3601 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3602 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3603 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3605 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3606 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3607 (struct allocno_color_data): New.
3608 (allocno_color_data_t): New typedef.
3609 (allocno_color_data): New definition.
3610 (ALLOCNO_COLOR_DATA): New macro.
3611 (struct object_color_data): New.
3612 (object_color_data_t): New typedef.
3613 (object_color_data): New definition.
3614 (OBJECT_COLOR_DATA): New macro.
3615 (update_copy_costs, calculate_allocno_spill_cost): Call
3616 ira_init_register_move_cost_if_necessary. Use
3617 ira_register_move_cost instead of ira_get_register_move_cost.
3618 (move_spill_restore, update_curr_costs): Ditto.
3619 (allocno_spill_priority): Make it inline.
3620 (color_pass): Allocate and free allocno_color_dat and object_color_data.
3621 (struct coalesce_data, coalesce_data_t): New.
3622 (allocno_coalesce_data): New definition.
3623 (ALLOCNO_COALESCE_DATA): New macro.
3624 (merge_allocnos, coalesced_allocno_conflict_p): Use
3625 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3626 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3627 (coalesce_allocnos): Ditto.
3628 (setup_coalesced_allocno_costs_and_nums): Ditto.
3629 (collect_spilled_coalesced_allocnos): Ditto.
3630 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3631 (setup_slot_coalesced_allocno_live_ranges): Ditto.
3632 (coalesce_spill_slots): Ditto.
3633 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
3634 free allocno_coalesce_data.
3636 * ira-conflicts.c: Fix formatting.
3637 (process_regs_for_copy): Call
3638 ira_init_register_move_cost_if_necessary. Use
3639 ira_register_move_cost instead of ira_get_register_move_cost.
3640 (build_object_conflicts): Optimize.
3642 * ira-costs.c (record_reg_classes): Optimize. Call
3643 ira_init_register_move_cost_if_necessary. Use
3644 ira_register_move_cost, ira_may_move_in_cost, and
3645 ira_may_move_out_cost instead of ira_get_register_move_cost and
3646 ira_get_may_move_cost.
3647 (record_address_regs): Ditto.
3648 (scan_one_insn): Optimize.
3649 (find_costs_and_classes): Optimize.
3650 (process_bb_node_for_hard_reg_moves): Call
3651 ira_init_register_move_cost_if_necessary. Use
3652 ira_register_move_cost instead of ira_get_register_move_cost.
3654 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3655 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3656 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3657 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3659 (ira_initiate_emit_data, ira_finish_emit_data)
3660 (create_new_allocno): New functions.
3661 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3662 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3663 Use ira_register_move_cost instead of ira_get_register_move_cost.
3665 * ira-int.h: Fix some comments.
3666 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3667 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3668 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3669 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
3671 (struct ira_allocno): Make mode and aclass a bitfield. Move other
3672 bitfield after mode. Make hard_regno a short int. Make
3673 hard_regno short. Remove first_coalesced_allocno and
3674 next_coalesced_allocno. Move mem_optimized_dest_p,
3675 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3676 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
3677 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3678 temp, colorable_p. Add new member add_data.
3679 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3680 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3681 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3682 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3683 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3684 (ALLOCNO_ADD_DATA): New macro.
3685 (ira_emit_data_t): New typedef.
3686 (struct ira_emit_data): New. Move mem_optimized_dest_p,
3687 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3688 from struct ira_allocno.
3689 (ALLOCNO_EMIT_DATA): New macro.
3690 (ira_allocno_emit_data, allocno_emit_reg): New.
3691 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3692 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3693 (OBJECT_ADD_DATA): New macro.
3694 (ira_reallocate): Remove.
3695 (ira_initiate_emit_data, ira_finish_emit_data): New.
3696 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3697 (ira_init_register_move_cost_if_necessary): New.
3698 (ira_object_conflict_iter_next): Merge into
3699 ira_object_conflict_iter_cond.
3700 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3702 * ira-live.c (process_single_reg_class_operands): Call
3703 ira_init_register_move_cost_if_necessary. Use
3704 ira_register_move_cost instead of ira_get_register_move_cost.
3706 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3708 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3710 * ira-costs.c: Fix formatting.
3711 (cost_classes, cost_classes_num): Remove.
3712 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3713 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3714 (cost_classes_del, cost_classes_htab): New.
3715 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3716 (initiate_regno_cost_classes, setup_cost_classes): New.
3717 (setup_regno_cost_classes_by_aclass): New.
3718 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3719 (record_reg_classes): Use regno_cost_classes instead of
3720 cost_classes. Move checking opposite operand up.
3721 (record_address_regs): Use regno_cost_classes
3722 instead of cost_classes.
3723 (scan_one_insn): Ditto. Use always general register.
3724 (print_allocno_costs): Use regno_cost_classes instead of
3726 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
3727 (find_costs_and_classes): Set up cost classes for each registers.
3728 Use also their mode for this. Use regno_cost_classes instead of
3730 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3732 (free_ira_costs, ira_init_costs): Don't use cost_classes.
3733 (ira_costs, ira_set_pseudo_classes): Call
3734 initiate_regno_cost_classes and finish_regno_cost_classes.
3736 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3738 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3740 * target.def (ira_cover_classes): Remove.
3742 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3744 * doc/tm.texi.in: Ditto.
3746 * ira-conflicts.c: Remove mentioning cover classes from the file.
3747 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
3748 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
3750 * targhooks.c (default_ira_cover_classes): Remove.
3752 * targhooks.h (default_ira_cover_classes): Ditto.
3754 * haifa-sched.c: Remove mentioning cover classes from the file.
3755 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3756 ira_pressure_classes and ira_pressure_classes_num instead of
3757 ira_reg_class_cover_size and ira_reg_class_cover. Use
3758 sched_regno_pressure_class instead of sched_regno_cover_class.
3759 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3760 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3762 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
3763 classes from the file.
3764 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3765 (struct object_hard_regs, struct object_hard_regs_node): New.
3766 (struct ira_object): New members profitable_hard_regs,
3767 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3768 (struct ira_allocno): Rename cover_class to aclass. Rename
3769 cover_class_cost and updated_cover_class_cost to class_cost and
3770 updated_class_cost. Remove splay_removed_p and
3771 left_conflict_size. Add new members colorable_p.
3772 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3773 (ALLOCNO_COLORABLE_P): New macro.
3774 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3775 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3776 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3777 (OBJECT_...): Rename parameter C to O.
3778 (OBJECT_PROFITABLE_HARD_REGS): New macro.
3779 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3780 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3781 (struct target_ira_int): New members x_ira_max_memory_move_cost,
3782 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3783 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3784 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3785 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
3786 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
3787 x_ira_reg_class_subunion.
3788 (ira_max_memory_move_cost, ira_max_register_move_cost)
3789 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3790 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3791 (ira_important_class_nums, ira_reg_class_superunion): New macros.
3792 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3793 (ira_reg_class_union): Rename to ira_reg_class_subunion.
3794 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3795 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3796 (ira_tune_allocno_costs_and_cover_classes): Rename to
3797 ira_tune_allocno_costs.
3798 (ira_debug_hard_regs_forest): New.
3799 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3800 (ira_object_conflict_iter_next): Fix comments.
3801 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3802 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3803 cover_class to aclass.
3804 (ira_allocate_and_accumulate_costs): Ditto.
3805 (ira_allocate_and_set_or_copy_costs): Ditto.
3807 * opts.c (decode_options): Remove ira_cover_class check.
3809 * ira-color.c: Remove mentioning cover classes from the file. Use
3810 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3811 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3812 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3813 (splay-tree.h): Remove include.
3814 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3815 before copy_freq_compare_func.
3816 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3817 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3819 (hard_regs_roots, hard_regs_node_vec): Ditto.
3820 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3821 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3822 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3823 (create_new_object_hard_regs_node): Ditto.
3824 (add_new_object_hard_regs_node_to_forest): Ditto.
3825 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3826 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3828 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3829 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3830 (remove_unused_object_hard_regs_nodes): Ditto.
3831 (enumerate_object_hard_regs_nodes): Ditto.
3832 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3833 (object_hard_regs_subnode_t): Ditto.
3834 (struct object_hard_regs_subnode): Ditto.
3835 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3836 (setup_object_hard_regs_subnode_index): Ditto.
3837 (get_object_hard_regs_subnodes_num): Ditto.
3838 (form_object_hard_regs_nodes_forest): Ditto.
3839 (finish_object_hard_regs_nodes_tree): Ditto.
3840 (finish_object_hard_regs_nodes_forest): Ditto.
3841 (allocnos_have_intersected_live_ranges_p): Rename to
3842 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3843 (pseudos_have_intersected_live_ranges_p): Rename to
3844 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3845 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3846 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3847 (update_copy_costs): Remove assert. Skip cost update if the hard
3848 reg does not belong the class.
3849 (assign_hard_reg): Process only profitable hard regs.
3850 (uncolorable_allocnos_num): Make it scalar.
3851 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3852 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3853 and ira_reg_class_max_nregs.
3854 (bucket_allocno_compare_func): Check frequency first.
3855 (sort_bucket): Add compare function as a parameter.
3856 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3857 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3858 (push_allocno_to_stack): Rewrite for checking new allocno
3860 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
3861 (push_only_colorable): Pass new parameter to sort_bucket.
3862 (push_allocno_to_spill): Remove.
3863 (allocno_spill_priority_compare): Make it inline and rewrite.
3864 (splay_tree_allocate, splay_tree_free): Remove.
3865 (allocno_spill_sort_compare): New function.
3866 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
3867 build and use splay tree. Choose first allocno in uncolorable
3868 allocno bucket to spill. Remove setting spill cost.
3869 (all_conflicting_hard_regs): Remove.
3870 (setup_allocno_available_regs_num): Check only profitable hard
3871 regs. Print info about hard regs nodes.
3872 (setup_allocno_left_conflicts_size): Remove.
3873 (put_allocno_into_bucket): Don't call
3874 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
3875 (improve_allocation): New.
3876 (color_allocnos): Call setup_profitable_hard_regs,
3877 form_object_hard_regs_nodes_forest, improve_allocation,
3878 finish_object_hard_regs_nodes_forest. Setup spill cost.
3879 (print_loop_title): Use pressure classes.
3880 (color_allocnso): Ditto.
3881 (do_coloring): Remove allocation and freeing splay_tree_node_pool
3882 and allocnos_for_spilling.
3883 (ira_sort_regnos_for_alter_reg): Don't setup members
3884 {first,next}_coalesced_allocno.
3885 (color): Remove allocating and freeing removed_splay_allocno_vec.
3886 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3887 prohibited_class_mode_regs.
3889 * ira-lives.c: Remove mentioning cover classes from the file. Fix
3891 (update_allocno_pressure_excess_length): Use pressure classes.
3892 (inc_register_pressure, dec_register_pressure): Check for pressure
3894 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3895 pressure class. Use ira_reg_class_nregs instead of
3896 ira_reg_class_max_nregs.
3897 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3898 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3899 (single_reg_class): Use ira_reg_class_nregs instead of
3900 ira_reg_class_max_nregs.
3901 (process_bb_node_lives): Use pressure classes.
3903 * ira-emit.c: Remove mentioning cover classes from the file. Use
3904 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
3905 (change_loop): Use pressure classes.
3906 (modify_move_list): Call ira_set_allocno_class instead of
3907 ira_set_allocno_cover_class.
3909 * ira-build.c: Remove mentioning cover classes from the file. Use
3910 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3911 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
3912 ALLOCNO_UPDATED_CLASS_COST instead of
3913 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3914 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3915 (ira_create_allocno): Remove initialization of
3916 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
3917 ALLOCNO_COLORABLE_P.
3918 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3919 Update conflict regs for the objects.
3920 (create_cap_allocno): Remove assert. Don't propagate
3921 ALLOCNO_AVAILABLE_REGS_NUM.
3922 (ira_free_allocno_costs): New function.
3923 (finish_allocno): Change a part of code into call of
3924 ira_free_allocno_costs.
3925 (low_pressure_loop_node_p): Use pressure classes.
3926 (object_range_compare_func): Don't compare classes.
3927 (setup_min_max_conflict_allocno_ids): Ditto.
3929 * loop-invariant.c: Remove mentioning cover classes from the file.
3930 Use ira_pressure_classes and ira_pressure_classes_num instead of
3931 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
3932 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3933 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3934 Use reg_allocno_class instead of reg_cover_class.
3935 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3936 STACK_REG_COVER_CLASS.
3937 (get_regno_cover_class): Rename to get_regno_pressure_class.
3938 (move_loop_invariants): Initialize and finalize regstat.
3940 * ira.c: Remove mentioning cover classes from the file. Add
3941 comments about coloring without cover classes. Use ALLOCNO_CLASS
3942 instead of ALLOCNO_COVER_CLASS. Fix formatting.
3943 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3944 setup_class_subset_and_memory_move_costs.
3945 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3946 (setup_cover_and_important_classes): Rename to
3947 setup_allocno_and_important_classes.
3948 (setup_class_translate_array): New.
3949 (setup_class_translate): Call it for allocno and pressure classes.
3950 (cover_class_order): Rename to allocno_class_order.
3951 (comp_reg_classes_func): Use ira_allocno_class_translate instead
3952 of ira_class_translate.
3953 (reorder_important_classes): Set up ira_important_class_nums.
3954 (setup_reg_class_relations): Set up ira_reg_class_superunion.
3955 (print_class_cover): Rename to print_classes. Add parameter.
3956 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3957 Print pressure classes too.
3958 (find_reg_class_closure): Rename to find_reg_classes. Don't call
3959 setup_reg_subclasses.
3960 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3961 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3962 (setup_prohibited_class_mode_regs): Use
3963 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3964 (clarify_prohibited_class_mode_regs): New function.
3965 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3966 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3967 (ira_init_once): Initialize them.
3968 (free_register_move_costs): Process them.
3969 (ira_init): Move calls of find_reg_classes and
3970 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3971 Call clarify_prohibited_class_mode_regs.
3972 (ira_no_alloc_reg): Remove.
3973 (too_high_register_pressure_p): Use pressure classes.
3975 * sched-deps.c: Remove mentioning cover classes from the file.
3976 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3977 ira_pressure_classes and ira_pressure_classes_num instead of
3978 ira_reg_class_cover_size and ira_reg_class_cover.
3979 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3980 sched_regno_pressure_class instead of sched_regno_cover_class.
3981 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
3982 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3984 * ira.h: Add 2010 to Copyright.
3985 (ira_no_alloc_reg): Remove external.
3986 (struct target_ira): Rename x_ira_hard_regno_cover_class,
3987 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3988 x_ira_class_translate to x_ira_hard_regno_allocno_class,
3989 x_ira_allocno_classes_num, x_ira_allocno_classes, and
3990 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
3991 x_ira_pressure_classes, x_ira_pressure_class_translate, and
3992 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
3993 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
3994 x_ira_no_alloc_regs.
3995 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3996 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3997 ira_allocno_classes_num and ira_allocno_classes.
3998 (ira_class_translate): Rename to ira_allocno_class_translate.
3999 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4000 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4001 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4002 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4003 (ira_no_alloc_regs): New.
4005 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4006 classes from the file. Use ALLOCNO_CLASS instead of
4007 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4008 ALLOCNO_COVER_CLASS_COST.
4009 (regno_cover_class): Rename to regno_aclass.
4010 (record_reg_classes): Use ira_reg_class_subunion instead of
4011 ira_reg_class_union.
4012 (record_address_regs): Check overflow.
4013 (scan_one_insn): Ditto.
4014 (print_allocno_costs): Print total mem cost fore regional allocation.
4015 (print_pseudo_costs): Use REG_N_REFS.
4016 (find_costs_and_classes): Use classes intersected with them on the
4017 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4018 ira_reg_class_union. Use ira_allocno_class_translate and
4019 regno_aclass instead of ira_class_translate and regno_cover_class.
4020 Modify code for finding regno_aclass. Setup preferred classes for
4022 (setup_allocno_cover_class_and_costs): Rename to
4023 setup_allocno_class_and_costs. Use regno_aclass instead of
4024 regno_cover_class. Use ira_set_allocno_class instead of
4025 ira_set_allocno_cover_class.
4026 (init_costs, finish_costs): Use regno_aclass instead of
4028 (ira_costs): Use setup_allocno_class_and_costs instead of
4029 setup_allocno_cover_class_and_costs.
4030 (ira_tune_allocno_costs_and_cover_classes): Rename to
4031 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4032 by processing objects. Use ira_reg_class_max_nregs instead of
4033 ira_reg_class_nregs.
4035 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4037 * sched-int.h: Remove mentioning cover classes from the file.
4038 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4040 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4041 classes from the file.
4042 (struct reg_pref): Rename coverclass into allocnoclass.
4043 (reg_cover_class): Rename to reg_allocno_class.
4045 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4047 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4049 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4051 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4053 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4055 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4057 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4059 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4061 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4063 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4065 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4066 (i386_ira_cover_classes): Ditto.
4068 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4070 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4072 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4074 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4076 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4078 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4080 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4081 (mips_ira_cover_classes): Ditto.
4083 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4085 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4087 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4089 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4091 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4093 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4094 (IRA_COVER_CLASSES_VSX): Ditto.
4096 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4097 (rs6000_ira_cover_classes): Ditto.
4099 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4101 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4103 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4105 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4107 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4109 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4111 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4113 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4115 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4117 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4119 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4122 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4123 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4124 dw_fde_unlikely_section_end_label, cold_in_std_section,
4125 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4126 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4128 (output_fde): Use dw_fde_second_{begin,end} if second is
4129 true, otherwise dw_fde_{begin,end}.
4130 (output_call_frame_info): Test dw_fde_second_begin != NULL
4131 instead of dw_fde_switched_sections.
4132 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4133 fields, initialize new fields. Initialize in_std_section
4134 unconditionally from the first partition.
4135 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4136 dw_fde_second_begin is non-NULL.
4137 (dwarf2out_switch_text_section): Stop initializing removed
4138 dw_fde_struct fields, initialize new fields, initialize
4139 also dw_fde_end here. Set dw_fde_switch_cfi even when
4140 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4141 (struct var_loc_list_def): Add last_before_switch field.
4142 (arange_table, arange_table_allocated, arange_table_in_use,
4143 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4144 (size_of_aranges): Count !in_std_section and !second_in_std_section
4145 hunks in fdes, instead of looking at arange_table_in_use.
4146 (output_aranges): Add aranges_length argument, don't call
4147 size_of_aranges here. Instead of using aranges_table*
4148 emit ranges for fdes when !in_std_section resp.
4149 !second_in_std_section.
4150 (dw_loc_list): Break ranges crossing section switch.
4151 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
4152 use dw_fde_second_end instead of dw_fde_end as end of last range.
4153 (gen_subprogram_die): Don't call add_arange. Use
4154 dw_fde_{begin,end} for first partition and if switched
4155 section dw_fde_second_{begin,end} for the second.
4156 (var_location_switch_text_section_1,
4157 var_location_switch_text_section): New functions.
4158 (dwarf2out_begin_function): Initialize cold_text_section even
4159 when function_section () isn't text_section.
4160 (prune_unused_types): Don't walk arange_table.
4161 (dwarf2out_finish): Don't needlessly test
4162 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4163 If info_section_emitted, call size_of_aranges and if it indicates
4164 non-empty .debug_aranges, call output_aranges with the computed
4165 size. Stop using removed dw_fde_struct fields, use
4166 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4170 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4171 create ENTRY_VALUE if incoming or address of incoming's MEM
4173 * dwarf2out.c (mem_loc_descriptor): Don't emit
4174 DW_OP_GNU_entry_value of DW_OP_fbreg.
4175 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4176 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4177 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4178 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4180 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4181 is a REG_P or MEM_P with REG_P address, compute hash directly
4182 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4183 (preserve_only_constants): Don't clear VALUES forwaring
4184 ENTRY_VALUE to some other VALUE.
4186 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4188 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4191 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4193 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4194 block before expanding the statement.
4195 (expand_gimple_stmt_1): Likewise. Set them here...
4196 (expand_gimple_stmt): ...and not here. Tidy.
4197 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4200 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4202 * Makefile.in: New rule for cprop.o.
4203 * gcse.c: Move constant/copy propagation to cprop.c.
4204 (compute_local_properties): Only handle expression tables.
4205 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4206 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4207 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4208 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4209 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4210 compute_cprop_data, find_used_regs, try_replace_reg,
4211 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4212 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4213 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4214 find_bypass_set, reg_killed_on_edge, bypass_block,
4215 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4216 execute_rtl_cprop, pass_rtl_cprop): Move to...
4217 * cprop.c: ...here. New file, constant/copy propagation for RTL
4218 moved from gcse.c to here with minor cleanups in duplicated code.
4220 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4222 * config/i386/i386.c (flag_opts): Fix a typo in
4223 -mavx256-split-unaligned-store.
4225 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4227 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4228 LIBCALL_VALUE): Remove macros.
4229 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4230 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4231 (h8300_function_value, h8300_libcall_value,
4232 h8300_function_value_regno_p): New functions.
4234 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4236 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4238 2011-03-28 Jeff Law <law@redhat.com>
4240 * tree-ssa-threadupdate.c (redirect_edges): Call
4241 create_edge_and_update_destination_phis as needed.
4242 (create_edge_and_update_destination_phis): Accept new BB argument.
4243 All callers updated.
4244 (thread_block): Do not update the profile when threading around
4245 intermediate blocks.
4246 (thread_single_edge): Likewise.
4247 (determine_bb_domination_status): If BB is not a successor of the
4248 loop header, return NONDOMINATING.
4249 (register_jump_thread): Note when we register a jump thread around
4250 an intermediate block.
4251 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4252 (thread_across_edge): Use it.
4254 2011-03-28 Tristan Gingold <gingold@adacore.com>
4256 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4257 when for_return is 2.
4259 2011-03-28 Jeff Law <law@redhat.com>
4261 * var-tracking.c (canonicalize_values_mark): Delete unused
4263 (canonicalize_values_star, set_variable_part): Likewise.
4264 (clobber_variable_part, delete_variable_part): Likewise.
4266 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4268 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4270 2011-03-28 Martin Jambor <mjambor@suse.cz>
4272 * tree-inline.c (expand_call_inline): Do not check that destination
4274 (optimize_inline_calls): Assert that destination node is analyzed.
4275 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4276 not call tree_lowering_passes.
4277 * cgraph.h (cgraph_analyze_function): Declare.
4278 * cgraphunit.c (cgraph_analyze_function): Make public.
4280 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4282 * config/sparc/sparc-opts.h: New.
4283 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4284 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4285 (sparc_option_override): Store processor_type enumeration rather
4286 than string in cpu_default. Remove name and enumeration from
4287 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4288 without using sparc_select. Use target_flags_explicit instead of
4290 * config/sparc/sparc.h (enum processor_type): Move to
4292 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4293 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4294 HeaderInclude entry.
4295 (mcpu=, mtune=): Use Var and Enum.
4296 (sparc_processor_type): New Enum and EnumValue entries.
4298 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4299 Iain Sandoe <iains@gcc.gnu.org>
4302 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4304 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4306 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4307 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4308 Insert new statements at it in lieu of STMT.
4309 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4310 * tree-vect-stmts.c (vectorizable_store): Likewise.
4311 (vectorizable_load): Likewise.
4313 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4315 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4320 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4322 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4323 unaligned 256bit load/store.
4324 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4325 (*avx_movdqu<avxmodesuffix>): Likewise.
4327 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4330 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4331 * config/pa/pa.md (iordi3): Use new predicate in expander.
4334 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4336 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4337 FUNCTION_VALUE_REGNO_P): Remove macros.
4338 * config/mips/mips-protos.h (mips_function_value): Remove.
4339 * config/mips/mips.c (mips_function_value): Rename to...
4340 (mips_function_value_1): ... this. Make static. Handle receiving
4341 the function type in 'fn_decl_or_type' argument.
4342 (mips_function_value, mips_libcall_value,
4343 mips_function_value_regno_p): New function.
4344 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4345 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4347 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4349 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4350 and -mavx256-split-unaligned-store.
4351 (ix86_option_override_internal): Split 32-byte AVX unaligned
4352 load/store by default.
4353 (ix86_avx256_split_vector_move_misalign): New.
4354 (ix86_expand_vector_move_misalign): Use it.
4356 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4357 -mavx256-split-unaligned-store.
4359 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4360 256bit load/store. Generate unaligned store on misaligned memory
4362 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4364 (*avx_movdqu<avxmodesuffix>): Likewise.
4366 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4367 -mavx256-split-unaligned-store.
4369 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4372 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4375 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4377 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4378 opno arguments with an expand_operand. Use create_input_operand.
4379 (mips_prepare_builtin_target): Delete.
4380 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4382 (mips_expand_builtin_direct): Use create_output_operand and
4383 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4384 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4385 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4387 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4389 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4391 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4393 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4395 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4396 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4397 basic blocks and call commit_edge_insertions directly.
4398 (fixup_abnormal_edges): Move from here to...
4399 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4400 on the edges and return whether some have actually been inserted.
4401 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4404 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4406 PR rtl-optimization/48144
4407 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4408 (merge_expr_data): ... here.
4409 (av_set_intersect): Rename to av_set_code_motion_filter.
4410 Update all callers. Call merge_history_vect when an expression
4411 is found in both sets.
4412 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4414 2011-03-26 Alan Modra <amodra@gmail.com>
4416 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4417 cmodel medium addresses.
4418 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4419 64-bit gpr loads and stores.
4420 (rs6000_secondary_reload_ppc64): New function.
4421 * config/rs6000/rs6000-protos.h: Declare it.
4422 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4424 2011-03-26 Alan Modra <amodra@gmail.com>
4427 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4428 GNU Go in traceback table.
4430 2011-03-25 Richard Henderson <rth@redhat.com>
4432 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4433 if there are exactly 6 operands.
4434 (set_storage_via_setmem): Similarly.
4436 2011-03-25 Kai Tietz <ktietz@redhat.com>
4438 * collect2.c (write_c_file_stat): Handle backslash
4439 as right-hand directory separator.
4440 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4441 checking just for slash.
4442 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4443 instead of checking for trailing slash.
4444 * gcc.c (record_temp_file): Use filename_cmp instead
4446 (do_spec_1): Likewise.
4447 (replace_outfile_spec_function): Likewise.
4448 (is_directory): Use filename_ncmp instead of strncmp.
4449 (print_multilib_info): Likewise.
4450 * gcov.c (find_source): Use filename_cmp instead
4452 (make_gcov_file_name): Fix order of slash/backslash
4454 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4455 (add_standard_paths): Likewise.
4456 * mips-tfile.c (saber_stop): Handle backslash.
4457 * prefix.c (update_path): Use filename_ncmp instead of
4459 * profile.c (output_location): Use filename_cmp instead
4461 * read-md.c (handle_toplevel_file): Handle backslash.
4462 * tlink.c (frob_extension): Likewise.
4463 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4465 * tree-dump.c (dequeue_and_dump): Handle backslash.
4466 * tree.c (get_file_function_name): Likewise.
4467 * gengtype.c (read_input_list): Likewise.
4468 (get_file_realbasename): Likewise.
4469 (get_output_file_with_visibility): Use filename_cmp
4472 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4474 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4477 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4479 * fold-const.c (expr_location_or): New function.
4480 (fold_truth_not_expr): Call it.
4482 2011-03-25 Jeff Law <law@redhat.com>
4484 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4486 * c-family/c-common.c (def_fn_type): Likewise.
4487 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4488 * emit-rtl.c (gen_rtvec): Likewise.
4489 * lto/lto-lang.c (def_fn_type): Likewise.
4491 2011-03-25 Richard Guenther <rguenther@suse.de>
4493 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4494 also generate copies.
4495 (fini_copy_prop): Handle constant values properly.
4497 2011-03-25 Jakub Jelinek <jakub@redhat.com>
4499 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4500 mode size instead of bitsize with DWARF2_ADDR_SIZE.
4501 (hash_loc_operands, compare_loc_operands): Handle
4502 DW_OP_GNU_entry_value.
4504 2011-03-25 Kai Tietz <ktietz@redhat.com>
4506 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4507 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4508 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4509 comment and use macro TARGET_64BIT_MS_ABI instead.
4510 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4511 and change default behavior for 32-bit MS_ABI.
4512 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4513 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4515 (ix86_cfun_abi): Likewise.
4516 (ix86_maybe_switch_abi): Adjust comment.
4517 (init_cumulative_args): Check for bit-ness in MS_ABI case.
4518 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4519 instead of checking for SYSV_ABI.
4520 (ix86_nsaved_sseregs): Likewise.
4521 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4523 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4524 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4525 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4526 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4527 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4529 2011-03-25 Richard Guenther <rguenther@suse.de>
4531 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4532 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4533 (verify_gimple): Remove.
4534 * tree-cfg.c (verify_gimple_call): Merge verification
4536 (verify_gimple_phi): Merge verification from verify_stmts.
4537 (verify_gimple_label): New function.
4538 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4539 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4540 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4541 (verify_stmts): Rename to verify_gimple_in_cfg.
4542 (verify_gimple_in_cfg): New function.
4543 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4544 * tree-ssa.c (verify_ssa): Likewise.
4545 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4547 2011-03-25 Richard Guenther <rguenther@suse.de>
4549 * passes.c (init_optimization_passes): Add FRE pass after
4552 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
4553 Andrew Stubbs <ams@codesourcery.com>
4555 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4557 (arm_movdi_vfp_cortexa8): New pattern.
4558 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4559 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4560 instructions when tuning for Cortex-A8. Set attribute "arch".
4561 * config/arm/arm.md: Move include arm-tune.md up a bit.
4562 (define_attr "arch"): Add "onlya8" and "nota8" values.
4563 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4565 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4569 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4571 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4572 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4573 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4574 * passes.c (init_optimization_passes): Move
4575 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4577 2011-03-25 Kai Tietz <ktietz@redhat.com>
4579 * c-typeck.c (comptypes_internal): Replace target
4580 hook call of comp_type_attributes by version in tree.c file.
4581 * gimple.c (gimple_types_compatible_p_1): Likewise.
4582 * tree-ssa.c (useless_type_conversion_p): Likewise.
4583 * tree.c (build_type_attribute_qual_variant): Likewise.
4584 (attribute_value_equal): New static helper function.
4585 (comp_type_attributes): New function.
4586 (merge_attributes): Use attribute_value_equal for comparison.
4587 (attribute_list_contained): Likewise.
4588 * tree.h (comp_type_attributes): New prototype.
4590 2011-03-25 Richard Guenther <rguenther@suse.de>
4592 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4593 of complex types at -O0.
4594 (verify_gimple_assign_binary): Likewise.
4595 (verify_gimple_assign_ternary): Likewise.
4597 2011-03-24 Mark Wielaard <mjw@redhat.com>
4599 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4600 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4602 2011-03-24 Mark Wielaard <mjw@redhat.com>
4605 * dwarf2out.c (output_abbrev_section): Only write table when
4606 abbrev_die_table_in_use > 1.
4608 2011-02-24 Richard Henderson <rth@redhat.com>
4610 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4611 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4612 (alpha_expand_unaligned_load_words): Use extql.
4613 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4614 (emit_insxl): Handle all modes for consistency.
4616 2011-02-24 Richard Henderson <rth@redhat.com>
4618 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4619 (alpha_expand_unaligned_load): Likewise.
4620 (alpha_expand_unaligned_store): Likewise.
4621 (alpha_expand_unaligned_load_words): Likewise.
4622 (alpha_expand_unaligned_store_words): Likewise.
4623 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4624 (alpha_split_lock_test_and_set_12): Likewise.
4625 (print_operand, alpha_fold_builtin_extxx): Likewise.
4626 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4627 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4628 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4629 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4630 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4631 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4632 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4633 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4634 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4635 (extwl, extll, extql): Similarly.
4636 (inswh, inslh, insqh): Similarly.
4637 (mskbl, mskwl, mskll, mskql): Similarly.
4638 (mskwh, msklh, mskqh): Similarly.
4640 2011-02-24 Richard Henderson <rth@redhat.com>
4642 * config/alpha/alpha.md (attribute isa): Add er, ner.
4643 (attribute enabled): Handle them.
4644 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4646 2011-02-24 Richard Henderson <rth@redhat.com>
4648 * config/alpha/alpha.md (attribute isa): Add vms.
4649 (attribute enabled): Handle it.
4650 (*movsf): Merge *movsf_{nofix,fix,nofp}.
4651 (*movdf): Merge *movdf_{nofix,fix,nofp}.
4652 (*movtf): Rename from *movtf_internal for consistency.
4653 (*movsi): Merge with *movsi_nt_vms.
4654 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4655 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4656 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4657 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4659 2011-02-24 Richard Henderson <rth@redhat.com>
4661 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4662 (extendqisi2, extendhisi2): Likewise.
4663 (extendqidi2): Simplify BWX/non-BWX expansions.
4664 (extendhidi2): Similarly.
4666 2011-02-24 Richard Henderson <rth@redhat.com>
4668 * config/alpha/alpha.md (attribute isa): New.
4669 (attribute enabled): New.
4670 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4671 (zero_extendqisi2, zero_extendqidi2): Similarly.
4672 (zero_extendhisi2, zero_extendhidi2): Similarly.
4673 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4675 2011-02-24 Richard Henderson <rth@redhat.com>
4677 * config/alpha/predicates.md (input_operand): Revert last change;
4678 update comment to mention 32-bit VMS rather than Windows.
4680 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4682 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4683 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4684 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4685 * passes.c (init_optimization_passes): Move
4686 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4688 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4690 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4692 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4694 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4697 2011-03-24 Jakub Jelinek <jakub@redhat.com>
4700 * simplify-rtx.c (simplify_const_unary_operation): Call
4701 real_convert when changing mode class with FLOAT_EXTEND.
4703 2011-03-24 Nick Clifton <nickc@redhat.com>
4705 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4706 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4707 * config/rx/rx.c (rx_option_override): Set align_jumps,
4708 align_loops and align_labels if not set by the user.
4709 (rx_align_for_label): New function.
4710 (rx_max_skip_for_label): New function.
4711 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4712 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4713 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4714 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4715 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4717 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4719 PR rtl-optimization/48263
4720 * optabs.c (expand_binop_directly): Reinstate convert_modes code
4721 and original commutative_p handling. Use maybe_gen_insn.
4723 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4725 * reload.c (find_reloads_subreg_address): Add address_reloaded
4726 parameter and return true there if the full address has been
4728 (find_reloads_toplev): Pass address_reloaded flag.
4729 (find_reloads_address_1): Don't use address_reloaded parameter.
4731 2011-03-24 Jeff Law <law@redhat.com>
4733 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4734 unused variable "ann".
4735 (remove_unused_locals): Likewise.
4737 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4740 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4743 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4745 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4746 for invalid symbolic addresses.
4747 (s390_secondary_reload): Don't use s390_check_symref_alignment for
4750 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4752 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4753 the argument in calls to fold_truth_not_expr.
4755 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4757 * tree.c (record_node_allocation_statistics): New function.
4758 (make_node_stat, copy_node_stat, build_string): Call it.
4759 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4760 (build1_stat, build_omp_clause): Likewise.
4762 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4764 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4767 2011-03-24 Richard Guenther <rguenther@suse.de>
4769 PR tree-optimization/48271
4770 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4771 blocks that still exist.
4773 2011-03-24 Richard Guenther <rguenther@suse.de>
4775 PR tree-optimization/48270
4776 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4777 not free datarefs before ddrs.
4779 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4781 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4782 from the address built for a reference with variable offset.
4784 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4787 * config/i386/i386.md (*movdf_internal_rex64): Do not split
4788 alternatives that can be handled with movq or movabsq insn.
4789 (*movdf_internal): Disable for !TARGET_64BIT.
4790 (*movdf_internal_nointeger): Ditto.
4791 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4793 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4795 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4796 (FUNCTION_ARG_ADVANCE): Likewise.
4797 * tm.texi.in: Change references to them to hook references.
4798 * tm.texi: Regenerate.
4799 * targhooks.c (default_function_arg): Eliminate check for target macro.
4800 (default_function_incoming_arg): Likewise.
4801 (default_function_arg_advance): Likewise.
4802 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4803 (function_arg_advance): Likewise.
4804 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4806 2011-03-24 Richard Guenther <rguenther@suse.de>
4809 * tree-object-size.c (addr_object_size): Do not double-account
4810 for MEM_REF offsets.
4812 2011-03-24 Diego Novillo <dnovillo@google.com>
4814 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4815 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4816 (lto_input_data_block): Move from lto-opts.c. Make extern.
4818 (lto_input_string): Rename from input_string. Make extern.
4820 * lto-streamer-out.c (lto_output_string_with_length): Rename from
4821 output_string_with_length.
4822 Output 0 to indicate a non-NULL string. Update all callers to
4824 (lto_output_string): Rename from output_string. Make extern.
4826 (lto_output_decl_state_streams): Make extern.
4827 (lto_output_decl_state_refs): Make extern.
4828 * lto-streamer.h (lto_input_string): Declare.
4829 (lto_input_data_block): Declare.
4830 (lto_output_string): Declare.
4831 (lto_output_string_with_length): Declare.
4832 (lto_output_decl_state_streams): Declare.
4833 (lto_output_decl_state_refs): Declare.
4835 2011-03-24 Richard Guenther <rguenther@suse.de>
4837 PR tree-optimization/46562
4838 * tree.c (build_invariant_address): New function.
4839 * tree.h (build_invariant_address): Declare.
4840 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4841 a renamed function moved ...
4842 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4843 Take valueization callback parameter.
4844 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4845 * gimple-fold.h: New file.
4846 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4847 (ccp_fold, fold_const_aggregate_ref,
4848 fold_ctor_reference, fold_nonarray_ctor_reference,
4849 fold_array_ctor_reference, fold_string_cst_ctor_reference,
4850 get_base_constructor): Move ...
4851 * gimple-fold.c: ... here.
4852 (gimple_fold_stmt_to_constant_1): New function
4853 split out from ccp_fold. Take a valueization callback parameter.
4854 Valueize all operands.
4855 (gimple_fold_stmt_to_constant): New wrapper function.
4856 (fold_const_aggregate_ref_1): New function split out from
4857 fold_const_aggregate_ref. Take a valueization callback parameter.
4858 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4859 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4860 invariant POINTER_PLUS_EXPRs to invariant form.
4861 (vn_valueize): New function.
4862 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4863 * tree-vrp.c (vrp_valueize): New function.
4864 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4865 to fold statements to constants.
4866 * tree-ssa-pre.c (eliminate): Properly guard propagation of
4867 function declarations.
4868 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4869 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4871 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4873 * config/h8300/predicates.md (jump_address_operand): Fix register
4876 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
4878 * doc/invoke.texi (max-stores-to-sink): Document.
4879 * params.h (MAX_STORES_TO_SINK): Define.
4880 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4881 if either vectorization or if-conversion is disabled.
4882 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4883 tree-vect-data-refs.c vect_equal_offsets.
4884 (dr_equal_offsets_p): New function.
4885 (find_data_references_in_bb): Remove static.
4886 * tree-data-ref.h (find_data_references_in_bb): Declare.
4887 (dr_equal_offsets_p): Likewise.
4888 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4889 (vect_drs_dependent_in_basic_block): Update calls to
4891 (vect_check_interleaving): Likewise.
4892 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4893 (cond_if_else_store_replacement): Rename to...
4894 (cond_if_else_store_replacement_1): ... this. Change arguments and
4896 (cond_if_else_store_replacement): New function.
4897 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4898 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4900 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
4903 * config/arm/arm.md (casesi): Use the gen_int_mode() function
4904 to subtract lower bound instead of GEN_INT().
4906 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
4911 * doc/extend.texi (Alignment): Move section to match order in TOC.
4912 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4913 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4915 2011-03-23 Jeff Law <law@redhat.com>
4917 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4918 before removing the edge.
4920 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4921 it may have been freed by redirect_branch_edge or
4922 redirect_edge_succ_nodup.
4924 2011-03-23 Richard Guenther <rguenther@suse.de>
4926 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4927 (check_va_list_escapes): Likewise.
4928 (check_all_va_list_escapes): Likewise.
4930 2011-03-23 Richard Guenther <rguenther@suse.de>
4932 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4933 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4934 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4935 (alias.o): Likewise.
4936 (ipa-type-escape.o): Remove.
4937 (ipa-struct-reorg.o): Likewise.
4938 (GTFILES): Remove ipa-struct-reorg.c.
4939 * alias.c: Do not include ipa-type-escape.h.
4940 * tree-ssa-alias.c: Likewise.
4941 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4942 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4943 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4944 and ipa-type-escape passes.
4945 * tree-pass.h (pass_ipa_type_escape): Remove.
4946 (pass_ipa_struct_reorg): Likewise.
4947 * ipa-struct-reorg.h: Remove.
4948 * ipa-struct-reorg.c: Likewise.
4949 * ipa-type-escape.h: Likewise.
4950 * ipa-type-escape.c: Likewise.
4951 * doc/invoke.texi (-fipa-struct-reorg): Remove.
4952 (--param struct-reorg-cold-struct-ratio): Likewise.
4953 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4954 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4955 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4957 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4959 * config/s390/2084.md: Enable all insn reservations also for z9_ec
4960 cpu attribute value.
4961 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4962 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4963 * config/s390/s390.c (processor_flags_table): New constant array.
4964 (s390_handle_arch_option): Remove.
4965 (s390_handle_option): Remove s390_handle_arch_option invocations
4966 and OPT_mwarn_framesize_ handling.
4967 (s390_option_override): Remove s390_handle_arch_option invocation.
4968 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4970 * config/s390/s390.md (cpu attribute): Add z9_ec value.
4971 * config/s390/s390.opt (s390_tune, s390_arch)
4972 (march=): Replace s390_arch_option enum and values with
4973 processor_type. Set variable name to s390_arch. Set
4974 initialization value.
4975 (mtune=): Replace s390_arch_option with processor_type. Set
4976 variable name to s390_tune. Set initialization value.
4978 2011-03-23 Julian Brown <julian@codesourcery.com>
4980 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4981 accesses which are not naturally aligned.
4983 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4986 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4988 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4990 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4991 parameter from "int" to "enum insn_code".
4992 (expand_operand_type): New enum.
4993 (expand_operand): New structure.
4994 (create_expand_operand): New function.
4995 (create_fixed_operand, create_output_operand): Likewise
4996 (create_input_operand, create_convert_operand_to): Likewise.
4997 (create_convert_operand_from, create_address_operand): Likewise.
4998 (create_integer_operand): Likewise.
4999 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5000 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5001 (expand_insn, expand_jump_insn): Likewise.
5002 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5003 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5004 (expand_movstr, expand_builtin___clear_cache): Likewise.
5005 (expand_builtin_lock_release): Likewise.
5006 * explow.c (allocate_dynamic_stack_space): Likewise.
5007 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5008 and use the default handling in that case.
5009 * expmed.c (check_predicate_volatile_ok): Delete.
5010 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5011 (emit_cstore): Likewise.
5012 * expr.c (emit_block_move_via_movmem): Likewise.
5013 (set_storage_via_setmem, expand_assignment): Likewise.
5014 (emit_storent_insn, try_casesi): Likewise.
5015 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5016 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5017 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5018 (expand_twoval_unop, expand_twoval_binop): Likewise.
5019 (expand_unop_direct, emit_indirect_jump): Likewise.
5020 (emit_conditional_move, vector_compare_rtx): Likewise.
5021 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5022 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5023 (expand_sync_lock_test_and_set): Likewise.
5024 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5025 (emit_unop_insn): Likewise.
5026 (expand_copysign_absneg): Change icode to an insn_code.
5027 (create_convert_operand_from_type): New function.
5028 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5029 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5030 (expand_insn, expand_jump_insn): Likewise.
5031 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5032 than const_int_operand for operand 2.
5034 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5036 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5039 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5041 * emit-rtl.c (emit_pattern_before_noloc): New function.
5042 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5043 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5044 (emit_pattern_after_noloc): New function.
5045 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5046 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5048 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5050 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5051 (__ffsDI2): Likewise.
5053 2011-03-22 Richard Henderson <rth@redhat.com>
5055 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5056 of !TARGET_ABI_OPEN_VMS.
5057 (alpha_trampoline_init, alpha_start_function): Likewise.
5058 (alpha_expand_epilogue, alpha_file_start): Likewise.
5059 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5060 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5061 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5062 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5063 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5065 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5067 * config/s390/s390-opts.h: New.
5068 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5069 s390_arch_flags, s390_warn_framesize, s390_stack_size,
5070 s390_stack_guard): Remove.
5071 (s390_handle_arch_option): Return void. Take enum
5072 s390_arch_option value instead of string and searching array.
5073 (s390_handle_option): Don't assert that global structures are in
5074 use. Access variables via opts pointer. Use error_at. Don't use
5075 sscanf for -mstack-guard= or -mstack-size=. Update call to
5076 s390_handle_arch_option.
5077 (s390_option_override): Update call to s390_handle_arch_option.
5078 (s390_emit_prologue): Use %d format for s390_stack_size in
5079 diagnostic. Use %wd for HOST_WIDE_INT.
5080 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5081 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5082 * config/s390/s390.opt (config/s390/s390-opts.h): New
5083 HeaderInclude entry.
5084 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5085 s390_arch_flags, s390_warn_framesize): New Variable entries.
5086 (s390_arch_option): New Enum and EnumValue entries.
5087 (march=): Use Enum instead of Var.
5088 (mstack-guard=, mstack-size=): Use UInteger and Var.
5091 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5093 * config/score/score.c (score_handle_option): Don't assert that
5094 global structures are in use. Access target_flags via opts
5095 pointer. Use value of -march= option to determine target_flags
5097 * config/score/score.opt (march=): Use Enum.
5098 (score_arch): New Enum and EnumValue entries.
5100 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5102 * config/mep/mep.c (option_mtiny_specified): Remove.
5103 (mep_option_override): Move register handling for -mivc2 from
5104 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
5105 instead of option_mtiny_specified.
5106 (mep_handle_option): Access target_flags via opts pointer. Don't
5107 assert that global structures are in use. Defer part of -mivc2
5108 handling and move it to mep_option_override.
5109 * config/mep/mep.opt (IVC2): New Mask entry.
5110 (mivc2): Use Var and Defer instead of Mask.
5112 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5114 * config/v850/v850-opts.h: New.
5115 * config/v850/v850.c (small_memory): Replace with
5116 small_memory_physical_max array. Make that array static const.
5117 (v850_handle_memory_option): Take integer value of argument. Take
5118 gcc_options pointer, option text and location. Return void.
5119 Update for changes to small memory structures.
5120 (v850_handle_option): Access target_flags via opts pointer. Don't
5121 assert that global structures are in use. Update calls to
5122 v850_handle_memory_option.
5123 (v850_encode_data_area): Update references to small memory settings.
5124 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5125 (enum small_memory_type): Move to v850-opts.h.
5126 * config/v850/v850.opt (config/v850/v850-opts.h): New
5127 HeaderInclude entry.
5128 (small_memory_max): New Variable entry.
5129 (msda): Replace by pair of options msda= and msda-. Use UInteger.
5130 (mtda, mzda): Likewise.
5132 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5134 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5135 pointer. Don't assert that global structures are in use.
5137 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5139 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5140 via opts pointer. Don't assert that global structures are in use.
5142 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5144 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5145 (munix=93): Use Var.
5146 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5147 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5148 * config/pa/pa-opts.h: New.
5149 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5150 (pa_handle_option): Don't assert that global structures are in
5151 use. Access target_flags via opts pointer. Don't handle
5152 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5154 (pa_option_override): Handle deferred OPT_mfixed_range_.
5156 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5158 * config/mn10300/mn10300-opts.h: New.
5159 * config/mn10300/mn10300.c (mn10300_processor,
5160 mn10300_tune_string): Remove.
5161 (mn10300_handle_option): Don't assert that global structures are
5162 in use. Access mn10300_processor via opts pointer. Don't handle
5164 * config/mn10300/mn10300.h (enum processor_type): Move to
5166 (mn10300_processor): Remove.
5167 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5168 HeaderInclude entry.
5169 (mn10300_processor): New Variable entry.
5172 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5174 * config/microblaze/microblaze.c: Don't include opts.h.
5175 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5176 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5177 (mno-clearbss): Use Var and Warn.
5179 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5181 * config/m32r/m32r-opts.h: New.
5182 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5183 (m32r_handle_option): Don't assert that global structures are in
5184 use. Access target_flags and m32r_cache_flush_func via opts
5185 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5186 OPT_mno_flush_trap here.
5187 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5188 include of m32r-opts.h.
5189 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5190 HeaderInclude entry.
5191 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5192 (mmodel=): Use Enum and Var.
5193 (m32r_model): New Enum and EnumValue entries.
5194 (mno-flush-trap): Use Var.
5195 (msdata=): Use Enum and Var.
5196 (m32r_sdata): New Enum and EnumValue entries.
5198 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5200 * config/m32c/m32c.c: Don't include opts.h.
5201 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5202 m32c_handle_option): Remove.
5203 (m32c_option_override): Check global_options_set.x_target_memregs
5204 instead of target_memregs_set.
5205 * config/m32c/m32c.h (target_memregs): Remove.
5206 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5209 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5211 * config/iq2000/iq2000-opts.h: New.
5212 * config/iq2000/iq2000.c: Don't include opts.h.
5213 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5214 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5215 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5216 HeaderInclude entry.
5217 (iq2000_tune): New Variable entry.
5218 (march=): Add comment. Use Enum.
5219 (iq2000_arch): New Enum and EnumValue entries.
5220 (mcpu=): Use Enum and Var.
5221 (iq2000_tune): New Enum and EnumValue entries.
5223 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5225 * config/ia64/ia64-opts.h: New.
5226 * config/ia64/ia64.c (ia64_tune): Remove.
5227 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5229 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5230 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5231 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5232 HeaderInclude entry.
5233 (ia64_tune): New Variable entry.
5234 (mfixed-range=): Use Defer and Var.
5235 (mtune=): Use Enum and Var.
5236 (ia64_tune): New Enum and EnumValue entries.
5238 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5240 * config/frv/frv-opts.h: New.
5241 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5243 (frv_cpu_type): Remove.
5244 * config/frv/frv.c: Don't include opts.h.
5245 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5246 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5247 (frv_cpu_type): New Variable entry.
5248 (frv_cpu): New Enum and EnumValue entries.
5250 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5252 * config/cris/cris.c (cris_handle_option): Access target_flags via
5253 opts pointer. Don't assert that global structures are in use.
5254 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5255 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5257 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5259 * config/bfin/bfin-opts.h: New.
5260 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5261 bfin_si_revision, bfin_workarounds): Remove.
5262 (bfin_cpus): Make static const.
5263 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5264 not bfin_lib_id_given.
5265 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5266 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5267 pointer. Use error_at. Don't assert that global structures are in use.
5268 * config/bfin/bfin.h: Include bfin-opts.h.
5269 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5270 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5271 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5272 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5275 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5277 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5278 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5279 or -msoft-float here.
5280 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5281 -msoft-float and -mhard-float.
5282 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5283 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5285 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5287 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5288 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5290 (LIBGCC_SPEC): Don't handle -msoft-float.
5291 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5293 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5295 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5296 -mfloat-abi=*, not -msoft-float and -mhard-float.
5297 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5299 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5300 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5301 mhard-float and msoft-float.
5302 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5303 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5304 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5305 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5307 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5308 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5310 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5312 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5315 2011-03-22 Richard Henderson <rth@redhat.com>
5317 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5318 TARGET_ABI_WINDOWS_NT.
5319 (alpha_output_function_end_prologue): Likewise.
5320 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5321 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5322 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5323 (trap, *movsi_nt_vms): Likewise.
5324 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5325 (*tablejump_osf_nt_internal): Remove.
5326 * config/alpha/predicates.md (input_operand): Only test Pmode.
5328 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5330 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5331 via opts pointer. Use error_at. Don't assert that global
5332 structures are in use.
5334 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5336 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5337 (ix86_handle_option): Access ix86_isa_flags and
5338 ix86_isa_flags_explicit via opts pointer. Don't assert that
5339 global structures are in use.
5340 (ix86_function_specific_save, ix86_function_specific_restore):
5341 Update ix86_isa_flags_explicit field name.
5342 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5343 (ix86_isa_flags_explicit): Rename TargetSave entry to
5344 x_ix86_isa_flags_explicit.
5346 2011-03-22 Richard Henderson <rth@redhat.com>
5348 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5349 (alpha_option_override, direct_return): Likewise.
5350 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5351 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5352 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5353 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5354 (alpha_expand_epilogue, alpha_end_function): Likewise.
5355 (alpha_init_libfuncs): Likewise.
5356 (struct machine_function): Remove unicosmk members.
5357 (print_operand) ['t']: Remove.
5358 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5359 unicosmk_output_module_name, unicosmk_output_common,
5360 current_section_align, unicosmk_output_text_section_asm_op,
5361 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5362 unicosmk_section_type_flags, unicosmk_unique_section,
5363 unicosmk_asm_named_section, unicosmk_insert_attributes,
5364 unicosmk_output_align, unicosmk_defer_case_vector,
5365 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5366 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5367 unicosmk_output_ssib, unicosmk_add_call_info_word,
5368 unicosmk_extern_head, unicosmk_output_default_externs,
5369 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5370 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5371 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5372 * config/alpha/alpha-protos.h: Update.
5373 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5374 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5375 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5376 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5377 (*mulsi_se, mulvsi3): Likewise.
5378 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5379 (*divmodsi_internal, call, call_value, realign): Likewise.
5380 (moddi3, umoddi3): Likewise; remove duplicate expander.
5381 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5382 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5383 (*movdi_nofix): Remove r/U alternative.
5384 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5385 * config/alpha/constraints.md ("U"): Remove.
5386 * config/alpha/predicates.md (call_operand"): Don't test
5387 TARGET_ABI_UNICOSMK.
5389 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5391 * target.def (handle_option): Take gcc_options and
5392 cl_decoded_option pointers and location_t.
5393 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5394 * doc/tm.texi: Regenerate.
5395 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5396 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5397 * lto-opts.c (lto_reissue_options): Generate option structure for
5398 targetm.handle_option call.
5399 * opts.c (target_handle_option): Update call to
5400 targetm.handle_option. Remove assertions about values now passed
5402 * targhooks.c (default_target_handle_option): New.
5403 * targhooks.h (default_target_handle_option): Declare.
5404 * config/alpha/alpha.c: Include opts.h.
5405 (alpha_handle_option): Update to new hook interface.
5406 * config/arm/arm.c: Include opts.h.
5407 (arm_handle_option): Update to new hook interface.
5408 * config/arm/t-arm (arm.o): Update dependencies.
5409 * config/bfin/bfin.c: Include opts.h.
5410 (bfin_handle_option): Update to new hook interface.
5411 * config/cris/cris.c: Include opts.h.
5412 (cris_handle_option): Update to new hook interface.
5413 * config/frv/frv.c: Include opts.h.
5414 (frv_handle_option): Update to new hook interface.
5415 * config/i386/i386.c: Include opts.h.
5416 (ix86_handle_option): Update to new hook interface.
5417 (ix86_valid_target_attribute_inner_p): Generate option structure
5418 for call to ix86_handle_option.
5419 * config/i386/t-i386 (i386.o): Update dependencies.
5420 * config/ia64/ia64.c: Include opts.h.
5421 (ia64_handle_option): Update to new hook interface.
5422 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5423 * config/iq2000/iq2000.c: Include opts.h.
5424 (iq2000_handle_option): Update to new hook interface.
5425 * config/m32c/m32c.c: Include opts.h.
5426 (m32c_handle_option): Update to new hook interface.
5427 * config/m32r/m32r.c: Include opts.h.
5428 (m32r_handle_option): Update to new hook interface.
5429 * config/m68k/m68k.c: Include opts.h.
5430 (m68k_handle_option): Update to new hook interface.
5431 * config/mep/mep.c: Include opts.h.
5432 (mep_handle_option): Update to new hook interface.
5433 * config/microblaze/microblaze.c: Include opts.h.
5434 (microblaze_handle_option): Update to new hook interface.
5435 * config/mips/mips.c: Include opts.h.
5436 (mips_handle_option): Update to new hook interface.
5437 * config/mn10300/mn10300.c: Include opts.h.
5438 (mn10300_handle_option): Update to new hook interface.
5439 * config/pa/pa.c: Include opts.h.
5440 (pa_handle_option): Update to new hook interface.
5441 * config/pdp11/pdp11.c: Include opts.h.
5442 (pdp11_handle_option): Update to new hook interface.
5443 * config/rs6000/rs6000.c: Include opts.h.
5444 (rs6000_handle_option): Update to new hook interface.
5445 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5446 * config/rx/rx.c: Include opts.h.
5447 (rx_handle_option): Update to new hook interface.
5448 * config/s390/s390.c: Include opts.h.
5449 (s390_handle_option): Update to new hook interface.
5450 * config/score/score.c: Include opts.h.
5451 (score_handle_option): Update to new hook interface.
5452 * config/sh/sh.c: Include opts.h.
5453 (sh_handle_option): Update to new hook interface.
5454 * config/sparc/sparc.c: Include opts.h.
5455 (sparc_handle_option): Update to new hook interface.
5456 * config/v850/v850.c: Include opts.h.
5457 (v850_handle_option): Update to new hook interface.
5459 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5461 * gcc.c (driver_unknown_option_callback): Only permit and save
5462 unknown -Wno- options.
5463 (driver_wrong_lang_callback): Save options directly instead of via
5464 driver_unknown_option_callback.
5466 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5468 * combine.c (simplify_set): Try harder to find the best CC mode when
5469 simplifying a nested COMPARE on the RHS.
5471 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5473 * config/alpha/gnu.h: Remove.
5474 * config/arc: Remove directory.
5475 * config/arm/netbsd.h: Remove.
5476 * config/arm/t-pe: Remove.
5477 * config/crx: Remove directory.
5478 * config/i386/netbsd.h: Remove.
5479 * config/m68hc11: Remove directory.
5480 * config/m68k/uclinux-oldabi.h: Remove.
5481 * config/mcore/mcore-pe.h: Remove.
5482 * config/mcore/t-mcore-pe: Remove.
5483 * config/netbsd-aout.h: Remove.
5484 * config/rs6000/gnu.h: Remove.
5485 * config/sh/sh-symbian.h: Remove.
5486 * config/sh/symbian-base.c: Remove.
5487 * config/sh/symbian-c.c: Remove.
5488 * config/sh/symbian-cxx.c: Remove.
5489 * config/sh/symbian-post.h: Remove.
5490 * config/sh/symbian-pre.h: Remove.
5491 * config/sh/t-symbian: Remove.
5492 * config/svr3.h: Remove.
5493 * config/vax/netbsd.h: Remove.
5494 * config.build: Don't handle i[34567]86-*-pe.
5495 * config.gcc: Remove handling of deprecations for most deprecated
5497 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5498 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5499 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5500 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5501 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5502 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5504 * config.host: Don't handle i[34567]86-*-pe.
5505 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5506 (ASM_SPEC32): Don't handle -mcall-gnu.
5507 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5509 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5510 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5511 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5512 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5513 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5514 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5515 conditional on SYMBIAN.
5516 * configure.ac: Don't handle powerpc*-*-gnu*.
5517 * configure: Regenerate.
5518 * doc/extend.texi (interrupt attribute): Don't mention CRX.
5519 * doc/install-old.texi (m6811, m6812): Don't mention.
5520 * doc/install.texi (arc-*-elf*): Don't document multilib option.
5521 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5522 (m68k-uclinuxoldabi): Don't mention.
5523 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5525 (-mcall-gnu): Remove.
5526 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5527 families): Remove constraint documentation.
5529 2011-03-22 Marius Strobl <marius@FreeBSD.org>
5531 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5532 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5533 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5535 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
5537 * config/avr/avr-protos.h (expand_epilogue): Change prototype
5538 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5539 * config/avr/avr.c (init_cumulative_args)
5540 (avr_function_arg_advance): Use it.
5541 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5543 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5544 (avr_function_ok_for_sibcall): ...this new function.
5545 (avr_lookup_function_attribute1): New static Function.
5546 (avr_naked_function_p, interrupt_function_p)
5547 (signal_function_p, avr_OS_task_function_p)
5548 (avr_OS_main_function_p): Use it.
5549 * config/avr/avr.md ("sibcall", "sibcall_value")
5550 ("sibcall_epilogue"): New expander.
5551 ("*call_insn", "*call_value_insn"): New insn.
5552 ("call_insn", "call_value_insn"): Remove
5553 ("call", "call_value", "epilogue"): Change expander to handle
5556 2011-03-21 Nick Clifton <nickc@redhat.com>
5558 * doc/invoke.texi (Overall Options): Move closing brace to end of
5560 (Optimization Options): Add missing @gol.
5561 (Directory Options): Likewise.
5562 (i386 and x86-64 Options): Likewise.
5563 (RS6000 and PowerPC Options): Likewise.
5564 (i386 and x86-64 Windows Options): Likewise.
5565 (V850 Options): Add text missing from descriptions.
5567 2011-03-22 Richard Henderson <rth@redhat.com>
5569 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5570 (avr_incoming_return_addr_rtx): New.
5571 (emit_push_byte): New.
5572 (expand_prologue): Use it. Remove incorrect dwarf annotation for
5573 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
5574 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
5575 (emit_pop_byte): New.
5576 (expand_epilogue): Use it. Pop frame pointer by bytes.
5577 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5578 (INCOMING_RETURN_ADDR_RTX): New.
5579 (INCOMING_FRAME_SP_OFFSET): New.
5580 (ARG_POINTER_CFA_OFFSET): New.
5581 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5582 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5585 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5587 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5589 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5590 (FUNCTION_ARG_ADVANCE): Likewise.
5591 * tm.texi.in: Change references to them to hook references.
5592 * tm.texi: Regenerate.
5593 * targhooks.c (default_function_arg): Eliminate check for target
5595 (default_function_incoming_arg): Likewise.
5596 (default_function_arg_advance): Likewise.
5597 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5598 (function_arg_advance): Likewise.
5599 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5601 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5603 * tree.c (build_call_1): New function.
5604 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5606 2011-03-22 Richard Guenther <rguenther@suse.de>
5608 PR tree-optimization/48228
5609 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5610 for single-arg PHIs.
5612 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
5614 PR rtl-optimization/48143
5615 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5616 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5617 sse2_cvtps2pd): Likewise.
5619 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5621 * recog.c (canonicalize_change_group): Use validate_unshare_change.
5623 2011-03-22 Richard Guenther <rguenther@suse.de>
5625 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5626 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5627 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5628 and REALIGN_LOAD_EXPR.
5629 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5630 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5631 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5632 DOT_PROD_EXPR case ...
5633 (expand_expr_real_2): ... here.
5634 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5635 and REALIGN_LOAD_EXPR.
5636 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5637 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5638 (vect_create_epilog_for_reduction): Likewise.
5639 (vectorizable_reduction): Likewise.
5640 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5641 * tree-vect-stmts.c (vectorizable_load): Likewise.
5643 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5645 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5647 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5649 * config/s390/s390.c (s390_delegitimize_address): Fix offset
5650 handling for PLTOFF/GOTOFF.
5652 2011-03-22 Nick Clifton <nickc@redhat.com>
5654 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5655 trailing backslash from the end of the macro definition.
5657 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5659 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5662 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
5664 * expr.h (prepare_operand): Move to...
5665 * optabs.h (prepare_operand): ...here and change the insn code
5666 parameter from "int" to "enum insn_code".
5667 (insn_operand_matches): Declare.
5668 * expr.c (init_expr_target): Use insn_operand_matches.
5669 (compress_float_constant): Likewise.
5670 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5671 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5672 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5673 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5675 (gen_cond_trap): Likewise.
5676 (prepare_operand): Likewise. Change icode to an insn_code.
5677 (insn_operand_matches): New function.
5678 * reload.c (find_reloads_address_1): Use insn_operand_matches.
5679 * reload1.c (gen_reload): Likewise.
5680 * targhooks.c (default_secondary_reload): Likewise.
5682 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5684 * config/alpha/alpha.md (unspec): New define_c_enum.
5687 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5690 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5691 between a call and its CALL_ARG_LOCATION note.
5693 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
5695 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5697 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5701 * c-common.c (shorten_compare): If primopN is first sign-extended
5702 to opN and then zero-extended to result type, set primopN to opN.
5704 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5706 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5707 for barrier handlers.
5709 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5711 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5712 UNSPEC constants to be in the unspec enumeration, and redefine
5713 all UNSPECV constants to be in the unspecv enumeration, so that
5714 dumps print which unspec/unspec_volatile this is.
5715 * config/rs6000/vector.md (UNSPEC_*): Ditto.
5716 * config/rs6000/paired.md (UNSPEC_*): Ditto.
5717 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5718 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5719 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5721 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5722 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5723 UNSPECV_LWSYNC, since these are used as unspec_volatile.
5724 * config/rs6000/sync.md (isync, lwsync): Ditto.
5726 2011-03-21 Richard Guenther <rguenther@suse.de>
5728 * params.def (lto-min-partition): Fix typo.
5730 2011-03-21 Richard Guenther <rguenther@suse.de>
5733 * c-decl.c (grokdeclarator): Drop to the main variant only
5734 for array types. Drop flag_gen_aux_info check.
5736 2011-03-21 Richard Guenther <rguenther@suse.de>
5738 PR translation/47911
5739 * params.def (lto-partitions): Fix typo.
5740 (lto-min-partition): Fix wording.
5742 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
5744 * config/rs6000/t-freebsd: Remove duplication from file.
5746 2011-03-21 Richard Guenther <rguenther@suse.de>
5749 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5751 2011-03-21 Richard Guenther <rguenther@suse.de>
5754 * params.def (lto-partitions): Require at least 1 partition.
5756 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5758 * gthr-solaris.h: Remove.
5759 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5760 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5761 (LIB_SPEC): Likewise.
5762 * config/sol2.opt (threads): Remove.
5763 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5764 (sparc*-*-solaris2*): Likewise.
5765 * configure.ac (enable_threads): Enable solaris support.
5766 * configure: Regenerate.
5767 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5768 * doc/install.texi (Configuration, --enable-threads=lib): Remove
5771 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5773 * config.gcc: Obsolete *-*-solaris2.8*.
5774 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5776 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5779 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5780 reference. Solaris 8 perl works.
5782 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5785 * doc/install.texi (Prerequisites): Move jar etc. up.
5786 Explain support library version requirements.
5788 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5791 * doc/install.texi (Prerequisites): Move Perl to build
5792 requirements. Always necessary on Solaris 2 with Sun ld.
5794 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5796 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5798 (Specific, i?86-*-solaris2.[89]): Likewise.
5799 (Specific, i?86-*-solaris2.10): Likewise.
5800 (Specific, mips-sgi-irix6): Likewise.
5801 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5802 Update for binutils 2.21.
5804 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5806 * configure.ac (gcc_cv_lto_plugin): Fix typo.
5807 Allow -fuse-linker-plugin for non-default plugin linker.
5808 * configure: Regenerate.
5810 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
5813 * gengtype.c (files_rules): Added rule for cp/parser.h.
5815 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5818 * config/s390/s390.c (s390_delegitimize_address): Don't call
5819 lowpart_subreg if orig_x has BLKmode.
5821 2011-03-21 Kai Tietz <ktietz@redhat.com>
5824 * doc/plugins.texi: Adjust documentation for plugin register_callback.
5825 * tree.h (attribute_spec): Add new member affects_type_identity.
5826 * attribs.c (empty_attribute_table): Adjust attribute_spec
5828 * config/alpha/alpha.c: Likewise.
5829 * config/arc/arc.c: Likewise.
5830 * config/arm/arm.c: Likewise.
5831 * config/avr/avr.c: Likewise.
5832 * config/bfin/bfin.c: Likewise.
5833 * config/crx/crx.c: Likewise.
5834 * config/darwin.h: Likewise.
5835 * config/h8300/h8300.c: Likewise.
5836 * config/i386/cygming.h: Likewise.
5837 * config/i386/i386.c: Likewise.
5838 * config/ia64/ia64.c: Likewise.
5839 * config/m32c/m32c.c: Likewise.
5840 * config/m32r/m32r.c: Likewise.
5841 * config/m68hc11/m68hc11.c: Likewise.
5842 * config/m68k/m68k.c: Likewise.
5843 * config/mcore/mcore.c: Likewise.
5844 * config/mep/mep.c: Likewise.
5845 * config/microblaze/microblaze.c: Likewise.
5846 * config/mips/mips.c: Likewise.
5847 * config/rs6000/rs6000.c: Likewise.
5848 * config/rx/rx.c: Likewise.
5849 * config/sh/sh.c: Likewise.
5850 * config/sol2.h: Likewise.
5851 * config/sparc/sparc.c: Likewise.
5852 * config/spu/spu.c: Likewise.
5853 * config/stormy16/stormy16.c: Likewise.
5854 * config/v850/v850.c: Likewise.
5856 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
5858 * simplify-rtx.c (simplify_binary_operation_1): Handle
5859 (xor (and A B) C) case when B and C are both constants.
5861 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
5863 * tree-dfa.c (add_referenced_var): Fix typo in comment.
5865 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
5868 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5870 2011-03-20 Jakub Jelinek <jakub@redhat.com>
5872 PR rtl-optimization/48156
5873 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5874 assume df and df_lr are not NULL.
5876 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5879 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5880 between a call and its CALL_ARG_LOCATION note.
5882 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
5885 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5886 between a call and its corresponding CALL_ARG_LOCATION note.
5888 2011-03-19 Anatoly Sokolov <aesok@post.ru>
5890 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5891 instead of loop. Use HARD_REGISTER_NUM_P predicate.
5892 * haifa-sched.c (setup_ref_regs): Ditto.
5893 * caller-save.c (add_used_regs_1): Ditto.
5894 * dse.c (look_for_hardregs): Ditto.
5895 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5896 * sched-rgn.c (check_live_1): Ditto.
5898 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5900 * c-decl.c (diagnose_mismatched_decls): Give an error for
5901 redefining a typedef with variably modified type.
5903 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5905 * c-decl.c (grokfield): Don't allow typedefs for structures or
5906 unions with no tag by default.
5907 * doc/extend.texi (Unnamed Fields): Update.
5909 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
5911 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5912 Rewrite using indirect functions.
5913 (lwp_slwpcb): Ditto.
5914 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5915 (avx_vinsertf128<mode>): Ditto.
5917 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5919 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5922 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5924 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5925 splitting between a call and its corresponding CALL_ARG_LOCATION note.
5927 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5929 PR rtl-optimization/48170
5930 * gcse.c (hoist_code): Remove bogus asserts.
5932 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
5934 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5935 computation for prologue/epilogue.
5937 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5939 * Makefile.in (check-consistency): Remove.
5941 2011-03-18 Jakub Jelinek <jakub@redhat.com>
5944 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5945 arange_table_in_use is 0, but either text_section_used or
5946 cold_text_section_used is true. Don't call it if
5947 !info_section_emitted.
5949 2011-03-18 Anatoly Sokolov <aesok@post.ru>
5951 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5952 FUNCTION_VALUE_REGNO_P): Remove.
5953 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5955 * config/avr/avr.c (avr_ret_register): Make static inline.
5956 (avr_function_value_regno_p): New function.
5957 (avr_libcall_value): Make static. Add 'func' argument.
5958 (avr_function_value): Make static. Rename 'func' argument to
5959 'fn_decl_or_type', forward it to avr_libcall_value. Call
5960 avr_ret_register function instead of RET_REGISTER macro.
5961 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5963 2011-03-18 Jason Merrill <jason@redhat.com>
5966 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5968 2011-03-18 Richard Guenther <rguenther@suse.de>
5970 * doc/install.texi (--enable-gold): Remove.
5971 (--with-plugin-ld): Document.
5972 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5974 2011-03-18 Andrew Pinski <pinskia@gmail.com>
5977 * expr.c (optimize_bitfield_assignment_op): Revamp to work
5978 again after expansion changes.
5980 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
5982 * combine.c (try_combine): Do simplification only call of
5983 subst() on i2 even when i1 is present. Update comments.
5985 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
5987 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5988 and UNSPEC_PCREL_SYMOFF.
5990 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5992 * config/s390/s390.md: Use define_c_enum for the unspec constant
5995 2011-03-18 Richard Henderson <rth@redhat.com>
5996 Jakub Jelinek <jakub@redhat.com>
5999 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6000 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6002 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6005 * combine.c (cant_combine_insn_p): Don't check zero/sign
6006 extended hard registers.
6008 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6011 * combine.c (cant_combine_insn_p): Check zero/sign extended
6014 2011-03-17 Anatoly Sokolov <aesok@post.ru>
6016 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6017 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6018 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6019 Change return type to bool.
6020 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6022 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6025 * var-tracking.c (prepare_call_arguments): If CALL target
6026 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6027 pc instead of looking it up using cselib_lookup and use
6028 Pmode for it if x has VOIDmode.
6029 * dwarf2out.c (gen_subprogram_die): If also both first and
6030 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6033 * function.c (assign_parms): For data.passed_pointer parms
6034 use MEM of data.entry_parm instead of data.entry_parm itself
6035 as DECL_INCOMING_RTL.
6036 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6037 also when passed and declared mode is the same, DECL_RTL
6038 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6041 2011-03-16 Jeff Law <law@redhat.com>
6043 PR rtl-optimization/37273
6044 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6045 handle them like argument loads from stack slots. Do not double
6046 count memory for memory constants and argument loads from stack slots.
6048 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6051 * var-tracking.c (prepare_call_arguments): Check SUBREG.
6053 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6056 * config/i386/i386.opt: Add Save to -mavx and -mfma.
6058 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6061 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6063 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6064 Clear call_arg_locations and call_arg_loc_last always.
6067 * var-tracking.c (prepare_call_arguments): If argument needs to be
6068 passed by reference, adjust argtype and mode.
6070 2011-03-17 Richard Guenther <rguenther@suse.de>
6073 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6074 a value make sure to fold the statement.
6076 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
6079 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6080 return condition with !cfun->calls_alloca.
6082 2011-03-17 Richard Guenther <rguenther@suse.de>
6085 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6086 origin for decls in other ltrans units.
6087 (input_varpool_node): Likewise.
6089 2011-03-17 Richard Guenther <rguenther@suse.de>
6092 * tree-object-size.c (compute_object_offset): Properly return
6093 the offset operand of MEM_REFs as sizetype.
6095 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6097 PR rtl-optimization/48141
6098 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6099 * dse.c: Include params.h.
6100 (active_local_stores_len): New variable.
6101 (add_wild_read, dse_step1): Clear it when setting active_local_stores
6103 (record_store, check_mem_read_rtx): Decrease it when removing
6105 (scan_insn): Likewise. Increase it when adding to chain, if it
6106 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6107 set active_local_stores to NULL before the addition.
6108 * Makefile.in (dse.o): Depend on $(PARAMS_H).
6110 PR rtl-optimization/48141
6111 * dse.c (record_store): If no positions are needed in an insn
6112 that cannot be deleted, at least unchain it from active_local_stores.
6114 2011-03-16 Dodji Seketeli <dodji@redhat.com>
6117 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6118 (lookup_type_die_strip_naming_typedef): ... here.
6119 (get_context_die): Use it.
6120 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6121 the anonymous struct named by the naming typedef.
6123 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
6126 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6127 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6129 2011-03-16 Jeff Law <law@redhat.com>
6131 * tree-vrp.c (identify_jump_threads): Slightly simplify type
6132 check for operands of conditional. Allow type to be a pointer.
6134 2011-03-16 Richard Guenther <rguenther@suse.de>
6136 PR tree-optimization/48149
6137 * fold-const.c (fold_binary_loc): Fold
6138 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6140 2011-03-16 Richard Guenther <rguenther@suse.de>
6142 PR tree-optimization/26134
6143 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6144 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6145 (non_rewritable_mem_ref_base): Handle complex type component
6146 accesses, constrain offsets for vector and complex extracts
6149 2011-03-16 Richard Guenther <rguenther@suse.de>
6151 PR tree-optimization/48146
6152 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6153 operands avoiding the need for renaming.
6155 2011-03-16 Richard Guenther <rguenther@suse.de>
6157 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6158 constant folding. Move MEM_REF canonicalization first.
6159 Rely on fold_const_aggregate_ref for initializer folding.
6160 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6162 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6165 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6166 arg0/arg1 or their arguments are always fold converted to matching
6169 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6172 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6175 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6176 Handle in-tree gold.
6177 (ld_vers): Extract binutils version for gold.
6178 (gcc_cv_ld_hidden): Handle gold here.
6179 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6180 * configure: Regenerate.
6181 * config.in: Regenerate.
6182 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6183 -fuse-linker-plugin otherwise.
6184 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6185 (LINK_COMMAND_SPEC): Use it.
6186 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6188 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6190 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6191 * calls.c: Remove debug.h include.
6192 (emit_call_1): Don't call virtual_call_token debug hook.
6193 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6194 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6195 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6196 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6197 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6198 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6199 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6200 dwarf2out_virtual_call): Remove.
6201 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6202 copy_call_info and virtual_call hooks.
6203 (dwarf2out_init): Don't initialize vcall_insn_table,
6204 debug_dcall_section and debug_vcall_section.
6205 (prune_unused_types): Don't mark nodes from dcall_table.
6206 (dwarf2out_finish): Don't output dcall or vcall tables.
6207 * final.c (final_scan_insn): Don't call direct_call or
6208 virtual_call debug hooks.
6209 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6210 virtual_call_token, copy_call_info and virtual_call hooks.
6211 (debug_nothing_uid): Remove prototype.
6212 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6213 copy_call_info and virtual_call hooks.
6214 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6215 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6216 * debug.c (do_nothing_debug_hooks): Likewise.
6217 (debug_nothing_uid): Remove.
6218 * doc/invoke.texi (-fenable-icf-debug): Remove.
6219 * common.opt (-fenable-icf-debug): Likewise.
6221 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6222 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6223 call's MEM. Handle functions returning aggregate through a hidden
6224 first pointer. For virtual calls add clobbered pc to call arguments
6226 * dwarf2out.c (gen_subprogram_die): Emit
6227 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6231 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6232 * rtl.h (ENTRY_VALUE_EXP): Define.
6233 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6234 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6235 * print-rtl.c (print_rtx): Likewise.
6236 * gengtype.c (adjust_field_rtx_def): Likewise.
6237 * var-tracking.c (vt_add_function_parameter): Adjust
6238 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6239 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6240 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6241 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6242 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6244 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6245 Call var_location debug hook even on CALL_INSNs.
6246 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6247 * rtl.def (ENTRY_VALUE): New.
6248 * dwarf2out.c: Include cfglayout.h.
6249 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6250 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6251 (struct call_arg_loc_node): New type.
6252 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6253 tail_call_site_count): New variables.
6254 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6255 DW_TAG_GNU_call_site_parameter.
6256 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6257 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6258 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6259 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6260 and DW_AT_GNU_all_source_call_sites.
6261 (mem_loc_descriptor): Handle ENTRY_VALUE.
6262 (add_src_coords_attributes): Don't add enything if
6263 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6264 (dwarf2out_abstract_function): Save and clear call_arg_location,
6265 call_site_count and tail_call_site_count around dwarf2out_decl call.
6266 (gen_call_site_die): New function.
6267 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6268 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6269 (dwarf2out_function_decl): Clear call_arg_locations,
6270 call_arg_loc_last, set call_site_count and tail_call_site_count
6271 to -1 and free block_map.
6272 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6273 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6274 followed by any real instructions.
6275 (dwarf2out_begin_function): Set call_site_count and
6276 tail_call_site_count to 0.
6277 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6278 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6279 attempt to force a DIE for it and worst case remove the attribute.
6280 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6281 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6283 * var-tracking.c: Include tm_p.h.
6284 (vt_stack_adjustments): For calls call note_register_arguments.
6285 (argument_reg_set): New variable.
6286 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6287 ensure the VALUE is resolved.
6288 (call_arguments): New variable.
6289 (prepare_call_arguments): New function.
6290 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6291 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6292 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6293 always use the best expression.
6294 (vt_expand_loc): Add ignore_cur_loc argument.
6295 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6296 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6297 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6299 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6300 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6301 argument. Don't call cselib_preserve_only_values and
6303 (note_register_arguments): New function.
6304 (vt_initialize): Compute argument_reg_set. Call
6305 vt_add_function_parameters before processing basic blocks instead of
6306 afterwards. For calls call prepare_call_arguments before calling
6307 cselib_process_insn.
6308 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6309 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6310 (var-tracking.o): Depend on $(TM_P_H).
6311 * cfglayout.h (insn_scope): New prototype.
6312 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6313 * cfglayout.c (insn_scope): No longer static.
6314 * insn-notes.def (CALL_ARG_LOCATION): New.
6315 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6316 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6317 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6318 nothing for DECL_EXTERNAL BLOCK_VARS.
6320 2011-03-16 Alan Modra <amodra@gmail.com>
6323 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6324 create invalid offset address for vsx splat insn.
6325 * config/rs6000/predicates.md (splat_input_operand): New.
6326 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6328 2011-03-15 Xinliang David Li <davidxl@google.com>
6331 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6332 (normalize_preds): New function.
6333 (is_use_properly_guarded): Normalize def predicates.
6335 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6338 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6339 in the output template.
6341 2011-03-15 Richard Guenther <rguenther@suse.de>
6344 * tree-pretty-print.c (dump_function_declaration): Properly
6345 dump unprototyped and varargs function types.
6347 2011-03-15 Richard Guenther <rguenther@suse.de>
6349 PR tree-optimization/13954
6350 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6353 2011-03-15 Richard Guenther <rguenther@suse.de>
6355 PR tree-optimization/48037
6356 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6357 selects into BIT_FIELD_REFs.
6358 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6361 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6363 PR tree-optimization/48129
6364 * builtins.c (fold_builtin_snprintf): Convert to type of
6365 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6366 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6368 2011-03-15 Richard Guenther <rguenther@suse.de>
6370 PR tree-optimization/41490
6371 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6372 value but with VUSE.
6373 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6375 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6376 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6377 * tree-tailcall.c (find_tail_calls): Ignore returns.
6379 2011-03-15 Richard Guenther <rguenther@suse.de>
6382 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6383 or variable-indexed array accesses when in gimple form.
6385 2011-03-15 Richard Guenther <rguenther@suse.de>
6387 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6389 2011-03-15 Alan Modra <amodra@gmail.com>
6392 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6393 presume symbol_refs without a symbol_ref_decl are suitably
6394 aligned, nor other trees we may see here. Handle anchor symbols.
6395 (legitimate_constant_pool_address_p): Comment. Add mode param.
6396 Check cmodel=medium addresses. Adjust all calls.
6397 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6398 creating cmodel=medium optimized access to locals.
6399 * config/rs6000/constraints.md (R): Pass QImode to
6400 legitimate_constant_pool_address_p.
6401 * config/rs6000/predicates.md (input_operand): Pass mode to
6402 legitimate_constant_pool_address_p.
6403 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6406 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6409 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6410 64-bit constants being loaded into registers other than GPRs such
6411 as loading 0 into a VSX register.
6413 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6415 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6417 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6420 * builtins.c (fold_builtin_snprintf): New function.
6421 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6422 (fold_builtin_4): Likewise.
6425 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6426 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6427 and C - X == X also strip nops from +/-/p+ operand.
6428 When optimizing -X == C, fold C to arg0's type.
6431 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6432 emit it as add_AT_int instead of add_AT_unsigned.
6434 2011-03-14 Tom Tromey <tromey@redhat.com>
6436 * unwind-dw2.c: Include sys/sdt.h if it exists.
6437 (_Unwind_DebugHook): Use STAP_PROBE2.
6438 * config.in, configure: Rebuild.
6439 * configure.ac: Check for sys/sdt.h.
6441 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6443 * config/i386/i386.md (ROUND_FLOOR): New constant.
6444 (ROUND_CEIL): Ditto.
6445 (ROUND_TRUNC): Ditto.
6446 (ROUND_MXCSR): Ditto.
6447 (ROUND_NO_EXC): Ditto.
6448 (rint<mode>2): Use new defines instead of numerical constants.
6449 (floor<mode>2): Ditto.
6450 (ceil<mode>2): Ditto.
6451 (btrunc<mode>2): Ditto.
6452 * config/i386/i386-builtin-types.def: Define ROUND function type
6454 * config/i386/i386.c (enum ix86_builtins): Add
6455 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6456 (struct builtin_description): Add
6457 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6458 (ix86_expand_sse_round): New static function.
6459 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6461 (ix86_builtin_vectorized_function): Handle
6462 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6464 2011-03-14 Tom Tromey <tromey@redhat.com>
6466 * c-parser.c (c_parser_asm_string_literal): Clear
6467 warn_overlength_strings.
6469 2011-03-14 Tom Tromey <tromey@redhat.com>
6471 * c-parser.c (disable_extension_diagnostics): Save
6472 warn_overlength_strings.
6473 (restore_extension_diagnostics): Restore warn_overlength_strings.
6475 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6477 * BASE-VER: Change to 4.7.0.
6479 2011-03-14 Richard Guenther <rguenther@suse.de>
6482 * tree.c (build_vector_from_val): Adjust assert to requirements
6485 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6488 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6490 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
6492 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6493 terms of target_flags_explicit. Adjust copyright year.
6495 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6496 * config/rs6000/t-freebsd: New file. Add override for
6499 2011-03-13 Chris Demetriou <cgd@google.com>
6501 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6502 (-fno-diagnostics-show-option): this, to reflect current default.
6503 (-Werror=): Update text about -fno-diagnostics-show-option.
6505 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
6508 * config/rs6000/predicates.md (easy_vector_constant_add_self,
6509 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6510 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6511 mode is not V2DImode or V2DFmode.
6512 (vspltis_constant): Do not handle V2DImode and V2DFmode.
6513 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6514 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6516 (movdi_internal64): Likewise.
6518 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
6520 PR tree-optimization/47127
6521 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6523 (set_cloog_options): Same.
6524 (scop_to_clast): Same.
6525 (print_clast_stmt): Do not call cloog_state_malloc and
6527 (print_generated_program): Same.
6529 * graphite-clast-to-gimple.h (cloog_state): Declared.
6530 (scop_to_clast): Adjust declaration.
6531 * graphite.c (cloog_state): Defined here.
6532 (graphite_initialize): Call cloog_state_malloc.
6533 (graphite_finalize): Call cloog_state_free.
6535 2011-03-11 Jason Merrill <jason@redhat.com>
6537 * attribs.c (lookup_attribute_spec): Take const_tree.
6540 2011-03-11 Joseph Myers <joseph@codesourcery.com>
6542 * config/sparc/sparc.c (sparc_option_override): Use
6543 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6545 2011-03-11 Richard Guenther <rguenther@suse.de>
6547 PR tree-optimization/48067
6548 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6549 multiplication result will be only used once on the target
6552 2011-03-11 Richard Guenther <rguenther@suse.de>
6554 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6556 2011-03-11 Richard Guenther <rguenther@suse.de>
6559 * tree.c (find_decls_types_r): Do not walk types only reachable
6560 from IDENTIFIER_NODEs.
6562 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6565 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6566 all vnode->force_output nodes as needed.
6568 2011-03-11 Jason Merrill <jason@redhat.com>
6571 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6572 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6574 2011-03-11 Martin Jambor <mjambor@suse.cz>
6576 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6579 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6581 PR tree-optimization/48063
6582 * ipa-inline.c (cgraph_decide_inlining): Don't try to
6583 inline functions called once if !tree_can_inline_p (node->callers).
6585 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
6587 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6589 * config/score/score3.c: Delete.
6590 * config/score/score3.h: Delete.
6591 * config/score/mul-div.S: Delete.
6592 * config/score/sfp-machine.h: Add new file.
6593 * config/score/constraints.md: Add new file.
6594 * config/score/t-score-softfp: Add new file.
6595 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6596 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6597 (score7_extra_constraint): Delete.
6598 (score7_option_override): Remove unused code.
6599 * config/score/score.c: Remove score3 and score5 define and code.
6600 * config/score/score.h: Remove score3 and score5 define and code.
6601 * config/score/score.md: Remove score3 template and unusual insn.
6602 * config/score/score.opt: Remove score3 and score5 options.
6604 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6606 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6607 when _HPUX_SOURCE is defined.
6608 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6610 2011-03-10 Jason Merrill <jason@redhat.com>
6613 * stor-layout.c (layout_type): Don't set structural equality
6614 on arrays of incomplete type.
6615 * tree.c (type_hash_eq): Handle comparing them properly.
6617 2011-03-10 Jakub Jelinek <jakub@redhat.com>
6620 * config/s390/s390.c (s390_delegitimize_address): Make sure the
6621 result mode matches original rtl mode.
6623 2011-03-10 Nick Clifton <nickc@redhat.com>
6625 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6626 (andsi3, andsi3_flags): Fix timings for three operand alternative.
6628 2011-03-09 Jakub Jelinek <jakub@redhat.com>
6630 PR rtl-optimization/47866
6631 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6632 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6633 if target wasn't scalar.
6634 * function.c (assign_stack_temp_for_type): Assert that neither
6635 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6636 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6638 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6640 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6642 * config/s390/s390-protos.h (s390_label_align): New prototype.
6643 * config/s390/s390.c (s390_label_align): New function.
6644 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6646 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6649 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6650 V2DI/V2DF constants. Only all 0's or all 1's are easy.
6651 (output_vec_const_move): Ditto.
6653 2011-03-08 Anatoly Sokolov <aesok@post.ru>
6655 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6656 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6657 * config/mips/mips.c (mips_preferred_reload_class): Make static.
6658 Change 'rclass' argument and result type to reg_class_t.
6659 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6661 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
6663 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6664 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6665 (TARGET_MEMORY_MOVE_COST): Define.
6666 (avr_register_move_cost, avr_memory_move_cost): New Functions.
6668 2011-03-08 Jakub Jelinek <jakub@redhat.com>
6671 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6674 PR tree-optimization/48022
6675 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6678 2011-03-07 Jakub Jelinek <jakub@redhat.com>
6681 * var-tracking.c (find_use_val): Return NULL for
6682 cui->sets && cui->store_p BLKmode MEMs.
6684 2011-03-07 Anatoly Sokolov <aesok@post.ru>
6686 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6688 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6689 xstormy16_print_operand_address): Remove.
6690 * config/stormy16/stormy16.c (xstormy16_print_operand,
6691 xstormy16_print_operand_address): Make static.
6692 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6694 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
6697 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6698 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6701 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
6704 * cfgloopmanip.c (fix_bb_placements): Return immediately
6705 if FROM is BASE_LOOP's header.
6707 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
6709 * gimplify.c (gimplify_function_tree): Fix building calls
6710 to __builtin_return_address.
6712 2011-03-07 Alan Modra <amodra@gmail.com>
6714 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6715 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6716 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6717 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6719 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6720 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6721 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6722 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6723 * config/rs6000/rs6000.c
6724 (rs6000_elf_end_indicate_exec_stack): Rename to..
6725 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
6726 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
6727 (rs6000_file_start): ..here.
6728 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6729 file scope variables.
6730 (call_ABI_of_interest): New function.
6731 (init_cumulative_args): Set above vars when function return value
6732 is a float, vector, or small struct.
6733 (rs6000_function_arg_advance_1): Likewise for function args.
6734 (rs6000_va_start): Set rs6000_passes_float if variable arg function
6735 references float args.
6737 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
6739 * doc/cfg.texi: Remove "See" before @ref.
6740 * doc/invoke.texi: Likewise.
6742 2011-03-05 Jason Merrill <jason@redhat.com>
6744 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6746 2011-03-05 Anthony Green <green@moxielogic.com>
6748 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6750 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
6752 PR rtl-optimization/47899
6753 * cfgloopmanip.c (fix_bb_placements): Fix first argument
6754 to flow_loop_nested_p when moving the loop upward.
6756 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
6759 * arm.md (movhi_insn_arch4): Accept any immediate constant.
6761 2011-03-05 Jakub Jelinek <jakub@redhat.com>
6763 PR tree-optimization/47967
6764 * ipa-cp.c (build_const_val): Return NULL instead of creating
6765 VIEW_CONVERT_EXPR for mismatching sizes.
6766 (ipcp_create_replace_map): Return NULL if build_const_val failed.
6767 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6768 give up on versioning.
6770 2011-03-05 Alan Modra <amodra@gmail.com>
6773 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6774 full cmodel medium/large lo_sum + high addresses.
6776 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6778 * config/s390/s390.c (s390_decompose_address): Reject non-literal
6779 pool references in UNSPEC_LTREL_OFFSET.
6781 2011-03-04 Jan Hubicka <jh@suse.cz>
6784 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6785 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6786 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6788 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6789 cgraph_add_thunk): Add node pointers.
6790 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6791 associated to right node.
6792 (input_node): Update use of cgraph_same_body_alias
6793 and cgraph_add_thunk.
6795 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
6797 * config/i386/i386.opt (mprefer-avx128): New flag.
6798 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6799 modes when the flag -mprefer-avx128 is on.
6801 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
6803 * dwarf2out.c (compare_loc_operands): Fix address handling.
6805 2011-03-04 Alan Modra <amodra@gmail.com>
6807 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6809 2011-03-04 Richard Guenther <rguenther@suse.de>
6812 * expmed.c (extract_bit_field_1): Prefer vector modes that
6813 vec_extract patterns can handle.
6815 2011-03-04 Richard Guenther <rguenther@suse.de>
6818 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6820 2011-03-04 Richard Henderson <rth@redhat.com>
6822 * explow.c (emit_stack_save): Remove 'after' parameter.
6823 (emit_stack_restore): Likewise.
6824 * expr.h: Update to match.
6825 * builtins.c, calls.c, stmt.c: Likewise.
6826 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6827 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6828 * function.c (expand_function_end): Insert the emit_stack_save
6829 sequence before parm_birth_insn instead of after.
6831 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
6833 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6834 (ssse3_pmaddubsw128): Ditto.
6835 (ssse3_pmaddubsw): Ditto.
6837 2011-03-03 Steve Ellcey <sje@cup.hp.com>
6839 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6841 2011-03-03 Jakub Jelinek <jakub@redhat.com>
6844 * gimplify.c (omp_add_variable): Only call omp_notice_variable
6845 on TYPE_SIZE_UNIT if it is a DECL.
6848 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6849 first operand is not is_gimple_mem_ref_addr, try to fold it.
6850 If the operand still isn't is_gimple_mem_ref_addr, clear
6853 2011-03-03 Richard Guenther <rguenther@suse.de>
6856 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6858 (refs_may_alias_p_1): For release branches return true if
6859 we are confused by our input.
6861 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6863 * config/s390/s390.c (s390_function_value): Rename to ...
6864 (s390_function_and_libcall_value): ... this.
6865 (s390_function_value): New function.
6866 (s390_libcall_value): New function.
6867 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6868 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6869 target macro definitions.
6870 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6872 2011-03-02 Joseph Myers <joseph@codesourcery.com>
6874 * config/i386/freebsd64.h (CC1_SPEC): Define.
6875 * config/i386/linux64.h (CC1_SPEC): Define.
6876 * config/i386/x86-64.h (CC1_SPEC): Don't define.
6878 2011-03-02 Anatoly Sokolov <aesok@post.ru>
6880 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6882 * config/stormy16/stormy16.c: Include reload.h.
6883 (xstormy16_memory_move_cost): New function.
6884 (TARGET_MEMORY_MOVE_COST): Define.
6886 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
6888 PR rtl-optimization/47925
6889 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6890 with side effects. Remove the more-specific check for volatile asms.
6892 2011-03-02 Alan Modra <amodra@gmail.com>
6895 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6896 toc relative addresses for valid offsets.
6898 2011-03-01 Richard Guenther <rguenther@suse.de>
6900 PR tree-optimization/47890
6901 * tree-vect-loop.c (get_initial_def_for_induction): Set
6902 related stmt properly.
6904 2011-03-01 Richard Guenther <rguenther@suse.de>
6907 * lto-streamer.c (lto_record_common_node): Also register
6910 2011-03-01 Richard Guenther <rguenther@suse.de>
6913 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6914 Do not stream DECL_ABSTRACT_ORIGIN.
6915 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6916 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6917 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6918 Do not stream DECL_ABSTRACT_ORIGIN.
6919 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6920 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6922 2011-02-28 Anatoly Sokolov <aesok@post.ru>
6924 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6925 FUNCTION_VALUE_REGNO_P): Remove.
6926 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6927 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6928 Add 'outgoing' argument.
6929 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6931 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6932 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6934 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
6937 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6938 (lookup_filename): Likewise.
6939 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6941 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
6942 Jakub Jelinek <jakub@redhat.com>
6945 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6946 (assign_stack_local_1): Change last argument type to int.
6947 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6948 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
6949 don't record padding space into frame_space_list nor use those areas.
6950 (assign_stack_local): Adjust caller.
6951 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6952 of assign_stack_local, pass 0 as last argument.
6953 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6956 2011-02-28 Jakub Jelinek <jakub@redhat.com>
6959 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6960 Use target address_mode and pointer_mode hooks instead of hardcoded
6961 Pmode and ptr_mode. Handle some simple cases of extending if
6962 POINTERS_EXTEND_UNSIGNED < 0.
6963 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6964 Call convert_debug_memory_address.
6965 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6966 convert_debug_memory_address.
6969 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6970 * configure: Regenerated.
6971 * config.in: Regenerated.
6972 * varasm.c (default_function_section): Return NULL
6973 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6975 2011-02-28 Martin Jambor <mjambor@suse.cz>
6977 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6978 the description to match the printed values.
6980 2011-02-28 Richard Guenther <rguenther@suse.de>
6982 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6983 of the copied scope tree.
6985 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6987 * doc/extend.texi (Function Attributes): Avoid deeply (and
6988 wrongly) nested tables.
6990 2011-02-27 Jakub Jelinek <jakub@redhat.com>
6993 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6994 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6995 r isn't op0 nor op1.
6997 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6999 * config/avr/avr.md: Remove magic comment for emacs.
7001 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7004 * config/avr/avr.c (avr_option_override): Use error on bad options.
7005 (avr_help): New function.
7006 (TARGET_HELP): Define.
7008 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
7011 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7012 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7014 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7016 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7017 (ARM Options): Ditto.
7018 (i386 and x86-64 Options): Ditto.
7019 (RX Options): Ditto.
7020 (SPARC Options): Ditto.
7022 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
7024 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7025 FreeBSD 6 and later. Generally use cpu generic.
7027 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7029 * doc/cpp.texi: Update copyright years.
7031 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
7034 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7036 2011-02-25 Jon Beniston <jon@beniston.com>
7039 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7040 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7041 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7042 (lm32_block_move_inline): Add type cast to remove warning.
7043 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7044 (gen_int_relational): Move declarations to start of function.
7046 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
7048 PR tree-optimization/45470
7049 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7050 can throw internally only.
7051 * tree-vect-stmts.c (vectorizable_call): Likewise.
7053 2011-02-24 Anatoly Sokolov <aesok@post.ru>
7055 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7056 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7057 * config/stormy16/stormy16-protos.h
7058 (xstormy16_preferred_reload_class): Remove.
7059 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7060 static. Change 'rclass' argument and return type to reg_class_t.
7061 (TARGET_PREFERRED_RELOAD_CLASS,
7062 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7064 2011-02-24 Richard Guenther <rguenther@suse.de>
7066 * lto-streamer-in.c (input_bb): Do not find referenced vars
7067 in debug statements.
7069 2011-02-23 Jason Merrill <jason@redhat.com>
7071 * common.opt (fabi-version): Document v5 and v6.
7073 2011-02-23 Richard Guenther <rguenther@suse.de>
7075 PR tree-optimization/47849
7076 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7078 2011-02-23 Jie Zhang <jie@codesourcery.com>
7080 * opts-common.c (decode_cmdline_option): Print empty string
7081 argument as "" in decoded->orig_option_with_args_text.
7082 * gcc.c (execute): Print empty string argument as ""
7083 in the verbose output.
7084 (do_spec_1): Keep empty string argument.
7086 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
7088 * config.gcc: Declare score-* and crx-* obsolete.
7090 2011-02-23 Jie Zhang <jie@codesourcery.com>
7092 PR rtl-optimization/47763
7093 * web.c (web_main): Ignore naked clobber when replacing register.
7095 2011-02-22 Anatoly Sokolov <aesok@post.ru>
7097 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7100 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
7103 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7105 2011-02-22 Mike Stump <mikestump@comcast.net>
7107 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7109 * configure: Regenerate.
7111 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
7113 PR rtl-optimization/46002
7114 * ira-color.c (update_copy_costs): Change class intersection
7115 test to reg_class_contents[] test of 'hard_regno'.
7117 2011-02-21 Joseph Myers <joseph@codesourcery.com>
7119 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7121 * config/hpux11.opt (mt): Likewise.
7122 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7123 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7124 * config/vax/elf.opt (mno-asm-pic): Likewise.
7125 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7127 2011-02-21 Mike Stump <mikestump@comcast.net>
7130 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7131 tree so we can get save the type.
7132 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7133 for CFString instead of trying to use past the end of the builtins.
7134 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7135 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7136 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7137 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7138 Rename to darwin_builtin_cfstring.
7139 (darwin_init_cfstring_builtins): Return the built type.
7141 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
7144 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7145 (_mm256_insert_epi64): Use _mm_insert_epi64.
7147 2011-02-21 Anatoly Sokolov <aesok@post.ru>
7149 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7150 * config/stormy16/stormy16-protos.h
7151 (xstormy16_mode_dependent_address_p): Remove.
7152 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7153 Make static. Change return type to bool. Change argument type to
7154 const_rtx. Remove dead code.
7155 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7157 2011-02-21 Richard Guenther <rguenther@suse.de>
7160 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7161 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7162 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7164 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7165 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7167 2011-02-20 Richard Guenther <rguenther@suse.de>
7170 * tree.c (free_lang_data_in_decl): Clean builtins from
7171 the TU decl BLOCK_VARS.
7173 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
7177 * haifa-sched.c (fix_tick_ready): Skip tick computation
7180 2011-02-19 Richard Guenther <rguenther@suse.de>
7183 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7184 Remove lazy BLOCK_VARS streaming.
7185 (lto_input_ts_block_tree_pointers): Likewise.
7186 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7188 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7190 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7192 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7194 * config/i386/biarch32.h, config/i386/mach.h,
7195 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7197 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7200 * config/i386/i386.md (peephole2 for shift and plus): Use
7201 operands[1] original mode in the first insn.
7203 2011-02-18 Mike Stump <mikestump@comcast.net>
7205 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7207 2011-02-18 Jan Hubicka <jh@suse.cz>
7210 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7211 to zero when the function is not inlinable at all.
7213 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7215 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7216 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7217 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7218 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7219 * config/pa/t-pa64: Likewise.
7220 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7222 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7225 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7227 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7230 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7232 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7234 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7235 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7236 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7237 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7238 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7239 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7240 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7241 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7242 m32r_legitimate_address_p): New functions.
7243 * config/m32r/constraints.md (constraint "S"): Don't use
7244 STORE_PREINC_PREDEC_P.
7245 (constraint "U"): Don't use LOAD_POSTINC_P.
7247 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7249 PR rtl-optimization/46178
7250 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7251 compute ira_hard_regno_cover_class[].
7253 2011-02-18 Richard Guenther <rguenther@suse.de>
7256 * lto-streamer.h (lto_global_var_decls): Declare.
7257 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7258 statics for global var processing.
7260 2011-02-18 Richard Guenther <rguenther@suse.de>
7262 PR tree-optimization/47737
7263 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7264 edge dominance check.
7266 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7269 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7270 avoid invalid rtx sharing.
7272 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7274 * doc/cpp.texi (Obsolete Features): Add background on the
7275 origin of assertions.
7277 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7279 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7281 * config/darwin.c (output_objc_section_asm_op): Added support for
7283 (is_objc_metadata): New.
7284 (darwin_objc2_section): New.
7285 (darwin_objc1_section): New.
7286 (machopic_select_section): Added support for ABI v1 and v2.
7287 (darwin_emit_objc_zeroed): New.
7288 (darwin_output_aligned_bss): Detect objc metadata and treat it
7290 (darwin_asm_output_aligned_decl_common): Same.
7291 (darwin_asm_output_aligned_decl_local): Same.
7292 * config/darwin-sections.def: Updated for ABI v1 and v2.
7293 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7294 compiling Objective-C code for the NeXT runtime, default to using
7295 ABI version 0 for 32-bit, and version 2 for 64-bit.
7297 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7299 * common.opt (optimize_fast): New Variable.
7300 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7301 instead of local variable ofast.
7303 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7305 * doc/invoke.texi (fobjc-abi-version): Documented.
7306 (fobjc-nilcheck): Documented.
7307 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7310 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7313 * common.opt (export-dynamic): New Driver option.
7314 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7316 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7318 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7320 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7321 Jan Hubicka <jh@suse.cz>
7325 * cfgexpand.c (account_used_vars_for_block): Remove.
7326 (estimated_stack_frame_size): Use referenced vars.
7327 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7328 that were referenced in the original function. Test src_fn
7329 rather than cfun. Drop redundant get_var_ann.
7330 (setup_one_parameter): Drop redundant get_var_ann.
7331 (declare_return_variable): Likewise.
7332 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7333 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7334 * ipa-inline.c (compute_inline_parameters): Do not compute
7335 disregard_inline_limits here.
7336 (compute_inlinable_for_current, pass_inlinable): New.
7337 (pass_inline_parameters): Require PROP_referenced_vars.
7338 * cgraphunit.c (cgraph_process_new_functions): Don't run
7339 compute_inline_parameters explicitly unless function is in SSA form.
7340 (cgraph_analyze_function): Set .disregard_inline_limits.
7341 * tree-sra.c (convert_callers): Compute inliner parameters
7342 only for functions already in SSA form.
7344 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7346 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7347 -mlittle-endian-data.
7349 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7351 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7352 -mno-fpu, not -fpu and -no-fpu.
7353 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7354 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7356 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7359 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7360 input reload with PLUS RTX.
7362 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7364 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7365 of InverseVar(MDMX).
7367 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7369 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7372 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7374 * config/mn10300/mn10300.opt (mno-crt0): New.
7376 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7378 * config/m68k/uclinux.opt (static-libc): New Driver option.
7380 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7382 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7384 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7386 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7387 %{muser-extend-enabled}.
7389 2011-02-16 Richard Guenther <rguenther@suse.de>
7391 PR tree-optimization/47738
7392 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7393 the TODO from tree_predictive_commoning.
7395 2011-02-15 Jeff Law <law@redhat.com>
7398 2011-01-25 Jeff Law <law@redhat.com>
7400 PR rtl-optimization/37273
7401 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7402 handle them like argument loads from stack slots. Do not double
7403 count memory for memory constants and argument loads from stack slots.
7405 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7408 * combine.c (cant_combine_insn_p): Revert the last change.
7410 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7413 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7414 mode for vector constants. Remove code that checks for TImode.
7416 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7420 * cgraph.h (compute_inline_parameters): Return void.
7421 * ipa-inline.c (compute_inline_parameters): Adjust.
7423 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7427 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7429 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7430 * ipa-inline.c (compute_inline_parameters): Adjust.
7432 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7436 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7437 Adjust all users. Pass FN to...
7438 * tree-flow-inline.h (first_referenced_var): ... this. Add
7440 * ipa-struct-reorg.c: Adjust.
7441 * tree-dfa.c: Adjust.
7442 * tree-into-ssa.c: Adjust.
7443 * tree-sra.c: Adjust.
7444 * tree-ssa-alias.c: Adjust.
7445 * tree-ssa-live.c: Adjust.
7446 * tree-ssa.c: Adjust.
7447 * tree-ssanames.c: Adjust.
7448 * tree-tailcall.c: Adjust.
7450 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7454 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7456 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7457 * tree-flow-inline.h: Adjust.
7458 * gimple-pretty-print.c: Adjust.
7459 * tree-into-ssa.c: Adjust.
7460 * tree-ssa.c: Adjust.
7461 * cfgexpand.c: Adjust.
7463 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7465 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7466 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7467 (EXTRA_CONSTRAINT): Delete.
7468 * config/iq2000/constraints.md: New file.
7469 * config/iq2000/iq2000.md: Include it.
7470 (define_insn ""): Delete.
7471 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7472 unsupported constraint letters from patterns.
7473 (call_value, call_value_internal1): Likewise.
7474 (call_value_multiple_internal1): Likewise.
7476 2011-02-15 Nick Clifton <nickc@redhat.com>
7478 * config/mn10300/mn10300.c: Include tm-constrs.h.
7479 (struct liw_data): New data structure describing an LIW candidate
7481 (extract_bundle): Use struct liw_data. Allow small integer
7482 operands for some instructions.
7483 (check_liw_constraints): Use struct liw_data. Remove swapped
7484 parameter. Add comments describing the checks. Fix bug when
7485 assigning the source of liw1 to the source of liw2.
7486 (liw_candidate): Delete. Code moved into extract_bundle.
7487 (mn10300_bundle_liw): Use struct liw_data. Check constraints
7489 * config/mn10300/predicates.md (liw_operand): New predicate.
7490 Allows registers and small integer constants.
7491 * config/mn10300/constraints.md (O): New constraint. Accetps
7492 integers in the range -8 to +7 inclusive.
7493 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7494 for moving a small integer into a register. Give this alternative
7496 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7497 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7498 using the J,K,L and M constraints,
7499 (liw): Remove SI mode on second operands to allow for HI and QI
7501 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
7504 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7507 * combine.c (cant_combine_insn_p): Check zero/sign extended
7510 2011-02-15 Richard Guenther <rguenther@suse.de>
7512 PR tree-optimization/47743
7513 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7514 for a non-type-compatible VN lookup bail out.
7516 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7518 * config/fr30/constraints.md: New file.
7519 * config/fr30/fr30.md: Include it.
7520 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7521 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7522 (EXTRA_CONSTRAINT): Delete.
7524 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7526 * config/frv/constraints.md: New file.
7527 * config/frv/predicates.md: Include it.
7528 * config/frv/frv.c (reg_class_from_letter): Delete.
7529 (frv_option_override): Don't initialize it.
7530 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7531 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7532 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7533 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7534 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7535 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7536 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7537 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7538 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7539 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7540 (REG_CLASS_FROM_CONSTRAINT): Delete.
7542 2011-02-15 Jakub Jelinek <jakub@redhat.com>
7545 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7546 if frame size is 0 in a leaf function.
7548 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7551 * config/alpha/host-osf.c: New file.
7552 * config/alpha/x-osf: New file.
7553 * config.host (alpha*-dec-osf*): Use it.
7555 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7557 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7558 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7559 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7560 (rx_mode_dependent_address_p): ...this. Make static. Change argument
7562 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7564 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7566 * config/stormy16/constraints.md: New file.
7567 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7568 Use satisfies_constraint_Q and satisfies_constraint_R.
7569 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7571 (xstormy16_legitiamte_address_p): Declare.
7572 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7573 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7574 (EXTRA_CONSTRAINT): Delete.
7575 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7577 (xstormy16_extra_constraint_p): Delete.
7579 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
7581 PR tree-optimization/46494
7582 * loop-unroll.c (split_edge_and_insert): Adjust comment.
7583 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7584 (pass_rtl_loop_done): Add TODO_verify_flow.
7585 * fwprop.c (pass_rtl_fwprop): Likewise.
7586 * modulo-sched.c (pass_sms): Likewise.
7587 * tree-ssa-dom.c (pass_dominator): Likewise.
7588 * tree-ssa-loop-ch.c (pass_ch): Likewise.
7589 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7590 (pass_tree_loop_done): Likewise.
7591 * tree-ssa-pre.c (execute_pre): Likewise.
7592 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7593 * tree-ssa-sink.c (pass_sink_code): Likewise.
7594 * tree-vrp.c (pass_vrp): Likewise.
7596 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7598 * config/v850/constraints.md: New file.
7599 * config/v850/v850.md: Include it.
7600 * config/v850/predicates.md (reg_or_0_operand): Use
7601 satisfies_constraint_G.
7602 (special_symbolref_operand): Use satisfies_constraint_K.
7603 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7604 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7605 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7606 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7607 (EXTRA_CONSTRAINT): Delete.
7608 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7609 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7610 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7612 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7615 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7618 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7620 * config/mcore/constraints.md: New file.
7621 * config/mcore/mcore.md: Include it.
7622 * config/mcore/mcore.c (reg_class_from_letter): Delete.
7623 * config/mcore/mcore.h (reg_class_from_letter): Delete.
7624 (REG_CLASS_FROM_LETTER): Delete.
7625 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7626 insn_const_int_ok_for_constraint.
7627 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7628 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7629 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7630 (EXTRA_CONSTRAINT): Delete.
7632 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7635 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7636 (IS_SIGHANDLER): Define.
7637 (sparc64_is_sighandler): New function, split off from
7638 sparc64_fallback_frame_state.
7639 (sparc_is_sighandler): New function, split off from
7640 sparc_fallback_frame_state.
7641 (sparc64_fallback_frame_state): Merge with ...
7642 (sparc_fallback_frame_state): ... this into ...
7643 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7644 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
7645 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
7646 stack instead of hardcoded offsets.
7648 2011-02-14 Andriy Gapon <avg@freebsd.org>
7651 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7653 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7655 * configure: Regenerate.
7657 2011-02-12 Joseph Myers <joseph@codesourcery.com>
7660 * gcc.c (asm_options): Correct spec matching --target-help.
7662 2011-02-12 Martin Jambor <mjambor@suse.cz>
7664 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7665 to gimple call error.
7667 2011-02-12 Mike Stump <mikestump@comcast.net>
7669 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7670 comments in backslash regions.
7672 2011-02-12 Mike Stump <mikestump@comcast.net>
7673 Jakub Jelinek <jakub@redhat.com>
7674 Iain Sandoe <iains@gcc.gnu.org>
7677 * dwarf2out.c (output_cfa_loc): When required, apply the
7678 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7679 (output_loc_sequence): Likewise.
7680 (output_loc_operands_raw): Likewise.
7681 (output_loc_sequence_raw): Likewise.
7682 (output_cfa_loc): Likewise.
7683 (output_loc_list): Suppress register number adjustment when
7684 calling output_loc_sequence()
7685 (output_die): Likewise.
7687 2011-02-12 Anatoly Sokolov <aesok@post.ru>
7689 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7691 * config/xtensa/xtensa.c (xtensa_register_move_cost,
7692 xtensa_memory_move_cost): New functions.
7693 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7695 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
7698 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7699 in the current directory.
7700 * configure: Rebuilt.
7702 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7704 * config/darwin.c (darwin_override_options): Add a hunk missed
7705 from the commit of r168571. Trim comment line lengths and
7706 correct indents of the preceding block.
7708 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7710 * gcc.c (driver_handle_option): Concatenate the argument to -F with
7713 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7715 * common.opt (nostartfiles): New Driver option.
7717 2011-02-11 Xinliang David Li <davidxl@google.com>
7719 PR tree-optimization/47707
7720 * tree-chrec.c (convert_affine_scev): Keep type precision.
7722 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
7724 PR tree-optimization/47420
7725 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7727 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
7729 PR rtl-optimization/47614
7730 * rtl.h (check_for_inc_dec): Declare.
7731 * dse.c (check_for_inc_dec): Externalize...
7732 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7733 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7735 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7738 * gcc.c (main): Do not compile inputs if there were errors in
7740 * opts-common.c (read_cmdline_option): Check for wrong language
7741 after other error checks.
7743 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
7745 * cgraph.c: Fix comment typos.
7746 * cgraph.h: Likewise.
7747 * cgraphunit.c: Likewise.
7748 * ipa-cp.c: Likewise.
7749 * ipa-inline.c: Likewise.
7750 * ipa-prop.c: Likewise.
7751 * ipa-pure-const.c: Likewise.
7752 * ipa-ref.c: Likewise.
7753 * ipa-reference.c: Likewise.
7755 2011-02-11 Jakub Jelinek <jakub@redhat.com>
7758 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7760 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7763 * doc/sourcebuild.texi (Require Support): Document
7764 dg-require-ascii-locale.
7766 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
7768 * doc/lto.texi (Write summary): Fix missing parentheses.
7770 2011-02-10 DJ Delorie <dj@redhat.com>
7772 * config/m32c/m32c.c (m32c_option_override): Disable
7773 -fcombine-stack-adjustments until flag value tracking and compare
7774 optimization can be rewritten.
7776 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
7778 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7780 (PROCESSOR_DEFAULT64): Likewise.
7782 2011-02-10 Richard Henderson <rth@redhat.com>
7784 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7785 change from 2011-02-03.
7786 * config/rx/rx.c (flags_from_code): Likewise.
7787 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7788 is valid, n/pz otherwise.
7789 (rx_select_cc_mode): Return CCmode if Y is not zero.
7791 2011-02-10 Richard Guenther <rguenther@suse.de>
7793 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7795 2011-02-10 Richard Guenther <rguenther@suse.de>
7797 PR tree-optimization/47677
7798 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7800 2011-02-10 Jakub Jelinek <jakub@redhat.com>
7803 * combine.c (make_compound_operation): Only change shifts into
7804 multiplication for SCALAR_INT_MODE_P.
7806 2011-02-10 Jie Zhang <jie@codesourcery.com>
7810 2011-02-05 Jie Zhang <jie@codesourcery.com>
7812 * web.c (entry_register): Don't clobber the number of the
7813 first uninitialized reference in used[].
7815 2011-02-09 Richard Guenther <rguenther@suse.de>
7817 PR tree-optimization/47664
7818 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7821 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
7825 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7827 (PROCESSOR_DEFAULT64): Same.
7828 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7830 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7832 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7834 2011-02-09 Martin Jambor <mjambor@suse.cz>
7837 * tree-sra.c (struct access): New flags grp_scalar_read and
7838 grp_scalar_write. Changed description of assignment read and write
7840 (dump_access): Dump new flags, reorder all of them.
7841 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7842 to detect multiple scalar reads.
7843 (analyze_access_subtree): Use the new scalar read write flags instead
7844 of the old flags. Adjusted comments.
7846 2011-02-08 DJ Delorie <dj@redhat.com>
7849 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7852 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7854 * config/m68k/uclinux.opt: New.
7855 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7857 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7859 * config/cris/elf.opt (sim): New Driver option.
7861 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7863 * config/xtensa/elf.opt: New.
7864 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7866 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7868 * config/vax/elf.opt: New.
7869 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7871 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7873 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7875 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7877 * config/gnu-user.opt: New.
7878 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7879 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7880 *-*-uclinux*): Use gnu-user.opt.
7882 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
7884 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7885 * config/i386/gnu.h (CPP_SPEC): Likewise.
7887 2011-02-08 Ian Lance Taylor <iant@google.com>
7889 * common.opt (fcx-limited-range): Add SetByCombined flag.
7890 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7891 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7892 (fassociative-math, freciprocal-math): Likewise.
7893 (funsafe-math-optimizations): Likewise.
7894 * opth-gen.awk: Handle SetByCombined.
7895 * optc-gen.awk: Likewise.
7896 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7897 (set_unsafe_math_optimizations_flags): Likewise.
7898 * doc/options.texi (Option properties): Document SetByCombined.
7900 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7902 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7903 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7904 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7905 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7906 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7908 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
7910 PR tree-optimization/46834
7911 PR tree-optimization/46994
7912 PR tree-optimization/46995
7913 * graphite-sese-to-poly.c (used_outside_reduction): New.
7914 (detect_commutative_reduction): Call used_outside_reduction.
7915 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7916 translate_scalar_reduction_to_array only when at least one
7917 loop-phi/close-phi tuple has been detected.
7919 2011-02-08 Richard Guenther <rguenther@suse.de>
7922 * tree-vect-generic.c (expand_vector_operations_1): Update
7924 (expand_vector_operations): ... not here. Cleanup EH info
7925 and the CFG if required.
7927 2011-02-08 Richard Guenther <rguenther@suse.de>
7929 PR tree-optimization/47641
7930 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7931 require type compatibility.
7933 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7935 * gimple-low.c (lower_function_body): Don't remove the location of
7936 the return statement here.
7937 (lower_gimple_return): Do it here instead but only if the return
7938 statement is actually used twice.
7940 2011-02-08 Richard Guenther <rguenther@suse.de>
7942 PR tree-optimization/47632
7943 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7944 unused up_to_stmt parameter, return whether cfg-cleanup is
7945 necessary, remove EH info properly.
7946 (forward_propagate_into_gimple_cond): Adjust caller.
7947 (forward_propagate_into_cond): Likewise.
7948 (forward_propagate_comparison): Likewise.
7949 (tree_ssa_forward_propagate_single_use_vars): Make
7950 forward_propagate_comparison case similar to the two others.
7952 2011-02-08 Nick Clifton <nickc@redhat.com>
7954 * config/mn10300/mn10300.opt (mliw): New command line option.
7955 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7956 (liw_bundling): New automaton.
7957 (liw): New attribute.
7958 (liw_op): New attribute.
7959 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7960 (movsi_internal): Add LIW attributes.
7964 (addsi3): Separate register and immediate alternatives.
7969 (lshrsi3): Likewise.
7970 (ashrsi3): Likewise.
7972 * config/mn10300/mn10300.c (liw_op_names): New
7973 (mn10300_print_operand): Handle 'W' operand descriptor.
7974 (extract_bundle): New function.
7975 (check_liw_constraints): New function.
7976 (liw_candidate): New function.
7977 (mn10300_bundle_liw): New function.
7978 (mn10300_reorg): New function.
7979 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7980 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7981 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7982 __LIW__ or __NO_LIW__.
7983 * doc/invoke.texi: Describe the -mliw command line option.
7985 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7987 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7988 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7989 pthread_mutex_unlock): Remove.
7990 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7991 * config/pa/t-pa64: Likewise.
7992 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7993 shared libc if not linking against libpthread.
7994 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7996 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
7999 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8000 on 10.6 and later to ensure that we always use the unwinder from
8001 the system. Only add -no_compact_unwind when tarteting darwin
8004 2011-02-07 Steve Ellcey <sje@cup.hp.com>
8007 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8008 (vec_interleave_lowv2sf): Ditto.
8009 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8010 (vec_extract_oddv2sf): Ditto.
8012 2011-02-07 Mike Stump <mikestump@comcast.net>
8015 Add __ieee_divdc3 entry point.
8016 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8018 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8019 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8020 * config/darwin.c (darwin_rename_builtins): Add.
8021 * config/darwin-protos.h (darwin_rename_builtins): Add.
8023 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8026 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8029 2011-02-07 Mike Stump <mikestump@comcast.net>
8031 * config/darwin.opt (mmacosx-version-min): Update default OS version.
8033 2011-02-07 Denis Chertykov <chertykov@gmail.com>
8036 * config/avr/libgcc.S (exit): Move .endfunc
8038 2011-02-07 Richard Guenther <rguenther@suse.de>
8040 PR tree-optimization/47615
8041 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8042 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8043 (run_scc_vn): Initialize it.
8044 (visit_reference_op_load): Use it.
8045 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8047 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8049 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8050 DImode trapping arithmetic libfuncs.
8052 2011-02-07 Richard Guenther <rguenther@suse.de>
8054 PR tree-optimization/47621
8055 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8057 (execute_update_addresses_taken): ... here. Make it more
8058 conservative in what we accept.
8060 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8062 * config/sparc/freebsd.h (ASM_SPEC): Define.
8063 * config/sparc/vxworks.h (ASM_SPEC): Define.
8065 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8067 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8069 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
8071 * doc/invoke.texi: Remove reference to compiler internals from
8074 * reg-notes.def: Remove REG_VALUE_PROFILE.
8075 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8077 2011-02-05 Jakub Jelinek <jakub@redhat.com>
8080 * varasm.c (default_section_type_flags): If decl is NULL,
8081 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8083 2011-02-05 Jie Zhang <jie@codesourcery.com>
8086 * web.c (entry_register): Don't clobber the number of the
8087 first uninitialized reference in used[].
8089 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
8091 PR tree-optimization/46194
8092 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8093 (build_classic_dist_vector_1): Do not represent classic distance
8094 vectors when the access functions are variating in different loops.
8096 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8098 * config/mips/iris6.opt: New.
8099 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8101 2011-02-04 Richard Henderson <rth@redhat.com>
8102 Steve Ellcey <sje@cup.hp.com>
8105 * config/ia64/predicates.md (mux1_brcst_element): New.
8106 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8107 * config/ia64/ia64.c (ia64_unpack_assemble): New.
8108 (ia64_unpack_sign): New.
8109 (ia64_expand_unpack): Rewrite using new routines.
8110 (ia64_expand_widen_sum): Ditto.
8111 (ia64_expand_dot_prod_v8qi): Ditto.
8112 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8113 routines, add endian check.
8114 (pmpy2_even): Rename from pmpy2_r, add endian check.
8115 (pmpy2_odd): Rename from pmpy2_l, add endian check.
8116 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8117 (vec_widen_smult_hi_v4hi): Ditto.
8118 (vec_widen_umult_lo_v4hi): Ditto.
8119 (vec_widen_umult_hi_v4hi): Ditto.
8120 (mulv2si3): Change endian checks.
8121 (sdot_prodv4hi): Rewrite with new calls.
8122 (udot_prodv4hi): New.
8123 (vec_pack_ssat_v4hi): Add endian check.
8124 (vec_pack_usat_v4hi): Ditto.
8125 (vec_pack_ssat_v2si): Ditto.
8126 (max1_even): Rename from max1_r, add endian check.
8127 (max1_odd): Rename from max1_l, add endian check.
8128 (*mux1_rev): Format change.
8130 (*mux1_shuf): Ditto.
8132 (*mux1_brcst_v8qi): Use new predicate.
8133 (vec_extract_evenv8qi): Remove endian check.
8134 (vec_extract_oddv8qi): Ditto.
8135 (vec_interleave_lowv4hi): Format change.
8136 (vec_interleave_highv4hi): Ditto.
8137 (mix2_even): Rename from mix2_r, add endian check.
8138 (mix2_odd): Rename from mux2_l, add endian check.
8139 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8140 (vec_extract_evenodd_helper): Format change.
8141 (vec_extract_evenv4hi): Remove endian check.
8142 (vec_extract_oddv4hi): Remove endian check.
8143 (vec_interleave_lowv2si): Format change.
8144 (vec_interleave_highv2si): Format change.
8145 (vec_initv2si): Remove endian check.
8146 (vecinit_v2si): Add endian check.
8147 (reduc_splus_v2sf): Add endian check.
8148 (reduc_smax_v2sf): Ditto.
8149 (reduc_smin_v2sf): Ditto.
8150 (vec_initv2sf): Remove endian check.
8151 (fpack): Add endian check.
8152 (fswap): Add endian check.
8153 (vec_interleave_highv2sf): Add endian check.
8154 (vec_interleave_lowv2sf): Add endian check.
8155 (fmix_lr): Add endian check.
8156 (vec_setv2sf): Format change.
8157 (*vec_extractv2sf_0_be): Use shift to extract operand.
8158 (*vec_extractv2sf_1_be): New.
8159 (vec_pack_trunc_v4hi): Add endian check.
8160 (vec_pack_trunc_v2si): Format change.
8162 2011-02-04 Jakub Jelinek <jakub@redhat.com>
8165 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
8166 do bb, locus and block comparison and disallow loads if it is not set.
8167 (stmt_is_replaceable_p): New function.
8168 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8170 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8171 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8173 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8175 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8177 * config/rs6000/xilinx.opt: New.
8178 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8180 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8182 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8184 2011-02-03 Anatoly Sokolov <aesok@post.ru>
8186 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8187 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8188 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8189 secondary_reload_info, xtensa_secondary_reload): Remove.
8190 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8191 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8192 (xtensa_preferred_reload_class): Make static. Change return and
8193 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8194 Use CONST_DOUBLE_P predicate.
8195 (xtensa_preferred_output_reload_class): New function.
8196 (xtensa_secondary_reload): Make static.
8198 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8200 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8201 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8202 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8204 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8207 * output.h (SECTION_RELRO): Define.
8208 (SECTION_MACH_DEP): Adjust.
8209 (get_variable_section): New prototype.
8210 * varpool.c (varpool_finalize_named_section_flags): New function.
8211 (varpool_assemble_pending_decls): Call it.
8212 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8213 * cgraphunit.c (cgraph_output_in_order): Call
8214 varpool_finalize_named_section_flags.
8215 * varasm.c (get_section): Allow section flags conflicts between
8216 relro and read-only sections if the section hasn't been declared yet.
8217 Set SECTION_OVERRIDE after diagnosing section type conflict.
8218 (get_variable_section): No longer static.
8219 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8220 readonly sections that need relocations.
8221 (decl_readonly_section_1): New function.
8222 (decl_readonly_section): Use it.
8225 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8226 Steve Ellcey <sje@cup.hp.com>
8229 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8230 if section attribute used.
8232 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8234 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8235 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8236 (darwin_init_sections): Remove assertion.
8238 2011-02-03 Nick Clifton <nickc@redhat.com>
8240 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8242 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8243 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8244 instead of "n" and "pz".
8245 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8248 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8251 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8252 fma, expand FMA_EXPR as fma{,f,l} call.
8255 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8256 copy them into a unsigned char variable and pass address of it to
8257 lto_output_data_stream.
8260 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8261 around backend_init_target and lang_dependent_init_target calls.
8262 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8263 (verify_cgraph_node): Don't call set_cfun here. Use
8264 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8265 Set error_found for incorrectly represented calls to thunks.
8267 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8270 PR rtl-optimization/43494
8271 * rtl.h (for_each_inc_dec_fn): New type.
8272 (for_each_inc_dec): Declare.
8273 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8274 (for_each_inc_dec_find_inc_dec): New fn.
8275 (for_each_inc_dec_find_mem): New fn.
8276 (for_each_inc_dec): New fn.
8277 * dse.c (struct insn_size): Remove.
8278 (replace_inc_dec, replace_inc_dec_mem): Remove.
8279 (emit_inc_dec_insn_before): New fn.
8280 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8281 (canon_address): Pass mem modes to cselib_lookup.
8282 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8283 (cselib_lookup_from_insn): Likewise.
8284 (cselib_subst_to_values): Likewise.
8285 * cselib.c (find_slot_memmode): New var.
8286 (cselib_find_slot): New fn. Use it instead of
8287 htab_find_slot_with_hash everywhere.
8288 (entry_and_rtx_equal_p): Use find_slot_memmode.
8289 (autoinc_split): New fn.
8290 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8291 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8292 Deal with autoinc. Special-case recursion into MEMs.
8293 (cselib_hash_rtx): Likewise.
8294 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8295 address and MEM modes.
8296 (cselib_subst_to_values): Add memmode, pass it on.
8298 (cselib_lookup): Add memmode argument, pass it on.
8299 (cselib_lookup_from_insn): Add memmode.
8300 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8301 (struct cselib_record_autoinc_data): New.
8302 (cselib_record_autoinc_cb): New fn.
8303 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8304 mode to cselib_lookup. Reset autoinced REGs here instead of...
8305 (cselib_process_insn): ... here.
8306 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8308 (add_uses): Likewise, also to cselib_subst_to_values.
8309 (add_stores): Likewise.
8310 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8311 cselib_subst_to_values.
8312 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8313 * gcse.c (do_local_cprop): Adjusted.
8314 * postreload.c (reload_cse_simplify_set): Adjusted.
8315 (reload_cse_simplify_operands): Adjusted.
8316 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8318 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8320 PR tree-optimization/45122
8321 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8322 unsafe assumptions when there's more than one loop exit.
8324 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8327 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8328 Document using vector double with the load/store builtins, and
8329 that the load/store builtins always use Altivec instructions.
8331 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8332 to use altivec memory instructions, even on VSX.
8333 (vector_altivec_store_<mode>): Ditto.
8335 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8338 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8339 V2DF, V2DI support to load/store overloaded builtins.
8341 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8342 altivec load/store builtins for V2DF/V2DI types.
8344 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8345 set avoid indexed addresses on power6 if -maltivec.
8346 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8347 vector_altivec_load/vector_altivec_store builtins.
8348 (altivec_expand_st_builtin): Ditto.
8349 (altivec_expand_builtin): Add VSX memory builtins.
8350 (rs6000_init_builtins): Add V2DI types to internal types.
8351 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8352 load/store builtins.
8353 (rs6000_address_for_altivec): Insure memory address is appropriate
8356 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8357 vec_vsx_ld and vec_vsx_st.
8358 (vsx_store_<mode>): Ditto.
8360 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8361 variables to hold long long types for VSX vector memory builtins.
8362 (RS6000_BTI_unsigned_long_long): Ditto.
8363 (long_long_integer_type_internal_node): Ditti.
8364 (long_long_unsigned_type_internal_node): Ditti.
8366 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8367 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8368 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8370 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8372 (vec_vsx_st): Ditto.
8374 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8376 * config/pa/pa-hpux10.opt: New.
8377 * config/hpux11.opt (pthread): New Driver option.
8378 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8379 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8381 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8383 * config/ia64/vms.opt: New.
8384 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8386 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8389 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8390 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8391 generator functions.
8392 (vsx_floatuns<VSi><mode>2): Ditto.
8393 (vsx_fix_trunc<mode><VSi>2): Ditto.
8394 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8396 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8398 * config/i386/djgpp.opt (posix): New Driver option.
8400 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8402 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8403 Move to the unsupported targets list.
8405 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8407 PR rtl-optimization/47525
8408 * df-scan.c: Update copyright years.
8409 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8410 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8412 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8414 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8415 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8416 (ASM_OUTPUT_ASCII): Remove.
8417 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8419 2011-02-02 Jeff Law <law@redhat.com>
8422 * reload.c (find_reloads_address): Handle reg+d address where both
8423 components are invalid by reloading the entire address.
8425 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8426 Richard Guenther <rguenther@suse.de>
8428 PR tree-optimization/40979
8430 * passes.c (init_optimization_passes): After LIM call copy_prop
8431 and DCE to clean up.
8432 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8434 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8436 PR tree-optimization/47576
8437 PR tree-optimization/47555
8438 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8439 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8440 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8441 * tree-scalar-evolution.c (follow_ssa_edge): Use
8442 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8444 2011-02-02 Richard Guenther <rguenther@suse.de>
8446 PR tree-optimization/47566
8447 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8449 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8453 * tree-inline.c (declare_return_variable): Remove unused caller
8458 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8459 * cfgexpand.c (account_used_vars_for_block): Use them.
8460 * tree-nrv.c (tree_nrv): Likewise.
8461 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8462 (dump_scope_block): Likewise.
8463 (remove_unused_locals): Likewise.
8467 * tree-inline.c (declare_return_variable): Add result decl to
8468 local decls only once.
8469 * gimple-low.c (record_vars_into): Mark newly-created variables
8472 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8478 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8480 (no_real_insns_p, schedule_block, set_priorities): Drop special
8481 treatment of boundary debug insns.
8482 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8483 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8484 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8485 (BOUNDARY_DEBUG_INSN_P): Likewise.
8486 (SCHEDULE_DEBUG_INSN_P): Likewise.
8487 * sched-rgn.c (init_ready_list): Drop special treatment of
8488 boundary debug insns.
8489 * final.c (rest_of_clean_state): Clear notes' BB.
8491 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8493 * config/openbsd.opt (assert=): New Driver option.
8495 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8497 * config/i386/nto.opt: New.
8498 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8500 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8502 * config/i386/netware.opt: New.
8503 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8505 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8507 * config/interix.opt (posix): New Driver option.
8509 2011-02-01 DJ Delorie <dj@redhat.com>
8511 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8513 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8516 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
8518 PR tree-optimization/47561
8519 * toplev.c (process_options): Print the Graphite flags. Add
8520 flag_loop_flatten to the list of options requiring Graphite.
8522 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8524 * config/i386/cygming.opt (posix): New Driver option.
8526 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8528 * config/arm/vxworks.opt: New.
8529 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8531 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8533 * config/alpha/elf.opt: New.
8534 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8535 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8537 2011-02-01 Richard Guenther <rguenther@suse.de>
8539 PR tree-optimization/47559
8540 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8541 store-motion on references that can throw.
8543 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
8545 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8546 * tree-pass.h (TDF_CSELIB): New macro.
8547 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8548 cselib_lookup): Check for it rather than for TDF_DETAILS.
8550 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
8553 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8556 * opts.c (finish_options): Don't add x_aux_base_name if it is
8559 2011-02-01 Richard Guenther <rguenther@suse.de>
8561 PR tree-optimization/47555
8563 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
8565 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8567 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
8570 * config/lm32/t-lm32: Add multilib for all CPU options.
8572 2011-02-01 Richard Guenther <rguenther@suse.de>
8574 PR tree-optimization/47541
8575 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8576 sure to have a field at offset zero.
8578 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8580 * config/arc/arc.opt (EB, EL): New Driver options.
8582 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8584 * config/alpha/osf5.opt: New.
8585 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8587 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8589 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8591 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
8593 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8595 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8596 is an alias of -floop-interchange and that it requires the
8597 Graphite infrastructure.
8598 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8599 flag_loop_interchange based on the value of flag_tree_loop_linear.
8601 2011-01-31 Jakub Jelinek <jakub@redhat.com>
8602 Richard Guenther <rguenther@suse.de>
8604 PR tree-optimization/47538
8605 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8606 type instead of r1type, except for comparisons. For right
8607 shifts and comparisons punt if there are mismatches in
8608 sizetype vs. non-sizetype types.
8610 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8612 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8615 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8617 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8619 * configure: Regenerate.
8621 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8623 * configure.ac (gcc_cv_ld_static_option): Define.
8624 (gcc_cv_ld_dynamic_option): Define.
8625 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8627 (HAVE_LD_STATIC_DYNAMIC): Update message.
8628 (LD_STATIC_OPTION): Define.
8629 (LD_DYNAMIC_OPTION): Define.
8630 * configure: Regenerate.
8631 * config.in: Regenerate.
8632 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8633 HAVE_LD_STATIC_DYNAMIC]: Use them.
8635 2011-01-31 Nick Clifton <nickc@redhat.com>
8637 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8638 registers inside interrupt handlers if the handler is not a leaf
8641 2011-01-31 Nick Clifton <nickc@redhat.com>
8643 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8644 reg_renumber returning an INVALID_REGNUM.
8646 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8649 * doc/install.texi: Document host options discarded when cross
8650 configuring target libraries.
8652 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8655 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8658 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8660 (no_real_insns_p, schedule_block, set_priorities): Drop special
8661 treatment of boundary debug insns.
8662 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8663 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8664 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8665 (BOUNDARY_DEBUG_INSN_P): Likewise.
8666 (SCHEDULE_DEBUG_INSN_P): Likewise.
8667 * sched-rgn.c (init_ready_list): Drop special treatment of
8668 boundary debug insns.
8669 * final.c (rest_of_clean-state): Clear notes' BB.
8671 2011-01-31 Alan Modra <amodra@gmail.com>
8673 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8674 toc relative expressions as we do in print_operand_address.
8676 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
8678 * doc/extend.texi: Follow spelling conventions.
8679 * doc/invoke.texi: Fix a typo.
8681 2011-01-30 Joseph Myers <joseph@codesourcery.com>
8683 * config/hpux11.opt: New.
8684 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8685 ia64*-*-hpux*): Use hpux11.opt.
8687 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
8689 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8692 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8694 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8697 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8699 * doc/install.texi (Binaries): Remove outdated reference for
8700 Motorola 68HC11/68HC12 downloads.
8702 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8704 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8707 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8710 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8713 2011-01-28 Ahmad Sharif <asharif@google.com>
8715 * value-prof.c (check_counter): Corrected error message.
8717 2011-01-29 Jie Zhang <jie@codesourcery.com>
8719 * config/arm/arm.c (arm_legitimize_reload_address): New.
8720 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8721 arm_legitimize_reload_address.
8722 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8724 2011-01-28 Ian Lance Taylor <iant@google.com>
8726 * godump.c (go_define): Ignore macros whose definitions include
8727 two adjacent operands.
8729 2011-01-28 Jakub Jelinek <jakub@redhat.com>
8732 * varasm.c (force_const_mem): Store copy of x in desc->constant
8733 instead of x itself.
8734 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8735 itself into REG_EQUAL note.
8737 2011-01-28 Joseph Myers <joseph@codesourcery.com>
8739 * config/freebsd.opt (posix, rdynamic): New Driver options.
8741 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8743 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8745 * configure: Regenerate.
8747 2011-01-27 Joseph Myers <joseph@codesourcery.com>
8749 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8750 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8752 2011-01-27 Anatoly Sokolov <aesok@post.ru>
8754 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8755 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8756 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8757 (s390_preferred_reload_class): Make static. Change return and
8758 'rclass' argument type to reg_class_t.
8760 2011-01-27 Jan Hubicka <jh@suse.cz>
8763 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8764 (process_function_and_variable_attributes): Check defined weakrefs.
8766 2011-01-27 Martin Jambor <mjambor@suse.cz>
8768 PR tree-optimization/47228
8769 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8770 build_ref_for_offset.
8772 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8774 * config/spu/spu-elf.h (ASM_SPEC): Remove.
8776 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
8778 PR rtl-optimization/46856
8779 * postreload.c (reload_combine_recognize_const_pattern): Do not
8780 separate cc0 setter and user on cc0 targets.
8782 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
8785 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8786 passed a VOID_TYPE expression, immediately emit an error and
8787 return error_mark_node.
8789 2011-01-26 Jeff Law <law@redhat.com>
8791 PR rtl-optimization/47464
8792 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8793 rather than may_trap_p as needed.
8795 2011-01-26 DJ Delorie <dj@redhat.com>
8797 PR rtl-optimization/46878
8798 * combine.c (insn_a_feeds_b): Check for the implicit cc0
8799 setter/user dependency as well.
8801 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8803 PR rtl-optimization/44469
8804 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8805 after removing trivially dead basic blocks.
8807 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8809 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8810 * config/frv/frv.h (LINK_SPEC): Likewise.
8811 * config/i386/netware.h (LINK_SPEC): Likewise.
8812 * config/m68k/linux.h (ASM_SPEC): Likewise.
8813 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8814 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8815 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8816 * config/sparc/linux.h (ASM_SPEC): Likewise.
8817 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8818 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8820 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8822 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8823 * config/frv/frv.h (ASM_SPEC): Likewise.
8824 * config/m68k/linux.h (ASM_SPEC): Likewise.
8825 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8826 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8827 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8828 * config/sparc/linux.h (ASM_SPEC): Likewise.
8829 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8830 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8832 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8834 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8835 * config/frv/frv.h (LINK_SPEC): Likewise.
8836 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8838 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8840 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8841 * config/frv/frv.h (ASM_SPEC): Likewise.
8842 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8843 * config/m68k/linux.h (ASM_SPEC): Likewise.
8844 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8845 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8846 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8847 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8848 * config/sparc/linux.h (ASM_SPEC): Likewise.
8849 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8850 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8851 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8853 2011-01-26 Steve Ellcey <sje@cup.hp.com>
8856 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8858 (vec_extract_evenodd_help): Ditto.
8859 (vec_extract_evenv4hi): Ditto.
8860 (vec_extract_oddv4hi): Ditto.
8861 (vec_interleave_lowv2si): Ditto.
8862 (vec_interleave_highv2si): Ditto.
8863 (vec_extract_evenv2si): Ditto.
8864 (vec_extract_oddv2si: Ditto.
8865 (vec_pack_trunc_v2si): Ditto.
8867 2011-01-22 Jan Hubicka <jh@suse.cz>
8870 * cgraph.h (cgraph_local_info): New field can_change_signature.
8871 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8872 signature can change.
8873 (ipcp_estimate_growth): Call sequence simplify only if calle signature
8875 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8876 (cgraph_function_versioning): We can not change signature of functions
8877 that don't allow that.
8878 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8879 (lto_input_node): Likewise.
8880 * ipa-inline.c (compute_inline_parameters): Compute
8881 local.can_change_signature.
8882 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8883 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8884 functions that can not change signature.
8885 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8886 init_cumulative_args): Do not use local calling conventions
8887 for functions that can not change signature.
8889 2011-01-22 Jan Hubicka <jh@suse.cz>
8891 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8893 2011-01-26 Richard Guenther <rguenther@suse.de>
8895 PR tree-optimization/47190
8896 * cgraphunit.c (process_common_attributes): New function.
8897 (process_function_and_variable_attributes): Use it.
8899 2011-01-26 Richard Guenther <rguenther@suse.de>
8902 * cgraphbuild.c (record_eh_tables): Record reference to personality
8905 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
8908 * sel-sched.c (moveup_expr): Don't let debug insns prevent
8909 non-debug insns from moving up.
8911 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8914 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8915 t-dlldir{,-x} fragment for build and add it to tmake_file.
8916 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8917 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8918 * config/i386/t-dlldir: New file.
8919 (SHLIB_DLLDIR): Define.
8920 * config/i386/t-dlldir-x: New file.
8921 (SHLIB_DLLDIR): Define.
8922 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8923 (SHLIB_INSTALL): Use it.
8925 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
8928 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8929 lower bound of the allowed Thumb-2 coprocessor load/store
8930 index range to -256. Add explaining comment.
8932 2011-01-25 Ian Lance Taylor <iant@google.com>
8934 * godump.c (go_define): Improve lexing of macro expansion to only
8935 accept expressions which match Go spec.
8937 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8940 * tree.c (handle_dll_attribute): Handle it.
8941 * doc/extend.texi (@item dllexport): Mention it.
8942 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8944 2011-01-25 Ian Lance Taylor <iant@google.com>
8946 PR tree-optimization/26854
8947 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8948 (decl_jump_unsafe): Move higher in file, with no other change.
8949 (bind): Set has_jump_unsafe_decl if appropriate.
8950 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8951 (check_earlier_gotos): Likewise.
8952 (c_check_switch_jump_warnings): Likewise.
8954 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
8956 * doc/invoke.texi (Warning Options): Add missing hyphen.
8957 (-fprofile-dir): Minor grammatical fixes.
8958 (-fbranch-probabilities): Likewise.
8960 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8964 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8966 (no_real_insns_p, schedule_block, set_priorities): Drop special
8967 treatment of boundary debug insns.
8968 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8969 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8970 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8971 (BOUNDARY_DEBUG_INSN_P): Likewise.
8972 (SCHEDULE_DEBUG_INSN_P): Likewise.
8973 * sched-rgn.c (init_ready_list): Drop special treatment of
8974 boundary debug insns.
8975 * final.c (rest_of_clean-state): Clear notes' BB.
8977 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8979 * Makefile.in (LAMBDA_H): Removed.
8980 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8981 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8982 lambda-trans.o, and tree-loop-linear.o.
8983 (lto-symtab.o): Remove dependence on LAMBDA_H.
8984 (tree-loop-linear.o): Remove rule.
8985 (lambda-mat.o): Same.
8986 (lambda-trans.o): Same.
8987 (lambda-code.o): Same.
8988 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8989 (tree-vect-slp.o): Same.
8990 * hwint.h (gcd): Moved here.
8991 (least_common_multiple): Same.
8992 * lambda-code.c: Removed.
8993 * lambda-mat.c: Removed.
8994 * lambda-trans.c: Removed.
8995 * lambda.h: Removed.
8996 * tree-loop-linear.c: Removed.
8997 * lto-symtab.c: Do not include lambda.h.
8998 * omega.c (gcd): Removed.
8999 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9000 * tree-data-ref.c (print_lambda_vector): Moved here.
9001 (lambda_vector_copy): Same.
9002 (lambda_matrix_copy): Same.
9003 (lambda_matrix_id): Same.
9004 (lambda_vector_first_nz): Same.
9005 (lambda_matrix_row_add): Same.
9006 (lambda_matrix_row_exchange): Same.
9007 (lambda_vector_mult_const): Same.
9008 (lambda_vector_negate): Same.
9009 (lambda_matrix_row_negate): Same.
9010 (lambda_vector_equal): Same.
9011 (lambda_matrix_right_hermite): Same.
9012 * tree-data-ref.h: Do not include lambda.h.
9013 (lambda_vector): Moved here.
9014 (lambda_matrix): Same.
9015 (dependence_level): Same.
9016 (lambda_transform_legal_p): Removed declaration.
9017 (lambda_collect_parameters): Same.
9018 (lambda_compute_access_matrices): Same.
9019 (lambda_vector_gcd): Same.
9020 (lambda_vector_new): Same.
9021 (lambda_vector_clear): Same.
9022 (lambda_vector_lexico_pos): Same.
9023 (lambda_vector_zerop): Same.
9024 (lambda_matrix_new): Same.
9025 * tree-flow.h (least_common_multiple): Removed declaration.
9026 * tree-parloops.c (lambda_trans_matrix): Moved here.
9028 (LTM_ROWSIZE): Same.
9029 (LTM_COLSIZE): Same.
9030 (LTM_DENOMINATOR): Same.
9031 (lambda_trans_matrix_new): Same.
9032 (lambda_matrix_vector_mult): Same.
9033 (lambda_transform_legal_p): Same.
9034 * tree-pass.h (pass_linear_transform): Removed declaration.
9035 * tree-ssa-loop.c (tree_linear_transform): Removed.
9036 (gate_tree_linear_transform): Removed.
9037 (pass_linear_transform): Removed.
9038 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9039 flag_loop_interchange.
9041 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9043 PR tree-optimization/47265
9044 PR tree-optimization/47443
9045 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9046 if name still has some uses.
9048 2011-01-25 Martin Jambor <mjambor@suse.cz>
9050 PR tree-optimization/47382
9051 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9052 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9054 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
9056 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9057 sjlj_except_unwind_info.
9059 2011-01-25 Richard Guenther <rguenther@suse.de>
9061 PR tree-optimization/47426
9062 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9063 visible functions results escape.
9065 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9068 * config/arm/arm.c (any_sibcall_uses_r3): New function.
9069 (arm_get_frame_offsets): Use it.
9071 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9072 Jakub Jelinek <jakub@redhat.com>
9074 PR tree-optimization/47271
9075 * tree-if-conv.c (bb_postdominates_preds): New.
9076 (if_convertible_bb_p): Call bb_postdominates_preds.
9077 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9078 (predicate_scalar_phi): Call bb_postdominates_preds.
9080 2011-01-25 Nick Clifton <nickc@redhat.com>
9082 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9083 * config/rx/rx.c (rx_function_value): Likewise.
9084 (rx_promote_function_mode): Likewise.
9085 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9086 in order to make it legitimate.
9087 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9088 make sure that the first operand is the same as the result register.
9089 (addsi3_unspec): Delete.
9090 (subdi3): Do not accept immediate operands.
9091 (subdi3_internal): Likewise.
9093 2011-01-25 Jeff Law <law@redhat.com>
9095 PR rtl-optimization/37273
9096 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9097 handle them like argument loads from stack slots. Do not double
9098 count memory for memory constants and argument loads from stack slots.
9100 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9102 PR tree-optimization/47427
9103 PR tree-optimization/47428
9104 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9105 coalesce if the new root var would be TREE_READONLY.
9107 2011-01-25 Richard Guenther <rguenther@suse.de>
9110 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9111 correct type for TBAA.
9113 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9115 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9116 (close_phi_written_to_memory): Call for_each_index with
9117 dr_indices_valid_in_loop.
9119 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9121 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9122 when it is initialized.
9124 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9126 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9127 call to graphite_find_data_references_in_stmt.
9128 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9129 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
9130 call to graphite_find_data_references_in_stmt.
9131 (analyze_drs_in_stmts): Same.
9132 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9133 in which the scalar analysis of indices is performed.
9134 (create_data_ref): Same. Update call to dr_analyze_indices.
9135 (find_data_references_in_stmt): Update call to create_data_ref.
9136 (graphite_find_data_references_in_stmt): Same.
9137 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9139 (create_data_ref): Same.
9140 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9141 call to create_data_ref.
9143 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9145 * graphite-sese-to-poly.c (build_poly_scop): Move
9146 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9148 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9150 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9151 VAR_DECL, PARM_DECL, and RESULT_DECL.
9153 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9155 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9157 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9158 that have already been marked as PBB_IS_REDUCTION.
9160 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9162 * graphite-scop-detection.c (same_close_phi_node): New.
9163 (remove_duplicate_close_phi): New.
9164 (make_close_phi_nodes_unique): New.
9165 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9167 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9169 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9170 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9171 of both data references to be the same.
9173 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9175 * graphite-dependences.c (build_lexicographical_constraint): Remove
9177 (build_lexicographical_constraint): Adjust call to
9178 ppl_powerset_is_empty.
9179 (dependence_polyhedron): Same.
9180 (graphite_legal_transform_dr): Same.
9181 (graphite_carried_dependence_level_k): Same.
9182 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9184 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9186 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9188 * graphite-sese-to-poly.c
9189 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9190 (close_phi_written_to_memory): New.
9191 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9194 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9196 * doc/install.texi: Update the expected version number of PPL to 0.11.
9197 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9198 #if PPL_VERSION_MINOR < 11.
9200 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9202 * graphite-dependences.c: Include graphite-cloog-util.h.
9203 (new_poly_ddr): Inlined into dependence_polyhedron.
9204 (free_poly_ddr): Moved close by new_poly_ddr.
9205 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9206 Early return NULL when ppl_powerset_is_empty returns true.
9207 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9208 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9209 (graphite_legal_transform_dr): Call new_poly_ddr.
9210 (graphite_carried_dependence_level_k): Same.
9211 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9212 (dot_transformed_deps_stmt_1): Removed.
9213 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9214 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9215 (dot_deps_1): Call dot_deps_2.
9216 * Makefile.in (graphite-dependences.o): Add missing dependence on
9217 graphite-cloog-util.h.
9219 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9221 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9222 (build_lexicographical_constraint): Same.
9223 (dependence_polyhedron_1): Same.
9224 (graphite_legal_transform_dr): Same.
9225 (graphite_carried_dependence_level_k): Same.
9226 * graphite-ppl.c (ppl_powerset_is_empty): New.
9227 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9228 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9230 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9232 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9233 the "a followed by b" relation and document it.
9235 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9237 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9238 iteration when the bag of constraints is empty.
9240 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9242 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9244 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9246 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9247 nest and two loop depths as parameters.
9248 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9249 lst_perfect_nestify.
9251 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9253 * graphite-dependences.c (print_pddr): Call
9254 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9256 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9258 * graphite-ppl.c (debug_gmp_value): New.
9259 * graphite-ppl.h (debug_gmp_value): Declared.
9261 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9263 * doc/install.texi: Document availability of cloog-0.16.
9265 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9267 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9268 invalid postdominance info.
9270 2011-01-24 Jan Hubicka <jh@suse.cz>
9273 * doc/extend.texi (weak pragma): Drop claim that it must
9274 appear before definition.
9275 * varasm.c (merge_weak, declare_weak): Only sanity check
9276 that DECL is not output at a time it is declared weak.
9278 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9280 * machmode.def: Fixed comments.
9282 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9284 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9286 2011-01-24 Paul Koning <ni1d@arrl.net>
9288 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9291 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9294 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9295 (block_info): Add scanned and prev.
9296 (move_or_delete_vzeroupper_2): Return if the basic block
9297 has been scanned and the upper 128bit state is unchanged
9299 (move_or_delete_vzeroupper_1): Return true if the exit
9301 (move_or_delete_vzeroupper): Visit basic blocks using the
9302 work-list based algorithm based on vt_find_locations in
9305 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9307 2011-01-24 Nick Clifton <nickc@redhat.com>
9309 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9310 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9311 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9312 then define __v850e1__.
9313 * doc/invoke.texi: Document -mv850es.
9315 2011-01-24 Richard Henderson <rth@redhat.com>
9317 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9318 compound unordered comparisons.
9319 * config/rx/rx.c (rx_split_fp_compare): Remove.
9320 * config/rx/rx-protos.h: Update.
9321 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9322 (cbranchsf4): Don't call rx_split_fp_compare.
9323 (*cbranchsf4): Use rx_split_cbranch.
9324 (*cmpsf): Don't accept "i" constraint.
9325 (*conditional_branch): Only valid after reload.
9326 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9328 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9331 * config/rs6000/altivec.md (vector constant splitters): Add
9332 support for creating vector single precision constants if -mvsx is
9333 used and we would create the constant using Altivec primitives.
9335 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9336 Richard Sandiford <rdsandiford@googlemail.com>
9338 PR rtl-optimization/47166
9339 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9340 mechanism for PRE_MODIFY and POST_MODIFY.
9341 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9344 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9346 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9348 2011-01-22 Jan Hubicka <jh@suse.cz>
9351 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9353 2011-01-22 Jan Hubicka <jh@suse.cz>
9355 PR tree-optimization/43884
9357 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9358 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9360 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9362 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9363 * config/s390/s390.c (s390_register_move_cost,
9364 s390_memory_move_cost): New.
9365 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9367 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9370 * except.c (sjlj_assign_call_site_values): Move setting the
9371 crtl->uses_eh_lsda flag to ...
9372 (sjlj_mark_call_sites): ... here.
9373 (sjlj_emit_function_enter): Support NULL dispatch label.
9374 (sjlj_build_landing_pads): In a function with no landing pads
9375 that still has must-not-throw regions, generate code to register
9376 a personality function with empty LSDA.
9378 2011-01-21 Richard Henderson <rth@redhat.com>
9380 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9382 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9384 * compare-elim.c: New file.
9385 * Makefile.in (OBJS-common): Add it.
9386 (compare-elim.o): New.
9387 * common.opt (fcompare-elim): New.
9388 * opts.c (default_options_table): Add OPT_fcompare_elim.
9389 * tree-pass.h (pass_compare_elim_after_reload): New.
9390 * passes.c (init_optimization_passes): Add it.
9391 * recog.h: Protect against re-inclusion.
9392 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9393 * doc/invoke.texi (-fcompare-elim): Document it.
9394 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9395 * doc/tm.texi: Rebuild.
9397 2011-01-22 Nick Clifton <nickc@redhat.com>
9399 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9400 rx_split_fp_compare.
9402 2011-01-22 Nick Clifton <nickc@redhat.com>
9404 * config/rx/rx.md (UNSPEC_CONST): New.
9405 (deallocate_and_return): Wrap the amount popped off the stack in
9406 an UNSPEC_CONST in order to stop it being rejected by
9407 -mmax-constant-size.
9408 (pop_and_return): Add a "(return)" rtx.
9409 (call): Drop the immediate operand.
9410 (call_internal): Likewise.
9411 (call_value): Likewise.
9412 (call_value_internal): Likewise.
9413 (sibcall_internal): Likewise.
9414 (sibcall_value_internal): Likewise.
9415 (sibcall): Likewise. Generate an explicit call using
9417 (sibcall_value): Likewise.
9418 (mov<>): FAIL if a constant operand is not legitimate.
9419 (addsi3_unpsec): New pattern.
9421 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9422 (ok_for_max_constant): New function.
9423 (gen_safe_add): New function.
9424 (rx_expand_prologue): Use gen_safe_add.
9425 (rx_expand_epilogue): Likewise.
9426 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9429 2011-01-21 Jeff Law <law@redhat.com>
9431 PR tree-optimization/47053
9432 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9433 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9434 statements are deleted.
9435 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9436 is nonempty, then purge dead edges and cleanup the CFG.
9438 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9442 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9444 * tree-dfa.c (create_var_ann): Mark variable as used.
9446 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9449 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9450 notes from other section in hot/cold partitioning even if
9451 last_action is -3. Increment call_site_base.
9453 PR rtl-optimization/47366
9454 * fwprop.c (forward_propagate_into): Return bool. If
9455 any changes are made, -fnon-call-exceptions is used and
9456 REG_EH_REGION note is present, call purge_dead_edges
9457 and return true if it purged anything.
9458 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9459 any EH edges were purged.
9461 2011-01-21 Jeff Law <law@redhat.com>
9463 PR rtl-optimization/41619
9464 * caller-save.c (setup_save_areas): Break out code to determine
9465 which hard regs are live across calls by examining the reload chains
9466 so that it is always used.
9467 Eliminate code which checked REG_N_CALLS_CROSSED.
9469 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9471 PR tree-optimization/47355
9472 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9473 NOP has non-debug uses beyond PHIs in new_bb.
9475 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9478 * cfgexpand.c (account_used_vars_for_block): Only account vars
9479 that are annotated as used.
9480 (estimated_stack_frame_size): Don't set TREE_USED.
9481 * tree-dfa.c (create_var_ann): Mark variable as used.
9483 2011-01-21 Richard Guenther <rguenther@suse.de>
9486 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9488 2011-01-21 Richard Guenther <rguenther@suse.de>
9490 PR tree-optimization/47365
9491 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9492 (vn_reference_lookup_pieces): Adjust.
9493 (vn_reference_lookup): Likewise.
9494 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9495 (vn_reference_lookup_3): Only look through kills if in
9496 VN_WALKREWRITE mode.
9497 (vn_reference_lookup_pieces): Adjust.
9498 (vn_reference_lookup): Likewise.
9499 (visit_reference_op_load): Likewise.
9500 (visit_reference_op_store): Likewise.
9501 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9502 (compute_avail): Likewise.
9503 (eliminate): Likewise.
9505 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9507 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9508 DECL_IGNORED_P non-reg vars if they are used.
9510 PR tree-optimization/47391
9511 * varpool.c (const_value_known_p): Return false if
9514 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
9517 * config/i386/i386.c (ix86_local_alignment): Handle
9518 case for va_list_type_node is nil.
9519 (ix86_canonical_va_list_type): Likewise.
9521 2011-01-21 Alan Modra <amodra@gmail.com>
9523 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9524 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9526 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9528 * config/arm/arm.md (define_attr type): Rename f_load
9529 and f_store to f_fpa_load and f_fpa_store. Update.
9530 (write_conflict): Deal with rename fallout.
9531 (*push_fp_multi): Likewise.
9532 * config/arm/fpa.md (f_load): Use f_fpa_load.
9533 (f_store): Use f_fpa_store.
9534 (*movsf_fpa): Likewise.
9535 (*movdf_fpa): Likewise.
9536 (*movxf_fpa): Likewise.
9537 (*thumb2_movsf_fpa): Likewise.
9538 (*thumb2_movdf_fpa): Likewise.
9539 (*thumb2_movxf_fpa): Likewise.
9540 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9541 f_loadd and f_stored.
9542 (*thumb2_movdi_vfp): Likewise.
9543 (*thumb2_movsf_vfp): Fix attribute to f_loads.
9544 (*thumb2_movsi_vfp): Likewise.
9545 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9546 Use f_loads instead of f_load.
9547 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9549 2011-01-20 Anatoly Sokolov <aesok@post.ru>
9551 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9552 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9553 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9554 (xtensa_mode_dependent_address_p): New function.
9555 (constantpool_address_p): Make static. Change return type to bool.
9556 Change argument type to const_rtx. Use CONST_INT_P predicate.
9558 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
9561 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9563 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9566 * cfgexpand.c (expand_debug_expr): Instead of generating
9567 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9570 2011-01-20 Richard Guenther <rguenther@suse.de>
9573 * tree-inline.c (remap_gimple_op_r): Recurse manually for
9574 the pointer operand of MEM_REFs.
9576 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9578 PR tree-optimization/46130
9579 * ipa-split.c (consider_split): If return_bb contains non-virtual
9580 PHIs other than for retval or if split_function would not adjust it,
9583 2011-01-20 Richard Guenther <rguenther@suse.de>
9585 PR tree-optimization/47167
9586 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9587 Revert previous change, only avoid enumeral type changes.
9589 2011-01-19 Mike Stump <mikestump@comcast.net>
9591 * doc/tm.texi.in (BRANCH_COST): Englishify.
9592 * doc/tm.texi (BRANCH_COST): Likewise.
9594 2011-01-19 Dodji Seketeli <dodji@redhat.com>
9597 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9598 (gen_scheduled_generic_parms_dies): New functions.
9599 (gen_struct_or_union_type_die): Schedule template parameters DIEs
9600 generation for the end of CU compilation.
9601 (dwarf2out_finish): Generate template parameters DIEs here.
9603 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9606 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9607 debug bind stmt on merge edges.
9609 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9613 * function.c (instantiate_expr): Instantiate incoming rtl of
9614 implicit arguments, and recurse on VALUE_EXPRs.
9615 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9616 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9618 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9620 * c-parser.c (c_parser_for_statement): Initialize
9621 collection_expression.
9623 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9625 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9627 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9629 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9630 (LINK_SHLIB_SPEC): Don't use %(link_path).
9631 (SUBTARGET_EXTRA_SPECS): Remove link_path.
9633 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9635 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9636 (NO_SHARED_LIB_SUPPORT): Remove.
9637 (LINK_SHLIB_SPEC): Remove one conditional definition.
9639 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9641 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9643 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9644 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9645 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9646 %{call_shared} and conditionals on these options not being passed.
9647 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9650 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9652 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9655 * ipa-split.c: Spelling fixes.
9657 2011-01-19 Richard Henderson <rth@redhat.com>
9659 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9660 (*mulsi3): Likewise.
9662 * longlong.h [__mn10300__] (count_leading_zeros): New.
9663 [__mn10300__] (umul_ppmm, smul_ppmm): New.
9664 [__mn10300__] (add_ssaaaa, subddmmss): New.
9665 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9666 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9668 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9670 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9672 2011-01-19 Richard Henderson <rth@redhat.com>
9674 * config/mn10300/mn10300.md (addsi3_flags): New.
9675 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9676 (subsi3_flags, subc_internal, subdi3): New.
9677 (subdi3_internal, *subdi3_degenerate): New.
9678 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9680 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9681 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9682 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
9683 * config/mn10300/mn10300-protos.h: Update.
9684 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9685 (return_ret): Likewise. Rename from return_internal_regs.
9686 (return_internal): Remove.
9688 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9689 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9690 (mn10300_legitimate_constant_p): Likewise.
9691 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9692 (mn10300_frame_size): New.
9693 (mn10300_expand_prologue): Use it.
9694 (mn10300_expand_epilogue): Likewise.
9695 (mn10300_initial_offset): Likewise.
9696 * config/mn10300/mn10300-protos.h: Update.
9697 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9698 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9699 (prologue, epilogue, return_internal): Tidy output code.
9700 (mn10300_store_multiple_operation, return): Likewise.
9701 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9702 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9703 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9704 (load_pic, am33_load_pic): New.
9705 (mn10300_load_pic0, mn10300_load_pic1): New.
9707 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9708 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9709 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9710 (cc_flags_for_mode, cc_flags_for_code): New.
9711 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9712 overflow flag is not valid. Validate that the flags we need
9713 for the comparison are valid.
9714 (mn10300_output_cmp): Remove.
9715 (mn10300_output_add): New.
9716 (mn10300_select_cc_mode): Use cc_flags_for_code.
9717 (mn10300_split_cbranch): New.
9718 (mn10300_match_ccmode): New.
9719 (mn10300_split_and_operand_count): New.
9720 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9722 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9723 (addsi3): ... here. Use mn10300_output_add.
9724 (*addsi3_flags): New.
9725 (*am33_subsi3, *mn10300_subsi3): Merge...
9726 (subsi3): ... here. Use attribute isa.
9727 (*subsi3_flags): New.
9728 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
9730 (*am33_andsi3, *mn10300_andsi3): Merge...
9732 (*andsi3_flags): New.
9733 (andsi3 splitters): New.
9734 (*am33_iorsi3, *mn10300_iorsi3): Merge...
9736 (*iorsi3_flags): New.
9737 (*am33_xorsi3, *mn10300_xorsi3): Merge...
9739 (*xorsi3_flags): New.
9740 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9741 (one_cmplsi2): ... here.
9742 (*one_cmplsi2_flags): New.
9743 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
9744 instead of "dax" in constraints. Use mn10300_split_cbranch.
9745 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
9746 use matching constraints to eliminate a self-comparison.
9747 (*integer_conditional_branch): Rename from integer_conditional_branch.
9748 Use int_mode_flags to match CC_REG.
9749 (*cbranchsi4_btst, *btstsi): New.
9750 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
9751 mn10300_split_cbranch.
9752 (*am33_cmpsf): Rename from am33_cmpsf.
9753 (*float_conditional_branch): Rename from float_conditional_branch.
9754 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9755 (zero_extendqisi2): ... here.
9756 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9757 (zero_extendhisi2): ... here.
9758 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9759 (extendqisi2): ... here.
9760 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9761 (extendhisi2): ... here.
9762 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9763 (ashlsi3): ... here.
9764 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9765 (lshrsi3): ... here.
9766 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9767 (ashrsi3): ... here.
9768 (consecutive add peephole): Remove.
9769 * config/mn10300/predicates.md (label_ref_operand): New.
9770 (int_mode_flags): New.
9771 (CCZN_comparison_operator): New.
9773 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9774 (throughput_42_latency_43): New reservation.
9775 (mulsidi3, umulsidi3): New expanders.
9776 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
9777 the MDR register to allocation; separately allocate the low and
9778 high parts of the DImode result.
9779 (umulsidi3_internal): Similarly.
9780 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9781 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
9782 (udivsi3, umodsi3): Remove.
9783 (udivmodsi4, divmodsi4): New expanders.
9784 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
9785 (*divmodsi4): Simiarly.
9786 (ext_internal): New.
9788 * config/mn10300/constraints.md ("z"): New constraint.
9789 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9790 (FIXED_REGISTERS): Don't fix MDR.
9791 (CALL_USED_REGSITERS): Reformat nicely.
9792 (REG_ALLOC_ORDER): Add MDR.
9793 (enum regclass): Add MDR_REGS.
9794 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9795 (IRA_COVER_CLASSES): Add MDR_REGS.
9796 (REGNO_REG_CLASS): Handle MDR_REG.
9797 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9798 (mn10300_register_move_cost): Likewise.
9799 * config/mn10300/mn10300.md (MDR_REG): New.
9800 (*movsi_internal): Handle moves to/from MDR_REGS.
9802 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9804 (mn10300_secondary_reload): Tidy combination reload classes.
9805 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9806 addresses for AM33. Allow symbolic offsets for reg+imm.
9807 (mn10300_regno_in_class_p): New.
9808 (mn10300_legitimize_reload_address): New.
9809 * config/mn10300/mn10300.h (enum reg_class): Remove
9810 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9811 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
9813 (REG_CLASS_NAMES): Update to match.
9814 (REG_CLASS_CONTENTS): Likewise.
9815 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9816 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9817 (REGNO_IN_RANGE_P): Remove.
9818 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9819 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9820 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9821 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9822 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9823 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9824 (REGNO_GENERAL_P): New.
9825 (HAVE_POST_MODIFY_DISP): New.
9826 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9827 (LEGITIMIZE_RELOAD_ADDRESS): New.
9828 * config/mn10300/mn10300-protos.h: Update.
9830 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9831 DATA_REGS for AM33 stack-pointer destination.
9832 (mn10300_preferred_output_reload_class): Likewise.
9833 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9834 into a form appropriate for ...
9835 (TARGET_SECONDARY_RELOAD): New.
9836 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9837 * config/mn10300/mn10300-protos.h: Update.
9838 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9839 reload_insi; use the "A" constraint for the scratch; handle AM33
9840 moves of sp to non-address registers.
9842 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9843 (*movqi_internal): ... here.
9844 (*am33_movhi, *mn10300_movhi): Merge into...
9845 (*movhi_internal): ... here.
9846 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
9847 as the source/destination of moves from/to SP.
9848 (movsf): Only allow for AM33-2.
9849 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9850 any integer constant constraint. Only allow for AM33-2. Tidy
9851 all of the alternative outputs.
9852 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9853 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
9855 (udivsi3, umodsi3): New patterns for MN103 only.
9857 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
9859 * doc/tm.texi.in: Spell out that a lack of register class unions
9861 * doc/tm.texi: Regenerate.
9863 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9865 PR rtl-optimization/47337
9866 * dce.c (check_argument_store): New function.
9867 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
9869 PR tree-optimization/47290
9870 * tree-eh.c (infinite_empty_loop_p): New function.
9871 (cleanup_empty_eh): Use it.
9873 2011-01-18 Steve Ellcey <sje@cup.hp.com>
9876 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9877 (a64_expand_widen_sum): Ditto.
9878 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9879 (vec_extract_evenodd_help): Ditto.
9880 (vec_extract_evenv4hi): Ditto.
9881 (vec_extract_oddv4hi): Ditto.
9882 (vec_extract_evenv2si): Ditto.
9883 (vec_extract_oddv2si): Ditto.
9884 (vec_extract_evenv2sf): Ditto.
9885 (vec_extract_oddv2sf): Ditto.
9886 (vec_pack_trunc_v4hi: Ditto.
9887 (vec_pack_trunc_v2si): Ditto.
9888 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9889 (vec_interleave_highv8qi): Ditto.
9891 (vec_extract_oddv8qi): Ditto.
9892 (vec_interleave_lowv4hi): Ditto.
9893 (vec_interleave_highv4hi): Ditto.
9894 (vec_interleave_lowv2si): Ditto.
9895 (vec_interleave_highv2si): Ditto.
9897 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9899 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9900 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9901 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
9902 (pa_c_mode_for_suffix): New.
9903 (TARGET_EXPAND_BUILTIN): Define.
9904 (TARGET_C_MODE_FOR_SUFFIX): Define.
9905 (pa_builtins): Define.
9906 (pa_init_builtins): Register __float128 type and init new support
9908 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9909 * config/pa/quadlib.c (_U_Qfcopysign): New.
9911 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
9914 * explow.c (allocate_dynamic_stack_space): Do not assume more than
9915 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9918 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9920 PR tree-optimization/47179
9921 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9922 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9924 2011-01-18 Richard Guenther <rguenther@suse.de>
9926 PR rtl-optimization/47216
9927 * emit-rtl.c: Include tree-flow.h.
9928 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9929 of replicating it with different semantics.
9930 * Makefile.in (emit-rtl.o): Adjust.
9932 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9934 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9935 (cortex_a9_dp): Handle neon types correctly.
9937 2011-01-18 Jakub Jelinek <jakub@redhat.com>
9939 PR rtl-optimization/47299
9940 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9941 subtarget. Use normal multiplication if both operands are constants.
9942 * expmed.c (expand_widening_mult): Don't try to optimize constant
9943 multiplication if op0 has VOIDmode. Convert op1 constant to mode
9946 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9948 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
9949 spacing after 'e.g.', typos, comma, hyphenation.
9951 2011-01-17 Richard Henderson <rth@redhat.com>
9953 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9954 (rx_restricted_mem_operand): New.
9955 (rx_shift_operand): Use register_operand.
9956 (rx_source_operand, rx_compare_operand): Likewise.
9957 * config/rx/rx.md (addsi3_flags): New expander.
9958 (adddi3): Rewrite as expander.
9959 (adc_internal, *adc_flags, adddi3_internal): New patterns.
9960 (subsi3_flags): New expander.
9961 (subdi3): Rewrite as expander.
9962 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9964 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9965 (rx_init_builtins): Remove sat builtin.
9966 (rx_expand_builtin): Likewise.
9967 * config/rx/rx.md (ssaddsi3): New.
9968 (*sat): Rename from sat. Represent the CC_REG input.
9970 * config/rx/predicates.md (rshift_operator): New.
9971 * config/rx/rx.c (rx_expand_insv): Remove.
9972 * config/rx/rx-protos.h: Update.
9973 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
9974 operand to the canonical position.
9975 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9976 (*bitclr, *bitclr_in_memory): Similarly.
9977 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9978 (insv): Retain the zero_extract in the expansion.
9980 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9981 (bswaphi2, bitinvert, revw): Likewise.
9983 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9984 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9985 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9986 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9987 (bitset, bitset_in_memory): Likewise.
9988 (bitinvert, bitinvert_in_memory): Likewise.
9989 (bitclr, bitclr_in_memory): Likewise.
9990 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9991 (rx_strend, rx_cmpstrn): Likewise.
9992 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
9993 (bitop peep2 patterns): Remove.
9995 * config/rx/rx.c (rx_match_ccmode): New.
9996 * config/rx/rx-protos.h: Update.
9997 * config/rx/rx.md (abssi2): Clobber, don't set flags.
9998 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9999 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10000 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10001 (fix_truncsfsi2, floatsisf2): Likewise.
10002 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10003 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10004 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10005 (*subsi3_flags, *xorsi3_flags): New.
10007 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10009 * config/rx/rx.c (rx_print_operand): Remove workaround for
10010 unsplit comparison operations.
10012 * config/rx/rx.md (movsicc): Split after reload.
10013 (*movsicc): Merge *movsieq and *movsine via match_operator.
10014 (*stcc): New pattern.
10016 * config/rx/rx.c (rx_float_compare_mode): Remove.
10017 * config/rx/rx.h (rx_float_compare_mode): Remove.
10018 * config/rx/rx.md (cstoresi4): Split after reload.
10019 (*sccc): New pattern.
10021 * config/rx/predicates.md (label_ref_operand): New.
10022 (rx_z_comparison_operator): New.
10023 (rx_zs_comparison_operator): New.
10024 (rx_fp_comparison_operator): New.
10025 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10026 Validate that the flags are set properly for the comparison.
10027 (rx_gen_cond_branch_template): Remove.
10028 (rx_cc_modes_compatible): Remove.
10029 (mode_from_flags): New.
10030 (flags_from_code): Rename from flags_needed_for_conditional.
10031 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10032 (rx_select_cc_mode): Likewise.
10033 (rx_split_fp_compare): New.
10034 (rx_split_cbranch): New.
10035 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10036 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10037 (*cbranchsf4): Similarly.
10038 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10039 match_operator and rx_split_cbranch.
10040 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10041 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10042 (*cmpsi): Rename from cmpsi.
10043 (*tstsi): Rename from tstsi.
10044 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10045 (*conditional_branch): Rename from conditional_branch.
10046 (*reveresed_conditional_branch): Remove.
10047 (b<code>): Remove expander.
10048 * config/rx/rx-protos.h: Update.
10050 * config/rx/rx.c (rx_compare_redundant): Remove.
10051 * config/rx/rx.md (cmpsi): Don't use it.
10052 * config/rx/rx-protos.h: Update.
10054 * config/rx/rx-modes.def (CC_F): New mode.
10055 * config/rx/rx.c (rx_select_cc_mode): New.
10056 * config/rx/rx.h (SELECT_CC_MODE): Use it.
10057 * config/rx/rx-protos.h: Update.
10059 2011-01-17 Richard Henderson <rth@redhat.com>
10061 * except.c (dump_eh_tree): Fix stray ; after for statement.
10063 2011-01-17 Richard Guenther <rguenther@suse.de>
10065 PR tree-optimization/47313
10066 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10067 handling before copying the body. Properly deal with
10068 by-reference result in SSA form.
10070 2011-01-17 Ian Lance Taylor <iant@google.com>
10073 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10074 (struct_value_alias_set): Don't define.
10075 (sparc_option_override): Don't set sparc_sr_alias_set and
10076 struct_value_alias_set.
10077 (save_or_restore_regs): Use gen_frame_mem rather than calling
10079 (sparc_struct_value_rtx): Likewise.
10081 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
10084 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10085 (_mm_maskstore_pd): Likewise.
10086 (_mm_maskload_ps): Likewise.
10087 (_mm_maskstore_ps): Likewise.
10088 (_mm256_maskload_pd): Change mask to __m256i.
10089 (_mm256_maskstore_pd): Likewise.
10090 (_mm256_maskload_ps): Likewise.
10091 (_mm256_maskstore_ps): Likewise.
10093 * config/i386/i386-builtin-types.def: Updated.
10094 (ix86_expand_special_args_builtin): Likewise.
10096 * config/i386/i386.c (bdesc_special_args): Update
10097 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10098 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10099 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10100 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10102 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10103 Use <avxpermvecmode> on mask register.
10104 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10106 2011-01-17 Olivier Hainque <hainque@adacore.com>
10107 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10108 Eric Botcazou <ebotcazou@adacore.com>
10111 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10112 if <= USHRT_MAX in 32-bit mode.
10114 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10116 * doc/install.texi (Configuration, Specific): Wrap long
10117 lines in examples. Allow line wrapping in long options
10118 and URLs where beneficial for PDF output.
10120 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
10122 * config/mips/mips.c (mips_classify_symbol): Don't return
10123 SYMBOL_PC_RELATIVE for nonlocal labels.
10125 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
10127 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10129 2011-01-15 Jan Hubicka <jh@suse.cz>
10131 PR tree-optimization/47276
10132 * ipa.c (function_and_variable_visibility): Do not try to mark alias
10133 declarations as needed.
10135 2011-01-15 Martin Jambor <mjambor@suse.cz>
10137 * common.opt (fdevirtualize): New flag.
10138 * doc/invoke.texi (Option Summary): Document it.
10139 * opts.c (default_options_table): Add devirtualize flag.
10140 * ipa-prop.c (detect_type_change): Return immediately if
10141 devirtualize flag is not set.
10142 (detect_type_change_ssa): Likewise.
10143 (compute_known_type_jump_func): Likewise.
10144 (ipa_analyze_virtual_call_uses): Likewise.
10146 2011-01-14 Martin Jambor <mjambor@suse.cz>
10148 PR tree-optimization/45934
10149 PR tree-optimization/46302
10150 * ipa-prop.c (type_change_info): New type.
10151 (stmt_may_be_vtbl_ptr_store): New function.
10152 (check_stmt_for_type_change): Likewise.
10153 (detect_type_change): Likewise.
10154 (detect_type_change_ssa): Likewise.
10155 (compute_complex_assign_jump_func): Check for dynamic type change.
10156 (compute_complex_ancestor_jump_func): Likewise.
10157 (compute_known_type_jump_func): Likewise.
10158 (compute_scalar_jump_functions): Likewise.
10159 (ipa_analyze_virtual_call_uses): Likewise.
10160 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10162 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10164 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10165 * config/i386/i386.opt (msse5): New Alias.
10167 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10169 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10170 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10171 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10172 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10174 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10176 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10178 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10179 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10180 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10181 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10183 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10185 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10187 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10189 2011-01-14 Mike Stump <mikestump@comcast.net>
10191 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10192 * config/fr30/fr30.md: Likweise
10193 (movsi_push): Likewise.
10194 (movsi_pop): Likewise.
10195 (enter_func): Likewise.
10196 * config/moxie/moxie.md (movsi_push): Likewise.
10197 (movsi_pop): Likewise.
10199 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10201 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10202 %{no_archive} %{exact_version}.
10203 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10204 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10205 %{no_archive} %{exact_version}.
10206 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10207 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10208 * config/mips/vxworks.h: Likewise.
10210 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10212 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10214 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10216 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10217 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10219 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10221 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10224 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10226 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10228 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10229 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10231 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10232 Don't handle -shlib.
10234 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10236 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10237 (CC1_SPEC): Don't handle -profile.
10239 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10241 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10242 * config/mips/mips.h (CC1_SPEC): Likewise.
10244 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10246 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10247 * config/mips/mips.h (CC1_SPEC): Likewise.
10249 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10251 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10252 * config/m32r/linux.h (LINK_SPEC): Likewise.
10253 * config/mips/linux.h (LINK_SPEC): Likewise.
10254 * config/mips/linux64.h (LINK_SPEC): Likewise.
10255 * config/sparc/linux.h (LINK_SPEC): Likewise.
10256 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10257 LINK_SPEC): Likewise.
10258 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10260 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10262 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10264 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10266 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10268 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10269 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10271 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10273 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10275 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10277 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10278 supports -Bstatic/-Bdynamic.
10279 * configure: Regenerate.
10281 2011-01-14 Jan Hubicka <jh@suse.cz>
10282 Jack Howarth <howarth@bromo.med.uc.edu>
10285 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10286 when checking debug_info_level. Test write_symbols instead of
10287 debug_hooks->var_location when setting flag_var_tracking_uninit.
10289 2011-01-14 Richard Guenther <rguenther@suse.de>
10291 PR tree-optimization/47179
10292 * target.def (ref_may_alias_errno): New target hook.
10293 * targhooks.h (default_ref_may_alias_errno): Declare.
10294 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10295 (default_ref_may_alias_errno): New function.
10296 * target.h (struct ao_ref_s): Declare.
10297 * tree-ssa-alias.c: Include target.h.
10298 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10299 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10300 (targhooks.o): Likewise.
10301 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10302 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10304 2011-01-14 Richard Guenther <rguenther@suse.de>
10306 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10308 2011-01-14 Richard Guenther <rguenther@suse.de>
10310 PR tree-optimization/47280
10311 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10312 return CFG changes.
10313 (tree_ssa_forward_propagate_single_use_vars): Deal with
10314 CFG changes from associate_plusminus.
10316 2011-01-14 Richard Guenther <rguenther@suse.de>
10318 PR middle-end/47281
10320 2011-01-11 Richard Guenther <rguenther@suse.de>
10322 PR tree-optimization/46076
10323 * tree-ssa.c (useless_type_conversion_p): Conversions from
10324 unprototyped to empty argument list function types are useless.
10326 2011-01-14 Richard Guenther <rguenther@suse.de>
10328 PR tree-optimization/47286
10329 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10331 2011-01-14 Martin Jambor <mjambor@suse.cz>
10333 PR middle-end/46823
10334 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10336 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10338 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10339 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10340 * config/xtensa/xtensa.c (xtensa_libcall_value,
10341 xtensa_function_value_regno_p): New functions.
10342 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10344 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10347 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10349 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10350 New function prototype.
10351 * config/i386/winnt.c (i386_pe_assemble_visibility):
10352 Warn only if attribute was specified by user.
10354 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10357 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10359 (floatunsdidf2_fcfidu): Ditto.
10361 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10363 * config/s390/s390.c (print_operand_address): Replace 'error' with
10364 'output_operand_lossage'.
10365 (print_operand): Likewise.
10367 2011-01-13 Jeff Law <law@redhat.com>
10369 PR rtl-optimization/39077
10370 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10371 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10372 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10373 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10374 * gcse.c (prune_insertions_deletions): New function.
10375 (compute_pre_data): Use it.
10377 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10380 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10382 (prune_unused_types_mark): Use it.
10384 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10386 PR rtl-optimization/45352
10387 * sel-sched.c: Update copyright years.
10388 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10389 in the advancing loop when we have issued issue_rate insns.
10391 2011-01-12 Richard Henderson <rth@redhat.com>
10393 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10394 (TARGET_MD_ASM_CLOBBERS): New.
10396 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10397 (TARGET_DELEGITIMIZE_ADDRESS): New.
10399 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10400 (clzsi2, *bsch): New patterns.
10402 * config/mn10300/mn10300.md (INT): New mode iterator.
10403 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10405 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10406 flag_split_wide_types.
10408 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10409 (mn10300_trampoline_init): Rewrite without a template, an immediate
10410 load and a direct branch.
10411 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10413 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10415 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10416 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10417 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10418 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10420 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10423 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10426 2011-01-12 Jan Hubicka <jh@suse.cz>
10429 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10430 (PLUGIN_COND_CLOSE): New macro.
10431 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10433 2011-01-12 Richard Guenther <rguenther@suse.de>
10436 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10437 register variables in a MEM_REF.
10439 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10441 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10442 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10443 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10444 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10445 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10446 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10447 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10448 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10449 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10450 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10451 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10452 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10453 * config/gnu-user.h: New. Copied from linux.h.
10454 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10455 GNU_USER_TARGET_STARTFILE_SPEC.
10456 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10457 GNU_USER_TARGET_ENDFILE_SPEC.
10458 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10459 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10460 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10461 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10462 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10463 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10464 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10465 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10466 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10467 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10468 * config/arm/linux-eabi.h (CC1_SPEC): Use
10469 GNU_USER_TARGET_CC1_SPEC.
10470 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10471 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10472 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10473 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10474 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10475 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10476 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10477 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10479 2011-01-12 Richard Guenther <rguenther@suse.de>
10482 * doc/invoke.texi (ffast-math): Document it is turned on
10485 2011-01-12 Jan Hubicka <jh@suse.cz>
10487 PR tree-optimization/47233
10488 * opts.c (common_handle_option): Disable ipa-reference with profile
10491 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10493 * c-parser.c (c_parser_objc_at_property_declaration): Improved
10496 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10498 * c-parser.c (c_lex_one_token): Updated and reindented some
10499 comments. No changes in code.
10501 2011-01-11 Ian Lance Taylor <iant@google.com>
10503 * godump.c (go_output_var): Don't output the variable if there is
10504 already a type with the same name.
10506 2011-01-11 Ian Lance Taylor <iant@google.com>
10508 * godump.c (go_format_type): Don't generate float80.
10510 2011-01-11 Richard Henderson <rth@redhat.com>
10512 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10513 declaration. Rewrite for both speed and size.
10514 (mn10300_address_cost_1): Remove.
10515 (mn10300_register_move_cost): New.
10516 (mn10300_memory_move_cost): New.
10517 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
10518 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
10519 extensions, shifts, BSWAP, CLZ.
10520 (mn10300_wide_const_load_uses_clr): Remove.
10521 (TARGET_REGISTER_MOVE_COST): New.
10522 (TARGET_MEMORY_MOVE_COST): New.
10523 * config/mn10300/mn10300-protos.h: Update.
10524 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10526 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10527 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10528 * config/mn10300/mn10300-protos.h: Update.
10529 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10530 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10531 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10532 (*test_int_bitfield, *test_byte_bitfield): Remove.
10533 (*bit_test, *subreg_bit_test): Remove.
10534 * config/mn10300/predicates.md (const_8bit_operand): Remove.
10536 * config/mn10300/constraints.md ("c"): Rename from "A".
10537 ("A", "D"): New constraint letters.
10538 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10539 (fmssf4, fnmasf4, fnmssf4): Likewise.
10541 * config/mn10300/mn10300.md (isa): New attribute.
10542 (enabled): New attribute.
10544 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10545 (abssf2, negsf2): Define only for hardware fp.
10546 (sqrtsf2): Reformat.
10547 (addsf3, subsf3, mulsf3): Merge expander and insn.
10549 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10550 (DEBUGGER_AUTO_OFFSET): Remove.
10551 (DEBUGGER_ARG_OFFSET): Remove.
10553 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10554 Emit register stores with the same offsets as the hardware.
10555 (mn10300_store_multiple_operation): Don't check that the register
10556 save offsets are monotonic.
10557 * config/mn10300/mn10300-protos.h: Update.
10559 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10561 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10562 in terms of the value on the stack, not the MDR register.
10564 2011-01-11 Jan Hubicka <jh@suse.cz>
10568 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10569 (symbol_alias_set_destroy, symbol_alias_set_contains,
10570 propagate_aliases_backward): Declare.
10571 * lto-streamer-out.c (struct sets): New sturcture.
10572 (trivally_defined_alias): New function.
10573 (output_alias_pair_p): Rewrite.
10574 (output_unreferenced_globals): Fix output of alias pairs.
10575 (produce_symtab): Likewise.
10576 * ipa.c (function_and_variable_visibility): Set weak alias destination
10578 * varasm.c (symbol_alias_set_t): Remove.
10579 (symbol_alias_set_destroy): Export.
10580 (propagate_aliases_forward, propagate_aliases_backward): New functions
10582 (compute_visible_aliases): ... this one; remove.
10583 (trivially_visible_alias): New
10584 (trivially_defined_alias): New.
10585 (remove_unreachable_alias_pairs): Rewrite.
10586 (finish_aliases_1): Reorganize code checking if alias is defined.
10587 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10590 2011-01-11 Richard Guenther <rguenther@suse.de>
10592 PR tree-optimization/46076
10593 * tree-ssa.c (useless_type_conversion_p): Conversions from
10594 unprototyped to empty argument list function types are useless.
10596 2011-01-11 Richard Guenther <rguenther@suse.de>
10598 PR middle-end/45235
10599 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10600 volatile MEMs as MEM_READONLY_P.
10602 2011-01-11 Richard Guenther <rguenther@suse.de>
10604 PR tree-optimization/47239
10605 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10607 2011-01-11 Jeff Law <law@redhat.com>
10609 PR tree-optimization/47086
10610 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10611 IVs from statements that might throw.
10613 2011-01-10 Jan Hubicka <jh@suse.cz>
10616 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10618 2011-01-10 Jan Hubicka <jh@suse.cz>
10621 * profile.c (read_profile_edge_counts): Ignore profile inconistency
10622 when correcting profile.
10624 2011-01-10 Jan Hubicka <jh@suse.cz>
10627 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10628 DECL_FINI_PRIORITY.
10629 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10630 Restore DECL_FINI_PRIORITY.
10632 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10634 * doc/gimple.texi: Fix quoting of multi-word return values in
10635 @deftypefn statements. Ensure presence of return value. Wrap
10636 overlong @deftypefn lines.
10637 (is_gimple_operand, is_gimple_min_invariant_address): Remove
10638 descriptions of removed functions.
10639 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10640 of multi-word return value in @deftypefn statement.
10642 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10644 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10645 (Conditional Expressions, Logical Operators)
10646 (Statement and operand traversals): Do not indent smallexample
10647 code. Fix duplicate function argument in example.
10649 2011-01-10 Jeff Law <law@redhat.com>
10651 PR tree-optimization/47141
10652 * ipa-split.c (split_function): Handle case where we are
10653 returning a value and the return block has a virtual operand phi.
10655 2011-01-10 Jan Hubicka <jh@suse.cz>
10657 PR tree-optimization/47234
10658 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10659 (pass_feedback_split_functions): Declare.
10660 * passes.c (init_optimization_passes): Add ipa-split as subpass of
10662 * ipa-split.c (gate_split_functions): Update comments; disable
10663 split-functions for profile_arc_flag and branch_probabilities.
10664 (gate_feedback_split_functions): New function.
10665 (execute_feedback_split_functions): New function.
10666 (pass_feedback_split_functions): New global var.
10668 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
10671 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10672 calling gimple_call_set_cannot_inline.
10674 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
10676 * config/darwin-sections.def: Remove unused section.
10678 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
10681 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10683 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
10686 * c-parser.c (c_parser_declaration_or_fndef): Improved
10689 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
10691 * config/i386/winnt.c (i386_pe_start_function): Make sure
10692 to switch back to function's section.
10694 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
10698 * plugin.c: Move include of dlfcn.h from here...
10699 * system.h: ... to here.
10701 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10703 * doc/cpp.texi (C++ Named Operators): Fix markup for header
10705 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10706 two extra empty pages in PDF output.
10708 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
10711 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10712 for error recovery purposes behave as if it was not specified so
10713 that the default type is usd.
10715 2011-01-07 Jan Hubicka <jh@suse.cz>
10717 PR tree-optmization/46469
10718 * ipa.c (function_and_variable_visibility): Clear needed flags on
10719 nodes with external decls; handle weakrefs merging correctly.
10721 2011-01-07 Joseph Myers <joseph@codesourcery.com>
10723 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10726 2011-01-07 Jan Hubicka <jh@suse.cz>
10728 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10729 and no longer claim that gold is required for linker plugin.
10730 * configure: Regenerate.
10731 * gcc.c (PLUGIN_COND): New macro.
10732 (LINK_COMMAND_SPEC): Use it.
10733 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10734 * config.in (HAVE_LTO_PLUGIN): New.
10735 * configure.ac (--with-lto-plugin): New parameter; autodetect
10738 2011-01-07 Jan Hubicka <jh@suse.cz>
10740 PR tree-optimization/46367
10741 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10742 when we can update original.
10743 (cgraph_mark_inline_edge): Sanity check.
10744 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10746 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10748 * config/spu/spu.h (ASM_COMMENT_START): Define.
10750 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
10753 * gcc.c (%>S): New.
10754 (SWITCH_KEEP_FOR_GCC): Likewise.
10755 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10756 (do_spec_1): Handle "%>".
10758 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10760 2011-01-07 Jakub Jelinek <jakub@redhat.com>
10763 * config/i386/i386.c (ix86_delegitimize_address): If
10764 simplify_gen_subreg fails, return orig_x.
10767 * value-prof.c (gimple_stringop_fixed_value): Handle
10768 lhs of the call properly.
10770 2011-01-07 Jan Hubicka <jh@suse.cz>
10773 * lto-opt.c (lto_reissue_options): Set flag_shlib.
10775 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10777 * target.def (function_switched_text_sections): New hook.
10778 * doc/tm.texi: Regenerated.
10779 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10780 * final.c (default_function_switched_text_sections): New.
10781 (final_scan_insn): Call function_switched_text_sections when a
10782 mid-function section change occurs.
10783 * output.h (default_function_switched_text_sections): Declare.
10784 * config/darwin-protos.h (darwin_function_switched_text_sections):
10786 * config/darwin.c (darwin_function_switched_text_sections): New.
10787 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10789 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10791 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
10792 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
10793 the secondary code fragment when outputting for DWARF == 2.
10795 2011-01-07 Anatoly Sokolov <aesok@post.ru>
10797 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10798 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10800 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10801 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10803 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
10806 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10807 when it is not empty.
10809 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
10812 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10813 (case ${target}): Add btver1.
10814 * config/i386/driver-i386.c (host_detect_local_cpu): Let
10815 -march=native recognize btver1 processors.
10816 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10817 btver1 def_and_undef
10818 * config/i386/i386.c (struct processor_costs btver1_cost): New
10820 (m_BTVER1): New definition.
10821 (m_AMD_MULTIPLE): Includes m_BTVER1.
10822 (initial_ix86_tune_features): Add btver1 tune.
10823 (processor_target_table): Add btver1 entry.
10824 (static const char *const cpu_names): Add btver1 entry.
10825 (software_prefetching_beneficial_p): Add btver1.
10826 (ix86_option_override_internal): Add btver1 instruction sets.
10827 (ix86_issue_rate): Add btver1.
10828 (ix86_adjust_cost): Add btver1.
10829 * config/i386/i386.h (TARGET_BTVER1): New definition.
10830 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10831 (enum processor_type): Add PROCESSOR_BTVER1.
10832 * config/i386/i386.md (define_attr "cpu"): Add btver1.
10834 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10837 * config/i386/i386.c (legitimize_tls_address)
10838 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10839 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10840 (tls_initial_exec_64_sun): New pattern.
10842 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
10844 * doc/invoke.texi (Overall Options): Improve wording and markup
10845 of the description of -wrapper.
10847 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10849 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10850 rdynamic, threads): New Driver options.
10852 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10855 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10856 if coming from .tdata.
10857 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10859 2011-01-06 Jan Hubicka <jh@suse.cz>
10862 * collect2.c (main): Do not enable LTOmode when plugin is active.
10864 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10867 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10868 --version output if supported.
10869 * configure: Regenerate.
10871 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10873 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10876 2011-01-06 Jakub Jelinek <jakub@redhat.com>
10879 * c-convert.c (convert): When converting a complex expression
10880 other than COMPLEX_EXPR to a different complex type, ensure
10881 c_save_expr is called instead of save_expr, unless in_late_binary_op.
10882 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10883 when converting COMPLEX_TYPE.
10885 2011-01-06 Ira Rosen <irar@il.ibm.com>
10887 PR tree-optimization/47139
10888 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10889 only the last reduction value is used outside the loop. Update
10892 2011-01-05 Joseph Myers <joseph@codesourcery.com>
10894 * config/rtems.opt: New.
10895 * config.gcc (*-*-rtems*): Use rtems.opt.
10897 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
10899 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10900 processors do not support 3DNow instructions.
10902 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10904 * config/spu/spu.c (spu_option_override): Set parameter
10905 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10907 2011-01-05 Jan Hubicka <jh@suse.cz>
10909 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10910 at the command line.
10912 2011-01-05 Martin Jambor <mjambor@suse.cz>
10915 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10916 deltas on streamed outgoing edges.
10917 (output_node_opt_summary): Output info for outgoing edges only when
10918 the node is in new parameter set.
10919 (output_cgraph_opt_summary): New parameter set, passed to the two
10920 aforementioned functions. Update its forward declaration and its
10923 2011-01-05 Tom Tromey <tromey@redhat.com>
10925 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10926 operator to c_finish_omp_atomic.
10927 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10928 (build_unary_op): Update.
10929 (build_modify_expr): Update.
10930 (build_asm_expr): Update.
10932 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10934 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10935 newly inserted insns.
10936 (pad_bb): Likewise.
10937 (spu_emit_branch_hint): Likewise.
10938 (insert_hbrp_for_ilb_runout): Likewise.
10939 (spu_machine_dependent_reorg): Call df_finish_pass after
10940 schedule_insns returns.
10942 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10944 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10946 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
10948 PR tree-optimization/47005
10949 * tree-sra.c (struct access): Add 'non_addressable' bit.
10950 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10951 (decide_one_param_reduction): Return 0 if the parameter is passed by
10952 reference and one of the accesses in the group is non_addressable.
10954 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10956 PR tree-optimization/47056
10957 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10958 (mark_load): Likewise. Handle FUNCTION_DECL specially.
10959 (mark_store): Likewise. Pass STMT to ipa_record_reference.
10961 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10963 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10964 initializer. Skip view conversions from aggregate types.
10966 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
10969 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10971 2011-01-04 Philipp Thomas <pth@suse.de>
10973 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10976 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10978 * function.c (thread_prologue_and_epilogue_insns): Do not crash
10979 on empty epilogue sequences.
10981 2011-01-04 Joseph Myers <joseph@codesourcery.com>
10983 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10984 non-static): New Driver options.
10986 2011-01-04 Jie Zhang <jie@codesourcery.com>
10989 * gcc.c (default_compilers[]): Set combinable field to 0
10990 for all assembly languages.
10992 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
10994 * config/mips/loongson3a.md: New file.
10995 * config/mips/mips.md: Include loongson3a.md.
10996 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10999 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11001 PR middle-end/47017
11002 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11003 instead of convert_memory_address_addr_space on the base expression.
11005 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11007 * config/spu/spu.c (spu_option_override): Update error text
11008 for bad -march= / -mtune= values.
11010 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11012 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11013 if branch-hint optimization will be performed.
11015 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11017 PR tree-optimization/47148
11018 * ipa-split.c (split_function): Convert arguments to
11019 DECL_ARG_TYPE if possible.
11021 PR tree-optimization/47155
11022 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11023 when computing uns.
11025 PR rtl-optimization/47157
11026 * combine.c (try_combine): If undobuf.other_insn becomes
11027 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11028 and set *new_direct_jump_p too.
11030 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11032 PR tree-optimization/47021
11033 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11035 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11037 * gcc.c (process_command): Update copyright notice dates.
11038 * gcov.c (print_version): Likewise.
11039 * gcov-dump.c (print_version): Likewise.
11040 * mips-tfile.c (main): Likewise.
11041 * mips-tdump.c (main): Likewise.
11043 2011-01-03 Martin Jambor <mjambor@suse.cz>
11045 PR tree-optimization/46801
11046 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11047 aggregate fields start at byte boundary instead of the bit-field flag.
11049 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
11052 * gcc.c (main): Revert revision 168407.
11054 2011-01-03 Martin Jambor <mjambor@suse.cz>
11056 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11058 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11060 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11061 vector optab to expand vector/scalar shift, update gimple to vector.
11063 2011-01-03 Martin Jambor <mjambor@suse.cz>
11065 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11068 2011-01-03 Martin Jambor <mjambor@suse.cz>
11070 PR tree-optimization/46984
11071 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11073 (cgraph_create_indirect_edge): Fixed line length.
11074 (cgraph_indirect_call_info): Declare.
11075 (cgraph_make_edge_direct) Update declaration.
11076 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11077 (cgraph_create_indirect_edge): Use it.
11078 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
11080 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11081 the new thunk_delta representation.
11082 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11084 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11085 (ipa_read_indirect_edge_info): Likewise.
11086 * lto-cgraph.c (output_edge_opt_summary): New function.
11087 (output_node_opt_summary): Call it on all outgoing edges.
11088 (input_edge_opt_summary): New function.
11089 (input_node_opt_summary): Call it on all outgoing edges.
11091 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
11094 * gcc.c (main): Don't check have_o when settting combine_inputs.
11096 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
11098 * regrename.c: Add general comment describing the pass.
11099 (struct du_head): Remove 'length' field.
11100 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11101 (regrename_optimize): Do not sort chains. Rework comments, add others.
11102 Force renaming to the preferred class (if any) in the first pass and do
11103 not consider registers that belong to it in the second pass.
11104 (create_new_chain): Do not set 'length' field.
11105 (scan_rtx_reg): Likewise.
11107 2011-01-02 Jakub Jelinek <jakub@redhat.com>
11109 PR tree-optimization/47140
11110 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11111 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11112 to bit_value_binop.
11114 PR rtl-optimization/47028
11115 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11116 parm_birth_insn instead of at the beginning of first bb.
11118 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
11120 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11121 Remove the word "see" before "@pxref".
11122 * doc/rtl.texi: Remove the word "see" before "@pxref".
11124 2011-01-01 Jan Hubicka <jh@suse.cz>
11126 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11129 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
11132 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11135 Copyright (C) 2011 Free Software Foundation, Inc.
11137 Copying and distribution of this file, with or without modification,
11138 are permitted in any medium without royalty provided the copyright
11139 notice and this notice are preserved.