1 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3 * target.def (cannot_force_const_mem): Add a mode argument.
4 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5 * doc/tm.texi: Regenerate.
6 * hooks.h (hook_bool_mode_rtx_false): Declare.
7 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8 (hook_bool_mode_const_rtx_true): Likewise.
9 (hook_bool_mode_rtx_false): New function.
10 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11 to be non-VOID. Update call to cannot_force_const_mem.
12 (find_reloads): Update accordingly.
13 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
14 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
16 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
19 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
21 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
22 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
23 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
24 (m68k_cannot_force_const_mem): ...this new function.
25 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
27 (mips_const_insns, mips_legitimize_const_move): Update calls.
28 (mips_secondary_reload_class): Likewise.
29 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
30 (pa_cannot_force_const_mem): ...this new function.
31 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine
33 (rs6000_cannot_force_const_mem): ...this new function.
34 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
36 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
37 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
39 (xtensa_cannot_force_const_mem): ...this new function.
41 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
43 * config/mips/mips.c (mips16_build_function_stub): Call
44 build_function_type_list instead of build_function_type.
45 (mips16_build_call_stub): Likewise.
47 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
49 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
50 instead of build_function_type.
52 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
54 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
55 instead of build_function_type.
57 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
60 * config/i386/i386.md (insv): Change operand 0 constraint to
61 "register_operand". Change operand 1 and 2 constraint to
62 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
63 * config/i386/sse.md (sse4_1_pinsrb): Export.
65 (sse4_1_pinsrd): Ditto.
66 (sse4_1_pinsrq): Ditto.
67 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
68 * config/i386/i386.c (ix86_expand_pinsr): New.
70 2011-04-20 Easwaran Raman <eraman@google.com>
72 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
73 containing union type only with -fstrict-aliasing.
75 2011-04-20 Jim Meyering <meyering@redhat.com>
77 Remove useless if-before-free tests.
78 * calls.c (expand_call, save_area): Likewise.
79 * cfgcleanup.c (try_forward_edges): Likewise.
80 * collect2.c (collect_execute): Likewise.
81 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
82 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
83 * coverage.c (coverage_checksum_string): Likewise.
84 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
85 * cselib.c (cselib_init): Likewise.
86 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
87 (df_set_clean_cfg): Likewise.
88 * function.c (free_after_compilation): Likewise.
89 * gcc.c (do_spec_1, main): Likewise.
90 * gcov.c (create_file_names): Likewise.
91 * gensupport.c (identify_predicable_attribute): Likewise.
92 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
93 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
94 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
95 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
96 * ipa-pure-const.c (local_pure_const): Likewise.
97 * ipa-reference.c (propagate): Likewise.
98 * ira-costs.c (free_ira_costs): Likewise.
99 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
100 * matrix-reorg.c (mat_free): Likewise.
101 * prefix.c (get_key_value): Likewise.
102 * profile.c (compute_value_histograms): Likewise.
103 * reload1.c (free_reg_equiv): Likewise.
104 * sched-deps.c (free_deps): Likewise.
105 * sel-sched-ir.c (fence_clear): Likewise.
106 * sese.c (set_rename, if_region_set_false_region): Likewise.
107 * tree-data-ref.c (free_rdg): Likewise.
108 * tree-eh.c (lower_try_finally): Likewise.
109 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
110 * tree-ssa-live.c (delete_var_map): Likewise.
111 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
112 * tree-ssa-pre.c (phi_trans_add): Likewise.
114 2011-04-20 Jakub Jelinek <jakub@redhat.com>
116 PR tree-optimization/48611
117 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
118 beyond ERT_MUST_NOT_THROW region.
120 2011-04-20 Catherine Moore <clm@codesourcery.com>
122 * config/mips/mips.opt (mfix-24k): New.
123 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
124 * config/mips/mips.md (length): Increase by 4 for stores if
126 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
127 all noreorder if fixing 24K errata.
128 * doc/invoke.texi: Document mfix-24k.
130 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
132 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
133 quad-word modes, reduce to 9-bit index range when above 1016
136 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
138 * config/arm/arm.c (arm_gen_constant): Move movw support ....
139 (const_ok_for_op): ... to here.
141 2011-04-20 Kai Tietz <ktietz@redhat.com>
143 * fold-const.c (fold_binary_loc): Add handling for
144 (X & ~Y) | (~X & Y) and (X && !Y) | (!X && Y) optimization to (X ^ Y).
146 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
148 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
150 2011-04-20 Richard Guenther <rguenther@suse.de>
152 PR tree-optimization/47892
153 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
156 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
158 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
160 2011-04-20 Tristan Gingold <gingold@adacore.com>
162 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
164 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
168 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
169 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
170 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
171 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
172 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
174 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
177 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
178 (avr_asm_named_section, avr_asm_output_aligned_common,
179 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
180 New functions to update...
181 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
182 (avr_asm_init_sections): Overwrite section callbacks for
183 data_section, bss_section.
184 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
186 (avr_file_end): ...here.
188 2011-04-20 Richard Guenther <rguenther@suse.de>
191 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
192 objects and types here. Adjust for their offset before
195 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
197 * tree-vect-stmts.c (vectorizable_store): Only chain one related
200 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
202 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
203 (GIMPLE_H): Include $(INTERNAL_FN_H).
204 (OBJS-common): Add internal-fn.o.
205 (internal-fn.o): New rule.
206 * internal-fn.def: New file.
207 * internal-fn.h: Likewise.
208 * internal-fn.c: Likewise.
209 * gimple.h: Include internal-fn.h.
210 (GF_CALL_INTERNAL): New gf_mask.
211 (gimple_statement_call): Put fntype into a union with a new
213 (gimple_build_call_internal): Declare.
214 (gimple_build_call_internal_vec): Likewise.
215 (gimple_call_same_target_p): Likewise.
216 (gimple_call_internal_p): New function.
217 (gimple_call_internal_fn): Likewise.
218 (gimple_call_fntype): Return null for internal calls.
219 (gimple_call_set_fntype): Assert that the function is not internal.
220 (gimple_call_set_fn): Likewise.
221 (gimple_call_set_fndecl): Likewise.
222 (gimple_call_set_internal_fn): New function.
223 (gimple_call_addr_fndecl): Handle null functions.
224 (gimple_call_return_type): Likewise null types.
225 * gimple.c (gimple_build_call_internal_1): New function.
226 (gimple_build_call_internal): Likewise.
227 (gimple_build_call_internal_vec): Likewise.
228 (gimple_call_same_target_p): Likewise.
229 (gimple_call_flags): Handle calls to internal functions.
230 (gimple_call_fnspec): New function.
231 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
232 (gimple_has_side_effects): Handle null functions.
233 (gimple_rhs_has_side_effects): Likewise.
234 (gimple_call_copy_skip_args): Handle calls to internal functions.
235 * cfgexpand.c (expand_call_stmt): Likewise.
236 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
237 * gimple-fold.c (gimple_fold_call): Handle null functions.
238 (gimple_fold_stmt_to_constant_1): Don't fold
239 calls to internal functions.
240 * gimple-low.c (gimple_check_call_args): Handle calls to internal
242 * gimple-pretty-print.c (dump_gimple_call): Likewise.
243 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
244 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
245 (do_warn_unused_result): Likewise.
246 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
247 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
248 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
249 the target of a call.
250 (initialize_hash_element): Update accordingly.
251 (hashable_expr_equal_p): Use gimple_call_same_target_p.
252 (iterative_hash_hashable_expr): Handle calls to internal functions.
253 (print_expr_hash_elt): Likewise.
254 * tree-ssa-pre.c (can_value_number_call): Likewise.
255 (eliminate): Handle null functions.
256 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
257 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
258 (find_func_aliases): Likewise.
259 * value-prof.c (gimple_ic_transform): Likewise.
260 (gimple_indirect_call_to_profile): Likewise.
261 * lto-streamer-in.c (input_gimple_stmt): Likewise.
262 * lto-streamer-out.c (output_gimple_stmt): Likewise.
264 2011-04-19 Jan Hubicka <jh@suse.cz>
266 * ipa-inline-transform.c (save_inline_function_body): Add comments.
267 * ipa-inline.c (inline_small_functions): Compute summaries first,
270 2011-04-19 Jan Hubicka <jh@suse.cz>
272 * cgraph.h (save_inline_function_body): Remove.
273 * ipa-inline-transform.c: New file, broke out of...
274 * ipa-inline.c: ... this one; Update toplevel comment.
275 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
277 (update_noncloned_frequencies): Move to ipa-inline-transform.c
278 (cgraph_mark_inline_edge): Rename to inline_call; move to
279 ipa-inline-transform.c.
280 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
281 move to ipa-inline-transform.c
282 (recursive_inlining, inline_small_functions, flatten_function,
283 ipa_inline, inline_always_inline_functions,
284 early_inline_small_functions): Update.
285 (inline_transform): Move to ipa-inline-transform.c.
286 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
288 * Makefile.in (ipa-inline-transform.o): New file.
289 * cgraphunit.c (save_inline_function_body): Move to
290 ipa-inline-transform.c
292 2011-04-19 DJ Delorie <dj@redhat.com>
294 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
295 registers if we already know there aren't any.
296 (m32c_emit_epilogue): Don't emit a barrier here.
297 (m32c_emit_eh_epilogue): Likewise.
298 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
299 operands at expand time.
300 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
302 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
303 duplicates. Provide aliases instead.
304 * config/m32c/prologue.md (eh_return): Emit a barrier here.
305 (eh_epilogue): Add a "(return)" here as a hint to other parts of
308 2011-04-19 Anatoly Sokolov <aesok@post.ru>
310 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
311 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
312 (general_or_i64_p, sparc_register_move_cost): New function.
314 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
316 * doc/install.texi (Configuration, --enable-threads): Remove mach.
317 Add lynx, mipssde. Sort table.
319 2011-04-19 Xinliang David Li <davidxl@google.com>
321 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
324 2011-04-19 Jakub Jelinek <jakub@redhat.com>
327 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
328 is a SUBREG with non-MODE_INT mode inside of it.
330 2011-04-19 Martin Jambor <mjambor@suse.cz>
332 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
333 also according to actual contants.
334 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
335 (gimple_fold_call): Use it.
336 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
338 2011-04-19 Martin Jambor <mjambor@suse.cz>
340 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
341 non-pointer assignments.
343 2011-04-19 Martin Jambor <mjambor@suse.cz>
345 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
346 account anc_offset and otr_type from the indirect edge info.
347 * ipa-prop.c (get_ancestor_addr_info): New function.
348 (compute_complex_ancestor_jump_func): Assignment analysis moved to
349 get_ancestor_addr_info, call it.
350 (ipa_note_param_call): Do not initialize information about polymorphic
351 calls, return the indirect call graph edge. Remove the last
352 parameter, adjust all callers.
353 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
354 parameters. Initialize polymorphic information in the indirect edge.
356 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
359 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
360 the types if they have different enumeration identifiers.
362 2011-04-19 Jan Hubicka <jh@suse.cz>
364 * cgraph.h (cgraph_optimize_for_size_p): Declare.
365 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
366 * predict.c (cgraph_optimize_for_size_p): Break out from ...
367 (optimize_function_for_size_p) ... here.
369 2011-04-19 Richard Guenther <rguenther@suse.de>
372 * tree.c (free_lang_data): Do not reset the decl-assembler-name
375 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
377 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
378 if DECL_NO_INLINE_WARNING_P is set on the function.
380 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
383 * reload1.c (inc_for_reload): Return void. All callers changed.
384 (emit_input_reload_insns): Don't try to delete previous output
385 reloads to a register, or record spill_reg_store for autoincs.
387 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
389 * gengtype.h: Updated copyright year.
390 (struct input_file_st): Add inpisplugin field.
391 (type_fileloc): New function.
393 (write_typed_struct_alloc_def): Add gcc_assert.
394 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
395 (write_typed_alloc_defns): Don't output for plugin files.
396 (input_file_by_name): Clear inpisplugin field.
397 (main): Set inpisplugin field for plugin files.
399 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
401 * gengtype-state.c (string_eq): New.
402 (read_state): Use string_eq instead of strcmp when creating the
405 2011-04-19 Wei Guozhi <carrot@google.com>
408 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
409 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
411 * config/arm/constraints.md (Uu): New constraint.
412 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
414 2011-04-19 Tristan Gingold <gingold@adacore.com>
416 * config.gcc (-*-*-*vms): Added.
417 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
419 * config/vms/vms-ld.c: New file.
420 * config/vms/vms-ar.c: New file.
421 * config/vms/t-vmsnative: New file.
423 2011-04-18 Xinliang David Li <davidxl@google.com>
425 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
427 2011-04-18 Jakub Jelinek <jakub@redhat.com>
430 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
431 if TREE_TYPE (v) is non-NULL.
433 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
434 gimple_get_virt_mehtod_for_binfo.
435 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
436 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
438 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
440 2011-04-18 Michael Matz <matz@suse.de>
441 Steve Ellcey <sje@cup.hp.com>
443 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
444 use its mode as source mode if it isn't VOIDmode.
446 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
448 * doc/passes.texi: Fill crossref nodes.
450 2011-04-18 Jim Meyering <meyering@redhat.com>
452 Fix doubled-word typos in comments and strings
453 * config/alpha/vms-unwind.h: s/for for/for/
454 * config/arm/unwind-arm.h: Likewise.
455 * config/microblaze/microblaze.c: Likewise.
456 * config/sh/constraints.md: s/in in/in/
457 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
459 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
461 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
462 (AVX_FLOAT_MODE_P): Ditto.
463 (AVX128_VEC_FLOAT_MODE_P): Ditto.
464 (AVX256_VEC_FLOAT_MODE_P): Ditto.
465 (AVX_VEC_FLOAT_MODE_P): Ditto.
466 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
467 (UNSPEC_MASKSTORE): Ditto.
468 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
469 Merge from <sse>_movmsk<ssemodesuffix> and
470 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
471 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
473 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
474 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
475 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
477 2011-04-18 Jan Hubicka <jh@suse.cz>
479 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
481 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
482 (want_inline_function_called_once_p): Break out the logic from
484 (edge_badness): Ensure that profile is not misupdated.
485 (lookup_recursive_calls): Prioritize by call frequencies.
486 (inline_small_functions): Move program size estimates here;
487 actually process whole queue even when unit growth has been
488 met. (to properly compute inline_failed reasons and for the
489 case unit size decrease.) Revisit comments on recursive inlining.
490 (ipa_inline): Remove unit summary code; first inline hot calls
491 of functions called once, cold calls next.
492 (order, nnodes): Remove unused variables.
493 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
494 (GTFILES): Remove ipa-inline.c
495 * sel-sched.c (fill_insns): Silence uninitialized var warning.
497 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
499 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
501 2011-04-18 Jie Zhang <jie@codesourcery.com>
502 Richard Earnshaw <rearnsha@arm.com>
504 * arm.c (neon_builtin_type_bits): Remove.
505 (typedef enum neon_builtin_mode): New.
506 (T_MAX): Don't define.
507 (typedef enum neon_builtin_datum): Remove bits, codes[],
508 num_vars and base_fcode. Add mode, code and fcode.
509 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
510 VAR10): Change accordingly.
511 (neon_builtin_data[]): Change accordingly
512 (arm_init_neon_builtins): Change accordingly.
513 (neon_builtin_compare): Remove.
514 (locate_neon_builtin_icode): Remove.
515 (arm_expand_neon_builtin): Change accordingly.
517 * arm.h (enum arm_builtins): Move to ...
518 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
520 * arm.c (arm_builtin_decl): Declare.
521 (TARGET_BUILTIN_DECL): Define.
522 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
523 (arm_builtin_decls[]): New.
524 (arm_init_neon_builtins): Store builtin declarations in
526 (arm_init_tls_builtins): Likewise.
527 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
528 (arm_builtin_decl): New.
530 2011-04-18 Richard Guenther <rguenther@suse.de>
532 * tree.c (upper_bound_in_type): Build properly canonicalized
534 (lower_bound_in_type): Likewise.
536 2011-04-18 Richard Guenther <rguenther@suse.de>
538 * gimple.h (gimple_call_addr_fndecl): New function.
539 (gimple_call_fndecl): Use it.
540 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
542 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
543 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
545 2011-04-18 Richard Guenther <rguenther@suse.de>
548 * tree.c (build_string): STRING_CST is now derived from tree_typed.
550 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
553 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
554 DECL_IN_CONSTANT_POOL without RTL.
556 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
557 Ira Rosen <ira.rosen@linaro.org>
560 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
561 to match neon_vzip/vuzp/vtrn_internal.
562 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
563 outputs explicitly dependent on both inputs.
564 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
566 2011-04-18 Jakub Jelinek <jakub@redhat.com>
568 PR tree-optimization/48616
569 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
570 whether the shift is by scalar or vector based on whether all SLP
571 scalar stmts have the same rhs.
573 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
575 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
578 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
580 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
583 2011-04-17 Jan Hubicka <jh@suse.cz>
585 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
586 * cgrpahunit.c (cgraph_finalize_function): Do not set
587 finalized_by_frontend.
588 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
589 finalized_by_frontend.
591 2011-04-17 Jan Hubicka <jh@suse.cz>
593 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
594 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
595 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
596 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
598 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
600 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
602 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
605 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
606 is non-null before accessing it.
607 (input_cgraph): Remove trailing spaces.
609 2011-04-17 Revital Eres <revital.eres@linaro.org>
611 * params.def (sms-min-sc): New param flag.
612 * modulo-sched.c (sms_schedule): Use it.
613 * doc/invoke.texi (sms-min-sc): Document it.
615 2011-04-17 Jan Hubicka <jh@suse.cz>
617 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
618 present, also set gimple_call_set_cannot_inline.
619 * ipa-inline.c: Update toplevel comment.
621 (cgraph_clone_inlined_nodes): Fix linebreaks.
622 (cgraph_check_inline_limits): Restructure to ...
623 (caller_growth_limits): ... this one; be more tolerant
624 on growth in nested inline chains; add explanatory comment;
625 fix stack accounting thinko introduced by previous patch.
626 (cgraph_default_inline_p): Remove.
627 (report_inline_failed_reason): New function.
628 (can_inline_edge_p): New function.
629 (can_early_inline_edge_p): New function.
630 (leaf_node_p): Move upwards in file.
631 (want_early_inline_function_p): New function.
632 (want_inline_small_function_p): New function.
633 (want_inline_self_recursive_call_p): New function.
634 (cgraph_edge_badness): Rename to ...
635 (edge_badness) ... this one; fix linebreaks.
636 (update_edge_key): Update call of edge_baddness; add
637 detailed dump about queue updates.
638 (update_caller_keys): Use can_inline_edge_p and
639 want_inline_small_function_p.
640 (cgraph_decide_recursive_inlining): Rename to...
641 (recursive_inlining): Use can_inline_edge_p and
642 want_inline_self_recursive_call_p; simplify and remove no longer
644 (cgraph_set_inline_failed): Remove.
645 (add_new_edges_to_heap): Use can_inline_edge_p and
646 want_inline_small_function_p.
647 (cgraph_decide_inlining_of_small_functions): Rename to ...
648 (inline_small_functions): ... this one; cleanup; use
649 can/want predicates; cleanup debug ouput; work edges till fibheap
650 is exhausted and do not stop once unit growth is reached; remove
651 later loop processing remaining edges.
652 (cgraph_flatten): Rename to ...
653 (flatten_function): ... this one; use can_inline_edge_p
654 and can_early_inline_edge_p predicates.
655 (cgraph_decide_inlining): Rename to ...
656 (ipa_inline): ... this one; remove unreachable nodes before
657 inlining functions called once; simplify the pass.
658 (cgraph_perform_always_inlining): Rename to ...
659 (inline_always_inline_functions): ... this one; use
660 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
661 (cgraph_decide_inlining_incrementally): Rename to ...
662 (early_inline_small_functions): ... this one; simplify
663 using new predicates; cleanup; make dumps prettier.
664 (cgraph_early_inlining): Rename to ...
665 (early_inliner): newer inline regular functions into always-inlines;
666 fix updating of call stmt summaries.
667 (pass_early_inline): Update for new names.
668 (inline_transform): Fix formating.
669 (gate_cgraph_decide_inlining): Rename to ...
670 (pass_ipa_inline): ... this one.
671 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
672 * ipa-inline-analysis.c (dump_inline_summary): Update.
673 (compute_inline_parameters): Do not compute disregard_inline_limits;
674 look for mismatching arguments.
675 (estimate_growth): Fix handlig of non-trivial self recursion.
676 (inline_read_summary): Do not read info->disregard_inline_limits.
677 (inline_write_summary): Do not write info->disregard_inline_limits.
678 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
679 and move all checks into can_inline_edge_p predicate; re-enable code
680 comparing optimization levels.
681 (expand_call_inline): Do not test inline_forbidden_into_p.
682 * Makefile.in (ipa-inline.o): Update arguments.
684 2011-04-17 Revital Eres <revital.eres@linaro.org>
686 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
688 2011-04-17 Revital Eres <revital.eres@linaro.org>
690 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
692 2011-04-17 Michael Matz <matz@suse.de>
694 PR tree-optimization/48622
696 * ipa-inline-analysis.c (inline_read_summary): Read size/time
697 in same order as they're written.
699 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
701 * config/pa/predicates.md: Reorganize and simplify predicates.
702 Eliminate duplicate code checks.
703 (arith_operand): Rename to arith14_operand
704 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
705 * config/pa/pa.md: Use renamed operands.
706 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
707 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
708 arith11_operand, adddi3_operand, indexed_memory_operand,
709 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
710 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
711 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
712 move_dest_operand, move_src_operand, prefetch_cc_operand,
713 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
714 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
715 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
716 div_operand, int5_operand, movb_comparison_operator,
717 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
718 arith_double_operand, ireg_operand, lhs_lshift_operand,
719 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
720 integer_store_memory_operand): Likewise.
721 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
722 (integer_store_memory_operand, read_only_operand,
723 function_label_operand, borx_reg_operand,
724 non_hard_reg_operand): Likewise.
725 (eq_neq_comparison_operator): Delete unused operator.
726 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
727 function_label_operand.
728 (emit_move_sequence): Likewise.
730 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
732 * config/i386/sse.md (sseunpackmode): New mode attribute.
733 (ssepackmode): Ditto.
734 (vec_pack_trunc_<mode>): Macroize expander from
735 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
736 (vec_unpacks_lo_<mode>): Macroize expander from
737 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
738 (vec_unpacks_hi_<mode>): Macroize expander from
739 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
740 (vec_unpacku_lo_<mode>): Macroize expander from
741 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
742 (vec_unpacku_hi_<mode>): Macroize expander from
743 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
744 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
745 ix86_expand_sse4_unpack.
746 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
748 2011-04-16 Jan Hubicka <jh@suse.cz>
750 * cgraphbuild.c: Include ipa-inline.h.
751 (reset_inline_failed): Use initialize_inline_failed.
752 * cgraph.c: Include ipa-inline.h.
753 (cgraph_create_node_1): Do not initialize estimated_growth.
754 (initialize_inline_failed): More to ipa-inline-analysis.c
755 (dump_cgraph_node): Do not dump inline flags.
756 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
757 and disregard_inline_limits flags.
758 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
759 time, size, estimated_growth.
760 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
762 * cgraphunit.c (cgraph_decide_is_function_needed): Use
763 DECL_DISREGARD_INLINE_LIMITS.
764 (cgraph_analyze_function): Do not initialize
765 node->local.disregard_inline_limits.
766 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
767 inlinable, versionable and disregard_inline_limits.
768 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
769 cgraph_check_inline_limits, cgraph_default_inline_p,
770 cgraph_edge_badness, update_caller_keys, update_callee_keys,
771 add_new_edges_to_heap): Update.
772 (cgraph_decide_inlining_of_small_function): Update; set
773 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
774 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
775 cgraph_decide_inlining_incrementally): Update.
776 * ipa-inline.h (inline_summary): Add inlinable, versionable,
777 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
778 time, size and estimated_growth parameters.
779 (estimate_edge_growth): Update.
780 (initialize_inline_failed): Declare.
781 * ipa-split.c: Include ipa-inline.h
782 (execute_split_functions): Update.
783 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
784 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
785 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
786 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
787 estimated_growth to INT_MIN.
788 (inline_node_duplication_hook): Likewise.
789 (dump_inline_summary): Dump new fields.
790 (compute_inline_parameters): Update.
791 (estimate_edge_time, estimate_time_after_inlining,
792 estimate_size_after_inlining, estimate_growth, inline_read_summary,
793 inline_write_summary):
794 (initialize_inline_failed): Move here from cgraph.c.
795 * tree-sra.c: Include ipa-inline.h.
796 (ipa_sra_preliminary_function_checks): Update.
797 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
800 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
802 * config/i386/sse.md (V16): New mode iterator.
804 (AVXMODEQI, AVXMODEDI): Remove.
805 (sse2, sse3): New mode attribute.
806 (mov<mode>): Use V16 mode iterator.
807 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
808 (push<mode>1): Use V16 mode iterator.
809 (movmisalign<mode>): Ditto.
810 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
811 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
812 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
813 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
814 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
815 avx_movdqu<avxmodesuffix>.
816 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
817 *avx_movdqu<avxmodesuffix>.
818 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
819 avx_lddqu<avxmodesuffix>.
820 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
821 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
822 avx_movnt<AVXMODEDI:mode>.
823 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
824 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
826 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
829 * haifa-sched.c (prune_ready_list, schedule_block): Use
830 sched_pressure_p rather than flag_sched_pressure.
832 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
834 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
835 cgraph_get_node instead of cgraph_get_create_node.
837 2011-04-15 Jakub Jelinek <jakub@redhat.com>
839 * cfgexpand.c (expand_debug_expr): Use
840 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
842 2011-04-15 Michael Matz <matz@suse.de>
844 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
845 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
846 * function.c (gimplify_parameters): Ditto.
847 * gimplify.c (gimplify_vla_decl): Ditto.
849 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
850 (gimple_call_set_alloca_for_var): New inline function.
851 (gimple_call_alloca_for_var_p): Ditto.
852 * gimple.c (gimple_build_call_from_tree): Remember
853 CALL_ALLOCA_FOR_VAR_P state.
854 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
856 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
857 calls if they were for VLA objects.
859 2011-04-15 Martin Jambor <mjambor@suse.cz>
861 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
864 2011-04-15 Martin Jambor <mjambor@suse.cz>
867 * tree-emutls.c (lower_emutls_function_body): Call
868 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
871 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
873 * c-decl.c (detect_field_duplicates): Call
874 objc_detect_field_duplicates instead of objc_get_interface_ivars.
876 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
878 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
879 * gimple.c (gimple_asm_clobbers_memory_p): Define.
880 * ipa-pure-const.c (check_stmt): Call it.
881 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
883 2011-04-15 Richard Guenther <rguenther@suse.de>
885 PR tree-optimization/48290
886 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
887 Properly decide inhibiting propagation based on the valueized
888 operand. Do loop-closed SSA form preserving here ...
889 (init_copy_prop): ... not here.
891 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
894 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
895 (*ieee_smax<mode>3): Likewise.
897 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
899 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
900 Replace match_operand with match_dup for the third operand in
903 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
905 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
906 to track processing of conditionals. Update all callers.
907 (try_combine, simplify_if_then_else): Update.
909 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
911 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
914 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
916 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
917 instead of match_operand for operand 3.
919 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
921 * recog.h (insn_operand_data): Add an "allows_mem" field.
922 * genoutput.c (output_operand_data): Initialize it.
923 * optabs.c (maybe_legitimize_operand_same_code): New function.
924 (maybe_legitimize_operand): Use it when matching the original
927 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
929 * gimplify.c: Fix issues in comments throughout.
930 (voidify_wrapper_expr): Fix long line.
931 (build_stack_save_restore): Likewise.
932 (gimplify_loop_expr): Likewise.
933 (gimplify_compound_lval): Likewise.
934 (gimplify_init_ctor_eval): Likewise.
935 (gimplify_modify_expr_rhs): Likewise.
936 (omp_notice_threadprivate_variable): Likewise.
938 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
940 * cfgexpand.c (expand_call_stmt): Convert the function type to the
941 original one if this is not a builtin function.
943 2011-04-14 Jakub Jelinek <jakub@redhat.com>
946 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
947 offset it as needed based on top 2 bits in operands[3], change
948 MEM mode to SFmode and mask those 2 bits away from operands[3].
950 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
952 * c-parser.c (c_parser_objc_protocol_definition): Updated for
953 change from objc_declare_protocols() to objc_declare_protocol().
955 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
957 * config/i386/sse.md (sse4_1): New mode attribute.
958 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
959 avx_blend<ssemodesuffix><avxmodesuffix> and
960 sse4_1_blend<ssemodesuffix> using VF mode iterator.
961 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
962 avx_blendv<ssemodesuffix><avxmodesuffix> and
963 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
964 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
965 avx_dp<ssemodesuffix><avxmodesuffix> and
966 sse4_1_dp<ssemodesuffix> using VF mode iterator.
967 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
968 (sse4_1_packusdw): Merge with *avx_packusdw.
969 (sse4_1_pblendvb): Merge with *avx_pblendvb.
970 (sse4_1_pblendw): Merge with *avx_pblendw.
971 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
972 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
973 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
975 (sse4_1_round<ssescalarmodesuffix>): Merge with
976 *avx_round<ssescalarmodesuffix>.
977 (aesenc): Merge with *avx_aesenc.
978 (aesenclast): Merge with *avx_aesenclast.
979 (aesdec): Merge with *avx_aesdec.
980 (aesdeclast): Merge with *avx_aesdeclast.
981 (pclmulqdq): Merge with *pclmulqdq.
982 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
984 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
986 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
989 * cfgexpand.c (get_decl_align_unit): Renamed to ...
990 (align_local_variable): This. Update DECL_ALIGN.
991 (add_stack_var): Updated.
992 (expand_one_stack_var): Likewise.
994 2011-04-14 Richard Guenther <rguenther@suse.de>
996 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
998 (dse_initialize_block_local_data, dse_leave_block,
999 record_voperand_set, get_stmt_uid): Likewise.
1000 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1001 (dse_optimize_stmt): Remove voperand set handling code.
1002 Simplify and improve to handle any kind of killing stmt.
1003 (dse_record_phi): Remove.
1004 (dse_enter_block): Simplify.
1005 (tree_ssa_dse): Likewise.
1006 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1008 2011-04-14 Jan Hubicka <jh@suse.cz>
1010 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1011 * cgraph.h (struct inline_summary): Move to ipa-inline.h
1012 (cgraph_local_info): Remove inline_summary.
1013 * ipa-cp.c: Include ipa-inline.h.
1014 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1015 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1017 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1018 (input_overwrite_node): Do not set inline summary.
1019 (input_node): Do not stream inline summary.
1020 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1021 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1022 growth; we do not have inline parameters computed for that anyway.
1023 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1024 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1025 (inline_summary_t): New type and VECtor.
1026 (debug_inline_summary, dump_inline_summaries): Declare.
1027 (inline_summary): Use VOCtor.
1028 (estimate_edge_growth): Kill hack computing call stmt size directly.
1029 * lto-section-in.c (lto_section_name): Add inline section.
1030 * ipa-inline-analysis.c: Include lto-streamer.h
1031 (node_removal_hook_holder, node_duplication_hook_holder): New holders
1032 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1033 (inline_summary_vec): Define.
1034 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1035 dump_inline_summaries): New functions.
1036 (estimate_function_body_sizes): Properly compute size/time of outgoing
1038 (compute_inline_parameters): Alloc inline_summary; do not compute
1039 size/time of incomming calls.
1040 (estimate_edge_time): Avoid missing time summary hack.
1041 (inline_read_summary): Read inline summary info.
1042 (inline_write_summary): Write inline summary info.
1043 (inline_free_summary): Free all hooks and inline summary vector.
1044 * lto-streamer.h: Add LTO_section_inline_summary section.
1045 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1046 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1048 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1050 * tree-vectorizer.h (vect_strided_store_supported): Add a
1051 HOST_WIDE_INT argument.
1052 (vect_strided_load_supported): Likewise.
1053 (vect_permute_store_chain): Return void.
1054 (vect_transform_strided_load): Likewise.
1055 (vect_permute_load_chain): Delete.
1056 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1057 count argument. Check that the count is a power of two.
1058 (vect_strided_load_supported): Likewise.
1059 (vect_permute_store_chain): Return void. Update after above changes.
1060 Assert that the access is supported.
1061 (vect_permute_load_chain): Likewise.
1062 (vect_transform_strided_load): Return void.
1063 * tree-vect-stmts.c (vectorizable_store): Update calls after
1064 above interface changes.
1065 (vectorizable_load): Likewise.
1066 (vect_analyze_stmt): Don't check for strided powers of two here.
1068 2011-04-14 Richard Guenther <rguenther@suse.de>
1070 PR tree-optimization/48590
1071 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1072 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1073 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1074 BUILT_IN_STACK_SAVE.
1075 * tree-ssa-dce.c (propagate_necessity): Handle
1076 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1078 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1080 * c-parser.c (c_parser_objc_class_declaration): Updated call to
1083 2011-04-14 Richard Guenther <rguenther@suse.de>
1085 * tree.h (get_object_alignment_1): Declare.
1086 * builtins.c (get_object_alignment_1): Split out worker from ...
1087 (get_object_alignment): ... here.
1088 * fold-const.c (get_pointer_modulus_and_residue): Use
1089 get_object_alignment_1.
1091 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1093 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1095 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1096 parameter. Generalise code to handle arrays as well as vectors.
1097 (vect_setup_realignment): Update accordingly.
1098 * tree-vect-stmts.c (vectorizable_store): Likewise.
1099 (vectorizable_load): Likewise.
1101 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1103 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1104 within the per-copy loop.
1106 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1108 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1111 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1113 * doc/options.texi (Negative): Explicitly mention that the
1114 Negative chain must be circular.
1116 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1118 * function.h (block_chainon): Declare.
1119 * function.c (block_chainon): Define.
1121 2011-04-14 Anatoly Sokolov <aesok@post.ru>
1122 Eric Weddington <eric.weddington@atmel.com>
1123 Georg-Johann Lay <avr@gjlay.de>
1125 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1127 (avr_init_builtins, avr_expand_builtin,
1128 avr_expand_delay_cycles, avr_expand_unop_builtin,
1129 avr_expand_binop_builtin ): New functions.
1130 (avr_builtin_id): New enum
1131 (struct avr_builtin_description): New struct
1132 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1133 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1135 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1136 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1137 UNSPECV_DELAY_CYCLES): new enumeration values
1138 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1139 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1140 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1141 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1142 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1143 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1144 "fmulsu"): New insns
1146 * config/avr/avr-c.c: fix line endings
1147 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1148 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1149 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1150 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1151 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1153 * doc/extend.texi (AVR Built-in Functions): New node
1154 (Target Builtins): Add documentation of AVR
1157 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
1160 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1161 alone. Error if non-const data has attribute progmem.
1163 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1165 * tree.h (struct tree_constructor): Include tree_typed instead of
1167 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1168 TS_TYPED instead of TS_COMMON.
1170 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1172 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1173 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1174 (sse2_psadbw): Merge with *avx_psadbw.
1175 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1176 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1177 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1178 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1179 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1180 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1181 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1182 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1183 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1184 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1185 (ssse3_palignrti): Merge with *avx_palignrti.
1187 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1189 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1190 * tree-ssanames.c (fini_ssanames): VEC_free it.
1191 (make_ssa_name_fn): Update for VECness of free_ssanames.
1192 (release_ssa_name, release_dead_ssa_names): Likewise.
1193 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1195 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1196 TS_TYPED instead of TS_COMMON.
1198 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1200 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1201 statistics_counter_event.
1202 * tree-ssa-copyrename.c (stats): Define.
1203 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1204 statistics_counter_event.
1205 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1206 (bswap_stats, widen_mul_stats): Define.
1207 (insert_reciprocals): Increment rdivs_inserted.
1208 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1209 rfuncs_inserted. Add calls to statistics_counter_event.
1210 (execute_cse_sincos_1): Increment inserted.
1211 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1212 statistics_counter_event.
1213 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1214 of bswap_stats. Add calls to statistics_counter_event.
1215 (convert_mult_to_widen): Increment widen_mults_inserted.
1216 (convert_plusminus_to_widen): Increment maccs_inserted.
1217 (convert_mult_to_fma): Increment fmas_inserted.
1218 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1219 calls to statistics_counter_event.
1221 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1223 PR rtl-optimization/48455
1224 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1225 `temp_costs->mem_cost'.
1227 2011-04-13 Jan Hubicka <jh@suse.cz>
1229 * ipa-inline.h: New file.
1230 * ipa-inline-analysis.c: New file. Broken out of ...
1231 * ipa-inline.c: ... this file; update toplevel comment;
1232 include ipa-inline.h
1233 (inline_summary): Move to ipa-inline.h
1234 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1235 ipa-inline-analysis.c.
1236 (cgraph_estimate_time_after_inlining): Rename to
1237 estiamte_time_after_inlining; move to ipa-inline-analysis.c
1238 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1239 to estimate_edge_growth.
1240 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1241 rename to estimate_size_after_inlining.
1242 (cgraph_mark_inline_edge): Update for new naming convention.
1243 (cgraph_check_inline_limits): Likewise.
1244 (cgraph_edge_badness): Likewise.
1245 (cgraph_decide_recursive_inlining): Likewise.
1246 (cgraph_decide_inlining_of_small_functions): Likewise.
1247 (cgraph_decide_inlining_incrementally): Likewise.
1248 (cgraph_estimate_growth): Rename to estimate_growth; move to
1249 ipa-inline-analysis.c.
1250 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1251 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1252 (compute_inline_parameters): Likewise.
1253 (compute_inline_parameters_for_current): Likewise.
1254 (pass_inline_parameters): Likewise.
1255 (inline_indirect_intraprocedural_analysis): Likewise.
1256 (analyze_function): Rename to inline_analyze_function; likewise.
1257 (add_new_function): Move to ipa-inline-analysis.c.
1258 (inline_generate_summary): Likewise.
1259 (inline_read_summary): Likewise.
1260 (inline_write_summary): Likewise.
1261 * Makefile.in (ipa-inline-analysis.c): New file.
1263 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1265 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1266 * configure: Regenerate.
1268 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1270 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1271 instead of tree_common.
1272 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1274 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1275 TS_TYPED rather than TS_COMMON.
1276 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1278 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
1281 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1282 r20 around calls of __tablejump_elpm__
1284 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1287 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1289 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1291 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
1293 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1294 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1295 (cfi_vec): New typedef.
1296 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1297 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1298 (cie_cfi_vec): New static variable.
1299 (cie_cfi_head): Delete.
1300 (add_cfi): Accept a cfi_vec * as first argument. All callers and
1301 declaration changed. Use vector rather than list operations.
1302 (new_cfi): Don't initialize the dw_cfi_next field.
1303 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1304 rather than list operations.
1305 (lookup_cfa): Use vector rather than list operations.
1306 (output_cfis): New argument upto. Accept a cfi_vec rather than
1307 a dw_cfi_ref list head as argument. All callers changed.
1308 Iterate over the vector using upto as a maximum index.
1309 (output_all_cfis): New static function.
1310 (output_fde): Use vector rather than list operations. Use the
1311 new upto argument for output_cfis rather than manipulating a
1313 (dwarf2out_begin_prologue): Change initializations to match
1315 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1316 from the vector length rather than searching for the end of a list.
1317 Use output_all_cfis.
1318 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1320 2011-04-13 Nick Clifton <nickc@redhat.com>
1322 * config/rx/rx.md (movmemsi): Do not use this pattern when
1323 volatile pointers are involved.
1325 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
1327 * config/i386/sse.md (pinsrbits): Remove.
1328 (sse2_packsswb): Merge with *avx_packsswb.
1329 (sse2_packssdw): Merge with *avx_packssdw.
1330 (sse2_packuswb): Merge with *avx_packuswb.
1331 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1332 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1333 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1334 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1335 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1336 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1337 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1338 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1339 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1340 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1341 (sse2_loadld): Merge with *avx_loadld.
1342 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1343 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1344 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1345 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1346 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1348 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1350 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1352 * print-tree.c (print_node): Likewise.
1353 * tree-inline.c (copy_tree_r): Likewise.
1354 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1355 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1356 instead of TS_COMMON.
1357 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1358 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1359 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1360 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1361 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1363 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1365 (TREE_CHAIN): Check for a TS_COMMON structure.
1366 (TREE_TYPE): Check for a TS_TYPED structure.
1368 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1370 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1371 cgraph_get_create_node instead of cgraph_node.
1373 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1375 * c-parser.c (c_parser_initelt): Updated call to
1376 objc_build_message_expr.
1377 (c_parser_postfix_expression): Likewise.
1379 2011-04-12 Kai Tietz <ktietz@redhat.com>
1381 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1382 MASK_MS_BITFIELD_LAYOUT bit.
1384 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1386 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1387 assert it is always true.
1388 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1391 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1393 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1394 compiling Objective-C to be more efficient.
1396 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
1398 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1401 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1403 * recog.h, genoutput.c, optabs.c: Revert last patch.
1405 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1408 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1410 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1412 * recog.h (insn_operand_data): Add an "allows_mem" field.
1413 * genoutput.c (output_operand_data): Initialize it.
1414 * optabs.c (maybe_legitimize_operand_same_code): New function.
1415 (maybe_legitimize_operand): Use it when matching the original
1418 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1420 * genpreds.c (process_define_predicate): Move most processing
1421 to gensupport.c. Continue to validate the expression.
1422 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1423 (process_define_predicate): Move processing to gensupport.c.
1424 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1425 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1426 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1428 (valid_predicate_name_p): New function, split out from old
1429 genpreds.c:process_define_predicate.
1430 (process_define_predicate): New function, combining code from
1431 old genpreds.c and genrecog.c functions.
1432 (process_rtx): Call it for DEFINE_PREDICATE and
1433 DEFINE_SPECIAL_PREDICATE.
1435 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1437 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1438 size of a '%A' memory reference.
1439 (T_DREG, T_QREG): New neon_builtin_type_bits.
1440 (arm_init_neon_builtins): Assert that the load and store operands
1441 are neon_struct_operands.
1442 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1443 (NEON_ARG_MEMORY): New builtin_arg.
1444 (neon_dereference_pointer): New function.
1445 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1446 Handle NEON_ARG_MEMORY.
1447 (arm_expand_neon_builtin): Update after above interface changes.
1448 Use NEON_ARG_MEMORY for loads and stores.
1449 * config/arm/predicates.md (neon_struct_operand): New predicate.
1450 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1451 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1452 (V_four_elem): Tweak formatting.
1453 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1454 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1455 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1456 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1457 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1458 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1459 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1460 Use %A in the output template.
1461 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1462 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1463 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1464 the width of the memory access. Remove post-increment.
1465 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1467 2011-04-12 Nick Clifton <nickc@redhat.com>
1469 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1470 instruction for interrupt handlers if the target is the basic V850
1472 (expand_epilogue): Likewise.
1474 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1476 PR rtl-optimization/48549
1477 * combine.c (propagate_for_debug): Also stop after BB_END of
1478 this_basic_block. Process LAST and just stop processing after it.
1479 (combine_instructions): If last_combined_insn has been deleted,
1480 set last_combined_insn to its PREV_INSN.
1482 2011-04-12 Richard Guenther <rguenther@suse.de>
1484 PR tree-optimization/46076
1485 * gimple.h (struct gimple_statement_call): Add fntype field.
1486 (gimple_call_fntype): Adjust.
1487 (gimple_call_set_fntype): New function.
1488 * gimple.c (gimple_build_call_1): Set the call function type.
1489 * gimplify.c (gimplify_call_expr): Preserve the function
1490 type the frontend used for the call.
1491 (gimplify_modify_expr): Likewise.
1492 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1494 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1496 * tree-ssa.c (useless_type_conversion_p): Function pointer
1497 conversions are useless.
1499 2011-04-12 Martin Jambor <mjambor@suse.cz>
1501 * cgraph.h (cgraph_node): Remove function declaration.
1502 (cgraph_create_node): Declare.
1503 (cgraph_get_create_node): Likewise.
1504 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1505 Updated all callers.
1506 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1507 the decl does not already exist. Call cgraph_get_create_node instead
1509 (cgraph_get_create_node): New function.
1510 (cgraph_same_body_alias): Update comment.
1511 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1512 assert it does not return NULL.
1513 (cgraph_update_edges_for_call_stmt): Likewise.
1514 (cgraph_clone_edge): Likewise.
1515 (cgraph_create_virtual_clone): Likewise.
1516 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1517 instead of cgraph_node.
1518 (cgraph_add_new_function): Call cgraph_create_node or
1519 cgraph_get_create_node instead of cgraph_node.
1520 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1521 instead of cgraph_node.
1522 (record_eh_tables): Likewise.
1523 (mark_address): Likewise.
1524 (mark_load): Likewise.
1525 (build_cgraph_edges): Call cgraph_get_create_node instead
1527 (rebuild_cgraph_edges): Likewise.
1528 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1529 instead of cgraph_node.
1530 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1532 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1533 cgraph_create_node instead of cgraph_node.
1534 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1536 * lto-cgraph.c (input_node): Likewise.
1537 * lto-streamer-in.c (input_function): Likewise.
1538 * varasm.c (mark_decl_referenced): Likewise.
1539 (assemble_alias): Likewise.
1541 2011-04-12 Martin Jambor <mjambor@suse.cz>
1543 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1544 instead of cgraph_node and assert it does not return NULL.
1545 * lto-streamer-in.c (lto_read_body): Likewise.
1546 * omp-low.c (new_omp_context): Likewise.
1547 (create_task_copyfn): Likewise.
1548 * tree-emutls.c (lower_emutls_function_body): Likewise.
1549 * matrix-reorg.c (transform_allocation_sites): Likewise.
1551 2011-04-12 Jakub Jelinek <jakub@redhat.com>
1554 * c-typeck.c (build_asm_expr): Error out on attempts to use
1555 void type outputs or inputs for constraints that allow reg or
1558 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1559 Richard Earnshaw <rearnsha@arm.com>
1562 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1563 to use sign-magnitude offsets. Reject unsupported unaligned
1564 cases. Add detailed description in comments.
1565 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1566 condition from TARGET_32BIT to TARGET_ARM.
1568 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1570 * tree.h (struct typed_tree): New.
1571 (struct tree_common): Include it instead of tree_base.
1572 (TREE_TYPE): Update for new location of type field.
1573 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1574 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1575 (union tree_node): Add typed field.
1576 * treestruct.def (TS_TYPED): New.
1577 * lto-streamer.c (check_handled_ts_structures): Handle it.
1578 * tree.c (MARK_TS_TYPED): New macro.
1579 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1581 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1583 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1584 (force_nonfallthru): Do not alter the loop nest if no basic block
1587 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1589 * config/i386/sse.md (VI): New mode iterator.
1591 (AVX256MODEI): Ditto.
1592 (AVXMODEF4P): Ditto.
1593 (avxvecpsmode): Ditto.
1594 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1595 (sse2_andnot<mode>3): New expander.
1596 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1597 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1598 (<any_logic:code><mode>3): Use VI mode iterator.
1599 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1600 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1601 (*andnottf3): Handle AVX three-operand constraints.
1602 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1604 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1605 Robert Millan <rmh@gnu.org>
1607 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1608 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1609 GNU_USER_DYNAMIC_LINKER64): Define.
1610 (REG_NAME): Don't undefine.
1611 (MD_UNWIND_SUPPORT): Undefine.
1612 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1613 (REG_NAME): Don't undefine.
1614 (MD_UNWIND_SUPPORT): Undefine.
1615 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1617 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1619 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1620 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1622 2011-04-11 Xinliang David Li <davidxl@google.com>
1624 * value-profile.c (check_ic_target): New function.
1625 (gimple_ic_transform): Sanity check indirect call target.
1626 * gimple-low.c (gimple_check_call_args): Interface change.
1627 (gimple_check_call_matching_types): New function.
1628 * tree-inline.c (tree_can_inline_p): Call new function.
1630 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1632 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1633 tree-pretty-print.h & realmpfr.h.
1635 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1638 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1639 (setup_allocno_and_important_classes): Ditto.
1641 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1643 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1644 GNU_USER_DYNAMIC_LINKER.
1645 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1646 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1647 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1648 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1649 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1650 GNU_USER_TARGET_OS_CPP_BUILTINS.
1651 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1652 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1653 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1654 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1655 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1656 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1657 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1658 GNU_USER_TARGET_OS_CPP_BUILTINS.
1659 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1660 GNU_USER_DYNAMIC_LINKER.
1661 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1662 GNU_USER_TARGET_OS_CPP_BUILTINS.
1663 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1664 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1665 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1666 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1667 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1668 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1669 GNU_USER_DYNAMIC_LINKER64): Remove.
1670 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1671 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1672 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1673 GNU_USER_DYNAMIC_LINKER.
1674 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1675 GNU_USER_TARGET_OS_CPP_BUILTINS.
1676 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1677 GNU_USER_TARGET_OS_CPP_BUILTINS.
1678 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1679 to GNU_USER_TARGET_OS_CPP_BUILTINS.
1680 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1681 GNU_USER_TARGET_OS_CPP_BUILTINS.
1682 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1683 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1684 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1685 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1686 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1687 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1688 GNU_USER_DYNAMIC_LINKER.
1689 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1690 GNU_USER_TARGET_OS_CPP_BUILTINS.
1691 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1692 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1693 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1694 GNU_USER_DYNAMIC_LINKER.
1695 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1696 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1697 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1698 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1699 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1700 GNU_USER_DYNAMIC_LINKER.
1701 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1702 GNU_USER_DYNAMIC_LINKERN32.
1703 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1704 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
1705 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
1706 GNU_USER_DYNAMIC_LINKER32.
1707 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1708 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1709 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1710 GNU_USER_DYNAMIC_LINKER.
1711 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1712 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1713 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1714 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1715 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1716 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1717 GNU_USER_DYNAMIC_LINKER32.
1718 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1719 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1720 GNU_USER_DYNAMIC_LINKER.
1721 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1722 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1723 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1724 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
1725 GNU_USER_DYNAMIC_LINKER64.
1726 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1727 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1728 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1729 GNU_USER_DYNAMIC_LINKER.
1730 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1731 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1732 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1733 GNU_USER_DYNAMIC_LINKER.
1734 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1735 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1736 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1737 GNU_USER_DYNAMIC_LINKER32.
1738 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1739 GNU_USER_DYNAMIC_LINKER64.
1740 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1741 GNU_USER_DYNAMIC_LINKER64.
1742 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1744 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1745 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1746 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1748 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1750 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
1751 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1752 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1753 GNU_USER_DYNAMIC_LINKER.
1754 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1755 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
1756 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1757 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1758 GNU_USER_DYNAMIC_LINKER64.
1759 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1760 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1761 GNU_USER_LINK_EMULATION.
1762 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1763 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1764 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1765 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1766 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1767 CPP_SPEC, CC1_SPEC): Remove.
1768 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1769 (GNU_USER_DYNAMIC_LINKER): Define.
1770 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1771 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1772 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1773 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1774 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1775 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1776 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1777 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1778 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1779 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1780 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1781 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1782 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1783 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1784 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1785 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1786 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1787 GNU_USER_DYNAMIC_LINKER.
1788 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1789 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1790 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1791 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1792 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1793 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1794 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1795 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1796 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1797 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1799 2011-04-11 Kai Tietz <ktietz@redhat.com>
1803 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1804 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1806 (ix86_is_msabi_thiscall): Removed.
1807 (ix86_is_type_thiscall): Likewise.
1808 (ix86_get_callcvt): New function.
1809 (ix86_comp_type_attributes): Simplify check.
1810 (ix86_function_regparm): Use ix86_get_callcvt for calling
1811 convention attribute checks.
1812 (ix86_return_pops_args): Likewise.
1813 (ix86_static_chain): Likewise.
1814 (x86_this_parameter): Likewise.
1815 (x86_output_mi_thunk): Likewise.
1816 (ix86_function_type_abi): Optimize check for types without attributes.
1817 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1818 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1819 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1821 (IX86_BASE_CALLCVT): Helper macro.
1822 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1823 Use ix86_get_callcvt for calling convention attribute checks and avoid
1824 symbol-decoration for stdcall in TARGET_RTD case.
1825 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1827 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1830 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1832 * config/i386/sse.md (VI_128): New mode iterator.
1833 (VI12_128): Rename from SSEMODE12.
1834 (VI14_128): Rename from SSEMODE14.
1835 (VI124_128): New mode iterator.
1836 (VI24_128): Rename from SSEMODE248.
1837 (VI248_128): Rename from SSEMODE248.
1838 (SSEMODE124C8): Remove.
1839 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1840 (*sse2_<plusminus_insn><mode>3): Merge with
1841 *avx_<plusminus_insn><mode>3.
1842 (*mulv8hi3): Merge with *avx_mulv8hi3.
1843 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1844 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1845 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1846 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1847 (ashr<mode>3): Merge with *avx_ashr<mode>3.
1848 (lshr<mode>3): Merge with *avx_lshr<mode>3.
1849 (ashl<mode>3): Merge with *avx_ashl<mode>3.
1850 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1851 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1852 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1853 (*<smaxmin:code>v8hi3): Ditto.
1854 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1855 (*<smaxmin:code>v16qi3): Ditto.
1856 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1857 (*sse2_eq<mode>3): Ditto.
1858 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1859 (*sse2_gt<mode>3): Ditto.
1860 (vcondv2di): Split out of vcond<mode>.
1861 (vconduv2di): Split out of vcondu<mode>.
1863 2011-04-11 Richard Guenther <rguenther@suse.de>
1865 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1866 before calling tree_low_cst.
1868 2011-04-11 Richard Guenther <rguenther@suse.de>
1870 * stor-layout.c (layout_type): Compute all array index size operations
1871 in the original type.
1872 (initialize_sizetypes): Add comment.
1873 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1875 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1877 * common.opt (Tbss=, Tdata=, Ttext=): New options.
1879 2011-04-11 Martin Jambor <mjambor@suse.cz>
1881 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1882 of cgraph_node, handle NULL return value.
1883 (cgraph_global_info): Likewise.
1884 (cgraph_rtl_info): Likewise.
1885 * tree-inline.c (estimate_num_insns): Likewise.
1886 * gimplify.c (unshare_body): Likewise.
1887 (unvisit_body): Likewise.
1888 (gimplify_body): Likewise.
1889 * predict.c (optimize_function_for_size_p): Likewise.
1890 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1891 (call_may_clobber_ref_p_1): Likewise.
1892 * varasm.c (function_section_1): Likewise.
1893 (assemble_start_function): Likewise.
1895 2011-04-11 Martin Jambor <mjambor@suse.cz>
1897 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1899 * final.c (rest_of_clean_state): Likewise.
1900 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1901 * passes.c (pass_init_dump_file): Likewise.
1902 (execute_all_ipa_transforms): Likewise.
1903 (function_called_by_processed_nodes_p): Likewise.
1904 * predict.c (maybe_hot_frequency_p): Likewise.
1905 (probably_never_executed_bb_p): Likewise.
1906 (compute_function_frequency): Likewise.
1907 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1908 (unnest_nesting_tree_1): Likewise.
1909 (lower_nested_functions): Likewise.
1910 * tree-optimize.c (execute_fixup_cfg): Likewise.
1911 (tree_rest_of_compilation): Likewise.
1912 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1913 * tree-sra.c (ipa_early_sra): Likewise.
1914 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1915 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1916 * ipa.c (record_cdtor_fn): Likewise.
1917 * ipa-inline.c (cgraph_early_inlining): Likewise.
1918 (compute_inline_parameters_for_current): Likewise.
1919 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1920 * ipa-pure-const.c (local_pure_const): Likewise.
1921 * ipa-split.c (split_function): Likewise.
1922 (execute_split_functions): Likewise.
1923 * cgraphbuild.c (build_cgraph_edges): Likewise.
1924 (rebuild_cgraph_edges): Likewise.
1925 (cgraph_rebuild_references): Likewise.
1926 (remove_cgraph_callee_edges): Likewise.
1927 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1928 (verify_cgraph_node): Likewise.
1929 (cgraph_analyze_functions): Likewise.
1930 (cgraph_preserve_function_body_p): Likewise.
1931 (save_inline_function_body): Likewise.
1932 (save_inline_function_body): Likewise.
1933 * tree-inline.c (copy_bb): Likewise.
1934 (optimize_inline_calls): Likewise.
1936 2011-04-11 Martin Jambor <mjambor@suse.cz>
1938 PR tree-optimization/48195
1939 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1940 ipa_check_create_edge_args.
1941 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1942 ipa_check_create_edge_args.
1943 * ipa-inline.c (inline_generate_summary): Do not call
1944 ipa_check_create_node_params and ipa_check_create_edge_args.
1945 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1946 ipa_check_create_edge_args.
1948 2011-04-09 Anatoly Sokolov <aesok@post.ru>
1950 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1952 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1953 * function.c (record_hard_reg_sets): Likewise.
1954 * ira.c (compute_regs_asm_clobbered): Likewise.
1955 * sched-deps.c (sched_analyze_1): Likewise.
1956 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1958 2011-04-09 Xinliang David Li <davidxl@google.com>
1960 PR tree-optimization/PR48484
1961 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1962 has_valid_pred lazily
1964 2011-04-09 Duncan Sands <baldrick@free.fr>
1966 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1968 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1970 * combine.c (combine_validate_cost): Adjust comments. Set registered
1971 cost of I0 to zero at the end, if any.
1973 2011-04-08 Xinliang David Li <davidxl@google.com>
1975 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1976 to insane profile data.
1978 2011-04-08 Xinliang David Li <davidxl@google.com>
1980 * ipa-cp.c (ipcp_update_profiling): Correct
1981 negative scale factor due to insane profile data.
1983 2011-04-08 Xinliang David Li <davidxl@google.com>
1985 * final.c (dump_basic_block_info): New function.
1986 (final): Dump basic block.
1987 (final_scan_insn): Remove old dump.
1989 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
1992 * config.gcc (i386-*-freebsd): Disable unwind table generation for
1995 2011-04-08 Michael Matz <matz@suse.de>
1998 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2000 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2001 * rtl.h (rebuild_jump_labels_chain): Declare.
2002 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2003 insns inserted on edges.
2005 2011-04-08 Joseph Myers <joseph@codesourcery.com>
2007 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2008 * config/arm/arm-arches.def: New.
2009 * config/arm/arm-opts.h: New.
2010 * config/arm/genopt.sh: New.
2011 * config/arm/arm-tables.opt: New (generated).
2012 * config/arm/arm.c (arm_handle_option, arm_target_help,
2013 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2014 (all_architectures): Get most table contents from arm-arches.def.
2015 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2016 arm_selected_tune here.
2017 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2018 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2019 (march=, mcpu=, mtune=): Use Enum and Var.
2020 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2021 (arm.o): Update dependencies.
2023 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
2025 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2027 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2028 (write_typed_alloc_defns): Likewise.
2029 (main): Calls write_typed_alloc_defns with output_header.
2031 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
2034 * ira-color.c (setup_profitable_hard_regs): Add comments.
2035 Don't take prohibited hard regs into account.
2036 (setup_conflict_profitable_regs): Rename to
2037 get_conflict_profitable_regs.
2038 (check_hard_reg_p): Check prohibited hard regs.
2040 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2042 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2043 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2044 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2046 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2049 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2050 move from floating point to shift amount register.
2051 (emit_move_sequence): Remove secondary reload support for floating
2052 point to shift amount amount register copies.
2053 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2054 amount register copies.
2055 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2056 register, return false if mode isn't a scalar integer mode.
2057 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2059 2011-04-08 Richard Guenther <rguenther@suse.de>
2061 * gimple.c (gimple_call_flags): Remove kludge.
2063 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2065 * sel-sched.c (sel_region_init): Move call to
2066 sel_setup_region_sched_flags after setup_current_loop_nest.
2068 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
2070 PR rtl-optimization/48272
2071 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2072 init_insn_reg_pressure_info. Adjust a caller.
2073 * sched-int.h (init_insn_reg_pressure_info): Declare.
2074 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2075 when sched-pressure is enabled.
2077 2011-04-08 Richard Guenther <rguenther@suse.de>
2079 * gimple.c (gimple_set_modified): Do not queue calls to
2080 MODIFIED_NORETURN_CALLS here ...
2081 * tree-ssa-operands.c (update_stmt_operands): ... but here.
2083 2011-04-08 Richard Guenther <rguenther@suse.de>
2086 * toplev.c (lang_dependent_init): Do not open asm_out_file
2087 in WPA mode, nor perform debug machinery initialization.
2088 (finalize): Do not unlink asm_out_file in WPA mode.
2090 2011-04-08 Richard Guenther <rguenther@suse.de>
2092 * gimple.h (gimple_call_fntype): New function.
2093 (gimple_call_return_type): Use it.
2094 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2095 * gimple-low.c (gimple_check_call_args): Likewise.
2096 * gimple.c (gimple_call_flags): Likewise.
2097 (gimple_call_arg_flags): Likewise.
2098 (gimple_call_return_flags): Likewise.
2099 * tree-cfg.c (verify_gimple_call): Likewise.
2100 (do_warn_unused_result): Likewise.
2101 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2102 * value-prof.c (gimple_ic_transform): Fix fndecl check.
2104 2011-04-08 Dmitry Melnik <dm@ispras.ru>
2106 PR rtl-optimization/48235
2107 * sel-sched.c (code_motion_process_successors): Recompute the last
2108 insn in basic block if control flow changed.
2109 (code_motion_path_driver): Ditto. Recompute the first insn as well.
2110 Update condition for ilist_remove.
2112 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2114 PR rtl-optimization/48302
2115 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2116 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
2117 it to record added preheader blocks.
2118 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
2119 on to sel_add_loop_preheaders.
2120 (sel_region_init): Move call to setup_current_loop_nest after
2123 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2126 * cfgloop.h (loop_has_exit_edges): New helper.
2127 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2129 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2130 that have no exit edges.
2132 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
2134 PR rtl-optimization/48442
2135 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
2136 all callers. Adjust assert.
2138 2011-04-08 Jakub Jelinek <jakub@redhat.com>
2140 PR tree-optimization/48377
2141 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2142 is_packed to true even for types with smaller TYPE_ALIGN than
2145 2011-04-08 Richard Guenther <rguenther@suse.de>
2148 * doc/tm.texi: Re-generate.
2150 2011-04-08 Wei Guozhi <carrot@google.com>
2153 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2154 * config/arm/arm.c (arm_attr_length_push_multi): New function.
2155 * config/arm/arm.md (*push_multi): Change the length computation to
2158 2011-04-08 Anatoly Sokolov <aesok@post.ru>
2160 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2161 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2162 * doc/tm.texi: Regenerate.
2163 * system.h (ASM_OUTPUT_BSS): Poison.
2164 * varasm.c (asm_output_bss): Remove function.
2165 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2167 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2168 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2169 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2170 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2172 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2174 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2176 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2178 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2180 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2183 2011-04-07 Joseph Myers <joseph@codesourcery.com>
2185 * config/m68k/m68k.c (m68k_handle_option): Don't handle
2186 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2187 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2189 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2190 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2191 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2192 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2193 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2194 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2195 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2196 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2197 options. Don't map other m68k options manually. Don't handle
2198 old-style options as canonical.
2199 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2200 * doc/install.texi (m68k-*-*): Document binutils version requirement.
2202 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2204 * basic-block.h (force_nonfallthru): Move to...
2205 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2206 (force_nonfallthru): ...here.
2207 * cfghooks.c (force_nonfallthru): New function.
2208 * cfgrtl.c (force_nonfallthru): Rename into...
2209 (rtl_force_nonfallthru): ...this.
2210 (commit_one_edge_insertion): Do not set AUX field.
2211 (commit_edge_insertions): Do not discover new basic blocks.
2212 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2213 (cfg_layout_rtl_cfg_hooks): Likewise.
2214 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2215 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2216 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2218 2011-04-07 Anatoly Sokolov <aesok@post.ru>
2220 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2223 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
2225 * config/i386/sse.md: Update copyright year.
2226 (avxcvtvecmode): Remove.
2227 (sse_movhlps): Merge with *avx_movhlps.
2228 (sse_movlhps): Merge with *avx_movlhps.
2229 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2230 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2231 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2232 (sse_loadhps): Merge with *avx_loadhps.
2233 (sse_storelps): Merge with *avx_storelps.
2234 (sse_loadlps): Merge with *avx_loadlps.
2235 (sse_movss): Merge with *avx_movss.
2236 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2237 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2238 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2239 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2240 (vec_set<mode>_0): Ditto.
2241 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2242 (sse4_1_insertps): Merge with *avx_insertps.
2243 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2244 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2245 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2246 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2247 (sse2_storehpd): Merge with *avx_storehpd.
2248 (sse2_loadhpd): Merge with *avx_loadhpd.
2249 (sse2_loadlpd): Merge with *avx_loadlpd.
2250 (sse2_movsd): Merge with *avx_movsd.
2251 (*vec_concatv2df): Merge with *vec_concatv2df.
2253 2011-04-07 Jakub Jelinek <jakub@redhat.com>
2256 * combine.c (combine_instructions): Add last_combined_insn,
2257 update it if insn is after it, pass it to all try_combine calls.
2258 (try_combine): Add last_combined_insn parameter, pass it instead of
2259 i3 to propagate_for_debug.
2261 2011-04-07 Nick Clifton <nickc@redhat.com>
2263 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2264 to handle MDR <-> data register transfers.
2265 (movhi_internal): Likewise.
2267 2011-04-07 Alan Modra <amodra@gmail.com>
2269 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2270 previous stack info.
2272 2011-04-07 Tom de Vries <tom@codesourcery.com>
2275 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
2276 flow_find_cross_jump. Swap variables to implement backward replacement.
2277 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2279 2011-04-07 Tom de Vries <tom@codesourcery.com>
2282 * cfgcleanup.c (walk_to_nondebug_insn): New function.
2283 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
2285 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2286 src1 or src2. Redirect edges to the last basic block. Update
2287 frequency and count on multiple basic blocks in case of fallthru.
2289 2011-04-07 Tom de Vries <tom@codesourcery.com>
2292 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2294 (old_insns_match_p): Change return type. Replace return false/true
2295 with return dir_none/dir_both. Use can_replace_by.
2296 (flow_find_cross_jump): Add dir_p parameter. Init replacement
2297 direction from dir_p. Register replacement direction in dir, last_dir
2298 and afterlast_dir. Handle new return type of old_insns_match_p using
2299 merge_dir. Return replacement direction in dir_p.
2300 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2301 return type of old_insns_match_p.
2302 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2303 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2304 flow_find_cross_jump.
2305 * basic-block.h (enum replace_direction): New type.
2306 (flow_find_cross_jump): Add parameter to declaration.
2308 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2310 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2311 (AVXMODEDCVTPS2DQ): Ditto.
2312 (VEC_FLOAT_MODE): Ditto.
2313 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
2314 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2315 (<any_logic:code><mode>3): Use VF mode iterator.
2316 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2317 Use VF mode iterator.
2318 (copysign<mode>3): Use VF mode iterator.
2319 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
2320 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2321 (*<any_logic:code><MODEF:mode>3): Merge with
2322 *avx_<any_logic:code><MODEF:mode>3.
2323 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2324 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2325 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2326 (avx_cvtdq2ps<avxmodesuffix>): Remove.
2327 (sse2_cvtdq2ps): Use %v modifier.
2328 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2329 (avx_cvtps2dq<avxmodesuffix>): Remove.
2330 (sse2_cvtps2dq): Use %v modifier.
2331 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2332 (avx_cvttps2dq<avxmodesuffix>): Remove.
2333 (sse2_cvttps2dq): Use %v modifier.
2334 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2335 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2336 (sse2_cvtsd2siq): Fix insn template.
2337 (sse2_cvtsd2siq_2): Ditto.
2338 (sse2_cvttsd2siq): Ditto.
2339 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2340 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2342 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2344 * gcov-io.c: Use GCC Runtime Library Exception.
2346 2011-04-06 Jakub Jelinek <jakub@redhat.com>
2349 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2350 as base_reg whatever register reg has been eliminated to, instead
2351 of hardcoding STACK_POINTER_REGNUM.
2353 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2355 * doc/tm.texi.in: Document C target hooks as separate from general
2357 * doc/tm.texi: Regenerate.
2358 * genhooks.c (struct hook_desc): Add docname field.
2359 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2361 (hook_array): Include c-target.def.
2362 (emit_documentation): Use docname field in output.
2363 (emit_init_macros): Take docname argument. Only emit definitions
2364 for hooks matching docname.
2365 (main): Expect additional arguments in all cases. Pass argument
2366 to emit_init_macros.
2367 * target.def: Move initial macro definitions and comments to
2368 target-hooks-macros.h.
2369 (gcc_targetcm): Move to c-family/c-target.def.
2370 * target.h (targetcm): Move declaration to c-family/c-target.h.
2371 * targhooks.c (default_handle_c_option): Move to
2373 * targhooks.h (default_handle_c_option): Move declaration to
2374 c-family/c-common.h.
2375 * target-hooks-macros.h: New file.
2376 * config.gcc (target_has_targetcm): Define and use to add to
2377 c_target_objs and cxx_target_objs.
2378 * config/default-c.c: New file.
2379 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2380 of target.h and target-def.h.
2381 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2382 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2383 darwin_check_cfstring_format_arg): Make static.
2384 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2385 TARGET_STRING_OBJECT_REF_TYPE_P,
2386 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2387 * config/darwin-protos.h (darwin_objc_construct_string,
2388 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2390 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2391 TARGET_STRING_OBJECT_REF_TYPE_P,
2392 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2393 * config/t-darwin (darwin-c.o): Update dependencies.
2394 * system.h (TARGET_HAS_TARGETCM): Poison.
2395 * Makefile.in (TARGET_H): Update.
2396 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2397 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2398 (default-c.o): New target.
2399 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2400 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2401 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2403 (build/genhooks.o): Update dependencies.
2405 2011-04-06 Richard Guenther <rguenther@suse.de>
2407 * ipa-inline.c (enum inlining_mode): Remove.
2408 (cgraph_flatten): Use some other token.
2409 (cgraph_edge_early_inlinable_p): New function, split out from ...
2410 (cgraph_perform_always_inlining): New function, split out from ...
2411 (cgraph_decide_inlining_incrementally): ... here.
2412 (cgraph_mark_inline_edge): Adjust.
2413 (cgraph_early_inlining): Re-structure.
2414 (pass_early_inline): Require SSA form.
2416 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
2417 Julian Brown <julian@codesourcery.com>
2418 Mark Shinwell <shinwell@codesourcery.com>
2420 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2421 LO_REGS only for Thumb-1.
2422 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2423 be used in short instructions when optimising for size on Thumb-2.
2425 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2427 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2428 associated with user returns to be preserved.
2430 2011-04-06 Tristan Gingold <gingold@adacore.com>
2432 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2433 symbol_queue_size, DBXOUT_DECR_NESTING,
2434 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2435 if XCOFF_DEBUGGING_INFO.
2437 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
2439 * config/i386/i386.md (attribute isa): New.
2440 (attribute enabled): New.
2441 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2442 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2443 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2444 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2445 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2446 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2447 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2448 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2450 * config/i386/sse.md (VF): New mode iterator.
2454 (SSEMODEF4): Remove.
2455 (attribute sse): Handle V8SF and V4DF modes.
2456 (<absneg:code><mode>2): Use VF mode iterator.
2457 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2459 (<plusminus_insn><mode>3): Use VF mode iterator.
2460 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2461 Use VF mode iterator.
2462 (<sse>_vm<plusminus_insn><mode>3): Merge with
2463 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2464 (mul<mode>3): Use VF mode iterator.
2465 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2466 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2468 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2469 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2470 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2471 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2473 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2474 Use VF1 mode iterator.
2475 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2476 (sqrt<VF2:mode>2): New expander.
2477 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2478 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2479 and sqrtv2df2. Use VF mode iterator.
2480 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2482 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2483 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2484 Use VF1 mode iterator.
2485 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2486 (<smaxmin:code><mode>3): Use VF mode iterator.
2487 (*<smaxmin:code><mode>3_finite): Merge with
2488 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2489 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2490 (<sse>_vm<smaxmin:code><mode>2): Merge with
2491 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2492 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2494 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2496 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2497 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2498 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2499 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2500 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2502 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2503 Use VF_128 mode iterator.
2504 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2506 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2507 VF_128 mode iterator.
2508 (vcond<mode>): Use VF mode iterator.
2509 * config/i386/predicates.md (sse_comparison_operator): Merge with
2510 avx_comparison_float_operator. Do not declare as special_predicate.
2511 * config/i386/i386.c (struct builtin_description): Update for renamed
2513 (ix86_expand_args_builtin): Ditto.
2514 (ix86_expand_sse_compare_mask): Ditto.
2516 2011-04-06 Richard Guenther <rguenther@suse.de>
2518 * tree-inline.c (estimate_num_insns): For calls simply account
2519 for all passed arguments and a used return value.
2521 2011-04-06 Richard Guenther <rguenther@suse.de>
2523 PR tree-optimization/47663
2524 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2525 call_stmt_time fields.
2526 (cgraph_edge_inlinable_p): Declare.
2527 (cgraph_edge_recursive_p): New inline function.
2528 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2529 (cgraph_clone_edge): Copy it.
2530 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2531 Account for call stmt time.
2532 (cgraph_estimate_time_after_inlining): Take edge argument.
2533 (cgraph_estimate_edge_growth): Account call stmt size.
2534 (cgraph_estimate_size_after_inlining): Take edge argument.
2535 (cgraph_mark_inline_edge): Adjust.
2536 (cgraph_check_inline_limits): Likewise.
2537 (cgraph_recursive_inlining_p): Remove.
2538 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2539 (cgraph_decide_recursive_inlining): Take edge argument and
2541 (cgraph_decide_inlining_of_small_functions): Do not avoid
2542 diags for recursive inlining here.
2543 (cgraph_flatten): Adjust.
2544 (cgraph_decide_inlining_incrementally): Likewise.
2545 (estimate_function_body_sizes): Remove call cost handling.
2546 (compute_inline_parameters): Initialize caller edge call costs.
2547 (cgraph_estimate_edge_growth): New function.
2548 (cgraph_estimate_growth): Use it.
2549 (cgraph_edge_badness): Likewise.
2550 (cgraph_check_inline_limits): Take an edge argument.
2551 (cgraph_decide_inlining_of_small_functions): Adjust.
2552 (cgraph_decide_inlining): Likewise.
2553 * tree-inline.c (estimate_num_insns): Only account for call
2554 return value if it is used.
2555 (expand_call_inline): Avoid diagnostics on recursive inline
2557 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2558 (input_edge): Input edge call costs.
2560 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2562 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2564 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2566 * doc/invoke.texi (Spec Files): Fix typo.
2568 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2570 * profile.c (branch_prob): Move declaration of local variable. Remove
2571 obsolete ??? comment. Expand the location explicitly instead of using
2572 the LOCATION_FILE and LOCATION_LINE macros.
2574 2011-04-06 Wei Guozhi <carrot@google.com>
2577 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2578 (arm_cond_branch): Likewise.
2579 (arm_cond_branch_reversed): Likewise.
2580 (arm_jump): Likewise.
2581 (push_multi): Likewise.
2582 * config/arm/constraints.md (Py): New constraint.
2584 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2587 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2589 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2590 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2591 #ifdef DBX_DEBUGGING_INFO.
2593 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2596 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2597 if old and new states differ.
2599 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2601 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2602 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2603 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2604 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2605 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2607 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2608 ColdFire options to -mcpu= options.
2610 2011-04-05 Jeff Law <law@redhat.com>
2612 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2613 check if BB is a successor of LOOP->header and return
2614 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2616 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2618 * cprop.c (struct reg_use): Remove.
2619 (reg_use_table): Make an array of RTX.
2620 (find_used_regs, constprop_register, local_cprop_pass,
2621 bypass_block): Simplify users of reg_use_table.
2622 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2623 on one of the uses found by find_used_regs.
2625 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2628 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2631 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2633 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2635 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2637 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2640 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2642 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2644 * combine.c: Include obstack.h.
2645 (struct insn_link): Define.
2646 (uid_log_links): Adjust type.
2647 (FOR_EACH_LOG_LINK): New macro.
2648 (insn_link_obstack): Declare.
2649 (alloc_insn_link): Define.
2650 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2651 type of link variables.
2652 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2653 (try_combine, record_promoted_values, distribute_notes): Likewise.
2654 (distribute_links): Likewise. Tweak prototype.
2655 (clear_log_links): Delete.
2656 (adjust_for_new_dest): Call alloc_insn_link.
2657 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2659 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2661 * gcse.c (modify_mem_list): Convert to an array of VECs.
2662 (canon_modify_mem_list, compute_transp): Tweak formatting.
2663 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2664 (load_killed_in_block_p): Likewise.
2665 (record_last_mem_set_info): Likewise.
2666 (clear_modify_mem_tables): Likewise.
2668 2011-04-05 Tom de Vries <tom@codesourcery.com>
2671 * function.c (emit_use_return_register_into_block): Only define if
2674 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2676 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2678 2011-04-05 Joseph Myers <joseph@codesourcery.com>
2680 * config/rx/rx-opts.h: New.
2681 * config/rx/rx.c (rx_cpu_type): Remove.
2682 (rx_handle_option): Don't assert that global structures are in
2683 use. Access variables via opts pointer. Defer most handling of
2684 OPT_mint_register_. Use error_at.
2685 (rx_option_override): Handle deferred OPT_mint_register_ here.
2686 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2687 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2688 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2689 (rx_cpu_types): New Enum and EnumValue entries.
2690 (mint-register=): Use Defer and use Var accordingly.
2692 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2694 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2695 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2696 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2698 (debug_free_queue, debug_nesting, symbol_queue_index):
2700 * dbxout.c: ...to here. Make static.
2702 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2704 * gcse.c (modify_pair): Define. Define a VEC of it.
2705 (canon_modify_mem_list): Convert to an array of VECs.
2706 (free_insn_expr_list_list): Delete.
2707 (clear_modify_mem_tables): Call VEC_free instead.
2708 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2709 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2710 (canon_list_insert, compute_transp): Likewise.
2712 2011-04-05 Tom de Vries <tom@codesourcery.com>
2715 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2718 2011-04-05 Tom de Vries <tom@codesourcery.com>
2721 * function.c (emit_use_return_register_into_block): New function.
2722 (thread_prologue_and_epilogue_insns): Use
2723 emit_use_return_register_into_block.
2725 2011-04-05 Tom de Vries <tom@codesourcery.com>
2728 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2731 2011-04-05 Tom de Vries <tom@codesourcery.com>
2733 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2735 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
2737 * config/arm/arm.md (define_constants for unspec): Replace with
2739 (define_constants for unspecv): Replace with define_c_enum.
2740 * config/arm/neon.md (define_constants for unspec): Replace with
2743 2011-04-04 Richard Henderson <rth@redhat.com>
2746 * dwarf2out.c (output_line_info): Always emit line info from
2747 at least one section.
2748 (dwarf2out_init): Create text_section_line_info here ...
2749 (set_cur_line_info_table): ... not here.
2751 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
2754 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2757 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2759 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
2761 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2762 (expr_equiv_p): Remove.
2763 (insert_set_in_table): Look at <dest, src> pair instead of expr.
2764 (hash_scan_set): Update call to insert_set_in_table.
2765 (dump_hash_table): Dump <dest, src> pair.
2766 (lookup_set): Simplify. Lookup <dest, src> pair.
2767 (compute_transp): Remove, fold heavily simplified code into...
2768 (compute_local_properties): ...here. Expect COMP and TRANSP
2770 (find_avail_set): Take set directly from struct expr.
2771 (find_bypass-set): Likewise.
2772 (bypass_block): Likewise.
2773 (cprop_insn): Likewise. Remove redundant INSN_P test.
2775 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2776 checks on form of COND from find_implicit_sets to here.
2777 (find_implicit_sets): Cleanup control flow. Split critical edges
2778 if it exposes implicit sets. Allocate/resize implicit_sets as
2780 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2781 changed something. Run df_analyze after find_implicit_sets if any
2782 edges were split. Do not allocate implicit_sets here.
2784 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2785 (gcse_obstack): Renamed to cprop_obstack.
2786 (GNEW, GNEWVEC, GNEWVAR): Remove.
2788 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2789 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2790 (gcse_alloc): Likewise, and rename to cprop_alloc.
2791 (alloc_gcse_men, free_gcse_mem): Remove.
2792 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2793 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2794 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2796 * cprop.c (oprs_not_set_p): Remove.
2797 (mark_set, mark_clobber): Remove.
2798 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2799 (reg_not_set_p): New function.
2800 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2801 (cprop_insn): Likewise.
2802 (cprop_jump): Use FOR_EACH_EDGE.
2804 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
2807 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2808 (rank_for_schedule): Use scheduled_insns vector instead of
2809 last_scheduled_insn.
2810 (ok_for_early_queue_removal): Likewise.
2811 (queue_to_ready): Search forward in nonscheduled_insns_begin if
2813 (choose_ready): Likewise.
2814 (commit_schedule): Use VEC_iterate.
2815 (schedule_block): Initialize nonscheduled_insns_begin. If we have
2816 a dbg_cnt, use it and ensure the first insn is in the ready list.
2817 (haifa_sched_init): Allocate scheduled_insns.
2818 (sched_extend_ready_list): Don't allocate it; reserve space.
2819 (haifa_sched_finish): Free it.
2821 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2823 * optc-gen.awk: Always remove type from Variable entry before
2824 recording in var_seen.
2826 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
2828 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2829 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2830 call to tidy_fallthru_edges.
2832 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2834 * doc/options.texi (ToLower): Document.
2835 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2836 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2837 * opts.h (cl_option): Add cl_tolower field.
2838 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2839 arguments with lowercase strings.
2840 * config/rx/rx.opt (mcpu=): Add ToLower.
2841 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2844 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2846 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2848 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2850 * config/vax/vax.c: Include reload.h.
2852 2011-04-04 Anatoly Sokolov <aesok@post.ru>
2854 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2855 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2856 (sparc_preferred_reload_class): New function.
2858 2011-04-04 Jakub Jelinek <jakub@redhat.com>
2861 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2862 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2864 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
2866 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2867 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2869 2011-04-03 Anatoly Sokolov <aesok@post.ru>
2871 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2872 (ASM_OUTPUT_ALIGNED_BSS): Define.
2874 2011-04-03 Michael Matz <matz@suse.de>
2876 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2877 and next_slot members.
2878 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2879 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2880 (lto_streamer_cache_append): Declare.
2881 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2882 unsigned index, remove offset parameter, ensure that we append
2883 or update existing entries.
2884 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2885 parameter, update next_slot for append.
2886 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2888 (lto_streamer_cache_insert_at): Likewise.
2889 (lto_streamer_cache_append): New function.
2890 (lto_streamer_cache_lookup): Use unsigned index.
2891 (lto_streamer_cache_get): Likewise.
2892 (lto_record_common_node): Don't test tree_node_can_be_shared.
2893 (preload_common_node): Adjust call to lto_streamer_cache_insert.
2894 (lto_streamer_cache_delete): Don't free offsets member.
2895 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2896 (lto_output_string_with_length): Use lto_output_data_stream.
2897 (lto_output_tree_header): Remove ix parameter, don't write it.
2898 (lto_output_builtin_tree): Likewise.
2899 (lto_write_tree): Adjust callers to above, don't track and write
2900 offset, write unsigned index.
2901 (output_unreferenced_globals): Don't emit all global vars.
2902 (write_global_references): Use unsigned indices.
2903 (lto_output_decl_state_refs): Likewise.
2904 (write_symbol): Likewise.
2905 * lto-streamer-in.c (lto_input_chain): Move earlier.
2906 (input_function): Use unsigned index.
2907 (input_alias_pairs): Don't read and then ignore all global vars.
2908 (lto_materialize_tree): Remove ix_p parameter, don't read index,
2909 don't pass it back, use lto_streamer_cache_append.
2910 (lto_register_var_decl_in_symtab): Use unsigned index.
2911 (lto_register_function_decl_in_symtab): Likewise.
2912 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2914 (lto_get_builtin_tree): Don't read index, use
2915 lto_streamer_cache_append.
2916 (lto_read_tree): Adjust call to lto_materialize_tree.
2918 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2919 don't use function calls in arguments to MIN.
2921 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2924 * gimple.c (gimple_type_leader_entry): Mark deletable.
2926 2011-04-03 Alan Modra <amodra@gmail.com>
2928 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2930 2011-04-03 Michael Matz <matz@suse.de>
2932 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2934 * tree.h (tree_decl_non_common.vindex): Adjust comment.
2936 2011-04-03 Michael Matz <matz@suse.de>
2938 * cgraphbuild.c (record_reference): Canonicalize constructor values.
2939 * gimple-fold.c (canonicalize_constructor_val): Accept being called
2940 without function context.
2941 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2942 current_function_decl and cfun.
2944 2011-04-03 Michael Matz <matz@suse.de>
2946 * tree.c (decl_init_priority_insert): Don't create entry for
2948 (decl_fini_priority_insert): Ditto.
2949 (fields_compatible_p, find_compatible_field): Remove.
2950 * tree.h (fields_compatible_p, find_compatible_field): Remove.
2951 * gimple.c (gimple_compare_field_offset): Adjust block comment.
2953 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
2955 * combine.c (try_combine): Remove useless local variable.
2957 2011-04-03 Richard Guenther <rguenther@suse.de>
2958 Ira Rosen <ira.rosen@linaro.org>
2960 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2961 non-variable offsets and compare the remaining bases of the two
2962 accesses instead of looking for exact same data-ref.
2964 2011-04-02 Kai Tietz <ktietz@redhat.com>
2967 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2969 * i386.c (ix86_is_msabi_thiscall): New helper function.
2970 (ix86_is_type_thiscall): New helper function.
2971 (ix86_comp_type_attributes): Handle thiscall for method-functions
2973 (init_cumulative_args): Likewise.
2974 (find_drap_reg): Likewise.
2975 (ix86_static_chain): Likewise.
2976 (x86_this_parameter): Likewise.
2977 (x86_output_mi_thunk): Likewise.
2979 2011-04-01 Olivier Hainque <hainque@adacore.com>
2980 Nicolas Setton <setton@adacore.com>
2981 Eric Botcazou <ebotcazou@adacore.com>
2983 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2984 (add_gnat_descriptive_type_attribute): New function.
2985 (gen_array_type_die): Call it.
2986 (gen_enumeration_type_die): Likewise.
2987 (gen_struct_or_union_type_die): Likewise.
2988 (modified_type_die): Likewise.
2989 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2990 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2991 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2993 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2996 * dwarf2out.c (resolve_addr): Don't call force_decl_die
2997 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3000 2011-03-17 Richard Guenther <rguenther@suse.de>
3003 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3004 origin for decls in other ltrans units.
3005 (input_varpool_node): Likewise.
3007 2011-04-01 Jakub Jelinek <jakub@redhat.com>
3010 * expr.c (expand_assignment): Handle all possibilities
3011 if TO_RTX is CONCAT.
3012 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3013 (store_split_bit_field): If SUBREG_REG (op0) or
3014 op0 itself has smaller mode than word, return it
3015 for offset 0 and const0_rtx for out-of-bounds stores.
3016 If word is const0_rtx, skip it.
3018 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
3020 * config/h8300/h8300.c (print_operand_address): Rename to...
3021 (h8300_print_operand_address): ...this. Make static. Adjust comments.
3022 Call h8300_print_operand and h8300_print_operand_address instead of
3023 print_operand and print_operand_address. Declare.
3024 (print_operand): Renake to...
3025 (h8300_print_operand): ...this. Make static. Adjust comments.
3026 Call h8300_print_operand instead of print_operand. Declare.
3027 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3028 (h8300_register_move_cost): Likewise.
3029 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3030 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3031 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3032 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3033 * config/h8300/h8300-protos.h (print_operand): Delete.
3034 (print_operand_address): Delete.
3036 2011-04-01 Richard Henderson <rth@redhat.com>
3039 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3040 in strict mode before dwarf4. Re-order tests to early out
3041 before switching sections.
3043 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
3045 * config/h8300/constraints.md: New file.
3046 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
3047 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3048 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3049 * config/h8300/predicates.md (bit_operand): Likewise.
3050 (incdec_operand): Use satisfies_constraint_M and
3051 satisfies_constraint_O. Don't use C code block.
3052 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3053 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3054 (compute_mov_length): Use satisfies_constraint_G.
3055 (fix_bit_operand): Use satisfies_constraint_U.
3056 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3057 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3058 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3059 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3060 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3061 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3062 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3063 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3064 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3065 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3066 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3067 (EXTRA_MEMORY_CONSTRAINT): Delete.
3069 2011-04-01 Andrew Pinski <pinskia@gmail.com>
3070 Michael Meissner <meissner@linux.vnet.ibm.com>
3073 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3074 operands, as per the specifications.
3076 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3077 (vec_extract_evenv4sf): Ditto.
3078 (vec_extract_evenv8hi): Ditto.
3079 (vec_extract_evenv16qi): Ditto.
3080 (vec_extract_oddv4si): Ditto.
3082 2011-03-31 Mark Wielaard <mjw@redhat.com>
3084 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3085 high_pc attribute if the CU has no associated code. Only output
3086 DW_AT_entry_pc for CU if not generating strict dwarf and
3089 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
3091 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3092 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3094 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3095 * final.c (final_start_function): Call the new function rather
3096 than using a NULL argument for dwarf2out_frame_debug.
3098 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3099 that contains the prologue.
3101 * haifa-sched.c (queue_insn): New arg REASON. All callers
3102 changed. Print it in debugging output.
3104 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3106 * sched-ebb.c (begin_schedule_ready): Remove second argument.
3107 Split most of the code into...
3108 (begin_move_insn): ... here. New function.
3109 (ebb_sched_info): Add a pointer to it.
3110 * haifa-sched.c (scheduled_insns): New static variable.
3111 (sched_extend_ready_list): Allocate it.
3112 (schedule_block): Use it to record the order of scheduled insns.
3113 Perform RTL changes to move insns only after all scheduling
3114 decisions have been made.
3115 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3116 begin_move_insn field.
3117 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3118 * sched-int.h (struct haifa_sched_info): Remove second argument
3119 from begin_schedule_ready hook. Add new member begin_move_insn.
3120 * sched-rgn.c (begin_schedule_ready): Remove second argument.
3121 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3123 * haifa-sched.c (prune_ready_list): New function, broken out of
3125 (schedule_block): Use it.
3127 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3129 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3131 2011-04-01 Kai Tietz <ktietz@redhat.com>
3133 * config.gcc (*-*-mingw*): Allow as option the
3134 posix threading model.
3135 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
3136 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3138 (CPP_SPEC): Add pthread/no-pthread handling.
3139 (LIB_SPEC): Likewise.
3140 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3141 (LIB_SPEC): Likewise.
3142 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3143 flag to pass -pthread option for shared libgcc build.
3144 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3145 for shared libgcc build.
3146 * config/i386/t-mingw-pthread: New file.
3147 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3148 New define to enable use of library pthread by default.
3149 * config/i386/mingw.opt (pthread): New driver option.
3150 (no-pthread): New driver option.
3151 * config/i386/cygming.opt: Make sure trailing empty line is retained.
3152 * config/i386/mingw-w64.opt: Likewise.
3154 2011-04-01 Gary Funck <gary@intrepid.com>
3156 * c-decl.c (grokdeclarator): Fix formatting.
3158 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3160 * expr.c (emit_block_move_via_movmem): Use n_generator_args
3161 instead of n_operands.
3162 (set_storage_via_setmem): Likewise.
3163 * optabs.c (maybe_gen_insn): Likewise.
3164 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3165 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3166 (mips_expand_builtin_direct): Likewise.
3167 * config/spu/spu.c (expand_builtin_args): Likewise.
3169 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3171 * recog.h (insn_data_d): Add n_generator_args.
3172 * genoutput.c (data): Likewise.
3173 (output_insn_data): Print it.
3174 (max_opno, num_dups): Delete.
3175 (scan_operands): Just fill in "d->operand[...]".
3176 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3178 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3180 * gensupport.h (pattern_stats): New structure.
3181 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3182 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3183 (max_operand_1, max_operand_vec): Delete.
3184 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3186 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
3188 * emit-rtl.c (emit_pattern_after_setloc): New function.
3189 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3190 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3191 (emit_pattern_after): New function.
3192 (emit_insn_after, emit_jump_insn_after): Call it.
3193 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3194 (emit_pattern_before_setloc): New function.
3195 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3196 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3198 (emit_pattern_before): New function.
3199 (emit_insn_before, emit_jump_insn_before): Call it.
3200 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3202 2011-03-31 Richard Henderson <rth@redhat.com>
3204 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3205 (dw_separate_line_info_entry): Remove.
3206 (enum dw_line_info_opcode): New.
3207 (dw_line_info_entry): Use it.
3208 (dw_line_info_table, dw_line_info_table_p): New.
3209 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3210 (line_info_table, line_info_label_num): Remove.
3211 (line_info_table_in_use): Remove.
3212 (separate_line_info_table): Remove.
3213 (separate_line_info_table_allocated): Remove.
3214 (separate_line_info_table_in_use): Remove.
3215 (LINE_INFO_TABLE_INCREMENT): Remove.
3216 (line_info_label_num): New.
3217 (cur_line_info_table): New.
3218 (text_section_line_info, cold_text_section_line_info): New.
3219 (separate_line_info): New.
3220 (SEPARATE_LINE_CODE_LABEL): Remove.
3221 (print_dwarf_line_table): Remove.
3222 (debug_dwarf): Don't dump it.
3223 (output_one_line_info_table): New.
3224 (output_line_info): Use it.
3225 (new_line_info_table): New.
3226 (set_cur_line_info_table): New.
3227 (dwarf2out_switch_text_section): Use it.
3228 (dwarf2out_begin_function): Likewise.
3229 (push_dw_line_info_entry): New.
3230 (dwarf2out_source_line): Rewrite for new line info tables.
3231 (dwarf2out_init): Remove dead initailizations.
3233 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3235 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3237 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3238 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3239 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3240 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3241 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3242 * opt-functions.awk (flag_init, switch_bit_fields): New.
3243 (switch_flags): Don't handle flags moved to bit-fields. Don't
3244 generate CL_MISSING_OK or CL_SAVE.
3245 * optc-gen.awk: Update to generate bit-field output as well as
3247 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3248 bit-field instead of CL_REJECT_DRIVER flag.
3249 * opts-common.c (generate_canonical_option,
3250 decode_cmdline_option): Use bit-fields instead of CL_* flags.
3251 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3252 instead of CL_REJECT_NEGATIVE flag.
3253 * toplev.c (print_switch_values): Use cl_report bit-field instead
3256 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3258 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3259 a zero minimum index only if it is redundant.
3261 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
3263 PR rtl-optimization/48381
3264 * ira-color.c (assign_hard_reg): Use hard reg set intersection
3265 instead of ira_class_hard_reg_index for calculating conflicting
3268 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
3270 * cprop.c: Clean up hash table building.
3271 (reg_avail_info): Remove.
3272 (oprs_available_p): Remove.
3273 (record_last_reg_set_info): Remove.
3274 (record_last_set_info): Remove.
3275 (reg_available_p): New function.
3276 (gcse_constant_p): Do not treat unfolded conditions as constants.
3277 (make_set_regs_unavailable): New function.
3278 (hash_scan_set): Simplify with new reg_available_p.
3279 (compute_hash_table_work): Traverse insns stream only once.
3280 Do not compute reg_avail_info. Traverse insns in reverse order.
3281 Record implicit sets after recording explicit sets from the block.
3283 2011-03-31 Michael Matz <matz@suse.de>
3285 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3287 2011-03-31 Anatoly Sokolov <aesok@post.ru>
3289 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3290 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3291 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3292 (h8300_mode_dependent_address_p): New function.
3293 (h8300_get_index): Make static.
3295 2011-03-31 Jeff Law <law@redhat.com>
3297 * reload1.c (elimination_effects): Fix typo in recent change.
3299 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3300 typo potentially leading to null pointer dereference.
3302 * caller-save.c (new_saved_hard_reg): Eliminate return value.
3303 (setup_save_areas): Corresponding changes to avoid useless
3306 * jump.c (reversed_comparison_code_parts): Avoid successive return
3307 statements when REVERSE_CONDITION is defined.
3309 * expr.c (expand_assignment): Avoid useless assignments.
3310 (expand_expr_real_1): Likewise.
3311 (expand_expr_real_2): Avoid useless statements.
3313 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3315 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3317 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3320 * stmt.c (expand_expr_stmt): Avoid useless assignment.
3322 2011-03-31 Joseph Myers <joseph@codesourcery.com>
3325 * doc/tm.texi.in (TARGET_VERSION): Remove.
3326 * doc/tm.texi: Regenerate.
3327 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3328 * collect2.c (main): Don't use TARGET_VERSION.
3329 * mips-tdump.c (main): Don't use TARGET_VERSION.
3330 * mips-tfile.c (main): Don't use TARGET_VERSION.
3331 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3332 * config/rs6000/vxworksae.h: Remove.
3333 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3334 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3335 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3336 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3337 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3338 * config/arm/arm.h (TARGET_VERSION): Remove.
3339 * config/arm/coff.h (TARGET_VERSION): Remove.
3340 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3341 * config/arm/elf.h (TARGET_VERSION): Remove.
3342 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3343 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3344 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3345 * config/arm/pe.h (TARGET_VERSION): Remove.
3346 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3347 * config/arm/semi.h (TARGET_VERSION): Remove.
3348 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3349 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3350 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3351 * config/avr/avr.h (TARGET_VERSION): Remove.
3352 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3353 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3354 * config/frv/frv.h (TARGET_VERSION): Remove.
3355 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3356 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3357 * config/i386/darwin.h (TARGET_VERSION): Remove.
3358 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3359 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3360 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3361 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3362 * config/i386/gnu.h (TARGET_VERSION): Remove.
3363 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3364 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3365 * config/i386/linux.h (TARGET_VERSION): Remove.
3366 * config/i386/linux64.h (TARGET_VERSION): Remove.
3367 * config/i386/lynx.h (TARGET_VERSION): Remove.
3368 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3369 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3370 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3371 * config/i386/netware.h (TARGET_VERSION): Remove.
3372 * config/i386/nto.h (TARGET_VERSION): Remove.
3373 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3374 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3375 * config/ia64/elf.h (TARGET_VERSION): Remove.
3376 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3377 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3378 * config/ia64/linux.h (TARGET_VERSION): Remove.
3379 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3380 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3381 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3382 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3383 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3384 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3385 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3386 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3387 * config/m68k/linux.h (TARGET_VERSION): Remove.
3388 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3389 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3390 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3391 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3392 * config/mep/mep.h (TARGET_VERSION): Remove.
3393 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3394 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3395 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3396 * config/mips/linux.h (TARGET_VERSION): Remove.
3397 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3398 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3399 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3400 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3401 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3402 * config/pa/pa.h (TARGET_VERSION): Remove.
3403 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3404 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3405 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3406 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3407 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3408 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3409 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3410 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3411 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3412 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3413 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3414 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3415 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3416 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3417 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3418 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3419 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3420 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3421 * config/s390/linux.h (TARGET_VERSION): Remove.
3422 * config/s390/s390.h (TARGET_VERSION): Remove.
3423 * config/s390/tpf.h (TARGET_VERSION): Remove.
3424 * config/score/score.h (TARGET_VERSION): Remove.
3425 * config/sh/linux.h (TARGET_VERSION): Remove.
3426 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3427 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3428 * config/sh/sh.h (TARGET_VERSION): Remove.
3429 * config/sh/sh64.h (TARGET_VERSION): Remove.
3430 * config/sh/superh.h (TARGET_VERSION): Remove.
3431 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3432 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3433 * config/sparc/linux.h (TARGET_VERSION): Remove.
3434 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3435 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3436 TARGET_NAME32, TARGET_NAME): Remove.
3437 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3438 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3439 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3440 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3441 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3442 * config/spu/spu.h (TARGET_VERSION): Remove.
3443 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3444 * config/v850/v850.h (TARGET_VERSION): Remove.
3445 * config/vax/linux.h (TARGET_VERSION): Remove.
3446 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3447 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3448 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3450 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3453 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3454 frame-related from frame-unrelated adjustments to the stack pointer.
3456 2011-03-31 Jakub Jelinek <jakub@redhat.com>
3458 * common.opt (fdebug-types-section): Move earlier.
3459 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3461 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
3463 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3466 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3468 * tree.h (CASE_CHAIN): Define.
3469 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3470 (gimple_redirect_edge_and_branch): Likewise.
3472 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3475 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3478 2011-03-30 Jeff Law <law@redhat.com>
3480 * PR bootstrap/48371
3481 * reload1.c (reload): Fix botch in last change.
3483 * reload.h (struct reload): Fix typo introduced in last change.
3485 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3487 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3488 Undocumented. Remove help text.
3489 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3492 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3494 * doc/options.texi (NegativeAlias): Document.
3495 (Alias): Mention NegativeAlias.
3496 * opt-functions.awk: Handle NegativeAlias.
3497 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3498 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3499 * opts.h (CL_NEGATIVE_ALIAS): Define.
3500 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3501 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3503 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3505 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3506 mno-spe and mno-isel instead of mspe=no and -misel=no.
3508 2011-03-29 Mark Wielaard <mjw@redhat.com>
3510 * common.opt (fdebug-types-section): New flag.
3511 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3512 * dwarf2out.c (use_debug_types): New define.
3513 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3514 (print_die): Guard output of type unit signatures using
3516 (build_abbrev_table): Replace assert of dwarf_version >= 4
3517 with assert on use_debug_types.
3518 (size_of_die): Likewise.
3519 (unmark_dies): Likewise.
3520 (value_format): Decide AT_ref_external form on use_debug_types.
3521 (output_die): Replace dwarf_version version check guard with
3522 use_debug_types where appropriate.
3523 (modified_type_die): Likewise.
3524 (gen_reference_type_die): Likewise.
3525 (dwarf2out_start_source_file): Likewise.
3526 (dwarf2out_end_source_file): Likewise.
3527 (prune_unused_types_walk_attribs): Likewise.
3528 (dwarf2out_finish): Likewise.
3530 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3532 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3534 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3536 PR rtl-optimization/48332
3537 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3538 mode of input operand N and modeN to its actual mode.
3540 2011-03-30 Jeff Law <law@redhat.com>
3542 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3543 define accessor macro.
3544 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3545 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3546 (reg_equiv_init): Likewise.
3547 (reg_equivs_size): New variable.
3548 (reg_equiv_init_size): Remove.
3549 (allocate_initial_values): Move prototype to here from....
3550 * integrate.h (allocate_initial_values): Remove prototype.
3551 * integrate.c: Include reload.h.
3552 (allocate_initial_values): Corresponding changes.
3553 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3554 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3555 (update_equiv_regs): Corresponding changes.
3556 (ira): Corresponding changes.
3557 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3558 (push_secondary_reload): Corresponding changes.
3559 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3560 (make_memloc, find_reloads_address): Corresponding changes.
3561 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3562 (find_reloads_address_1): Corresponding changes.
3563 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3564 (refers_to_regno_for_reload_p): Corresponding changes.
3565 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3566 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3567 * reload1.c: Include ggc.h.
3568 (grow_reg_equivs): New function.
3569 (replace_pseudos_in, reload): Corresponding changes.
3570 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3571 (eliminate_regs_1, elimination_effects): Corresponding changes.
3572 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3573 (delete_output_reload): Likewise.
3574 * caller-save.c (mark_referenced_regs): Corresponding changes.
3575 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3576 * frv/predicates.md (frv_load_operand): Corresponding changes.
3577 * microblaze/microblaze.c (double_memory_operand): Corresponding
3579 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3580 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3581 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3582 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3583 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3585 * pa/pa.c (emit_move_sequence): Corresponding changes.
3586 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3588 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3591 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3592 structure modes. Don't check neon_vector_mem_operand for
3593 vector or structure modes.
3595 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3596 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3599 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3600 operand 1 and reshuffle the operands to match.
3601 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3603 2011-03-30 Christian Schüler <cschueler@gmx.de>
3606 * config/c.opt (F): Added 'Driver' to -F option.
3609 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3611 * config/darwin.opt: Added '-arch' option.
3613 2011-03-30 Nick Clifton <nickc@redhat.com>
3615 * config/rx/rx.md: Add peepholes and patterns to combine
3616 extending loads and simple arithmetic instructions.
3617 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3618 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3619 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3620 modes to use pre-decrement and post-increment addressing.
3621 (rx_is_restricted_memory_address): Add range checking of REG+INT
3623 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3624 (rx_memory_move_cost): Adjust cost of stores.
3625 (rx_adjust_insn_length): New function.
3627 2011-03-30 Jakub Jelinek <jakub@redhat.com>
3630 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3631 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3632 matching arg00/arg01 types.
3634 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3636 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3637 last_location to UNKNOWN_LOCATION.
3639 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3642 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3645 2011-03-30 Joseph Myers <joseph@codesourcery.com>
3646 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3649 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3651 (sparc_cpu): Likewise.
3652 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3655 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3659 PR rtl-optimization/48345
3660 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3661 hard regs for given mode from profitable regs when doing secondary
3664 2011-03-29 Jeff Law <law@redhat.com>
3667 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3668 do_not_duplicate field.
3669 (lookup_redirection_data): Corresponding changes.
3670 (create_duplicates): Always create a template block.
3671 (redirect_edges): Remove code which reused the original block
3672 when it was going to become unreachable code.
3673 (thread_block): Don't set do_not_duplicate field.
3675 2011-03-29 Joseph Myers <joseph@codesourcery.com>
3677 * lto-opts.c (register_user_option_p, lto_register_user_option):
3678 Make type argument unsigned.
3679 * lto-streamer.h (lto_register_user_option): Make type argument
3681 * opth-gen.awk: Make CL_* macros unsigned.
3682 * opts-common.c (find_opt): Make lang_mask argument unsigned.
3683 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3684 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3685 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3686 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3687 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3688 (find_opt): Make lang_mask argument unsigned.
3690 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3692 PR rtl-optimization/48331
3693 PR rtl-optimization/48334
3694 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3695 for any used algorithm.
3697 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3699 * ira-conflicts.c (build_object_conflicts): Add unused attribute
3702 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
3704 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3705 (alpha_option_override): Don't set alpha_sr_alias_set.
3706 (emit_frame_store_1): Use gen_frame_mem rather than calling
3708 (alpha_expand_epilogue): Ditto.
3710 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
3712 PR tree-optimization/48290
3713 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3714 vectorization, check that relevant phis in the basic block after
3715 the inner loop are really inner loop's exit phis.
3717 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
3720 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3721 (cached_dw_loc_list_def): New structure.
3722 (cached_dw_loc_list): New typedef.
3723 (cached_dw_loc_list_table): New variable.
3724 (cached_dw_loc_list_table_hash): New function.
3725 (cached_dw_loc_list_table_eq): Likewise.
3726 (add_location_or_const_value_attribute): Take a bool cache_p.
3727 Cache the list when the parameter is true.
3728 (gen_formal_parameter_die): Update caller.
3729 (gen_variable_die): Likewise.
3730 (dwarf2out_finish): Likewise.
3731 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3732 while generating debug info for the decl.
3733 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3734 (dwarf2out_init): Initialize cached_dw_loc_list_table.
3735 (resolve_addr): Cache the result of resolving a chain of
3738 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
3740 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3741 conflict object hard regset nodes have intersecting hard reg sets.
3743 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3744 after regstat_init_n_sets_and_refs.
3746 * ira.c: Add more comments at the top.
3747 (setup_stack_reg_pressure_class, setup_pressure_classes):
3748 Add comments how we compute the register pressure classes.
3749 (setup_allocno_and_important_classes): Add more comments.
3750 (setup_class_translate_array, reorder_important_classes)
3751 (setup_reg_class_relations): Add comments.
3753 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
3756 * ira-color.c: Add 2011 to the Copyright line.
3757 (assign_hard_reg): Add more comments.
3758 (improve_allocation): Ditto.
3760 * ira-costs.c: Add 2011 to the Copyright line.
3761 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3763 (setup_regno_cost_classes_by_mode): Ditto.
3765 Initial patches from ira-improv branch:
3767 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3769 * ira-build.c (ira_create_object): Remove initialization of
3770 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
3771 (ira_create_allocno): Remove initialization of
3772 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3773 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3774 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3775 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3776 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3777 Initialize ALLOCNO_ADD_DATA.
3778 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3779 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3781 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
3782 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3784 * ira.c (ira_reallocate): Remove.
3785 (setup_pressure_classes): Call
3786 ira_init_register_move_cost_if_necessary. Use
3787 ira_register_move_cost instead of ira_get_register_move_cost.
3788 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3789 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3791 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3792 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3793 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3794 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3795 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3796 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3798 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3799 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3800 (struct allocno_color_data): New.
3801 (allocno_color_data_t): New typedef.
3802 (allocno_color_data): New definition.
3803 (ALLOCNO_COLOR_DATA): New macro.
3804 (struct object_color_data): New.
3805 (object_color_data_t): New typedef.
3806 (object_color_data): New definition.
3807 (OBJECT_COLOR_DATA): New macro.
3808 (update_copy_costs, calculate_allocno_spill_cost): Call
3809 ira_init_register_move_cost_if_necessary. Use
3810 ira_register_move_cost instead of ira_get_register_move_cost.
3811 (move_spill_restore, update_curr_costs): Ditto.
3812 (allocno_spill_priority): Make it inline.
3813 (color_pass): Allocate and free allocno_color_dat and object_color_data.
3814 (struct coalesce_data, coalesce_data_t): New.
3815 (allocno_coalesce_data): New definition.
3816 (ALLOCNO_COALESCE_DATA): New macro.
3817 (merge_allocnos, coalesced_allocno_conflict_p): Use
3818 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3819 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3820 (coalesce_allocnos): Ditto.
3821 (setup_coalesced_allocno_costs_and_nums): Ditto.
3822 (collect_spilled_coalesced_allocnos): Ditto.
3823 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3824 (setup_slot_coalesced_allocno_live_ranges): Ditto.
3825 (coalesce_spill_slots): Ditto.
3826 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
3827 free allocno_coalesce_data.
3829 * ira-conflicts.c: Fix formatting.
3830 (process_regs_for_copy): Call
3831 ira_init_register_move_cost_if_necessary. Use
3832 ira_register_move_cost instead of ira_get_register_move_cost.
3833 (build_object_conflicts): Optimize.
3835 * ira-costs.c (record_reg_classes): Optimize. Call
3836 ira_init_register_move_cost_if_necessary. Use
3837 ira_register_move_cost, ira_may_move_in_cost, and
3838 ira_may_move_out_cost instead of ira_get_register_move_cost and
3839 ira_get_may_move_cost.
3840 (record_address_regs): Ditto.
3841 (scan_one_insn): Optimize.
3842 (find_costs_and_classes): Optimize.
3843 (process_bb_node_for_hard_reg_moves): Call
3844 ira_init_register_move_cost_if_necessary. Use
3845 ira_register_move_cost instead of ira_get_register_move_cost.
3847 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3848 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3849 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3850 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3852 (ira_initiate_emit_data, ira_finish_emit_data)
3853 (create_new_allocno): New functions.
3854 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3855 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3856 Use ira_register_move_cost instead of ira_get_register_move_cost.
3858 * ira-int.h: Fix some comments.
3859 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3860 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3861 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3862 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
3864 (struct ira_allocno): Make mode and aclass a bitfield. Move other
3865 bitfield after mode. Make hard_regno a short int. Make
3866 hard_regno short. Remove first_coalesced_allocno and
3867 next_coalesced_allocno. Move mem_optimized_dest_p,
3868 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3869 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
3870 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3871 temp, colorable_p. Add new member add_data.
3872 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3873 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3874 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3875 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3876 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3877 (ALLOCNO_ADD_DATA): New macro.
3878 (ira_emit_data_t): New typedef.
3879 (struct ira_emit_data): New. Move mem_optimized_dest_p,
3880 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3881 from struct ira_allocno.
3882 (ALLOCNO_EMIT_DATA): New macro.
3883 (ira_allocno_emit_data, allocno_emit_reg): New.
3884 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3885 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3886 (OBJECT_ADD_DATA): New macro.
3887 (ira_reallocate): Remove.
3888 (ira_initiate_emit_data, ira_finish_emit_data): New.
3889 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3890 (ira_init_register_move_cost_if_necessary): New.
3891 (ira_object_conflict_iter_next): Merge into
3892 ira_object_conflict_iter_cond.
3893 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3895 * ira-live.c (process_single_reg_class_operands): Call
3896 ira_init_register_move_cost_if_necessary. Use
3897 ira_register_move_cost instead of ira_get_register_move_cost.
3899 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3901 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3903 * ira-costs.c: Fix formatting.
3904 (cost_classes, cost_classes_num): Remove.
3905 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3906 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3907 (cost_classes_del, cost_classes_htab): New.
3908 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3909 (initiate_regno_cost_classes, setup_cost_classes): New.
3910 (setup_regno_cost_classes_by_aclass): New.
3911 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3912 (record_reg_classes): Use regno_cost_classes instead of
3913 cost_classes. Move checking opposite operand up.
3914 (record_address_regs): Use regno_cost_classes
3915 instead of cost_classes.
3916 (scan_one_insn): Ditto. Use always general register.
3917 (print_allocno_costs): Use regno_cost_classes instead of
3919 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
3920 (find_costs_and_classes): Set up cost classes for each registers.
3921 Use also their mode for this. Use regno_cost_classes instead of
3923 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3925 (free_ira_costs, ira_init_costs): Don't use cost_classes.
3926 (ira_costs, ira_set_pseudo_classes): Call
3927 initiate_regno_cost_classes and finish_regno_cost_classes.
3929 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3931 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3933 * target.def (ira_cover_classes): Remove.
3935 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3937 * doc/tm.texi.in: Ditto.
3939 * ira-conflicts.c: Remove mentioning cover classes from the file.
3940 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
3941 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
3943 * targhooks.c (default_ira_cover_classes): Remove.
3945 * targhooks.h (default_ira_cover_classes): Ditto.
3947 * haifa-sched.c: Remove mentioning cover classes from the file.
3948 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3949 ira_pressure_classes and ira_pressure_classes_num instead of
3950 ira_reg_class_cover_size and ira_reg_class_cover. Use
3951 sched_regno_pressure_class instead of sched_regno_cover_class.
3952 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3953 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3955 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
3956 classes from the file.
3957 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3958 (struct object_hard_regs, struct object_hard_regs_node): New.
3959 (struct ira_object): New members profitable_hard_regs,
3960 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3961 (struct ira_allocno): Rename cover_class to aclass. Rename
3962 cover_class_cost and updated_cover_class_cost to class_cost and
3963 updated_class_cost. Remove splay_removed_p and
3964 left_conflict_size. Add new members colorable_p.
3965 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3966 (ALLOCNO_COLORABLE_P): New macro.
3967 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3968 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3969 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3970 (OBJECT_...): Rename parameter C to O.
3971 (OBJECT_PROFITABLE_HARD_REGS): New macro.
3972 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3973 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3974 (struct target_ira_int): New members x_ira_max_memory_move_cost,
3975 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3976 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3977 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3978 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
3979 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
3980 x_ira_reg_class_subunion.
3981 (ira_max_memory_move_cost, ira_max_register_move_cost)
3982 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3983 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3984 (ira_important_class_nums, ira_reg_class_superunion): New macros.
3985 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3986 (ira_reg_class_union): Rename to ira_reg_class_subunion.
3987 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3988 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3989 (ira_tune_allocno_costs_and_cover_classes): Rename to
3990 ira_tune_allocno_costs.
3991 (ira_debug_hard_regs_forest): New.
3992 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3993 (ira_object_conflict_iter_next): Fix comments.
3994 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3995 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3996 cover_class to aclass.
3997 (ira_allocate_and_accumulate_costs): Ditto.
3998 (ira_allocate_and_set_or_copy_costs): Ditto.
4000 * opts.c (decode_options): Remove ira_cover_class check.
4002 * ira-color.c: Remove mentioning cover classes from the file. Use
4003 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4004 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4005 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4006 (splay-tree.h): Remove include.
4007 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4008 before copy_freq_compare_func.
4009 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4010 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4012 (hard_regs_roots, hard_regs_node_vec): Ditto.
4013 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4014 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4015 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4016 (create_new_object_hard_regs_node): Ditto.
4017 (add_new_object_hard_regs_node_to_forest): Ditto.
4018 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4019 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4021 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4022 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4023 (remove_unused_object_hard_regs_nodes): Ditto.
4024 (enumerate_object_hard_regs_nodes): Ditto.
4025 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4026 (object_hard_regs_subnode_t): Ditto.
4027 (struct object_hard_regs_subnode): Ditto.
4028 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4029 (setup_object_hard_regs_subnode_index): Ditto.
4030 (get_object_hard_regs_subnodes_num): Ditto.
4031 (form_object_hard_regs_nodes_forest): Ditto.
4032 (finish_object_hard_regs_nodes_tree): Ditto.
4033 (finish_object_hard_regs_nodes_forest): Ditto.
4034 (allocnos_have_intersected_live_ranges_p): Rename to
4035 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4036 (pseudos_have_intersected_live_ranges_p): Rename to
4037 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4038 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4039 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4040 (update_copy_costs): Remove assert. Skip cost update if the hard
4041 reg does not belong the class.
4042 (assign_hard_reg): Process only profitable hard regs.
4043 (uncolorable_allocnos_num): Make it scalar.
4044 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4045 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4046 and ira_reg_class_max_nregs.
4047 (bucket_allocno_compare_func): Check frequency first.
4048 (sort_bucket): Add compare function as a parameter.
4049 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4050 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4051 (push_allocno_to_stack): Rewrite for checking new allocno
4053 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
4054 (push_only_colorable): Pass new parameter to sort_bucket.
4055 (push_allocno_to_spill): Remove.
4056 (allocno_spill_priority_compare): Make it inline and rewrite.
4057 (splay_tree_allocate, splay_tree_free): Remove.
4058 (allocno_spill_sort_compare): New function.
4059 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
4060 build and use splay tree. Choose first allocno in uncolorable
4061 allocno bucket to spill. Remove setting spill cost.
4062 (all_conflicting_hard_regs): Remove.
4063 (setup_allocno_available_regs_num): Check only profitable hard
4064 regs. Print info about hard regs nodes.
4065 (setup_allocno_left_conflicts_size): Remove.
4066 (put_allocno_into_bucket): Don't call
4067 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
4068 (improve_allocation): New.
4069 (color_allocnos): Call setup_profitable_hard_regs,
4070 form_object_hard_regs_nodes_forest, improve_allocation,
4071 finish_object_hard_regs_nodes_forest. Setup spill cost.
4072 (print_loop_title): Use pressure classes.
4073 (color_allocnso): Ditto.
4074 (do_coloring): Remove allocation and freeing splay_tree_node_pool
4075 and allocnos_for_spilling.
4076 (ira_sort_regnos_for_alter_reg): Don't setup members
4077 {first,next}_coalesced_allocno.
4078 (color): Remove allocating and freeing removed_splay_allocno_vec.
4079 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4080 prohibited_class_mode_regs.
4082 * ira-lives.c: Remove mentioning cover classes from the file. Fix
4084 (update_allocno_pressure_excess_length): Use pressure classes.
4085 (inc_register_pressure, dec_register_pressure): Check for pressure
4087 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4088 pressure class. Use ira_reg_class_nregs instead of
4089 ira_reg_class_max_nregs.
4090 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4091 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4092 (single_reg_class): Use ira_reg_class_nregs instead of
4093 ira_reg_class_max_nregs.
4094 (process_bb_node_lives): Use pressure classes.
4096 * ira-emit.c: Remove mentioning cover classes from the file. Use
4097 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
4098 (change_loop): Use pressure classes.
4099 (modify_move_list): Call ira_set_allocno_class instead of
4100 ira_set_allocno_cover_class.
4102 * ira-build.c: Remove mentioning cover classes from the file. Use
4103 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4104 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
4105 ALLOCNO_UPDATED_CLASS_COST instead of
4106 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4107 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4108 (ira_create_allocno): Remove initialization of
4109 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
4110 ALLOCNO_COLORABLE_P.
4111 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4112 Update conflict regs for the objects.
4113 (create_cap_allocno): Remove assert. Don't propagate
4114 ALLOCNO_AVAILABLE_REGS_NUM.
4115 (ira_free_allocno_costs): New function.
4116 (finish_allocno): Change a part of code into call of
4117 ira_free_allocno_costs.
4118 (low_pressure_loop_node_p): Use pressure classes.
4119 (object_range_compare_func): Don't compare classes.
4120 (setup_min_max_conflict_allocno_ids): Ditto.
4122 * loop-invariant.c: Remove mentioning cover classes from the file.
4123 Use ira_pressure_classes and ira_pressure_classes_num instead of
4124 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
4125 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4126 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4127 Use reg_allocno_class instead of reg_cover_class.
4128 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4129 STACK_REG_COVER_CLASS.
4130 (get_regno_cover_class): Rename to get_regno_pressure_class.
4131 (move_loop_invariants): Initialize and finalize regstat.
4133 * ira.c: Remove mentioning cover classes from the file. Add
4134 comments about coloring without cover classes. Use ALLOCNO_CLASS
4135 instead of ALLOCNO_COVER_CLASS. Fix formatting.
4136 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4137 setup_class_subset_and_memory_move_costs.
4138 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4139 (setup_cover_and_important_classes): Rename to
4140 setup_allocno_and_important_classes.
4141 (setup_class_translate_array): New.
4142 (setup_class_translate): Call it for allocno and pressure classes.
4143 (cover_class_order): Rename to allocno_class_order.
4144 (comp_reg_classes_func): Use ira_allocno_class_translate instead
4145 of ira_class_translate.
4146 (reorder_important_classes): Set up ira_important_class_nums.
4147 (setup_reg_class_relations): Set up ira_reg_class_superunion.
4148 (print_class_cover): Rename to print_classes. Add parameter.
4149 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4150 Print pressure classes too.
4151 (find_reg_class_closure): Rename to find_reg_classes. Don't call
4152 setup_reg_subclasses.
4153 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4154 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4155 (setup_prohibited_class_mode_regs): Use
4156 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4157 (clarify_prohibited_class_mode_regs): New function.
4158 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4159 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4160 (ira_init_once): Initialize them.
4161 (free_register_move_costs): Process them.
4162 (ira_init): Move calls of find_reg_classes and
4163 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4164 Call clarify_prohibited_class_mode_regs.
4165 (ira_no_alloc_reg): Remove.
4166 (too_high_register_pressure_p): Use pressure classes.
4168 * sched-deps.c: Remove mentioning cover classes from the file.
4169 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4170 ira_pressure_classes and ira_pressure_classes_num instead of
4171 ira_reg_class_cover_size and ira_reg_class_cover.
4172 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4173 sched_regno_pressure_class instead of sched_regno_cover_class.
4174 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
4175 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4177 * ira.h: Add 2010 to Copyright.
4178 (ira_no_alloc_reg): Remove external.
4179 (struct target_ira): Rename x_ira_hard_regno_cover_class,
4180 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4181 x_ira_class_translate to x_ira_hard_regno_allocno_class,
4182 x_ira_allocno_classes_num, x_ira_allocno_classes, and
4183 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
4184 x_ira_pressure_classes, x_ira_pressure_class_translate, and
4185 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
4186 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
4187 x_ira_no_alloc_regs.
4188 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4189 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4190 ira_allocno_classes_num and ira_allocno_classes.
4191 (ira_class_translate): Rename to ira_allocno_class_translate.
4192 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4193 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4194 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4195 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4196 (ira_no_alloc_regs): New.
4198 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4199 classes from the file. Use ALLOCNO_CLASS instead of
4200 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4201 ALLOCNO_COVER_CLASS_COST.
4202 (regno_cover_class): Rename to regno_aclass.
4203 (record_reg_classes): Use ira_reg_class_subunion instead of
4204 ira_reg_class_union.
4205 (record_address_regs): Check overflow.
4206 (scan_one_insn): Ditto.
4207 (print_allocno_costs): Print total mem cost fore regional allocation.
4208 (print_pseudo_costs): Use REG_N_REFS.
4209 (find_costs_and_classes): Use classes intersected with them on the
4210 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4211 ira_reg_class_union. Use ira_allocno_class_translate and
4212 regno_aclass instead of ira_class_translate and regno_cover_class.
4213 Modify code for finding regno_aclass. Setup preferred classes for
4215 (setup_allocno_cover_class_and_costs): Rename to
4216 setup_allocno_class_and_costs. Use regno_aclass instead of
4217 regno_cover_class. Use ira_set_allocno_class instead of
4218 ira_set_allocno_cover_class.
4219 (init_costs, finish_costs): Use regno_aclass instead of
4221 (ira_costs): Use setup_allocno_class_and_costs instead of
4222 setup_allocno_cover_class_and_costs.
4223 (ira_tune_allocno_costs_and_cover_classes): Rename to
4224 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4225 by processing objects. Use ira_reg_class_max_nregs instead of
4226 ira_reg_class_nregs.
4228 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4230 * sched-int.h: Remove mentioning cover classes from the file.
4231 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4233 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4234 classes from the file.
4235 (struct reg_pref): Rename coverclass into allocnoclass.
4236 (reg_cover_class): Rename to reg_allocno_class.
4238 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4240 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4242 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4244 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4246 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4248 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4250 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4252 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4254 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4256 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4258 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4259 (i386_ira_cover_classes): Ditto.
4261 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4263 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4265 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4267 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4269 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4271 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4273 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4274 (mips_ira_cover_classes): Ditto.
4276 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4278 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4280 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4282 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4284 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4286 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4287 (IRA_COVER_CLASSES_VSX): Ditto.
4289 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4290 (rs6000_ira_cover_classes): Ditto.
4292 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4294 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4296 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4298 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4300 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4302 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4304 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4306 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4308 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4310 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4312 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4315 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4316 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4317 dw_fde_unlikely_section_end_label, cold_in_std_section,
4318 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4319 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4321 (output_fde): Use dw_fde_second_{begin,end} if second is
4322 true, otherwise dw_fde_{begin,end}.
4323 (output_call_frame_info): Test dw_fde_second_begin != NULL
4324 instead of dw_fde_switched_sections.
4325 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4326 fields, initialize new fields. Initialize in_std_section
4327 unconditionally from the first partition.
4328 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4329 dw_fde_second_begin is non-NULL.
4330 (dwarf2out_switch_text_section): Stop initializing removed
4331 dw_fde_struct fields, initialize new fields, initialize
4332 also dw_fde_end here. Set dw_fde_switch_cfi even when
4333 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4334 (struct var_loc_list_def): Add last_before_switch field.
4335 (arange_table, arange_table_allocated, arange_table_in_use,
4336 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4337 (size_of_aranges): Count !in_std_section and !second_in_std_section
4338 hunks in fdes, instead of looking at arange_table_in_use.
4339 (output_aranges): Add aranges_length argument, don't call
4340 size_of_aranges here. Instead of using aranges_table*
4341 emit ranges for fdes when !in_std_section resp.
4342 !second_in_std_section.
4343 (dw_loc_list): Break ranges crossing section switch.
4344 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
4345 use dw_fde_second_end instead of dw_fde_end as end of last range.
4346 (gen_subprogram_die): Don't call add_arange. Use
4347 dw_fde_{begin,end} for first partition and if switched
4348 section dw_fde_second_{begin,end} for the second.
4349 (var_location_switch_text_section_1,
4350 var_location_switch_text_section): New functions.
4351 (dwarf2out_begin_function): Initialize cold_text_section even
4352 when function_section () isn't text_section.
4353 (prune_unused_types): Don't walk arange_table.
4354 (dwarf2out_finish): Don't needlessly test
4355 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4356 If info_section_emitted, call size_of_aranges and if it indicates
4357 non-empty .debug_aranges, call output_aranges with the computed
4358 size. Stop using removed dw_fde_struct fields, use
4359 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4363 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4364 create ENTRY_VALUE if incoming or address of incoming's MEM
4366 * dwarf2out.c (mem_loc_descriptor): Don't emit
4367 DW_OP_GNU_entry_value of DW_OP_fbreg.
4368 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4369 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4370 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4371 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4373 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4374 is a REG_P or MEM_P with REG_P address, compute hash directly
4375 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4376 (preserve_only_constants): Don't clear VALUES forwaring
4377 ENTRY_VALUE to some other VALUE.
4379 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4381 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4384 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4386 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4387 block before expanding the statement.
4388 (expand_gimple_stmt_1): Likewise. Set them here...
4389 (expand_gimple_stmt): ...and not here. Tidy.
4390 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4393 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4395 * Makefile.in: New rule for cprop.o.
4396 * gcse.c: Move constant/copy propagation to cprop.c.
4397 (compute_local_properties): Only handle expression tables.
4398 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4399 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4400 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4401 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4402 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4403 compute_cprop_data, find_used_regs, try_replace_reg,
4404 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4405 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4406 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4407 find_bypass_set, reg_killed_on_edge, bypass_block,
4408 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4409 execute_rtl_cprop, pass_rtl_cprop): Move to...
4410 * cprop.c: ...here. New file, constant/copy propagation for RTL
4411 moved from gcse.c to here with minor cleanups in duplicated code.
4413 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4415 * config/i386/i386.c (flag_opts): Fix a typo in
4416 -mavx256-split-unaligned-store.
4418 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4420 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4421 LIBCALL_VALUE): Remove macros.
4422 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4423 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4424 (h8300_function_value, h8300_libcall_value,
4425 h8300_function_value_regno_p): New functions.
4427 2011-03-28 Anatoly Sokolov <aesok@post.ru>
4429 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4431 2011-03-28 Jeff Law <law@redhat.com>
4433 * tree-ssa-threadupdate.c (redirect_edges): Call
4434 create_edge_and_update_destination_phis as needed.
4435 (create_edge_and_update_destination_phis): Accept new BB argument.
4436 All callers updated.
4437 (thread_block): Do not update the profile when threading around
4438 intermediate blocks.
4439 (thread_single_edge): Likewise.
4440 (determine_bb_domination_status): If BB is not a successor of the
4441 loop header, return NONDOMINATING.
4442 (register_jump_thread): Note when we register a jump thread around
4443 an intermediate block.
4444 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4445 (thread_across_edge): Use it.
4447 2011-03-28 Tristan Gingold <gingold@adacore.com>
4449 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4450 when for_return is 2.
4452 2011-03-28 Jeff Law <law@redhat.com>
4454 * var-tracking.c (canonicalize_values_mark): Delete unused
4456 (canonicalize_values_star, set_variable_part): Likewise.
4457 (clobber_variable_part, delete_variable_part): Likewise.
4459 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4461 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4463 2011-03-28 Martin Jambor <mjambor@suse.cz>
4465 * tree-inline.c (expand_call_inline): Do not check that destination
4467 (optimize_inline_calls): Assert that destination node is analyzed.
4468 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4469 not call tree_lowering_passes.
4470 * cgraph.h (cgraph_analyze_function): Declare.
4471 * cgraphunit.c (cgraph_analyze_function): Make public.
4473 2011-03-28 Joseph Myers <joseph@codesourcery.com>
4475 * config/sparc/sparc-opts.h: New.
4476 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4477 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4478 (sparc_option_override): Store processor_type enumeration rather
4479 than string in cpu_default. Remove name and enumeration from
4480 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4481 without using sparc_select. Use target_flags_explicit instead of
4483 * config/sparc/sparc.h (enum processor_type): Move to
4485 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4486 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4487 HeaderInclude entry.
4488 (mcpu=, mtune=): Use Var and Enum.
4489 (sparc_processor_type): New Enum and EnumValue entries.
4491 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4492 Iain Sandoe <iains@gcc.gnu.org>
4495 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4497 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4499 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4500 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4501 Insert new statements at it in lieu of STMT.
4502 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4503 * tree-vect-stmts.c (vectorizable_store): Likewise.
4504 (vectorizable_load): Likewise.
4506 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
4508 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4513 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4515 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4516 unaligned 256bit load/store.
4517 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4518 (*avx_movdqu<avxmodesuffix>): Likewise.
4520 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4523 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4524 * config/pa/pa.md (iordi3): Use new predicate in expander.
4527 2011-03-27 Anatoly Sokolov <aesok@post.ru>
4529 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4530 FUNCTION_VALUE_REGNO_P): Remove macros.
4531 * config/mips/mips-protos.h (mips_function_value): Remove.
4532 * config/mips/mips.c (mips_function_value): Rename to...
4533 (mips_function_value_1): ... this. Make static. Handle receiving
4534 the function type in 'fn_decl_or_type' argument.
4535 (mips_function_value, mips_libcall_value,
4536 mips_function_value_regno_p): New function.
4537 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4538 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4540 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4542 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4543 and -mavx256-split-unaligned-store.
4544 (ix86_option_override_internal): Split 32-byte AVX unaligned
4545 load/store by default.
4546 (ix86_avx256_split_vector_move_misalign): New.
4547 (ix86_expand_vector_move_misalign): Use it.
4549 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4550 -mavx256-split-unaligned-store.
4552 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4553 256bit load/store. Generate unaligned store on misaligned memory
4555 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4557 (*avx_movdqu<avxmodesuffix>): Likewise.
4559 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4560 -mavx256-split-unaligned-store.
4562 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4565 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4568 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4570 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4571 opno arguments with an expand_operand. Use create_input_operand.
4572 (mips_prepare_builtin_target): Delete.
4573 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4575 (mips_expand_builtin_direct): Use create_output_operand and
4576 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4577 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4578 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4580 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
4582 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4584 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4586 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4588 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4589 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4590 basic blocks and call commit_edge_insertions directly.
4591 (fixup_abnormal_edges): Move from here to...
4592 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4593 on the edges and return whether some have actually been inserted.
4594 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4597 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
4599 PR rtl-optimization/48144
4600 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4601 (merge_expr_data): ... here.
4602 (av_set_intersect): Rename to av_set_code_motion_filter.
4603 Update all callers. Call merge_history_vect when an expression
4604 is found in both sets.
4605 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4607 2011-03-26 Alan Modra <amodra@gmail.com>
4609 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4610 cmodel medium addresses.
4611 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4612 64-bit gpr loads and stores.
4613 (rs6000_secondary_reload_ppc64): New function.
4614 * config/rs6000/rs6000-protos.h: Declare it.
4615 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4617 2011-03-26 Alan Modra <amodra@gmail.com>
4620 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4621 GNU Go in traceback table.
4623 2011-03-25 Richard Henderson <rth@redhat.com>
4625 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4626 if there are exactly 6 operands.
4627 (set_storage_via_setmem): Similarly.
4629 2011-03-25 Kai Tietz <ktietz@redhat.com>
4631 * collect2.c (write_c_file_stat): Handle backslash
4632 as right-hand directory separator.
4633 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4634 checking just for slash.
4635 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4636 instead of checking for trailing slash.
4637 * gcc.c (record_temp_file): Use filename_cmp instead
4639 (do_spec_1): Likewise.
4640 (replace_outfile_spec_function): Likewise.
4641 (is_directory): Use filename_ncmp instead of strncmp.
4642 (print_multilib_info): Likewise.
4643 * gcov.c (find_source): Use filename_cmp instead
4645 (make_gcov_file_name): Fix order of slash/backslash
4647 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4648 (add_standard_paths): Likewise.
4649 * mips-tfile.c (saber_stop): Handle backslash.
4650 * prefix.c (update_path): Use filename_ncmp instead of
4652 * profile.c (output_location): Use filename_cmp instead
4654 * read-md.c (handle_toplevel_file): Handle backslash.
4655 * tlink.c (frob_extension): Likewise.
4656 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4658 * tree-dump.c (dequeue_and_dump): Handle backslash.
4659 * tree.c (get_file_function_name): Likewise.
4660 * gengtype.c (read_input_list): Likewise.
4661 (get_file_realbasename): Likewise.
4662 (get_output_file_with_visibility): Use filename_cmp
4665 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4667 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4670 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4672 * fold-const.c (expr_location_or): New function.
4673 (fold_truth_not_expr): Call it.
4675 2011-03-25 Jeff Law <law@redhat.com>
4677 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4679 * c-family/c-common.c (def_fn_type): Likewise.
4680 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4681 * emit-rtl.c (gen_rtvec): Likewise.
4682 * lto/lto-lang.c (def_fn_type): Likewise.
4684 2011-03-25 Richard Guenther <rguenther@suse.de>
4686 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4687 also generate copies.
4688 (fini_copy_prop): Handle constant values properly.
4690 2011-03-25 Jakub Jelinek <jakub@redhat.com>
4692 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4693 mode size instead of bitsize with DWARF2_ADDR_SIZE.
4694 (hash_loc_operands, compare_loc_operands): Handle
4695 DW_OP_GNU_entry_value.
4697 2011-03-25 Kai Tietz <ktietz@redhat.com>
4699 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4700 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4701 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4702 comment and use macro TARGET_64BIT_MS_ABI instead.
4703 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4704 and change default behavior for 32-bit MS_ABI.
4705 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4706 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4708 (ix86_cfun_abi): Likewise.
4709 (ix86_maybe_switch_abi): Adjust comment.
4710 (init_cumulative_args): Check for bit-ness in MS_ABI case.
4711 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4712 instead of checking for SYSV_ABI.
4713 (ix86_nsaved_sseregs): Likewise.
4714 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4716 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4717 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4718 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4719 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4720 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4722 2011-03-25 Richard Guenther <rguenther@suse.de>
4724 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4725 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4726 (verify_gimple): Remove.
4727 * tree-cfg.c (verify_gimple_call): Merge verification
4729 (verify_gimple_phi): Merge verification from verify_stmts.
4730 (verify_gimple_label): New function.
4731 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4732 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4733 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4734 (verify_stmts): Rename to verify_gimple_in_cfg.
4735 (verify_gimple_in_cfg): New function.
4736 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4737 * tree-ssa.c (verify_ssa): Likewise.
4738 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4740 2011-03-25 Richard Guenther <rguenther@suse.de>
4742 * passes.c (init_optimization_passes): Add FRE pass after
4745 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
4746 Andrew Stubbs <ams@codesourcery.com>
4748 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4750 (arm_movdi_vfp_cortexa8): New pattern.
4751 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4752 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4753 instructions when tuning for Cortex-A8. Set attribute "arch".
4754 * config/arm/arm.md: Move include arm-tune.md up a bit.
4755 (define_attr "arch"): Add "onlya8" and "nota8" values.
4756 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4758 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4762 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4764 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4765 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4766 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4767 * passes.c (init_optimization_passes): Move
4768 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4770 2011-03-25 Kai Tietz <ktietz@redhat.com>
4772 * c-typeck.c (comptypes_internal): Replace target
4773 hook call of comp_type_attributes by version in tree.c file.
4774 * gimple.c (gimple_types_compatible_p_1): Likewise.
4775 * tree-ssa.c (useless_type_conversion_p): Likewise.
4776 * tree.c (build_type_attribute_qual_variant): Likewise.
4777 (attribute_value_equal): New static helper function.
4778 (comp_type_attributes): New function.
4779 (merge_attributes): Use attribute_value_equal for comparison.
4780 (attribute_list_contained): Likewise.
4781 * tree.h (comp_type_attributes): New prototype.
4783 2011-03-25 Richard Guenther <rguenther@suse.de>
4785 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4786 of complex types at -O0.
4787 (verify_gimple_assign_binary): Likewise.
4788 (verify_gimple_assign_ternary): Likewise.
4790 2011-03-24 Mark Wielaard <mjw@redhat.com>
4792 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4793 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4795 2011-03-24 Mark Wielaard <mjw@redhat.com>
4798 * dwarf2out.c (output_abbrev_section): Only write table when
4799 abbrev_die_table_in_use > 1.
4801 2011-02-24 Richard Henderson <rth@redhat.com>
4803 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4804 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4805 (alpha_expand_unaligned_load_words): Use extql.
4806 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4807 (emit_insxl): Handle all modes for consistency.
4809 2011-02-24 Richard Henderson <rth@redhat.com>
4811 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4812 (alpha_expand_unaligned_load): Likewise.
4813 (alpha_expand_unaligned_store): Likewise.
4814 (alpha_expand_unaligned_load_words): Likewise.
4815 (alpha_expand_unaligned_store_words): Likewise.
4816 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4817 (alpha_split_lock_test_and_set_12): Likewise.
4818 (print_operand, alpha_fold_builtin_extxx): Likewise.
4819 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4820 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4821 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4822 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4823 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4824 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4825 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4826 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4827 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4828 (extwl, extll, extql): Similarly.
4829 (inswh, inslh, insqh): Similarly.
4830 (mskbl, mskwl, mskll, mskql): Similarly.
4831 (mskwh, msklh, mskqh): Similarly.
4833 2011-02-24 Richard Henderson <rth@redhat.com>
4835 * config/alpha/alpha.md (attribute isa): Add er, ner.
4836 (attribute enabled): Handle them.
4837 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4839 2011-02-24 Richard Henderson <rth@redhat.com>
4841 * config/alpha/alpha.md (attribute isa): Add vms.
4842 (attribute enabled): Handle it.
4843 (*movsf): Merge *movsf_{nofix,fix,nofp}.
4844 (*movdf): Merge *movdf_{nofix,fix,nofp}.
4845 (*movtf): Rename from *movtf_internal for consistency.
4846 (*movsi): Merge with *movsi_nt_vms.
4847 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4848 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4849 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4850 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4852 2011-02-24 Richard Henderson <rth@redhat.com>
4854 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4855 (extendqisi2, extendhisi2): Likewise.
4856 (extendqidi2): Simplify BWX/non-BWX expansions.
4857 (extendhidi2): Similarly.
4859 2011-02-24 Richard Henderson <rth@redhat.com>
4861 * config/alpha/alpha.md (attribute isa): New.
4862 (attribute enabled): New.
4863 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4864 (zero_extendqisi2, zero_extendqidi2): Similarly.
4865 (zero_extendhisi2, zero_extendhidi2): Similarly.
4866 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4868 2011-02-24 Richard Henderson <rth@redhat.com>
4870 * config/alpha/predicates.md (input_operand): Revert last change;
4871 update comment to mention 32-bit VMS rather than Windows.
4873 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4875 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4876 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4877 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4878 * passes.c (init_optimization_passes): Move
4879 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4881 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4883 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4885 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4887 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4890 2011-03-24 Jakub Jelinek <jakub@redhat.com>
4893 * simplify-rtx.c (simplify_const_unary_operation): Call
4894 real_convert when changing mode class with FLOAT_EXTEND.
4896 2011-03-24 Nick Clifton <nickc@redhat.com>
4898 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4899 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4900 * config/rx/rx.c (rx_option_override): Set align_jumps,
4901 align_loops and align_labels if not set by the user.
4902 (rx_align_for_label): New function.
4903 (rx_max_skip_for_label): New function.
4904 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4905 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4906 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4907 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4908 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4910 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4912 PR rtl-optimization/48263
4913 * optabs.c (expand_binop_directly): Reinstate convert_modes code
4914 and original commutative_p handling. Use maybe_gen_insn.
4916 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4918 * reload.c (find_reloads_subreg_address): Add address_reloaded
4919 parameter and return true there if the full address has been
4921 (find_reloads_toplev): Pass address_reloaded flag.
4922 (find_reloads_address_1): Don't use address_reloaded parameter.
4924 2011-03-24 Jeff Law <law@redhat.com>
4926 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4927 unused variable "ann".
4928 (remove_unused_locals): Likewise.
4930 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4933 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4936 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4938 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4939 for invalid symbolic addresses.
4940 (s390_secondary_reload): Don't use s390_check_symref_alignment for
4943 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4945 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4946 the argument in calls to fold_truth_not_expr.
4948 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4950 * tree.c (record_node_allocation_statistics): New function.
4951 (make_node_stat, copy_node_stat, build_string): Call it.
4952 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4953 (build1_stat, build_omp_clause): Likewise.
4955 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4957 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4960 2011-03-24 Richard Guenther <rguenther@suse.de>
4962 PR tree-optimization/48271
4963 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4964 blocks that still exist.
4966 2011-03-24 Richard Guenther <rguenther@suse.de>
4968 PR tree-optimization/48270
4969 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4970 not free datarefs before ddrs.
4972 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4974 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4975 from the address built for a reference with variable offset.
4977 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4980 * config/i386/i386.md (*movdf_internal_rex64): Do not split
4981 alternatives that can be handled with movq or movabsq insn.
4982 (*movdf_internal): Disable for !TARGET_64BIT.
4983 (*movdf_internal_nointeger): Ditto.
4984 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4986 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4988 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4989 (FUNCTION_ARG_ADVANCE): Likewise.
4990 * tm.texi.in: Change references to them to hook references.
4991 * tm.texi: Regenerate.
4992 * targhooks.c (default_function_arg): Eliminate check for target macro.
4993 (default_function_incoming_arg): Likewise.
4994 (default_function_arg_advance): Likewise.
4995 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4996 (function_arg_advance): Likewise.
4997 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4999 2011-03-24 Richard Guenther <rguenther@suse.de>
5002 * tree-object-size.c (addr_object_size): Do not double-account
5003 for MEM_REF offsets.
5005 2011-03-24 Diego Novillo <dnovillo@google.com>
5007 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5008 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5009 (lto_input_data_block): Move from lto-opts.c. Make extern.
5011 (lto_input_string): Rename from input_string. Make extern.
5013 * lto-streamer-out.c (lto_output_string_with_length): Rename from
5014 output_string_with_length.
5015 Output 0 to indicate a non-NULL string. Update all callers to
5017 (lto_output_string): Rename from output_string. Make extern.
5019 (lto_output_decl_state_streams): Make extern.
5020 (lto_output_decl_state_refs): Make extern.
5021 * lto-streamer.h (lto_input_string): Declare.
5022 (lto_input_data_block): Declare.
5023 (lto_output_string): Declare.
5024 (lto_output_string_with_length): Declare.
5025 (lto_output_decl_state_streams): Declare.
5026 (lto_output_decl_state_refs): Declare.
5028 2011-03-24 Richard Guenther <rguenther@suse.de>
5030 PR tree-optimization/46562
5031 * tree.c (build_invariant_address): New function.
5032 * tree.h (build_invariant_address): Declare.
5033 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5034 a renamed function moved ...
5035 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5036 Take valueization callback parameter.
5037 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5038 * gimple-fold.h: New file.
5039 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5040 (ccp_fold, fold_const_aggregate_ref,
5041 fold_ctor_reference, fold_nonarray_ctor_reference,
5042 fold_array_ctor_reference, fold_string_cst_ctor_reference,
5043 get_base_constructor): Move ...
5044 * gimple-fold.c: ... here.
5045 (gimple_fold_stmt_to_constant_1): New function
5046 split out from ccp_fold. Take a valueization callback parameter.
5047 Valueize all operands.
5048 (gimple_fold_stmt_to_constant): New wrapper function.
5049 (fold_const_aggregate_ref_1): New function split out from
5050 fold_const_aggregate_ref. Take a valueization callback parameter.
5051 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5052 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5053 invariant POINTER_PLUS_EXPRs to invariant form.
5054 (vn_valueize): New function.
5055 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5056 * tree-vrp.c (vrp_valueize): New function.
5057 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5058 to fold statements to constants.
5059 * tree-ssa-pre.c (eliminate): Properly guard propagation of
5060 function declarations.
5061 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5062 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5064 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5066 * config/h8300/predicates.md (jump_address_operand): Fix register
5069 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
5071 * doc/invoke.texi (max-stores-to-sink): Document.
5072 * params.h (MAX_STORES_TO_SINK): Define.
5073 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5074 if either vectorization or if-conversion is disabled.
5075 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5076 tree-vect-data-refs.c vect_equal_offsets.
5077 (dr_equal_offsets_p): New function.
5078 (find_data_references_in_bb): Remove static.
5079 * tree-data-ref.h (find_data_references_in_bb): Declare.
5080 (dr_equal_offsets_p): Likewise.
5081 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5082 (vect_drs_dependent_in_basic_block): Update calls to
5084 (vect_check_interleaving): Likewise.
5085 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5086 (cond_if_else_store_replacement): Rename to...
5087 (cond_if_else_store_replacement_1): ... this. Change arguments and
5089 (cond_if_else_store_replacement): New function.
5090 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5091 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5093 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
5096 * config/arm/arm.md (casesi): Use the gen_int_mode() function
5097 to subtract lower bound instead of GEN_INT().
5099 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
5104 * doc/extend.texi (Alignment): Move section to match order in TOC.
5105 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5106 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5108 2011-03-23 Jeff Law <law@redhat.com>
5110 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5111 before removing the edge.
5113 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5114 it may have been freed by redirect_branch_edge or
5115 redirect_edge_succ_nodup.
5117 2011-03-23 Richard Guenther <rguenther@suse.de>
5119 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5120 (check_va_list_escapes): Likewise.
5121 (check_all_va_list_escapes): Likewise.
5123 2011-03-23 Richard Guenther <rguenther@suse.de>
5125 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5126 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5127 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5128 (alias.o): Likewise.
5129 (ipa-type-escape.o): Remove.
5130 (ipa-struct-reorg.o): Likewise.
5131 (GTFILES): Remove ipa-struct-reorg.c.
5132 * alias.c: Do not include ipa-type-escape.h.
5133 * tree-ssa-alias.c: Likewise.
5134 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5135 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5136 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5137 and ipa-type-escape passes.
5138 * tree-pass.h (pass_ipa_type_escape): Remove.
5139 (pass_ipa_struct_reorg): Likewise.
5140 * ipa-struct-reorg.h: Remove.
5141 * ipa-struct-reorg.c: Likewise.
5142 * ipa-type-escape.h: Likewise.
5143 * ipa-type-escape.c: Likewise.
5144 * doc/invoke.texi (-fipa-struct-reorg): Remove.
5145 (--param struct-reorg-cold-struct-ratio): Likewise.
5146 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5147 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5148 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5150 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5152 * config/s390/2084.md: Enable all insn reservations also for z9_ec
5153 cpu attribute value.
5154 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5155 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5156 * config/s390/s390.c (processor_flags_table): New constant array.
5157 (s390_handle_arch_option): Remove.
5158 (s390_handle_option): Remove s390_handle_arch_option invocations
5159 and OPT_mwarn_framesize_ handling.
5160 (s390_option_override): Remove s390_handle_arch_option invocation.
5161 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5163 * config/s390/s390.md (cpu attribute): Add z9_ec value.
5164 * config/s390/s390.opt (s390_tune, s390_arch)
5165 (march=): Replace s390_arch_option enum and values with
5166 processor_type. Set variable name to s390_arch. Set
5167 initialization value.
5168 (mtune=): Replace s390_arch_option with processor_type. Set
5169 variable name to s390_tune. Set initialization value.
5171 2011-03-23 Julian Brown <julian@codesourcery.com>
5173 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5174 accesses which are not naturally aligned.
5176 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5179 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5181 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5183 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5184 parameter from "int" to "enum insn_code".
5185 (expand_operand_type): New enum.
5186 (expand_operand): New structure.
5187 (create_expand_operand): New function.
5188 (create_fixed_operand, create_output_operand): Likewise
5189 (create_input_operand, create_convert_operand_to): Likewise.
5190 (create_convert_operand_from, create_address_operand): Likewise.
5191 (create_integer_operand): Likewise.
5192 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5193 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5194 (expand_insn, expand_jump_insn): Likewise.
5195 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5196 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5197 (expand_movstr, expand_builtin___clear_cache): Likewise.
5198 (expand_builtin_lock_release): Likewise.
5199 * explow.c (allocate_dynamic_stack_space): Likewise.
5200 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5201 and use the default handling in that case.
5202 * expmed.c (check_predicate_volatile_ok): Delete.
5203 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5204 (emit_cstore): Likewise.
5205 * expr.c (emit_block_move_via_movmem): Likewise.
5206 (set_storage_via_setmem, expand_assignment): Likewise.
5207 (emit_storent_insn, try_casesi): Likewise.
5208 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5209 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5210 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5211 (expand_twoval_unop, expand_twoval_binop): Likewise.
5212 (expand_unop_direct, emit_indirect_jump): Likewise.
5213 (emit_conditional_move, vector_compare_rtx): Likewise.
5214 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5215 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5216 (expand_sync_lock_test_and_set): Likewise.
5217 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5218 (emit_unop_insn): Likewise.
5219 (expand_copysign_absneg): Change icode to an insn_code.
5220 (create_convert_operand_from_type): New function.
5221 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5222 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5223 (expand_insn, expand_jump_insn): Likewise.
5224 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5225 than const_int_operand for operand 2.
5227 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5229 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5232 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5234 * emit-rtl.c (emit_pattern_before_noloc): New function.
5235 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5236 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5237 (emit_pattern_after_noloc): New function.
5238 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5239 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5241 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5243 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5244 (__ffsDI2): Likewise.
5246 2011-03-22 Richard Henderson <rth@redhat.com>
5248 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5249 of !TARGET_ABI_OPEN_VMS.
5250 (alpha_trampoline_init, alpha_start_function): Likewise.
5251 (alpha_expand_epilogue, alpha_file_start): Likewise.
5252 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5253 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5254 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5255 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5256 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5258 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5260 * config/s390/s390-opts.h: New.
5261 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5262 s390_arch_flags, s390_warn_framesize, s390_stack_size,
5263 s390_stack_guard): Remove.
5264 (s390_handle_arch_option): Return void. Take enum
5265 s390_arch_option value instead of string and searching array.
5266 (s390_handle_option): Don't assert that global structures are in
5267 use. Access variables via opts pointer. Use error_at. Don't use
5268 sscanf for -mstack-guard= or -mstack-size=. Update call to
5269 s390_handle_arch_option.
5270 (s390_option_override): Update call to s390_handle_arch_option.
5271 (s390_emit_prologue): Use %d format for s390_stack_size in
5272 diagnostic. Use %wd for HOST_WIDE_INT.
5273 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5274 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5275 * config/s390/s390.opt (config/s390/s390-opts.h): New
5276 HeaderInclude entry.
5277 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5278 s390_arch_flags, s390_warn_framesize): New Variable entries.
5279 (s390_arch_option): New Enum and EnumValue entries.
5280 (march=): Use Enum instead of Var.
5281 (mstack-guard=, mstack-size=): Use UInteger and Var.
5284 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5286 * config/score/score.c (score_handle_option): Don't assert that
5287 global structures are in use. Access target_flags via opts
5288 pointer. Use value of -march= option to determine target_flags
5290 * config/score/score.opt (march=): Use Enum.
5291 (score_arch): New Enum and EnumValue entries.
5293 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5295 * config/mep/mep.c (option_mtiny_specified): Remove.
5296 (mep_option_override): Move register handling for -mivc2 from
5297 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
5298 instead of option_mtiny_specified.
5299 (mep_handle_option): Access target_flags via opts pointer. Don't
5300 assert that global structures are in use. Defer part of -mivc2
5301 handling and move it to mep_option_override.
5302 * config/mep/mep.opt (IVC2): New Mask entry.
5303 (mivc2): Use Var and Defer instead of Mask.
5305 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5307 * config/v850/v850-opts.h: New.
5308 * config/v850/v850.c (small_memory): Replace with
5309 small_memory_physical_max array. Make that array static const.
5310 (v850_handle_memory_option): Take integer value of argument. Take
5311 gcc_options pointer, option text and location. Return void.
5312 Update for changes to small memory structures.
5313 (v850_handle_option): Access target_flags via opts pointer. Don't
5314 assert that global structures are in use. Update calls to
5315 v850_handle_memory_option.
5316 (v850_encode_data_area): Update references to small memory settings.
5317 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5318 (enum small_memory_type): Move to v850-opts.h.
5319 * config/v850/v850.opt (config/v850/v850-opts.h): New
5320 HeaderInclude entry.
5321 (small_memory_max): New Variable entry.
5322 (msda): Replace by pair of options msda= and msda-. Use UInteger.
5323 (mtda, mzda): Likewise.
5325 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5327 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5328 pointer. Don't assert that global structures are in use.
5330 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5332 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5333 via opts pointer. Don't assert that global structures are in use.
5335 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5337 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5338 (munix=93): Use Var.
5339 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5340 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5341 * config/pa/pa-opts.h: New.
5342 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5343 (pa_handle_option): Don't assert that global structures are in
5344 use. Access target_flags via opts pointer. Don't handle
5345 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5347 (pa_option_override): Handle deferred OPT_mfixed_range_.
5349 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5351 * config/mn10300/mn10300-opts.h: New.
5352 * config/mn10300/mn10300.c (mn10300_processor,
5353 mn10300_tune_string): Remove.
5354 (mn10300_handle_option): Don't assert that global structures are
5355 in use. Access mn10300_processor via opts pointer. Don't handle
5357 * config/mn10300/mn10300.h (enum processor_type): Move to
5359 (mn10300_processor): Remove.
5360 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5361 HeaderInclude entry.
5362 (mn10300_processor): New Variable entry.
5365 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5367 * config/microblaze/microblaze.c: Don't include opts.h.
5368 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5369 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5370 (mno-clearbss): Use Var and Warn.
5372 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5374 * config/m32r/m32r-opts.h: New.
5375 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5376 (m32r_handle_option): Don't assert that global structures are in
5377 use. Access target_flags and m32r_cache_flush_func via opts
5378 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5379 OPT_mno_flush_trap here.
5380 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5381 include of m32r-opts.h.
5382 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5383 HeaderInclude entry.
5384 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5385 (mmodel=): Use Enum and Var.
5386 (m32r_model): New Enum and EnumValue entries.
5387 (mno-flush-trap): Use Var.
5388 (msdata=): Use Enum and Var.
5389 (m32r_sdata): New Enum and EnumValue entries.
5391 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5393 * config/m32c/m32c.c: Don't include opts.h.
5394 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5395 m32c_handle_option): Remove.
5396 (m32c_option_override): Check global_options_set.x_target_memregs
5397 instead of target_memregs_set.
5398 * config/m32c/m32c.h (target_memregs): Remove.
5399 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5402 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5404 * config/iq2000/iq2000-opts.h: New.
5405 * config/iq2000/iq2000.c: Don't include opts.h.
5406 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5407 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5408 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5409 HeaderInclude entry.
5410 (iq2000_tune): New Variable entry.
5411 (march=): Add comment. Use Enum.
5412 (iq2000_arch): New Enum and EnumValue entries.
5413 (mcpu=): Use Enum and Var.
5414 (iq2000_tune): New Enum and EnumValue entries.
5416 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5418 * config/ia64/ia64-opts.h: New.
5419 * config/ia64/ia64.c (ia64_tune): Remove.
5420 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5422 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5423 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5424 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5425 HeaderInclude entry.
5426 (ia64_tune): New Variable entry.
5427 (mfixed-range=): Use Defer and Var.
5428 (mtune=): Use Enum and Var.
5429 (ia64_tune): New Enum and EnumValue entries.
5431 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5433 * config/frv/frv-opts.h: New.
5434 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5436 (frv_cpu_type): Remove.
5437 * config/frv/frv.c: Don't include opts.h.
5438 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5439 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5440 (frv_cpu_type): New Variable entry.
5441 (frv_cpu): New Enum and EnumValue entries.
5443 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5445 * config/cris/cris.c (cris_handle_option): Access target_flags via
5446 opts pointer. Don't assert that global structures are in use.
5447 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5448 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5450 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5452 * config/bfin/bfin-opts.h: New.
5453 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5454 bfin_si_revision, bfin_workarounds): Remove.
5455 (bfin_cpus): Make static const.
5456 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5457 not bfin_lib_id_given.
5458 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5459 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5460 pointer. Use error_at. Don't assert that global structures are in use.
5461 * config/bfin/bfin.h: Include bfin-opts.h.
5462 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5463 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5464 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5465 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5470 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5471 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5472 or -msoft-float here.
5473 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5474 -msoft-float and -mhard-float.
5475 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5476 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5478 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5480 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5481 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5483 (LIBGCC_SPEC): Don't handle -msoft-float.
5484 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5486 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5488 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5489 -mfloat-abi=*, not -msoft-float and -mhard-float.
5490 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5492 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5493 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5494 mhard-float and msoft-float.
5495 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5496 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5497 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5498 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5500 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5501 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5503 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5505 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5508 2011-03-22 Richard Henderson <rth@redhat.com>
5510 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5511 TARGET_ABI_WINDOWS_NT.
5512 (alpha_output_function_end_prologue): Likewise.
5513 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5514 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5515 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5516 (trap, *movsi_nt_vms): Likewise.
5517 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5518 (*tablejump_osf_nt_internal): Remove.
5519 * config/alpha/predicates.md (input_operand): Only test Pmode.
5521 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5523 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5524 via opts pointer. Use error_at. Don't assert that global
5525 structures are in use.
5527 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5529 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5530 (ix86_handle_option): Access ix86_isa_flags and
5531 ix86_isa_flags_explicit via opts pointer. Don't assert that
5532 global structures are in use.
5533 (ix86_function_specific_save, ix86_function_specific_restore):
5534 Update ix86_isa_flags_explicit field name.
5535 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5536 (ix86_isa_flags_explicit): Rename TargetSave entry to
5537 x_ix86_isa_flags_explicit.
5539 2011-03-22 Richard Henderson <rth@redhat.com>
5541 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5542 (alpha_option_override, direct_return): Likewise.
5543 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5544 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5545 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5546 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5547 (alpha_expand_epilogue, alpha_end_function): Likewise.
5548 (alpha_init_libfuncs): Likewise.
5549 (struct machine_function): Remove unicosmk members.
5550 (print_operand) ['t']: Remove.
5551 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5552 unicosmk_output_module_name, unicosmk_output_common,
5553 current_section_align, unicosmk_output_text_section_asm_op,
5554 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5555 unicosmk_section_type_flags, unicosmk_unique_section,
5556 unicosmk_asm_named_section, unicosmk_insert_attributes,
5557 unicosmk_output_align, unicosmk_defer_case_vector,
5558 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5559 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5560 unicosmk_output_ssib, unicosmk_add_call_info_word,
5561 unicosmk_extern_head, unicosmk_output_default_externs,
5562 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5563 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5564 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5565 * config/alpha/alpha-protos.h: Update.
5566 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5567 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5568 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5569 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5570 (*mulsi_se, mulvsi3): Likewise.
5571 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5572 (*divmodsi_internal, call, call_value, realign): Likewise.
5573 (moddi3, umoddi3): Likewise; remove duplicate expander.
5574 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5575 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5576 (*movdi_nofix): Remove r/U alternative.
5577 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5578 * config/alpha/constraints.md ("U"): Remove.
5579 * config/alpha/predicates.md (call_operand"): Don't test
5580 TARGET_ABI_UNICOSMK.
5582 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5584 * target.def (handle_option): Take gcc_options and
5585 cl_decoded_option pointers and location_t.
5586 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5587 * doc/tm.texi: Regenerate.
5588 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5589 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5590 * lto-opts.c (lto_reissue_options): Generate option structure for
5591 targetm.handle_option call.
5592 * opts.c (target_handle_option): Update call to
5593 targetm.handle_option. Remove assertions about values now passed
5595 * targhooks.c (default_target_handle_option): New.
5596 * targhooks.h (default_target_handle_option): Declare.
5597 * config/alpha/alpha.c: Include opts.h.
5598 (alpha_handle_option): Update to new hook interface.
5599 * config/arm/arm.c: Include opts.h.
5600 (arm_handle_option): Update to new hook interface.
5601 * config/arm/t-arm (arm.o): Update dependencies.
5602 * config/bfin/bfin.c: Include opts.h.
5603 (bfin_handle_option): Update to new hook interface.
5604 * config/cris/cris.c: Include opts.h.
5605 (cris_handle_option): Update to new hook interface.
5606 * config/frv/frv.c: Include opts.h.
5607 (frv_handle_option): Update to new hook interface.
5608 * config/i386/i386.c: Include opts.h.
5609 (ix86_handle_option): Update to new hook interface.
5610 (ix86_valid_target_attribute_inner_p): Generate option structure
5611 for call to ix86_handle_option.
5612 * config/i386/t-i386 (i386.o): Update dependencies.
5613 * config/ia64/ia64.c: Include opts.h.
5614 (ia64_handle_option): Update to new hook interface.
5615 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5616 * config/iq2000/iq2000.c: Include opts.h.
5617 (iq2000_handle_option): Update to new hook interface.
5618 * config/m32c/m32c.c: Include opts.h.
5619 (m32c_handle_option): Update to new hook interface.
5620 * config/m32r/m32r.c: Include opts.h.
5621 (m32r_handle_option): Update to new hook interface.
5622 * config/m68k/m68k.c: Include opts.h.
5623 (m68k_handle_option): Update to new hook interface.
5624 * config/mep/mep.c: Include opts.h.
5625 (mep_handle_option): Update to new hook interface.
5626 * config/microblaze/microblaze.c: Include opts.h.
5627 (microblaze_handle_option): Update to new hook interface.
5628 * config/mips/mips.c: Include opts.h.
5629 (mips_handle_option): Update to new hook interface.
5630 * config/mn10300/mn10300.c: Include opts.h.
5631 (mn10300_handle_option): Update to new hook interface.
5632 * config/pa/pa.c: Include opts.h.
5633 (pa_handle_option): Update to new hook interface.
5634 * config/pdp11/pdp11.c: Include opts.h.
5635 (pdp11_handle_option): Update to new hook interface.
5636 * config/rs6000/rs6000.c: Include opts.h.
5637 (rs6000_handle_option): Update to new hook interface.
5638 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5639 * config/rx/rx.c: Include opts.h.
5640 (rx_handle_option): Update to new hook interface.
5641 * config/s390/s390.c: Include opts.h.
5642 (s390_handle_option): Update to new hook interface.
5643 * config/score/score.c: Include opts.h.
5644 (score_handle_option): Update to new hook interface.
5645 * config/sh/sh.c: Include opts.h.
5646 (sh_handle_option): Update to new hook interface.
5647 * config/sparc/sparc.c: Include opts.h.
5648 (sparc_handle_option): Update to new hook interface.
5649 * config/v850/v850.c: Include opts.h.
5650 (v850_handle_option): Update to new hook interface.
5652 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5654 * gcc.c (driver_unknown_option_callback): Only permit and save
5655 unknown -Wno- options.
5656 (driver_wrong_lang_callback): Save options directly instead of via
5657 driver_unknown_option_callback.
5659 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5661 * combine.c (simplify_set): Try harder to find the best CC mode when
5662 simplifying a nested COMPARE on the RHS.
5664 2011-03-22 Joseph Myers <joseph@codesourcery.com>
5666 * config/alpha/gnu.h: Remove.
5667 * config/arc: Remove directory.
5668 * config/arm/netbsd.h: Remove.
5669 * config/arm/t-pe: Remove.
5670 * config/crx: Remove directory.
5671 * config/i386/netbsd.h: Remove.
5672 * config/m68hc11: Remove directory.
5673 * config/m68k/uclinux-oldabi.h: Remove.
5674 * config/mcore/mcore-pe.h: Remove.
5675 * config/mcore/t-mcore-pe: Remove.
5676 * config/netbsd-aout.h: Remove.
5677 * config/rs6000/gnu.h: Remove.
5678 * config/sh/sh-symbian.h: Remove.
5679 * config/sh/symbian-base.c: Remove.
5680 * config/sh/symbian-c.c: Remove.
5681 * config/sh/symbian-cxx.c: Remove.
5682 * config/sh/symbian-post.h: Remove.
5683 * config/sh/symbian-pre.h: Remove.
5684 * config/sh/t-symbian: Remove.
5685 * config/svr3.h: Remove.
5686 * config/vax/netbsd.h: Remove.
5687 * config.build: Don't handle i[34567]86-*-pe.
5688 * config.gcc: Remove handling of deprecations for most deprecated
5690 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5691 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5692 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5693 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5694 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5695 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5697 * config.host: Don't handle i[34567]86-*-pe.
5698 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5699 (ASM_SPEC32): Don't handle -mcall-gnu.
5700 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5702 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5703 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5704 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5705 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5706 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5707 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5708 conditional on SYMBIAN.
5709 * configure.ac: Don't handle powerpc*-*-gnu*.
5710 * configure: Regenerate.
5711 * doc/extend.texi (interrupt attribute): Don't mention CRX.
5712 * doc/install-old.texi (m6811, m6812): Don't mention.
5713 * doc/install.texi (arc-*-elf*): Don't document multilib option.
5714 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5715 (m68k-uclinuxoldabi): Don't mention.
5716 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5718 (-mcall-gnu): Remove.
5719 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5720 families): Remove constraint documentation.
5722 2011-03-22 Marius Strobl <marius@FreeBSD.org>
5724 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5725 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5726 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5728 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
5730 * config/avr/avr-protos.h (expand_epilogue): Change prototype
5731 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5732 * config/avr/avr.c (init_cumulative_args)
5733 (avr_function_arg_advance): Use it.
5734 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5736 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5737 (avr_function_ok_for_sibcall): ...this new function.
5738 (avr_lookup_function_attribute1): New static Function.
5739 (avr_naked_function_p, interrupt_function_p)
5740 (signal_function_p, avr_OS_task_function_p)
5741 (avr_OS_main_function_p): Use it.
5742 * config/avr/avr.md ("sibcall", "sibcall_value")
5743 ("sibcall_epilogue"): New expander.
5744 ("*call_insn", "*call_value_insn"): New insn.
5745 ("call_insn", "call_value_insn"): Remove
5746 ("call", "call_value", "epilogue"): Change expander to handle
5749 2011-03-21 Nick Clifton <nickc@redhat.com>
5751 * doc/invoke.texi (Overall Options): Move closing brace to end of
5753 (Optimization Options): Add missing @gol.
5754 (Directory Options): Likewise.
5755 (i386 and x86-64 Options): Likewise.
5756 (RS6000 and PowerPC Options): Likewise.
5757 (i386 and x86-64 Windows Options): Likewise.
5758 (V850 Options): Add text missing from descriptions.
5760 2011-03-22 Richard Henderson <rth@redhat.com>
5762 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5763 (avr_incoming_return_addr_rtx): New.
5764 (emit_push_byte): New.
5765 (expand_prologue): Use it. Remove incorrect dwarf annotation for
5766 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
5767 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
5768 (emit_pop_byte): New.
5769 (expand_epilogue): Use it. Pop frame pointer by bytes.
5770 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5771 (INCOMING_RETURN_ADDR_RTX): New.
5772 (INCOMING_FRAME_SP_OFFSET): New.
5773 (ARG_POINTER_CFA_OFFSET): New.
5774 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5775 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5778 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5780 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5782 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5783 (FUNCTION_ARG_ADVANCE): Likewise.
5784 * tm.texi.in: Change references to them to hook references.
5785 * tm.texi: Regenerate.
5786 * targhooks.c (default_function_arg): Eliminate check for target
5788 (default_function_incoming_arg): Likewise.
5789 (default_function_arg_advance): Likewise.
5790 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5791 (function_arg_advance): Likewise.
5792 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5794 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5796 * tree.c (build_call_1): New function.
5797 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5799 2011-03-22 Richard Guenther <rguenther@suse.de>
5801 PR tree-optimization/48228
5802 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5803 for single-arg PHIs.
5805 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
5807 PR rtl-optimization/48143
5808 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5809 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5810 sse2_cvtps2pd): Likewise.
5812 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5814 * recog.c (canonicalize_change_group): Use validate_unshare_change.
5816 2011-03-22 Richard Guenther <rguenther@suse.de>
5818 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5819 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5820 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5821 and REALIGN_LOAD_EXPR.
5822 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5823 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5824 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5825 DOT_PROD_EXPR case ...
5826 (expand_expr_real_2): ... here.
5827 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5828 and REALIGN_LOAD_EXPR.
5829 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5830 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5831 (vect_create_epilog_for_reduction): Likewise.
5832 (vectorizable_reduction): Likewise.
5833 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5834 * tree-vect-stmts.c (vectorizable_load): Likewise.
5836 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5838 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5840 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5842 * config/s390/s390.c (s390_delegitimize_address): Fix offset
5843 handling for PLTOFF/GOTOFF.
5845 2011-03-22 Nick Clifton <nickc@redhat.com>
5847 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5848 trailing backslash from the end of the macro definition.
5850 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5852 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5855 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
5857 * expr.h (prepare_operand): Move to...
5858 * optabs.h (prepare_operand): ...here and change the insn code
5859 parameter from "int" to "enum insn_code".
5860 (insn_operand_matches): Declare.
5861 * expr.c (init_expr_target): Use insn_operand_matches.
5862 (compress_float_constant): Likewise.
5863 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5864 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5865 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5866 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5868 (gen_cond_trap): Likewise.
5869 (prepare_operand): Likewise. Change icode to an insn_code.
5870 (insn_operand_matches): New function.
5871 * reload.c (find_reloads_address_1): Use insn_operand_matches.
5872 * reload1.c (gen_reload): Likewise.
5873 * targhooks.c (default_secondary_reload): Likewise.
5875 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5877 * config/alpha/alpha.md (unspec): New define_c_enum.
5880 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5883 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5884 between a call and its CALL_ARG_LOCATION note.
5886 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
5888 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5890 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5894 * c-common.c (shorten_compare): If primopN is first sign-extended
5895 to opN and then zero-extended to result type, set primopN to opN.
5897 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5899 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5900 for barrier handlers.
5902 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5904 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5905 UNSPEC constants to be in the unspec enumeration, and redefine
5906 all UNSPECV constants to be in the unspecv enumeration, so that
5907 dumps print which unspec/unspec_volatile this is.
5908 * config/rs6000/vector.md (UNSPEC_*): Ditto.
5909 * config/rs6000/paired.md (UNSPEC_*): Ditto.
5910 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5911 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5912 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5914 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5915 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5916 UNSPECV_LWSYNC, since these are used as unspec_volatile.
5917 * config/rs6000/sync.md (isync, lwsync): Ditto.
5919 2011-03-21 Richard Guenther <rguenther@suse.de>
5921 * params.def (lto-min-partition): Fix typo.
5923 2011-03-21 Richard Guenther <rguenther@suse.de>
5926 * c-decl.c (grokdeclarator): Drop to the main variant only
5927 for array types. Drop flag_gen_aux_info check.
5929 2011-03-21 Richard Guenther <rguenther@suse.de>
5931 PR translation/47911
5932 * params.def (lto-partitions): Fix typo.
5933 (lto-min-partition): Fix wording.
5935 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
5937 * config/rs6000/t-freebsd: Remove duplication from file.
5939 2011-03-21 Richard Guenther <rguenther@suse.de>
5942 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5944 2011-03-21 Richard Guenther <rguenther@suse.de>
5947 * params.def (lto-partitions): Require at least 1 partition.
5949 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5951 * gthr-solaris.h: Remove.
5952 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5953 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5954 (LIB_SPEC): Likewise.
5955 * config/sol2.opt (threads): Remove.
5956 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5957 (sparc*-*-solaris2*): Likewise.
5958 * configure.ac (enable_threads): Enable solaris support.
5959 * configure: Regenerate.
5960 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5961 * doc/install.texi (Configuration, --enable-threads=lib): Remove
5964 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5966 * config.gcc: Obsolete *-*-solaris2.8*.
5967 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5969 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5972 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5973 reference. Solaris 8 perl works.
5975 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5978 * doc/install.texi (Prerequisites): Move jar etc. up.
5979 Explain support library version requirements.
5981 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5984 * doc/install.texi (Prerequisites): Move Perl to build
5985 requirements. Always necessary on Solaris 2 with Sun ld.
5987 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5989 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5991 (Specific, i?86-*-solaris2.[89]): Likewise.
5992 (Specific, i?86-*-solaris2.10): Likewise.
5993 (Specific, mips-sgi-irix6): Likewise.
5994 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5995 Update for binutils 2.21.
5997 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5999 * configure.ac (gcc_cv_lto_plugin): Fix typo.
6000 Allow -fuse-linker-plugin for non-default plugin linker.
6001 * configure: Regenerate.
6003 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
6006 * gengtype.c (files_rules): Added rule for cp/parser.h.
6008 2011-03-21 Jakub Jelinek <jakub@redhat.com>
6011 * config/s390/s390.c (s390_delegitimize_address): Don't call
6012 lowpart_subreg if orig_x has BLKmode.
6014 2011-03-21 Kai Tietz <ktietz@redhat.com>
6017 * doc/plugins.texi: Adjust documentation for plugin register_callback.
6018 * tree.h (attribute_spec): Add new member affects_type_identity.
6019 * attribs.c (empty_attribute_table): Adjust attribute_spec
6021 * config/alpha/alpha.c: Likewise.
6022 * config/arc/arc.c: Likewise.
6023 * config/arm/arm.c: Likewise.
6024 * config/avr/avr.c: Likewise.
6025 * config/bfin/bfin.c: Likewise.
6026 * config/crx/crx.c: Likewise.
6027 * config/darwin.h: Likewise.
6028 * config/h8300/h8300.c: Likewise.
6029 * config/i386/cygming.h: Likewise.
6030 * config/i386/i386.c: Likewise.
6031 * config/ia64/ia64.c: Likewise.
6032 * config/m32c/m32c.c: Likewise.
6033 * config/m32r/m32r.c: Likewise.
6034 * config/m68hc11/m68hc11.c: Likewise.
6035 * config/m68k/m68k.c: Likewise.
6036 * config/mcore/mcore.c: Likewise.
6037 * config/mep/mep.c: Likewise.
6038 * config/microblaze/microblaze.c: Likewise.
6039 * config/mips/mips.c: Likewise.
6040 * config/rs6000/rs6000.c: Likewise.
6041 * config/rx/rx.c: Likewise.
6042 * config/sh/sh.c: Likewise.
6043 * config/sol2.h: Likewise.
6044 * config/sparc/sparc.c: Likewise.
6045 * config/spu/spu.c: Likewise.
6046 * config/stormy16/stormy16.c: Likewise.
6047 * config/v850/v850.c: Likewise.
6049 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6051 * simplify-rtx.c (simplify_binary_operation_1): Handle
6052 (xor (and A B) C) case when B and C are both constants.
6054 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
6056 * tree-dfa.c (add_referenced_var): Fix typo in comment.
6058 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
6061 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6063 2011-03-20 Jakub Jelinek <jakub@redhat.com>
6065 PR rtl-optimization/48156
6066 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6067 assume df and df_lr are not NULL.
6069 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6072 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6073 between a call and its CALL_ARG_LOCATION note.
6075 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
6078 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6079 between a call and its corresponding CALL_ARG_LOCATION note.
6081 2011-03-19 Anatoly Sokolov <aesok@post.ru>
6083 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6084 instead of loop. Use HARD_REGISTER_NUM_P predicate.
6085 * haifa-sched.c (setup_ref_regs): Ditto.
6086 * caller-save.c (add_used_regs_1): Ditto.
6087 * dse.c (look_for_hardregs): Ditto.
6088 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6089 * sched-rgn.c (check_live_1): Ditto.
6091 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6093 * c-decl.c (diagnose_mismatched_decls): Give an error for
6094 redefining a typedef with variably modified type.
6096 2011-03-18 Joseph Myers <joseph@codesourcery.com>
6098 * c-decl.c (grokfield): Don't allow typedefs for structures or
6099 unions with no tag by default.
6100 * doc/extend.texi (Unnamed Fields): Update.
6102 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
6104 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6105 Rewrite using indirect functions.
6106 (lwp_slwpcb): Ditto.
6107 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6108 (avx_vinsertf128<mode>): Ditto.
6110 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6112 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6115 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6117 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6118 splitting between a call and its corresponding CALL_ARG_LOCATION note.
6120 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6122 PR rtl-optimization/48170
6123 * gcse.c (hoist_code): Remove bogus asserts.
6125 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
6127 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6128 computation for prologue/epilogue.
6130 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6132 * Makefile.in (check-consistency): Remove.
6134 2011-03-18 Jakub Jelinek <jakub@redhat.com>
6137 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6138 arange_table_in_use is 0, but either text_section_used or
6139 cold_text_section_used is true. Don't call it if
6140 !info_section_emitted.
6142 2011-03-18 Anatoly Sokolov <aesok@post.ru>
6144 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6145 FUNCTION_VALUE_REGNO_P): Remove.
6146 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6148 * config/avr/avr.c (avr_ret_register): Make static inline.
6149 (avr_function_value_regno_p): New function.
6150 (avr_libcall_value): Make static. Add 'func' argument.
6151 (avr_function_value): Make static. Rename 'func' argument to
6152 'fn_decl_or_type', forward it to avr_libcall_value. Call
6153 avr_ret_register function instead of RET_REGISTER macro.
6154 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6156 2011-03-18 Jason Merrill <jason@redhat.com>
6159 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6161 2011-03-18 Richard Guenther <rguenther@suse.de>
6163 * doc/install.texi (--enable-gold): Remove.
6164 (--with-plugin-ld): Document.
6165 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6167 2011-03-18 Andrew Pinski <pinskia@gmail.com>
6170 * expr.c (optimize_bitfield_assignment_op): Revamp to work
6171 again after expansion changes.
6173 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
6175 * combine.c (try_combine): Do simplification only call of
6176 subst() on i2 even when i1 is present. Update comments.
6178 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
6180 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6181 and UNSPEC_PCREL_SYMOFF.
6183 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6185 * config/s390/s390.md: Use define_c_enum for the unspec constant
6188 2011-03-18 Richard Henderson <rth@redhat.com>
6189 Jakub Jelinek <jakub@redhat.com>
6192 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6193 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6195 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6198 * combine.c (cant_combine_insn_p): Don't check zero/sign
6199 extended hard registers.
6201 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6204 * combine.c (cant_combine_insn_p): Check zero/sign extended
6207 2011-03-17 Anatoly Sokolov <aesok@post.ru>
6209 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6210 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6211 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6212 Change return type to bool.
6213 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6215 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6218 * var-tracking.c (prepare_call_arguments): If CALL target
6219 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6220 pc instead of looking it up using cselib_lookup and use
6221 Pmode for it if x has VOIDmode.
6222 * dwarf2out.c (gen_subprogram_die): If also both first and
6223 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6226 * function.c (assign_parms): For data.passed_pointer parms
6227 use MEM of data.entry_parm instead of data.entry_parm itself
6228 as DECL_INCOMING_RTL.
6229 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6230 also when passed and declared mode is the same, DECL_RTL
6231 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6234 2011-03-16 Jeff Law <law@redhat.com>
6236 PR rtl-optimization/37273
6237 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6238 handle them like argument loads from stack slots. Do not double
6239 count memory for memory constants and argument loads from stack slots.
6241 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6244 * var-tracking.c (prepare_call_arguments): Check SUBREG.
6246 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6249 * config/i386/i386.opt: Add Save to -mavx and -mfma.
6251 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6254 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6256 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6257 Clear call_arg_locations and call_arg_loc_last always.
6260 * var-tracking.c (prepare_call_arguments): If argument needs to be
6261 passed by reference, adjust argtype and mode.
6263 2011-03-17 Richard Guenther <rguenther@suse.de>
6266 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6267 a value make sure to fold the statement.
6269 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
6272 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6273 return condition with !cfun->calls_alloca.
6275 2011-03-17 Richard Guenther <rguenther@suse.de>
6278 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6279 origin for decls in other ltrans units.
6280 (input_varpool_node): Likewise.
6282 2011-03-17 Richard Guenther <rguenther@suse.de>
6285 * tree-object-size.c (compute_object_offset): Properly return
6286 the offset operand of MEM_REFs as sizetype.
6288 2011-03-17 Jakub Jelinek <jakub@redhat.com>
6290 PR rtl-optimization/48141
6291 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6292 * dse.c: Include params.h.
6293 (active_local_stores_len): New variable.
6294 (add_wild_read, dse_step1): Clear it when setting active_local_stores
6296 (record_store, check_mem_read_rtx): Decrease it when removing
6298 (scan_insn): Likewise. Increase it when adding to chain, if it
6299 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6300 set active_local_stores to NULL before the addition.
6301 * Makefile.in (dse.o): Depend on $(PARAMS_H).
6303 PR rtl-optimization/48141
6304 * dse.c (record_store): If no positions are needed in an insn
6305 that cannot be deleted, at least unchain it from active_local_stores.
6307 2011-03-16 Dodji Seketeli <dodji@redhat.com>
6310 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6311 (lookup_type_die_strip_naming_typedef): ... here.
6312 (get_context_die): Use it.
6313 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6314 the anonymous struct named by the naming typedef.
6316 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
6319 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6320 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6322 2011-03-16 Jeff Law <law@redhat.com>
6324 * tree-vrp.c (identify_jump_threads): Slightly simplify type
6325 check for operands of conditional. Allow type to be a pointer.
6327 2011-03-16 Richard Guenther <rguenther@suse.de>
6329 PR tree-optimization/48149
6330 * fold-const.c (fold_binary_loc): Fold
6331 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6333 2011-03-16 Richard Guenther <rguenther@suse.de>
6335 PR tree-optimization/26134
6336 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6337 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6338 (non_rewritable_mem_ref_base): Handle complex type component
6339 accesses, constrain offsets for vector and complex extracts
6342 2011-03-16 Richard Guenther <rguenther@suse.de>
6344 PR tree-optimization/48146
6345 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6346 operands avoiding the need for renaming.
6348 2011-03-16 Richard Guenther <rguenther@suse.de>
6350 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6351 constant folding. Move MEM_REF canonicalization first.
6352 Rely on fold_const_aggregate_ref for initializer folding.
6353 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6355 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6358 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6359 arg0/arg1 or their arguments are always fold converted to matching
6362 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6365 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6368 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6369 Handle in-tree gold.
6370 (ld_vers): Extract binutils version for gold.
6371 (gcc_cv_ld_hidden): Handle gold here.
6372 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6373 * configure: Regenerate.
6374 * config.in: Regenerate.
6375 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6376 -fuse-linker-plugin otherwise.
6377 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6378 (LINK_COMMAND_SPEC): Use it.
6379 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6381 2011-03-16 Jakub Jelinek <jakub@redhat.com>
6383 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6384 * calls.c: Remove debug.h include.
6385 (emit_call_1): Don't call virtual_call_token debug hook.
6386 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6387 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6388 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6389 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6390 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6391 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6392 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6393 dwarf2out_virtual_call): Remove.
6394 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6395 copy_call_info and virtual_call hooks.
6396 (dwarf2out_init): Don't initialize vcall_insn_table,
6397 debug_dcall_section and debug_vcall_section.
6398 (prune_unused_types): Don't mark nodes from dcall_table.
6399 (dwarf2out_finish): Don't output dcall or vcall tables.
6400 * final.c (final_scan_insn): Don't call direct_call or
6401 virtual_call debug hooks.
6402 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6403 virtual_call_token, copy_call_info and virtual_call hooks.
6404 (debug_nothing_uid): Remove prototype.
6405 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6406 copy_call_info and virtual_call hooks.
6407 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6408 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6409 * debug.c (do_nothing_debug_hooks): Likewise.
6410 (debug_nothing_uid): Remove.
6411 * doc/invoke.texi (-fenable-icf-debug): Remove.
6412 * common.opt (-fenable-icf-debug): Likewise.
6414 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6415 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6416 call's MEM. Handle functions returning aggregate through a hidden
6417 first pointer. For virtual calls add clobbered pc to call arguments
6419 * dwarf2out.c (gen_subprogram_die): Emit
6420 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6424 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6425 * rtl.h (ENTRY_VALUE_EXP): Define.
6426 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6427 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6428 * print-rtl.c (print_rtx): Likewise.
6429 * gengtype.c (adjust_field_rtx_def): Likewise.
6430 * var-tracking.c (vt_add_function_parameter): Adjust
6431 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6432 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6433 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6434 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6435 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6437 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6438 Call var_location debug hook even on CALL_INSNs.
6439 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6440 * rtl.def (ENTRY_VALUE): New.
6441 * dwarf2out.c: Include cfglayout.h.
6442 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6443 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6444 (struct call_arg_loc_node): New type.
6445 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6446 tail_call_site_count): New variables.
6447 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6448 DW_TAG_GNU_call_site_parameter.
6449 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6450 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6451 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6452 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6453 and DW_AT_GNU_all_source_call_sites.
6454 (mem_loc_descriptor): Handle ENTRY_VALUE.
6455 (add_src_coords_attributes): Don't add enything if
6456 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6457 (dwarf2out_abstract_function): Save and clear call_arg_location,
6458 call_site_count and tail_call_site_count around dwarf2out_decl call.
6459 (gen_call_site_die): New function.
6460 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6461 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6462 (dwarf2out_function_decl): Clear call_arg_locations,
6463 call_arg_loc_last, set call_site_count and tail_call_site_count
6464 to -1 and free block_map.
6465 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6466 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6467 followed by any real instructions.
6468 (dwarf2out_begin_function): Set call_site_count and
6469 tail_call_site_count to 0.
6470 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6471 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6472 attempt to force a DIE for it and worst case remove the attribute.
6473 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6474 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6476 * var-tracking.c: Include tm_p.h.
6477 (vt_stack_adjustments): For calls call note_register_arguments.
6478 (argument_reg_set): New variable.
6479 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6480 ensure the VALUE is resolved.
6481 (call_arguments): New variable.
6482 (prepare_call_arguments): New function.
6483 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6484 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6485 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6486 always use the best expression.
6487 (vt_expand_loc): Add ignore_cur_loc argument.
6488 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6489 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6490 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6492 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6493 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6494 argument. Don't call cselib_preserve_only_values and
6496 (note_register_arguments): New function.
6497 (vt_initialize): Compute argument_reg_set. Call
6498 vt_add_function_parameters before processing basic blocks instead of
6499 afterwards. For calls call prepare_call_arguments before calling
6500 cselib_process_insn.
6501 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6502 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6503 (var-tracking.o): Depend on $(TM_P_H).
6504 * cfglayout.h (insn_scope): New prototype.
6505 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6506 * cfglayout.c (insn_scope): No longer static.
6507 * insn-notes.def (CALL_ARG_LOCATION): New.
6508 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6509 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6510 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6511 nothing for DECL_EXTERNAL BLOCK_VARS.
6513 2011-03-16 Alan Modra <amodra@gmail.com>
6516 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6517 create invalid offset address for vsx splat insn.
6518 * config/rs6000/predicates.md (splat_input_operand): New.
6519 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6521 2011-03-15 Xinliang David Li <davidxl@google.com>
6524 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6525 (normalize_preds): New function.
6526 (is_use_properly_guarded): Normalize def predicates.
6528 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6531 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6532 in the output template.
6534 2011-03-15 Richard Guenther <rguenther@suse.de>
6537 * tree-pretty-print.c (dump_function_declaration): Properly
6538 dump unprototyped and varargs function types.
6540 2011-03-15 Richard Guenther <rguenther@suse.de>
6542 PR tree-optimization/13954
6543 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6546 2011-03-15 Richard Guenther <rguenther@suse.de>
6548 PR tree-optimization/48037
6549 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6550 selects into BIT_FIELD_REFs.
6551 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6554 2011-03-15 Jakub Jelinek <jakub@redhat.com>
6556 PR tree-optimization/48129
6557 * builtins.c (fold_builtin_snprintf): Convert to type of
6558 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6559 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6561 2011-03-15 Richard Guenther <rguenther@suse.de>
6563 PR tree-optimization/41490
6564 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6565 value but with VUSE.
6566 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6568 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6569 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6570 * tree-tailcall.c (find_tail_calls): Ignore returns.
6572 2011-03-15 Richard Guenther <rguenther@suse.de>
6575 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6576 or variable-indexed array accesses when in gimple form.
6578 2011-03-15 Richard Guenther <rguenther@suse.de>
6580 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6582 2011-03-15 Alan Modra <amodra@gmail.com>
6585 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6586 presume symbol_refs without a symbol_ref_decl are suitably
6587 aligned, nor other trees we may see here. Handle anchor symbols.
6588 (legitimate_constant_pool_address_p): Comment. Add mode param.
6589 Check cmodel=medium addresses. Adjust all calls.
6590 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6591 creating cmodel=medium optimized access to locals.
6592 * config/rs6000/constraints.md (R): Pass QImode to
6593 legitimate_constant_pool_address_p.
6594 * config/rs6000/predicates.md (input_operand): Pass mode to
6595 legitimate_constant_pool_address_p.
6596 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6599 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6602 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6603 64-bit constants being loaded into registers other than GPRs such
6604 as loading 0 into a VSX register.
6606 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6608 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6610 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6613 * builtins.c (fold_builtin_snprintf): New function.
6614 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6615 (fold_builtin_4): Likewise.
6618 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6619 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6620 and C - X == X also strip nops from +/-/p+ operand.
6621 When optimizing -X == C, fold C to arg0's type.
6624 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6625 emit it as add_AT_int instead of add_AT_unsigned.
6627 2011-03-14 Tom Tromey <tromey@redhat.com>
6629 * unwind-dw2.c: Include sys/sdt.h if it exists.
6630 (_Unwind_DebugHook): Use STAP_PROBE2.
6631 * config.in, configure: Rebuild.
6632 * configure.ac: Check for sys/sdt.h.
6634 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
6636 * config/i386/i386.md (ROUND_FLOOR): New constant.
6637 (ROUND_CEIL): Ditto.
6638 (ROUND_TRUNC): Ditto.
6639 (ROUND_MXCSR): Ditto.
6640 (ROUND_NO_EXC): Ditto.
6641 (rint<mode>2): Use new defines instead of numerical constants.
6642 (floor<mode>2): Ditto.
6643 (ceil<mode>2): Ditto.
6644 (btrunc<mode>2): Ditto.
6645 * config/i386/i386-builtin-types.def: Define ROUND function type
6647 * config/i386/i386.c (enum ix86_builtins): Add
6648 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6649 (struct builtin_description): Add
6650 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6651 (ix86_expand_sse_round): New static function.
6652 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6654 (ix86_builtin_vectorized_function): Handle
6655 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6657 2011-03-14 Tom Tromey <tromey@redhat.com>
6659 * c-parser.c (c_parser_asm_string_literal): Clear
6660 warn_overlength_strings.
6662 2011-03-14 Tom Tromey <tromey@redhat.com>
6664 * c-parser.c (disable_extension_diagnostics): Save
6665 warn_overlength_strings.
6666 (restore_extension_diagnostics): Restore warn_overlength_strings.
6668 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6670 * BASE-VER: Change to 4.7.0.
6672 2011-03-14 Richard Guenther <rguenther@suse.de>
6675 * tree.c (build_vector_from_val): Adjust assert to requirements
6678 2011-03-14 Jakub Jelinek <jakub@redhat.com>
6681 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6683 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
6685 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6686 terms of target_flags_explicit. Adjust copyright year.
6688 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6689 * config/rs6000/t-freebsd: New file. Add override for
6692 2011-03-13 Chris Demetriou <cgd@google.com>
6694 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6695 (-fno-diagnostics-show-option): this, to reflect current default.
6696 (-Werror=): Update text about -fno-diagnostics-show-option.
6698 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
6701 * config/rs6000/predicates.md (easy_vector_constant_add_self,
6702 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6703 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6704 mode is not V2DImode or V2DFmode.
6705 (vspltis_constant): Do not handle V2DImode and V2DFmode.
6706 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6707 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6709 (movdi_internal64): Likewise.
6711 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
6713 PR tree-optimization/47127
6714 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6716 (set_cloog_options): Same.
6717 (scop_to_clast): Same.
6718 (print_clast_stmt): Do not call cloog_state_malloc and
6720 (print_generated_program): Same.
6722 * graphite-clast-to-gimple.h (cloog_state): Declared.
6723 (scop_to_clast): Adjust declaration.
6724 * graphite.c (cloog_state): Defined here.
6725 (graphite_initialize): Call cloog_state_malloc.
6726 (graphite_finalize): Call cloog_state_free.
6728 2011-03-11 Jason Merrill <jason@redhat.com>
6730 * attribs.c (lookup_attribute_spec): Take const_tree.
6733 2011-03-11 Joseph Myers <joseph@codesourcery.com>
6735 * config/sparc/sparc.c (sparc_option_override): Use
6736 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6738 2011-03-11 Richard Guenther <rguenther@suse.de>
6740 PR tree-optimization/48067
6741 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6742 multiplication result will be only used once on the target
6745 2011-03-11 Richard Guenther <rguenther@suse.de>
6747 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6749 2011-03-11 Richard Guenther <rguenther@suse.de>
6752 * tree.c (find_decls_types_r): Do not walk types only reachable
6753 from IDENTIFIER_NODEs.
6755 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6758 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6759 all vnode->force_output nodes as needed.
6761 2011-03-11 Jason Merrill <jason@redhat.com>
6764 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6765 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6767 2011-03-11 Martin Jambor <mjambor@suse.cz>
6769 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6772 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6774 PR tree-optimization/48063
6775 * ipa-inline.c (cgraph_decide_inlining): Don't try to
6776 inline functions called once if !tree_can_inline_p (node->callers).
6778 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
6780 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6782 * config/score/score3.c: Delete.
6783 * config/score/score3.h: Delete.
6784 * config/score/mul-div.S: Delete.
6785 * config/score/sfp-machine.h: Add new file.
6786 * config/score/constraints.md: Add new file.
6787 * config/score/t-score-softfp: Add new file.
6788 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6789 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6790 (score7_extra_constraint): Delete.
6791 (score7_option_override): Remove unused code.
6792 * config/score/score.c: Remove score3 and score5 define and code.
6793 * config/score/score.h: Remove score3 and score5 define and code.
6794 * config/score/score.md: Remove score3 template and unusual insn.
6795 * config/score/score.opt: Remove score3 and score5 options.
6797 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6799 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6800 when _HPUX_SOURCE is defined.
6801 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6803 2011-03-10 Jason Merrill <jason@redhat.com>
6806 * stor-layout.c (layout_type): Don't set structural equality
6807 on arrays of incomplete type.
6808 * tree.c (type_hash_eq): Handle comparing them properly.
6810 2011-03-10 Jakub Jelinek <jakub@redhat.com>
6813 * config/s390/s390.c (s390_delegitimize_address): Make sure the
6814 result mode matches original rtl mode.
6816 2011-03-10 Nick Clifton <nickc@redhat.com>
6818 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6819 (andsi3, andsi3_flags): Fix timings for three operand alternative.
6821 2011-03-09 Jakub Jelinek <jakub@redhat.com>
6823 PR rtl-optimization/47866
6824 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6825 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6826 if target wasn't scalar.
6827 * function.c (assign_stack_temp_for_type): Assert that neither
6828 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6829 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6831 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6833 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6835 * config/s390/s390-protos.h (s390_label_align): New prototype.
6836 * config/s390/s390.c (s390_label_align): New function.
6837 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6839 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6842 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6843 V2DI/V2DF constants. Only all 0's or all 1's are easy.
6844 (output_vec_const_move): Ditto.
6846 2011-03-08 Anatoly Sokolov <aesok@post.ru>
6848 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6849 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6850 * config/mips/mips.c (mips_preferred_reload_class): Make static.
6851 Change 'rclass' argument and result type to reg_class_t.
6852 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6854 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
6856 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6857 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6858 (TARGET_MEMORY_MOVE_COST): Define.
6859 (avr_register_move_cost, avr_memory_move_cost): New Functions.
6861 2011-03-08 Jakub Jelinek <jakub@redhat.com>
6864 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6867 PR tree-optimization/48022
6868 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6871 2011-03-07 Jakub Jelinek <jakub@redhat.com>
6874 * var-tracking.c (find_use_val): Return NULL for
6875 cui->sets && cui->store_p BLKmode MEMs.
6877 2011-03-07 Anatoly Sokolov <aesok@post.ru>
6879 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6881 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6882 xstormy16_print_operand_address): Remove.
6883 * config/stormy16/stormy16.c (xstormy16_print_operand,
6884 xstormy16_print_operand_address): Make static.
6885 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6887 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
6890 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6891 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6894 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
6897 * cfgloopmanip.c (fix_bb_placements): Return immediately
6898 if FROM is BASE_LOOP's header.
6900 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
6902 * gimplify.c (gimplify_function_tree): Fix building calls
6903 to __builtin_return_address.
6905 2011-03-07 Alan Modra <amodra@gmail.com>
6907 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6908 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6909 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6910 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6912 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6913 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6914 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6915 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6916 * config/rs6000/rs6000.c
6917 (rs6000_elf_end_indicate_exec_stack): Rename to..
6918 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
6919 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
6920 (rs6000_file_start): ..here.
6921 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6922 file scope variables.
6923 (call_ABI_of_interest): New function.
6924 (init_cumulative_args): Set above vars when function return value
6925 is a float, vector, or small struct.
6926 (rs6000_function_arg_advance_1): Likewise for function args.
6927 (rs6000_va_start): Set rs6000_passes_float if variable arg function
6928 references float args.
6930 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
6932 * doc/cfg.texi: Remove "See" before @ref.
6933 * doc/invoke.texi: Likewise.
6935 2011-03-05 Jason Merrill <jason@redhat.com>
6937 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6939 2011-03-05 Anthony Green <green@moxielogic.com>
6941 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6943 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
6945 PR rtl-optimization/47899
6946 * cfgloopmanip.c (fix_bb_placements): Fix first argument
6947 to flow_loop_nested_p when moving the loop upward.
6949 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
6952 * arm.md (movhi_insn_arch4): Accept any immediate constant.
6954 2011-03-05 Jakub Jelinek <jakub@redhat.com>
6956 PR tree-optimization/47967
6957 * ipa-cp.c (build_const_val): Return NULL instead of creating
6958 VIEW_CONVERT_EXPR for mismatching sizes.
6959 (ipcp_create_replace_map): Return NULL if build_const_val failed.
6960 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6961 give up on versioning.
6963 2011-03-05 Alan Modra <amodra@gmail.com>
6966 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6967 full cmodel medium/large lo_sum + high addresses.
6969 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6971 * config/s390/s390.c (s390_decompose_address): Reject non-literal
6972 pool references in UNSPEC_LTREL_OFFSET.
6974 2011-03-04 Jan Hubicka <jh@suse.cz>
6977 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6978 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6979 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6981 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6982 cgraph_add_thunk): Add node pointers.
6983 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6984 associated to right node.
6985 (input_node): Update use of cgraph_same_body_alias
6986 and cgraph_add_thunk.
6988 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
6990 * config/i386/i386.opt (mprefer-avx128): New flag.
6991 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6992 modes when the flag -mprefer-avx128 is on.
6994 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
6996 * dwarf2out.c (compare_loc_operands): Fix address handling.
6998 2011-03-04 Alan Modra <amodra@gmail.com>
7000 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7002 2011-03-04 Richard Guenther <rguenther@suse.de>
7005 * expmed.c (extract_bit_field_1): Prefer vector modes that
7006 vec_extract patterns can handle.
7008 2011-03-04 Richard Guenther <rguenther@suse.de>
7011 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7013 2011-03-04 Richard Henderson <rth@redhat.com>
7015 * explow.c (emit_stack_save): Remove 'after' parameter.
7016 (emit_stack_restore): Likewise.
7017 * expr.h: Update to match.
7018 * builtins.c, calls.c, stmt.c: Likewise.
7019 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7020 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7021 * function.c (expand_function_end): Insert the emit_stack_save
7022 sequence before parm_birth_insn instead of after.
7024 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
7026 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7027 (ssse3_pmaddubsw128): Ditto.
7028 (ssse3_pmaddubsw): Ditto.
7030 2011-03-03 Steve Ellcey <sje@cup.hp.com>
7032 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7034 2011-03-03 Jakub Jelinek <jakub@redhat.com>
7037 * gimplify.c (omp_add_variable): Only call omp_notice_variable
7038 on TYPE_SIZE_UNIT if it is a DECL.
7041 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7042 first operand is not is_gimple_mem_ref_addr, try to fold it.
7043 If the operand still isn't is_gimple_mem_ref_addr, clear
7046 2011-03-03 Richard Guenther <rguenther@suse.de>
7049 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7051 (refs_may_alias_p_1): For release branches return true if
7052 we are confused by our input.
7054 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7056 * config/s390/s390.c (s390_function_value): Rename to ...
7057 (s390_function_and_libcall_value): ... this.
7058 (s390_function_value): New function.
7059 (s390_libcall_value): New function.
7060 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7061 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7062 target macro definitions.
7063 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7065 2011-03-02 Joseph Myers <joseph@codesourcery.com>
7067 * config/i386/freebsd64.h (CC1_SPEC): Define.
7068 * config/i386/linux64.h (CC1_SPEC): Define.
7069 * config/i386/x86-64.h (CC1_SPEC): Don't define.
7071 2011-03-02 Anatoly Sokolov <aesok@post.ru>
7073 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7075 * config/stormy16/stormy16.c: Include reload.h.
7076 (xstormy16_memory_move_cost): New function.
7077 (TARGET_MEMORY_MOVE_COST): Define.
7079 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
7081 PR rtl-optimization/47925
7082 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7083 with side effects. Remove the more-specific check for volatile asms.
7085 2011-03-02 Alan Modra <amodra@gmail.com>
7088 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7089 toc relative addresses for valid offsets.
7091 2011-03-01 Richard Guenther <rguenther@suse.de>
7093 PR tree-optimization/47890
7094 * tree-vect-loop.c (get_initial_def_for_induction): Set
7095 related stmt properly.
7097 2011-03-01 Richard Guenther <rguenther@suse.de>
7100 * lto-streamer.c (lto_record_common_node): Also register
7103 2011-03-01 Richard Guenther <rguenther@suse.de>
7106 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7107 Do not stream DECL_ABSTRACT_ORIGIN.
7108 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7109 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7110 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7111 Do not stream DECL_ABSTRACT_ORIGIN.
7112 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7113 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7115 2011-02-28 Anatoly Sokolov <aesok@post.ru>
7117 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7118 FUNCTION_VALUE_REGNO_P): Remove.
7119 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7120 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7121 Add 'outgoing' argument.
7122 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7124 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7125 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7127 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
7130 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7131 (lookup_filename): Likewise.
7132 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7134 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
7135 Jakub Jelinek <jakub@redhat.com>
7138 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7139 (assign_stack_local_1): Change last argument type to int.
7140 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7141 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
7142 don't record padding space into frame_space_list nor use those areas.
7143 (assign_stack_local): Adjust caller.
7144 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7145 of assign_stack_local, pass 0 as last argument.
7146 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7149 2011-02-28 Jakub Jelinek <jakub@redhat.com>
7152 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7153 Use target address_mode and pointer_mode hooks instead of hardcoded
7154 Pmode and ptr_mode. Handle some simple cases of extending if
7155 POINTERS_EXTEND_UNSIGNED < 0.
7156 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7157 Call convert_debug_memory_address.
7158 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7159 convert_debug_memory_address.
7162 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7163 * configure: Regenerated.
7164 * config.in: Regenerated.
7165 * varasm.c (default_function_section): Return NULL
7166 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7168 2011-02-28 Martin Jambor <mjambor@suse.cz>
7170 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7171 the description to match the printed values.
7173 2011-02-28 Richard Guenther <rguenther@suse.de>
7175 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7176 of the copied scope tree.
7178 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7180 * doc/extend.texi (Function Attributes): Avoid deeply (and
7181 wrongly) nested tables.
7183 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7186 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7187 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7188 r isn't op0 nor op1.
7190 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7192 * config/avr/avr.md: Remove magic comment for emacs.
7194 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
7197 * config/avr/avr.c (avr_option_override): Use error on bad options.
7198 (avr_help): New function.
7199 (TARGET_HELP): Define.
7201 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
7204 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7205 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7207 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7209 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7210 (ARM Options): Ditto.
7211 (i386 and x86-64 Options): Ditto.
7212 (RX Options): Ditto.
7213 (SPARC Options): Ditto.
7215 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
7217 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7218 FreeBSD 6 and later. Generally use cpu generic.
7220 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7222 * doc/cpp.texi: Update copyright years.
7224 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
7227 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7229 2011-02-25 Jon Beniston <jon@beniston.com>
7232 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7233 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7234 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7235 (lm32_block_move_inline): Add type cast to remove warning.
7236 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7237 (gen_int_relational): Move declarations to start of function.
7239 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
7241 PR tree-optimization/45470
7242 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7243 can throw internally only.
7244 * tree-vect-stmts.c (vectorizable_call): Likewise.
7246 2011-02-24 Anatoly Sokolov <aesok@post.ru>
7248 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7249 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7250 * config/stormy16/stormy16-protos.h
7251 (xstormy16_preferred_reload_class): Remove.
7252 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7253 static. Change 'rclass' argument and return type to reg_class_t.
7254 (TARGET_PREFERRED_RELOAD_CLASS,
7255 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7257 2011-02-24 Richard Guenther <rguenther@suse.de>
7259 * lto-streamer-in.c (input_bb): Do not find referenced vars
7260 in debug statements.
7262 2011-02-23 Jason Merrill <jason@redhat.com>
7264 * common.opt (fabi-version): Document v5 and v6.
7266 2011-02-23 Richard Guenther <rguenther@suse.de>
7268 PR tree-optimization/47849
7269 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7271 2011-02-23 Jie Zhang <jie@codesourcery.com>
7273 * opts-common.c (decode_cmdline_option): Print empty string
7274 argument as "" in decoded->orig_option_with_args_text.
7275 * gcc.c (execute): Print empty string argument as ""
7276 in the verbose output.
7277 (do_spec_1): Keep empty string argument.
7279 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
7281 * config.gcc: Declare score-* and crx-* obsolete.
7283 2011-02-23 Jie Zhang <jie@codesourcery.com>
7285 PR rtl-optimization/47763
7286 * web.c (web_main): Ignore naked clobber when replacing register.
7288 2011-02-22 Anatoly Sokolov <aesok@post.ru>
7290 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7293 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
7296 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7298 2011-02-22 Mike Stump <mikestump@comcast.net>
7300 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7302 * configure: Regenerate.
7304 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
7306 PR rtl-optimization/46002
7307 * ira-color.c (update_copy_costs): Change class intersection
7308 test to reg_class_contents[] test of 'hard_regno'.
7310 2011-02-21 Joseph Myers <joseph@codesourcery.com>
7312 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7314 * config/hpux11.opt (mt): Likewise.
7315 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7316 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7317 * config/vax/elf.opt (mno-asm-pic): Likewise.
7318 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7320 2011-02-21 Mike Stump <mikestump@comcast.net>
7323 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7324 tree so we can get save the type.
7325 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7326 for CFString instead of trying to use past the end of the builtins.
7327 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7328 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7329 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7330 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7331 Rename to darwin_builtin_cfstring.
7332 (darwin_init_cfstring_builtins): Return the built type.
7334 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
7337 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7338 (_mm256_insert_epi64): Use _mm_insert_epi64.
7340 2011-02-21 Anatoly Sokolov <aesok@post.ru>
7342 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7343 * config/stormy16/stormy16-protos.h
7344 (xstormy16_mode_dependent_address_p): Remove.
7345 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7346 Make static. Change return type to bool. Change argument type to
7347 const_rtx. Remove dead code.
7348 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7350 2011-02-21 Richard Guenther <rguenther@suse.de>
7353 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7354 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7355 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7357 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7358 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7360 2011-02-20 Richard Guenther <rguenther@suse.de>
7363 * tree.c (free_lang_data_in_decl): Clean builtins from
7364 the TU decl BLOCK_VARS.
7366 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
7370 * haifa-sched.c (fix_tick_ready): Skip tick computation
7373 2011-02-19 Richard Guenther <rguenther@suse.de>
7376 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7377 Remove lazy BLOCK_VARS streaming.
7378 (lto_input_ts_block_tree_pointers): Likewise.
7379 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7381 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7383 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7385 2011-02-19 Joseph Myers <joseph@codesourcery.com>
7387 * config/i386/biarch32.h, config/i386/mach.h,
7388 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7390 2011-02-19 Jakub Jelinek <jakub@redhat.com>
7393 * config/i386/i386.md (peephole2 for shift and plus): Use
7394 operands[1] original mode in the first insn.
7396 2011-02-18 Mike Stump <mikestump@comcast.net>
7398 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7400 2011-02-18 Jan Hubicka <jh@suse.cz>
7403 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7404 to zero when the function is not inlinable at all.
7406 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7408 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7409 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7410 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7411 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7412 * config/pa/t-pa64: Likewise.
7413 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7415 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7418 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7420 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7423 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7425 2011-02-18 Anatoly Sokolov <aesok@post.ru>
7427 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7428 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7429 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7430 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7431 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7432 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7433 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7434 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7435 m32r_legitimate_address_p): New functions.
7436 * config/m32r/constraints.md (constraint "S"): Don't use
7437 STORE_PREINC_PREDEC_P.
7438 (constraint "U"): Don't use LOAD_POSTINC_P.
7440 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7442 PR rtl-optimization/46178
7443 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7444 compute ira_hard_regno_cover_class[].
7446 2011-02-18 Richard Guenther <rguenther@suse.de>
7449 * lto-streamer.h (lto_global_var_decls): Declare.
7450 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7451 statics for global var processing.
7453 2011-02-18 Richard Guenther <rguenther@suse.de>
7455 PR tree-optimization/47737
7456 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7457 edge dominance check.
7459 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7462 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7463 avoid invalid rtx sharing.
7465 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7467 * doc/cpp.texi (Obsolete Features): Add background on the
7468 origin of assertions.
7470 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7472 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7474 * config/darwin.c (output_objc_section_asm_op): Added support for
7476 (is_objc_metadata): New.
7477 (darwin_objc2_section): New.
7478 (darwin_objc1_section): New.
7479 (machopic_select_section): Added support for ABI v1 and v2.
7480 (darwin_emit_objc_zeroed): New.
7481 (darwin_output_aligned_bss): Detect objc metadata and treat it
7483 (darwin_asm_output_aligned_decl_common): Same.
7484 (darwin_asm_output_aligned_decl_local): Same.
7485 * config/darwin-sections.def: Updated for ABI v1 and v2.
7486 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7487 compiling Objective-C code for the NeXT runtime, default to using
7488 ABI version 0 for 32-bit, and version 2 for 64-bit.
7490 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7492 * common.opt (optimize_fast): New Variable.
7493 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7494 instead of local variable ofast.
7496 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7498 * doc/invoke.texi (fobjc-abi-version): Documented.
7499 (fobjc-nilcheck): Documented.
7500 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7503 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7506 * common.opt (export-dynamic): New Driver option.
7507 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7509 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7511 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7513 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
7514 Jan Hubicka <jh@suse.cz>
7518 * cfgexpand.c (account_used_vars_for_block): Remove.
7519 (estimated_stack_frame_size): Use referenced vars.
7520 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7521 that were referenced in the original function. Test src_fn
7522 rather than cfun. Drop redundant get_var_ann.
7523 (setup_one_parameter): Drop redundant get_var_ann.
7524 (declare_return_variable): Likewise.
7525 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7526 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7527 * ipa-inline.c (compute_inline_parameters): Do not compute
7528 disregard_inline_limits here.
7529 (compute_inlinable_for_current, pass_inlinable): New.
7530 (pass_inline_parameters): Require PROP_referenced_vars.
7531 * cgraphunit.c (cgraph_process_new_functions): Don't run
7532 compute_inline_parameters explicitly unless function is in SSA form.
7533 (cgraph_analyze_function): Set .disregard_inline_limits.
7534 * tree-sra.c (convert_callers): Compute inliner parameters
7535 only for functions already in SSA form.
7537 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7539 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7540 -mlittle-endian-data.
7542 2011-02-17 Joseph Myers <joseph@codesourcery.com>
7544 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7545 -mno-fpu, not -fpu and -no-fpu.
7546 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7547 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7549 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
7552 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7553 input reload with PLUS RTX.
7555 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7557 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7558 of InverseVar(MDMX).
7560 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7562 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7565 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7567 * config/mn10300/mn10300.opt (mno-crt0): New.
7569 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7571 * config/m68k/uclinux.opt (static-libc): New Driver option.
7573 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7575 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7577 2011-02-16 Joseph Myers <joseph@codesourcery.com>
7579 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7580 %{muser-extend-enabled}.
7582 2011-02-16 Richard Guenther <rguenther@suse.de>
7584 PR tree-optimization/47738
7585 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7586 the TODO from tree_predictive_commoning.
7588 2011-02-15 Jeff Law <law@redhat.com>
7591 2011-01-25 Jeff Law <law@redhat.com>
7593 PR rtl-optimization/37273
7594 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7595 handle them like argument loads from stack slots. Do not double
7596 count memory for memory constants and argument loads from stack slots.
7598 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7601 * combine.c (cant_combine_insn_p): Revert the last change.
7603 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7606 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7607 mode for vector constants. Remove code that checks for TImode.
7609 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7613 * cgraph.h (compute_inline_parameters): Return void.
7614 * ipa-inline.c (compute_inline_parameters): Adjust.
7616 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7620 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7622 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7623 * ipa-inline.c (compute_inline_parameters): Adjust.
7625 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7629 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7630 Adjust all users. Pass FN to...
7631 * tree-flow-inline.h (first_referenced_var): ... this. Add
7633 * ipa-struct-reorg.c: Adjust.
7634 * tree-dfa.c: Adjust.
7635 * tree-into-ssa.c: Adjust.
7636 * tree-sra.c: Adjust.
7637 * tree-ssa-alias.c: Adjust.
7638 * tree-ssa-live.c: Adjust.
7639 * tree-ssa.c: Adjust.
7640 * tree-ssanames.c: Adjust.
7641 * tree-tailcall.c: Adjust.
7643 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
7647 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7649 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7650 * tree-flow-inline.h: Adjust.
7651 * gimple-pretty-print.c: Adjust.
7652 * tree-into-ssa.c: Adjust.
7653 * tree-ssa.c: Adjust.
7654 * cfgexpand.c: Adjust.
7656 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7658 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7659 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7660 (EXTRA_CONSTRAINT): Delete.
7661 * config/iq2000/constraints.md: New file.
7662 * config/iq2000/iq2000.md: Include it.
7663 (define_insn ""): Delete.
7664 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7665 unsupported constraint letters from patterns.
7666 (call_value, call_value_internal1): Likewise.
7667 (call_value_multiple_internal1): Likewise.
7669 2011-02-15 Nick Clifton <nickc@redhat.com>
7671 * config/mn10300/mn10300.c: Include tm-constrs.h.
7672 (struct liw_data): New data structure describing an LIW candidate
7674 (extract_bundle): Use struct liw_data. Allow small integer
7675 operands for some instructions.
7676 (check_liw_constraints): Use struct liw_data. Remove swapped
7677 parameter. Add comments describing the checks. Fix bug when
7678 assigning the source of liw1 to the source of liw2.
7679 (liw_candidate): Delete. Code moved into extract_bundle.
7680 (mn10300_bundle_liw): Use struct liw_data. Check constraints
7682 * config/mn10300/predicates.md (liw_operand): New predicate.
7683 Allows registers and small integer constants.
7684 * config/mn10300/constraints.md (O): New constraint. Accetps
7685 integers in the range -8 to +7 inclusive.
7686 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7687 for moving a small integer into a register. Give this alternative
7689 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7690 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7691 using the J,K,L and M constraints,
7692 (liw): Remove SI mode on second operands to allow for HI and QI
7694 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
7697 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7700 * combine.c (cant_combine_insn_p): Check zero/sign extended
7703 2011-02-15 Richard Guenther <rguenther@suse.de>
7705 PR tree-optimization/47743
7706 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7707 for a non-type-compatible VN lookup bail out.
7709 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7711 * config/fr30/constraints.md: New file.
7712 * config/fr30/fr30.md: Include it.
7713 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7714 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7715 (EXTRA_CONSTRAINT): Delete.
7717 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7719 * config/frv/constraints.md: New file.
7720 * config/frv/predicates.md: Include it.
7721 * config/frv/frv.c (reg_class_from_letter): Delete.
7722 (frv_option_override): Don't initialize it.
7723 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7724 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7725 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7726 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7727 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7728 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7729 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7730 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7731 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7732 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7733 (REG_CLASS_FROM_CONSTRAINT): Delete.
7735 2011-02-15 Jakub Jelinek <jakub@redhat.com>
7738 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7739 if frame size is 0 in a leaf function.
7741 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7744 * config/alpha/host-osf.c: New file.
7745 * config/alpha/x-osf: New file.
7746 * config.host (alpha*-dec-osf*): Use it.
7748 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7750 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7751 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7752 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7753 (rx_mode_dependent_address_p): ...this. Make static. Change argument
7755 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7757 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7759 * config/stormy16/constraints.md: New file.
7760 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7761 Use satisfies_constraint_Q and satisfies_constraint_R.
7762 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7764 (xstormy16_legitiamte_address_p): Declare.
7765 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7766 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7767 (EXTRA_CONSTRAINT): Delete.
7768 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7770 (xstormy16_extra_constraint_p): Delete.
7772 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
7774 PR tree-optimization/46494
7775 * loop-unroll.c (split_edge_and_insert): Adjust comment.
7776 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7777 (pass_rtl_loop_done): Add TODO_verify_flow.
7778 * fwprop.c (pass_rtl_fwprop): Likewise.
7779 * modulo-sched.c (pass_sms): Likewise.
7780 * tree-ssa-dom.c (pass_dominator): Likewise.
7781 * tree-ssa-loop-ch.c (pass_ch): Likewise.
7782 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7783 (pass_tree_loop_done): Likewise.
7784 * tree-ssa-pre.c (execute_pre): Likewise.
7785 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7786 * tree-ssa-sink.c (pass_sink_code): Likewise.
7787 * tree-vrp.c (pass_vrp): Likewise.
7789 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7791 * config/v850/constraints.md: New file.
7792 * config/v850/v850.md: Include it.
7793 * config/v850/predicates.md (reg_or_0_operand): Use
7794 satisfies_constraint_G.
7795 (special_symbolref_operand): Use satisfies_constraint_K.
7796 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7797 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7798 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7799 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7800 (EXTRA_CONSTRAINT): Delete.
7801 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7802 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7803 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7805 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7808 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7811 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7813 * config/mcore/constraints.md: New file.
7814 * config/mcore/mcore.md: Include it.
7815 * config/mcore/mcore.c (reg_class_from_letter): Delete.
7816 * config/mcore/mcore.h (reg_class_from_letter): Delete.
7817 (REG_CLASS_FROM_LETTER): Delete.
7818 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7819 insn_const_int_ok_for_constraint.
7820 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7821 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7822 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7823 (EXTRA_CONSTRAINT): Delete.
7825 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7828 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7829 (IS_SIGHANDLER): Define.
7830 (sparc64_is_sighandler): New function, split off from
7831 sparc64_fallback_frame_state.
7832 (sparc_is_sighandler): New function, split off from
7833 sparc_fallback_frame_state.
7834 (sparc64_fallback_frame_state): Merge with ...
7835 (sparc_fallback_frame_state): ... this into ...
7836 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7837 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
7838 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
7839 stack instead of hardcoded offsets.
7841 2011-02-14 Andriy Gapon <avg@freebsd.org>
7844 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7846 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7848 * configure: Regenerate.
7850 2011-02-12 Joseph Myers <joseph@codesourcery.com>
7853 * gcc.c (asm_options): Correct spec matching --target-help.
7855 2011-02-12 Martin Jambor <mjambor@suse.cz>
7857 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7858 to gimple call error.
7860 2011-02-12 Mike Stump <mikestump@comcast.net>
7862 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7863 comments in backslash regions.
7865 2011-02-12 Mike Stump <mikestump@comcast.net>
7866 Jakub Jelinek <jakub@redhat.com>
7867 Iain Sandoe <iains@gcc.gnu.org>
7870 * dwarf2out.c (output_cfa_loc): When required, apply the
7871 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7872 (output_loc_sequence): Likewise.
7873 (output_loc_operands_raw): Likewise.
7874 (output_loc_sequence_raw): Likewise.
7875 (output_cfa_loc): Likewise.
7876 (output_loc_list): Suppress register number adjustment when
7877 calling output_loc_sequence()
7878 (output_die): Likewise.
7880 2011-02-12 Anatoly Sokolov <aesok@post.ru>
7882 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7884 * config/xtensa/xtensa.c (xtensa_register_move_cost,
7885 xtensa_memory_move_cost): New functions.
7886 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7888 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
7891 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7892 in the current directory.
7893 * configure: Rebuilt.
7895 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7897 * config/darwin.c (darwin_override_options): Add a hunk missed
7898 from the commit of r168571. Trim comment line lengths and
7899 correct indents of the preceding block.
7901 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7903 * gcc.c (driver_handle_option): Concatenate the argument to -F with
7906 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7908 * common.opt (nostartfiles): New Driver option.
7910 2011-02-11 Xinliang David Li <davidxl@google.com>
7912 PR tree-optimization/47707
7913 * tree-chrec.c (convert_affine_scev): Keep type precision.
7915 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
7917 PR tree-optimization/47420
7918 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7920 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
7922 PR rtl-optimization/47614
7923 * rtl.h (check_for_inc_dec): Declare.
7924 * dse.c (check_for_inc_dec): Externalize...
7925 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7926 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7928 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7931 * gcc.c (main): Do not compile inputs if there were errors in
7933 * opts-common.c (read_cmdline_option): Check for wrong language
7934 after other error checks.
7936 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
7938 * cgraph.c: Fix comment typos.
7939 * cgraph.h: Likewise.
7940 * cgraphunit.c: Likewise.
7941 * ipa-cp.c: Likewise.
7942 * ipa-inline.c: Likewise.
7943 * ipa-prop.c: Likewise.
7944 * ipa-pure-const.c: Likewise.
7945 * ipa-ref.c: Likewise.
7946 * ipa-reference.c: Likewise.
7948 2011-02-11 Jakub Jelinek <jakub@redhat.com>
7951 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7953 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7956 * doc/sourcebuild.texi (Require Support): Document
7957 dg-require-ascii-locale.
7959 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
7961 * doc/lto.texi (Write summary): Fix missing parentheses.
7963 2011-02-10 DJ Delorie <dj@redhat.com>
7965 * config/m32c/m32c.c (m32c_option_override): Disable
7966 -fcombine-stack-adjustments until flag value tracking and compare
7967 optimization can be rewritten.
7969 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
7971 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7973 (PROCESSOR_DEFAULT64): Likewise.
7975 2011-02-10 Richard Henderson <rth@redhat.com>
7977 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7978 change from 2011-02-03.
7979 * config/rx/rx.c (flags_from_code): Likewise.
7980 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7981 is valid, n/pz otherwise.
7982 (rx_select_cc_mode): Return CCmode if Y is not zero.
7984 2011-02-10 Richard Guenther <rguenther@suse.de>
7986 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7988 2011-02-10 Richard Guenther <rguenther@suse.de>
7990 PR tree-optimization/47677
7991 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7993 2011-02-10 Jakub Jelinek <jakub@redhat.com>
7996 * combine.c (make_compound_operation): Only change shifts into
7997 multiplication for SCALAR_INT_MODE_P.
7999 2011-02-10 Jie Zhang <jie@codesourcery.com>
8003 2011-02-05 Jie Zhang <jie@codesourcery.com>
8005 * web.c (entry_register): Don't clobber the number of the
8006 first uninitialized reference in used[].
8008 2011-02-09 Richard Guenther <rguenther@suse.de>
8010 PR tree-optimization/47664
8011 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8014 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
8018 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8020 (PROCESSOR_DEFAULT64): Same.
8021 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8023 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8025 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8027 2011-02-09 Martin Jambor <mjambor@suse.cz>
8030 * tree-sra.c (struct access): New flags grp_scalar_read and
8031 grp_scalar_write. Changed description of assignment read and write
8033 (dump_access): Dump new flags, reorder all of them.
8034 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8035 to detect multiple scalar reads.
8036 (analyze_access_subtree): Use the new scalar read write flags instead
8037 of the old flags. Adjusted comments.
8039 2011-02-08 DJ Delorie <dj@redhat.com>
8042 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8045 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8047 * config/m68k/uclinux.opt: New.
8048 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8050 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8052 * config/cris/elf.opt (sim): New Driver option.
8054 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8056 * config/xtensa/elf.opt: New.
8057 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8059 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8061 * config/vax/elf.opt: New.
8062 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8064 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8066 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8068 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8070 * config/gnu-user.opt: New.
8071 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8072 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8073 *-*-uclinux*): Use gnu-user.opt.
8075 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
8077 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8078 * config/i386/gnu.h (CPP_SPEC): Likewise.
8080 2011-02-08 Ian Lance Taylor <iant@google.com>
8082 * common.opt (fcx-limited-range): Add SetByCombined flag.
8083 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8084 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8085 (fassociative-math, freciprocal-math): Likewise.
8086 (funsafe-math-optimizations): Likewise.
8087 * opth-gen.awk: Handle SetByCombined.
8088 * optc-gen.awk: Likewise.
8089 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8090 (set_unsafe_math_optimizations_flags): Likewise.
8091 * doc/options.texi (Option properties): Document SetByCombined.
8093 2011-02-08 Joseph Myers <joseph@codesourcery.com>
8095 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8096 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8097 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8098 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8099 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8101 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
8103 PR tree-optimization/46834
8104 PR tree-optimization/46994
8105 PR tree-optimization/46995
8106 * graphite-sese-to-poly.c (used_outside_reduction): New.
8107 (detect_commutative_reduction): Call used_outside_reduction.
8108 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8109 translate_scalar_reduction_to_array only when at least one
8110 loop-phi/close-phi tuple has been detected.
8112 2011-02-08 Richard Guenther <rguenther@suse.de>
8115 * tree-vect-generic.c (expand_vector_operations_1): Update
8117 (expand_vector_operations): ... not here. Cleanup EH info
8118 and the CFG if required.
8120 2011-02-08 Richard Guenther <rguenther@suse.de>
8122 PR tree-optimization/47641
8123 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8124 require type compatibility.
8126 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8128 * gimple-low.c (lower_function_body): Don't remove the location of
8129 the return statement here.
8130 (lower_gimple_return): Do it here instead but only if the return
8131 statement is actually used twice.
8133 2011-02-08 Richard Guenther <rguenther@suse.de>
8135 PR tree-optimization/47632
8136 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8137 unused up_to_stmt parameter, return whether cfg-cleanup is
8138 necessary, remove EH info properly.
8139 (forward_propagate_into_gimple_cond): Adjust caller.
8140 (forward_propagate_into_cond): Likewise.
8141 (forward_propagate_comparison): Likewise.
8142 (tree_ssa_forward_propagate_single_use_vars): Make
8143 forward_propagate_comparison case similar to the two others.
8145 2011-02-08 Nick Clifton <nickc@redhat.com>
8147 * config/mn10300/mn10300.opt (mliw): New command line option.
8148 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8149 (liw_bundling): New automaton.
8150 (liw): New attribute.
8151 (liw_op): New attribute.
8152 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8153 (movsi_internal): Add LIW attributes.
8157 (addsi3): Separate register and immediate alternatives.
8162 (lshrsi3): Likewise.
8163 (ashrsi3): Likewise.
8165 * config/mn10300/mn10300.c (liw_op_names): New
8166 (mn10300_print_operand): Handle 'W' operand descriptor.
8167 (extract_bundle): New function.
8168 (check_liw_constraints): New function.
8169 (liw_candidate): New function.
8170 (mn10300_bundle_liw): New function.
8171 (mn10300_reorg): New function.
8172 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8173 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8174 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8175 __LIW__ or __NO_LIW__.
8176 * doc/invoke.texi: Describe the -mliw command line option.
8178 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8180 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8181 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8182 pthread_mutex_unlock): Remove.
8183 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8184 * config/pa/t-pa64: Likewise.
8185 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8186 shared libc if not linking against libpthread.
8187 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8189 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
8192 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8193 on 10.6 and later to ensure that we always use the unwinder from
8194 the system. Only add -no_compact_unwind when tarteting darwin
8197 2011-02-07 Steve Ellcey <sje@cup.hp.com>
8200 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8201 (vec_interleave_lowv2sf): Ditto.
8202 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8203 (vec_extract_oddv2sf): Ditto.
8205 2011-02-07 Mike Stump <mikestump@comcast.net>
8208 Add __ieee_divdc3 entry point.
8209 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8211 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8212 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8213 * config/darwin.c (darwin_rename_builtins): Add.
8214 * config/darwin-protos.h (darwin_rename_builtins): Add.
8216 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8219 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8222 2011-02-07 Mike Stump <mikestump@comcast.net>
8224 * config/darwin.opt (mmacosx-version-min): Update default OS version.
8226 2011-02-07 Denis Chertykov <chertykov@gmail.com>
8229 * config/avr/libgcc.S (exit): Move .endfunc
8231 2011-02-07 Richard Guenther <rguenther@suse.de>
8233 PR tree-optimization/47615
8234 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8235 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8236 (run_scc_vn): Initialize it.
8237 (visit_reference_op_load): Use it.
8238 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8240 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8242 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8243 DImode trapping arithmetic libfuncs.
8245 2011-02-07 Richard Guenther <rguenther@suse.de>
8247 PR tree-optimization/47621
8248 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8250 (execute_update_addresses_taken): ... here. Make it more
8251 conservative in what we accept.
8253 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8255 * config/sparc/freebsd.h (ASM_SPEC): Define.
8256 * config/sparc/vxworks.h (ASM_SPEC): Define.
8258 2011-02-06 Joseph Myers <joseph@codesourcery.com>
8260 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8262 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
8264 * doc/invoke.texi: Remove reference to compiler internals from
8267 * reg-notes.def: Remove REG_VALUE_PROFILE.
8268 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8270 2011-02-05 Jakub Jelinek <jakub@redhat.com>
8273 * varasm.c (default_section_type_flags): If decl is NULL,
8274 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8276 2011-02-05 Jie Zhang <jie@codesourcery.com>
8279 * web.c (entry_register): Don't clobber the number of the
8280 first uninitialized reference in used[].
8282 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
8284 PR tree-optimization/46194
8285 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8286 (build_classic_dist_vector_1): Do not represent classic distance
8287 vectors when the access functions are variating in different loops.
8289 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8291 * config/mips/iris6.opt: New.
8292 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8294 2011-02-04 Richard Henderson <rth@redhat.com>
8295 Steve Ellcey <sje@cup.hp.com>
8298 * config/ia64/predicates.md (mux1_brcst_element): New.
8299 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8300 * config/ia64/ia64.c (ia64_unpack_assemble): New.
8301 (ia64_unpack_sign): New.
8302 (ia64_expand_unpack): Rewrite using new routines.
8303 (ia64_expand_widen_sum): Ditto.
8304 (ia64_expand_dot_prod_v8qi): Ditto.
8305 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8306 routines, add endian check.
8307 (pmpy2_even): Rename from pmpy2_r, add endian check.
8308 (pmpy2_odd): Rename from pmpy2_l, add endian check.
8309 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8310 (vec_widen_smult_hi_v4hi): Ditto.
8311 (vec_widen_umult_lo_v4hi): Ditto.
8312 (vec_widen_umult_hi_v4hi): Ditto.
8313 (mulv2si3): Change endian checks.
8314 (sdot_prodv4hi): Rewrite with new calls.
8315 (udot_prodv4hi): New.
8316 (vec_pack_ssat_v4hi): Add endian check.
8317 (vec_pack_usat_v4hi): Ditto.
8318 (vec_pack_ssat_v2si): Ditto.
8319 (max1_even): Rename from max1_r, add endian check.
8320 (max1_odd): Rename from max1_l, add endian check.
8321 (*mux1_rev): Format change.
8323 (*mux1_shuf): Ditto.
8325 (*mux1_brcst_v8qi): Use new predicate.
8326 (vec_extract_evenv8qi): Remove endian check.
8327 (vec_extract_oddv8qi): Ditto.
8328 (vec_interleave_lowv4hi): Format change.
8329 (vec_interleave_highv4hi): Ditto.
8330 (mix2_even): Rename from mix2_r, add endian check.
8331 (mix2_odd): Rename from mux2_l, add endian check.
8332 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8333 (vec_extract_evenodd_helper): Format change.
8334 (vec_extract_evenv4hi): Remove endian check.
8335 (vec_extract_oddv4hi): Remove endian check.
8336 (vec_interleave_lowv2si): Format change.
8337 (vec_interleave_highv2si): Format change.
8338 (vec_initv2si): Remove endian check.
8339 (vecinit_v2si): Add endian check.
8340 (reduc_splus_v2sf): Add endian check.
8341 (reduc_smax_v2sf): Ditto.
8342 (reduc_smin_v2sf): Ditto.
8343 (vec_initv2sf): Remove endian check.
8344 (fpack): Add endian check.
8345 (fswap): Add endian check.
8346 (vec_interleave_highv2sf): Add endian check.
8347 (vec_interleave_lowv2sf): Add endian check.
8348 (fmix_lr): Add endian check.
8349 (vec_setv2sf): Format change.
8350 (*vec_extractv2sf_0_be): Use shift to extract operand.
8351 (*vec_extractv2sf_1_be): New.
8352 (vec_pack_trunc_v4hi): Add endian check.
8353 (vec_pack_trunc_v2si): Format change.
8355 2011-02-04 Jakub Jelinek <jakub@redhat.com>
8358 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
8359 do bb, locus and block comparison and disallow loads if it is not set.
8360 (stmt_is_replaceable_p): New function.
8361 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8363 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8364 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8366 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8368 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8370 * config/rs6000/xilinx.opt: New.
8371 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8373 2011-02-04 Joseph Myers <joseph@codesourcery.com>
8375 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8377 2011-02-03 Anatoly Sokolov <aesok@post.ru>
8379 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8380 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8381 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8382 secondary_reload_info, xtensa_secondary_reload): Remove.
8383 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8384 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8385 (xtensa_preferred_reload_class): Make static. Change return and
8386 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8387 Use CONST_DOUBLE_P predicate.
8388 (xtensa_preferred_output_reload_class): New function.
8389 (xtensa_secondary_reload): Make static.
8391 2011-02-03 Joseph Myers <joseph@codesourcery.com>
8393 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8394 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8395 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8397 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8400 * output.h (SECTION_RELRO): Define.
8401 (SECTION_MACH_DEP): Adjust.
8402 (get_variable_section): New prototype.
8403 * varpool.c (varpool_finalize_named_section_flags): New function.
8404 (varpool_assemble_pending_decls): Call it.
8405 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8406 * cgraphunit.c (cgraph_output_in_order): Call
8407 varpool_finalize_named_section_flags.
8408 * varasm.c (get_section): Allow section flags conflicts between
8409 relro and read-only sections if the section hasn't been declared yet.
8410 Set SECTION_OVERRIDE after diagnosing section type conflict.
8411 (get_variable_section): No longer static.
8412 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8413 readonly sections that need relocations.
8414 (decl_readonly_section_1): New function.
8415 (decl_readonly_section): Use it.
8418 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
8419 Steve Ellcey <sje@cup.hp.com>
8422 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8423 if section attribute used.
8425 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8427 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8428 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8429 (darwin_init_sections): Remove assertion.
8431 2011-02-03 Nick Clifton <nickc@redhat.com>
8433 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8435 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8436 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8437 instead of "n" and "pz".
8438 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8441 2011-02-03 Jakub Jelinek <jakub@redhat.com>
8444 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8445 fma, expand FMA_EXPR as fma{,f,l} call.
8448 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8449 copy them into a unsigned char variable and pass address of it to
8450 lto_output_data_stream.
8453 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8454 around backend_init_target and lang_dependent_init_target calls.
8455 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8456 (verify_cgraph_node): Don't call set_cfun here. Use
8457 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8458 Set error_found for incorrectly represented calls to thunks.
8460 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8463 PR rtl-optimization/43494
8464 * rtl.h (for_each_inc_dec_fn): New type.
8465 (for_each_inc_dec): Declare.
8466 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8467 (for_each_inc_dec_find_inc_dec): New fn.
8468 (for_each_inc_dec_find_mem): New fn.
8469 (for_each_inc_dec): New fn.
8470 * dse.c (struct insn_size): Remove.
8471 (replace_inc_dec, replace_inc_dec_mem): Remove.
8472 (emit_inc_dec_insn_before): New fn.
8473 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8474 (canon_address): Pass mem modes to cselib_lookup.
8475 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8476 (cselib_lookup_from_insn): Likewise.
8477 (cselib_subst_to_values): Likewise.
8478 * cselib.c (find_slot_memmode): New var.
8479 (cselib_find_slot): New fn. Use it instead of
8480 htab_find_slot_with_hash everywhere.
8481 (entry_and_rtx_equal_p): Use find_slot_memmode.
8482 (autoinc_split): New fn.
8483 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8484 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8485 Deal with autoinc. Special-case recursion into MEMs.
8486 (cselib_hash_rtx): Likewise.
8487 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8488 address and MEM modes.
8489 (cselib_subst_to_values): Add memmode, pass it on.
8491 (cselib_lookup): Add memmode argument, pass it on.
8492 (cselib_lookup_from_insn): Add memmode.
8493 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8494 (struct cselib_record_autoinc_data): New.
8495 (cselib_record_autoinc_cb): New fn.
8496 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8497 mode to cselib_lookup. Reset autoinced REGs here instead of...
8498 (cselib_process_insn): ... here.
8499 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8501 (add_uses): Likewise, also to cselib_subst_to_values.
8502 (add_stores): Likewise.
8503 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8504 cselib_subst_to_values.
8505 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8506 * gcse.c (do_local_cprop): Adjusted.
8507 * postreload.c (reload_cse_simplify_set): Adjusted.
8508 (reload_cse_simplify_operands): Adjusted.
8509 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8511 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
8513 PR tree-optimization/45122
8514 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8515 unsafe assumptions when there's more than one loop exit.
8517 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8520 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8521 Document using vector double with the load/store builtins, and
8522 that the load/store builtins always use Altivec instructions.
8524 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8525 to use altivec memory instructions, even on VSX.
8526 (vector_altivec_store_<mode>): Ditto.
8528 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8531 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8532 V2DF, V2DI support to load/store overloaded builtins.
8534 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8535 altivec load/store builtins for V2DF/V2DI types.
8537 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8538 set avoid indexed addresses on power6 if -maltivec.
8539 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8540 vector_altivec_load/vector_altivec_store builtins.
8541 (altivec_expand_st_builtin): Ditto.
8542 (altivec_expand_builtin): Add VSX memory builtins.
8543 (rs6000_init_builtins): Add V2DI types to internal types.
8544 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8545 load/store builtins.
8546 (rs6000_address_for_altivec): Insure memory address is appropriate
8549 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8550 vec_vsx_ld and vec_vsx_st.
8551 (vsx_store_<mode>): Ditto.
8553 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8554 variables to hold long long types for VSX vector memory builtins.
8555 (RS6000_BTI_unsigned_long_long): Ditto.
8556 (long_long_integer_type_internal_node): Ditti.
8557 (long_long_unsigned_type_internal_node): Ditti.
8559 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8560 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8561 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8563 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8565 (vec_vsx_st): Ditto.
8567 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8569 * config/pa/pa-hpux10.opt: New.
8570 * config/hpux11.opt (pthread): New Driver option.
8571 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8572 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8574 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8576 * config/ia64/vms.opt: New.
8577 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8579 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8582 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8583 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8584 generator functions.
8585 (vsx_floatuns<VSi><mode>2): Ditto.
8586 (vsx_fix_trunc<mode><VSi>2): Ditto.
8587 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8589 2011-02-02 Joseph Myers <joseph@codesourcery.com>
8591 * config/i386/djgpp.opt (posix): New Driver option.
8593 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8595 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8596 Move to the unsupported targets list.
8598 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8600 PR rtl-optimization/47525
8601 * df-scan.c: Update copyright years.
8602 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8603 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8605 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8607 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8608 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8609 (ASM_OUTPUT_ASCII): Remove.
8610 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8612 2011-02-02 Jeff Law <law@redhat.com>
8615 * reload.c (find_reloads_address): Handle reg+d address where both
8616 components are invalid by reloading the entire address.
8618 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8619 Richard Guenther <rguenther@suse.de>
8621 PR tree-optimization/40979
8623 * passes.c (init_optimization_passes): After LIM call copy_prop
8624 and DCE to clean up.
8625 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8627 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8629 PR tree-optimization/47576
8630 PR tree-optimization/47555
8631 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8632 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8633 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8634 * tree-scalar-evolution.c (follow_ssa_edge): Use
8635 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8637 2011-02-02 Richard Guenther <rguenther@suse.de>
8639 PR tree-optimization/47566
8640 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8642 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8646 * tree-inline.c (declare_return_variable): Remove unused caller
8651 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8652 * cfgexpand.c (account_used_vars_for_block): Use them.
8653 * tree-nrv.c (tree_nrv): Likewise.
8654 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8655 (dump_scope_block): Likewise.
8656 (remove_unused_locals): Likewise.
8660 * tree-inline.c (declare_return_variable): Add result decl to
8661 local decls only once.
8662 * gimple-low.c (record_vars_into): Mark newly-created variables
8665 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
8671 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8673 (no_real_insns_p, schedule_block, set_priorities): Drop special
8674 treatment of boundary debug insns.
8675 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8676 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8677 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8678 (BOUNDARY_DEBUG_INSN_P): Likewise.
8679 (SCHEDULE_DEBUG_INSN_P): Likewise.
8680 * sched-rgn.c (init_ready_list): Drop special treatment of
8681 boundary debug insns.
8682 * final.c (rest_of_clean_state): Clear notes' BB.
8684 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8686 * config/openbsd.opt (assert=): New Driver option.
8688 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8690 * config/i386/nto.opt: New.
8691 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8693 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8695 * config/i386/netware.opt: New.
8696 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8698 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8700 * config/interix.opt (posix): New Driver option.
8702 2011-02-01 DJ Delorie <dj@redhat.com>
8704 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8706 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8709 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
8711 PR tree-optimization/47561
8712 * toplev.c (process_options): Print the Graphite flags. Add
8713 flag_loop_flatten to the list of options requiring Graphite.
8715 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8717 * config/i386/cygming.opt (posix): New Driver option.
8719 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8721 * config/arm/vxworks.opt: New.
8722 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8724 2011-02-01 Joseph Myers <joseph@codesourcery.com>
8726 * config/alpha/elf.opt: New.
8727 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8728 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8730 2011-02-01 Richard Guenther <rguenther@suse.de>
8732 PR tree-optimization/47559
8733 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8734 store-motion on references that can throw.
8736 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
8738 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8739 * tree-pass.h (TDF_CSELIB): New macro.
8740 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8741 cselib_lookup): Check for it rather than for TDF_DETAILS.
8743 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
8746 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8749 * opts.c (finish_options): Don't add x_aux_base_name if it is
8752 2011-02-01 Richard Guenther <rguenther@suse.de>
8754 PR tree-optimization/47555
8756 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
8758 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8760 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
8763 * config/lm32/t-lm32: Add multilib for all CPU options.
8765 2011-02-01 Richard Guenther <rguenther@suse.de>
8767 PR tree-optimization/47541
8768 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8769 sure to have a field at offset zero.
8771 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8773 * config/arc/arc.opt (EB, EL): New Driver options.
8775 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8777 * config/alpha/osf5.opt: New.
8778 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8780 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8782 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8784 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
8786 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8788 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8789 is an alias of -floop-interchange and that it requires the
8790 Graphite infrastructure.
8791 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8792 flag_loop_interchange based on the value of flag_tree_loop_linear.
8794 2011-01-31 Jakub Jelinek <jakub@redhat.com>
8795 Richard Guenther <rguenther@suse.de>
8797 PR tree-optimization/47538
8798 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8799 type instead of r1type, except for comparisons. For right
8800 shifts and comparisons punt if there are mismatches in
8801 sizetype vs. non-sizetype types.
8803 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8805 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8808 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8810 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8812 * configure: Regenerate.
8814 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8816 * configure.ac (gcc_cv_ld_static_option): Define.
8817 (gcc_cv_ld_dynamic_option): Define.
8818 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8820 (HAVE_LD_STATIC_DYNAMIC): Update message.
8821 (LD_STATIC_OPTION): Define.
8822 (LD_DYNAMIC_OPTION): Define.
8823 * configure: Regenerate.
8824 * config.in: Regenerate.
8825 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8826 HAVE_LD_STATIC_DYNAMIC]: Use them.
8828 2011-01-31 Nick Clifton <nickc@redhat.com>
8830 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8831 registers inside interrupt handlers if the handler is not a leaf
8834 2011-01-31 Nick Clifton <nickc@redhat.com>
8836 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8837 reg_renumber returning an INVALID_REGNUM.
8839 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8842 * doc/install.texi: Document host options discarded when cross
8843 configuring target libraries.
8845 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8848 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8851 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8853 (no_real_insns_p, schedule_block, set_priorities): Drop special
8854 treatment of boundary debug insns.
8855 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8856 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8857 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8858 (BOUNDARY_DEBUG_INSN_P): Likewise.
8859 (SCHEDULE_DEBUG_INSN_P): Likewise.
8860 * sched-rgn.c (init_ready_list): Drop special treatment of
8861 boundary debug insns.
8862 * final.c (rest_of_clean-state): Clear notes' BB.
8864 2011-01-31 Alan Modra <amodra@gmail.com>
8866 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8867 toc relative expressions as we do in print_operand_address.
8869 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
8871 * doc/extend.texi: Follow spelling conventions.
8872 * doc/invoke.texi: Fix a typo.
8874 2011-01-30 Joseph Myers <joseph@codesourcery.com>
8876 * config/hpux11.opt: New.
8877 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8878 ia64*-*-hpux*): Use hpux11.opt.
8880 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
8882 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8885 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8887 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8890 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8892 * doc/install.texi (Binaries): Remove outdated reference for
8893 Motorola 68HC11/68HC12 downloads.
8895 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8897 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8900 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8903 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8906 2011-01-28 Ahmad Sharif <asharif@google.com>
8908 * value-prof.c (check_counter): Corrected error message.
8910 2011-01-29 Jie Zhang <jie@codesourcery.com>
8912 * config/arm/arm.c (arm_legitimize_reload_address): New.
8913 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8914 arm_legitimize_reload_address.
8915 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8917 2011-01-28 Ian Lance Taylor <iant@google.com>
8919 * godump.c (go_define): Ignore macros whose definitions include
8920 two adjacent operands.
8922 2011-01-28 Jakub Jelinek <jakub@redhat.com>
8925 * varasm.c (force_const_mem): Store copy of x in desc->constant
8926 instead of x itself.
8927 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8928 itself into REG_EQUAL note.
8930 2011-01-28 Joseph Myers <joseph@codesourcery.com>
8932 * config/freebsd.opt (posix, rdynamic): New Driver options.
8934 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8936 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8938 * configure: Regenerate.
8940 2011-01-27 Joseph Myers <joseph@codesourcery.com>
8942 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8943 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8945 2011-01-27 Anatoly Sokolov <aesok@post.ru>
8947 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8948 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8949 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8950 (s390_preferred_reload_class): Make static. Change return and
8951 'rclass' argument type to reg_class_t.
8953 2011-01-27 Jan Hubicka <jh@suse.cz>
8956 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8957 (process_function_and_variable_attributes): Check defined weakrefs.
8959 2011-01-27 Martin Jambor <mjambor@suse.cz>
8961 PR tree-optimization/47228
8962 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8963 build_ref_for_offset.
8965 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8967 * config/spu/spu-elf.h (ASM_SPEC): Remove.
8969 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
8971 PR rtl-optimization/46856
8972 * postreload.c (reload_combine_recognize_const_pattern): Do not
8973 separate cc0 setter and user on cc0 targets.
8975 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
8978 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8979 passed a VOID_TYPE expression, immediately emit an error and
8980 return error_mark_node.
8982 2011-01-26 Jeff Law <law@redhat.com>
8984 PR rtl-optimization/47464
8985 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8986 rather than may_trap_p as needed.
8988 2011-01-26 DJ Delorie <dj@redhat.com>
8990 PR rtl-optimization/46878
8991 * combine.c (insn_a_feeds_b): Check for the implicit cc0
8992 setter/user dependency as well.
8994 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8996 PR rtl-optimization/44469
8997 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8998 after removing trivially dead basic blocks.
9000 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9002 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9003 * config/frv/frv.h (LINK_SPEC): Likewise.
9004 * config/i386/netware.h (LINK_SPEC): Likewise.
9005 * config/m68k/linux.h (ASM_SPEC): Likewise.
9006 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9007 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9008 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9009 * config/sparc/linux.h (ASM_SPEC): Likewise.
9010 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9011 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9013 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9015 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9016 * config/frv/frv.h (ASM_SPEC): Likewise.
9017 * config/m68k/linux.h (ASM_SPEC): Likewise.
9018 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9019 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9020 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9021 * config/sparc/linux.h (ASM_SPEC): Likewise.
9022 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9023 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9025 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9027 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9028 * config/frv/frv.h (LINK_SPEC): Likewise.
9029 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9031 2011-01-26 Joseph Myers <joseph@codesourcery.com>
9033 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9034 * config/frv/frv.h (ASM_SPEC): Likewise.
9035 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9036 * config/m68k/linux.h (ASM_SPEC): Likewise.
9037 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9038 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9039 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9040 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9041 * config/sparc/linux.h (ASM_SPEC): Likewise.
9042 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9043 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9044 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9046 2011-01-26 Steve Ellcey <sje@cup.hp.com>
9049 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9051 (vec_extract_evenodd_help): Ditto.
9052 (vec_extract_evenv4hi): Ditto.
9053 (vec_extract_oddv4hi): Ditto.
9054 (vec_interleave_lowv2si): Ditto.
9055 (vec_interleave_highv2si): Ditto.
9056 (vec_extract_evenv2si): Ditto.
9057 (vec_extract_oddv2si: Ditto.
9058 (vec_pack_trunc_v2si): Ditto.
9060 2011-01-22 Jan Hubicka <jh@suse.cz>
9063 * cgraph.h (cgraph_local_info): New field can_change_signature.
9064 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9065 signature can change.
9066 (ipcp_estimate_growth): Call sequence simplify only if calle signature
9068 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9069 (cgraph_function_versioning): We can not change signature of functions
9070 that don't allow that.
9071 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9072 (lto_input_node): Likewise.
9073 * ipa-inline.c (compute_inline_parameters): Compute
9074 local.can_change_signature.
9075 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9076 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9077 functions that can not change signature.
9078 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9079 init_cumulative_args): Do not use local calling conventions
9080 for functions that can not change signature.
9082 2011-01-22 Jan Hubicka <jh@suse.cz>
9084 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9086 2011-01-26 Richard Guenther <rguenther@suse.de>
9088 PR tree-optimization/47190
9089 * cgraphunit.c (process_common_attributes): New function.
9090 (process_function_and_variable_attributes): Use it.
9092 2011-01-26 Richard Guenther <rguenther@suse.de>
9095 * cgraphbuild.c (record_eh_tables): Record reference to personality
9098 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
9101 * sel-sched.c (moveup_expr): Don't let debug insns prevent
9102 non-debug insns from moving up.
9104 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9107 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9108 t-dlldir{,-x} fragment for build and add it to tmake_file.
9109 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9110 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9111 * config/i386/t-dlldir: New file.
9112 (SHLIB_DLLDIR): Define.
9113 * config/i386/t-dlldir-x: New file.
9114 (SHLIB_DLLDIR): Define.
9115 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9116 (SHLIB_INSTALL): Use it.
9118 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
9121 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9122 lower bound of the allowed Thumb-2 coprocessor load/store
9123 index range to -256. Add explaining comment.
9125 2011-01-25 Ian Lance Taylor <iant@google.com>
9127 * godump.c (go_define): Improve lexing of macro expansion to only
9128 accept expressions which match Go spec.
9130 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9133 * tree.c (handle_dll_attribute): Handle it.
9134 * doc/extend.texi (@item dllexport): Mention it.
9135 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9137 2011-01-25 Ian Lance Taylor <iant@google.com>
9139 PR tree-optimization/26854
9140 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9141 (decl_jump_unsafe): Move higher in file, with no other change.
9142 (bind): Set has_jump_unsafe_decl if appropriate.
9143 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9144 (check_earlier_gotos): Likewise.
9145 (c_check_switch_jump_warnings): Likewise.
9147 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
9149 * doc/invoke.texi (Warning Options): Add missing hyphen.
9150 (-fprofile-dir): Minor grammatical fixes.
9151 (-fbranch-probabilities): Likewise.
9153 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9157 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9159 (no_real_insns_p, schedule_block, set_priorities): Drop special
9160 treatment of boundary debug insns.
9161 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9162 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9163 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9164 (BOUNDARY_DEBUG_INSN_P): Likewise.
9165 (SCHEDULE_DEBUG_INSN_P): Likewise.
9166 * sched-rgn.c (init_ready_list): Drop special treatment of
9167 boundary debug insns.
9168 * final.c (rest_of_clean-state): Clear notes' BB.
9170 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9172 * Makefile.in (LAMBDA_H): Removed.
9173 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9174 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9175 lambda-trans.o, and tree-loop-linear.o.
9176 (lto-symtab.o): Remove dependence on LAMBDA_H.
9177 (tree-loop-linear.o): Remove rule.
9178 (lambda-mat.o): Same.
9179 (lambda-trans.o): Same.
9180 (lambda-code.o): Same.
9181 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9182 (tree-vect-slp.o): Same.
9183 * hwint.h (gcd): Moved here.
9184 (least_common_multiple): Same.
9185 * lambda-code.c: Removed.
9186 * lambda-mat.c: Removed.
9187 * lambda-trans.c: Removed.
9188 * lambda.h: Removed.
9189 * tree-loop-linear.c: Removed.
9190 * lto-symtab.c: Do not include lambda.h.
9191 * omega.c (gcd): Removed.
9192 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9193 * tree-data-ref.c (print_lambda_vector): Moved here.
9194 (lambda_vector_copy): Same.
9195 (lambda_matrix_copy): Same.
9196 (lambda_matrix_id): Same.
9197 (lambda_vector_first_nz): Same.
9198 (lambda_matrix_row_add): Same.
9199 (lambda_matrix_row_exchange): Same.
9200 (lambda_vector_mult_const): Same.
9201 (lambda_vector_negate): Same.
9202 (lambda_matrix_row_negate): Same.
9203 (lambda_vector_equal): Same.
9204 (lambda_matrix_right_hermite): Same.
9205 * tree-data-ref.h: Do not include lambda.h.
9206 (lambda_vector): Moved here.
9207 (lambda_matrix): Same.
9208 (dependence_level): Same.
9209 (lambda_transform_legal_p): Removed declaration.
9210 (lambda_collect_parameters): Same.
9211 (lambda_compute_access_matrices): Same.
9212 (lambda_vector_gcd): Same.
9213 (lambda_vector_new): Same.
9214 (lambda_vector_clear): Same.
9215 (lambda_vector_lexico_pos): Same.
9216 (lambda_vector_zerop): Same.
9217 (lambda_matrix_new): Same.
9218 * tree-flow.h (least_common_multiple): Removed declaration.
9219 * tree-parloops.c (lambda_trans_matrix): Moved here.
9221 (LTM_ROWSIZE): Same.
9222 (LTM_COLSIZE): Same.
9223 (LTM_DENOMINATOR): Same.
9224 (lambda_trans_matrix_new): Same.
9225 (lambda_matrix_vector_mult): Same.
9226 (lambda_transform_legal_p): Same.
9227 * tree-pass.h (pass_linear_transform): Removed declaration.
9228 * tree-ssa-loop.c (tree_linear_transform): Removed.
9229 (gate_tree_linear_transform): Removed.
9230 (pass_linear_transform): Removed.
9231 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9232 flag_loop_interchange.
9234 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9236 PR tree-optimization/47265
9237 PR tree-optimization/47443
9238 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9239 if name still has some uses.
9241 2011-01-25 Martin Jambor <mjambor@suse.cz>
9243 PR tree-optimization/47382
9244 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9245 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9247 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
9249 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9250 sjlj_except_unwind_info.
9252 2011-01-25 Richard Guenther <rguenther@suse.de>
9254 PR tree-optimization/47426
9255 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9256 visible functions results escape.
9258 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9261 * config/arm/arm.c (any_sibcall_uses_r3): New function.
9262 (arm_get_frame_offsets): Use it.
9264 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9265 Jakub Jelinek <jakub@redhat.com>
9267 PR tree-optimization/47271
9268 * tree-if-conv.c (bb_postdominates_preds): New.
9269 (if_convertible_bb_p): Call bb_postdominates_preds.
9270 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9271 (predicate_scalar_phi): Call bb_postdominates_preds.
9273 2011-01-25 Nick Clifton <nickc@redhat.com>
9275 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9276 * config/rx/rx.c (rx_function_value): Likewise.
9277 (rx_promote_function_mode): Likewise.
9278 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9279 in order to make it legitimate.
9280 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9281 make sure that the first operand is the same as the result register.
9282 (addsi3_unspec): Delete.
9283 (subdi3): Do not accept immediate operands.
9284 (subdi3_internal): Likewise.
9286 2011-01-25 Jeff Law <law@redhat.com>
9288 PR rtl-optimization/37273
9289 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9290 handle them like argument loads from stack slots. Do not double
9291 count memory for memory constants and argument loads from stack slots.
9293 2011-01-25 Jakub Jelinek <jakub@redhat.com>
9295 PR tree-optimization/47427
9296 PR tree-optimization/47428
9297 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9298 coalesce if the new root var would be TREE_READONLY.
9300 2011-01-25 Richard Guenther <rguenther@suse.de>
9303 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9304 correct type for TBAA.
9306 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9308 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9309 (close_phi_written_to_memory): Call for_each_index with
9310 dr_indices_valid_in_loop.
9312 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9314 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9315 when it is initialized.
9317 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9319 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9320 call to graphite_find_data_references_in_stmt.
9321 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9322 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
9323 call to graphite_find_data_references_in_stmt.
9324 (analyze_drs_in_stmts): Same.
9325 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9326 in which the scalar analysis of indices is performed.
9327 (create_data_ref): Same. Update call to dr_analyze_indices.
9328 (find_data_references_in_stmt): Update call to create_data_ref.
9329 (graphite_find_data_references_in_stmt): Same.
9330 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9332 (create_data_ref): Same.
9333 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9334 call to create_data_ref.
9336 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9338 * graphite-sese-to-poly.c (build_poly_scop): Move
9339 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9341 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9343 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9344 VAR_DECL, PARM_DECL, and RESULT_DECL.
9346 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9348 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9350 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9351 that have already been marked as PBB_IS_REDUCTION.
9353 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9355 * graphite-scop-detection.c (same_close_phi_node): New.
9356 (remove_duplicate_close_phi): New.
9357 (make_close_phi_nodes_unique): New.
9358 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9360 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9362 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9363 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9364 of both data references to be the same.
9366 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9368 * graphite-dependences.c (build_lexicographical_constraint): Remove
9370 (build_lexicographical_constraint): Adjust call to
9371 ppl_powerset_is_empty.
9372 (dependence_polyhedron): Same.
9373 (graphite_legal_transform_dr): Same.
9374 (graphite_carried_dependence_level_k): Same.
9375 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9377 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9379 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9381 * graphite-sese-to-poly.c
9382 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9383 (close_phi_written_to_memory): New.
9384 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9387 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9389 * doc/install.texi: Update the expected version number of PPL to 0.11.
9390 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9391 #if PPL_VERSION_MINOR < 11.
9393 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9395 * graphite-dependences.c: Include graphite-cloog-util.h.
9396 (new_poly_ddr): Inlined into dependence_polyhedron.
9397 (free_poly_ddr): Moved close by new_poly_ddr.
9398 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9399 Early return NULL when ppl_powerset_is_empty returns true.
9400 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9401 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9402 (graphite_legal_transform_dr): Call new_poly_ddr.
9403 (graphite_carried_dependence_level_k): Same.
9404 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9405 (dot_transformed_deps_stmt_1): Removed.
9406 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9407 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9408 (dot_deps_1): Call dot_deps_2.
9409 * Makefile.in (graphite-dependences.o): Add missing dependence on
9410 graphite-cloog-util.h.
9412 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9414 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9415 (build_lexicographical_constraint): Same.
9416 (dependence_polyhedron_1): Same.
9417 (graphite_legal_transform_dr): Same.
9418 (graphite_carried_dependence_level_k): Same.
9419 * graphite-ppl.c (ppl_powerset_is_empty): New.
9420 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9421 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9423 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9425 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9426 the "a followed by b" relation and document it.
9428 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9430 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9431 iteration when the bag of constraints is empty.
9433 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9435 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9439 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9440 nest and two loop depths as parameters.
9441 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9442 lst_perfect_nestify.
9444 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9446 * graphite-dependences.c (print_pddr): Call
9447 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9449 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9451 * graphite-ppl.c (debug_gmp_value): New.
9452 * graphite-ppl.h (debug_gmp_value): Declared.
9454 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9456 * doc/install.texi: Document availability of cloog-0.16.
9458 2011-01-25 Vladimir Kargov <kargov@gmail.com>
9460 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9461 invalid postdominance info.
9463 2011-01-24 Jan Hubicka <jh@suse.cz>
9466 * doc/extend.texi (weak pragma): Drop claim that it must
9467 appear before definition.
9468 * varasm.c (merge_weak, declare_weak): Only sanity check
9469 that DECL is not output at a time it is declared weak.
9471 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9473 * machmode.def: Fixed comments.
9475 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
9477 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9479 2011-01-24 Paul Koning <ni1d@arrl.net>
9481 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9484 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9487 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9488 (block_info): Add scanned and prev.
9489 (move_or_delete_vzeroupper_2): Return if the basic block
9490 has been scanned and the upper 128bit state is unchanged
9492 (move_or_delete_vzeroupper_1): Return true if the exit
9494 (move_or_delete_vzeroupper): Visit basic blocks using the
9495 work-list based algorithm based on vt_find_locations in
9498 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9500 2011-01-24 Nick Clifton <nickc@redhat.com>
9502 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9503 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9504 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9505 then define __v850e1__.
9506 * doc/invoke.texi: Document -mv850es.
9508 2011-01-24 Richard Henderson <rth@redhat.com>
9510 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9511 compound unordered comparisons.
9512 * config/rx/rx.c (rx_split_fp_compare): Remove.
9513 * config/rx/rx-protos.h: Update.
9514 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9515 (cbranchsf4): Don't call rx_split_fp_compare.
9516 (*cbranchsf4): Use rx_split_cbranch.
9517 (*cmpsf): Don't accept "i" constraint.
9518 (*conditional_branch): Only valid after reload.
9519 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9521 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9524 * config/rs6000/altivec.md (vector constant splitters): Add
9525 support for creating vector single precision constants if -mvsx is
9526 used and we would create the constant using Altivec primitives.
9528 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9529 Richard Sandiford <rdsandiford@googlemail.com>
9531 PR rtl-optimization/47166
9532 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9533 mechanism for PRE_MODIFY and POST_MODIFY.
9534 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9537 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9539 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9541 2011-01-22 Jan Hubicka <jh@suse.cz>
9544 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9546 2011-01-22 Jan Hubicka <jh@suse.cz>
9548 PR tree-optimization/43884
9550 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9551 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9553 2011-01-22 Anatoly Sokolov <aesok@post.ru>
9555 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9556 * config/s390/s390.c (s390_register_move_cost,
9557 s390_memory_move_cost): New.
9558 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9560 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9563 * except.c (sjlj_assign_call_site_values): Move setting the
9564 crtl->uses_eh_lsda flag to ...
9565 (sjlj_mark_call_sites): ... here.
9566 (sjlj_emit_function_enter): Support NULL dispatch label.
9567 (sjlj_build_landing_pads): In a function with no landing pads
9568 that still has must-not-throw regions, generate code to register
9569 a personality function with empty LSDA.
9571 2011-01-21 Richard Henderson <rth@redhat.com>
9573 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9575 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9577 * compare-elim.c: New file.
9578 * Makefile.in (OBJS-common): Add it.
9579 (compare-elim.o): New.
9580 * common.opt (fcompare-elim): New.
9581 * opts.c (default_options_table): Add OPT_fcompare_elim.
9582 * tree-pass.h (pass_compare_elim_after_reload): New.
9583 * passes.c (init_optimization_passes): Add it.
9584 * recog.h: Protect against re-inclusion.
9585 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9586 * doc/invoke.texi (-fcompare-elim): Document it.
9587 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9588 * doc/tm.texi: Rebuild.
9590 2011-01-22 Nick Clifton <nickc@redhat.com>
9592 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9593 rx_split_fp_compare.
9595 2011-01-22 Nick Clifton <nickc@redhat.com>
9597 * config/rx/rx.md (UNSPEC_CONST): New.
9598 (deallocate_and_return): Wrap the amount popped off the stack in
9599 an UNSPEC_CONST in order to stop it being rejected by
9600 -mmax-constant-size.
9601 (pop_and_return): Add a "(return)" rtx.
9602 (call): Drop the immediate operand.
9603 (call_internal): Likewise.
9604 (call_value): Likewise.
9605 (call_value_internal): Likewise.
9606 (sibcall_internal): Likewise.
9607 (sibcall_value_internal): Likewise.
9608 (sibcall): Likewise. Generate an explicit call using
9610 (sibcall_value): Likewise.
9611 (mov<>): FAIL if a constant operand is not legitimate.
9612 (addsi3_unpsec): New pattern.
9614 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9615 (ok_for_max_constant): New function.
9616 (gen_safe_add): New function.
9617 (rx_expand_prologue): Use gen_safe_add.
9618 (rx_expand_epilogue): Likewise.
9619 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9622 2011-01-21 Jeff Law <law@redhat.com>
9624 PR tree-optimization/47053
9625 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9626 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9627 statements are deleted.
9628 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9629 is nonempty, then purge dead edges and cleanup the CFG.
9631 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9635 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9637 * tree-dfa.c (create_var_ann): Mark variable as used.
9639 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9642 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9643 notes from other section in hot/cold partitioning even if
9644 last_action is -3. Increment call_site_base.
9646 PR rtl-optimization/47366
9647 * fwprop.c (forward_propagate_into): Return bool. If
9648 any changes are made, -fnon-call-exceptions is used and
9649 REG_EH_REGION note is present, call purge_dead_edges
9650 and return true if it purged anything.
9651 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9652 any EH edges were purged.
9654 2011-01-21 Jeff Law <law@redhat.com>
9656 PR rtl-optimization/41619
9657 * caller-save.c (setup_save_areas): Break out code to determine
9658 which hard regs are live across calls by examining the reload chains
9659 so that it is always used.
9660 Eliminate code which checked REG_N_CALLS_CROSSED.
9662 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9664 PR tree-optimization/47355
9665 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9666 NOP has non-debug uses beyond PHIs in new_bb.
9668 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9671 * cfgexpand.c (account_used_vars_for_block): Only account vars
9672 that are annotated as used.
9673 (estimated_stack_frame_size): Don't set TREE_USED.
9674 * tree-dfa.c (create_var_ann): Mark variable as used.
9676 2011-01-21 Richard Guenther <rguenther@suse.de>
9679 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9681 2011-01-21 Richard Guenther <rguenther@suse.de>
9683 PR tree-optimization/47365
9684 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9685 (vn_reference_lookup_pieces): Adjust.
9686 (vn_reference_lookup): Likewise.
9687 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9688 (vn_reference_lookup_3): Only look through kills if in
9689 VN_WALKREWRITE mode.
9690 (vn_reference_lookup_pieces): Adjust.
9691 (vn_reference_lookup): Likewise.
9692 (visit_reference_op_load): Likewise.
9693 (visit_reference_op_store): Likewise.
9694 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9695 (compute_avail): Likewise.
9696 (eliminate): Likewise.
9698 2011-01-21 Jakub Jelinek <jakub@redhat.com>
9700 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9701 DECL_IGNORED_P non-reg vars if they are used.
9703 PR tree-optimization/47391
9704 * varpool.c (const_value_known_p): Return false if
9707 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
9710 * config/i386/i386.c (ix86_local_alignment): Handle
9711 case for va_list_type_node is nil.
9712 (ix86_canonical_va_list_type): Likewise.
9714 2011-01-21 Alan Modra <amodra@gmail.com>
9716 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9717 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9719 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9721 * config/arm/arm.md (define_attr type): Rename f_load
9722 and f_store to f_fpa_load and f_fpa_store. Update.
9723 (write_conflict): Deal with rename fallout.
9724 (*push_fp_multi): Likewise.
9725 * config/arm/fpa.md (f_load): Use f_fpa_load.
9726 (f_store): Use f_fpa_store.
9727 (*movsf_fpa): Likewise.
9728 (*movdf_fpa): Likewise.
9729 (*movxf_fpa): Likewise.
9730 (*thumb2_movsf_fpa): Likewise.
9731 (*thumb2_movdf_fpa): Likewise.
9732 (*thumb2_movxf_fpa): Likewise.
9733 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9734 f_loadd and f_stored.
9735 (*thumb2_movdi_vfp): Likewise.
9736 (*thumb2_movsf_vfp): Fix attribute to f_loads.
9737 (*thumb2_movsi_vfp): Likewise.
9738 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9739 Use f_loads instead of f_load.
9740 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9742 2011-01-20 Anatoly Sokolov <aesok@post.ru>
9744 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9745 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9746 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9747 (xtensa_mode_dependent_address_p): New function.
9748 (constantpool_address_p): Make static. Change return type to bool.
9749 Change argument type to const_rtx. Use CONST_INT_P predicate.
9751 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
9754 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9756 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9759 * cfgexpand.c (expand_debug_expr): Instead of generating
9760 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9763 2011-01-20 Richard Guenther <rguenther@suse.de>
9766 * tree-inline.c (remap_gimple_op_r): Recurse manually for
9767 the pointer operand of MEM_REFs.
9769 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9771 PR tree-optimization/46130
9772 * ipa-split.c (consider_split): If return_bb contains non-virtual
9773 PHIs other than for retval or if split_function would not adjust it,
9776 2011-01-20 Richard Guenther <rguenther@suse.de>
9778 PR tree-optimization/47167
9779 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9780 Revert previous change, only avoid enumeral type changes.
9782 2011-01-19 Mike Stump <mikestump@comcast.net>
9784 * doc/tm.texi.in (BRANCH_COST): Englishify.
9785 * doc/tm.texi (BRANCH_COST): Likewise.
9787 2011-01-19 Dodji Seketeli <dodji@redhat.com>
9790 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9791 (gen_scheduled_generic_parms_dies): New functions.
9792 (gen_struct_or_union_type_die): Schedule template parameters DIEs
9793 generation for the end of CU compilation.
9794 (dwarf2out_finish): Generate template parameters DIEs here.
9796 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9799 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9800 debug bind stmt on merge edges.
9802 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9806 * function.c (instantiate_expr): Instantiate incoming rtl of
9807 implicit arguments, and recurse on VALUE_EXPRs.
9808 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9809 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9811 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9813 * c-parser.c (c_parser_for_statement): Initialize
9814 collection_expression.
9816 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9818 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9820 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9822 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9823 (LINK_SHLIB_SPEC): Don't use %(link_path).
9824 (SUBTARGET_EXTRA_SPECS): Remove link_path.
9826 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9828 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9829 (NO_SHARED_LIB_SUPPORT): Remove.
9830 (LINK_SHLIB_SPEC): Remove one conditional definition.
9832 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9834 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9836 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9837 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9838 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9839 %{call_shared} and conditionals on these options not being passed.
9840 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9843 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9845 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9848 * ipa-split.c: Spelling fixes.
9850 2011-01-19 Richard Henderson <rth@redhat.com>
9852 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9853 (*mulsi3): Likewise.
9855 * longlong.h [__mn10300__] (count_leading_zeros): New.
9856 [__mn10300__] (umul_ppmm, smul_ppmm): New.
9857 [__mn10300__] (add_ssaaaa, subddmmss): New.
9858 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9859 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9861 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9863 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9865 2011-01-19 Richard Henderson <rth@redhat.com>
9867 * config/mn10300/mn10300.md (addsi3_flags): New.
9868 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9869 (subsi3_flags, subc_internal, subdi3): New.
9870 (subdi3_internal, *subdi3_degenerate): New.
9871 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9873 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9874 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9875 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
9876 * config/mn10300/mn10300-protos.h: Update.
9877 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9878 (return_ret): Likewise. Rename from return_internal_regs.
9879 (return_internal): Remove.
9881 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9882 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9883 (mn10300_legitimate_constant_p): Likewise.
9884 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9885 (mn10300_frame_size): New.
9886 (mn10300_expand_prologue): Use it.
9887 (mn10300_expand_epilogue): Likewise.
9888 (mn10300_initial_offset): Likewise.
9889 * config/mn10300/mn10300-protos.h: Update.
9890 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9891 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9892 (prologue, epilogue, return_internal): Tidy output code.
9893 (mn10300_store_multiple_operation, return): Likewise.
9894 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9895 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9896 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9897 (load_pic, am33_load_pic): New.
9898 (mn10300_load_pic0, mn10300_load_pic1): New.
9900 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9901 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9902 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9903 (cc_flags_for_mode, cc_flags_for_code): New.
9904 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9905 overflow flag is not valid. Validate that the flags we need
9906 for the comparison are valid.
9907 (mn10300_output_cmp): Remove.
9908 (mn10300_output_add): New.
9909 (mn10300_select_cc_mode): Use cc_flags_for_code.
9910 (mn10300_split_cbranch): New.
9911 (mn10300_match_ccmode): New.
9912 (mn10300_split_and_operand_count): New.
9913 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9915 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9916 (addsi3): ... here. Use mn10300_output_add.
9917 (*addsi3_flags): New.
9918 (*am33_subsi3, *mn10300_subsi3): Merge...
9919 (subsi3): ... here. Use attribute isa.
9920 (*subsi3_flags): New.
9921 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
9923 (*am33_andsi3, *mn10300_andsi3): Merge...
9925 (*andsi3_flags): New.
9926 (andsi3 splitters): New.
9927 (*am33_iorsi3, *mn10300_iorsi3): Merge...
9929 (*iorsi3_flags): New.
9930 (*am33_xorsi3, *mn10300_xorsi3): Merge...
9932 (*xorsi3_flags): New.
9933 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9934 (one_cmplsi2): ... here.
9935 (*one_cmplsi2_flags): New.
9936 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
9937 instead of "dax" in constraints. Use mn10300_split_cbranch.
9938 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
9939 use matching constraints to eliminate a self-comparison.
9940 (*integer_conditional_branch): Rename from integer_conditional_branch.
9941 Use int_mode_flags to match CC_REG.
9942 (*cbranchsi4_btst, *btstsi): New.
9943 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
9944 mn10300_split_cbranch.
9945 (*am33_cmpsf): Rename from am33_cmpsf.
9946 (*float_conditional_branch): Rename from float_conditional_branch.
9947 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9948 (zero_extendqisi2): ... here.
9949 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9950 (zero_extendhisi2): ... here.
9951 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9952 (extendqisi2): ... here.
9953 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9954 (extendhisi2): ... here.
9955 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9956 (ashlsi3): ... here.
9957 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9958 (lshrsi3): ... here.
9959 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9960 (ashrsi3): ... here.
9961 (consecutive add peephole): Remove.
9962 * config/mn10300/predicates.md (label_ref_operand): New.
9963 (int_mode_flags): New.
9964 (CCZN_comparison_operator): New.
9966 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9967 (throughput_42_latency_43): New reservation.
9968 (mulsidi3, umulsidi3): New expanders.
9969 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
9970 the MDR register to allocation; separately allocate the low and
9971 high parts of the DImode result.
9972 (umulsidi3_internal): Similarly.
9973 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9974 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
9975 (udivsi3, umodsi3): Remove.
9976 (udivmodsi4, divmodsi4): New expanders.
9977 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
9978 (*divmodsi4): Simiarly.
9979 (ext_internal): New.
9981 * config/mn10300/constraints.md ("z"): New constraint.
9982 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9983 (FIXED_REGISTERS): Don't fix MDR.
9984 (CALL_USED_REGSITERS): Reformat nicely.
9985 (REG_ALLOC_ORDER): Add MDR.
9986 (enum regclass): Add MDR_REGS.
9987 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9988 (IRA_COVER_CLASSES): Add MDR_REGS.
9989 (REGNO_REG_CLASS): Handle MDR_REG.
9990 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9991 (mn10300_register_move_cost): Likewise.
9992 * config/mn10300/mn10300.md (MDR_REG): New.
9993 (*movsi_internal): Handle moves to/from MDR_REGS.
9995 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9997 (mn10300_secondary_reload): Tidy combination reload classes.
9998 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9999 addresses for AM33. Allow symbolic offsets for reg+imm.
10000 (mn10300_regno_in_class_p): New.
10001 (mn10300_legitimize_reload_address): New.
10002 * config/mn10300/mn10300.h (enum reg_class): Remove
10003 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10004 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
10005 SP_OR_GENERAL_REGS.
10006 (REG_CLASS_NAMES): Update to match.
10007 (REG_CLASS_CONTENTS): Likewise.
10008 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10009 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10010 (REGNO_IN_RANGE_P): Remove.
10011 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10012 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10013 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10014 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10015 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10016 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10017 (REGNO_GENERAL_P): New.
10018 (HAVE_POST_MODIFY_DISP): New.
10019 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10020 (LEGITIMIZE_RELOAD_ADDRESS): New.
10021 * config/mn10300/mn10300-protos.h: Update.
10023 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10024 DATA_REGS for AM33 stack-pointer destination.
10025 (mn10300_preferred_output_reload_class): Likewise.
10026 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10027 into a form appropriate for ...
10028 (TARGET_SECONDARY_RELOAD): New.
10029 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10030 * config/mn10300/mn10300-protos.h: Update.
10031 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10032 reload_insi; use the "A" constraint for the scratch; handle AM33
10033 moves of sp to non-address registers.
10035 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10036 (*movqi_internal): ... here.
10037 (*am33_movhi, *mn10300_movhi): Merge into...
10038 (*movhi_internal): ... here.
10039 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
10040 as the source/destination of moves from/to SP.
10041 (movsf): Only allow for AM33-2.
10042 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10043 any integer constant constraint. Only allow for AM33-2. Tidy
10044 all of the alternative outputs.
10045 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10046 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
10048 (udivsi3, umodsi3): New patterns for MN103 only.
10050 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
10052 * doc/tm.texi.in: Spell out that a lack of register class unions
10054 * doc/tm.texi: Regenerate.
10056 2011-01-19 Jakub Jelinek <jakub@redhat.com>
10058 PR rtl-optimization/47337
10059 * dce.c (check_argument_store): New function.
10060 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
10062 PR tree-optimization/47290
10063 * tree-eh.c (infinite_empty_loop_p): New function.
10064 (cleanup_empty_eh): Use it.
10066 2011-01-18 Steve Ellcey <sje@cup.hp.com>
10069 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10070 (a64_expand_widen_sum): Ditto.
10071 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10072 (vec_extract_evenodd_help): Ditto.
10073 (vec_extract_evenv4hi): Ditto.
10074 (vec_extract_oddv4hi): Ditto.
10075 (vec_extract_evenv2si): Ditto.
10076 (vec_extract_oddv2si): Ditto.
10077 (vec_extract_evenv2sf): Ditto.
10078 (vec_extract_oddv2sf): Ditto.
10079 (vec_pack_trunc_v4hi: Ditto.
10080 (vec_pack_trunc_v2si): Ditto.
10081 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10082 (vec_interleave_highv8qi): Ditto.
10084 (vec_extract_oddv8qi): Ditto.
10085 (vec_interleave_lowv4hi): Ditto.
10086 (vec_interleave_highv4hi): Ditto.
10087 (vec_interleave_lowv2si): Ditto.
10088 (vec_interleave_highv2si): Ditto.
10090 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10092 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10093 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10094 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
10095 (pa_c_mode_for_suffix): New.
10096 (TARGET_EXPAND_BUILTIN): Define.
10097 (TARGET_C_MODE_FOR_SUFFIX): Define.
10098 (pa_builtins): Define.
10099 (pa_init_builtins): Register __float128 type and init new support
10101 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10102 * config/pa/quadlib.c (_U_Qfcopysign): New.
10104 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
10106 PR middle-end/46894
10107 * explow.c (allocate_dynamic_stack_space): Do not assume more than
10108 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10111 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10113 PR tree-optimization/47179
10114 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10115 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10117 2011-01-18 Richard Guenther <rguenther@suse.de>
10119 PR rtl-optimization/47216
10120 * emit-rtl.c: Include tree-flow.h.
10121 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10122 of replicating it with different semantics.
10123 * Makefile.in (emit-rtl.o): Adjust.
10125 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10127 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10128 (cortex_a9_dp): Handle neon types correctly.
10130 2011-01-18 Jakub Jelinek <jakub@redhat.com>
10132 PR rtl-optimization/47299
10133 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10134 subtarget. Use normal multiplication if both operands are constants.
10135 * expmed.c (expand_widening_mult): Don't try to optimize constant
10136 multiplication if op0 has VOIDmode. Convert op1 constant to mode
10139 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10141 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
10142 spacing after 'e.g.', typos, comma, hyphenation.
10144 2011-01-17 Richard Henderson <rth@redhat.com>
10146 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10147 (rx_restricted_mem_operand): New.
10148 (rx_shift_operand): Use register_operand.
10149 (rx_source_operand, rx_compare_operand): Likewise.
10150 * config/rx/rx.md (addsi3_flags): New expander.
10151 (adddi3): Rewrite as expander.
10152 (adc_internal, *adc_flags, adddi3_internal): New patterns.
10153 (subsi3_flags): New expander.
10154 (subdi3): Rewrite as expander.
10155 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10157 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10158 (rx_init_builtins): Remove sat builtin.
10159 (rx_expand_builtin): Likewise.
10160 * config/rx/rx.md (ssaddsi3): New.
10161 (*sat): Rename from sat. Represent the CC_REG input.
10163 * config/rx/predicates.md (rshift_operator): New.
10164 * config/rx/rx.c (rx_expand_insv): Remove.
10165 * config/rx/rx-protos.h: Update.
10166 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
10167 operand to the canonical position.
10168 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10169 (*bitclr, *bitclr_in_memory): Similarly.
10170 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10171 (insv): Retain the zero_extract in the expansion.
10173 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10174 (bswaphi2, bitinvert, revw): Likewise.
10176 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10177 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10178 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10179 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10180 (bitset, bitset_in_memory): Likewise.
10181 (bitinvert, bitinvert_in_memory): Likewise.
10182 (bitclr, bitclr_in_memory): Likewise.
10183 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10184 (rx_strend, rx_cmpstrn): Likewise.
10185 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
10186 (bitop peep2 patterns): Remove.
10188 * config/rx/rx.c (rx_match_ccmode): New.
10189 * config/rx/rx-protos.h: Update.
10190 * config/rx/rx.md (abssi2): Clobber, don't set flags.
10191 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10192 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10193 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10194 (fix_truncsfsi2, floatsisf2): Likewise.
10195 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10196 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10197 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10198 (*subsi3_flags, *xorsi3_flags): New.
10200 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10202 * config/rx/rx.c (rx_print_operand): Remove workaround for
10203 unsplit comparison operations.
10205 * config/rx/rx.md (movsicc): Split after reload.
10206 (*movsicc): Merge *movsieq and *movsine via match_operator.
10207 (*stcc): New pattern.
10209 * config/rx/rx.c (rx_float_compare_mode): Remove.
10210 * config/rx/rx.h (rx_float_compare_mode): Remove.
10211 * config/rx/rx.md (cstoresi4): Split after reload.
10212 (*sccc): New pattern.
10214 * config/rx/predicates.md (label_ref_operand): New.
10215 (rx_z_comparison_operator): New.
10216 (rx_zs_comparison_operator): New.
10217 (rx_fp_comparison_operator): New.
10218 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10219 Validate that the flags are set properly for the comparison.
10220 (rx_gen_cond_branch_template): Remove.
10221 (rx_cc_modes_compatible): Remove.
10222 (mode_from_flags): New.
10223 (flags_from_code): Rename from flags_needed_for_conditional.
10224 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10225 (rx_select_cc_mode): Likewise.
10226 (rx_split_fp_compare): New.
10227 (rx_split_cbranch): New.
10228 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10229 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10230 (*cbranchsf4): Similarly.
10231 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10232 match_operator and rx_split_cbranch.
10233 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10234 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10235 (*cmpsi): Rename from cmpsi.
10236 (*tstsi): Rename from tstsi.
10237 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10238 (*conditional_branch): Rename from conditional_branch.
10239 (*reveresed_conditional_branch): Remove.
10240 (b<code>): Remove expander.
10241 * config/rx/rx-protos.h: Update.
10243 * config/rx/rx.c (rx_compare_redundant): Remove.
10244 * config/rx/rx.md (cmpsi): Don't use it.
10245 * config/rx/rx-protos.h: Update.
10247 * config/rx/rx-modes.def (CC_F): New mode.
10248 * config/rx/rx.c (rx_select_cc_mode): New.
10249 * config/rx/rx.h (SELECT_CC_MODE): Use it.
10250 * config/rx/rx-protos.h: Update.
10252 2011-01-17 Richard Henderson <rth@redhat.com>
10254 * except.c (dump_eh_tree): Fix stray ; after for statement.
10256 2011-01-17 Richard Guenther <rguenther@suse.de>
10258 PR tree-optimization/47313
10259 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10260 handling before copying the body. Properly deal with
10261 by-reference result in SSA form.
10263 2011-01-17 Ian Lance Taylor <iant@google.com>
10266 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10267 (struct_value_alias_set): Don't define.
10268 (sparc_option_override): Don't set sparc_sr_alias_set and
10269 struct_value_alias_set.
10270 (save_or_restore_regs): Use gen_frame_mem rather than calling
10272 (sparc_struct_value_rtx): Likewise.
10274 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
10277 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10278 (_mm_maskstore_pd): Likewise.
10279 (_mm_maskload_ps): Likewise.
10280 (_mm_maskstore_ps): Likewise.
10281 (_mm256_maskload_pd): Change mask to __m256i.
10282 (_mm256_maskstore_pd): Likewise.
10283 (_mm256_maskload_ps): Likewise.
10284 (_mm256_maskstore_ps): Likewise.
10286 * config/i386/i386-builtin-types.def: Updated.
10287 (ix86_expand_special_args_builtin): Likewise.
10289 * config/i386/i386.c (bdesc_special_args): Update
10290 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10291 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10292 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10293 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10295 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10296 Use <avxpermvecmode> on mask register.
10297 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10299 2011-01-17 Olivier Hainque <hainque@adacore.com>
10300 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10301 Eric Botcazou <ebotcazou@adacore.com>
10304 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10305 if <= USHRT_MAX in 32-bit mode.
10307 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10309 * doc/install.texi (Configuration, Specific): Wrap long
10310 lines in examples. Allow line wrapping in long options
10311 and URLs where beneficial for PDF output.
10313 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
10315 * config/mips/mips.c (mips_classify_symbol): Don't return
10316 SYMBOL_PC_RELATIVE for nonlocal labels.
10318 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
10320 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10322 2011-01-15 Jan Hubicka <jh@suse.cz>
10324 PR tree-optimization/47276
10325 * ipa.c (function_and_variable_visibility): Do not try to mark alias
10326 declarations as needed.
10328 2011-01-15 Martin Jambor <mjambor@suse.cz>
10330 * common.opt (fdevirtualize): New flag.
10331 * doc/invoke.texi (Option Summary): Document it.
10332 * opts.c (default_options_table): Add devirtualize flag.
10333 * ipa-prop.c (detect_type_change): Return immediately if
10334 devirtualize flag is not set.
10335 (detect_type_change_ssa): Likewise.
10336 (compute_known_type_jump_func): Likewise.
10337 (ipa_analyze_virtual_call_uses): Likewise.
10339 2011-01-14 Martin Jambor <mjambor@suse.cz>
10341 PR tree-optimization/45934
10342 PR tree-optimization/46302
10343 * ipa-prop.c (type_change_info): New type.
10344 (stmt_may_be_vtbl_ptr_store): New function.
10345 (check_stmt_for_type_change): Likewise.
10346 (detect_type_change): Likewise.
10347 (detect_type_change_ssa): Likewise.
10348 (compute_complex_assign_jump_func): Check for dynamic type change.
10349 (compute_complex_ancestor_jump_func): Likewise.
10350 (compute_known_type_jump_func): Likewise.
10351 (compute_scalar_jump_functions): Likewise.
10352 (ipa_analyze_virtual_call_uses): Likewise.
10353 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10355 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10357 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10358 * config/i386/i386.opt (msse5): New Alias.
10360 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10362 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10363 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10364 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10365 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10367 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10369 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10371 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10372 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10373 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10374 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10376 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10378 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10380 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10382 2011-01-14 Mike Stump <mikestump@comcast.net>
10384 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10385 * config/fr30/fr30.md: Likweise
10386 (movsi_push): Likewise.
10387 (movsi_pop): Likewise.
10388 (enter_func): Likewise.
10389 * config/moxie/moxie.md (movsi_push): Likewise.
10390 (movsi_pop): Likewise.
10392 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10394 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10395 %{no_archive} %{exact_version}.
10396 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10397 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10398 %{no_archive} %{exact_version}.
10399 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10400 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10401 * config/mips/vxworks.h: Likewise.
10403 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10405 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10407 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10409 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10410 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10412 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10414 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10417 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10419 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10421 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10422 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10424 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10425 Don't handle -shlib.
10427 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10429 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10430 (CC1_SPEC): Don't handle -profile.
10432 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10434 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10435 * config/mips/mips.h (CC1_SPEC): Likewise.
10437 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10439 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10440 * config/mips/mips.h (CC1_SPEC): Likewise.
10442 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10444 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10445 * config/m32r/linux.h (LINK_SPEC): Likewise.
10446 * config/mips/linux.h (LINK_SPEC): Likewise.
10447 * config/mips/linux64.h (LINK_SPEC): Likewise.
10448 * config/sparc/linux.h (LINK_SPEC): Likewise.
10449 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10450 LINK_SPEC): Likewise.
10451 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10453 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10455 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10457 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10459 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10461 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10462 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10464 2011-01-14 Joseph Myers <joseph@codesourcery.com>
10466 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10468 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10470 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10471 supports -Bstatic/-Bdynamic.
10472 * configure: Regenerate.
10474 2011-01-14 Jan Hubicka <jh@suse.cz>
10475 Jack Howarth <howarth@bromo.med.uc.edu>
10478 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10479 when checking debug_info_level. Test write_symbols instead of
10480 debug_hooks->var_location when setting flag_var_tracking_uninit.
10482 2011-01-14 Richard Guenther <rguenther@suse.de>
10484 PR tree-optimization/47179
10485 * target.def (ref_may_alias_errno): New target hook.
10486 * targhooks.h (default_ref_may_alias_errno): Declare.
10487 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10488 (default_ref_may_alias_errno): New function.
10489 * target.h (struct ao_ref_s): Declare.
10490 * tree-ssa-alias.c: Include target.h.
10491 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10492 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10493 (targhooks.o): Likewise.
10494 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10495 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10497 2011-01-14 Richard Guenther <rguenther@suse.de>
10499 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10501 2011-01-14 Richard Guenther <rguenther@suse.de>
10503 PR tree-optimization/47280
10504 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10505 return CFG changes.
10506 (tree_ssa_forward_propagate_single_use_vars): Deal with
10507 CFG changes from associate_plusminus.
10509 2011-01-14 Richard Guenther <rguenther@suse.de>
10511 PR middle-end/47281
10513 2011-01-11 Richard Guenther <rguenther@suse.de>
10515 PR tree-optimization/46076
10516 * tree-ssa.c (useless_type_conversion_p): Conversions from
10517 unprototyped to empty argument list function types are useless.
10519 2011-01-14 Richard Guenther <rguenther@suse.de>
10521 PR tree-optimization/47286
10522 * tree-ssa-structalias.c (new_var_info): Register variables are global.
10524 2011-01-14 Martin Jambor <mjambor@suse.cz>
10526 PR middle-end/46823
10527 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10529 2011-01-13 Anatoly Sokolov <aesok@post.ru>
10531 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10532 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10533 * config/xtensa/xtensa.c (xtensa_libcall_value,
10534 xtensa_function_value_regno_p): New functions.
10535 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10537 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
10540 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10542 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10543 New function prototype.
10544 * config/i386/winnt.c (i386_pe_assemble_visibility):
10545 Warn only if attribute was specified by user.
10547 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10550 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10552 (floatunsdidf2_fcfidu): Ditto.
10554 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10556 * config/s390/s390.c (print_operand_address): Replace 'error' with
10557 'output_operand_lossage'.
10558 (print_operand): Likewise.
10560 2011-01-13 Jeff Law <law@redhat.com>
10562 PR rtl-optimization/39077
10563 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10564 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10565 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10566 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10567 * gcse.c (prune_insertions_deletions): New function.
10568 (compute_pre_data): Use it.
10570 2011-01-13 Dodji Seketeli <dodji@redhat.com>
10573 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10575 (prune_unused_types_mark): Use it.
10577 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
10579 PR rtl-optimization/45352
10580 * sel-sched.c: Update copyright years.
10581 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10582 in the advancing loop when we have issued issue_rate insns.
10584 2011-01-12 Richard Henderson <rth@redhat.com>
10586 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10587 (TARGET_MD_ASM_CLOBBERS): New.
10589 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10590 (TARGET_DELEGITIMIZE_ADDRESS): New.
10592 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10593 (clzsi2, *bsch): New patterns.
10595 * config/mn10300/mn10300.md (INT): New mode iterator.
10596 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10598 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10599 flag_split_wide_types.
10601 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10602 (mn10300_trampoline_init): Rewrite without a template, an immediate
10603 load and a direct branch.
10604 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10606 2011-01-12 Anatoly Sokolov <aesok@post.ru>
10608 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10609 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10610 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10611 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10613 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
10616 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10619 2011-01-12 Jan Hubicka <jh@suse.cz>
10622 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10623 (PLUGIN_COND_CLOSE): New macro.
10624 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10626 2011-01-12 Richard Guenther <rguenther@suse.de>
10629 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10630 register variables in a MEM_REF.
10632 2011-01-12 Joseph Myers <joseph@codesourcery.com>
10634 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10635 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10636 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10637 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10638 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10639 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10640 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10641 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10642 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10643 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10644 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10645 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10646 * config/gnu-user.h: New. Copied from linux.h.
10647 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10648 GNU_USER_TARGET_STARTFILE_SPEC.
10649 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10650 GNU_USER_TARGET_ENDFILE_SPEC.
10651 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10652 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10653 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10654 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10655 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10656 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10657 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10658 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10659 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10660 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10661 * config/arm/linux-eabi.h (CC1_SPEC): Use
10662 GNU_USER_TARGET_CC1_SPEC.
10663 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10664 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10665 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10666 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10667 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10668 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10669 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10670 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10672 2011-01-12 Richard Guenther <rguenther@suse.de>
10675 * doc/invoke.texi (ffast-math): Document it is turned on
10678 2011-01-12 Jan Hubicka <jh@suse.cz>
10680 PR tree-optimization/47233
10681 * opts.c (common_handle_option): Disable ipa-reference with profile
10684 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10686 * c-parser.c (c_parser_objc_at_property_declaration): Improved
10689 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10691 * c-parser.c (c_lex_one_token): Updated and reindented some
10692 comments. No changes in code.
10694 2011-01-11 Ian Lance Taylor <iant@google.com>
10696 * godump.c (go_output_var): Don't output the variable if there is
10697 already a type with the same name.
10699 2011-01-11 Ian Lance Taylor <iant@google.com>
10701 * godump.c (go_format_type): Don't generate float80.
10703 2011-01-11 Richard Henderson <rth@redhat.com>
10705 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10706 declaration. Rewrite for both speed and size.
10707 (mn10300_address_cost_1): Remove.
10708 (mn10300_register_move_cost): New.
10709 (mn10300_memory_move_cost): New.
10710 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
10711 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
10712 extensions, shifts, BSWAP, CLZ.
10713 (mn10300_wide_const_load_uses_clr): Remove.
10714 (TARGET_REGISTER_MOVE_COST): New.
10715 (TARGET_MEMORY_MOVE_COST): New.
10716 * config/mn10300/mn10300-protos.h: Update.
10717 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10719 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10720 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10721 * config/mn10300/mn10300-protos.h: Update.
10722 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10723 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10724 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10725 (*test_int_bitfield, *test_byte_bitfield): Remove.
10726 (*bit_test, *subreg_bit_test): Remove.
10727 * config/mn10300/predicates.md (const_8bit_operand): Remove.
10729 * config/mn10300/constraints.md ("c"): Rename from "A".
10730 ("A", "D"): New constraint letters.
10731 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10732 (fmssf4, fnmasf4, fnmssf4): Likewise.
10734 * config/mn10300/mn10300.md (isa): New attribute.
10735 (enabled): New attribute.
10737 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10738 (abssf2, negsf2): Define only for hardware fp.
10739 (sqrtsf2): Reformat.
10740 (addsf3, subsf3, mulsf3): Merge expander and insn.
10742 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10743 (DEBUGGER_AUTO_OFFSET): Remove.
10744 (DEBUGGER_ARG_OFFSET): Remove.
10746 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10747 Emit register stores with the same offsets as the hardware.
10748 (mn10300_store_multiple_operation): Don't check that the register
10749 save offsets are monotonic.
10750 * config/mn10300/mn10300-protos.h: Update.
10752 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10754 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10755 in terms of the value on the stack, not the MDR register.
10757 2011-01-11 Jan Hubicka <jh@suse.cz>
10761 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10762 (symbol_alias_set_destroy, symbol_alias_set_contains,
10763 propagate_aliases_backward): Declare.
10764 * lto-streamer-out.c (struct sets): New sturcture.
10765 (trivally_defined_alias): New function.
10766 (output_alias_pair_p): Rewrite.
10767 (output_unreferenced_globals): Fix output of alias pairs.
10768 (produce_symtab): Likewise.
10769 * ipa.c (function_and_variable_visibility): Set weak alias destination
10771 * varasm.c (symbol_alias_set_t): Remove.
10772 (symbol_alias_set_destroy): Export.
10773 (propagate_aliases_forward, propagate_aliases_backward): New functions
10775 (compute_visible_aliases): ... this one; remove.
10776 (trivially_visible_alias): New
10777 (trivially_defined_alias): New.
10778 (remove_unreachable_alias_pairs): Rewrite.
10779 (finish_aliases_1): Reorganize code checking if alias is defined.
10780 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10783 2011-01-11 Richard Guenther <rguenther@suse.de>
10785 PR tree-optimization/46076
10786 * tree-ssa.c (useless_type_conversion_p): Conversions from
10787 unprototyped to empty argument list function types are useless.
10789 2011-01-11 Richard Guenther <rguenther@suse.de>
10791 PR middle-end/45235
10792 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10793 volatile MEMs as MEM_READONLY_P.
10795 2011-01-11 Richard Guenther <rguenther@suse.de>
10797 PR tree-optimization/47239
10798 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10800 2011-01-11 Jeff Law <law@redhat.com>
10802 PR tree-optimization/47086
10803 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10804 IVs from statements that might throw.
10806 2011-01-10 Jan Hubicka <jh@suse.cz>
10809 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10811 2011-01-10 Jan Hubicka <jh@suse.cz>
10814 * profile.c (read_profile_edge_counts): Ignore profile inconistency
10815 when correcting profile.
10817 2011-01-10 Jan Hubicka <jh@suse.cz>
10820 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10821 DECL_FINI_PRIORITY.
10822 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10823 Restore DECL_FINI_PRIORITY.
10825 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10827 * doc/gimple.texi: Fix quoting of multi-word return values in
10828 @deftypefn statements. Ensure presence of return value. Wrap
10829 overlong @deftypefn lines.
10830 (is_gimple_operand, is_gimple_min_invariant_address): Remove
10831 descriptions of removed functions.
10832 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10833 of multi-word return value in @deftypefn statement.
10835 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10837 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10838 (Conditional Expressions, Logical Operators)
10839 (Statement and operand traversals): Do not indent smallexample
10840 code. Fix duplicate function argument in example.
10842 2011-01-10 Jeff Law <law@redhat.com>
10844 PR tree-optimization/47141
10845 * ipa-split.c (split_function): Handle case where we are
10846 returning a value and the return block has a virtual operand phi.
10848 2011-01-10 Jan Hubicka <jh@suse.cz>
10850 PR tree-optimization/47234
10851 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10852 (pass_feedback_split_functions): Declare.
10853 * passes.c (init_optimization_passes): Add ipa-split as subpass of
10855 * ipa-split.c (gate_split_functions): Update comments; disable
10856 split-functions for profile_arc_flag and branch_probabilities.
10857 (gate_feedback_split_functions): New function.
10858 (execute_feedback_split_functions): New function.
10859 (pass_feedback_split_functions): New global var.
10861 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
10864 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10865 calling gimple_call_set_cannot_inline.
10867 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
10869 * config/darwin-sections.def: Remove unused section.
10871 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
10874 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10876 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
10879 * c-parser.c (c_parser_declaration_or_fndef): Improved
10882 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
10884 * config/i386/winnt.c (i386_pe_start_function): Make sure
10885 to switch back to function's section.
10887 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
10891 * plugin.c: Move include of dlfcn.h from here...
10892 * system.h: ... to here.
10894 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10896 * doc/cpp.texi (C++ Named Operators): Fix markup for header
10898 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10899 two extra empty pages in PDF output.
10901 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
10904 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10905 for error recovery purposes behave as if it was not specified so
10906 that the default type is usd.
10908 2011-01-07 Jan Hubicka <jh@suse.cz>
10910 PR tree-optmization/46469
10911 * ipa.c (function_and_variable_visibility): Clear needed flags on
10912 nodes with external decls; handle weakrefs merging correctly.
10914 2011-01-07 Joseph Myers <joseph@codesourcery.com>
10916 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10919 2011-01-07 Jan Hubicka <jh@suse.cz>
10921 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10922 and no longer claim that gold is required for linker plugin.
10923 * configure: Regenerate.
10924 * gcc.c (PLUGIN_COND): New macro.
10925 (LINK_COMMAND_SPEC): Use it.
10926 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10927 * config.in (HAVE_LTO_PLUGIN): New.
10928 * configure.ac (--with-lto-plugin): New parameter; autodetect
10931 2011-01-07 Jan Hubicka <jh@suse.cz>
10933 PR tree-optimization/46367
10934 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10935 when we can update original.
10936 (cgraph_mark_inline_edge): Sanity check.
10937 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10939 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10941 * config/spu/spu.h (ASM_COMMENT_START): Define.
10943 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
10946 * gcc.c (%>S): New.
10947 (SWITCH_KEEP_FOR_GCC): Likewise.
10948 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10949 (do_spec_1): Handle "%>".
10951 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10953 2011-01-07 Jakub Jelinek <jakub@redhat.com>
10956 * config/i386/i386.c (ix86_delegitimize_address): If
10957 simplify_gen_subreg fails, return orig_x.
10960 * value-prof.c (gimple_stringop_fixed_value): Handle
10961 lhs of the call properly.
10963 2011-01-07 Jan Hubicka <jh@suse.cz>
10966 * lto-opt.c (lto_reissue_options): Set flag_shlib.
10968 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10970 * target.def (function_switched_text_sections): New hook.
10971 * doc/tm.texi: Regenerated.
10972 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10973 * final.c (default_function_switched_text_sections): New.
10974 (final_scan_insn): Call function_switched_text_sections when a
10975 mid-function section change occurs.
10976 * output.h (default_function_switched_text_sections): Declare.
10977 * config/darwin-protos.h (darwin_function_switched_text_sections):
10979 * config/darwin.c (darwin_function_switched_text_sections): New.
10980 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10982 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10984 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
10985 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
10986 the secondary code fragment when outputting for DWARF == 2.
10988 2011-01-07 Anatoly Sokolov <aesok@post.ru>
10990 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10991 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10993 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10994 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10996 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
10999 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11000 when it is not empty.
11002 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
11005 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11006 (case ${target}): Add btver1.
11007 * config/i386/driver-i386.c (host_detect_local_cpu): Let
11008 -march=native recognize btver1 processors.
11009 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11010 btver1 def_and_undef
11011 * config/i386/i386.c (struct processor_costs btver1_cost): New
11013 (m_BTVER1): New definition.
11014 (m_AMD_MULTIPLE): Includes m_BTVER1.
11015 (initial_ix86_tune_features): Add btver1 tune.
11016 (processor_target_table): Add btver1 entry.
11017 (static const char *const cpu_names): Add btver1 entry.
11018 (software_prefetching_beneficial_p): Add btver1.
11019 (ix86_option_override_internal): Add btver1 instruction sets.
11020 (ix86_issue_rate): Add btver1.
11021 (ix86_adjust_cost): Add btver1.
11022 * config/i386/i386.h (TARGET_BTVER1): New definition.
11023 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11024 (enum processor_type): Add PROCESSOR_BTVER1.
11025 * config/i386/i386.md (define_attr "cpu"): Add btver1.
11027 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11030 * config/i386/i386.c (legitimize_tls_address)
11031 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11032 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11033 (tls_initial_exec_64_sun): New pattern.
11035 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11037 * doc/invoke.texi (Overall Options): Improve wording and markup
11038 of the description of -wrapper.
11040 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11042 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11043 rdynamic, threads): New Driver options.
11045 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11048 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11049 if coming from .tdata.
11050 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11052 2011-01-06 Jan Hubicka <jh@suse.cz>
11055 * collect2.c (main): Do not enable LTOmode when plugin is active.
11057 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11060 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11061 --version output if supported.
11062 * configure: Regenerate.
11064 2011-01-06 Joseph Myers <joseph@codesourcery.com>
11066 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11069 2011-01-06 Jakub Jelinek <jakub@redhat.com>
11072 * c-convert.c (convert): When converting a complex expression
11073 other than COMPLEX_EXPR to a different complex type, ensure
11074 c_save_expr is called instead of save_expr, unless in_late_binary_op.
11075 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11076 when converting COMPLEX_TYPE.
11078 2011-01-06 Ira Rosen <irar@il.ibm.com>
11080 PR tree-optimization/47139
11081 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11082 only the last reduction value is used outside the loop. Update
11085 2011-01-05 Joseph Myers <joseph@codesourcery.com>
11087 * config/rtems.opt: New.
11088 * config.gcc (*-*-rtems*): Use rtems.opt.
11090 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
11092 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11093 processors do not support 3DNow instructions.
11095 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11097 * config/spu/spu.c (spu_option_override): Set parameter
11098 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11100 2011-01-05 Jan Hubicka <jh@suse.cz>
11102 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11103 at the command line.
11105 2011-01-05 Martin Jambor <mjambor@suse.cz>
11108 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11109 deltas on streamed outgoing edges.
11110 (output_node_opt_summary): Output info for outgoing edges only when
11111 the node is in new parameter set.
11112 (output_cgraph_opt_summary): New parameter set, passed to the two
11113 aforementioned functions. Update its forward declaration and its
11116 2011-01-05 Tom Tromey <tromey@redhat.com>
11118 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11119 operator to c_finish_omp_atomic.
11120 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11121 (build_unary_op): Update.
11122 (build_modify_expr): Update.
11123 (build_asm_expr): Update.
11125 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11127 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11128 newly inserted insns.
11129 (pad_bb): Likewise.
11130 (spu_emit_branch_hint): Likewise.
11131 (insert_hbrp_for_ilb_runout): Likewise.
11132 (spu_machine_dependent_reorg): Call df_finish_pass after
11133 schedule_insns returns.
11135 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11137 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11139 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
11141 PR tree-optimization/47005
11142 * tree-sra.c (struct access): Add 'non_addressable' bit.
11143 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11144 (decide_one_param_reduction): Return 0 if the parameter is passed by
11145 reference and one of the accesses in the group is non_addressable.
11147 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11149 PR tree-optimization/47056
11150 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11151 (mark_load): Likewise. Handle FUNCTION_DECL specially.
11152 (mark_store): Likewise. Pass STMT to ipa_record_reference.
11154 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11156 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11157 initializer. Skip view conversions from aggregate types.
11159 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
11162 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11164 2011-01-04 Philipp Thomas <pth@suse.de>
11166 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11169 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11171 * function.c (thread_prologue_and_epilogue_insns): Do not crash
11172 on empty epilogue sequences.
11174 2011-01-04 Joseph Myers <joseph@codesourcery.com>
11176 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11177 non-static): New Driver options.
11179 2011-01-04 Jie Zhang <jie@codesourcery.com>
11182 * gcc.c (default_compilers[]): Set combinable field to 0
11183 for all assembly languages.
11185 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
11187 * config/mips/loongson3a.md: New file.
11188 * config/mips/mips.md: Include loongson3a.md.
11189 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11192 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11194 PR middle-end/47017
11195 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11196 instead of convert_memory_address_addr_space on the base expression.
11198 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11200 * config/spu/spu.c (spu_option_override): Update error text
11201 for bad -march= / -mtune= values.
11203 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11205 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11206 if branch-hint optimization will be performed.
11208 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11210 PR tree-optimization/47148
11211 * ipa-split.c (split_function): Convert arguments to
11212 DECL_ARG_TYPE if possible.
11214 PR tree-optimization/47155
11215 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11216 when computing uns.
11218 PR rtl-optimization/47157
11219 * combine.c (try_combine): If undobuf.other_insn becomes
11220 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11221 and set *new_direct_jump_p too.
11223 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11225 PR tree-optimization/47021
11226 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11228 2011-01-03 Jakub Jelinek <jakub@redhat.com>
11230 * gcc.c (process_command): Update copyright notice dates.
11231 * gcov.c (print_version): Likewise.
11232 * gcov-dump.c (print_version): Likewise.
11233 * mips-tfile.c (main): Likewise.
11234 * mips-tdump.c (main): Likewise.
11236 2011-01-03 Martin Jambor <mjambor@suse.cz>
11238 PR tree-optimization/46801
11239 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11240 aggregate fields start at byte boundary instead of the bit-field flag.
11242 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
11245 * gcc.c (main): Revert revision 168407.
11247 2011-01-03 Martin Jambor <mjambor@suse.cz>
11249 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11251 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11253 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11254 vector optab to expand vector/scalar shift, update gimple to vector.
11256 2011-01-03 Martin Jambor <mjambor@suse.cz>
11258 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11261 2011-01-03 Martin Jambor <mjambor@suse.cz>
11263 PR tree-optimization/46984
11264 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11266 (cgraph_create_indirect_edge): Fixed line length.
11267 (cgraph_indirect_call_info): Declare.
11268 (cgraph_make_edge_direct) Update declaration.
11269 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11270 (cgraph_create_indirect_edge): Use it.
11271 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
11273 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11274 the new thunk_delta representation.
11275 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11277 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11278 (ipa_read_indirect_edge_info): Likewise.
11279 * lto-cgraph.c (output_edge_opt_summary): New function.
11280 (output_node_opt_summary): Call it on all outgoing edges.
11281 (input_edge_opt_summary): New function.
11282 (input_node_opt_summary): Call it on all outgoing edges.
11284 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
11287 * gcc.c (main): Don't check have_o when settting combine_inputs.
11289 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
11291 * regrename.c: Add general comment describing the pass.
11292 (struct du_head): Remove 'length' field.
11293 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11294 (regrename_optimize): Do not sort chains. Rework comments, add others.
11295 Force renaming to the preferred class (if any) in the first pass and do
11296 not consider registers that belong to it in the second pass.
11297 (create_new_chain): Do not set 'length' field.
11298 (scan_rtx_reg): Likewise.
11300 2011-01-02 Jakub Jelinek <jakub@redhat.com>
11302 PR tree-optimization/47140
11303 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11304 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11305 to bit_value_binop.
11307 PR rtl-optimization/47028
11308 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11309 parm_birth_insn instead of at the beginning of first bb.
11311 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
11313 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11314 Remove the word "see" before "@pxref".
11315 * doc/rtl.texi: Remove the word "see" before "@pxref".
11317 2011-01-01 Jan Hubicka <jh@suse.cz>
11319 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11322 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
11325 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11328 Copyright (C) 2011 Free Software Foundation, Inc.
11330 Copying and distribution of this file, with or without modification,
11331 are permitted in any medium without royalty provided the copyright
11332 notice and this notice are preserved.