1 2011-06-11 Jan Hubicka <jh@suse.cz>
3 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
6 2011-06-11 Jan Hubicka <jh@suse.cz>
8 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying args.
9 (ipa_update_after_lto_read): Likewise.
10 (ipa_write_node_info): Do not sream call_with_var_arguments.
11 (ipa_read_node_info): Likewise.
13 2011-06-11 Jan Hubicka <jh@suse.cz>
15 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
17 2011-06-11 Jan Hubicka <jh@suse.cz>
19 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
20 (lto_symtab_resolve_can_prevail_p): Likewise.
21 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
22 * cgraph.c (same_body_aliases_done): New global var.
23 (cgraph_same_body_alias_1): Rename to ...
24 (cgraph_create_function_alias): ... this one; reorg to new
26 (cgraph_same_body_alias): Use cgraph_create_function_alias;
27 record references when asked to.
28 (cgraph_add_thunk): Fix formating.
29 (cgraph_get_node): Kill same body alias code.
30 (cgraph_node_for_asm): Likewise.
31 (cgraph_remove_same_body_alias): Remove.
32 (cgraph_remove_node): Kill same body alias code.
33 (cgraph_mark_address_taken_node): Mark also the aliased function
34 as having address taken.
35 (dump_cgraph_node): Dump same body aliases.
36 (cgraph_for_node_thunks_and_aliases): Update for new alias
38 (cgraph_for_node_and_aliases): Likewise.
39 * cgraph.h (same_body): Kll pointer.
40 (same_body_alias): Update comment.
41 (same_body_aliases_done): Declare.
42 (cgraph_remove_same_body_alias): Remove declaration.
43 (cgraph_create_function_alias): Declare.
44 (cgraph_process_same_body_aliases): Declare.
45 (cgraph_function_with_gimple_body_p): Check for alias.
46 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
47 (cgraph_alias_aliased_node): New function.
48 (cgraph_function_node): Update for new aliases.
49 (cgraph_function_or_thunk_node): Likewise.
50 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
51 (inline_call): Remove dead aliases.
52 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler name
53 hack for same body aliases.
54 (clone_of_p): Look through aliases.
55 (verify_cgraph_node): Verify aliases.
56 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
57 (cgraph_process_same_body_aliases): New function.
58 (process_function_and_variable_attributes): Disable weakref warning on
60 (cgraph_analyze_functions): Handle aliases.
61 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
62 (assemble_thunks): Rename to ...
63 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
64 (cgraph_expand_function): Remove alias output code.
65 (cgraph_output_in_order): Skip aliases.
66 (cgraph_preserve_function_body_p): Aliases don't need preserving.
67 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
68 (ipa_record_reference): Do not assert on alias references.
69 (ipa_ref_has_aliases_p): New function.
70 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
71 (ipa_ref_has_aliases_p): Declare.
72 * lto-cgraph.c (lto_output_node): Handle aliases.
73 (input_node): Likewise.
74 * lto-streamer-out.c (lto_output): Skip aliases.
75 (produce_symtab): Kill same_body_alias code.
76 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
77 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
78 * ipa-inline.c (update_caller_keys): Walk aliases.
79 (inline_small_functions): Fix thinko in previous patch.
80 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
81 (function_and_variable_visibility): Do not walk same body aliases.
82 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
83 (ipa_pta_execute): Use it.
85 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
87 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
88 (*vec_dupv2df): Rename from vec_dupv2df.
89 (vec_dupv2df): New expander.
91 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
93 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
95 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
97 * config/i386/i386.md: Use default value in "isa" attribute.
98 * config/i386/sse.md: Ditto.
99 * config/i386/mmx.md: Ditto.
101 2011-06-10 Wei Guozhi <carrot@google.com>
104 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
105 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
106 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
108 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
110 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
111 (arm_legitimate_ldrd_p): New prototype.
112 (arm_output_ldrd): New prototype.
113 * config/arm/arm.c (arm_check_ldrd_operands): New function.
114 (arm_legitimate_ldrd_p): New function.
115 (arm_output_ldrd): New function.
117 2011-06-10 David Li <davidxl@google.com>
119 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
120 * passes.c (passr_eq): New function.
121 (create_pass_tab): New function.
122 (pass_traverse): New function.
123 (dump_one_pass): New function.
124 (dump_pass_list): New function.
125 (dump_passes): New function.
127 2011-06-10 Jan Hubicka <jh@suse.cz>
129 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
130 setting the nothrow flag.
131 * ipa-reference.c (propagate): Skip aliases.
132 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
133 (propagate_nothrow): Skip aliases; do not update cgraph.
134 (local_pure_const): Do not update cgraph.
135 * tree-profile.c (tree_profiling): Do fixup_cfg.
137 2011-06-10 Jan Hubicka <jh@suse.cz>
139 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
140 (cgraph_local_node_p): ... here; handle aliases.
141 (has_addr_references_p): Break out from ...;
142 (cgraph_remove_unreachable_nodes) ... here.
144 2011-06-10 Jan Hubicka <jh@suse.cz>
146 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
147 * common.opt (flag_inline_functions_called_once): Do not
150 2011-06-10 Jan Hubicka <jh@suse.cz>
152 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
153 (ipcp_initialize_node_lattices): Do not deal with aliases;
154 Do not try to propagate through thunks.
155 (ipcp_change_tops_to_bottom): Do not deal with aliases.
157 2011-06-10 Jan Hubicka <jh@suse.cz>
159 * ipa-prop.c (ipa_write_node_info): Stream jump functions
161 (ipa_read_node_info): Likewise.
163 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
166 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
167 (build_and_insert_call): Likewise.
168 (build_and_insert_ref): New.
169 (gimple_expand_builtin_pow): Minor cleanup.
170 (gimple_expand_builtin_cabs): New.
171 (execute_cse_sincos): Add case for BUILT_IN_CABS.
173 2011-06-10 Jan Hubicka <jh@suse.cz>
175 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
176 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
177 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
178 (ipcp_propagate_stage): Skip aliases when propagating.
179 (ipcp_need_redirect_p): Skip aliases.
180 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
181 collect_callers_of_node.
182 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
184 (ipa_compute_jump_functions): Look through aliases.
186 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
188 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
190 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
192 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
194 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
196 2011-06-10 Jan Hubicka <jh@suse.cz>
198 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
199 Update call of gimple_get_virt_method_for_binfo.
200 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
201 refuse_thunks parameter.
202 (gimple_fold_call): Update.
203 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
205 2011-06-10 Jan Hubicka <jh@suse.cz>
207 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
208 (not_all_callers_have_enough_arguments_p): ... this one; turn into
209 worker for cgraph_for_node_and_aliases.
210 (convert_callers_for_node): Break out from ...
211 (convert_callers): ... here.
212 (modify_function): Use collect_callers_of_node.
213 (ipa_early_sra): Use cgraph_for_node_and_aliases.
215 2011-06-10 Richard Guenther <rguenther@suse.de>
217 PR tree-optimization/49361
218 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
219 when not already in gimple form.
221 2011-06-10 Richard Guenther <rguenther@suse.de>
224 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
225 FOR_EACH_PHI_OR_STMT_USE.
227 2011-06-10 Jan Hubicka <jh@suse.cz>
229 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
230 (clone_inlined_nodes): ... here.
231 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
232 to real destination prior inlining.
233 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
234 can_early_inline_edge_p, want_early_inline_function_p,
235 want_early_inline_function_p, want_inline_small_function_p,
236 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
237 edge_badness, update_all_callee_keys, lookup_recursive_calls,
238 add_new_edges_to_heap, inline_small_functions, flatten_function,
239 inline_always_inline_functions, early_inline_small_functions): Use
240 cgraph_function_or_thunk_node.
241 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
242 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
243 (do_estimate_edge_growth_1): Break out from ...
244 (do_estimate_growth) ... here; walk aliases.
245 (inline_generate_summary): Skip aliases.
247 2011-06-10 Richard Guenther <rguenther@suse.de>
249 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
250 forward when combining, visit inserted stmts when a stmt was changed.
252 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
254 * tree.h (error_operand_p): Add.
255 * dbxout.c (dbxout_type_fields): Use the latter.
256 * c-decl.c (add_stmt): Likewise.
257 * gimplify.c (omp_add_variable, omp_notice_variable,
258 gimplify_scan_omp_clauses): Likewise.
260 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
262 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
263 when a value is actually passed in regs.
265 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
266 Laurent Rougé <laurent.rouge@menta.fr>
268 * doc/invoke.texi (SPARC options): Add -mflat.
269 * config/sparc/sparc.opt: Likewise.
270 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
271 (sparc_flat_expand_prologue): Declare.
272 (sparc_flat_expand_epilogue): Likewise.
273 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
274 (CPP_ENDIAN_SPEC): Replace with...
275 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
276 (CPP_SPEC): Adjust to above change.
277 (EXTRA_SPECS): Likewise.
278 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
279 (INCOMING_REGNO): Likewise.
280 (OUTGOING_REGNO): Likewise.
281 (LOCAL_REGNO): Likewise.
282 (SETUP_FRAME_ADDRESSES): Likewise.
283 (FIXED_REGISTERS): Set 0 for %fp.
284 (CALL_USED_REGISTERS): Likewise.
285 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
286 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
287 (RETURN_ADDR_REGNUM): Define.
288 (RETURN_ADDR_RTX): Use it.
289 (INCOMING_RETURN_ADDR_REGNUM): Define.
290 (INCOMING_RETURN_ADDR_RTX): Use it.
291 (DWARF_FRAME_RETURN_COLUMN): Likewise.
292 (EH_RETURN_REGNUM): Define.
293 (EH_RETURN_STACKADJ_RTX): Use it.
294 (EH_RETURN_HANDLER_RTX): Delete.
295 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
296 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
298 (struct machine_function): Add frame_size, apparent_frame_size,
299 frame_base_reg, frame_base_offset, n_global_fp_regs and
300 save_local_in_regs_p fields.
301 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
302 sparc_frame_base_offset, sparc_n_global_fp_regs,
303 sparc_save_local_in_regs_p): New macros.
304 (sparc_option_override): Error out if -fcall-saved-REG is specified
306 (eligible_for_restore_insn): Fix formatting.
307 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
308 (eligible_for_sibcall_delay): Likewise.
309 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
310 (sparc_legitimate_address_p): Adjust to above change.
311 (save_global_or_fp_reg_p): New predicate.
312 (return_addr_reg_needed_p): Likewise.
313 (save_local_or_in_reg_p): Likewise.
314 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
315 (SORR_SAVE, SORR_RESTORE): Delete.
316 (sorr_pred_t): New typedef.
317 (sorr_act_t): New enum.
318 (save_or_restore_regs): Rename to...
319 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
320 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
321 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
322 mechanism. Add CFI information for double-word saves in 32-bit mode.
323 (emit_adjust_base_to_offset): New function extracted from...
324 (emit_save_or_restore_regs): ...this. Rename the rest to...
325 (emit_save_or_restore_regs_global_fp_regs): ...this.
326 (emit_save_or_restore_regs_local_in_regs): New function.
327 (gen_create_flat_frame_[123]): New functions.
328 (sparc_expand_prologue): Use SIZE local variable. Adjust.
329 (sparc_flat_expand_prologue): New function.
330 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
331 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
332 (sparc_flat_expand_epilogue): New function.
333 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
334 (output_return): Likewise.
335 (output_sibcall): Likewise.
336 (sparc_output_mi_thunk): Likewise.
337 (sparc_frame_pointer_required): Likewise.
338 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
339 function optimization.
340 * config/sparc/sparc.md (flat): New attribute.
341 (prologue): Add TARGET_FLAT handling.
342 (save_register_window): Disable if TARGET_FLAT.
343 (create_flat_frame_[123]): New patterns.
344 (epilogue): Add TARGET_FLAT handling.
345 (sibcall_epilogue): Likewise.
346 (eh_return): New expander.
347 (eh_return_internal): New insn and splitter.
348 (return_internal): Add TARGET_FLAT handling.
349 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
350 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
351 (nonlocal_goto): Add TARGET_FLAT handling.
352 * config/sparc/t-elf: Add -mflat multilib.
353 * config/sparc/t-leon: Likewise.
355 2011-06-10 Jan Hubicka <jh@suse.cz>
357 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
358 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
359 (self_recursive_p): Use cgraph_function_node.
360 (propagate_pure_const): Likewise.
361 (propagate_nothrow): Likewise.
362 * ipa-reference.c (ipa_reference_get_not_read_global): Use
363 cgraph_function_node.
364 (propagate_bits): Likewise.
365 (propagate): Likewise.
367 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
368 Richard Earnshaw <rearnsha@arm.com>
370 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
371 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
372 (*thumb2_movdi_vfp): Delete.
373 (*arm_movdi_vfp_cortexa8): Delete.
374 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
375 (*movdi_vfp_cortexa8): Likewise.
377 2011-06-10 Richard Guenther <rguenther@suse.de>
379 * stor-layout.c (initialize_sizetypes): Give names to all
382 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
384 PR tree-optimization/49318
385 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
386 irrelevant pattern statements.
388 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
390 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
393 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
396 2011-06-09 Jan Hubicka <jh@suse.cz>
398 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
399 do not recompute reachable flag.
400 (cgraph_finalize_function, cgraph_analyze_functions): Set
401 redefined_extern_inline here.
403 2011-06-09 Jan Hubicka <jh@suse.cz>
405 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
406 (cgraph_only_called_directly_p): ... this one; bring offline.
407 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
408 varpool_used_from_object_file_p): Drop names from the declaratoin.
409 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
410 collect_callers_of_node): New.
411 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
412 (cgraph_edge_recursive_p): Use cgraph_function_node.
413 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
414 (cgraph_node_cannot_be_local_p_1): Break out from ...
415 (cgraph_node_can_be_local_p): ... here; walk aliases.
416 (cgraph_for_node_thunks_and_aliases): New function.
417 (cgraph_for_node_and_aliases): New function.
418 (cgraph_make_node_local_1): Break out from ...
419 (cgraph_make_node_local) ... here; use
420 cgraph_for_node_thunks_and_aliases.
421 (cgraph_set_nothrow_flag_1): Break out from ...
422 (cgraph_set_nothrow_flag) ... here;
423 use cgraph_for_node_thunks_and_aliases.
424 (cgraph_set_const_flag_1): Break out from ...
425 (cgraph_set_const_flag) ... here;
426 use cgraph_for_node_thunks_and_aliases.
427 (cgraph_set_pure_flag_1): Break out from ...
428 (cgraph_set_pure_flag) ... here;
429 use cgraph_for_node_thunks_and_aliases.
430 (cgraph_propagate_frequency_1): Break out from ...
431 (cgraph_propagate_frequency) ... here; use
432 cgraph_for_node_thunks_and_aliases.
433 (cgraph_used_from_object_file_p): Do not care about aliases.
434 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
436 (collect_callers_of_node_1, collect_callers_of_node): New functions.
438 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
440 PR rtl-optimization/49154
441 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
442 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
443 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
444 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
445 * config/cris/cris.h (cris_register_move_cost): Remove
446 !TARGET_V32 code. Tweak comments.
448 2011-06-09 Jan Hubicka <jh@suse.cz>
450 * cgraphbuild.c (record_eh_tables): Mark personality function as having
453 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
455 PR rtl-optimization/49154
456 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
457 is a matching slot in the hashtable, assign it to classes_ptr.
459 PR rtl-optimization/49154
460 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
462 * doc/tm.texi: Regenerate.
464 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
467 * config/sh/sh.md (UNSPEC_CHKADD): New.
468 (chk_guard_add): New define_insn_and_split.
469 (symGOT_load): Use chk_guard_add instead of blockage.
471 2011-06-09 Kai Tietz <ktietz@redhat.com>
473 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
475 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
477 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
479 2011-06-09 Wei Guozhi <carrot@google.com>
482 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
483 (peephole2 for conditional move): Generate 16 bit instructions.
485 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
487 * config/i386/i386.md (*movdi_internal_rex64): Merge
488 alternatives 6 and 8.
490 2011-06-09 David Li <davidxl@google.com>
492 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
493 * passes.c (passr_eq): New function.
494 (create_pass_tab): New function.
495 (pass_traverse): New function.
496 (dump_one_pass): New function.
497 (dump_pass_list): New function.
498 (dump_passes): New function.
500 2011-06-09 David Li <davidxl@google.com>
502 * tree-complex.c (tree_lower_complex): Gate cleanup.
503 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
504 (execute_optimize_stdarg): Ditto.
505 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
506 (execute_cleanup_eh_1): Ditto.
507 (execute_cleanup_eh): Ditto.
508 * gcse.c (gate_rtl_pre): Ditto.
509 (execute_rtl_pre): Ditto.
510 * except.c (finish_eh_generation): Ditto.
511 (convert_to_eh_region_ranges): Ditto.
512 * cprop.c (one_cprop_pass): Ditto.
514 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
517 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
520 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
522 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
523 (HAVE_ENABLE_EXECUTE_STACK): Define.
524 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
525 (HAVE_ENABLE_EXECUTE_STACK): Define.
526 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
527 (HAVE_ENABLE_EXECUTE_STACK): Define.
528 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
529 (ENABLE_EXECUTE_STACK): Remove.
530 (HAVE_ENABLE_EXECUTE_STACK): Define.
531 [IN_LIBGCC2]: Don't include <windows.h>.
532 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
533 (HAVE_ENABLE_EXECUTE_STACK): Define.
534 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
535 (HAVE_ENABLE_EXECUTE_STACK): Define.
536 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
537 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
538 (HAVE_ENABLE_EXECUTE_STACK): Define.
539 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
540 (HAVE_ENABLE_EXECUTE_STACK): Define.
541 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
542 (HAVE_ENABLE_EXECUTE_STACK): Define.
543 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
544 (HAVE_ENABLE_EXECUTE_STACK): Define.
545 * config/alpha/alpha.c (alpha_trampoline_init): Test
546 HAVE_ENABLE_EXECUTE_STACK.
547 * config/i386/i386.c (ix86_trampoline_init): Likewise.
548 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
549 (sparc64_initialize_trampoline): Likewise.
550 * libgcc2.c [L_enable_execute_stack]: Remove.
551 * system.h (ENABLE_EXECUTE_STACK): Poison.
552 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
553 * doc/tm.texi: Regenerate.
554 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
556 2011-06-09 Jakub Jelinek <jakub@redhat.com>
559 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
560 variable. After resetting and rescanning insn continue with previous
563 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
565 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
566 (gcc_cv_ld_hidden): Likewise.
567 * configure: Regenerate.
568 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
569 (ix86_stack_protect_fail): Mark unused.
570 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
571 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
572 [TARGET_MACHO]: Don't define.
573 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
574 (TARGET_STACK_PROTECT_FAIL): Likewise.
575 (rs6000_stack_protect_fail): Mark unused.
576 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
577 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
579 2011-06-08 Andi Kleen <ak@linux.intel.com>
581 * varasm.c (get_section): Print location of other conflict
582 for section conflicts.
584 2011-06-08 Andi Kleen <ak@linux.intel.com>
586 * config/i386/driver-i386.c (host_detect_local_cpu):
587 Add model 0x2d Intel CPU.
589 2011-06-08 Andi Kleen <ak@linux.intel.com>
591 * reginfo.c (global_regs_decl): Add.
592 (globalize_reg): Add decl parameter. Compute location. Pass location
593 to warnings and add inform. Store decl in global_regs_decl.
594 * rtl.h (globalize_reg): Update prototype.
595 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
597 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
599 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
601 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
604 * config/sh/predicates.md (general_movsrc_operand): Check
605 mode for memory with indexed address for QI and HImode.
606 (general_movdst_operand): Likewise.
608 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
610 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
612 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
614 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
615 (num_ssa_operands): Likewise.
616 (op_iter_init_phiuse): Forward-declare.
617 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
619 2011-06-08 Nick Clifton <nickc@redhat.com>
621 * doc/invoke.texi (ARM Options): Update description of
624 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
626 * config/i386/driver-i386.c (host_detect_local_cpu): Support
627 unknown Intel family 0x6 CPUs.
629 2011-06-08 Martin Jambor <mjambor@suse.cz>
631 * tree-sra.c (mark_rw_status): Removed.
632 (analyze_access_subtree): New parameter parent instead of
633 mark_read and mark_write, propagate from that.
635 2011-06-08 Julian Brown <julian@codesourcery.com>
637 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
638 for double-precision helper functions in hard-float mode if only
639 single-precision arithmetic is supported in hardware.
641 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
643 PR rtl-optimization/49303
644 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
645 code_motion_path_driver returned 0 or 1.
646 (sel_region_finish): Clear h_d_i_d.
648 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
650 * config/sh/sh.c (prepare_move_operands): Set pic register
651 appropriately for global and local dynamic tls models even
652 if flag_pic is unset.
654 2011-06-07 Jason Merrill <jason@redhat.com>
656 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
658 2011-06-07 Xinliang David Li <davidxl@google.com>
659 * passes.c (enable_disable_pass): Handle assembler name.
660 (is_pass_explicitly_enabled_or_disabled): Ditto.
662 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
664 PR tree-optimization/48497
665 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
667 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
669 PR tree-optimization/46728
670 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
671 to use gimple_val_nonnegative_real_p.
672 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
673 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
675 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
677 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
679 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
681 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
684 2011-06-07 Richard Guenther <rguenther@suse.de>
686 * stor-layout.c (initialize_sizetypes): Initialize all
687 sizetypes based on target definitions.
688 (set_sizetype): Remove.
689 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
690 * tree.h (set_sizetype): Remove.
692 2011-06-07 Nick Clifton <nickc@redhat.com>
694 * config.gcc: Unify V850 architecture options and add support for
695 newer V850 architectures.
696 * config/v850/t-v850e: Delete.
698 2011-06-07 Richard Guenther <rguenther@suse.de>
700 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
701 Call set_sizetype from here.
703 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
705 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
706 (*maddhisi4tb, *maddhisi4tt): New define_insns.
708 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
709 Andrew Stubbs <ams@codesourcery.com>
711 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
713 * doc/md.texi (Canonicalization of Instructions): Document widening
714 multiply canonicalization.
716 2011-06-07 Jakub Jelinek <jakub@redhat.com>
718 PR gcov-profile/49299
719 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
721 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
723 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
725 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
726 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
727 vect_recog_pow_pattern): Likewise.
728 (vect_pattern_recog_1): Remove declaration.
729 (widened_name_p): Remove declaration. Add new argument to specify
730 whether to check that both types are either signed or unsigned.
731 (vect_recog_widen_mult_pattern): Update documentation. Handle
732 unsigned patterns and multiplication by constants.
733 (vect_pattern_recog_1): Update vect_recog_func references. Use
734 statement information from the statement returned from pattern
736 (vect_pattern_recog): Update vect_recog_func reference.
737 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
738 multiplication by a constant use the type of the other operand.
740 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
742 PR rtl-optimization/49145
743 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
745 2011-06-06 Jakub Jelinek <jakub@redhat.com>
748 * dwarf2out.c (native_encode_initializer): Decrement count in each
752 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
756 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
757 if stmt folded into nothing.
758 * tree-inline.c (fold_marked_statements): If a builtin at the end of
759 a bb folded into nothing, just update cgraph edges and move to next bb.
760 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
761 to be NULL. Don't compute count and frequency if new_call is NULL.
763 2011-06-04 Diego Novillo <dnovillo@google.com>
765 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
766 (cgraph.o): Likewise.
767 (cgraphunit.o): Likewise.
768 * cgraphunit.c: Include lto-streamer.h
769 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
771 * lto-streamer-in.c (unpack_value_fields): Call
772 streamer_hooks.unpack_value_fields if set.
773 (lto_materialize_tree): For unhandled nodes, first try to
774 call lto_streamer_hooks.alloc_tree, if it exists.
775 (lto_input_ts_decl_common_tree_pointers): Move reading of
776 DECL_INITIAL to lto_streamer_read_tree.
777 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
778 (lto_streamer_read_tree): New.
779 (lto_reader_init): Rename from lto_init_reader.
780 Move initialization code to lto/lto.c.
781 * lto-streamer-out.c (pack_value_fields): Call
782 streamer_hooks.pack_value_fields if set.
783 (lto_output_tree_ref): For tree nodes that are not normally indexable,
784 call streamer_hooks.indexable_with_decls_p before giving up.
785 (lto_output_ts_decl_common_tree_pointers): Move handling
786 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
787 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
788 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
789 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
790 (lto_streamer_write_tree): New.
791 (lto_output): Call lto_streamer_init directly.
792 (lto_writer_init): Remove.
793 * lto-streamer.c (streamer_hooks): New.
794 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
795 instead of lto_preload_common_nodes.
796 (lto_is_streamable): Move from lto-streamer.h
797 (lto_streamer_hooks_init): New.
798 (streamer_hooks): New.
799 (streamer_hooks_init): New.
800 * lto-streamer.h (struct output_block): Forward declare.
801 (struct lto_input_block): Likewise.
802 (struct data_in): Likewise.
803 (struct bitpack_d): Likewise.
804 (struct streamer_hooks): Declare.
805 (streamer_hooks): Declare.
806 (lto_streamer_hooks_init): Declare.
807 (lto_streamer_write_tree): Declare.
808 (lto_streamer_read_tree): Declare.
809 (streamer_hooks_init): Declare.
810 (lto_is_streamable): Move to lto-streamer.c
812 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
814 * longlong.h (smul_ppmm): The resulting register pair contains the
815 higher order word first.
817 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
819 PR tree-optimization/46728
820 * builtins.c (powi_table): Remove.
821 (powi_lookup_cost): Remove.
823 (expand_powi_1): Remove.
824 (expand_powi): Remove.
825 (expand_builtin_pow_root): Remove.
826 (expand_builtin_pow): Remove.
827 (expand_builtin_powi): Eliminate handling of constant exponent.
828 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
830 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
832 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
834 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
836 * dce.c (reset_unmarked_insns_debug_uses): New.
837 (delete_unmarked_insns): Skip debug insns.
838 (prescan_insns_for_dce): Likewise.
839 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
840 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
841 active reg can be found.
842 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
843 (convert_regs_1): Use it.
845 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
847 * tree-pretty-print.c (dump_function_header): Add flags.
848 Don't dump decl_uid with nouid.
849 * tree-pretty-print.h (dump_function_header): Adjust.
850 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
851 * passes.c (pass_init_dump_file): Pass dump_flags on.
852 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
854 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
857 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
859 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
861 PR tree-optimization/49243
862 * calls.c (setjmp_call_p): Also check if fndecl has the
863 returns_twice attribute.
865 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
867 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
870 2011-06-06 Richard Henderson <rth@redhat.com>
871 Georg-Johann Lay <avr@gjlay.de>
874 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
876 * config/avr/avr.md ("insv"): New insn expander.
877 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
878 "*insv.not.io", "*insv.reg"): New insns.
880 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
883 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
884 to nonimmediate_operand from memory_operand for the operand that is to
885 be forced to memory by the expander. Lose the constraints.
887 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
889 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
890 EH return when delayed branches are disabled.
892 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
894 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
895 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
897 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
898 Simplify MODE_V1DF and MODE_V2SF handling.
899 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
900 Simplify MODE_SF handling.
902 2011-06-04 Jan Hubicka <jh@suse.cz>
904 PR tree-optimization/48893
905 PR tree-optimization/49091
906 PR tree-optimization/49179
907 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
910 2011-06-04 Jan Hubicka <jh@suse.cz>
913 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
916 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
918 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
920 2011-06-04 Jakub Jelinek <jakub@redhat.com>
923 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
924 to be strictly smaller than 1 << shiftcount.
926 2011-06-04 Jan Hubicka <jh@suse.cz>
928 PR tree-optimize/48929
929 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
932 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
935 * calls.c (emit_call_1): Prefer the __builtin declaration of
938 2011-06-03 Diego Novillo <dnovillo@google.com>
940 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
941 (lto_input_tree_pointers): Likewise.
942 * lto-streamer-out.c (pack_value_fields): Likewise.
943 (lto_output_tree_pointers): Likewise.
944 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
945 and OPTIMIZATION_NODE.
947 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
949 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
950 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
951 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
952 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
953 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
954 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
955 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
956 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
957 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
958 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
959 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
960 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
961 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
962 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
963 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
964 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
965 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
966 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
967 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
968 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
969 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
970 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
971 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
972 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
973 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
974 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
975 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
976 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
977 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
978 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
979 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
980 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
981 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
982 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
983 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
984 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
985 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
986 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
987 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
988 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
989 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
990 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
991 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
992 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
993 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
994 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
995 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
996 * system.h (MD_UNWIND_SUPPORT): Poison.
997 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
998 * doc/tm.texi: Regenerate.
999 * unwind-dw2.c: Include md-unwind-support.h instead of
1001 * config/ia64/unwind-ia64.c: Likewise.
1002 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1004 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1006 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1008 2011-06-03 Richard Henderson <rth@redhat.com>
1009 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1011 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1012 (sigill_hdlr): Correct insn, insn size.
1013 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1015 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1017 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1019 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1020 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1021 * config/mips/t-iris: Remove.
1022 * config/mips/t-irix6: New file.
1023 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1025 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1027 * Makefile.in (LIB2ADDEHDEP): Remove.
1028 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1029 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1030 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1031 * config/t-darwin (LIB2ADDEHDEP): Remove.
1032 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1033 * config/t-linux (LIB2ADDEHDEP): Remove.
1035 2011-06-03 Diego Novillo <dnovillo@google.com>
1037 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1038 (lto_register_var_decl_in_symtab): Likewise.
1039 (lto_register_function_decl_in_symtab): Likewise.
1040 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1041 logic to uniquify_nodes.
1043 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1045 * config/alpha/t-osf5: Remove.
1046 * config/alpha/t-osf-pthread: Remove.
1047 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1048 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1050 2011-06-03 Julian Brown <julian@codesourcery.com>
1052 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1053 (strongarm1110): Use strongarm tuning.
1054 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1055 * config/arm/arm.c (arm_strongarm_tune): New.
1056 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1057 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1058 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1059 setting, using previous defaults or 1 for Cortex-A5.
1060 (arm_option_override): Set max_insns_skipped from current tuning.
1062 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1064 * doc/install.texi (Options specification): Document --with-specs.
1066 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1068 * config/arm/neon.md (orndi3_neon): Actually split it.
1070 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1072 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1073 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1075 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1078 * target.def (delay_sched2, delay_vartrack): New.
1079 * doc/tm.texi.in: Update.
1080 * doc/tm.texi: Rebuild.
1081 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1082 * var-tracking.c (gate_handle_var_tracking): Likewise.
1083 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1084 (bfin_flag_var_tracking): Drop.
1085 (output_file_start): Don't save and override flag_var_tracking.
1086 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1087 (bfin_reorg): Test original variables.
1088 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1089 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1090 (ia64_flag_var_tracking): Drop.
1091 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1092 (ia64_file_start): Don't save and override flag_var_tracking.
1093 (ia64_override_options_after_change): Ditto
1094 flag_schedule_insns_after_reload.
1095 (ia64_reorg): Test original variables.
1096 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1097 (picochip_flag_var_tracking): Drop.
1098 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1099 (picochip_option_override): Don't save and override
1100 flag_schedule_insns_after_reload.
1101 (picochip_asm_file_start): Ditto flag_var_tracking.
1102 (picochip_reorg): Test original variables.
1103 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1104 (TARGET_DELAY_VARTRACK): Define.
1105 (spu_var_tracking): New.
1106 (spu_machine_dependent_reorg): Call it.
1107 (asm_file_start): Don't save and override flag_var_tracking.
1109 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1112 * config/sh/predicates.md (general_movsrc_operand): Return 0
1113 for memory and memory subreg of which address is an invalid
1114 indexed address for QI and HImode.
1115 (general_movdst_operand): Likewise.
1117 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1119 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1120 edges only, when there is a non-local label in the function.
1121 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1123 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1125 * config/i386/constraints.md (Y3): New register constraint.
1126 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1127 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1128 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1129 *sse2_interleave_lowv2df.
1131 2011-06-02 Julian Brown <julian@codesourcery.com>
1133 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1134 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1135 (arm_cortex_a5_tune): New.
1137 2011-06-02 Julian Brown <julian@codesourcery.com>
1139 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1140 * config/arm/arm.c (arm_default_branch_cost): New.
1141 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1142 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1143 (arm_fa726_tune): Set branch_cost field using
1144 arm_default_branch_cost.
1145 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1146 current_tune structure.
1147 * dojump.c (tm_p.h): Include file.
1149 2011-06-02 Julian Brown <julian@codesourcery.com>
1151 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1153 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1154 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1155 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1157 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1158 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1159 (arm_fa726te_tune): Add prefer_constant_pool setting.
1160 (arm_v6t2_tune, arm_cortex_tune): New.
1161 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1162 prefer_constant_pool setting.
1164 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1166 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1168 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1169 (*movdf_internal) <case 6,7,8>: Ditto.
1171 * config/i386/constraints.md (Y4): New register constraint.
1172 * config/i386/sse.md (vec_set<mode>_0): Merge with
1173 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1174 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1175 *vec_extractv2di_1_sse.
1176 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1177 and *vec_concatv2di_rex64_sse.
1179 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1182 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1183 of cgraph_local_info for null before attempting to use it.
1185 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1187 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1188 (current_function_dynamic_alloc_count): Delete.
1189 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1190 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1191 (expand_builtin_update_setjmp_buf): Remove dead code.
1192 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1193 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1195 * function.c (instantiate_virtual_regs): Likewise.
1196 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1197 for a block with a single abnormal incoming edge.
1198 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1199 (SETJMP_VIA_SAVE_AREA): Delete.
1200 * config/sparc/sparc-protos.h (load_got_register): Declare.
1201 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1202 (load_got_register): Make global.
1203 (sparc_frame_pointer_required): Add 'static'.
1204 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1205 (sparc_builtin_setjmp_frame_value): New function.
1206 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1207 (save_stack_nonlocal): New expander.
1208 (restore_stack_nonlocal): Likewise.
1209 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1210 (nonlocal_goto_internal): New insn.
1211 (goto_handler_and_restore): Delete.
1212 (builtin_setjmp_setup): Likewise.
1213 (do_builtin_setjmp_setup): Likewise.
1215 (builtin_setjmp_receiver): New expander.
1217 2011-06-01 David Li <davidxl@google.com>
1220 * tree-pretty-print.c (dump_function_header): Format cleanup.
1222 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1225 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1226 needed when original operands are used for msw_skip comparison.
1228 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1231 * var-tracking.c (add_uses, add_stores): Don't call
1232 cselib_subst_to_values on ENTRY_VALUE.
1234 2011-06-01 Diego Novillo <dnovillo@google.com>
1236 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1237 output_record_start with LTO_null instead of output_zero.
1238 (lto_output_ts_binfo_tree_pointers): Likewise.
1239 (lto_output_tree): Likewise.
1240 (output_eh_try_list): Likewise.
1241 (output_eh_region): Likewise.
1242 (output_eh_lp): Likewise.
1243 (output_eh_regions): Likewise.
1244 (output_bb): Likewise.
1245 (output_function): Likewise.
1246 (output_unreferenced_globals): Likewise.
1247 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1248 instead of NUM_TREE_CODES.
1249 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1250 (lto_output_int_in_range): Change << to >> when shifting VAL.
1252 2011-06-01 Diego Novillo <dnovillo@google.com>
1254 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1255 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1257 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1260 * optabs.h (valid_multiword_target_p): Declare.
1261 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1262 doing multi-word operations.
1263 * optabs.c (expand_binop): Likewise.
1264 (expand_doubleword_bswap): Likewise.
1265 (expand_absneg_bit): Likewise.
1266 (expand_unop): Likewise.
1267 (expand_copysign_bit): Likewise.
1268 (multiword_target_p): New function.
1270 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1272 PR rtl-optimization/48830
1273 PR rtl-optimization/48808
1274 PR rtl-optimization/48792
1275 * reload.c (push_reload): Check contains_reg_of_mode.
1276 * reload1.c (strip_paradoxical_subreg): New function.
1277 (gen_reload_chain_without_interm_reg_p): Use it to handle
1278 paradoxical subregs.
1279 (emit_output_reload_insns, gen_reload): Likewise.
1281 2011-06-01 David Li <davidxl@google.com>
1283 * predict.c : Change pass name
1286 * tree-profile.c: Ditto.
1289 2011-06-01 David Li <davidxl@google.com>
1291 * tree-pretty-print.c (dump_function_header): New function.
1292 * final.c (rest_of_clean_state): Use header dumper.
1293 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1294 * passes.c (pass_init_dump_file): Use header dumper.
1296 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1298 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1299 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1300 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1302 (mem_loc_descriptor): Use them.
1304 * var-tracking.c (create_entry_value): New function.
1305 (vt_add_function_parameter): Use it.
1307 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1309 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1310 Include <signal.h>, <ucontext.h>.
1311 (sigill_caught): Define.
1312 (sigill_hdlr): New function.
1313 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1314 insns can be executed.
1315 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1316 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1318 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1320 * config/t-slibgcc-darwin: Move to ...
1321 * config/t-slibgcc-dummy: ... this. Clarify comments.
1322 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1323 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1324 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1325 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1326 Remove i386/t-crtstuff from tmake_file.
1327 (i[34567]86-*-solaris2*): Remove t-svr4,
1328 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1330 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1331 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1332 sparc/t-crtfm from tmake_file.
1333 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1334 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1336 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1337 * config/i386/t-nwld (SHLIB_LINK): Remove.
1338 * config/i386/t-rtems-i386: Rename to ...
1339 * config/i386/t-rtems: ... this.
1340 ($(T)crti.o, $(T)crtn.o): Remove.
1341 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1342 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1343 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1344 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1345 EXTRA_MULTILIB_PARTS): Remove.
1346 * config/sparc/t-sol2-64: Likewise.
1347 * config/sparc/t-sol2: Remove.
1348 * config/sparc/t-crtin: Remove.
1349 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1350 * config/i386/gmon-sol2.c: Remove.
1351 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1352 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1353 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1354 * config/i386/sol2-gc1.asm: Remove.
1355 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1356 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1357 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1358 * config/t-slibgcc-sld: Remove.
1360 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1362 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1363 base_type_for_mode with op_mode instead of mode.
1365 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1367 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1369 * config/arm/arm-tune.md: Regenerate.
1370 * config/arm/arm-tables.opt: Regenerate.
1371 * config/arm/arm.c (FL_DIV): Rename...
1372 (FL_THUMB_DIV): ... to this.
1373 (FL_ARM_DIV): Define.
1374 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1375 (arm_arch_hwdiv): Remove.
1376 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1377 (arm_issue_rate): Add cortexr5.
1378 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1379 __ARM_ARCH_EXT_IDIV__.
1380 (TARGET_IDIV): Define.
1381 (arm_arch_hwdiv): Remove.
1382 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1383 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1384 (divsi3, udivsi3): New patterns.
1385 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1386 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1388 2011-06-01 Martin Jambor <mjambor@suse.cz>
1390 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1391 * ipa-utils.c (searchc): Set scc_no.
1393 2011-06-01 Martin Jambor <mjambor@suse.cz>
1395 * ipa-utils.c (searchc_env): New field allow_overwritable.
1396 (searchc): do not ignore edges to overwritable nodes if indicated
1397 by env->allow_overwritable.
1398 (ipa_reduced_postorder): Set env.allow_overwritable.
1400 2011-06-01 Richard Guenther <rguenther@suse.de>
1402 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1404 * lto-streamer.c (lto_record_common_node): Take node pointer,
1405 do not register types.
1406 (lto_preload_common_nodes): Explicitly skip preloading nodes
1407 that differ between frontends.
1409 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1411 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1414 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1416 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1417 parameter value for dump. Dump cost on outermost call only.
1418 (rs6000_memory_move_cost): Dump cost on outermost call only.
1420 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1422 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1423 DW_OP_GNU_convert ops.
1425 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1426 cselib_preserve_constants.
1427 (cselib_lookup_1): If cselib_preserve_constants,
1428 a new VALUE is being created for REG and there is a VALUE for the
1429 same register in wider mode, add another loc with lowpart SUBREG of
1431 (cselib_subst_to_values): Handle ENTRY_VALUE.
1432 * var-tracking.c (replace_expr_with_values): Return NULL for
1434 * dwarf2out.c (convert_descriptor_to_signed): New function.
1435 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1436 instead of two shifts.
1437 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1438 the right mode if needed.
1439 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1440 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1441 convert_descriptor_to_signed.
1442 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1443 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1446 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1448 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1450 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1451 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1452 (SWI248x): New mode iterator, rename from X87MODEI.
1453 (X87MODEI): Remove mode iterator.
1454 (X87MODEI12): Ditto.
1455 (SSEMODEI24): Ditto.
1457 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1459 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1460 * doc/invoke.texi: Document max-vartrack-expr-depth.
1461 * var-tracking.c (EXPR_DEPTH): New.
1462 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1464 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1466 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1467 * config/i386/sse.md: Add n to negated FMA pattern names.
1469 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1471 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1473 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1475 * gengtype-state.c (read_state_params_structs): Initialize previous.
1477 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1479 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1480 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1482 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1484 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1485 registers. Penalize F*r->o alternative to prevent partial memory
1486 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1487 CONST_DOUBLE immediates when optimizing function for size. Do not move
1488 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1489 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1490 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1491 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1493 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1495 (fp_register_operand splitters): Use fp_register_operand
1496 constraint. Do not use FP_REG_P in insn condition.
1497 (any_fp_register_operand splitters): Use any_fp_register_operand
1498 constraint. Do not use ANY_FP_REG_P in insn condition.
1500 2011-05-31 Jan Hubicka <jh@suse.cz>
1502 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1503 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1504 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1505 (lto_output_edge): Use output_enum and var_len_unsigned.
1506 (lto_output_varpool_node): Likewise.
1507 (input_overwrite_node): Do not take resolution parameter;
1508 extract it from a bitpack.
1509 (input_node): Do not read resolution; use input_enum and
1511 (input_varpool_node): Likewise.
1512 (input_edge): Likewise.
1513 (input_cgraph_1): Likewise.
1515 2011-05-31 Richard Guenther <rguenther@suse.de>
1517 * gimple.c (gimple_register_canonical_type): Do not register
1518 any types via gimple_register_type.
1520 2011-05-31 Jan Hubicka <jh@suse.cz>
1522 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1525 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1527 PR rtl-optimization/49235
1528 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1529 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1531 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1533 PR tree-optimization/49093
1534 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1537 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1540 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1541 for concrete functions containing the code of cloned functions.
1543 2011-05-31 Richard Guenther <rguenther@suse.de>
1545 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1547 (forward_propagate_into_comparison_1): ... this.
1548 (forward_propagate_comparison): Rename to ...
1549 (forward_propagate_into_comparison): ... this. Split out
1550 real forward propagation code to ...
1551 (forward_propagate_comparison): ... this.
1552 (forward_propagate_into_gimple_cond): Remove looping.
1553 (forward_propagate_into_cond): Likewise.
1554 (simplify_not_neg_expr): Return whether we have done something.
1555 (simplify_gimple_switch): Likewise.
1556 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1557 (ssa_forward_propagate_and_combine): ... this. Re-structure
1558 to do a forward forward-propagation walk on BBs and a backward
1559 stmt combining walk on BBs. Consistently re-scan changed statements.
1560 (pass_forwprop): Adjust.
1562 2011-05-30 Ian Lance Taylor <iant@google.com>
1564 * godump.c (go_format_type): Correct length of name added to
1565 obstack for anonymous field.
1567 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1570 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1571 part of the second operand is 0.
1573 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1575 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1576 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1577 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1578 (*movdf_internal_rex64): Do not penalize F->r alternative.
1579 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1580 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1581 when optimizing function for size. Do not move CONST_DOUBLEs
1582 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1583 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1584 SUBREGs. Do not check for MEM_P operands in the insn condition,
1585 check for ANY_FP_REGNO_P instead.
1586 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1587 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1589 * config/i386/i386.c (ix86_option_override_internal): Do not
1590 set TARGET_INTEGER_DFMODE_MOVES here.
1592 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1595 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1597 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1599 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1600 DW_TAG_rvalue_reference_type even for
1601 -gdwarf-4 -fno-debug-types-section.
1603 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1605 PR tree-optimization/46728
1606 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1607 (build_and_insert_binop): New.
1608 (gimple_expand_builtin_pow): Reorder args for
1609 build_and_insert_call; use build_and_insert_binop; add more
1610 optimizations for fractional exponents.
1612 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1617 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1619 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1621 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1622 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1623 TS_BASE instead of TS_COMMON.
1624 * varasm.c (assemble_name): Remove assert.
1626 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1628 * config.gcc: Keep obselete list sorted.
1630 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1631 Eric Botcazou <ebotcazou@adacore.com>
1633 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1634 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1635 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1636 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1637 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1639 2011-05-30 Richard Guenther <rguenther@suse.de>
1641 * gimple.c (gimple_types_compatible_p_1): Compare record
1642 and union type members properly.
1644 2011-05-30 Richard Guenther <rguenther@suse.de>
1646 PR tree-optimization/49210
1647 * ipa-split.c (split_function): Care for the case where the call
1648 result is not trivially convertible to the result holding variable.
1650 2011-05-30 Richard Guenther <rguenther@suse.de>
1652 PR tree-optimization/49218
1653 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1656 2011-05-30 Richard Guenther <rguenther@suse.de>
1658 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1659 New function split out from ...
1660 (forward_propagate_into_gimple_cond): ... here. Adjust.
1661 (forward_propagate_into_cond): Likewise.
1662 (forward_propagate_comparison): Also propagate into
1663 comparisons on assignment RHS. Change return value to
1664 behave similar to forward_propagate_into_cond.
1665 (tree_ssa_forward_propagate_single_use_vars): Handle
1666 strict-overflow warnings properly for forward_propagate_comparison.
1668 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1670 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1672 * configure: Regenerate.
1674 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1676 PR tree-optimization/49199
1677 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1678 non-reduction operands are either defined in the loop or by induction.
1680 2011-05-29 Xinliang David Li <davidxl@google.com>
1682 * opts-global.c (handle_common_deferred_options): Handle new options.
1683 * passes.c (register_one_dump_file): Call register_pass_name.
1684 (execute_one_pass): Check explicit enable/disable flag.
1685 (passr_hash): New function.
1687 (register_pass_name): Ditto.
1688 (get_pass_by_name): Ditto.
1691 (enable_pass): Ditto.
1692 (disable_pass): Ditto.
1693 (is_pass_explicitly_enabled_or_disabled): Ditto.
1695 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1697 * config/i386/i386.md (*movoi_internal_avx): Use
1698 standard_sse_constant_opcode for alternative 0.
1699 (*movti_internal_sse): Ditto.
1700 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1702 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1704 (*movsi_internal): Ditto.
1705 (*movdi_internal): Ditto. Add ssecvt type moves.
1707 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1710 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1712 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1714 PR rtl-optimization/49095
1715 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1716 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1718 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1721 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1722 recurse_p argument. Only follow register copies if it is set,
1723 and prevent mips_find_pic_call_symbol from recursing.
1724 (mips_find_pic_call_symbol): Add a recurse_p argument.
1725 Pass it to mips_pic_call_symbol_from_set.
1726 (mips_annotate_pic_calls): Update accordingly.
1728 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1730 * emit-rtl.c (try_split): Use a loop to search for
1731 NOTE_INSN_CALL_ARG_LOCATIONs.
1733 2011-05-29 Richard Guenther <rguenther@suse.de>
1735 PR tree-optimization/49217
1736 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1738 2011-05-28 Jan Hubicka <jh@suse.cz>
1740 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1742 (string_slot_free): Remove
1743 (create_output_block): Initialize obstack.
1744 (destroy_output_block): Free obstack.
1745 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1746 the string unless it needs to be added into the hash.
1747 (lto_output_string_with_length): Add persistent attribute;
1748 handle NULL strings.
1749 (lto_output_string): Add PERSISTENT parameter.
1750 (output_string_cst, output_identifier): Simplify.
1751 (lto_output_location_bitpack): Update.
1752 (lto_output_builtin_tree): Update.
1753 * lto-streamer.h (struct output_block): Add obstack.
1754 (lto_output_string, lto_output_string_with_length): Remove
1755 declarations; functions are static now.
1757 2011-05-28 Jan Hubicka <jh@suse.cz>
1759 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1760 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1761 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1762 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1763 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1764 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1765 unpack_ts_decl_with_vis_value_fields,
1766 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1767 lto_get_builtin_tree): Use enum and variable length i/o.
1768 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1769 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1771 (bp_pack_enum, bp_unpack_enum): New macros.
1773 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1775 * genrecog.c: Remove redundant forward declarations.
1777 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1779 * config.gcc: Deprecate mips*-*-openbsd*.
1781 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1784 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1787 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1790 * gengtype.c (vec_prefix_type): New function.
1791 (note_def_vec): Use vec_prefix_type and change the length
1792 attribute to be based on the prefix.
1793 * vec.c: Include coretypes.h before vec.h.
1794 (struct vec_prefix): Remove.
1795 (vec_gc_p_reserve): Change the offsetof to sizeof.
1796 (vec_gc_p_reserve_exact): Likewise.
1797 (vec_heap_p_reserve): Likewise.
1798 (vec_heap_p_reserve_exact): Likewise.
1799 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1800 (vec_stack_p_reserve): Change the offsetof to sizeof.
1801 (vec_stack_p_reserve_exact): Likewise.
1802 * vec.h (struct vec_prefix): New struct definition.
1803 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1804 (VEC_T_GTY(T,B)): Likewise.
1805 (DEF_VEC_FUNC_P(T)): Use prefix field.
1806 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1807 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1809 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1811 PR tree-optimization/46728
1812 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1813 (powi_as_mults): Add gimple_set_location.
1814 (build_and_insert_call): New.
1815 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1816 0.5, 0.25, 0.75, 1./3., or 1./6.
1818 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1820 * doc/contrib.texi: Update copyright years.
1821 (Contributors): Add Zdenek Sojka.
1823 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1825 * c-decl.c (c_push_function_context): Copy the current statement
1827 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1828 (finish_struct): Call building_stmt_list_p instead of checking
1830 * c-parser.c (c_parser_postfix_expression): Likewise.
1831 * c-typeck.c (c_end_compound_stmt): Likewise.
1832 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1833 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1834 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1835 (free_stmt_list): Likewise.
1836 * tree.h (struct tree_statement_list): Include typed_tree instead
1838 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1839 as TS_TYPED instead of TS_COMMON.
1841 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1842 Uros Bizjak <ubizjak@gmail.com>
1844 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1845 (HAVE_AS_IX86_TLSGDPTL): Define.
1846 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1847 (HAVE_AS_IX86_TLSLDMPLT): Define.
1848 * configure: Regenerate.
1849 * config.in: Regenerate.
1850 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1851 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1852 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1853 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1854 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1856 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1858 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1860 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1862 (INSN_COND, INSN_REVERSE_COND): New macros.
1863 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1865 (sched_get_condition_with_rev): Cache the results, and look them up
1867 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1868 are clobbered by the current insn.
1869 * target.def (exposed_pipline): New sched data hook.
1870 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1871 * doc/tm.texi: Regenerate.
1873 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1875 PR tree-optimization/49170
1876 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1879 2011-05-27 Richard Guenther <rguenther@suse.de>
1882 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1885 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1887 * haifa-sched.c (sched_scan_info): Remove.
1888 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1890 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1892 (sched_scan): Remove.
1893 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1894 static. All callers changed.
1895 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1896 static. All callers changed.
1897 (sched_init_luids): Remove all arguments except the first. All
1898 callers changed. Don't use sched_scan.
1899 (haifa_init_h_i_d): Likewise.
1900 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1901 manually rather than using sched_init_luids. Likewise with
1902 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1903 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1904 rather than sched_init_luids with NULL args.
1905 * sel-sched-ir.c (new_insns): Remove variable.
1906 (sched_scan): New static function, previously in haifa-sched.c. Remove
1907 all arguments but the first two; all callers changed.
1908 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1909 rather than sched_init_luids.
1910 (sel_init_bbs): Remove second argument. All callers changed.
1911 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1912 with NULL arguments.
1913 (create_insn_rtx_from_pattern): Likewise.
1914 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1915 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1916 (sched_init_insn_luid, sched_extend_luids): Declare.
1917 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1920 2011-05-27 Richard Guenther <rguenther@suse.de>
1923 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1924 A CMP B ? (T) true : (T) false for non-integral types T again.
1926 2011-05-27 Jan Hubicka <jh@suse.cz>
1928 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1929 so 0 means NULL string.
1930 (lto_output_string_with_length): ... here.
1931 (lto_output_string, output_string_cst, output_identifier): Update
1932 handling of NULL strings.
1933 (lto_output_location_bitpack): New function.
1934 (lto_output_location): Use it.
1935 (lto_output_tree_ref): Use output_record_start.
1936 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1938 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1940 (input_string_internal): ... here;
1941 (input_string_cst, input_identifier, lto_input_string): Update handling
1943 (lto_input_location_bitpack): New function
1944 (lto_input_location): Use it.
1945 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1947 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1948 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1949 (bp_pack_value): Sanity check the value range.
1950 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1952 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1955 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1957 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1958 call_arg_location instructions down the floor.
1960 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1962 PR rtl-optimization/49154
1963 * ira.c (setup_pressure_classes): Process class without sublcasses
1964 as a candidate for pressure classes.
1966 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1968 PR rtl-optimization/48575
1969 * genrecog.c (position_type): New enum.
1970 (position): New structure.
1971 (decision): Use position structure instead of a string.
1972 (root_pos, peep2_insn_pos_list): New variables.
1973 (next_position, compare_positions): New functions.
1974 (new_decision): Use position structures instead of strings.
1975 (maybe_both_true): Likewise.
1976 (change_state): Likewise.
1977 (write_tree): Likewise.
1978 (make_insn_sequence): Likewise.
1980 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1982 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1983 TS_BASE instead of TS_COMMON.
1984 (find_decls_types_r): Check for TS_TYPED structure before looking at
1986 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1988 (BLOCK_CHAIN): Use new chain field.
1990 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1992 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1993 moves expensive on Power7 also.
1995 2011-05-26 Richard Guenther <rguenther@suse.de>
1997 * fold-const.c (fold_unary_loc): Remove bogus code.
1999 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2001 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2003 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2004 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2005 TS_BASE instead of TS_COMMON.
2006 * varasm.c (assemble_name): Remove assert.
2008 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2010 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2012 * libgcc-std.ver: Delete file.
2014 2011-05-26 Richard Guenther <rguenther@suse.de>
2016 PR tree-optimization/48702
2017 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2018 only when we know the base address is within bounds.
2019 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2020 assume the base address of TARGET_MEM_REFs is in bounds.
2022 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2025 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2026 declaration in TARGET_SOLARIS.
2028 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2030 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2031 The instruction is then expanded explicitly.
2032 (supported_compare): Callable instruction.
2033 (compare): Likewise.
2035 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2038 * gimplify.c (shortcut_cond_r): Don't special case
2039 COND_EXPRs if they have void type on one of their arms.
2041 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2043 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2044 to reduce duplication, and to achieve a slightly more logical order
2047 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2049 PR tree-optimization/49161
2050 * tree-vrp.c (struct case_info): New type.
2051 (compare_case_labels): Sort case_info structs instead of
2052 trees, and not primarily by CASE_LABEL uids but by
2053 label_for_block indexes.
2054 (find_switch_asserts): Put case labels into struct case_info
2055 array instead of TREE_VEC, adjust sorting, compare label_for_block
2056 values instead of CASE_LABELs.
2058 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2060 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2061 ("orndi3_neon"): Likewise.
2062 ("bic<mode>3_neon"): Likewise.
2064 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2066 PR tree-optimization/49038
2067 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2068 Ensure at least one epilogue iteration if required by data
2070 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2071 to mark loops that require peeling for gaps.
2072 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2073 (vect_get_known_peeling_cost): Take peeling for gaps into
2075 (vect_transform_loop): Generate epilogue if required by data
2077 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2078 loop as requiring an epilogue if there are gaps in the end of
2081 2011-05-25 Ian Lance Taylor <iant@google.com>
2083 * godump.c (go_format_type): Output the first field with a usable
2086 2011-05-25 Ian Lance Taylor <iant@google.com>
2088 * godump.c (go_format_type): Check for invalid type names, pointer
2089 target types, and struct field types.
2091 2011-05-25 Jason Merrill <jason@redhat.com>
2093 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2095 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2097 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2099 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2101 * config/i386/i386.md (*movqi_extv_1)): Put back
2102 "register_operand" check in "type" calculation.
2103 (*movqi_extzv_2): Likewise.
2105 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2107 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2109 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2112 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2113 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2114 __divxc3, __divtc3): Wrap definitions in #ifndef.
2116 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2119 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2120 "register_operand" check and replace q_regs_operand with
2121 QIreg_operand in "type" calculation.
2122 (*movqi_extv_1): Likewise.
2123 (*movqi_extzv_2_rex64): Likewise.
2124 (*movqi_extzv_2): Likewise.
2126 * config/i386/predicates.md (QIreg_operand): New.
2128 2011-05-25 Richard Guenther <rguenther@suse.de>
2130 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2131 type-based offset disambiguation, streamline MEM_REF and
2132 TARGET_MEM_REF handling.
2134 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2136 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2137 (bdesc_special_args): Add pause intrinsic.
2139 * config/i386/i386.md (UNSPEC_PAUSE): New.
2142 * config/i386/ia32intrin.h (__pause): Likewise.
2144 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2147 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2149 PR tree-optimization/46728
2150 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2151 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2153 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2155 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2156 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2157 instead of TS_COMMON.
2159 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2161 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2162 LIBGCC2_GNU_PREFIX is defined.
2164 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2165 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2166 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2167 __clz_tab): Define using __N.
2168 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2169 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2170 * target.def (libfunc_gnu_prefix): New hook.
2171 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2172 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2173 * doc/tm.texi: Regenerate.
2174 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2175 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2177 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2178 (init_optabs): Likewise for the bswap libfuncs.
2179 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2181 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2182 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2183 * libgcc-std.ver: Remove.
2184 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2185 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2187 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2188 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2189 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2190 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2191 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2192 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2193 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2194 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2195 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2196 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2198 2011-05-25 Jan Hubicka <jh@suse.cz>
2200 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2201 (lto_output_tree): Use output_record_start.
2202 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2203 (lto_get_pickled_tree): Use input_record_start.
2204 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2205 (lto_value_range_error): New function.
2206 * lto-streamer.h (lto_value_range_error): Declare.
2207 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2208 (lto_output_enum, lto_input_enum): New macros.
2210 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2212 * common.opt (flag_stack_usage_info): New variable.
2213 (-Wstack-usage): New option.
2214 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2215 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2216 <OPT_fstack_usage>: Likewise.
2217 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2218 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2219 of flag_stack_usage.
2220 (emit_library_call_value_1): Likewise.
2221 * explow.c (allocate_dynamic_stack_space): Likewise.
2222 * function.c (instantiate_virtual_regs ): Likewise.
2223 (prepare_function_start): Likewise.
2224 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2225 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2226 * config/arm/arm.c (arm_expand_prologue): Likewise.
2227 (thumb1_expand_prologue): Likewise.
2228 * config/avr/avr.c (expand_prologue): Likewise.
2229 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2230 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2231 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2232 * config/mips/mips.c (mips_expand_prologue): Likewise.
2233 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2234 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2235 * config/s390/s390.c (s390_emit_prologue): Likewise.
2236 * config/sh/sh.c (sh_expand_prologue): Likewise.
2237 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2238 * config/spu/spu.c (spu_expand_prologue): Likewise.
2240 2011-05-25 Richard Guenther <rguenther@suse.de>
2242 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2243 (gimple_canonical_types_compatible_p): Likewise.
2245 2011-05-25 Jan Hubicka <jh@suse.cz>
2248 * ipa.c (function_and_variable_visibility): Only add to same
2249 comdat group list if DECL_ONE_ONLY.
2251 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2253 PR rtl-optimization/49014
2254 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2256 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2259 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2261 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2263 PR rtl-optimization/48757
2264 * ira-build.c (loop_with_eh_edge_p): Rename to
2265 loop_with_complex_edge_p, check edges on complexity, make function
2267 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2270 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2272 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2273 force flag_ira_share_save_slots to 0.
2275 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2277 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2278 (vt_initialize): Set PROLOGUE_BB unconditionally.
2279 Add block comment about CFA_BASE_RTX machinery.
2280 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2281 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2283 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2286 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2287 parsing of syntax error in ObjC instance variable lists. In
2288 particular, avoid an infinite loop if there is a stray ']'.
2289 Updated error message.
2291 2011-05-24 Ian Lance Taylor <iant@google.com>
2293 * godump.c (go_define): Don't accept a string immediately after
2296 2011-05-24 Ian Lance Taylor <iant@google.com>
2298 * godump.c (struct godump_container): Add invalid_hash field.
2299 (go_format_type): Return false if type is found in invalid_hash.
2300 (go_output_typedef): Add invalid type to invalid_hash.
2301 (go_finish): Create and delete invalid_hash.
2303 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2305 PR tree-optimization/46728
2306 * tree-ssa-math-opts.c (powi_table): New.
2307 (powi_lookup_cost): New.
2309 (powi_as_mults_1): New.
2310 (powi_as_mults): New.
2311 (gimple_expand_builtin_powi): New.
2312 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2313 (gate_cse_sincos): Remove sincos/cexp restriction.
2315 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2318 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2320 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2321 * mips-tdump.c: Likewise.
2323 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2326 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2327 add -mno-XXX. Handle FMA.
2329 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2331 PR rtl-optimization/48633
2332 * ira-build.c (loop_with_eh_edge_p): New function.
2333 (mark_loops_for_removal): Use it.
2335 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2337 PR rtl-optimization/48971
2338 * ira.c (setup_pressure_classes): Don't check register move cost
2339 for classes with one registers. Don't add pressure class if there
2340 is a pressure class with the same available hard registers.
2341 Check contains_reg_of_mode. Fix a typo in collecting
2342 temp_hard_regset. Ignore hard registers not belonging to a class.
2344 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2347 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2349 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2350 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2352 PR gcov-profile/48845
2353 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2355 2011-05-24 Richard Guenther <rguenther@suse.de>
2357 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2358 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2359 (gimple_types_compatible_p_1): Adjust.
2360 (iterative_hash_canonical_type): Do not bother about complete vs.
2362 (gimple_canonical_types_compatible_p): Likewise.
2364 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2366 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2368 2011-05-24 Richard Guenther <rguenther@suse.de>
2371 * gimple.c (gimple_register_canonical_type): Revert
2373 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2374 does not for a tree for the case where it matters. Cache
2375 pointer-type alias-sets.
2377 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2379 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2380 (OBJS): Remove options.o, opts-common.o and prefix.o.
2381 (OBJS-libcommon-target): New.
2382 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2383 (BACKEND): Include libcommon-target.a.
2384 (MOSTLYCLEANFILES): Include libcommon-target.a.
2385 (libcommon-target.a): New.
2386 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2389 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2391 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2392 parts of output shared with the driver.
2393 * optc-gen.awk: Don't generate parts of output not shared with the
2395 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2396 * doc/options.texi (SourcerInclude): Mention options-save.c.
2397 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2398 (OBJS): Add options-save.o.
2399 (options-save.c, options-save.o): New.
2400 (options.o): Update dependencies.
2401 (gcc-options.o): Remove.
2402 (mostlyclean): Remove options-save.c.
2404 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2407 * dbxout.c: Include cgraph.h.
2408 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2409 and without value expr, return NULL if no varpool node exists for
2410 it or if it is not needed.
2411 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2414 * c-decl.c (start_decl): Convert expr to void_type_node.
2416 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2418 PR rtl-optimization/48826
2419 * emit-rtl.c (try_split): When splitting a call that is followed
2420 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2422 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2424 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2425 parameters passed in memory prefer using DECL_INCOMING_RTL over
2426 the pseudos it will be copied into.
2428 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2431 * config/i386/i386.c (ix86_option_override_internal): Save the
2432 initial options after checking vzeroupper.
2434 2011-05-23 David Li <davidxl@google.com>
2436 PR tree-optimization/48988
2437 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2438 Initialize has_valid_pred for each pred chain.
2440 2011-05-23 Richard Guenther <rguenther@suse.de>
2442 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2443 (iterative_hash_gimple_type): Always hash type names.
2445 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2447 * c-typeck.c (build_function_call_vec): Tweak call to
2448 check_function_arguments.
2450 2011-05-23 Richard Guenther <rguenther@suse.de>
2452 PR tree-optimization/49115
2453 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2454 is not necessarily carried out, do not claim it kills the ref.
2455 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2457 2011-05-23 Richard Guenther <rguenther@suse.de>
2460 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2461 what pointer types we accept for folding.
2463 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2465 * gthr-gnat.c: Remove.
2466 * gthr-gnat.h: Remove.
2467 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2468 * config/t-freebsd (LIB2ADDEH): Likewise.
2469 * config/t-linux (LIB2ADDEH): Likewise.
2470 * config/t-sol2 (LIB2ADDEH): Likewise.
2471 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2472 * configure.ac (target_thread_file): Remove gnat handling.
2473 * configure: Regenerate.
2474 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2476 2011-05-23 Tristan Gingold <gingold@adacore.com>
2477 Eric Botcazou <ebotcazou@adacore.com>
2479 * gcov.c (create_file_names): If no object directory is specified,
2480 keep the directory of the file.
2482 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2484 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2485 * configure: Regenerate.
2487 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2490 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2491 failed and the comparison has a single bit signed type, use
2492 constm1_rtx instead of const1_rtx for true value.
2493 (do_store_flag): If ops->type is single bit signed type, disable
2494 signel bit test optimization and pass -1 instead of 1 as last
2495 parameter to emit_store_flag_force.
2497 2011-05-23 Tom de Vries <tom@codesourcery.com>
2500 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2502 (infer_loop_bounds_from_undefined): Use new function.
2504 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2506 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2507 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2508 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2510 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2512 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2514 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2515 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2518 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2520 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2522 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2524 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2525 UNSPEC_MOVE_PIC pattern.
2527 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2529 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2530 (sparc-*-rtems*): Likewise.
2531 (sparc64-*-elf*): Likewise.
2532 (sparc64-*-rtems*): Likewise.
2533 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2534 * config/sparc/t-crtin: New file.
2535 * config/sparc/t-sol2 (crti.o): Delete rule.
2537 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2538 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2539 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2540 (ENDFILE_SPEC): Add crtn.o.
2542 2011-05-22 Tom de Vries <tom@codesourcery.com>
2545 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2546 CODE_CONTAINS_STRUCT (TS_COMMON).
2548 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2551 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2552 only after deciding which mode to use.
2554 2011-05-22 Tom de Vries <tom@codesourcery.com>
2557 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2558 for call to get_shiftadd_cost.
2560 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2563 * config/i386/cpuid.h (bit_MMXEXT): New define.
2565 2011-05-22 Nick Clifton <nickc@redhat.com>
2567 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2568 initialisation of non-existant args[2] element. Use args[] array
2569 not arg[] array to pass arguments to build_function_type_list.
2571 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2573 PR tree-optimization/49087
2574 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2576 2011-05-21 Jason Merrill <jason@redhat.com>
2579 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2580 static storage duration.
2582 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2584 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2587 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2589 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2590 false if there are call-saved registers here...
2591 (sparc_can_use_return_insn_p): ...but here instead.
2592 (save_or_restore_regs): Fix thinko.
2593 (sparc_expand_prologue): Use current_function_is_leaf.
2594 (sparc_frame_pointer_required): Likewise.
2596 2011-05-21 Nick Clifton <nickc@redhat.com>
2599 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2601 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2603 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2604 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2606 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2608 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2609 * optc-gen.awk: Move common code to opt-read.awk.
2610 * opth-gen.awk: Likewise.
2611 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2613 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2615 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2617 2011-05-20 Tom de Vries <tom@codesourcery.com>
2620 * tree-ssa-loop-ivopts.c: Include expmed.h.
2621 (get_shiftadd_cost): New function.
2622 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2624 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2627 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2628 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2630 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2632 * Makefile.in: Update comment referring to $(OBJS-common).
2634 2011-05-20 Ian Lance Taylor <iant@google.com>
2636 * godump.c (go_output_typedef): Put enum constants in the macro
2637 hash table to avoid duplicate Go const definitions.
2639 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2641 * Makefile.in (LIBDEPS): Add libcommon.a.
2643 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2644 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2645 pretty-print.o and version.o.
2646 (OBJS-libcommon): New.
2647 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2648 (BACKEND): Add libcommon.a.
2649 (MOSTLYCLEANFILES): Likewise.
2651 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2652 (cpp$(exeext)): Likewise.
2653 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2654 pretty-print.o and input.o.
2655 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2656 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2658 (mips-tfile): Don't explicitly use version.o.
2659 (mips-tdump): Likewise.
2660 (gcov.o): Depend on $(DIAGNOSTIC_H).
2661 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2662 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2663 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2664 * gcov-dump.c: Include intl.h and diagnostic.h.
2665 (main): Initialize diagnostics.
2666 * gcov.c: Include diagnostic.h.
2668 (main): Initialize diagnostics.
2669 * lto-wrapper.c: Include diagnostic.h.
2670 (main): Initialize diagnostics.
2672 2011-05-20 Michael Matz <matz@suse.de>
2674 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2676 2011-05-20 Michael Matz <matz@suse.de>
2677 Richard Guenther <rguenther@suse.de>
2679 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2680 use lto_streamer_cache_append directly instead of returning a VEC.
2681 (preload_common_node): Remove.
2682 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2684 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2686 2011-05-20 Richard Guenther <rguenther@suse.de>
2688 PR tree-optimization/49079
2689 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2690 MEM_REFs correctly for the trailing array access detection.
2691 Special case constants the same way as decls for overall size
2694 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2696 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2699 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2701 PR tree-optimization/49073
2702 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2703 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2704 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2706 2011-05-20 Richard Guenther <rguenther@suse.de>
2709 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2710 of pointer types the same way the middle-end does.
2712 2011-05-20 Richard Guenther <rguenther@suse.de>
2714 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2715 or pointer-to chains. Delay all fixup to uniquify_nodes.
2717 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2719 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2720 (fma4_fmaddsub): Likewise
2722 2011-05-19 Jan Hubicka <jh@suse.cz>
2724 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2725 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2726 (type_pair_cache): New static var.
2727 (lookup_type_pair): Use fixed sized custom hash; make inline.
2728 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2729 calls of lookup_type_pair.
2730 (print_gimple_types_stats): Remove cache stats.
2731 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2734 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2736 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2737 when TARGET_RDRND is active.
2738 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2739 Generate dummy SImode target register when target is NULL.
2741 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2743 * config/arm/arm-fpus.def: New.
2744 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2746 * config/arm/arm-tables.opt: Regenerate.
2747 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2748 (arm_option_override): Don't decode FPU name to string here.
2749 * config/arm/arm.opt (mfpu=): Use Enum.
2750 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2751 Update dependencies.
2753 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2755 * collect2.c: Include diagnostic.h.
2756 (fatal_perror, fatal, error, fancy_abort): Remove.
2757 (main): Set progname. Call xmalloc_set_program_name and
2758 diagnostic_initialize.
2759 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2760 scan_libraries, resolve_lib_name): Call fatal_error instead of
2761 fatal and fatal_perror.
2762 * collect2.h (error, fatal, fatal_perror): Don't declare.
2763 * tlink.c: Include diagnostic-core.h.
2764 (recompile_files): Call fatal_error instead of fatal_perror.
2765 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2766 pretty-print.o and input.o.
2767 (collect2.o, tlink.o): Update dependencies.
2769 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2771 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2773 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2776 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2777 COMDAT group syntax, both SPARC and x86 variants.
2778 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2779 * configure: Regenerate.
2780 * config/sol2.h (TARGET_SOLARIS): Define.
2781 (PUSHSECTION_FORMAT): Remove.
2782 (SECTION_NAME_FORMAT): Define.
2783 * config/sol2.c: Include hashtab.h.
2784 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2785 expansion, using SECTION_NAME_FORMAT.
2786 (solaris_comdat_htab): New variable.
2787 (struct comdat_entry): Define.
2788 (comdat_hash): New function.
2789 (comdat_eq): New function.
2790 (solaris_elf_asm_comdat_section): New function.
2791 (solaris_define_comdat_signature): New function.
2792 (solaris_code_end): New function.
2793 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2794 (solaris_code_end): Declare.
2795 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2796 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2798 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2799 Remove ATTRIBUTE_UNUSED.
2800 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2801 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2802 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2803 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2804 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2805 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2806 (PUSHSECTION_FORMAT): Remove.
2807 (SECTION_NAME_FORMAT): Redefine.
2809 2011-05-19 Kai Tietz <ktietz@redhat.com>
2811 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2812 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2813 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2815 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2816 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2818 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2820 2011-05-19 Richard Guenther <rguenther@suse.de>
2823 * tree-object-size.c (addr_object_size): If the pointed-to
2824 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2826 2011-05-19 Richard Guenther <rguenther@suse.de>
2828 * gimple.c (gimple_types_compatible_p_1): Compare names of
2829 the types themselves.
2830 (iterative_hash_gimple_type): And hash them that way.
2831 (gimple_register_type_1): If we register a main variant properly
2832 initialize the leader to ourselves.
2834 2011-05-19 Tom de Vries <tom@codesourcery.com>
2837 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2838 get_loop_invariant_expr_id.
2839 (get_loop_invariant_expr_id): Use get_expr_id.
2840 (parm_decl_cost): New function.
2841 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2842 Improve bound cost estimation. Use different inv_expr_id for elim and
2845 2011-05-19 Tom de Vries <tom@codesourcery.com>
2848 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2849 cost_base.cost == 0.
2851 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2854 * config/i386/sse.md
2855 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2858 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2860 PR tree-optimization/49039
2861 * tree-vrp.c (extract_range_from_binary_expr): For
2862 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2863 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2865 2011-05-18 Tom de Vries <tom@codesourcery.com>
2868 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2870 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2872 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2873 (*tls_global_dynamic_64): Ditto.
2874 (*tls_local_dynamic_base_32_gnu): Ditto.
2875 (*tls_local_dynamic_base_64): Ditto.
2876 (tls_initial_exec_64_sun): Ditto.
2878 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2880 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2881 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2883 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2884 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2885 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2886 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2887 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2888 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2889 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2891 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2893 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2894 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2895 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2896 target_thread_pointer, arm_structure_size_boundary, struct
2897 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2898 struct abi_name, arm_all_abis): Remove.
2899 (arm_option_override) Don't process most enumerated option values here.
2900 Don't process target_fpe_name here. Work with integer not string for
2901 structure size boundary; use separate diagnostics for each case.
2902 * config/arm/arm.h (enum float_abi_type, enum
2903 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2905 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2906 arm_structure_size_boundary): Remove.
2907 * config/arm/arm.opt (mabi=): Use Enum and Init.
2908 (arm_abi_type): New Enum and EnumValue entries.
2909 (mfloat-abi=): Use Enum and Init.
2910 (float_abi_type): New Enum and EnumValue entries.
2911 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2912 (mfp16-format=): Use Enum and Init.
2913 (arm_fp16_format_type): New Enum and EnumValue entries.
2914 (mstructure-size-boundary=): Use UInteger and Init.
2915 (mtp=): Use Enum and Init.
2916 (arm_tp_type): New Enum and EnumValue entries.
2918 2011-05-18 Richard Guenther <rguenther@suse.de>
2920 PR tree-optimization/49018
2921 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2922 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2923 gimple_has_side_effects.
2925 2011-05-18 Richard Guenther <rguenther@suse.de>
2927 * gimple.c (gimple_register_type_1): New function, split out from ...
2928 (gimple_register_type): ... here. Avoid infinite recursion.
2930 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2932 PR tree-optimization/41881
2933 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2934 reduction_chains along with a macro for its access.
2935 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2936 (destroy_loop_vec_info): Free reduction chains.
2937 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2938 (vect_is_slp_reduction): New function.
2939 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2940 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2941 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2942 definition types for reduction chains.
2943 (vect_supported_load_permutation_p): Don't allow permutations for
2945 (vect_analyze_slp_instance): Support reduction chains.
2946 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2947 (vect_get_constant_vectors): Handle reduction chains.
2948 (vect_schedule_slp_instance): Mark the first statement of the
2949 reduction chain as reduction.
2951 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2953 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2954 names for group elements access.
2955 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2956 reduction chains as well. Remove data reference and interleaving
2957 related words from the fields names.
2958 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2960 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2961 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2962 vect_update_interleaving_chain, vect_same_range_drs,
2963 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2964 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2965 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2966 vect_analyze_group_access, vect_analyze_data_ref_access,
2967 vect_create_data_ref_ptr, vect_transform_strided_load,
2968 vect_record_strided_load_vectors): Likewise.
2969 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2970 vect_model_load_cost, vectorizable_store, vectorizable_load,
2971 vect_remove_stores, new_stmt_vec_info): Likewise.
2972 * tree-vect-slp.c (vect_build_slp_tree,
2973 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2975 2011-05-18 Richard Guenther <rguenther@suse.de>
2978 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2979 operand verification.
2980 (verify_gimple_assign_binary): Likewise.
2981 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2982 to non-1-precision BOOLEAN_TYPEs.
2984 2011-05-18 Tom de Vries <tom@codesourcery.com>
2987 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2989 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2991 PR tree-optimization/49000
2992 * tree-ssa.c (execute_update_addresses_taken): Call
2993 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2994 be rewritten and decl has been marked for renaming, reset
2997 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2999 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3000 enum_opts_set when testing if attributes have set -mfpmath=.
3002 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3004 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3006 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3008 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3010 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3011 id.transform_lang_insert_block with NULL.
3013 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3015 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3016 (output_fp_compare): Change args 3 and 4 to bool.
3017 (ix86_expand_call): Change arg 6 to bool.
3018 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3019 (ix86_attr_length_vex_default): Change arg 3 to bool.
3020 * config/i386/i386.md: Update all uses.
3021 * config/i386/i386.c: Ditto.
3022 (ix86_flags_dependent): Change return type to bool.
3024 2011-05-17 Richard Guenther <rguenther@suse.de>
3026 * gimple.c (type_hash_pair_compare): Fix comparison.
3028 2011-05-17 Richard Guenther <rguenther@suse.de>
3030 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3031 case some more, fix final hash value of the non-singleton case.
3033 2011-05-17 Richard Guenther <rguenther@suse.de>
3037 2011-05-16 Richard Guenther <rguenther@suse.de>
3039 * gimple.c (gimple_types_compatible_p_1): Use names of the
3040 type itself, not its main variant.
3041 (iterative_hash_gimple_type): Likewise.
3043 2011-05-17 Richard Guenther <rguenther@suse.de>
3045 * gimple.c (gimple_register_canonical_type): Use the main-variant
3046 leader for computing the canonical type.
3048 2011-05-17 Nick Clifton <nickc@redhat.com>
3050 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3053 * config/rx/rx.md: Add peephole to remove redundant extensions
3055 (bitset_in_memory): Use rx_restricted_mem_operand.
3056 (bitinvert_in_memory): Likewise.
3057 (bitclr_in_memory): Likewise.
3059 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3060 Nick Clifton <nickc@redhat.com>
3062 * config/rx/rx.md: Add peepholes to match a register move followed
3063 by a comparison of the moved register. Replace these with an
3064 addition of zero that does both actions in one instruction.
3066 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3069 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3070 predicate to allow CONST_INT.
3071 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3073 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3075 * opts-common.c (opt_enum_arg_to_value): New.
3076 * opts.h (opt_enum_arg_to_value): Declare.
3077 * config/i386/i386.opt (fpmath): Remove.
3078 (mfpmath=): Use Enum, Init and Save.
3079 (fpmath_unit): New Enum and EnumValue entries.
3080 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3081 name for function fpmath state.
3082 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3083 * config/i386/i386.c: Include diagnostic.h.
3084 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3085 (ix86_target_string): Take enum fpmath_unit value instead of string.
3086 (ix86_debug_options): Update call to ix86_target_string.
3087 (ix86_option_override_internal): Don't process fpmath strings here.
3088 (x86_function_specific_save, ix86_function_specific_restore):
3089 Don't handle fpmath state specially.
3090 (ix86_function_specific_print): Pass fpmath state to
3091 ix86_target_string instead of printing in this function.
3092 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3093 Handle enum attributes.
3094 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3095 (ix86_valid_target_attribute_tree): Update option_strings
3096 handling. Handle fpmath as enum option.
3097 (ix86_can_inline_p): Update field names for function fpmath state.
3098 (ix86_expand_builtin): Update call to ix86_target_string.
3099 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3100 (ix86_fpmath): Remove.
3101 * config/i386/t-i386 (i386.o): Update dependencies.
3103 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3105 PR preprocessor/48677
3106 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3107 from decoded_options[0], not from itself.
3109 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3111 * config/i386/constraints.md (z): New constraint.
3112 * config/i386/i386.c (c): New mode attribute.
3113 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3114 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3115 constraint for operand 0.
3116 (*call_vzeroupper): Ditto.
3117 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3118 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3119 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3120 Use "lzm" constraint for operand 0.
3121 (*call_pop_vzeroupper): Ditto.
3122 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3123 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3124 constraint for operand 0.
3125 (*sibcall_vzeroupper): Ditto.
3126 (*sibcall_rex64_ms_sysv): Ditto.
3127 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3128 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3129 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3130 (*sibcall_pop_vzeroupper): Ditto.
3131 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3132 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3133 mode iterator. Use "<c>zm" constraint for operand 1.
3134 (*call_value_vzeroupper): Ditto.
3135 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3137 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3138 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3139 *call_value_pop_1. Use "lzm" constraint for operand 1.
3140 (*call_value_pop_vzeroupper): Ditto.
3141 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3142 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3143 mode iterator. Use "Uz" constraint for operand 1.
3144 (*sibcall_value_vzeroupper): Ditto.
3145 (*sibcall_value_rex64_ms_sysv): Ditto.
3146 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3147 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3148 constraint for operand 1.
3149 (*sibcall_value_pop_vzeroupper): Ditto.
3150 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3151 and "z" constraint for operand 2.
3152 (*tls_global_dynamic_32_gnu): Ditto.
3153 (*tls_local_dynamic_base_32_gnu): Ditto.
3154 (*tls_local_dynamic_base_64): Ditto.
3155 (*tls_local_dynamic_32_once): Ditto.
3156 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3158 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3160 2011-05-16 Richard Guenther <rguenther@suse.de>
3162 * gimple.c (gimple_types_compatible_p_1): Use names of the
3163 type itself, not its main variant.
3164 (iterative_hash_gimple_type): Likewise.
3166 2011-05-16 Richard Guenther <rguenther@suse.de>
3168 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3169 always visit pointer target and function result and argument types.
3171 2011-05-16 Jason Merrill <jason@redhat.com>
3174 * tree-inline.c (copy_statement_list): Put back recursion.
3176 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3180 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3181 * config/avr/avr.md ("*ior<mode>qi.byte0",
3182 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3184 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3187 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3188 register is needed for a function argument.
3190 2011-05-16 Richard Guenther <rguenther@suse.de>
3192 * gimple.c (struct type_hash_pair): New type.
3193 (type_hash_pair_compare): New function.
3194 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3196 2011-05-16 Revital Eres <revital.eres@linaro.org>
3198 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3200 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3202 * config/i386/i386.md (floating point move splitters): Fix
3203 usage of standard_80387_constant_p.
3204 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3206 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3208 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3210 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3212 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3213 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3214 (tree_ssa_lim_finalize): Likewise.
3216 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3218 * config/i386/constraint.md (Yd, Yx): New register constraints.
3219 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3220 Yd conditional register constraint.
3221 (*movtf_internal): Use standard_sse_constant_opcode.
3222 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3223 Yx conditional register constraint.
3224 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3225 Yd conditional register constraint. Use standard_sse_constant_p to
3226 check for valid SSE constants and call standard_sse_constant_opcode to
3228 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3229 constants and call standard_sse_constant_opcode to output SSE insn.
3230 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3231 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3232 optimize_size is set.
3233 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3235 2011-05-14 Tobias Burnus <burnus@net-b.de>
3237 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3239 2011-05-13 Martin Jambor <mjambor@suse.cz>
3241 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3242 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3243 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3244 (evaluate_conditions_for_ipcp_clone): Removed.
3245 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3246 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3247 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3249 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3251 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3252 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3253 lieu of MAY_HAVE_DEBUG_STMTS.
3254 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3255 debug statements if !MAY_HAVE_DEBUG_STMTS.
3257 2011-05-13 Martin Thuresson <martint@google.com>
3259 PR gcov-profile/47793
3260 * libgcov.c (gcov_exit): Support relative profile paths.
3261 * doc/invoke.texi (-fprofile-dir): Update for above change.
3263 2011-05-13 Richard Guenther <rguenther@suse.de>
3265 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3266 type-pair caching, do not compare hashes.
3268 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3271 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3272 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3274 2011-05-13 Kai Tietz <ktietz@redhat.com>
3276 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3277 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3278 compatible type for TRUTH_NOT_EXPR.
3280 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3282 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3283 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3284 can_create_pseudo_p ().
3286 2011-05-13 Richard Guenther <rguenther@suse.de>
3289 * gimple.c (iterative_hash_gimple_type): Revert change in
3290 pointer target and function result and argument hashing.
3292 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3294 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3295 (*movxf_internal_nointeger): Ditto.
3296 (*movdf_internal_rex64): Ditto.
3297 (*movdf_internal): Ditto.
3298 (*movdf_internal_nointeger): Ditto.
3299 (*movsf_internal): Ditto.
3300 (sincos splitters): Use can_create_pseudo ().
3302 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3304 * config/i386/i386-opts.h: New.
3305 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3306 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3307 ix86_section_threshold): Remove.
3308 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3309 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3311 (ix86_option_override_internal): Don't decode strings for options
3312 other than -march=, -mtune= and -mfpmath=. Don't allow for
3313 __attribute__ uses in remaining diagnostics for options with
3314 string arguments. Don't check for integer arguments being negative.
3315 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3316 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3317 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3318 ix86_branch_cost, ix86_section_threshold): Remove.
3319 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3321 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3323 (masm=): Use Enum and Init.
3324 (asm_dialect): New Enum and EnumValue entries.
3325 (mbranch-cost=): Use UInteger.
3326 (mlarge-data-threshold=): Use UInteger and Init.
3327 (mcmodel=): Use Enum and Init.
3328 (cmodel): New Enum and EnumValue entries.
3329 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3330 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3331 mregparm=): Use UInteger.
3332 (mstringop-strategy=): Use Enum and Init.
3333 (stringop_alg): New Enum and EnumValue entries.
3334 (mtls-dialect=): Use Enum and Init.
3335 (tls_dialect): New Enum and EnumValue entries.
3336 (mabi=): Use Enum and Init.
3337 (calling_abi): New Enum and EnumValue entries.
3338 (mveclibabi=): Use Enum and Init.
3339 (ix86_veclibabi): New Enum and EnumValue entries.
3341 2011-05-13 Nick Clifton <nickc@redhat.com>
3343 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3344 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3346 2011-05-13 Kai Tietz <ktietz@redhat.com>
3349 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3350 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3351 (gimple_boolify): Check for cast for boolean_type_node instead for
3354 2011-05-13 Richard Guenther <rguenther@suse.de>
3356 PR tree-optimization/48172
3357 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3358 multiplying by number of iterations for equal step.
3359 (vect_create_cond_for_alias_checks): Likewise.
3361 2011-05-13 Andreas Schwab <schwab@redhat.com>
3363 * configure.ac: Use AS_HELP_STRING throughout.
3364 * configure: Regenerate.
3366 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3368 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3369 (ix86_emit_restore_regs_using_mov): Likewise.
3370 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3372 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3374 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3375 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3376 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3377 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3378 RTX_OK_FOR_OLO10_P): ...here.
3379 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3382 2011-05-12 Kai Tietz <ktietz@redhat.com>
3384 * gimplify.c (gimple_boolify): Re-boolify expression
3385 arguments even if expression type is of kind BOOLEAN_TYPE.
3386 (gimplify_boolean_expr): Removed.
3387 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3388 and XOR. Additional take care that we keep expression's type.
3389 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3390 of TRUTH_AND|OR|XOR_EXPR.
3392 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3394 PR tree-optimization/48975
3395 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3396 on all bbs here and free and clear ifc_bbs at the end.
3398 2011-05-12 Richard Guenther <rguenther@suse.de>
3400 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3401 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3402 until after simple checks.
3403 (gimple_types_compatible_p): Likewise.
3404 (iterative_hash_gimple_type): Always hash pointer targets
3405 and function return and argument types.
3406 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3407 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3408 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3409 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3410 completely in the simple compare section.
3411 (gimple_register_canonical_type): Query the cache again after
3414 2011-05-12 Richard Guenther <rguenther@suse.de>
3416 PR tree-optimization/48172
3417 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3418 the number of iterations from the segment size calculation.
3419 (vect_create_cond_for_alias_checks): Adjust.
3421 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3424 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3425 if validate_subreg fails.
3427 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3429 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3430 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3433 2011-05-12 DJ Delorie <dj@redhat.com>
3435 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3436 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3437 created builtin into rx_builtins array.
3438 (rx_builtin_decl): New function.
3439 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3441 2011-05-12 DJ Delorie <dj@redhat.com>
3442 Nick Clifton <nickc@redhat.com>
3444 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3445 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3446 (rx_is_legitimate_address): Add pre-decrement and post-increment
3447 addressing in HImode and QImode. Fix test for out of range
3449 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3450 (rx_align_for_label): Test label before extracting its usage count.
3451 (rx_adjust_insn_lengths): Fix selection of insn codes.
3452 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3454 2011-05-11 Jason Merrill <jason@redhat.com>
3456 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3458 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3460 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3461 reindent the subsequent block.
3463 2011-05-11 Satoru Takabayashi <satorux@google.com>
3464 Paul Pluzhnikov <ppluzhnikov@google.com>
3466 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3467 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3468 * config.in: Add LINKER_HASH_STYLE.
3469 * configure.ac: Add --with-linker-hash-style.
3470 * configure: Regenerate.
3472 2011-05-11 Richard Guenther <rguenther@suse.de>
3475 * gimple.c (iterative_hash_canonical_type): Fix typo.
3477 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3479 * config/i386/i386.c (legitimize_tls_address)
3480 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3481 expanders directly for TARGET_GNU2_TLS. Determine pic and
3482 __tls_get_addr symbol reference here. Update call to
3483 gen_tls_global_dynamic_{32,64} for added arguments.
3484 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3485 expanders directly for TARGET_GNU2_TLS. Determine
3486 __tls_get_addr symbol reference here. Update call to
3487 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3488 unique UNSPEC REG_EQUIV to libcall block.
3489 (ix86_tls_get_addr): Declare static.
3490 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3491 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3492 Do not determine pic and __tls_get_addr symbol reference here. Do not
3493 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3494 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3495 (tls_global_dynamic_64): Add operand 2. Do not determine
3496 __tls_get_addr symbol reference here. Do not call
3497 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3498 (tls_local_dynamic_base64): Ditto for operand 1.
3500 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3502 * function.c (expand_function_start): Initialize stack_check_probe_note
3503 only if the generic stack checking mechanism is used.
3505 2011-05-11 Richard Guenther <rguenther@suse.de>
3507 PR tree-optimization/15256
3508 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3509 (A & B) | C, combine (A op CST1) op CST2.
3510 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3511 visit assigns that have uses.
3513 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3515 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3516 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3517 (unpack_ts_type_common_value_fields): ...this. Update comment.
3518 (unpack_value_fields): Adjust for renaming.
3519 (lto_input_ts_type_tree_pointers): Split into...
3520 (lto_input_ts_type_common_tree_pointer): ...this and...
3521 (lto_input_ts_type_non_common_tree_pointers): ...this.
3522 (lto_input_tree_pointers): Adjust for above split.
3523 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3524 (pack_ts_type_common_value_fields): ...this. Update comment.
3525 (lto_output_ts_type_tree_pointers): Split into...
3526 (lto_output_ts_type_common_tree_pointers): ...this and...
3527 (lto_output_ts_type_non_common_tree_pointers): ...this.
3528 (lto_output_tree_pointers): Adjust for above split.
3529 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3530 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3531 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3532 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3534 (struct tree_type): Split into...
3535 (struct tree_type_common: ...this and...
3536 (struct tree_type_with_lang_specific): ...this and...
3537 (struct tree_type_non_common): ...this. Adjust accessor macros
3539 (TYPE_VALUES_RAW): Define.
3540 (union tree_node): Update for above changes.
3541 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3543 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3544 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3545 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3546 * treestructu.def (TS_TYPE): Remove.
3547 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3550 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3553 * tree-ssa.c (reset_debug_uses): New function.
3554 * tree-flow.h (reset_debug_uses): New prototype.
3555 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3556 * tree-loop-distribution.c (generate_loops_for_partition): Call
3557 reset_debug_uses on the stmts that will be removed. Keep around
3558 all debug stmts, don't count them as bits in partition bitmap.
3559 (generate_builtin): Don't count debug stmts or labels as bits in
3562 2011-05-11 Richard Guenther <rguenther@suse.de>
3564 * gimple.c (gimple_type_hash_1): Merge with ...
3565 (gimple_type_hash): ... this.
3566 (gtc_visit): Remove mode parameter and simplify accordingly.
3567 (gimple_types_compatible_p_1): Likewise.
3568 (gimple_types_compatible_p): Likewise.
3569 (iterative_hash_gimple_type): Likewise.
3571 (gimple_type_eq): Adjust.
3573 2011-05-11 Revital Eres <revital.eres@linaro.org>
3575 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3576 enters the branch create an anti edge in the opposite direction
3577 to prevent the creation of reg-moves.
3578 * modulo-sched.c: Adjust comment to reflect the fact we are
3579 scheduling closing branch.
3580 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3581 (stage_count): New field in struct partial_schedule.
3582 (calculate_stage_count): New function.
3583 (normalize_sched_times): Rename to reset_sched_times and handle
3584 incrementing the sched time of the nodes by a constant value
3585 passed as parameter.
3586 (duplicate_insns_of_cycles): Skip closing branch.
3587 (sms_schedule_by_order): Schedule closing branch.
3588 (ps_insn_find_column): Handle closing branch.
3589 (sms_schedule): Call reset_sched_times and adjust the code to
3590 support scheduling of the closing branch.
3591 (ps_insert_empty_row): Update calls to normalize_sched_times
3592 and rotate_partial_schedule functions.
3594 2011-05-11 Richard Guenther <rguenther@suse.de>
3597 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3599 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3601 * opts.c (finish_options): Move warning settings from process_options.
3602 * toplev.c (process_options): Move warning settings to finish_options.
3604 2011-05-11 Richard Guenther <rguenther@suse.de>
3606 PR tree-optimization/18041
3607 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3608 (simplify_bitwise_binary): ... this. Handle operand conversions
3609 by applying them to the result instead.
3610 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3612 2011-05-11 Richard Guenther <rguenther@suse.de>
3614 * gimple.c (gimple_canonical_types_compatible_p): Split out
3615 from gimple_types_compatible_p and friends. Do not recurse
3616 to pointed-to types.
3617 (gimple_canonical_type_eq): Use it.
3618 (iterative_hash_canonical_type): Split out from
3619 iterative_hash_gimple_type and friends. Do not recurse
3620 to pointed-to types.
3621 (gimple_canonical_type_hash): Use it, allocate the hash here.
3623 2011-05-11 Revital Eres <revital.eres@linaro.org>
3625 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3628 2011-05-11 Revital Eres <revital.eres@linaro.org>
3630 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3631 instead of PREV_INSN.
3633 2011-05-11 Revital Eres <revital.eres@linaro.org>
3635 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3636 * loop-doloop.c (doloop_condition_get): Likewise.
3637 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3639 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3641 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3643 * tree.def (CASE_LABEL_EXPR): Add an operand.
3644 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3646 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3648 * c-decl.c (c_override_global_bindings_to_false): Remove.
3649 (global_bindings_p): Don't check
3650 c_override_global_bindings_to_false.
3651 * c-tree.h (c_override_global_bindings_to_false): Remove.
3652 * c-typeck.c (composite_type): Don't set
3653 c_override_global_bindings_to_false.
3655 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3657 PR target/48857, 48495
3658 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3660 (VSX_MOVE_MODE): Ditto.
3661 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3662 VSX vector types. Add V2DImode.
3663 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3664 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3665 (MODES_TIEABLE_P): Ditto.
3667 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3668 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3670 (init_cumulative_args): Ditto.
3671 (rs6000_function_arg_boundary): Ditto.
3672 (rs6000_function_arg_advance_1): Ditto.
3673 (rs6000_function_arg): Ditto.
3674 (rs6000_function_ok_for_sibcall): Ditto.
3675 (emit_frame_save): Ditto.
3676 (rs6000_function_value): Ditto.
3677 (rs6000_libcall_value): Ditto.
3679 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3681 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3682 i386/darwin-lib.h to $libgcc_tm_file.
3683 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3685 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3687 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3689 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3691 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3692 * config/rs6000/rs6000-tables.opt: New file (generated).
3693 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3694 rs6000/rs6000-tables.opt to extra_options.
3695 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3696 * config/rs6000/rs6000.c (rs6000_select): Remove.
3697 (processor_target_table): Move contents to rs6000-cpus.def.
3698 (darwin_rs6000_override_options): Check
3699 global_options_set.x_rs6000_cpu_index instead of
3700 rs6000_select[1].string.
3701 (rs6000_option_override_internal): Likewise.
3702 (rs6000_handle_option): Don't assert that global structures are in
3703 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3704 (rs6000_default_cpu): New variable.
3705 (rs6000_file_start): Set it instead of local default_cpu. Check
3706 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3707 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3708 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3709 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3710 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3711 rs6000_select): Remove.
3712 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3714 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3715 * config/rs6000/t-rs6000
3716 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3717 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3718 global_options_set.x_rs6000_cpu_index instead of
3719 rs6000_select[1].string.
3720 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3721 global_options_set.x_rs6000_cpu_index instead of
3722 rs6000_select[1].string.
3724 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3726 * config.gcc (libgcc_tm_file): Define instead of including files
3727 from ../../libgcc/config/ in tm_file.
3728 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3729 * configure: Regenerate.
3730 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3731 libgcc_tm.h, cs-libgcc_tm.h): New.
3732 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3733 (clean): Remove libgcc_tm.h.
3734 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3735 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3736 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3738 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3741 * config/avr/avr.c (avr_ret_register): Return unsigned int
3743 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3744 it to avr_libcall_value.
3745 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3747 (avr_expand_binop_builtin): Ditto.
3748 (avr_expand_unop_builtin): Ditto.
3750 2011-05-10 DJ Delorie <dj@redhat.com>
3752 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3753 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3754 * config/rx/rx.c (rx_align_for_label): Add label and
3755 uses_threshold parameters. Do not align when the label is not
3757 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3759 2011-05-10 Richard Guenther <rguenther@suse.de>
3761 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3762 a series of conversions and apply foldings similar to what
3764 (tree_ssa_forward_propagate_single_use_vars): Call it.
3766 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3768 PR tree-optimization/48611
3769 PR tree-optimization/48794
3770 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3771 referenced from RESX or EH_DISPATCH arguments.
3774 * dfp.c (decimal_to_decnumber): Handle conversion from
3775 dconst{1,2,m1,half}.
3777 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3779 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3780 for !flag_prefer_avx128.
3781 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3783 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3785 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3786 (fold_ternary_loc): Use expr_location_or.
3788 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3791 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3792 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3793 Pmode and mem_mode is not VOIDmode.
3795 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3797 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3798 TYPE_QUAL_RESTRICT): Convert to enum.
3800 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3802 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3803 (const_pow2_1_to_8_operand): Ditto.
3804 (const_pow2_1_to_128_operand): Ditto.
3805 (const_pow2_1_to_32768_operand): Ditto.
3806 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3807 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3808 in insn constraint to check integer value of operand 3.
3809 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3811 (PINSR_MODE): New mode iterator.
3812 (sse2p4_1): New mode attribute.
3813 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3814 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3815 iterator. Use const_int_operand instead of
3816 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3817 exact_log2 in insn constraint to check integer value of operand 3.
3819 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3821 * config/i386/sse.md (blendbits): Remove mode attribute.
3822 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3823 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3824 Check integer value of operand 3 in insn constraint.
3826 2011-05-09 Richard Guenther <rguenther@suse.de>
3828 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3830 (lto_symtab_merge): Likewise. Do not register types here.
3831 (lto_symtab_merge_decls_2): Likewise.
3832 (lto_symtab_merge_decls_1): Likewise.
3833 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3834 * gimple.c (enum gtc_mode): Declare.
3835 (gimple_types_compatible_p): Make static.
3837 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3839 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3840 temporary register to match Pmode.
3842 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3844 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3845 and *vec_concatv4si_1_avx.
3847 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3849 PR rtl-optimization/48927
3850 * ira-conflicts.c (commutative_constraint_p): Use
3851 recog_data.alternative_enabled_p to disable alternatives where
3852 "enabled" attribute is false.
3853 (get_dup_num): Ditto.
3854 * ira-lives.c (single_reg_class): Ditto.
3855 (ira_implicitly_set_insn_hard_regs): Ditto.
3857 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3859 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3860 (dataflow_set_preserve_mem_locs): Likewise.
3862 2011-05-09 Philipp Thomas <pth@suse.de>
3864 * config/mep/mep.c (mep_validate_vliw): Syntax description
3865 should not be translated.
3867 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3869 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3870 * config/mips/mips-tables.opt: New file (generated).
3871 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3872 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3873 MIPS_ARCH_OPTION_NATIVE): Define.
3874 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3876 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3877 mips_parse_cpu): Remove.
3878 (mips_cpu_info_from_opt, mips_default_arch): New.
3879 (mips_handle_option): Don't assert that global structures are in
3880 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3881 (mips_option_override): Use new variables and functions to set
3882 state of these options. Use strcmp to check for individual CPU names.
3883 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3885 * config/mips/mips.opt (march=): Use ToLower and Enum.
3886 (mips): Use ToLower, Enum and Var.
3887 (mtune=): Use ToLower and Enum.
3888 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3890 2011-05-08 Jan Hubicka <jh@suse.cz>
3892 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3893 Arrange type pairs to be UID ordered.
3894 (gimple_lookup_type_leader): Make inline.
3896 2011-05-09 Nick Clifton <nickc@redhat.com>
3899 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3903 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3906 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3908 * combine.c (simplify_comparison): Abstract out parts into...
3909 (simplify_compare_const): ... new function.
3910 (try_combine): Generalize parallel arithmetic/compare combining
3911 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3913 2011-05-08 Jan Hubicka <jh@suse.cz>
3915 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3916 (cgraph_create_virtual_clone): Call hooks once virtual clone
3918 * cgraph.h (cgraph_clone_node): Update prototype.
3919 * ipa-cp.c (ipcp_estimate_growth): Use
3920 estimate_ipcp_clone_size_and_time.
3921 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3922 * lto-cgraph.c (input_node): Update.
3923 * ipa-inline.c (recursive_inlining): Update.
3924 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3925 (evaluate_conditions_for_known_args): Break out from ...
3926 (evaluate_conditions_for_edge): ... here.
3927 (evaluate_conditions_for_ipcp_clone): New function.
3928 (inline_node_duplication_hook): Update clone summary based
3930 (estimate_callee_size_and_time): Rename to ...
3931 (estimate_node_size_and_time): take NODE instead of EDGE;
3932 take POSSIBLE_TRUTHS as argument.
3933 (estimate_callee_size_and_time): Update.
3934 (estimate_ipcp_clone_size_and_time): New function.
3935 (do_estimate_edge_time): Update.
3937 2011-05-08 Richard Guenther <rguenther@suse.de>
3941 * expmed.c (expand_shift_1): Compute adjusted constant shift
3944 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3946 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3948 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3950 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3952 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3954 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3956 2011-05-07 Jan Hubicka <jh@suse.cz>
3958 * ipa-inline-transform.c (inline_call): Account when program size
3960 * ipa-inline.c (relative_time_benefit): New function.
3961 (edge_badness): Reorganize to be power 2 based; fix thinko when
3962 computing badness for negative growth; update comments to match
3963 reality; better dumps.
3965 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3967 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3968 type to bool and adjust comment.
3969 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3970 (fold_mathfn_compare): Remove calls to global_bindings_p.
3971 (fold_inf_compare): Likewise.
3972 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3973 * c-tree.h (global_bindings_p): Adjust prototype.
3974 * c-decl.c (global_bindings_p): Return bool and simplify.
3976 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3978 PR tree-optimization/48837
3979 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3980 when accumulator transformation is performed.
3982 2011-05-06 Jan Hubicka <jh@suse.cz>
3984 * i386.h (ix86_tune_indices): Add
3985 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3986 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3987 * i386.c (initial_ix86_tune_features): Add
3988 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3989 (software_prefetching_beneficial_p): Remove predicate.
3990 (ix86_option_override_internal): Use new macro.
3992 2011-05-06 Jan Hubicka <jh@suse.cz>
3994 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3996 2011-05-06 Jan Hubicka <jh@suse.cz>
3998 * cgraph.c (cgraph_add_thunk): Create real function node instead
3999 of alias node; finalize it and mark needed/reachale; arrange visibility
4000 to be right and add it into the corresponding same comdat group list.
4001 (dump_cgraph_node): Dump thunks.
4002 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4003 cgraph_function_with_gimple_body_p,
4004 cgraph_first_function_with_gimple_body,
4005 cgraph_next_function_with_gimple_body): New functions.
4006 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4008 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4009 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4010 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4011 devirtualization when optimizing.
4012 (verify_cgraph_node): Verify thunks.
4013 (cgraph_analyze_function): Analyze thunks.
4014 (cgraph_mark_functions_to_output): Output thunks only in combination
4015 with function they are assigned to.
4016 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4017 alias into normal node.
4018 (assemble_thunks): New functoin.
4019 (cgraph_expand_function): Use it.
4020 * lto-cgraph.c (lto_output_node): Stream thunks.
4021 (input_overwrite_node): Stream in thunks.
4022 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4023 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4024 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4025 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4026 (inline_analyze_function): Do not care about thunk jump functions.
4027 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4028 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4029 cgraph_function_with_gimple_body_p.
4030 * passes.c (do_per_function_toporder): Use
4031 cgraph_function_with_gimple_body_p.
4032 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4033 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4034 (function_called_by_processed_nodes_p): Likewise.
4036 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4038 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4039 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4041 (mabi=): Replace with separate entries for mabi=altivec,
4042 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4043 mabi=ieeelongdouble and mabi=ibmlongdouble.
4044 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4045 check for -mabi=spe without SPE ABI support here.
4046 (rs6000_handle_option): Replace OPT_mabi_ handling with
4047 OPT_mabi_altivec and OPT_mabi_spe handling.
4049 2011-05-06 Cary Coutant <ccoutant@google.com>
4051 * dwarf2out.c (contains_subprogram_definition): New function.
4052 (should_move_die_to_comdat): Call it.
4054 2011-05-06 Jeff Law <law@redhat.com>
4056 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4057 remove_ctrl_stmt_and_useless_edges.
4058 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4059 (fixup_template_block, thread_single_edge): Likewise.
4060 (mark_threaded_blocks): Use THREAD_TARGET.
4062 2011-05-06 Alan Modra <amodra@gmail.com>
4065 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4066 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4068 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4070 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4071 constraint modifier to "r".
4073 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4075 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4076 fall through for OPT_mcmodel_.
4078 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4080 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4082 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4084 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4087 * config/arm/arm.opt (marm): Document it.
4088 (mthumb): Reject negative variant.
4090 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4093 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4094 Fix typo in "ccvt" variable name.
4096 2011-05-06 Tristan Gingold <gingold@adacore.com>
4099 * config/vms/vms-ar.c (main): Remove cwd variable.
4101 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4104 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4106 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4108 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4109 * gimplify.c (gimplify_switch_expr): Likewise.
4110 * omp-low.c (expand_omp_sections): Likewise.
4111 * tree-eh.c (lower_try_finally_switch): Likewise.
4112 (lower_eh_dispatch): Likewise.
4113 * tree.h (build_case_label): Declare.
4114 * tree.c (build_case_label): Define.
4116 2011-05-05 Jason Merrill <jason@redhat.com>
4119 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4120 (copy_statement_list): Don't recurse.
4121 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4124 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4126 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4127 through from -mfpu= handling.
4128 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4130 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4132 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4135 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4137 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4139 (hppa[12]*-*-hpux11*): Ditto.
4140 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4141 * config/ia64/hpux-unix2003.h: New.
4142 * config/pa/pa-hpux1131.opt: New.
4143 * config/pa/pa-hpux1131.h: New.
4144 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4145 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4146 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4148 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4151 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4152 instead of mode as 3rd argument to recursive call.
4153 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4154 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4156 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4157 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4158 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4159 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4161 2011-05-05 Julian Brown <julian@codesourcery.com>
4163 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4164 parenthesis in D-register case.
4166 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4168 * opt-functions.awk (var_type_struct): Handle Enum options.
4169 * optc-gen.awk: Don't check range of variables of character type.
4170 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4171 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4172 rs6000_sdata_name, rs6000_explicit_options): Remove.
4173 (rs6000_option_override_internal): Check for -malign-power here.
4174 Use global_options_set instead of rs6000_explicit_options.
4175 (rs6000_parse_fpu_option): Remove.
4176 (rs6000_handle_option): Access variables via opts and opts_set
4177 pointers. Use error_at and warning_at. Add fall-through
4178 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4179 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4180 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4181 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4182 here. Don't use rs6000_parse_fpu_option.
4183 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4184 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4185 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4187 (mspe): Use Var and Save.
4188 (mtraceback=): Use Enum and Var.
4189 (rs6000_traceback_type): New Enum and EnumValue entries.
4190 (mfloat-gprs=): Use Enum, Var and Save.
4191 (rs6000_float_gprs): New Enum and EnumValue entries.
4192 (mlong-double-): use Var and Save.
4193 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4194 (malign-): Use Enum and Var.
4195 (rs6000_alignment_flags): New Enum and EnumValue entries.
4197 (fpu_type_t): New Enum and EnumValue entries.
4198 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4199 global_options_set instead of rs6000_explicit_options.
4200 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4201 global_options_set instead of rs6000_explicit_options.
4202 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4203 global_options_set instead of rs6000_explicit_options.
4204 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4205 global_options_set instead of rs6000_explicit_options.
4206 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4207 global_options_set instead of rs6000_explicit_options.
4208 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4209 global_options_set instead of rs6000_explicit_options.
4210 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4212 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4213 global_options_set instead of rs6000_explicit_options.
4214 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4215 (rs6000_cmodel): New Enum and EnumValue entries.
4216 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4217 global_options_set instead of rs6000_explicit_options.
4218 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4219 (mtls-size=): Use Enum and Var.
4220 (rs6000_tls_size): New Enum and EnumValue entries.
4222 2011-05-05 Michael Matz <matz@suse.de>
4224 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4225 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4226 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4227 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4228 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4229 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4230 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4231 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4232 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4233 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4234 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4235 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4236 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4237 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4238 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4239 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4241 2011-05-05 Richard Guenther <rguenther@suse.de>
4243 * expmed.c (expand_variable_shift): Rename to ...
4244 (expand_shift_1): ... this. Take an expanded shift amount.
4245 For rotates recurse directly not building trees for the shift amount.
4246 (expand_variable_shift): Wrap around expand_shift_1.
4247 (expand_shift): Adjust.
4249 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4251 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4253 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4255 * tree.h (get_pending_sizes): Remove prototype.
4256 (put_pending_size): Likewise.
4257 (put_pending_sizes): Likewise.
4258 * stor-layout.c (pending_sizes): Delete.
4259 (get_pending_sizes): Likewise.
4260 (put_pending_size): Likewise.
4261 (put_pending_sizes): Likewise.
4262 (variable_size): Do not call put_pending_size and tidy up.
4263 * function.h (struct function): Remove dont_save_pending_sizes_p.
4264 * lto-streamer-in.c (input_function): Do not stream it.
4265 * lto-streamer-out.c (output_function): Likewise.
4266 * tree-inline.c (initialize_cfun): Do not copy it.
4267 * c-decl.c (store_parm_decls): Do not set it.
4268 * omp-low.c (create_task_copyfn): Likewise.
4269 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4271 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4273 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4275 (*movdf_internal): Ditto.
4276 (*movdf_internal_nointeger): Ditto.
4277 (*movsf_internal): Ditto.
4279 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4281 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4282 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4283 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4284 (c_variable_size): Remove.
4285 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4286 call put_pending_sizes.
4287 (get_parm_info): Add parameter expr. Use it to set
4288 arg_info->pending_sizes.
4289 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4291 * c-parser.c (c_parser_parms_declarator): Update call to
4292 c_parser_parms_list_declarator.
4293 (c_parser_parms_list_declarator): Take parameter expr. Update
4294 call to push_parm_decl. Update recursive call. Don't call
4295 get_pending_sizes. Update calls to get_parm_info.
4296 (c_parser_objc_method_definition): Update calls to
4297 c_parser_objc_method_decl and objc_start_method_definition.
4298 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4299 (c_parser_objc_method_decl): Add parameter expr. Update call to
4301 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4302 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4303 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4305 2011-05-05 Michael Hope <michael.hope@linaro.org>
4308 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4311 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4313 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4314 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4315 (spu_output_mi_thunk): New function.
4317 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4319 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4320 targetm.asm_out.print_operand.
4321 * config/sol2.c: Include target.h.
4323 2011-05-04 Jan Hubicka <jh@suse.cz>
4325 * ipa-inline.c (reset_edge_caches): New function.
4326 (update_caller_keys): Add check_inlinablity_for; do not
4327 reset edge caches; remove now unnecesary loop.
4328 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4329 (update_all_callee_keys): Likewise.
4330 (inline_small_functions): Sanity check cache; update code
4333 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4335 PR rtl-optimization/47612
4336 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4337 as the last insn of the sequence to be moved.
4339 2011-05-04 Tobias Burnus <burnus@net-b.de>
4342 * doc/invoke.texi (Ofast): Document that it
4343 enables Fortran's -fno-protect-parens.
4345 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4347 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4349 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4351 * stor-layout.c (variable_size): Do not issue errors.
4353 2011-05-04 Richard Guenther <rguenther@suse.de>
4355 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4356 for array-ref indices.
4357 (tree_coverage_counter_addr): Likewise.
4358 (build_fn_info_type): Use size_int for index types.
4359 (build_gcov_info): Likewise.
4361 2011-05-04 Richard Guenther <rguenther@suse.de>
4363 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4365 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4366 for constructor indices.
4367 (push_init_level): Likewise.
4369 2011-05-04 Richard Guenther <rguenther@suse.de>
4371 * explow.c (promote_mode): Move variable declarations before code.
4373 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4375 * tree.h (build_function_type_array): Declare.
4376 (build_varargs_function_type_array): Declare.
4377 (build_function_type_vec, build_varargs_function_type_vec): Define.
4378 * tree.c (build_function_type_array_1): New function.
4379 (build_function_type_array): New function.
4380 (build_varargs_function_type_array): New function.
4382 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4384 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4385 before setting STMT_VINFO_TYPE.
4387 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4389 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4390 instead of spu_pass_by_reference.
4392 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4394 * calls.c (emit_library_call_value_1): Invoke
4395 promote_function_mode hook on libcall arguments.
4396 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4397 argument being NULL.
4398 * targhooks.c (default_promote_function_mode): Lisewise.
4399 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4400 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4402 * doc/tm.texi: Document that TYPE argument might be NULL.
4404 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4406 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4408 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4411 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4413 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4415 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4416 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4418 * mips-tfile.c: ... here.
4419 Don't include coretypes.h, tm.h, filenames.h.
4420 (saber_stop): Remove definition and all calls.
4421 [__SABER__]: Remove.
4422 (__LINE__): Remove default.
4423 (Size_t, Ptrdiff_t): Remove definitions.
4424 Replace by size_t, ptrdiff_t.
4425 [!MIPS_DEBUGGING_INFO]: Remove.
4426 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4427 (progname): Add const.
4429 Replace all uses by static.
4430 (ALIGN_SYMTABLE_OFFSET): Remove default.
4431 * mips-tdump.c: Don't include coretypes.h, tm.h.
4432 Remove !MIPS_IS_STAB guard.
4433 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4434 $(TM_H), filenames.h dependencies.
4435 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4437 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4440 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4441 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4443 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4446 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4447 account and save/restore RETS.
4448 (PROFILE_BEFORE_PROLOGUE): Define.
4449 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4450 the push insn to use predecrement.
4452 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4455 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4457 2011-05-04 Nick Clifton <nickc@redhat.com>
4459 * config/mn10300/mn10300.c: Include cfgloop.h.
4461 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4462 Lcc or a FLcc insn into the instruction stream.
4463 (mn10300_block_contains_call): New function. Returns true if the
4464 given basic block contains a CALL insn.
4465 (mn10300_loop_contains_call_insn): New function. Returns true if
4466 the given loop contains a CALL insn.
4467 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4468 to use the SETLB and Lcc or FLcc insns.
4469 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4470 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4471 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4472 disable the SETLB optimization.
4473 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4474 __SETLB__ or __NO_SETLB__.
4475 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4476 (movsf_internal): Handle MDR register.
4477 (cmpsi): Make visible.
4478 (setlb): New pattern.
4480 (FLcc): New pattern.
4482 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4485 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4486 for reg<->xmm moves.
4487 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4488 (vec_concatv2di_rex64_sse): Ditto.
4489 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4490 (*vec_extractv2di_1_rex64): Ditto.
4493 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4495 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4497 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4499 2011-05-04 Richard Guenther <rguenther@suse.de>
4501 * tree.h (int_const_binop): Remove notrunc argument.
4502 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4503 create integer constants that are properly truncated.
4504 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4505 (const_binop): Remove zero notrunc argument to int_const_binop.
4506 (size_binop_loc): Likewise.
4507 (fold_div_compare): Likewise.
4508 (maybe_canonicalize_comparison_1): Likewise.
4509 (fold_comparison): Likewise.
4510 (fold_binary_loc): Likewise.
4511 (multiple_of_p): Likewise.
4512 * expr.c (store_constructor): Likewise.
4513 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4514 (maybe_fold_stmt_addition): Likewise.
4515 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4516 * stor-layout.c (layout_type): Likewise.
4517 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4518 * tree-sra.c (build_ref_for_offset): Likewise.
4519 (build_user_friendly_ref_for_offset): Likewise.
4520 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4521 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4522 * tree-ssa-loop-niter.c (inverse): Likewise.
4523 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4524 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4525 * tree-switch-conversion.c (check_range): Likewise.
4526 (build_constructors): Likewise.
4527 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4528 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4529 (extract_range_from_assert): Likewise.
4530 (vrp_int_const_binop): Likewise.
4531 (extract_range_from_binary_expr): Likewise.
4532 (extract_range_from_unary_expr): Likewise.
4533 (check_array_ref): Likewise.
4534 (find_case_label_range): Likewise.
4535 (simplify_div_or_mod_using_ranges): Likewise.
4536 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4537 comparing case labels for merging.
4539 2011-05-03 Mark Wielaard <mjw@redhat.com>
4541 * dwarf2out.c (debug_str_hash_forced): Removed.
4542 (gen_label_for_indirect_string): Removed.
4543 (get_debug_string_label): Removed.
4544 (AT_string_form): Generate label directly.
4545 (output_indirect_string): Test indirect_string_node for
4546 DW_FORM_strp instead of checking label and refcount.
4547 (prune_indirect_string): Removed.
4548 (prune_unused_types): Don't check debug_str_hash_forced or
4549 call prune_indirect_string.
4551 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4554 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4556 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4560 * combine.c (try_combine): Skip debug insns at m_split tests.
4562 2011-04-26 Mark Wielaard <mjw@redhat.com>
4565 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4566 when info_section_emitted.
4568 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4570 * config/mips/mips-opts.h: New.
4571 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4573 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4574 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4575 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4577 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4579 (mips_abi, mips_code_readable): Don't declare.
4580 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4581 (mabi=): Use Enum and Var.
4582 (mips_abi): New Enum and EnumValue entries.
4583 (mcode-readable=): Use Enum and Var.
4584 (mips_code_readable_setting): New Enum and EnumValue entries.
4585 (mr10k-cache-barrier=): Use Enum and Var.
4586 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4588 2011-05-03 Jan Hubicka <jh@suse.cz>
4590 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4591 replace hash by pointer map.
4592 (cgraph_node_set_element_def, cgraph_node_set_element,
4593 const_cgraph_node_set_element, varpool_node_set_element_def,
4594 varpool_node_set_element, const_varpool_node_set_element): Remove.
4595 (free_cgraph_node_set, free_varpool_node_set): New function.
4596 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4597 * tree-emutls.c: Free varpool node set.
4598 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4599 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4600 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4601 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4602 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4603 Move here from ipa.c; implement using pointer_map
4604 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4605 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4606 debug_cgraph_node_set, varpool_node_set_new,
4607 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4608 dump_varpool_node_set, debug_varpool_node_set):
4609 Move to ipa-uitls.c.
4610 * passes.c (ipa_write_summaries): Update.
4612 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4614 From Mike Frysinger:
4615 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4616 bf542/bf544/bf547/bf548/bf549.
4618 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4620 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4622 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4625 * config/bfin/bfin.md (MOVCC): New mode_macro.
4626 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4627 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4628 comments from generated assembly.
4630 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4633 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4634 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4635 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4636 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4637 * config/bfin/lib1funcs.asm (___muldi3): New function.
4639 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4641 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4642 build_function_type_list instead of build_function_type.
4643 Rearrange initialization of `args' to do so.
4645 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4647 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4648 instead of build_function_type.
4650 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4652 * config/rs6000/rs6000.c (spe_init_builtins): Call
4653 build_function_type_list instead of build_function_type.
4654 (paired_init_builtins, altivec_init_builtins): Likewise.
4655 (builtin_function_type): Likewise.
4657 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4659 * config/sh/sh.c (sh_media_init_builtins): Call
4660 build_function_type_list instead of build_function_type.
4662 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4664 * config/sparc/sparc.c (sparc_file_end): Call
4665 build_function_type_list instead of build_function_type.
4667 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4669 * config/alpha/alpha.c (alpha_init_builtins): Call
4670 build_function_type_list instead of build_function_type.
4672 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4674 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4675 build_function_type_list instead of build_function_type.
4677 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4679 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4680 build_function_type_list instead of build_function_type.
4681 Delete `endlink' variable.
4683 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4685 * config/avr/avr.c (avr_init_builtins): Call
4686 build_function_type_list instead of build_function_type.
4688 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4690 * config/picochip/picochip.c (picochip_init_builtins): Call
4691 build_function_type_list instead of build_function_type.
4692 Delete `endlink' variable.
4694 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4696 * config/bfin/bfin.c (bfin_init_builtins): Call
4697 build_function_type_list instead of build_function_type.
4699 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4702 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4703 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4705 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4708 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4709 libbffastfp overrides libgcc when -mfast-fp.
4711 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4713 Originally from Bernd Schmidt
4714 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4715 * config/bfin/bfin.c (override_options): Test it and error if
4718 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4720 Originally From Bernd Schmidt
4721 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4724 2011-05-03 Jeff Law <law@redhat.com>
4726 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4727 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4728 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4729 than accessing AUX field directly. Free the AUX field before
4731 (thread_block, thread_through_loop_header): Likewise.
4732 (thread_single_edge, mark_threaded_blocks): Likewise.
4733 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4734 (register_jump_thread): Do not attempt to thread to a NULL edge.
4736 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4738 * function.c (init_function_start): Call decide_function_section.
4739 * varasm.c (decide_function_section): New function.
4740 (assemble_start_function): When not using
4741 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4742 or first_function_block_is_cold.
4743 * rtl.h (decide_function_section): Declare.
4745 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4746 Jakub Jelinek <jakub@redhat.com>
4749 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4750 only succeed if req_mode is the same as set_mode.
4752 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4754 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4755 * genemit.c (gen_exp): Handle RETURN.
4756 * emit-rtl.c (verify_rtx_sharing): Likewise.
4757 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4758 * rtl.c (copy_rtx): RETURN is shared.
4759 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4761 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4762 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4763 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4764 * config/cris/cris.c (cris_expand_return): Likewise.
4765 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4766 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4767 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4768 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4769 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4771 * config/v850/v850.c (expand_epilogue): Likewise.
4772 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4773 * config/arm/arm.md (epilogue): Likewise.
4774 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4775 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4776 variable to ret_reg.
4778 2011-05-03 Richard Guenther <rguenther@suse.de>
4781 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4782 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4783 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4785 2011-05-03 Richard Guenther <rguenther@suse.de>
4787 * c-decl.c (grokdeclarator): Instead of looking at
4788 TREE_OVERFLOW check if the constant fits in the index type.
4790 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4792 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4793 (vec_store_lanes<mode><mode>): Likewise.
4795 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4797 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4798 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4799 convert_optab_index values.
4800 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4801 * genopinit.c (optabs): Initialize the new optabs.
4802 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4803 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4804 (expand_STORE_LANES): New functions.
4805 * tree.h (build_array_type_nelts): Declare.
4806 * tree.c (build_array_type_nelts): New function.
4807 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4808 (vect_model_load_cost): Likewise.
4809 (vect_store_lanes_supported, vect_load_lanes_supported)
4810 (vect_record_strided_load_vectors): Declare.
4811 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4812 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4813 (vect_transform_strided_load): Split out statement recording into...
4814 (vect_record_strided_load_vectors): ...this new function.
4815 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4816 (write_vector_array, create_array_ref): New functions.
4817 (vect_model_store_cost): Add store_lanes_p argument.
4818 (vect_model_load_cost): Add load_lanes_p argument.
4819 (vectorizable_store): Try to use store-lanes functions for
4821 (vectorizable_load): Likewise load-lanes and loads.
4822 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4823 to vect_model_store_cost.
4824 (vect_build_slp_tree): Likewise vect_model_load_cost.
4826 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4828 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4829 * hooks.c (hook_bool_mode_uhwi_false): New function.
4830 * target.def (array_mode_supported_p): New hook.
4831 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4832 * doc/tm.texi: Regenerate.
4833 * stor-layout.c (mode_for_array): New function.
4834 (layout_type): Use it.
4835 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4836 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4838 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4841 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4842 for -fstack-check if the size to allocate is negative.
4844 2011-05-02 Lawrence Crowl <crowl@google.com>
4846 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4847 (timevar_cond_start): New for starting a timer only when it is not
4849 (timevar_cond_stop): New for stopping a timer when it was not already
4852 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4853 (timevar_cond_start): New as above.
4854 (timevar_cond_stop): New as above.
4856 * timevar.def: Add start/stop timers for compiler phases,
4857 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4858 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4859 and TV_PHASE_FINALIZE.
4860 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4861 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4862 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4863 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4864 Make unused TV_OVERLOAD into a start/stop timer.
4866 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4867 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4868 to indicate that they are start/stop timers.
4870 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4871 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4872 Move initialization to do_compile.
4873 (do_compile): Add initialization from above.
4874 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4876 * c-decl.c (c_write_global_declarations): Add start/stop of
4877 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4879 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4880 or TV_PARSE_INLINE, as appropriate.
4881 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4882 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4884 2011-05-02 Jason Merrill <jason@redhat.com>
4887 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4889 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4892 * c-decl.c (finish_decl): Only create a composite if the types are
4895 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4897 * config/fr30/fr30-protos.h (Mmode): Don't define.
4898 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4899 definition where used.
4900 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4901 define. Expand definitions where used.
4902 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4903 Expand definitions where used.
4904 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4905 rx_function_arg, rx_function_arg_advance,
4906 rx_function_arg_boundary): Expand definitions of those macros.
4907 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4908 definition where used.
4910 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4912 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4914 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4915 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4916 with *movv2sf_internal_rex64_avx.
4917 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4918 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4919 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4920 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4921 "vex" in "prefix" attribute calculation.
4922 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4924 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4927 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4928 inputs match the output.
4930 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4933 * config/m68k/m68k.c (m68k_expand_prologue): Set
4934 current_function_static_stack_size.
4936 2011-05-02 Jan Hubicka <jh@suse.cz>
4938 * lto-streamer.c (lto_streamer_cache_insert_1,
4939 lto_streamer_cache_lookup, lto_streamer_cache_create,
4940 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4941 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4943 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4945 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4946 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4947 config/m68k/t-opts: New files.
4948 * config/m68k/m68k-tables.opt: New file (generated).
4949 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4950 extra_options and m68k/t-opts to tmake_file.
4951 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4952 (all_isas): Initialize using m68k-isas.def.
4953 (all_microarchs): Initialize using m68k-microarchs.def.
4954 (m68k_find_selection): Remove.
4955 (m68k_handle_option): Don't assert that global structures are in
4956 use. Use error_at. Access variables via opts pointer. Don't
4957 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4958 directly for -m68020-40 and -m68020-60.
4959 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4960 m68k_tune_entry here.
4961 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4963 (m68k_library_id_string): Remove declaration.
4964 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4965 (m68k_library_id_string): New Variable.
4966 (march=, mcpu=, mtune=): Use Enum and Var.
4968 2011-05-02 Richard Guenther <rguenther@suse.de>
4970 * varasm.c (output_constructor_regular_field): Compute zero-based
4971 index with double-ints. Make sure to ICE instead of producing
4973 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4974 in asserts. Properly use a signed type.
4976 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4978 * config/i386/sse.md (V): New mode iterator.
4979 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4981 (V_256): Rename from AVX256MODE.
4982 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4983 condition to all users.
4985 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4986 condition to all users.
4987 (VF_128): Make V4SF mode unconditional.
4988 (VF_256): Rename from AVX256MODEF2P.
4989 (VI4F_128): Rename from SSEMODE4S.
4990 (VI8F_128): Rename from SSEMODE2D.
4991 (VI4F_256): Rename from AVX256MODE8P.
4992 (VI8F_256): Rename from AVX256MODE4P.
4993 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4994 (ssescalarmodesuffix): Remove SF and DF modes.
4995 (SSEMODE124): Remove.
4996 (SSEMODE1248): Ditto.
4997 (SSEMODEF2P): Ditto.
4998 (AVXMODEF2P): Ditto.
4999 (AVXMODEFDP): Ditto.
5000 (AVXMODEFSP): Ditto.
5001 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5003 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5005 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5006 xop_pcmov_<mode>256. Use V mode iterator.
5008 Adjust RTX patterns globally for renamed mode attributes.
5010 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5012 * haifa-sched.c (sched_emit_insn): Emit insn before first
5013 non-scheduled insn. Inform back-end about new insn. Add
5014 new insn to scheduled_insns list.
5016 2011-05-02 Richard Guenther <rguenther@suse.de>
5018 PR tree-optimization/48822
5019 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5020 (process_scc): Indicate which iteration we start.
5022 2011-05-02 Jan Hubicka <jh@suse.cz>
5024 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5025 (lto_section_overrun): New.
5026 * lto-section-out.c (append_block): Rename to ...
5027 (lto_append_block): ... this one; export.
5028 (lto_output_1_stream): Move lto lto-streamer.h
5029 (lto_output_data_stream): Update.
5030 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5031 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5034 2011-05-02 Richard Guenther <rguenther@suse.de>
5036 * tree.c (tree_code_counts): New global array.
5037 (record_node_allocation_statistics): Count individual tree codes.
5038 (dump_tree_statistics): Dump individual code stats.
5040 2011-05-01 Jan Hubicka <jh@suse.cz>
5042 * ipa-inline.c (caller_growth_limits): Fix thinko when
5043 looking for largest stack frame.
5044 * ipa-inline.h (dump_inline_summary): Declare.
5045 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5047 (dump_inline_summary): Export.
5048 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5050 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5052 * reginfo.c (memory_move_cost): Change rclass argument type form
5053 'enum reg_class' to reg_class_t.
5054 * reload.h (memory_move_cost): Update prototype.
5055 * postreload.c reload_cse_simplify_set): Change type dclass var to
5057 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5059 (ira_allocate_and_set_costs): Change aclass argument type form
5060 'enum reg_class' to reg_class_t.
5061 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5062 Change aclass argument type to reg_class_t.
5063 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5065 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5066 memory_move_cost call.
5068 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5069 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5070 Change type tmp var to reg_class_t.
5072 2011-04-30 Jan Hubicka <jh@suse.cz>
5074 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5075 inlining into function with flatten attribute.
5076 (want_inline_small_function_p): Be more realistic about inlining
5077 cold calls where callee size grows.
5079 2011-04-30 Jan Hubicka <jh@suse.cz>
5081 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5084 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5086 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5087 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5088 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5089 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5090 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5091 (print_operand): Rename to...
5092 (sparc_print_operand): ...this. Make static. Adjust
5093 sparc_print_operand function call.
5094 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5097 2011-04-30 Jan Hubicka <jh@suse.cz>
5100 * ipa-inline.c (early_inliner): Disable when doing late
5101 addition of function.
5103 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5105 * dwarf2out.c (get_address_mode): New inline.
5106 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5107 if not dwarf_strict emit
5108 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5109 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5110 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5111 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5112 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5113 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5114 mem_loc_descriptor callers.
5115 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5116 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5117 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5118 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5119 (base_types): New variable.
5120 (get_base_type_offset, calc_base_type_die_sizes,
5121 base_type_for_mode, mark_base_types, base_type_cmp,
5122 move_marked_base_types): New functions.
5123 (calc_die_sizes): Assert that die_offset is 0 or equal to
5125 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5126 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5127 callers. If not dwarf_strict, call mem_loc_descriptor even for
5128 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5129 (gen_subprogram_die): Don't give up on call site parameters
5130 with non-integral or large integral modes. Adjust
5131 mem_loc_descriptor callers.
5132 (prune_unused_types): Call prune_unused_types_mark on base_types
5134 (resolve_addr): Call mark_base_types.
5135 (dwarf2out_finish): Call move_marked_base_types.
5137 PR tree-optimization/48809
5138 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5140 (gen_inbound_check): Don't compute index_expr - range_min in utype
5141 again, instead reuse SSA_NAME initialized in build_arrays.
5142 Remove two useless gsi_for_stmt calls.
5144 2011-04-29 Jeff Law <law@redhat.com>
5146 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5148 2011-04-29 Martin Jambor <mjambor@suse.cz>
5150 * cgraph.h (cgraph_postorder): Remove declaration.
5151 * ipa-utils.h (ipa_free_postorder_info): Declare.
5152 (ipa_reverse_postorder): Likewise.
5153 * cgraphunit.c: Include ipa-utils.h.
5154 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5155 * ipa-inline.c: Include ipa-utils.h.
5156 (ipa_inline): Update call to ipa_reverse_postorder.
5157 * ipa-pure-const.c (propagate_pure_const): Update call to
5158 ipa_reduced_postorder and ipa_print_order. Call
5159 ipa_free_postorder_info to clean up.
5160 (propagate_nothrow): Likewise.
5161 * ipa-reference.c (propagate): Removed a useless call to
5162 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5163 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5164 * ipa.c: Include ipa-utils.h.
5165 (ipa_profile): Update call to ipa_reverse_postorder.
5166 (cgraph_postorder): Moved to...
5167 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5168 (ipa_utils_print_order): Renamed to ipa_print_order.
5169 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5171 (ipa_free_postorder_info): New function.
5172 * passes.c: Include ipa-utils.h.
5173 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5174 (ipa_write_summaries): Likewise.
5175 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5176 (cgraphunit.o): Likewise.
5178 (ipa-inline.o): Likewise.
5180 2011-04-29 Jan Hubicka <jh@suse.cz>
5182 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5183 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5184 * ipa-inline.h (clause_t): Turn into unsigned int.
5185 * ipa-inline-analysis.c (add_clause): Do more simplification.
5186 (and_predicates): Shortcut more cases.
5187 (predicates_equal_p): Move forward; check that clauses are properly
5189 (or_predicates): Shortcut more cases.
5190 (edge_execution_predicate): Rewrite as...
5191 (set_cond_stmt_execution_predicate): ... this function; handle
5192 __builtin_constant_p.
5193 (set_switch_stmt_execution_predicate): New .
5194 (compute_bb_predicates): New.
5195 (will_be_nonconstant_predicate): Update TODO.
5196 (estimate_function_body_sizes): Use compute_bb_predicates
5197 and free them later, always try to estimate if stmt is constant.
5198 (estimate_time_after_inlining, estimate_size_after_inlining):
5199 Gracefully handle optimized out edges.
5200 (read_predicate): Fix off by one error.
5202 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5204 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5206 2011-04-27 Xinliang David Li <davidxl@google.com>
5208 * tree-profile.c (init_ic_make_global_vars): Set
5209 tls attribute on ic vars.
5210 * coverage.c (coverage_end_function): Initialize
5211 function_list with zero.
5213 2011-04-29 Richard Guenther <rguenther@suse.de>
5215 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5216 for the type of the result.
5217 (fold_builtin_isascii): Likewise.
5218 (fold_builtin_toascii): Use integer_type_node where appropriate.
5219 (fold_builtin_logb): Likewise.
5220 (fold_builtin_frexp): Likewise.
5221 (fold_builtin_strstr): Likewise.
5222 (fold_builtin_strpbrk): Likewise.
5223 (fold_builtin_fputs): Likewise.
5224 (fold_builtin_sprintf): Likewise.
5225 (fold_builtin_snprintf): Likewise.
5226 (fold_builtin_printf): Likewise.
5227 (do_mpfr_remquo): Use a proper type for the assigned constant.
5228 (do_mpfr_lgamma_r): Likewise.
5229 * dwarf2out.c (resolve_one_addr): Use size_int.
5230 * except.c (init_eh): Likewise.
5231 (assign_filter_values): Use integer_type_node for filter values.
5232 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5234 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5235 for EH region numbers.
5236 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5237 for the shift amount.
5239 2011-04-29 Richard Guenther <rguenther@suse.de>
5241 * expr.h (expand_shift): Rename to ...
5242 (expand_variable_shift): ... this.
5243 (expand_shift): Take a constant shift amount.
5244 * expmed.c (expand_shift): Rename to ...
5245 (expand_variable_shift): ... this.
5246 (expand_shift): New wrapper around expand_variable_shift.
5247 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5248 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5249 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5250 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5251 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5252 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5253 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5254 emit_store_flag_1, emit_store_flag): Likewise.
5255 * builtins.c (expand_builtin_signbit): Likewise.
5256 * calls.c (load_register_parameters): Likewise.
5257 * function.c (assign_parm_setup_block): Likewise.
5258 * lower-subreg.c (resolve_shift_zext): Likewise.
5259 * optabs.c (widen_bswap, expand_abs_nojump,
5260 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5261 * spu/spu.c (spu_expand_extv): Likewise.
5262 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5264 2011-04-29 Richard Guenther <rguenther@suse.de>
5266 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5267 for the remapped region number.
5268 * predict.c (build_predict_expr): Use integer_type_node for the
5270 * fold-const.c (fold_binary_loc): Use integer_type_node for
5271 the shift amount. Use a proper type for the PLUS_EXPR operand.
5273 2011-04-29 Michael Matz <matz@suse.de>
5275 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5276 other trees that just builtins.
5277 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5279 2011-04-29 Richard Guenther <rguenther@suse.de>
5281 * tree-nested.c (get_trampoline_type): Use size_int.
5282 (get_nl_goto_field): Likewise.
5283 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5285 (lower_eh_constructs_2): Likewise.
5286 (lower_resx): Likewise.
5287 (lower_eh_dispatch): Likewise.
5288 * tree-mudflap.c (mf_build_string): Use size_int.
5289 (mudflap_register_call): Use integer_type_node for the flag.
5290 (mudflap_enqueue_constant): Use size_int.
5291 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5292 instead of rebuilding it.
5294 2011-04-29 Richard Guenther <rguenther@suse.de>
5296 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5297 Handle OBJ_TYPE_REF.
5298 (find_func_aliases_for_call): Use it more consistently.
5300 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5302 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5303 (rank_for_schedule): Use it.
5304 (schedule_block): Set it.
5306 2011-04-28 David Li <davidxl@google.com>
5308 * tree.c (crc32_string): Use crc32_byte.
5309 (crc32_byte): New function.
5310 * tree.h (crc32_byte): New function.
5311 * gcov.c (read_graph_file): Handle new cfg_cksum.
5312 (read_count_file): Ditto.
5313 * profile.c (instrument_values): Ditto.
5314 (get_exec_counts): Ditto.
5315 (read_profile_edge_counts): Ditto.
5316 (compute_branch_probabilities): Ditto.
5317 (compute_value_histograms): Ditto.
5318 (branch_prob): Ditto.
5319 (end_branch_prob): Ditto.
5320 * coverage.c (read_counts_file): Ditto.
5321 (get_coverage_counts): Ditto.
5322 (tree_coverage_counter_addr): Ditto.
5323 (coverage_checksum_string): Ditto.
5324 (coverage_begin_output): Ditto.
5325 (coverage_end_function): Ditto.
5326 (build_fn_info_type): Ditto.
5327 (build_fn_info_value): Ditto.
5328 * libgcov.c (gcov_exit): Ditto.
5329 * gcov-dump.c (tag_function): Ditto.
5330 (compute_checksum): Remove.
5332 2011-04-29 Alan Modra <amodra@gmail.com>
5334 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5335 unspec plus offset. Tidy macho code.
5337 2011-04-29 Martin Jambor <mjambor@suse.cz>
5339 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5340 node instead of a decl. Update all callers.
5341 * cgraph.h: Update declaration.
5343 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5345 PR tree-optimization/48765
5346 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5347 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5348 to indicate if loop aware SLP is being used. Scan the statements
5349 and update the vectorization factor according to the type of
5350 vectorization before statement analysis.
5351 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5352 pass it to vect_analyze_loop_operations.
5353 (vectorizable_reduction): Set number of copies to 1 in case of pure
5355 * tree-vect-stmts.c (vectorizable_conversion,
5356 vectorizable_assignment, vectorizable_shift,
5357 vectorizable_operation, vectorizable_type_demotion,
5358 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5360 (vectorizable_condition): Move the check that it is not SLP
5361 vectorization before the number of copies check.
5362 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5363 to vectorize the loop using SLP.
5365 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5368 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5371 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5373 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5374 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5375 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5376 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5377 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5379 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5380 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5381 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5382 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5383 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5384 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5386 * config/i386/linux.h (REG_NAME): Don't define.
5387 * config/i386/linux64.h (REG_NAME): Don't define.
5388 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5389 Undefine before defining.
5391 2011-04-28 Jan Hubicka <jh@suse.cz>
5393 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5394 nonconstant_names array.
5395 (estimate_function_body_sizes): Build nonconstant_names array; handle
5396 BUILT_IN_CONSTANT_P.
5398 2011-04-28 Richard Guenther <rguenther@suse.de>
5402 2011-04-28 Richard Guenther <rguenther@suse.de>
5404 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5405 as late as possible.
5407 2011-04-28 Richard Guenther <rguenther@suse.de>
5409 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5410 (debug_constraint): Do it here.
5411 (dump_constraints): And here.
5412 (rewrite_constraints): And here.
5413 (dump_constraint_edge): Remove.
5414 (dump_constraint_graph): Rewrite to produce DOT output.
5415 (solve_constraints): Build succ graph as late as possible.
5416 Dump constraint graphs before and after solving.
5418 2011-04-28 Richard Guenther <rguenther@suse.de>
5420 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5421 New function split out from ...
5422 (find_func_aliases): ... here. Call it.
5423 (find_func_aliases_for_call): Likewise.
5425 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5427 * internal-fn.h (internal_fn_name_array): Declare.
5428 (internal_fn_flags_array): Likewise.
5430 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5432 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5433 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5435 (ssemodefsuffix): Remove.
5436 (ssevecmodesuffix): New mode attribute.
5437 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5438 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5439 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5440 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5441 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5442 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5443 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5444 ssemodesuffix mode attribute.
5445 (float splitters): Use ssevecmodesuffix mode attribute.
5446 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5447 (sseinsmode): Rename from avxvecmode.
5448 (avxsizesuffix): Rename from avxmodesuffix.
5449 (sseintvecmode): Rename from avxpermvecmode.
5450 (ssedoublevecmode): Rename from ssedoublesizemode.
5451 (ssehalfvecmode): Rename from avxhalfvecmode.
5452 (ssescalarmode): Rename from avxscalarmode.
5453 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5454 templates for ssemodesuffix mode attribute.
5455 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5458 Adjust RTX patterns globally for renamed mode attributes.
5460 2011-04-27 Jan Hubcika <jh@suse.cz>
5462 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5463 * ipa-inline-analysis.c: Include alloc-pool.h.
5464 (edge_predicate_pool): New.
5465 (trye_predicate_p): New function
5466 (false_predicate_p): New function.
5467 (add_clause): Sanity check that false clauses are "optimized";
5468 never add clauses to predicate that is already known to be false.
5469 (and_predicate): Use flase_predicate_p.
5470 (evaulate_predicate): Rename to ...
5471 (evaluate_predicate): ... this one; update all callers; assert
5472 that false is not listed among possible truths.
5473 (dump_predicate): Use true_predicate_p.
5474 (account_size_time): Use false_predicate_p.
5475 (evaulate_conditions_for_edge): Rename to ...
5476 (evaluate_conditions_for_edge) ... this one.
5477 (edge_set_predicate): New function.
5478 (inline_edge_duplication_hook): Duplicate edge predicates.
5479 (inline_edge_removal_hook): Free edge predicates.
5480 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5481 (dump_inline_summary): Update.
5482 (estimate_function_body_sizes): Set edge predicates.
5483 (estimate_calls_size_and_time): Handle predicates.
5484 (estimate_callee_size_and_time): Update.
5485 (remap_predicate): Add toplev_predicate; update comment.
5486 (remap_edge_predicates): New function.
5487 (inline_merge_summary): Compute toplev predicate; update.
5488 (read_predicate): New function.
5489 (read_inline_edge_summary): Use it.
5490 (inline_read_section): Likewise.
5491 (write_predicate): New function.
5492 (write_inline_edge_summary): Use it.
5493 (inline_write_summary): Likewise.
5494 (inline_free_summary): Free alloc pool and edge summary vec.
5496 2011-04-27 Richard Guenther <rguenther@suse.de>
5498 * tree-ssa-structalias.c (changed_count): Remove.
5499 (changed): Use a bitmap.
5500 (unify_nodes): Adjust.
5501 (do_sd_constraint): Likewise.
5502 (do_ds_constraint): Likewise.
5503 (do_complex_constraint): Likewise.
5504 (solve_graph): Likewise.
5506 2011-04-27 Jan Hubicka <jh@suse.cz>
5508 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5510 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5512 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5513 (avx_vperm2f128_*_operand): Ditto.
5514 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5515 Use avx_vpermilp_parallel in insn condition.
5516 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5517 Use avx_vperm2f128_parallel in insn condition.
5519 2011-04-27 Richard Guenther <rguenther@suse.de>
5521 * Makefile.in (tree-ssa-structalias.o): Remove
5522 gt-tree-ssa-structalias.h dependency.
5523 (GTFILES): Remove tree-ssa-structalias.c.
5524 * tree.c (allocate_decl_uid): New function.
5525 (make_node_stat): Use it.
5526 (copy_node_stat): Likewise.
5527 * tree.h (allocate_decl_uid): Declare.
5528 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5529 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5530 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5531 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5532 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5533 (struct heapvar_map): Likewise.
5534 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5535 heapvar_insert): Likewise.
5536 (make_heapvar_for): Rename to ...
5537 (make_heapvar): ... this. Simplify.
5538 (fake_var_decl_obstack): New global var.
5539 (build_fake_var_decl): New function.
5540 (make_constraint_from_heapvar): Adjust.
5541 (handle_lhs_call): Likewise.
5542 (create_function_info_for): Likewise.
5543 (intra_create_variable_infos): Likewise.
5544 (init_alias_vars): Allocate fake_var_decl_obstack.
5545 (init_alias_heapvars, delete_alias_heapvars): Remove.
5546 (compute_points_to_sets): Do not call init_alias_heapvars.
5547 (ipa_pta_execute): Likewise.
5548 (delete_points_to_sets): Free fake_var_decl_obstack.
5550 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5552 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5553 (si_from_UTItype, si_to_UTItype): New functions.
5554 (__udivmodti4): Use them to implement type-punning.
5555 * config/spu/multi3.c (union qword_TItype): New data type.
5556 (si_from_TItype, si_to_TItype): New functions.
5557 (__multi3): Use them to implement type-punning.
5559 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5561 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5563 2011-04-27 Jan Hubicka <jh@suse.cz>
5565 * ipa-prop.c (function_insertion_hook_holder): New holder.
5566 (ipa_add_new_function): New function.
5567 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5568 Register/deregister holder.
5570 2011-04-27 Richard Guenther <rguenther@suse.de>
5572 PR tree-optimization/48772
5573 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5575 2011-04-27 Richard Guenther <rguenther@suse.de>
5577 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5578 TARGET_MEM_REF handling.
5580 2011-04-27 Nick Clifton <nickc@redhat.com>
5582 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5583 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5584 (REG_CLASS_NAMES): Likewise.
5585 (REG_CLASS_CONTENTS): Likewise.
5586 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5587 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5588 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5589 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5590 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5591 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5592 duplicate register classes.
5593 (frv_class_likely_spilled_p): Likewise.
5594 (frv_register_move_cost): Likewise.
5596 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5597 end of the regno_reg_class array.
5599 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5602 * c-typeck.c (build_binary_op): Don't wrap arguments if
5603 int_operands is true.
5605 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5608 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5609 targetm.calls.must_pass_in_stack for void type.
5611 2011-04-26 Jan Hubicka <jh@suse.cz>
5613 * cgraphbuild.c (build_cgraph_edges): Update call
5614 of cgraph_create_edge and cgraph_create_indirect_edge.
5615 * cgraph.c (cgraph_create_edge_including_clones,
5616 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5617 cgraph_update_edges_for_call_stmt_node): Do not take nest
5618 argument; do not initialize call_stmt_size/time.
5619 (dump_cgraph_node): Do not dump nest.
5620 (cgraph_clone_edge): Do not take loop_nest argument;
5621 do not propagate it; do not clone call_stmt_size/time.
5622 (cgraph_clone_node): Likewise.
5623 (cgraph_create_virtual_clone): Update.
5624 * cgraph.h (struct cgraph_edge): Remove
5625 call_stmt_size/call_stmt_time/loop_nest.
5626 (cgraph_create_edge, cgraph_create_indirect_edge,
5627 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5629 * tree-emutls.c (gen_emutls_addr): Update.
5630 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5631 loop_nest; handle indirect calls, too.
5632 (clone_inlined_nodes): Do not care about updating inline summaries.
5633 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5634 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5635 stream call_stmt_size/call_stmt_time/loop_nest.
5636 * ipa-inline.c (edge_badness): Update.
5637 (ipa_inline): dump summaries after inlining.
5638 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5640 (inline_edge_summary): New function.
5641 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5642 (inline_edge_removal_hook): Handle edge summaries.
5643 (inline_edge_duplication_hook): New hook.
5644 (inline_summary_alloc): Alloc hooks.
5645 (initialize_growth_caches): Do not register removal hooks.
5646 (free_growth_caches); Do not free removal hook.
5647 (dump_inline_edge_summary): New function.
5648 (dump_inline_summary): Use it.
5649 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5650 (inline_update_callee_summaries): New function.
5651 (inline_merge_summary): Use it.
5652 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5653 (read_inline_edge_summary): New function.
5654 (inline_read_section): Use it.
5655 (write_inline_edge_summary): New function.
5656 (inline_write_summary): Use it.
5657 (inline_free_summary): Free edge new holders.
5658 * tree-inline.c (copy_bb): Update.
5660 2011-04-26 Jason Merrill <jason@redhat.com>
5662 * tree-eh.c (lower_try_finally_switch): Create the label along with
5663 the CASE_LABEL_EXPR.
5665 2011-04-26 David S. Miller <davem@davemloft.net>
5666 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5668 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5669 * configure: Regenerate.
5671 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5674 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5676 (VEC_reduc): New code iterator and splitters for vector reduction.
5677 (VEC_reduc_name): Ditto.
5678 (VEC_reduc_rtx): Ditto.
5679 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5680 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5682 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5683 support for extracting SF on VSX.
5685 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5686 generating xscvspdp.
5687 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5688 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5689 double add, minimum, maximum vector reduction.
5690 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5691 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5692 optimize double vector reduction.
5693 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5695 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5697 * config/fr30/fr30.h (inhibit_libc): Don't define.
5698 * config/m32r/m32r-protos.h: Correct comment.
5699 * config/v850/v850.h (GHS_default_section_names,
5700 GHS_current_section_names): Use tree, not union tree_node *.
5702 2011-04-26 Xinliang David Li <davidxl@google.com>
5704 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5705 * c-family/c-opts.c (c_common_handle_option): Set
5706 warn_maybe_uninitialized.
5707 * opts.c (common_handle_option): Ditto.
5708 * common.opt: New option.
5709 * tree-ssa.c (warn_uninit): Add one more parameter.
5710 (warn_uninitialized_var): Pass warning code.
5711 * tree-flow.h: Interface change.
5713 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5715 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5716 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5717 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5719 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5721 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5722 * config/mips/mips.opt (mmips-tfile): Remove.
5724 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5725 mips-tdump reference to ...
5726 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5727 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5728 reference by Tru64 UNIX.
5730 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5733 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5734 is error_mark_node, set value to NULL.
5736 PR tree-optimization/48734
5737 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5738 if return value from maybe_fold_*_comparsions isn't something
5739 the code is prepared to handle.
5741 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5743 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5745 (ext_QIreg_nomode_operands): Remove.
5746 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5750 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5752 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5754 2011-04-26 Richard Guenther <rguenther@suse.de>
5756 * c-typeck.c (build_unary_op): Do not expand array-refs via
5757 pointer arithmetic. Only adjust qualifiers for function types.
5759 2011-04-26 Richard Guenther <rguenther@suse.de>
5762 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5763 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5764 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5765 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5767 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5769 * doc/extend.texi: Document __underlying_type.
5771 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5773 * config/rs6000/titan.md (automata_option "progress"): Remove.
5775 2011-04-25 Jeff Law <law@redhat.com>
5777 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5779 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5781 * system.h (ENUM_BITFIELD): Remove.
5783 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5784 Eric Botcazou <ebotcazou@adacore.com>
5786 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5787 for STORE_FLAG_VALUE==-1 case.
5789 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5792 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5793 LEGITIMATE_PIC_OPERAND_P.
5795 2011-04-24 Jan Hubicka <jh@suse.cz>
5797 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5799 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5800 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5801 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5802 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5803 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5804 Sanity check predicate length.
5805 (remap_predicate): Likewise; sanity check jump functions.
5806 (inline_read_section, inline_write_summary): Sanity check
5809 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5812 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5813 __is_literal_type, and __is_trivial; update throughout about
5814 possibly cv-qualified void types.
5816 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5818 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5819 testsuite and make it version agnostic.
5821 2011-04-22 Jan Hubicka <jh@suse.cz>
5823 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5825 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5828 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5829 to VOID_TYPE even around MODIFY_EXPR.
5831 2011-04-22 Mike Stump <mikestump@comcast.net>
5833 * gensupport.c (read_md_rtx): Fix typo in comment.
5834 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5837 2011-04-22 Jan Hubicka <jh@suse.cz>
5839 * gengtype.c (open_base_files): Add ipa-inline.h include.
5840 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5841 ipa-prop.c; update all uses.
5842 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5843 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5844 merge summary of inlined function into former caller.
5845 * ipa-inline.c (max_benefit): Remove.
5846 (edge_badness): Compensate for removal of benefits.
5847 (update_caller_keys): Use
5848 reset_node_growth_cache/reset_edge_growth_cache.
5849 (update_callee_keys): Likewise.
5850 (update_all_callee_keys): Likewise.
5851 (inline_small_functions): Do not collect max_benefit; do not reset
5852 estimated_growth; call free_growth_caches and initialize_growth_caches.
5853 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5854 struct size_time_entry): New structures.
5855 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5856 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5857 and estimated_growth.
5858 (edge_growth_cache_entry): New structure.
5859 (node_growth_cache, edge_growth_cache): New global vars.
5860 (estimate_growth): Turn into inline.
5861 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5862 initialize_growth_caches, free_growth_caches): Declare.
5863 (estimate_edge_growth): Rewrite.
5864 (estimate_edge_time): Implement as inline cache lookup.
5865 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5867 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5868 (NUM_CONDITIONS): New constant.
5869 (predicate_conditions): New enum.
5870 (IS_NOT_CONSTANT): New constant.
5871 (edge_removal_hook_holder): New var.
5872 (node_growth_cache, edge_growth_cache): New global vars.
5873 (true_predicate, single_cond_predicate, false_predicate,
5874 not_inlined_predicate, add_condition, add_clause, and_predicates,
5875 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5876 dump_clause, dump_predicate, account_size_time,
5877 evaulate_conditions_for_edge): New functions.
5878 (inline_summary_alloc): Move to heap.
5879 (inline_node_removal_hook): Clear condition and entry vectors.
5880 (inline_edge_removal_hook): New function.
5881 (initialize_growth_caches, free_growth_caches): New function.
5882 (dump_inline_summary): Update.
5883 (edge_execution_predicate): New function.
5884 (will_be_nonconstant_predicate): New function.
5885 (estimate_function_body_sizes): Compute BB and constantness predicates.
5886 (compute_inline_parameters): Do not clear estimated_growth.
5887 (estimate_edge_size_and_time): New function.
5888 (estimate_calls_size_and_time): New function.
5889 (estimate_callee_size_and_time): New function.
5890 (remap_predicate): New function.
5891 (inline_merge_summary): New function.
5892 (do_estimate_edge_time): New function based on...
5893 (estimate_edge_time): ... this one.
5894 (do_estimate_edge_growth): New function.
5895 (do_estimate_growth): New function based on....
5896 (estimate_growth): ... this one.
5897 (inline_analyze_function): Analyze after deciding on jump functions.
5898 (inline_read_section): New function.
5899 (inline_read_summary): Use it.
5900 (inline_write_summary): Write all the new data.
5901 * ipa-prop.c (ipa_get_param_decl_index): Export.
5902 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5903 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5905 (ipa_get_lattice): Move here from ipa-cp.c
5906 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5907 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5908 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5909 cgraph_edge_inlinable_p): Remove.
5910 * cgraphunit.c: Include ipainline.h
5911 (cgraph_process_new_functions): Update call of
5912 compute_inline_parameters.
5914 2011-04-22 Richard Guenther <rguenther@suse.de>
5916 * tree.c (build_int_cst): Properly create canonicalized integer
5918 (build_int_cst_type): Remove scary comments.
5920 2011-04-22 Xinliang David Li <davidxl@google.com>
5922 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5923 by default when -Wno-error is not specified.
5924 * opts-global.c (decode_options): Remove call to
5925 control_warning_options.
5927 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5929 PR tree-optimization/48717
5930 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5931 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5933 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5935 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5936 definition where used.
5938 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5941 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5942 TREE_STATIC variables declared inside of some OpenMP construct.
5944 2011-04-22 Martin Jambor <mjambor@suse.cz>
5947 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5949 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5952 * c-typeck.c (pop_init_level): Do not warn about initializing
5955 2011-04-22 Alan Modra <amodra@gmail.com>
5957 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5958 when returning call_cookie.
5959 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5960 pointers, to functions with no more vector args than the current
5961 function, and some non-local calls for ABI_V4.
5962 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5963 sibcall_nonlocal_aix64): Combine to ..
5964 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5965 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5966 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5967 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5968 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5970 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5971 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5972 sibcall_value_symbolic_64): Delete.
5974 2011-04-21 Xinliang David Li <davidxl@google.com>
5976 * cgraph.h: Remove pid.
5977 * cgraph.c: Remove pid.
5978 * value-prof.c (init_node_map): New function.
5979 (del_node_map): New function.
5980 (find_func_by_funcdef_no): New function.
5981 (gimple_ic_transform): Call new function.
5982 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5983 * function.c (get_last_funcdef_no): New function.
5984 * function.h (get_last_funcdef_no): New function.
5985 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5986 to libgcov function.
5987 (tree-profiling): Call node map init and delete function.
5989 2011-04-21 Ian Lance Taylor <iant@google.com>
5991 * godump.c (go_format_type): Use exported Go name for anonymous
5994 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5996 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5997 Call builtin_function_type_list instead of builtin_function_type.
5998 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6000 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6002 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6003 build_function_type_list instead of build_function_type.
6004 Delete variable `endlink'.
6006 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6008 * config/s390/s390.c (s390_init_builtins): Call
6009 build_function_type_list instead of build_function_type.
6011 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6013 * config/ia64/ia64.c (ia64_init_builtins): Call
6014 build_function_type_list instead of builtin_function_type.
6016 2011-04-21 Easwaran Raman <eraman@google.com>
6018 * cfgexpand.c (stack_var): Remove OFFSET...
6019 (add_stack_var): ...and its reference here...
6020 (expand_stack_vars): ...and here.
6021 (stack_var_cmp): Sort by descending order of size.
6022 (partition_stack_vars): Change heuristic.
6023 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6024 (dump_stack_var_partition): Add newline after each partition.
6026 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6027 Jeff Law <law@redhat.com>
6029 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6030 * gengtype.c (matching_file_name_substitute): Likewise.
6032 2011-04-21 Richard Guenther <rguenther@suse.de>
6035 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6037 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6039 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6041 2011-04-21 Richard Guenther <rguenther@suse.de>
6043 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6046 2011-04-21 Richard Guenther <rguenther@suse.de>
6048 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6049 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6050 Use DECL_P, not SSA_VAR_P.
6051 (ptr_derefs_may_alias_p): Likewise.
6052 (ptr_deref_may_alias_ref_p_1): Likewise.
6053 (decl_refs_may_alias_p): Likewise.
6054 (refs_may_alias_p_1): Likewise.
6055 (ref_maybe_used_by_call_p_1): Likewise.
6056 (call_may_clobber_ref_p_1): Likewise.
6057 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6058 are either MEM_REF or TARGET_MEM_REF.
6059 (indirect_refs_may_alias_p): Likewise.
6060 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6061 for MEM_EXPR of indirect calls.
6063 2011-04-21 Tristan Gingold <gingold@adacore.com>
6065 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6066 (dst_file_info_struct): Remove flen field.
6067 (lookup_filename): Remove code that set flen field.
6069 2011-04-21 Tristan Gingold <gingold@adacore.com>
6071 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6073 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6076 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6077 vec_extract and vec_concat for non-SSE4_1 targets.
6079 2011-04-21 Richard Guenther <rguenther@suse.de>
6081 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6084 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6086 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6088 (FILE): Don't undefine.
6090 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6092 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6094 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6096 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6097 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6098 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6100 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6101 definitions where used.
6102 * config/microblaze/microblaze.h (struct microblaze_args): Use
6103 rtx, not struct rtx_def *.
6104 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6106 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6107 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6108 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6109 not struct rtx_def *.
6110 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6112 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6114 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6116 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6118 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6119 operand_equal_p to compare DR_BASE_ADDRESSes.
6120 (vect_check_interleaving): Likewise.
6122 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6125 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6126 for all Neon struct constants.
6128 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6130 * target.def (legitimate_constant_p): New hook.
6131 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6132 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6133 * doc/tm.texi: Regenerate.
6134 * hooks.h (hook_bool_mode_rtx_true): Declare.
6135 * hooks.c (hook_bool_mode_rtx_true): Define.
6136 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6137 * calls.c (precompute_register_parameters): Replace uses of
6138 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6139 (emit_library_call_value_1): Likewise.
6140 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6141 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6142 * ira-costs.c (scan_one_insn): Likewise.
6143 * recog.c (general_operand, immediate_operand): Likewise.
6144 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6145 * reload1.c (init_eliminable_invariants): Likewise.
6147 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6149 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6150 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6152 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6153 * config/alpha/predicates.md (input_operand): Update call to
6154 alpha_legitimate_constant_p.
6156 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6157 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6158 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6159 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6160 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6161 (arm_legitimate_constant_p): New functions.
6162 (arm_cannot_force_const_mem): Make static.
6164 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6166 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6167 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6168 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6169 instead of bfin_legitimate_constant_p.
6170 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6171 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6173 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6175 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6177 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6178 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6179 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6180 (frv_legitimate_constant_p): Make static. Add a mode argument.
6182 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6183 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6184 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6186 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6187 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6188 * config/i386/i386.c (legitimate_constant_p): Rename to...
6189 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6191 (ix86_cannot_force_const_mem): Update accordingly.
6192 (ix86_legitimate_address_p): Likewise.
6193 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6194 * config/i386/i386.md: Update commentary.
6196 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6197 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6198 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6199 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6201 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6203 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6204 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6205 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6206 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6208 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6209 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6210 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6212 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6213 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6214 (m32r_legitimate_constant_p): New function.
6216 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6217 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6218 LEGITIMATE_CONSTANT_P.
6219 (LEGITIMATE_CONSTANT_P): Delete.
6220 * config/m68k/m68k.c (m68k_expand_prologue): Call
6221 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6222 (m68k_legitimate_constant_p): New function.
6223 * config/m68k/m68k.md: Update comments.
6225 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6226 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6227 (mcore_legitimate_constant_p): New function.
6229 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6230 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6231 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6232 Add a mode argument.
6233 (mep_legitimate_address): Update accordingly.
6234 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6236 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6238 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6239 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6240 static. Check OP's mode for VOIDmode.
6241 (microblaze_legitimate_constant_p): New function.
6242 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6244 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6245 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6246 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6247 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6248 * config/mips/predicates.md: Update comments.
6250 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6251 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6252 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6253 (mmix_legitimate_constant_p): Make static, return a bool, and take
6255 (mmix_print_operand_address): Update accordingly.
6257 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6259 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6260 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6261 static. Add a mode argument.
6262 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6264 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6266 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6267 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6268 (pa_legitimate_constant_p): New function.
6270 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6272 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6273 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6274 (pdp11_legitimate_constant_p): New function.
6276 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6277 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6278 (rs6000_legitimate_constant_p): New function.
6280 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6281 (rx_legitimate_constant_p): ...this.
6282 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6283 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6284 (rx_legitimate_constant_p): ...this.
6285 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6286 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6288 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6289 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6290 * config/s390/s390.c (legitimate_constant_p): Rename to...
6291 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6292 and add a mode argument.
6293 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6295 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6297 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6298 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6299 (sh_legitimate_constant_p): New function.
6301 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6302 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6303 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6304 (legitimate_constant_p): Rename to...
6305 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6307 (constant_address_p): Update accordingly.
6309 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6310 argument and return a bool.
6311 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6312 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6313 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6314 (spu_rtx_costs): Update accordingly.
6315 * config/spu/predicates.md (vec_imm_operand): Likewise.
6317 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6319 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6320 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6321 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6323 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6324 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6325 * config/vax/vax.c (legitimate_constant_p): Likewise.
6327 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6328 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6329 (xtensa_legitimate_constant_p): New function.
6331 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6333 * target.def (cannot_force_const_mem): Add a mode argument.
6334 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6335 * doc/tm.texi: Regenerate.
6336 * hooks.h (hook_bool_mode_rtx_false): Declare.
6337 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6338 (hook_bool_mode_const_rtx_true): Likewise.
6339 (hook_bool_mode_rtx_false): New function.
6340 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6341 to be non-VOID. Update call to cannot_force_const_mem.
6342 (find_reloads): Update accordingly.
6343 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6344 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6346 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6347 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6348 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6349 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6350 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6351 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6352 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6353 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6354 (m68k_cannot_force_const_mem): ...this new function.
6355 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6357 (mips_const_insns, mips_legitimize_const_move): Update calls.
6358 (mips_secondary_reload_class): Likewise.
6359 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6360 (pa_cannot_force_const_mem): ...this new function.
6361 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6362 (rs6000_cannot_force_const_mem): ...this new function.
6363 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6365 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6366 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6368 (xtensa_cannot_force_const_mem): ...this new function.
6370 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6372 * config/mips/mips.c (mips16_build_function_stub): Call
6373 build_function_type_list instead of build_function_type.
6374 (mips16_build_call_stub): Likewise.
6376 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6378 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6379 instead of build_function_type.
6381 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6383 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6384 instead of build_function_type.
6386 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6389 * config/i386/i386.md (insv): Change operand 0 constraint to
6390 "register_operand". Change operand 1 and 2 constraint to
6391 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6392 * config/i386/sse.md (sse4_1_pinsrb): Export.
6393 (sse2_pinsrw): Ditto.
6394 (sse4_1_pinsrd): Ditto.
6395 (sse4_1_pinsrq): Ditto.
6396 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6397 * config/i386/i386.c (ix86_expand_pinsr): New.
6399 2011-04-20 Easwaran Raman <eraman@google.com>
6401 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6402 containing union type only with -fstrict-aliasing.
6404 2011-04-20 Jim Meyering <meyering@redhat.com>
6406 Remove useless if-before-free tests.
6407 * calls.c (expand_call, save_area): Likewise.
6408 * cfgcleanup.c (try_forward_edges): Likewise.
6409 * collect2.c (collect_execute): Likewise.
6410 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6411 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6412 * coverage.c (coverage_checksum_string): Likewise.
6413 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6414 * cselib.c (cselib_init): Likewise.
6415 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6416 (df_set_clean_cfg): Likewise.
6417 * function.c (free_after_compilation): Likewise.
6418 * gcc.c (do_spec_1, main): Likewise.
6419 * gcov.c (create_file_names): Likewise.
6420 * gensupport.c (identify_predicable_attribute): Likewise.
6421 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6422 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6423 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6424 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6425 * ipa-pure-const.c (local_pure_const): Likewise.
6426 * ipa-reference.c (propagate): Likewise.
6427 * ira-costs.c (free_ira_costs): Likewise.
6428 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6429 * matrix-reorg.c (mat_free): Likewise.
6430 * prefix.c (get_key_value): Likewise.
6431 * profile.c (compute_value_histograms): Likewise.
6432 * reload1.c (free_reg_equiv): Likewise.
6433 * sched-deps.c (free_deps): Likewise.
6434 * sel-sched-ir.c (fence_clear): Likewise.
6435 * sese.c (set_rename, if_region_set_false_region): Likewise.
6436 * tree-data-ref.c (free_rdg): Likewise.
6437 * tree-eh.c (lower_try_finally): Likewise.
6438 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6439 * tree-ssa-live.c (delete_var_map): Likewise.
6440 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6441 * tree-ssa-pre.c (phi_trans_add): Likewise.
6443 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6445 PR tree-optimization/48611
6446 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6447 beyond ERT_MUST_NOT_THROW region.
6449 2011-04-20 Catherine Moore <clm@codesourcery.com>
6451 * config/mips/mips.opt (mfix-24k): New.
6452 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6453 * config/mips/mips.md (length): Increase by 4 for stores if
6455 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6456 all noreorder if fixing 24K errata.
6457 * doc/invoke.texi: Document mfix-24k.
6459 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6461 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6462 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6464 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6466 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6467 (const_ok_for_op): ... to here.
6469 2011-04-20 Kai Tietz <ktietz@redhat.com>
6471 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6472 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6474 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6476 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6478 2011-04-20 Richard Guenther <rguenther@suse.de>
6480 PR tree-optimization/47892
6481 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6484 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6486 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6488 2011-04-20 Tristan Gingold <gingold@adacore.com>
6490 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6492 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6496 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6497 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6498 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6499 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6500 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6502 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6505 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6506 (avr_asm_named_section, avr_asm_output_aligned_common,
6507 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6508 New functions to update...
6509 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6510 (avr_asm_init_sections): Overwrite section callbacks for
6511 data_section, bss_section.
6512 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6514 (avr_file_end): ...here.
6516 2011-04-20 Richard Guenther <rguenther@suse.de>
6519 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6520 objects and types here. Adjust for their offset before comparing.
6522 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6524 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6527 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6529 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6530 (GIMPLE_H): Include $(INTERNAL_FN_H).
6531 (OBJS-common): Add internal-fn.o.
6532 (internal-fn.o): New rule.
6533 * internal-fn.def: New file.
6534 * internal-fn.h: Likewise.
6535 * internal-fn.c: Likewise.
6536 * gimple.h: Include internal-fn.h.
6537 (GF_CALL_INTERNAL): New gf_mask.
6538 (gimple_statement_call): Put fntype into a union with a new
6540 (gimple_build_call_internal): Declare.
6541 (gimple_build_call_internal_vec): Likewise.
6542 (gimple_call_same_target_p): Likewise.
6543 (gimple_call_internal_p): New function.
6544 (gimple_call_internal_fn): Likewise.
6545 (gimple_call_fntype): Return null for internal calls.
6546 (gimple_call_set_fntype): Assert that the function is not internal.
6547 (gimple_call_set_fn): Likewise.
6548 (gimple_call_set_fndecl): Likewise.
6549 (gimple_call_set_internal_fn): New function.
6550 (gimple_call_addr_fndecl): Handle null functions.
6551 (gimple_call_return_type): Likewise null types.
6552 * gimple.c (gimple_build_call_internal_1): New function.
6553 (gimple_build_call_internal): Likewise.
6554 (gimple_build_call_internal_vec): Likewise.
6555 (gimple_call_same_target_p): Likewise.
6556 (gimple_call_flags): Handle calls to internal functions.
6557 (gimple_call_fnspec): New function.
6558 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6559 (gimple_has_side_effects): Handle null functions.
6560 (gimple_rhs_has_side_effects): Likewise.
6561 (gimple_call_copy_skip_args): Handle calls to internal functions.
6562 * cfgexpand.c (expand_call_stmt): Likewise.
6563 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6564 * gimple-fold.c (gimple_fold_call): Handle null functions.
6565 (gimple_fold_stmt_to_constant_1): Don't fold
6566 calls to internal functions.
6567 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6569 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6570 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6571 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6572 (do_warn_unused_result): Likewise.
6573 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6574 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6575 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6576 the target of a call.
6577 (initialize_hash_element): Update accordingly.
6578 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6579 (iterative_hash_hashable_expr): Handle calls to internal functions.
6580 (print_expr_hash_elt): Likewise.
6581 * tree-ssa-pre.c (can_value_number_call): Likewise.
6582 (eliminate): Handle null functions.
6583 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6584 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6585 (find_func_aliases): Likewise.
6586 * value-prof.c (gimple_ic_transform): Likewise.
6587 (gimple_indirect_call_to_profile): Likewise.
6588 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6589 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6591 2011-04-19 Jan Hubicka <jh@suse.cz>
6593 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6594 * ipa-inline.c (inline_small_functions): Compute summaries first,
6595 populate heap later.
6597 2011-04-19 Jan Hubicka <jh@suse.cz>
6599 * cgraph.h (save_inline_function_body): Remove.
6600 * ipa-inline-transform.c: New file, broke out of...
6601 * ipa-inline.c: ... this one; Update toplevel comment.
6602 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6604 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6605 (cgraph_mark_inline_edge): Rename to inline_call; move to
6606 ipa-inline-transform.c.
6607 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6608 move to ipa-inline-transform.c
6609 (recursive_inlining, inline_small_functions, flatten_function,
6610 ipa_inline, inline_always_inline_functions,
6611 early_inline_small_functions): Update.
6612 (inline_transform): Move to ipa-inline-transform.c.
6613 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6615 * Makefile.in (ipa-inline-transform.o): New file.
6616 * cgraphunit.c (save_inline_function_body): Move to
6617 ipa-inline-transform.c
6619 2011-04-19 DJ Delorie <dj@redhat.com>
6621 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6622 registers if we already know there aren't any.
6623 (m32c_emit_epilogue): Don't emit a barrier here.
6624 (m32c_emit_eh_epilogue): Likewise.
6625 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6626 operands at expand time.
6627 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6629 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6630 duplicates. Provide aliases instead.
6631 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6632 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6635 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6637 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6638 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6639 (general_or_i64_p, sparc_register_move_cost): New function.
6641 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6643 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6644 Add lynx, mipssde. Sort table.
6646 2011-04-19 Xinliang David Li <davidxl@google.com>
6648 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6651 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6654 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6655 is a SUBREG with non-MODE_INT mode inside of it.
6657 2011-04-19 Martin Jambor <mjambor@suse.cz>
6659 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6660 also according to actual contants.
6661 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6662 (gimple_fold_call): Use it.
6663 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6665 2011-04-19 Martin Jambor <mjambor@suse.cz>
6667 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6668 non-pointer assignments.
6670 2011-04-19 Martin Jambor <mjambor@suse.cz>
6672 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6673 account anc_offset and otr_type from the indirect edge info.
6674 * ipa-prop.c (get_ancestor_addr_info): New function.
6675 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6676 get_ancestor_addr_info, call it.
6677 (ipa_note_param_call): Do not initialize information about polymorphic
6678 calls, return the indirect call graph edge. Remove the last
6679 parameter, adjust all callers.
6680 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6681 parameters. Initialize polymorphic information in the indirect edge.
6683 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6686 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6687 the types if they have different enumeration identifiers.
6689 2011-04-19 Jan Hubicka <jh@suse.cz>
6691 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6692 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6693 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6694 (optimize_function_for_size_p) ... here.
6696 2011-04-19 Richard Guenther <rguenther@suse.de>
6699 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6702 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6704 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6705 if DECL_NO_INLINE_WARNING_P is set on the function.
6707 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6710 * reload1.c (inc_for_reload): Return void. All callers changed.
6711 (emit_input_reload_insns): Don't try to delete previous output
6712 reloads to a register, or record spill_reg_store for autoincs.
6714 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6716 * gengtype.h: Updated copyright year.
6717 (struct input_file_st): Add inpisplugin field.
6718 (type_fileloc): New function.
6720 (write_typed_struct_alloc_def): Add gcc_assert.
6721 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6722 (write_typed_alloc_defns): Don't output for plugin files.
6723 (input_file_by_name): Clear inpisplugin field.
6724 (main): Set inpisplugin field for plugin files.
6726 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6728 * gengtype-state.c (string_eq): New.
6729 (read_state): Use string_eq instead of strcmp when creating the
6732 2011-04-19 Wei Guozhi <carrot@google.com>
6735 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6736 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6738 * config/arm/constraints.md (Uu): New constraint.
6739 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6741 2011-04-19 Tristan Gingold <gingold@adacore.com>
6743 * config.gcc (-*-*-*vms): Added.
6744 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6746 * config/vms/vms-ld.c: New file.
6747 * config/vms/vms-ar.c: New file.
6748 * config/vms/t-vmsnative: New file.
6750 2011-04-18 Xinliang David Li <davidxl@google.com>
6752 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6754 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6757 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6758 if TREE_TYPE (v) is non-NULL.
6760 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6761 gimple_get_virt_mehtod_for_binfo.
6762 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6763 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6765 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6767 2011-04-18 Michael Matz <matz@suse.de>
6768 Steve Ellcey <sje@cup.hp.com>
6770 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6771 use its mode as source mode if it isn't VOIDmode.
6773 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6775 * doc/passes.texi: Fill crossref nodes.
6777 2011-04-18 Jim Meyering <meyering@redhat.com>
6779 Fix doubled-word typos in comments and strings
6780 * config/alpha/vms-unwind.h: s/for for/for/
6781 * config/arm/unwind-arm.h: Likewise.
6782 * config/microblaze/microblaze.c: Likewise.
6783 * config/sh/constraints.md: s/in in/in/
6784 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6786 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6788 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6789 (AVX_FLOAT_MODE_P): Ditto.
6790 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6791 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6792 (AVX_VEC_FLOAT_MODE_P): Ditto.
6793 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6794 (UNSPEC_MASKSTORE): Ditto.
6795 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6796 Merge from <sse>_movmsk<ssemodesuffix> and
6797 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6798 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6800 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6801 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6802 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6804 2011-04-18 Jan Hubicka <jh@suse.cz>
6806 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6808 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6809 (want_inline_function_called_once_p): Break out the logic from
6811 (edge_badness): Ensure that profile is not misupdated.
6812 (lookup_recursive_calls): Prioritize by call frequencies.
6813 (inline_small_functions): Move program size estimates here;
6814 actually process whole queue even when unit growth has been
6815 met. (to properly compute inline_failed reasons and for the
6816 case unit size decrease.) Revisit comments on recursive inlining.
6817 (ipa_inline): Remove unit summary code; first inline hot calls
6818 of functions called once, cold calls next.
6819 (order, nnodes): Remove unused variables.
6820 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6821 (GTFILES): Remove ipa-inline.c
6822 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6824 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6826 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6828 2011-04-18 Jie Zhang <jie@codesourcery.com>
6829 Richard Earnshaw <rearnsha@arm.com>
6831 * arm.c (neon_builtin_type_bits): Remove.
6832 (typedef enum neon_builtin_mode): New.
6833 (T_MAX): Don't define.
6834 (typedef enum neon_builtin_datum): Remove bits, codes[],
6835 num_vars and base_fcode. Add mode, code and fcode.
6836 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6837 VAR10): Change accordingly.
6838 (neon_builtin_data[]): Change accordingly
6839 (arm_init_neon_builtins): Change accordingly.
6840 (neon_builtin_compare): Remove.
6841 (locate_neon_builtin_icode): Remove.
6842 (arm_expand_neon_builtin): Change accordingly.
6844 * arm.h (enum arm_builtins): Move to ...
6845 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6847 * arm.c (arm_builtin_decl): Declare.
6848 (TARGET_BUILTIN_DECL): Define.
6849 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6850 (arm_builtin_decls[]): New.
6851 (arm_init_neon_builtins): Store builtin declarations in
6852 arm_builtin_decls[].
6853 (arm_init_tls_builtins): Likewise.
6854 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6855 (arm_builtin_decl): New.
6857 2011-04-18 Richard Guenther <rguenther@suse.de>
6859 * tree.c (upper_bound_in_type): Build properly canonicalized
6861 (lower_bound_in_type): Likewise.
6863 2011-04-18 Richard Guenther <rguenther@suse.de>
6865 * gimple.h (gimple_call_addr_fndecl): New function.
6866 (gimple_call_fndecl): Use it.
6867 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6869 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6870 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6872 2011-04-18 Richard Guenther <rguenther@suse.de>
6875 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6877 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6880 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6881 DECL_IN_CONSTANT_POOL without RTL.
6883 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6884 Ira Rosen <ira.rosen@linaro.org>
6887 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6888 to match neon_vzip/vuzp/vtrn_internal.
6889 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6890 outputs explicitly dependent on both inputs.
6891 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6893 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6895 PR tree-optimization/48616
6896 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6897 whether the shift is by scalar or vector based on whether all SLP
6898 scalar stmts have the same rhs.
6900 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6902 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6905 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6908 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6911 2011-04-17 Jan Hubicka <jh@suse.cz>
6913 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6914 * cgrpahunit.c (cgraph_finalize_function): Do not set
6915 finalized_by_frontend.
6916 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6917 finalized_by_frontend.
6919 2011-04-17 Jan Hubicka <jh@suse.cz>
6921 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6922 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6923 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6924 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6926 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6928 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6930 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6933 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6934 is non-null before accessing it.
6935 (input_cgraph): Remove trailing spaces.
6937 2011-04-17 Revital Eres <revital.eres@linaro.org>
6939 * params.def (sms-min-sc): New param flag.
6940 * modulo-sched.c (sms_schedule): Use it.
6941 * doc/invoke.texi (sms-min-sc): Document it.
6943 2011-04-17 Jan Hubicka <jh@suse.cz>
6945 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6946 present, also set gimple_call_set_cannot_inline.
6947 * ipa-inline.c: Update toplevel comment.
6949 (cgraph_clone_inlined_nodes): Fix linebreaks.
6950 (cgraph_check_inline_limits): Restructure to ...
6951 (caller_growth_limits): ... this one; be more tolerant
6952 on growth in nested inline chains; add explanatory comment;
6953 fix stack accounting thinko introduced by previous patch.
6954 (cgraph_default_inline_p): Remove.
6955 (report_inline_failed_reason): New function.
6956 (can_inline_edge_p): New function.
6957 (can_early_inline_edge_p): New function.
6958 (leaf_node_p): Move upwards in file.
6959 (want_early_inline_function_p): New function.
6960 (want_inline_small_function_p): New function.
6961 (want_inline_self_recursive_call_p): New function.
6962 (cgraph_edge_badness): Rename to ...
6963 (edge_badness) ... this one; fix linebreaks.
6964 (update_edge_key): Update call of edge_baddness; add
6965 detailed dump about queue updates.
6966 (update_caller_keys): Use can_inline_edge_p and
6967 want_inline_small_function_p.
6968 (cgraph_decide_recursive_inlining): Rename to...
6969 (recursive_inlining): Use can_inline_edge_p and
6970 want_inline_self_recursive_call_p; simplify and remove no longer
6972 (cgraph_set_inline_failed): Remove.
6973 (add_new_edges_to_heap): Use can_inline_edge_p and
6974 want_inline_small_function_p.
6975 (cgraph_decide_inlining_of_small_functions): Rename to ...
6976 (inline_small_functions): ... this one; cleanup; use
6977 can/want predicates; cleanup debug ouput; work edges till fibheap
6978 is exhausted and do not stop once unit growth is reached; remove
6979 later loop processing remaining edges.
6980 (cgraph_flatten): Rename to ...
6981 (flatten_function): ... this one; use can_inline_edge_p
6982 and can_early_inline_edge_p predicates.
6983 (cgraph_decide_inlining): Rename to ...
6984 (ipa_inline): ... this one; remove unreachable nodes before
6985 inlining functions called once; simplify the pass.
6986 (cgraph_perform_always_inlining): Rename to ...
6987 (inline_always_inline_functions): ... this one; use
6988 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6989 (cgraph_decide_inlining_incrementally): Rename to ...
6990 (early_inline_small_functions): ... this one; simplify
6991 using new predicates; cleanup; make dumps prettier.
6992 (cgraph_early_inlining): Rename to ...
6993 (early_inliner): newer inline regular functions into always-inlines;
6994 fix updating of call stmt summaries.
6995 (pass_early_inline): Update for new names.
6996 (inline_transform): Fix formating.
6997 (gate_cgraph_decide_inlining): Rename to ...
6998 (pass_ipa_inline): ... this one.
6999 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7000 * ipa-inline-analysis.c (dump_inline_summary): Update.
7001 (compute_inline_parameters): Do not compute disregard_inline_limits;
7002 look for mismatching arguments.
7003 (estimate_growth): Fix handlig of non-trivial self recursion.
7004 (inline_read_summary): Do not read info->disregard_inline_limits.
7005 (inline_write_summary): Do not write info->disregard_inline_limits.
7006 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7007 and move all checks into can_inline_edge_p predicate; re-enable code
7008 comparing optimization levels.
7009 (expand_call_inline): Do not test inline_forbidden_into_p.
7010 * Makefile.in (ipa-inline.o): Update arguments.
7012 2011-04-17 Revital Eres <revital.eres@linaro.org>
7014 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7016 2011-04-17 Revital Eres <revital.eres@linaro.org>
7018 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7020 2011-04-17 Michael Matz <matz@suse.de>
7022 PR tree-optimization/48622
7024 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7025 in same order as they're written.
7027 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7029 * config/pa/predicates.md: Reorganize and simplify predicates.
7030 Eliminate duplicate code checks.
7031 (arith_operand): Rename to arith14_operand
7032 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7033 * config/pa/pa.md: Use renamed operands.
7034 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7035 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7036 arith11_operand, adddi3_operand, indexed_memory_operand,
7037 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7038 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7039 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7040 move_dest_operand, move_src_operand, prefetch_cc_operand,
7041 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7042 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7043 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7044 div_operand, int5_operand, movb_comparison_operator,
7045 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7046 arith_double_operand, ireg_operand, lhs_lshift_operand,
7047 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7048 integer_store_memory_operand): Likewise.
7049 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7050 (integer_store_memory_operand, read_only_operand,
7051 function_label_operand, borx_reg_operand,
7052 non_hard_reg_operand): Likewise.
7053 (eq_neq_comparison_operator): Delete unused operator.
7054 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7055 function_label_operand.
7056 (emit_move_sequence): Likewise.
7058 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7060 * config/i386/sse.md (sseunpackmode): New mode attribute.
7061 (ssepackmode): Ditto.
7062 (vec_pack_trunc_<mode>): Macroize expander from
7063 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7064 (vec_unpacks_lo_<mode>): Macroize expander from
7065 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7066 (vec_unpacks_hi_<mode>): Macroize expander from
7067 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7068 (vec_unpacku_lo_<mode>): Macroize expander from
7069 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7070 (vec_unpacku_hi_<mode>): Macroize expander from
7071 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7072 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7073 ix86_expand_sse4_unpack.
7074 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7076 2011-04-16 Jan Hubicka <jh@suse.cz>
7078 * cgraphbuild.c: Include ipa-inline.h.
7079 (reset_inline_failed): Use initialize_inline_failed.
7080 * cgraph.c: Include ipa-inline.h.
7081 (cgraph_create_node_1): Do not initialize estimated_growth.
7082 (initialize_inline_failed): More to ipa-inline-analysis.c
7083 (dump_cgraph_node): Do not dump inline flags.
7084 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7085 and disregard_inline_limits flags.
7086 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7087 time, size, estimated_growth.
7088 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7090 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7091 DECL_DISREGARD_INLINE_LIMITS.
7092 (cgraph_analyze_function): Do not initialize
7093 node->local.disregard_inline_limits.
7094 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7095 inlinable, versionable and disregard_inline_limits.
7096 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7097 cgraph_check_inline_limits, cgraph_default_inline_p,
7098 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7099 add_new_edges_to_heap): Update.
7100 (cgraph_decide_inlining_of_small_function): Update; set
7101 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7102 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7103 cgraph_decide_inlining_incrementally): Update.
7104 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7105 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7106 time, size and estimated_growth parameters.
7107 (estimate_edge_growth): Update.
7108 (initialize_inline_failed): Declare.
7109 * ipa-split.c: Include ipa-inline.h
7110 (execute_split_functions): Update.
7111 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7112 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7113 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7114 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7115 estimated_growth to INT_MIN.
7116 (inline_node_duplication_hook): Likewise.
7117 (dump_inline_summary): Dump new fields.
7118 (compute_inline_parameters): Update.
7119 (estimate_edge_time, estimate_time_after_inlining,
7120 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7121 inline_write_summary):
7122 (initialize_inline_failed): Move here from cgraph.c.
7123 * tree-sra.c: Include ipa-inline.h.
7124 (ipa_sra_preliminary_function_checks): Update.
7125 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7128 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7130 * config/i386/sse.md (V16): New mode iterator.
7132 (AVXMODEQI, AVXMODEDI): Remove.
7133 (sse2, sse3): New mode attribute.
7134 (mov<mode>): Use V16 mode iterator.
7135 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7136 (push<mode>1): Use V16 mode iterator.
7137 (movmisalign<mode>): Ditto.
7138 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7139 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7140 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7141 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7142 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7143 avx_movdqu<avxmodesuffix>.
7144 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7145 *avx_movdqu<avxmodesuffix>.
7146 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7147 avx_lddqu<avxmodesuffix>.
7148 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7149 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7150 avx_movnt<AVXMODEDI:mode>.
7151 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7152 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7154 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7157 * haifa-sched.c (prune_ready_list, schedule_block): Use
7158 sched_pressure_p rather than flag_sched_pressure.
7160 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7162 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7163 cgraph_get_node instead of cgraph_get_create_node.
7165 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7167 * cfgexpand.c (expand_debug_expr): Use
7168 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7170 2011-04-15 Michael Matz <matz@suse.de>
7172 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7173 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7174 * function.c (gimplify_parameters): Ditto.
7175 * gimplify.c (gimplify_vla_decl): Ditto.
7177 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7178 (gimple_call_set_alloca_for_var): New inline function.
7179 (gimple_call_alloca_for_var_p): Ditto.
7180 * gimple.c (gimple_build_call_from_tree): Remember
7181 CALL_ALLOCA_FOR_VAR_P state.
7182 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7184 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7185 calls if they were for VLA objects.
7187 2011-04-15 Martin Jambor <mjambor@suse.cz>
7189 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7192 2011-04-15 Martin Jambor <mjambor@suse.cz>
7195 * tree-emutls.c (lower_emutls_function_body): Call
7196 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7199 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7201 * c-decl.c (detect_field_duplicates): Call
7202 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7204 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7206 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7207 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7208 * ipa-pure-const.c (check_stmt): Call it.
7209 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7211 2011-04-15 Richard Guenther <rguenther@suse.de>
7213 PR tree-optimization/48290
7214 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7215 Properly decide inhibiting propagation based on the valueized
7216 operand. Do loop-closed SSA form preserving here ...
7217 (init_copy_prop): ... not here.
7219 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7222 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7223 (*ieee_smax<mode>3): Likewise.
7225 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7227 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7228 Replace match_operand with match_dup for the third operand in
7231 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7233 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7234 to track processing of conditionals. Update all callers.
7235 (try_combine, simplify_if_then_else): Update.
7237 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7239 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7242 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7244 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7245 instead of match_operand for operand 3.
7247 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7249 * recog.h (insn_operand_data): Add an "allows_mem" field.
7250 * genoutput.c (output_operand_data): Initialize it.
7251 * optabs.c (maybe_legitimize_operand_same_code): New function.
7252 (maybe_legitimize_operand): Use it when matching the original
7255 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7257 * gimplify.c: Fix issues in comments throughout.
7258 (voidify_wrapper_expr): Fix long line.
7259 (build_stack_save_restore): Likewise.
7260 (gimplify_loop_expr): Likewise.
7261 (gimplify_compound_lval): Likewise.
7262 (gimplify_init_ctor_eval): Likewise.
7263 (gimplify_modify_expr_rhs): Likewise.
7264 (omp_notice_threadprivate_variable): Likewise.
7266 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7268 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7269 original one if this is not a builtin function.
7271 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7274 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7275 offset it as needed based on top 2 bits in operands[3], change
7276 MEM mode to SFmode and mask those 2 bits away from operands[3].
7278 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7280 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7281 change from objc_declare_protocols() to objc_declare_protocol().
7283 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7285 * config/i386/sse.md (sse4_1): New mode attribute.
7286 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7287 avx_blend<ssemodesuffix><avxmodesuffix> and
7288 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7289 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7290 avx_blendv<ssemodesuffix><avxmodesuffix> and
7291 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7292 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7293 avx_dp<ssemodesuffix><avxmodesuffix> and
7294 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7295 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7296 (sse4_1_packusdw): Merge with *avx_packusdw.
7297 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7298 (sse4_1_pblendw): Merge with *avx_pblendw.
7299 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7300 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7301 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7303 (sse4_1_round<ssescalarmodesuffix>): Merge with
7304 *avx_round<ssescalarmodesuffix>.
7305 (aesenc): Merge with *avx_aesenc.
7306 (aesenclast): Merge with *avx_aesenclast.
7307 (aesdec): Merge with *avx_aesdec.
7308 (aesdeclast): Merge with *avx_aesdeclast.
7309 (pclmulqdq): Merge with *pclmulqdq.
7310 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7312 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7314 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7317 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7318 (align_local_variable): This. Update DECL_ALIGN.
7319 (add_stack_var): Updated.
7320 (expand_one_stack_var): Likewise.
7322 2011-04-14 Richard Guenther <rguenther@suse.de>
7324 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7326 (dse_initialize_block_local_data, dse_leave_block,
7327 record_voperand_set, get_stmt_uid): Likewise.
7328 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7329 (dse_optimize_stmt): Remove voperand set handling code.
7330 Simplify and improve to handle any kind of killing stmt.
7331 (dse_record_phi): Remove.
7332 (dse_enter_block): Simplify.
7333 (tree_ssa_dse): Likewise.
7334 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7336 2011-04-14 Jan Hubicka <jh@suse.cz>
7338 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7339 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7340 (cgraph_local_info): Remove inline_summary.
7341 * ipa-cp.c: Include ipa-inline.h.
7342 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7343 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7345 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7346 (input_overwrite_node): Do not set inline summary.
7347 (input_node): Do not stream inline summary.
7348 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7349 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7350 growth; we do not have inline parameters computed for that anyway.
7351 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7352 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7353 (inline_summary_t): New type and VECtor.
7354 (debug_inline_summary, dump_inline_summaries): Declare.
7355 (inline_summary): Use VOCtor.
7356 (estimate_edge_growth): Kill hack computing call stmt size directly.
7357 * lto-section-in.c (lto_section_name): Add inline section.
7358 * ipa-inline-analysis.c: Include lto-streamer.h
7359 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7360 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7361 (inline_summary_vec): Define.
7362 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7363 dump_inline_summaries): New functions.
7364 (estimate_function_body_sizes): Properly compute size/time of outgoing
7366 (compute_inline_parameters): Alloc inline_summary; do not compute
7367 size/time of incomming calls.
7368 (estimate_edge_time): Avoid missing time summary hack.
7369 (inline_read_summary): Read inline summary info.
7370 (inline_write_summary): Write inline summary info.
7371 (inline_free_summary): Free all hooks and inline summary vector.
7372 * lto-streamer.h: Add LTO_section_inline_summary section.
7373 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7374 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7376 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7378 * tree-vectorizer.h (vect_strided_store_supported): Add a
7379 HOST_WIDE_INT argument.
7380 (vect_strided_load_supported): Likewise.
7381 (vect_permute_store_chain): Return void.
7382 (vect_transform_strided_load): Likewise.
7383 (vect_permute_load_chain): Delete.
7384 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7385 count argument. Check that the count is a power of two.
7386 (vect_strided_load_supported): Likewise.
7387 (vect_permute_store_chain): Return void. Update after above changes.
7388 Assert that the access is supported.
7389 (vect_permute_load_chain): Likewise.
7390 (vect_transform_strided_load): Return void.
7391 * tree-vect-stmts.c (vectorizable_store): Update calls after
7392 above interface changes.
7393 (vectorizable_load): Likewise.
7394 (vect_analyze_stmt): Don't check for strided powers of two here.
7396 2011-04-14 Richard Guenther <rguenther@suse.de>
7398 PR tree-optimization/48590
7399 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7400 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7401 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7402 BUILT_IN_STACK_SAVE.
7403 * tree-ssa-dce.c (propagate_necessity): Handle
7404 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7406 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7408 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7411 2011-04-14 Richard Guenther <rguenther@suse.de>
7413 * tree.h (get_object_alignment_1): Declare.
7414 * builtins.c (get_object_alignment_1): Split out worker from ...
7415 (get_object_alignment): ... here.
7416 * fold-const.c (get_pointer_modulus_and_residue): Use
7417 get_object_alignment_1.
7419 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7421 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7423 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7424 parameter. Generalise code to handle arrays as well as vectors.
7425 (vect_setup_realignment): Update accordingly.
7426 * tree-vect-stmts.c (vectorizable_store): Likewise.
7427 (vectorizable_load): Likewise.
7429 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7431 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7432 within the per-copy loop.
7434 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7436 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7439 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7441 * doc/options.texi (Negative): Explicitly mention that the
7442 Negative chain must be circular.
7444 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7446 * function.h (block_chainon): Declare.
7447 * function.c (block_chainon): Define.
7449 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7450 Eric Weddington <eric.weddington@atmel.com>
7451 Georg-Johann Lay <avr@gjlay.de>
7453 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7455 (avr_init_builtins, avr_expand_builtin,
7456 avr_expand_delay_cycles, avr_expand_unop_builtin,
7457 avr_expand_binop_builtin ): New functions.
7458 (avr_builtin_id): New enum
7459 (struct avr_builtin_description): New struct
7460 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7461 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7463 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7464 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7465 UNSPECV_DELAY_CYCLES): new enumeration values
7466 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7467 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7468 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7469 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7470 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7471 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7472 "fmulsu"): New insns
7474 * config/avr/avr-c.c: fix line endings
7475 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7476 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7477 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7478 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7479 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7481 * doc/extend.texi (AVR Built-in Functions): New node
7482 (Target Builtins): Add documentation of AVR
7485 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7488 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7489 alone. Error if non-const data has attribute progmem.
7491 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7493 * tree.h (struct tree_constructor): Include tree_typed instead of
7495 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7496 TS_TYPED instead of TS_COMMON.
7498 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7500 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7501 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7502 (sse2_psadbw): Merge with *avx_psadbw.
7503 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7504 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7505 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7506 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7507 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7508 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7509 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7510 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7511 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7512 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7513 (ssse3_palignrti): Merge with *avx_palignrti.
7515 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7517 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7518 * tree-ssanames.c (fini_ssanames): VEC_free it.
7519 (make_ssa_name_fn): Update for VECness of free_ssanames.
7520 (release_ssa_name, release_dead_ssa_names): Likewise.
7521 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7523 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7524 TS_TYPED instead of TS_COMMON.
7526 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7528 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7529 statistics_counter_event.
7530 * tree-ssa-copyrename.c (stats): Define.
7531 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7532 statistics_counter_event.
7533 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7534 (bswap_stats, widen_mul_stats): Define.
7535 (insert_reciprocals): Increment rdivs_inserted.
7536 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7537 rfuncs_inserted. Add calls to statistics_counter_event.
7538 (execute_cse_sincos_1): Increment inserted.
7539 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7540 statistics_counter_event.
7541 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7542 of bswap_stats. Add calls to statistics_counter_event.
7543 (convert_mult_to_widen): Increment widen_mults_inserted.
7544 (convert_plusminus_to_widen): Increment maccs_inserted.
7545 (convert_mult_to_fma): Increment fmas_inserted.
7546 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7547 calls to statistics_counter_event.
7549 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7551 PR rtl-optimization/48455
7552 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7553 `temp_costs->mem_cost'.
7555 2011-04-13 Jan Hubicka <jh@suse.cz>
7557 * ipa-inline.h: New file.
7558 * ipa-inline-analysis.c: New file. Broken out of ...
7559 * ipa-inline.c: ... this file; update toplevel comment;
7560 include ipa-inline.h
7561 (inline_summary): Move to ipa-inline.h
7562 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7563 ipa-inline-analysis.c.
7564 (cgraph_estimate_time_after_inlining): Rename to
7565 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7566 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7567 to estimate_edge_growth.
7568 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7569 rename to estimate_size_after_inlining.
7570 (cgraph_mark_inline_edge): Update for new naming convention.
7571 (cgraph_check_inline_limits): Likewise.
7572 (cgraph_edge_badness): Likewise.
7573 (cgraph_decide_recursive_inlining): Likewise.
7574 (cgraph_decide_inlining_of_small_functions): Likewise.
7575 (cgraph_decide_inlining_incrementally): Likewise.
7576 (cgraph_estimate_growth): Rename to estimate_growth; move to
7577 ipa-inline-analysis.c.
7578 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7579 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7580 (compute_inline_parameters): Likewise.
7581 (compute_inline_parameters_for_current): Likewise.
7582 (pass_inline_parameters): Likewise.
7583 (inline_indirect_intraprocedural_analysis): Likewise.
7584 (analyze_function): Rename to inline_analyze_function; likewise.
7585 (add_new_function): Move to ipa-inline-analysis.c.
7586 (inline_generate_summary): Likewise.
7587 (inline_read_summary): Likewise.
7588 (inline_write_summary): Likewise.
7589 * Makefile.in (ipa-inline-analysis.c): New file.
7591 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7593 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7594 * configure: Regenerate.
7596 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7598 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7599 instead of tree_common.
7600 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7602 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7603 TS_TYPED rather than TS_COMMON.
7604 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7606 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7609 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7610 r20 around calls of __tablejump_elpm__
7612 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7615 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7617 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7619 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7621 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7622 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7623 (cfi_vec): New typedef.
7624 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7625 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7626 (cie_cfi_vec): New static variable.
7627 (cie_cfi_head): Delete.
7628 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7629 declaration changed. Use vector rather than list operations.
7630 (new_cfi): Don't initialize the dw_cfi_next field.
7631 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7632 rather than list operations.
7633 (lookup_cfa): Use vector rather than list operations.
7634 (output_cfis): New argument upto. Accept a cfi_vec rather than
7635 a dw_cfi_ref list head as argument. All callers changed.
7636 Iterate over the vector using upto as a maximum index.
7637 (output_all_cfis): New static function.
7638 (output_fde): Use vector rather than list operations. Use the
7639 new upto argument for output_cfis rather than manipulating a
7641 (dwarf2out_begin_prologue): Change initializations to match
7643 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7644 from the vector length rather than searching for the end of a list.
7645 Use output_all_cfis.
7646 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7648 2011-04-13 Nick Clifton <nickc@redhat.com>
7650 * config/rx/rx.md (movmemsi): Do not use this pattern when
7651 volatile pointers are involved.
7653 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7655 * config/i386/sse.md (pinsrbits): Remove.
7656 (sse2_packsswb): Merge with *avx_packsswb.
7657 (sse2_packssdw): Merge with *avx_packssdw.
7658 (sse2_packuswb): Merge with *avx_packuswb.
7659 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7660 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7661 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7662 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7663 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7664 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7665 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7666 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7667 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7668 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7669 (sse2_loadld): Merge with *avx_loadld.
7670 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7671 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7672 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7673 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7674 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7676 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7678 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7680 * print-tree.c (print_node): Likewise.
7681 * tree-inline.c (copy_tree_r): Likewise.
7682 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7683 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7684 instead of TS_COMMON.
7685 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7686 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7687 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7688 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7689 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7691 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7693 (TREE_CHAIN): Check for a TS_COMMON structure.
7694 (TREE_TYPE): Check for a TS_TYPED structure.
7696 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7698 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7699 cgraph_get_create_node instead of cgraph_node.
7701 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7703 * c-parser.c (c_parser_initelt): Updated call to
7704 objc_build_message_expr.
7705 (c_parser_postfix_expression): Likewise.
7707 2011-04-12 Kai Tietz <ktietz@redhat.com>
7709 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7710 MASK_MS_BITFIELD_LAYOUT bit.
7712 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7714 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7715 assert it is always true.
7716 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7719 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7721 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7722 compiling Objective-C to be more efficient.
7724 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7726 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7729 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7731 * recog.h, genoutput.c, optabs.c: Revert last patch.
7733 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7736 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7738 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7740 * recog.h (insn_operand_data): Add an "allows_mem" field.
7741 * genoutput.c (output_operand_data): Initialize it.
7742 * optabs.c (maybe_legitimize_operand_same_code): New function.
7743 (maybe_legitimize_operand): Use it when matching the original
7746 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7748 * genpreds.c (process_define_predicate): Move most processing
7749 to gensupport.c. Continue to validate the expression.
7750 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7751 (process_define_predicate): Move processing to gensupport.c.
7752 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7753 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7754 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7756 (valid_predicate_name_p): New function, split out from old
7757 genpreds.c:process_define_predicate.
7758 (process_define_predicate): New function, combining code from
7759 old genpreds.c and genrecog.c functions.
7760 (process_rtx): Call it for DEFINE_PREDICATE and
7761 DEFINE_SPECIAL_PREDICATE.
7763 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7765 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7766 size of a '%A' memory reference.
7767 (T_DREG, T_QREG): New neon_builtin_type_bits.
7768 (arm_init_neon_builtins): Assert that the load and store operands
7769 are neon_struct_operands.
7770 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7771 (NEON_ARG_MEMORY): New builtin_arg.
7772 (neon_dereference_pointer): New function.
7773 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7774 Handle NEON_ARG_MEMORY.
7775 (arm_expand_neon_builtin): Update after above interface changes.
7776 Use NEON_ARG_MEMORY for loads and stores.
7777 * config/arm/predicates.md (neon_struct_operand): New predicate.
7778 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7779 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7780 (V_four_elem): Tweak formatting.
7781 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7782 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7783 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7784 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7785 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7786 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7787 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7788 Use %A in the output template.
7789 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7790 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7791 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7792 the width of the memory access. Remove post-increment.
7793 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7795 2011-04-12 Nick Clifton <nickc@redhat.com>
7797 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7798 instruction for interrupt handlers if the target is the basic V850
7800 (expand_epilogue): Likewise.
7802 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7804 PR rtl-optimization/48549
7805 * combine.c (propagate_for_debug): Also stop after BB_END of
7806 this_basic_block. Process LAST and just stop processing after it.
7807 (combine_instructions): If last_combined_insn has been deleted,
7808 set last_combined_insn to its PREV_INSN.
7810 2011-04-12 Richard Guenther <rguenther@suse.de>
7812 PR tree-optimization/46076
7813 * gimple.h (struct gimple_statement_call): Add fntype field.
7814 (gimple_call_fntype): Adjust.
7815 (gimple_call_set_fntype): New function.
7816 * gimple.c (gimple_build_call_1): Set the call function type.
7817 * gimplify.c (gimplify_call_expr): Preserve the function
7818 type the frontend used for the call.
7819 (gimplify_modify_expr): Likewise.
7820 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7822 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7824 * tree-ssa.c (useless_type_conversion_p): Function pointer
7825 conversions are useless.
7827 2011-04-12 Martin Jambor <mjambor@suse.cz>
7829 * cgraph.h (cgraph_node): Remove function declaration.
7830 (cgraph_create_node): Declare.
7831 (cgraph_get_create_node): Likewise.
7832 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7833 Updated all callers.
7834 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7835 the decl does not already exist. Call cgraph_get_create_node instead
7837 (cgraph_get_create_node): New function.
7838 (cgraph_same_body_alias): Update comment.
7839 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7840 assert it does not return NULL.
7841 (cgraph_update_edges_for_call_stmt): Likewise.
7842 (cgraph_clone_edge): Likewise.
7843 (cgraph_create_virtual_clone): Likewise.
7844 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7845 instead of cgraph_node.
7846 (cgraph_add_new_function): Call cgraph_create_node or
7847 cgraph_get_create_node instead of cgraph_node.
7848 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7849 instead of cgraph_node.
7850 (record_eh_tables): Likewise.
7851 (mark_address): Likewise.
7852 (mark_load): Likewise.
7853 (build_cgraph_edges): Call cgraph_get_create_node instead
7855 (rebuild_cgraph_edges): Likewise.
7856 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7857 instead of cgraph_node.
7858 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7860 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7861 cgraph_create_node instead of cgraph_node.
7862 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7864 * lto-cgraph.c (input_node): Likewise.
7865 * lto-streamer-in.c (input_function): Likewise.
7866 * varasm.c (mark_decl_referenced): Likewise.
7867 (assemble_alias): Likewise.
7869 2011-04-12 Martin Jambor <mjambor@suse.cz>
7871 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7872 instead of cgraph_node and assert it does not return NULL.
7873 * lto-streamer-in.c (lto_read_body): Likewise.
7874 * omp-low.c (new_omp_context): Likewise.
7875 (create_task_copyfn): Likewise.
7876 * tree-emutls.c (lower_emutls_function_body): Likewise.
7877 * matrix-reorg.c (transform_allocation_sites): Likewise.
7879 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7882 * c-typeck.c (build_asm_expr): Error out on attempts to use
7883 void type outputs or inputs for constraints that allow reg or
7886 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7887 Richard Earnshaw <rearnsha@arm.com>
7890 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7891 to use sign-magnitude offsets. Reject unsupported unaligned
7892 cases. Add detailed description in comments.
7893 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7894 condition from TARGET_32BIT to TARGET_ARM.
7896 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7898 * tree.h (struct typed_tree): New.
7899 (struct tree_common): Include it instead of tree_base.
7900 (TREE_TYPE): Update for new location of type field.
7901 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7902 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7903 (union tree_node): Add typed field.
7904 * treestruct.def (TS_TYPED): New.
7905 * lto-streamer.c (check_handled_ts_structures): Handle it.
7906 * tree.c (MARK_TS_TYPED): New macro.
7907 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7909 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7911 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7912 (force_nonfallthru): Do not alter the loop nest if no basic block
7915 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7917 * config/i386/sse.md (VI): New mode iterator.
7919 (AVX256MODEI): Ditto.
7920 (AVXMODEF4P): Ditto.
7921 (avxvecpsmode): Ditto.
7922 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7923 (sse2_andnot<mode>3): New expander.
7924 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7925 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7926 (<any_logic:code><mode>3): Use VI mode iterator.
7927 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7928 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7929 (*andnottf3): Handle AVX three-operand constraints.
7930 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7932 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7933 Robert Millan <rmh@gnu.org>
7935 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7936 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7937 GNU_USER_DYNAMIC_LINKER64): Define.
7938 (REG_NAME): Don't undefine.
7939 (MD_UNWIND_SUPPORT): Undefine.
7940 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7941 (REG_NAME): Don't undefine.
7942 (MD_UNWIND_SUPPORT): Undefine.
7943 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7945 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7947 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7948 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7950 2011-04-11 Xinliang David Li <davidxl@google.com>
7952 * value-profile.c (check_ic_target): New function.
7953 (gimple_ic_transform): Sanity check indirect call target.
7954 * gimple-low.c (gimple_check_call_args): Interface change.
7955 (gimple_check_call_matching_types): New function.
7956 * tree-inline.c (tree_can_inline_p): Call new function.
7958 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7960 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7961 tree-pretty-print.h & realmpfr.h.
7963 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7966 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7967 (setup_allocno_and_important_classes): Ditto.
7969 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7971 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7972 GNU_USER_DYNAMIC_LINKER.
7973 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7974 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7975 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7976 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7977 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7978 GNU_USER_TARGET_OS_CPP_BUILTINS.
7979 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7980 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7981 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7982 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7983 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7984 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7985 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7986 GNU_USER_TARGET_OS_CPP_BUILTINS.
7987 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7988 GNU_USER_DYNAMIC_LINKER.
7989 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7990 GNU_USER_TARGET_OS_CPP_BUILTINS.
7991 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7992 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7993 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7994 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7995 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7996 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7997 GNU_USER_DYNAMIC_LINKER64): Remove.
7998 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7999 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8000 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8001 GNU_USER_DYNAMIC_LINKER.
8002 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8003 GNU_USER_TARGET_OS_CPP_BUILTINS.
8004 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8005 GNU_USER_TARGET_OS_CPP_BUILTINS.
8006 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8007 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8008 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8009 GNU_USER_TARGET_OS_CPP_BUILTINS.
8010 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8011 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8012 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8013 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8014 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8015 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8016 GNU_USER_DYNAMIC_LINKER.
8017 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8018 GNU_USER_TARGET_OS_CPP_BUILTINS.
8019 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8020 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8021 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8022 GNU_USER_DYNAMIC_LINKER.
8023 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8024 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8025 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8026 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8027 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8028 GNU_USER_DYNAMIC_LINKER.
8029 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8030 GNU_USER_DYNAMIC_LINKERN32.
8031 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8032 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8033 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8034 GNU_USER_DYNAMIC_LINKER32.
8035 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8036 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8037 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8038 GNU_USER_DYNAMIC_LINKER.
8039 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8040 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8041 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8042 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8043 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8044 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8045 GNU_USER_DYNAMIC_LINKER32.
8046 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8047 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8048 GNU_USER_DYNAMIC_LINKER.
8049 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8050 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8051 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8052 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8053 GNU_USER_DYNAMIC_LINKER64.
8054 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8055 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8056 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8057 GNU_USER_DYNAMIC_LINKER.
8058 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8059 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8060 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8061 GNU_USER_DYNAMIC_LINKER.
8062 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8064 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8065 GNU_USER_DYNAMIC_LINKER32.
8066 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8067 GNU_USER_DYNAMIC_LINKER64.
8068 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8069 GNU_USER_DYNAMIC_LINKER64.
8070 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8071 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8072 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8073 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8074 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8076 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8078 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8079 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8080 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8081 GNU_USER_DYNAMIC_LINKER.
8082 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8083 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8084 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8085 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8086 GNU_USER_DYNAMIC_LINKER64.
8087 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8088 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8089 GNU_USER_LINK_EMULATION.
8090 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8091 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8092 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8093 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8094 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8095 CPP_SPEC, CC1_SPEC): Remove.
8096 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8097 (GNU_USER_DYNAMIC_LINKER): Define.
8098 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8099 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8100 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8101 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8102 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8103 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8104 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8105 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8106 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8107 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8108 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8109 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8110 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8111 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8112 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8113 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8114 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8115 GNU_USER_DYNAMIC_LINKER.
8116 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8117 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8118 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8119 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8120 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8121 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8122 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8123 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8124 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8125 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8127 2011-04-11 Kai Tietz <ktietz@redhat.com>
8131 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8132 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8134 (ix86_is_msabi_thiscall): Removed.
8135 (ix86_is_type_thiscall): Likewise.
8136 (ix86_get_callcvt): New function.
8137 (ix86_comp_type_attributes): Simplify check.
8138 (ix86_function_regparm): Use ix86_get_callcvt for calling
8139 convention attribute checks.
8140 (ix86_return_pops_args): Likewise.
8141 (ix86_static_chain): Likewise.
8142 (x86_this_parameter): Likewise.
8143 (x86_output_mi_thunk): Likewise.
8144 (ix86_function_type_abi): Optimize check for types without attributes.
8145 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8146 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8147 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8149 (IX86_BASE_CALLCVT): Helper macro.
8150 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8151 Use ix86_get_callcvt for calling convention attribute checks and avoid
8152 symbol-decoration for stdcall in TARGET_RTD case.
8153 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8155 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8158 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8160 * config/i386/sse.md (VI_128): New mode iterator.
8161 (VI12_128): Rename from SSEMODE12.
8162 (VI14_128): Rename from SSEMODE14.
8163 (VI124_128): New mode iterator.
8164 (VI24_128): Rename from SSEMODE248.
8165 (VI248_128): Rename from SSEMODE248.
8166 (SSEMODE124C8): Remove.
8167 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8168 (*sse2_<plusminus_insn><mode>3): Merge with
8169 *avx_<plusminus_insn><mode>3.
8170 (*mulv8hi3): Merge with *avx_mulv8hi3.
8171 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8172 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8173 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8174 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8175 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8176 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8177 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8178 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8179 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8180 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8181 (*<smaxmin:code>v8hi3): Ditto.
8182 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8183 (*<smaxmin:code>v16qi3): Ditto.
8184 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8185 (*sse2_eq<mode>3): Ditto.
8186 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8187 (*sse2_gt<mode>3): Ditto.
8188 (vcondv2di): Split out of vcond<mode>.
8189 (vconduv2di): Split out of vcondu<mode>.
8191 2011-04-11 Richard Guenther <rguenther@suse.de>
8193 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8194 before calling tree_low_cst.
8196 2011-04-11 Richard Guenther <rguenther@suse.de>
8198 * stor-layout.c (layout_type): Compute all array index size operations
8199 in the original type.
8200 (initialize_sizetypes): Add comment.
8201 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8203 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8205 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8207 2011-04-11 Martin Jambor <mjambor@suse.cz>
8209 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8210 of cgraph_node, handle NULL return value.
8211 (cgraph_global_info): Likewise.
8212 (cgraph_rtl_info): Likewise.
8213 * tree-inline.c (estimate_num_insns): Likewise.
8214 * gimplify.c (unshare_body): Likewise.
8215 (unvisit_body): Likewise.
8216 (gimplify_body): Likewise.
8217 * predict.c (optimize_function_for_size_p): Likewise.
8218 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8219 (call_may_clobber_ref_p_1): Likewise.
8220 * varasm.c (function_section_1): Likewise.
8221 (assemble_start_function): Likewise.
8223 2011-04-11 Martin Jambor <mjambor@suse.cz>
8225 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8227 * final.c (rest_of_clean_state): Likewise.
8228 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8229 * passes.c (pass_init_dump_file): Likewise.
8230 (execute_all_ipa_transforms): Likewise.
8231 (function_called_by_processed_nodes_p): Likewise.
8232 * predict.c (maybe_hot_frequency_p): Likewise.
8233 (probably_never_executed_bb_p): Likewise.
8234 (compute_function_frequency): Likewise.
8235 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8236 (unnest_nesting_tree_1): Likewise.
8237 (lower_nested_functions): Likewise.
8238 * tree-optimize.c (execute_fixup_cfg): Likewise.
8239 (tree_rest_of_compilation): Likewise.
8240 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8241 * tree-sra.c (ipa_early_sra): Likewise.
8242 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8243 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8244 * ipa.c (record_cdtor_fn): Likewise.
8245 * ipa-inline.c (cgraph_early_inlining): Likewise.
8246 (compute_inline_parameters_for_current): Likewise.
8247 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8248 * ipa-pure-const.c (local_pure_const): Likewise.
8249 * ipa-split.c (split_function): Likewise.
8250 (execute_split_functions): Likewise.
8251 * cgraphbuild.c (build_cgraph_edges): Likewise.
8252 (rebuild_cgraph_edges): Likewise.
8253 (cgraph_rebuild_references): Likewise.
8254 (remove_cgraph_callee_edges): Likewise.
8255 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8256 (verify_cgraph_node): Likewise.
8257 (cgraph_analyze_functions): Likewise.
8258 (cgraph_preserve_function_body_p): Likewise.
8259 (save_inline_function_body): Likewise.
8260 (save_inline_function_body): Likewise.
8261 * tree-inline.c (copy_bb): Likewise.
8262 (optimize_inline_calls): Likewise.
8264 2011-04-11 Martin Jambor <mjambor@suse.cz>
8266 PR tree-optimization/48195
8267 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8268 ipa_check_create_edge_args.
8269 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8270 ipa_check_create_edge_args.
8271 * ipa-inline.c (inline_generate_summary): Do not call
8272 ipa_check_create_node_params and ipa_check_create_edge_args.
8273 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8274 ipa_check_create_edge_args.
8276 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8278 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8280 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8281 * function.c (record_hard_reg_sets): Likewise.
8282 * ira.c (compute_regs_asm_clobbered): Likewise.
8283 * sched-deps.c (sched_analyze_1): Likewise.
8284 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8286 2011-04-09 Xinliang David Li <davidxl@google.com>
8288 PR tree-optimization/PR48484
8289 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8290 has_valid_pred lazily
8292 2011-04-09 Duncan Sands <baldrick@free.fr>
8294 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8296 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8298 * combine.c (combine_validate_cost): Adjust comments. Set registered
8299 cost of I0 to zero at the end, if any.
8301 2011-04-08 Xinliang David Li <davidxl@google.com>
8303 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8304 to insane profile data.
8306 2011-04-08 Xinliang David Li <davidxl@google.com>
8308 * ipa-cp.c (ipcp_update_profiling): Correct
8309 negative scale factor due to insane profile data.
8311 2011-04-08 Xinliang David Li <davidxl@google.com>
8313 * final.c (dump_basic_block_info): New function.
8314 (final): Dump basic block.
8315 (final_scan_insn): Remove old dump.
8317 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8320 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8323 2011-04-08 Michael Matz <matz@suse.de>
8326 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8328 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8329 * rtl.h (rebuild_jump_labels_chain): Declare.
8330 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8331 insns inserted on edges.
8333 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8335 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8336 * config/arm/arm-arches.def: New.
8337 * config/arm/arm-opts.h: New.
8338 * config/arm/genopt.sh: New.
8339 * config/arm/arm-tables.opt: New (generated).
8340 * config/arm/arm.c (arm_handle_option, arm_target_help,
8341 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8342 (all_architectures): Get most table contents from arm-arches.def.
8343 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8344 arm_selected_tune here.
8345 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8346 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8347 (march=, mcpu=, mtune=): Use Enum and Var.
8348 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8349 (arm.o): Update dependencies.
8351 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8353 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8355 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8356 (write_typed_alloc_defns): Likewise.
8357 (main): Calls write_typed_alloc_defns with output_header.
8359 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8362 * ira-color.c (setup_profitable_hard_regs): Add comments.
8363 Don't take prohibited hard regs into account.
8364 (setup_conflict_profitable_regs): Rename to
8365 get_conflict_profitable_regs.
8366 (check_hard_reg_p): Check prohibited hard regs.
8368 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8370 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8371 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8372 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8374 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8377 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8378 move from floating point to shift amount register.
8379 (emit_move_sequence): Remove secondary reload support for floating
8380 point to shift amount amount register copies.
8381 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8382 amount register copies.
8383 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8384 register, return false if mode isn't a scalar integer mode.
8385 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8387 2011-04-08 Richard Guenther <rguenther@suse.de>
8389 * gimple.c (gimple_call_flags): Remove kludge.
8391 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8393 * sel-sched.c (sel_region_init): Move call to
8394 sel_setup_region_sched_flags after setup_current_loop_nest.
8396 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8398 PR rtl-optimization/48272
8399 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8400 init_insn_reg_pressure_info. Adjust a caller.
8401 * sched-int.h (init_insn_reg_pressure_info): Declare.
8402 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8403 when sched-pressure is enabled.
8405 2011-04-08 Richard Guenther <rguenther@suse.de>
8407 * gimple.c (gimple_set_modified): Do not queue calls to
8408 MODIFIED_NORETURN_CALLS here ...
8409 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8411 2011-04-08 Richard Guenther <rguenther@suse.de>
8414 * toplev.c (lang_dependent_init): Do not open asm_out_file
8415 in WPA mode, nor perform debug machinery initialization.
8416 (finalize): Do not unlink asm_out_file in WPA mode.
8418 2011-04-08 Richard Guenther <rguenther@suse.de>
8420 * gimple.h (gimple_call_fntype): New function.
8421 (gimple_call_return_type): Use it.
8422 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8423 * gimple-low.c (gimple_check_call_args): Likewise.
8424 * gimple.c (gimple_call_flags): Likewise.
8425 (gimple_call_arg_flags): Likewise.
8426 (gimple_call_return_flags): Likewise.
8427 * tree-cfg.c (verify_gimple_call): Likewise.
8428 (do_warn_unused_result): Likewise.
8429 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8430 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8432 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8434 PR rtl-optimization/48235
8435 * sel-sched.c (code_motion_process_successors): Recompute the last
8436 insn in basic block if control flow changed.
8437 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8438 Update condition for ilist_remove.
8440 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8442 PR rtl-optimization/48302
8443 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8444 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8445 it to record added preheader blocks.
8446 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8447 on to sel_add_loop_preheaders.
8448 (sel_region_init): Move call to setup_current_loop_nest after
8451 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8454 * cfgloop.h (loop_has_exit_edges): New helper.
8455 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8457 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8458 that have no exit edges.
8460 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8462 PR rtl-optimization/48442
8463 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8464 all callers. Adjust assert.
8466 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8468 PR tree-optimization/48377
8469 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8470 is_packed to true even for types with smaller TYPE_ALIGN than
8473 2011-04-08 Richard Guenther <rguenther@suse.de>
8476 * doc/tm.texi: Re-generate.
8478 2011-04-08 Wei Guozhi <carrot@google.com>
8481 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8482 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8483 * config/arm/arm.md (*push_multi): Change the length computation to
8486 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8488 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8489 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8490 * doc/tm.texi: Regenerate.
8491 * system.h (ASM_OUTPUT_BSS): Poison.
8492 * varasm.c (asm_output_bss): Remove function.
8493 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8495 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8496 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8497 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8498 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8500 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8502 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8504 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8506 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8508 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8511 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8513 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8514 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8515 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8517 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8518 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8519 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8520 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8521 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8522 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8523 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8524 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8525 options. Don't map other m68k options manually. Don't handle
8526 old-style options as canonical.
8527 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8528 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8530 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8532 * basic-block.h (force_nonfallthru): Move to...
8533 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8534 (force_nonfallthru): ...here.
8535 * cfghooks.c (force_nonfallthru): New function.
8536 * cfgrtl.c (force_nonfallthru): Rename into...
8537 (rtl_force_nonfallthru): ...this.
8538 (commit_one_edge_insertion): Do not set AUX field.
8539 (commit_edge_insertions): Do not discover new basic blocks.
8540 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8541 (cfg_layout_rtl_cfg_hooks): Likewise.
8542 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8543 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8544 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8546 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8548 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8551 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8553 * config/i386/sse.md: Update copyright year.
8554 (avxcvtvecmode): Remove.
8555 (sse_movhlps): Merge with *avx_movhlps.
8556 (sse_movlhps): Merge with *avx_movlhps.
8557 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8558 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8559 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8560 (sse_loadhps): Merge with *avx_loadhps.
8561 (sse_storelps): Merge with *avx_storelps.
8562 (sse_loadlps): Merge with *avx_loadlps.
8563 (sse_movss): Merge with *avx_movss.
8564 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8565 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8566 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8567 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8568 (vec_set<mode>_0): Ditto.
8569 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8570 (sse4_1_insertps): Merge with *avx_insertps.
8571 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8572 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8573 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8574 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8575 (sse2_storehpd): Merge with *avx_storehpd.
8576 (sse2_loadhpd): Merge with *avx_loadhpd.
8577 (sse2_loadlpd): Merge with *avx_loadlpd.
8578 (sse2_movsd): Merge with *avx_movsd.
8579 (*vec_concatv2df): Merge with *vec_concatv2df.
8581 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8584 * combine.c (combine_instructions): Add last_combined_insn,
8585 update it if insn is after it, pass it to all try_combine calls.
8586 (try_combine): Add last_combined_insn parameter, pass it instead of
8587 i3 to propagate_for_debug.
8589 2011-04-07 Nick Clifton <nickc@redhat.com>
8591 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8592 to handle MDR <-> data register transfers.
8593 (movhi_internal): Likewise.
8595 2011-04-07 Alan Modra <amodra@gmail.com>
8597 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8598 previous stack info.
8600 2011-04-07 Tom de Vries <tom@codesourcery.com>
8603 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8604 flow_find_cross_jump. Swap variables to implement backward replacement.
8605 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8607 2011-04-07 Tom de Vries <tom@codesourcery.com>
8610 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8611 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8613 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8614 src1 or src2. Redirect edges to the last basic block. Update
8615 frequency and count on multiple basic blocks in case of fallthru.
8617 2011-04-07 Tom de Vries <tom@codesourcery.com>
8620 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8622 (old_insns_match_p): Change return type. Replace return false/true
8623 with return dir_none/dir_both. Use can_replace_by.
8624 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8625 direction from dir_p. Register replacement direction in dir, last_dir
8626 and afterlast_dir. Handle new return type of old_insns_match_p using
8627 merge_dir. Return replacement direction in dir_p.
8628 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8629 return type of old_insns_match_p.
8630 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8631 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8632 flow_find_cross_jump.
8633 * basic-block.h (enum replace_direction): New type.
8634 (flow_find_cross_jump): Add parameter to declaration.
8636 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8638 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8639 (AVXMODEDCVTPS2DQ): Ditto.
8640 (VEC_FLOAT_MODE): Ditto.
8641 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8642 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8643 (<any_logic:code><mode>3): Use VF mode iterator.
8644 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8645 Use VF mode iterator.
8646 (copysign<mode>3): Use VF mode iterator.
8647 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8648 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8649 (*<any_logic:code><MODEF:mode>3): Merge with
8650 *avx_<any_logic:code><MODEF:mode>3.
8651 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8652 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8653 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8654 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8655 (sse2_cvtdq2ps): Use %v modifier.
8656 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8657 (avx_cvtps2dq<avxmodesuffix>): Remove.
8658 (sse2_cvtps2dq): Use %v modifier.
8659 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8660 (avx_cvttps2dq<avxmodesuffix>): Remove.
8661 (sse2_cvttps2dq): Use %v modifier.
8662 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8663 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8664 (sse2_cvtsd2siq): Fix insn template.
8665 (sse2_cvtsd2siq_2): Ditto.
8666 (sse2_cvttsd2siq): Ditto.
8667 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8668 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8670 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8672 * gcov-io.c: Use GCC Runtime Library Exception.
8674 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8677 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8678 as base_reg whatever register reg has been eliminated to, instead
8679 of hardcoding STACK_POINTER_REGNUM.
8681 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8683 * doc/tm.texi.in: Document C target hooks as separate from general
8685 * doc/tm.texi: Regenerate.
8686 * genhooks.c (struct hook_desc): Add docname field.
8687 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8689 (hook_array): Include c-target.def.
8690 (emit_documentation): Use docname field in output.
8691 (emit_init_macros): Take docname argument. Only emit definitions
8692 for hooks matching docname.
8693 (main): Expect additional arguments in all cases. Pass argument
8694 to emit_init_macros.
8695 * target.def: Move initial macro definitions and comments to
8696 target-hooks-macros.h.
8697 (gcc_targetcm): Move to c-family/c-target.def.
8698 * target.h (targetcm): Move declaration to c-family/c-target.h.
8699 * targhooks.c (default_handle_c_option): Move to
8701 * targhooks.h (default_handle_c_option): Move declaration to
8702 c-family/c-common.h.
8703 * target-hooks-macros.h: New file.
8704 * config.gcc (target_has_targetcm): Define and use to add to
8705 c_target_objs and cxx_target_objs.
8706 * config/default-c.c: New file.
8707 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8708 of target.h and target-def.h.
8709 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8710 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8711 darwin_check_cfstring_format_arg): Make static.
8712 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8713 TARGET_STRING_OBJECT_REF_TYPE_P,
8714 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8715 * config/darwin-protos.h (darwin_objc_construct_string,
8716 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8718 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8719 TARGET_STRING_OBJECT_REF_TYPE_P,
8720 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8721 * config/t-darwin (darwin-c.o): Update dependencies.
8722 * system.h (TARGET_HAS_TARGETCM): Poison.
8723 * Makefile.in (TARGET_H): Update.
8724 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8725 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8726 (default-c.o): New target.
8727 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8728 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8729 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8731 (build/genhooks.o): Update dependencies.
8733 2011-04-06 Richard Guenther <rguenther@suse.de>
8735 * ipa-inline.c (enum inlining_mode): Remove.
8736 (cgraph_flatten): Use some other token.
8737 (cgraph_edge_early_inlinable_p): New function, split out from ...
8738 (cgraph_perform_always_inlining): New function, split out from ...
8739 (cgraph_decide_inlining_incrementally): ... here.
8740 (cgraph_mark_inline_edge): Adjust.
8741 (cgraph_early_inlining): Re-structure.
8742 (pass_early_inline): Require SSA form.
8744 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8745 Julian Brown <julian@codesourcery.com>
8746 Mark Shinwell <shinwell@codesourcery.com>
8748 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8749 LO_REGS only for Thumb-1.
8750 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8751 be used in short instructions when optimising for size on Thumb-2.
8753 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8755 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8756 associated with user returns to be preserved.
8758 2011-04-06 Tristan Gingold <gingold@adacore.com>
8760 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8761 symbol_queue_size, DBXOUT_DECR_NESTING,
8762 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8763 if XCOFF_DEBUGGING_INFO.
8765 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8767 * config/i386/i386.md (attribute isa): New.
8768 (attribute enabled): New.
8769 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8770 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8771 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8772 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8773 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8774 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8775 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8776 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8778 * config/i386/sse.md (VF): New mode iterator.
8782 (SSEMODEF4): Remove.
8783 (attribute sse): Handle V8SF and V4DF modes.
8784 (<absneg:code><mode>2): Use VF mode iterator.
8785 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8787 (<plusminus_insn><mode>3): Use VF mode iterator.
8788 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8789 Use VF mode iterator.
8790 (<sse>_vm<plusminus_insn><mode>3): Merge with
8791 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8792 (mul<mode>3): Use VF mode iterator.
8793 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8794 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8796 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8797 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8798 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8799 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8801 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8802 Use VF1 mode iterator.
8803 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8804 (sqrt<VF2:mode>2): New expander.
8805 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8806 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8807 and sqrtv2df2. Use VF mode iterator.
8808 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8810 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8811 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8812 Use VF1 mode iterator.
8813 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8814 (<smaxmin:code><mode>3): Use VF mode iterator.
8815 (*<smaxmin:code><mode>3_finite): Merge with
8816 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8817 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8818 (<sse>_vm<smaxmin:code><mode>2): Merge with
8819 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8820 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8822 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8824 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8825 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8826 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8827 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8828 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8830 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8831 Use VF_128 mode iterator.
8832 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8834 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8835 VF_128 mode iterator.
8836 (vcond<mode>): Use VF mode iterator.
8837 * config/i386/predicates.md (sse_comparison_operator): Merge with
8838 avx_comparison_float_operator. Do not declare as special_predicate.
8839 * config/i386/i386.c (struct builtin_description): Update for renamed
8841 (ix86_expand_args_builtin): Ditto.
8842 (ix86_expand_sse_compare_mask): Ditto.
8844 2011-04-06 Richard Guenther <rguenther@suse.de>
8846 * tree-inline.c (estimate_num_insns): For calls simply account
8847 for all passed arguments and a used return value.
8849 2011-04-06 Richard Guenther <rguenther@suse.de>
8851 PR tree-optimization/47663
8852 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8853 call_stmt_time fields.
8854 (cgraph_edge_inlinable_p): Declare.
8855 (cgraph_edge_recursive_p): New inline function.
8856 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8857 (cgraph_clone_edge): Copy it.
8858 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8859 Account for call stmt time.
8860 (cgraph_estimate_time_after_inlining): Take edge argument.
8861 (cgraph_estimate_edge_growth): Account call stmt size.
8862 (cgraph_estimate_size_after_inlining): Take edge argument.
8863 (cgraph_mark_inline_edge): Adjust.
8864 (cgraph_check_inline_limits): Likewise.
8865 (cgraph_recursive_inlining_p): Remove.
8866 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8867 (cgraph_decide_recursive_inlining): Take edge argument and
8869 (cgraph_decide_inlining_of_small_functions): Do not avoid
8870 diags for recursive inlining here.
8871 (cgraph_flatten): Adjust.
8872 (cgraph_decide_inlining_incrementally): Likewise.
8873 (estimate_function_body_sizes): Remove call cost handling.
8874 (compute_inline_parameters): Initialize caller edge call costs.
8875 (cgraph_estimate_edge_growth): New function.
8876 (cgraph_estimate_growth): Use it.
8877 (cgraph_edge_badness): Likewise.
8878 (cgraph_check_inline_limits): Take an edge argument.
8879 (cgraph_decide_inlining_of_small_functions): Adjust.
8880 (cgraph_decide_inlining): Likewise.
8881 * tree-inline.c (estimate_num_insns): Only account for call
8882 return value if it is used.
8883 (expand_call_inline): Avoid diagnostics on recursive inline
8885 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8886 (input_edge): Input edge call costs.
8888 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8890 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8892 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8894 * doc/invoke.texi (Spec Files): Fix typo.
8896 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8898 * profile.c (branch_prob): Move declaration of local variable. Remove
8899 obsolete ??? comment. Expand the location explicitly instead of using
8900 the LOCATION_FILE and LOCATION_LINE macros.
8902 2011-04-06 Wei Guozhi <carrot@google.com>
8905 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8906 (arm_cond_branch): Likewise.
8907 (arm_cond_branch_reversed): Likewise.
8908 (arm_jump): Likewise.
8909 (push_multi): Likewise.
8910 * config/arm/constraints.md (Py): New constraint.
8912 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8915 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8917 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8918 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8919 #ifdef DBX_DEBUGGING_INFO.
8921 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8924 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8925 if old and new states differ.
8927 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8929 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8930 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8931 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8932 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8933 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8935 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8936 ColdFire options to -mcpu= options.
8938 2011-04-05 Jeff Law <law@redhat.com>
8940 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8941 check if BB is a successor of LOOP->header and return
8942 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8944 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8946 * cprop.c (struct reg_use): Remove.
8947 (reg_use_table): Make an array of RTX.
8948 (find_used_regs, constprop_register, local_cprop_pass,
8949 bypass_block): Simplify users of reg_use_table.
8950 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8951 on one of the uses found by find_used_regs.
8953 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8956 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8959 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8961 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8963 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8965 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8968 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8970 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8972 * combine.c: Include obstack.h.
8973 (struct insn_link): Define.
8974 (uid_log_links): Adjust type.
8975 (FOR_EACH_LOG_LINK): New macro.
8976 (insn_link_obstack): Declare.
8977 (alloc_insn_link): Define.
8978 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8979 type of link variables.
8980 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8981 (try_combine, record_promoted_values, distribute_notes): Likewise.
8982 (distribute_links): Likewise. Tweak prototype.
8983 (clear_log_links): Delete.
8984 (adjust_for_new_dest): Call alloc_insn_link.
8985 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8987 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8989 * gcse.c (modify_mem_list): Convert to an array of VECs.
8990 (canon_modify_mem_list, compute_transp): Tweak formatting.
8991 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8992 (load_killed_in_block_p): Likewise.
8993 (record_last_mem_set_info): Likewise.
8994 (clear_modify_mem_tables): Likewise.
8996 2011-04-05 Tom de Vries <tom@codesourcery.com>
8999 * function.c (emit_use_return_register_into_block): Only define if
9002 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9004 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9006 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9008 * config/rx/rx-opts.h: New.
9009 * config/rx/rx.c (rx_cpu_type): Remove.
9010 (rx_handle_option): Don't assert that global structures are in
9011 use. Access variables via opts pointer. Defer most handling of
9012 OPT_mint_register_. Use error_at.
9013 (rx_option_override): Handle deferred OPT_mint_register_ here.
9014 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9015 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9016 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9017 (rx_cpu_types): New Enum and EnumValue entries.
9018 (mint-register=): Use Defer and use Var accordingly.
9020 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9022 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9023 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9024 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9026 (debug_free_queue, debug_nesting, symbol_queue_index):
9028 * dbxout.c: ...to here. Make static.
9030 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9032 * gcse.c (modify_pair): Define. Define a VEC of it.
9033 (canon_modify_mem_list): Convert to an array of VECs.
9034 (free_insn_expr_list_list): Delete.
9035 (clear_modify_mem_tables): Call VEC_free instead.
9036 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9037 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9038 (canon_list_insert, compute_transp): Likewise.
9040 2011-04-05 Tom de Vries <tom@codesourcery.com>
9043 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9046 2011-04-05 Tom de Vries <tom@codesourcery.com>
9049 * function.c (emit_use_return_register_into_block): New function.
9050 (thread_prologue_and_epilogue_insns): Use
9051 emit_use_return_register_into_block.
9053 2011-04-05 Tom de Vries <tom@codesourcery.com>
9056 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9059 2011-04-05 Tom de Vries <tom@codesourcery.com>
9061 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9063 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9065 * config/arm/arm.md (define_constants for unspec): Replace with
9067 (define_constants for unspecv): Replace with define_c_enum.
9068 * config/arm/neon.md (define_constants for unspec): Replace with
9071 2011-04-04 Richard Henderson <rth@redhat.com>
9074 * dwarf2out.c (output_line_info): Always emit line info from
9075 at least one section.
9076 (dwarf2out_init): Create text_section_line_info here ...
9077 (set_cur_line_info_table): ... not here.
9079 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9082 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9085 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9087 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9089 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9090 (expr_equiv_p): Remove.
9091 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9092 (hash_scan_set): Update call to insert_set_in_table.
9093 (dump_hash_table): Dump <dest, src> pair.
9094 (lookup_set): Simplify. Lookup <dest, src> pair.
9095 (compute_transp): Remove, fold heavily simplified code into...
9096 (compute_local_properties): ...here. Expect COMP and TRANSP
9098 (find_avail_set): Take set directly from struct expr.
9099 (find_bypass-set): Likewise.
9100 (bypass_block): Likewise.
9101 (cprop_insn): Likewise. Remove redundant INSN_P test.
9103 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9104 checks on form of COND from find_implicit_sets to here.
9105 (find_implicit_sets): Cleanup control flow. Split critical edges
9106 if it exposes implicit sets. Allocate/resize implicit_sets as
9108 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9109 changed something. Run df_analyze after find_implicit_sets if any
9110 edges were split. Do not allocate implicit_sets here.
9112 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9113 (gcse_obstack): Renamed to cprop_obstack.
9114 (GNEW, GNEWVEC, GNEWVAR): Remove.
9116 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9117 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9118 (gcse_alloc): Likewise, and rename to cprop_alloc.
9119 (alloc_gcse_men, free_gcse_mem): Remove.
9120 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9121 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9122 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9124 * cprop.c (oprs_not_set_p): Remove.
9125 (mark_set, mark_clobber): Remove.
9126 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9127 (reg_not_set_p): New function.
9128 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9129 (cprop_insn): Likewise.
9130 (cprop_jump): Use FOR_EACH_EDGE.
9132 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9135 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9136 (rank_for_schedule): Use scheduled_insns vector instead of
9137 last_scheduled_insn.
9138 (ok_for_early_queue_removal): Likewise.
9139 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9141 (choose_ready): Likewise.
9142 (commit_schedule): Use VEC_iterate.
9143 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9144 a dbg_cnt, use it and ensure the first insn is in the ready list.
9145 (haifa_sched_init): Allocate scheduled_insns.
9146 (sched_extend_ready_list): Don't allocate it; reserve space.
9147 (haifa_sched_finish): Free it.
9149 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9151 * optc-gen.awk: Always remove type from Variable entry before
9152 recording in var_seen.
9154 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9156 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9157 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9158 call to tidy_fallthru_edges.
9160 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9162 * doc/options.texi (ToLower): Document.
9163 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9164 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9165 * opts.h (cl_option): Add cl_tolower field.
9166 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9167 arguments with lowercase strings.
9168 * config/rx/rx.opt (mcpu=): Add ToLower.
9169 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9172 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9174 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9176 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9178 * config/vax/vax.c: Include reload.h.
9180 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9182 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9183 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9184 (sparc_preferred_reload_class): New function.
9186 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9189 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9190 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9192 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9194 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9195 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9197 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9199 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9200 (ASM_OUTPUT_ALIGNED_BSS): Define.
9202 2011-04-03 Michael Matz <matz@suse.de>
9204 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9205 and next_slot members.
9206 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9207 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9208 (lto_streamer_cache_append): Declare.
9209 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9210 unsigned index, remove offset parameter, ensure that we append
9211 or update existing entries.
9212 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9213 parameter, update next_slot for append.
9214 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9216 (lto_streamer_cache_insert_at): Likewise.
9217 (lto_streamer_cache_append): New function.
9218 (lto_streamer_cache_lookup): Use unsigned index.
9219 (lto_streamer_cache_get): Likewise.
9220 (lto_record_common_node): Don't test tree_node_can_be_shared.
9221 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9222 (lto_streamer_cache_delete): Don't free offsets member.
9223 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9224 (lto_output_string_with_length): Use lto_output_data_stream.
9225 (lto_output_tree_header): Remove ix parameter, don't write it.
9226 (lto_output_builtin_tree): Likewise.
9227 (lto_write_tree): Adjust callers to above, don't track and write
9228 offset, write unsigned index.
9229 (output_unreferenced_globals): Don't emit all global vars.
9230 (write_global_references): Use unsigned indices.
9231 (lto_output_decl_state_refs): Likewise.
9232 (write_symbol): Likewise.
9233 * lto-streamer-in.c (lto_input_chain): Move earlier.
9234 (input_function): Use unsigned index.
9235 (input_alias_pairs): Don't read and then ignore all global vars.
9236 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9237 don't pass it back, use lto_streamer_cache_append.
9238 (lto_register_var_decl_in_symtab): Use unsigned index.
9239 (lto_register_function_decl_in_symtab): Likewise.
9240 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9242 (lto_get_builtin_tree): Don't read index, use
9243 lto_streamer_cache_append.
9244 (lto_read_tree): Adjust call to lto_materialize_tree.
9246 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9247 don't use function calls in arguments to MIN.
9249 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9252 * gimple.c (gimple_type_leader_entry): Mark deletable.
9254 2011-04-03 Alan Modra <amodra@gmail.com>
9256 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9258 2011-04-03 Michael Matz <matz@suse.de>
9260 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9262 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9264 2011-04-03 Michael Matz <matz@suse.de>
9266 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9267 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9268 without function context.
9269 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9270 current_function_decl and cfun.
9272 2011-04-03 Michael Matz <matz@suse.de>
9274 * tree.c (decl_init_priority_insert): Don't create entry for
9276 (decl_fini_priority_insert): Ditto.
9277 (fields_compatible_p, find_compatible_field): Remove.
9278 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9279 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9281 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9283 * combine.c (try_combine): Remove useless local variable.
9285 2011-04-03 Richard Guenther <rguenther@suse.de>
9286 Ira Rosen <ira.rosen@linaro.org>
9288 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9289 non-variable offsets and compare the remaining bases of the two
9290 accesses instead of looking for exact same data-ref.
9292 2011-04-02 Kai Tietz <ktietz@redhat.com>
9295 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9297 * i386.c (ix86_is_msabi_thiscall): New helper function.
9298 (ix86_is_type_thiscall): New helper function.
9299 (ix86_comp_type_attributes): Handle thiscall for method-functions
9301 (init_cumulative_args): Likewise.
9302 (find_drap_reg): Likewise.
9303 (ix86_static_chain): Likewise.
9304 (x86_this_parameter): Likewise.
9305 (x86_output_mi_thunk): Likewise.
9307 2011-04-01 Olivier Hainque <hainque@adacore.com>
9308 Nicolas Setton <setton@adacore.com>
9309 Eric Botcazou <ebotcazou@adacore.com>
9311 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9312 (add_gnat_descriptive_type_attribute): New function.
9313 (gen_array_type_die): Call it.
9314 (gen_enumeration_type_die): Likewise.
9315 (gen_struct_or_union_type_die): Likewise.
9316 (modified_type_die): Likewise.
9317 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9318 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9319 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9321 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9324 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9325 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9328 2011-03-17 Richard Guenther <rguenther@suse.de>
9331 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9332 origin for decls in other ltrans units.
9333 (input_varpool_node): Likewise.
9335 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9338 * expr.c (expand_assignment): Handle all possibilities
9339 if TO_RTX is CONCAT.
9340 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9341 (store_split_bit_field): If SUBREG_REG (op0) or
9342 op0 itself has smaller mode than word, return it
9343 for offset 0 and const0_rtx for out-of-bounds stores.
9344 If word is const0_rtx, skip it.
9346 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9348 * config/h8300/h8300.c (print_operand_address): Rename to...
9349 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9350 Call h8300_print_operand and h8300_print_operand_address instead of
9351 print_operand and print_operand_address. Declare.
9352 (print_operand): Renake to...
9353 (h8300_print_operand): ...this. Make static. Adjust comments.
9354 Call h8300_print_operand instead of print_operand. Declare.
9355 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9356 (h8300_register_move_cost): Likewise.
9357 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9358 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9359 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9360 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9361 * config/h8300/h8300-protos.h (print_operand): Delete.
9362 (print_operand_address): Delete.
9364 2011-04-01 Richard Henderson <rth@redhat.com>
9367 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9368 in strict mode before dwarf4. Re-order tests to early out
9369 before switching sections.
9371 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9373 * config/h8300/constraints.md: New file.
9374 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9375 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9376 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9377 * config/h8300/predicates.md (bit_operand): Likewise.
9378 (incdec_operand): Use satisfies_constraint_M and
9379 satisfies_constraint_O. Don't use C code block.
9380 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9381 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9382 (compute_mov_length): Use satisfies_constraint_G.
9383 (fix_bit_operand): Use satisfies_constraint_U.
9384 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9385 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9386 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9387 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9388 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9389 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9390 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9391 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9392 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9393 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9394 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9395 (EXTRA_MEMORY_CONSTRAINT): Delete.
9397 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9398 Michael Meissner <meissner@linux.vnet.ibm.com>
9401 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9402 operands, as per the specifications.
9404 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9405 (vec_extract_evenv4sf): Ditto.
9406 (vec_extract_evenv8hi): Ditto.
9407 (vec_extract_evenv16qi): Ditto.
9408 (vec_extract_oddv4si): Ditto.
9410 2011-03-31 Mark Wielaard <mjw@redhat.com>
9412 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9413 high_pc attribute if the CU has no associated code. Only output
9414 DW_AT_entry_pc for CU if not generating strict dwarf and
9417 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9419 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9420 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9422 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9423 * final.c (final_start_function): Call the new function rather
9424 than using a NULL argument for dwarf2out_frame_debug.
9426 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9427 that contains the prologue.
9429 * haifa-sched.c (queue_insn): New arg REASON. All callers
9430 changed. Print it in debugging output.
9432 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9434 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9435 Split most of the code into...
9436 (begin_move_insn): ... here. New function.
9437 (ebb_sched_info): Add a pointer to it.
9438 * haifa-sched.c (scheduled_insns): New static variable.
9439 (sched_extend_ready_list): Allocate it.
9440 (schedule_block): Use it to record the order of scheduled insns.
9441 Perform RTL changes to move insns only after all scheduling
9442 decisions have been made.
9443 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9444 begin_move_insn field.
9445 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9446 * sched-int.h (struct haifa_sched_info): Remove second argument
9447 from begin_schedule_ready hook. Add new member begin_move_insn.
9448 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9449 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9451 * haifa-sched.c (prune_ready_list): New function, broken out of
9453 (schedule_block): Use it.
9455 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9457 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9459 2011-04-01 Kai Tietz <ktietz@redhat.com>
9461 * config.gcc (*-*-mingw*): Allow as option the
9462 posix threading model.
9463 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9464 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9466 (CPP_SPEC): Add pthread/no-pthread handling.
9467 (LIB_SPEC): Likewise.
9468 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9469 (LIB_SPEC): Likewise.
9470 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9471 flag to pass -pthread option for shared libgcc build.
9472 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9473 for shared libgcc build.
9474 * config/i386/t-mingw-pthread: New file.
9475 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9476 New define to enable use of library pthread by default.
9477 * config/i386/mingw.opt (pthread): New driver option.
9478 (no-pthread): New driver option.
9479 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9480 * config/i386/mingw-w64.opt: Likewise.
9482 2011-04-01 Gary Funck <gary@intrepid.com>
9484 * c-decl.c (grokdeclarator): Fix formatting.
9486 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9488 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9489 instead of n_operands.
9490 (set_storage_via_setmem): Likewise.
9491 * optabs.c (maybe_gen_insn): Likewise.
9492 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9493 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9494 (mips_expand_builtin_direct): Likewise.
9495 * config/spu/spu.c (expand_builtin_args): Likewise.
9497 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9499 * recog.h (insn_data_d): Add n_generator_args.
9500 * genoutput.c (data): Likewise.
9501 (output_insn_data): Print it.
9502 (max_opno, num_dups): Delete.
9503 (scan_operands): Just fill in "d->operand[...]".
9504 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9506 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9508 * gensupport.h (pattern_stats): New structure.
9509 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9510 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9511 (max_operand_1, max_operand_vec): Delete.
9512 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9514 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9516 * emit-rtl.c (emit_pattern_after_setloc): New function.
9517 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9518 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9519 (emit_pattern_after): New function.
9520 (emit_insn_after, emit_jump_insn_after): Call it.
9521 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9522 (emit_pattern_before_setloc): New function.
9523 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9524 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9526 (emit_pattern_before): New function.
9527 (emit_insn_before, emit_jump_insn_before): Call it.
9528 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9530 2011-03-31 Richard Henderson <rth@redhat.com>
9532 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9533 (dw_separate_line_info_entry): Remove.
9534 (enum dw_line_info_opcode): New.
9535 (dw_line_info_entry): Use it.
9536 (dw_line_info_table, dw_line_info_table_p): New.
9537 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9538 (line_info_table, line_info_label_num): Remove.
9539 (line_info_table_in_use): Remove.
9540 (separate_line_info_table): Remove.
9541 (separate_line_info_table_allocated): Remove.
9542 (separate_line_info_table_in_use): Remove.
9543 (LINE_INFO_TABLE_INCREMENT): Remove.
9544 (line_info_label_num): New.
9545 (cur_line_info_table): New.
9546 (text_section_line_info, cold_text_section_line_info): New.
9547 (separate_line_info): New.
9548 (SEPARATE_LINE_CODE_LABEL): Remove.
9549 (print_dwarf_line_table): Remove.
9550 (debug_dwarf): Don't dump it.
9551 (output_one_line_info_table): New.
9552 (output_line_info): Use it.
9553 (new_line_info_table): New.
9554 (set_cur_line_info_table): New.
9555 (dwarf2out_switch_text_section): Use it.
9556 (dwarf2out_begin_function): Likewise.
9557 (push_dw_line_info_entry): New.
9558 (dwarf2out_source_line): Rewrite for new line info tables.
9559 (dwarf2out_init): Remove dead initailizations.
9561 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9563 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9565 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9566 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9567 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9568 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9569 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9570 * opt-functions.awk (flag_init, switch_bit_fields): New.
9571 (switch_flags): Don't handle flags moved to bit-fields. Don't
9572 generate CL_MISSING_OK or CL_SAVE.
9573 * optc-gen.awk: Update to generate bit-field output as well as
9575 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9576 bit-field instead of CL_REJECT_DRIVER flag.
9577 * opts-common.c (generate_canonical_option,
9578 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9579 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9580 instead of CL_REJECT_NEGATIVE flag.
9581 * toplev.c (print_switch_values): Use cl_report bit-field instead
9584 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9586 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9587 a zero minimum index only if it is redundant.
9589 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9591 PR rtl-optimization/48381
9592 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9593 instead of ira_class_hard_reg_index for calculating conflicting
9596 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9598 * cprop.c: Clean up hash table building.
9599 (reg_avail_info): Remove.
9600 (oprs_available_p): Remove.
9601 (record_last_reg_set_info): Remove.
9602 (record_last_set_info): Remove.
9603 (reg_available_p): New function.
9604 (gcse_constant_p): Do not treat unfolded conditions as constants.
9605 (make_set_regs_unavailable): New function.
9606 (hash_scan_set): Simplify with new reg_available_p.
9607 (compute_hash_table_work): Traverse insns stream only once.
9608 Do not compute reg_avail_info. Traverse insns in reverse order.
9609 Record implicit sets after recording explicit sets from the block.
9611 2011-03-31 Michael Matz <matz@suse.de>
9613 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9615 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9617 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9618 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9619 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9620 (h8300_mode_dependent_address_p): New function.
9621 (h8300_get_index): Make static.
9623 2011-03-31 Jeff Law <law@redhat.com>
9625 * reload1.c (elimination_effects): Fix typo in recent change.
9627 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9628 typo potentially leading to null pointer dereference.
9630 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9631 (setup_save_areas): Corresponding changes to avoid useless
9634 * jump.c (reversed_comparison_code_parts): Avoid successive return
9635 statements when REVERSE_CONDITION is defined.
9637 * expr.c (expand_assignment): Avoid useless assignments.
9638 (expand_expr_real_1): Likewise.
9639 (expand_expr_real_2): Avoid useless statements.
9641 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9643 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9645 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9648 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9650 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9653 * doc/tm.texi.in (TARGET_VERSION): Remove.
9654 * doc/tm.texi: Regenerate.
9655 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9656 * collect2.c (main): Don't use TARGET_VERSION.
9657 * mips-tdump.c (main): Don't use TARGET_VERSION.
9658 * mips-tfile.c (main): Don't use TARGET_VERSION.
9659 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9660 * config/rs6000/vxworksae.h: Remove.
9661 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9662 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9663 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9664 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9665 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9666 * config/arm/arm.h (TARGET_VERSION): Remove.
9667 * config/arm/coff.h (TARGET_VERSION): Remove.
9668 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9669 * config/arm/elf.h (TARGET_VERSION): Remove.
9670 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9671 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9672 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9673 * config/arm/pe.h (TARGET_VERSION): Remove.
9674 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9675 * config/arm/semi.h (TARGET_VERSION): Remove.
9676 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9677 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9678 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9679 * config/avr/avr.h (TARGET_VERSION): Remove.
9680 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9681 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9682 * config/frv/frv.h (TARGET_VERSION): Remove.
9683 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9684 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9685 * config/i386/darwin.h (TARGET_VERSION): Remove.
9686 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9687 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9688 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9689 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9690 * config/i386/gnu.h (TARGET_VERSION): Remove.
9691 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9692 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9693 * config/i386/linux.h (TARGET_VERSION): Remove.
9694 * config/i386/linux64.h (TARGET_VERSION): Remove.
9695 * config/i386/lynx.h (TARGET_VERSION): Remove.
9696 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9697 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9698 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9699 * config/i386/netware.h (TARGET_VERSION): Remove.
9700 * config/i386/nto.h (TARGET_VERSION): Remove.
9701 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9702 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9703 * config/ia64/elf.h (TARGET_VERSION): Remove.
9704 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9705 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9706 * config/ia64/linux.h (TARGET_VERSION): Remove.
9707 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9708 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9709 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9710 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9711 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9712 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9713 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9714 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9715 * config/m68k/linux.h (TARGET_VERSION): Remove.
9716 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9717 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9718 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9719 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9720 * config/mep/mep.h (TARGET_VERSION): Remove.
9721 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9722 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9723 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9724 * config/mips/linux.h (TARGET_VERSION): Remove.
9725 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9726 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9727 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9728 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9729 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9730 * config/pa/pa.h (TARGET_VERSION): Remove.
9731 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9732 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9733 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9734 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9735 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9736 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9737 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9738 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9739 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9740 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9741 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9742 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9743 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9744 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9745 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9746 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9747 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9748 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9749 * config/s390/linux.h (TARGET_VERSION): Remove.
9750 * config/s390/s390.h (TARGET_VERSION): Remove.
9751 * config/s390/tpf.h (TARGET_VERSION): Remove.
9752 * config/score/score.h (TARGET_VERSION): Remove.
9753 * config/sh/linux.h (TARGET_VERSION): Remove.
9754 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9755 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9756 * config/sh/sh.h (TARGET_VERSION): Remove.
9757 * config/sh/sh64.h (TARGET_VERSION): Remove.
9758 * config/sh/superh.h (TARGET_VERSION): Remove.
9759 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9760 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9761 * config/sparc/linux.h (TARGET_VERSION): Remove.
9762 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9763 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9764 TARGET_NAME32, TARGET_NAME): Remove.
9765 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9766 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9767 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9768 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9769 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9770 * config/spu/spu.h (TARGET_VERSION): Remove.
9771 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9772 * config/v850/v850.h (TARGET_VERSION): Remove.
9773 * config/vax/linux.h (TARGET_VERSION): Remove.
9774 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9775 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9776 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9778 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9781 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9782 frame-related from frame-unrelated adjustments to the stack pointer.
9784 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9786 * common.opt (fdebug-types-section): Move earlier.
9787 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9789 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9791 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9794 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9796 * tree.h (CASE_CHAIN): Define.
9797 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9798 (gimple_redirect_edge_and_branch): Likewise.
9800 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9803 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9806 2011-03-30 Jeff Law <law@redhat.com>
9808 * PR bootstrap/48371
9809 * reload1.c (reload): Fix botch in last change.
9811 * reload.h (struct reload): Fix typo introduced in last change.
9813 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9815 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9816 Undocumented. Remove help text.
9817 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9820 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9822 * doc/options.texi (NegativeAlias): Document.
9823 (Alias): Mention NegativeAlias.
9824 * opt-functions.awk: Handle NegativeAlias.
9825 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9826 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9827 * opts.h (CL_NEGATIVE_ALIAS): Define.
9828 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9829 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9831 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9833 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9834 mno-spe and mno-isel instead of mspe=no and -misel=no.
9836 2011-03-29 Mark Wielaard <mjw@redhat.com>
9838 * common.opt (fdebug-types-section): New flag.
9839 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9840 * dwarf2out.c (use_debug_types): New define.
9841 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9842 (print_die): Guard output of type unit signatures using
9844 (build_abbrev_table): Replace assert of dwarf_version >= 4
9845 with assert on use_debug_types.
9846 (size_of_die): Likewise.
9847 (unmark_dies): Likewise.
9848 (value_format): Decide AT_ref_external form on use_debug_types.
9849 (output_die): Replace dwarf_version version check guard with
9850 use_debug_types where appropriate.
9851 (modified_type_die): Likewise.
9852 (gen_reference_type_die): Likewise.
9853 (dwarf2out_start_source_file): Likewise.
9854 (dwarf2out_end_source_file): Likewise.
9855 (prune_unused_types_walk_attribs): Likewise.
9856 (dwarf2out_finish): Likewise.
9858 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9860 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9862 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9864 PR rtl-optimization/48332
9865 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9866 mode of input operand N and modeN to its actual mode.
9868 2011-03-30 Jeff Law <law@redhat.com>
9870 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9871 define accessor macro.
9872 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9873 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9874 (reg_equiv_init): Likewise.
9875 (reg_equivs_size): New variable.
9876 (reg_equiv_init_size): Remove.
9877 (allocate_initial_values): Move prototype to here from....
9878 * integrate.h (allocate_initial_values): Remove prototype.
9879 * integrate.c: Include reload.h.
9880 (allocate_initial_values): Corresponding changes.
9881 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9882 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9883 (update_equiv_regs): Corresponding changes.
9884 (ira): Corresponding changes.
9885 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9886 (push_secondary_reload): Corresponding changes.
9887 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9888 (make_memloc, find_reloads_address): Corresponding changes.
9889 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9890 (find_reloads_address_1): Corresponding changes.
9891 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9892 (refers_to_regno_for_reload_p): Corresponding changes.
9893 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9894 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9895 * reload1.c: Include ggc.h.
9896 (grow_reg_equivs): New function.
9897 (replace_pseudos_in, reload): Corresponding changes.
9898 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9899 (eliminate_regs_1, elimination_effects): Corresponding changes.
9900 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9901 (delete_output_reload): Likewise.
9902 * caller-save.c (mark_referenced_regs): Corresponding changes.
9903 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9904 * frv/predicates.md (frv_load_operand): Corresponding changes.
9905 * microblaze/microblaze.c (double_memory_operand): Corresponding
9907 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9908 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9909 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9910 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9911 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9913 * pa/pa.c (emit_move_sequence): Corresponding changes.
9914 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9916 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9919 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9920 structure modes. Don't check neon_vector_mem_operand for
9921 vector or structure modes.
9923 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9924 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9927 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9928 operand 1 and reshuffle the operands to match.
9929 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9931 2011-03-30 Christian SchĂĽler <cschueler@gmx.de>
9934 * config/c.opt (F): Added 'Driver' to -F option.
9937 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9939 * config/darwin.opt: Added '-arch' option.
9941 2011-03-30 Nick Clifton <nickc@redhat.com>
9943 * config/rx/rx.md: Add peepholes and patterns to combine
9944 extending loads and simple arithmetic instructions.
9945 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9946 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9947 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9948 modes to use pre-decrement and post-increment addressing.
9949 (rx_is_restricted_memory_address): Add range checking of REG+INT
9951 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9952 (rx_memory_move_cost): Adjust cost of stores.
9953 (rx_adjust_insn_length): New function.
9955 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9958 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9959 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9960 matching arg00/arg01 types.
9962 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9964 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9965 last_location to UNKNOWN_LOCATION.
9967 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9970 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9973 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9974 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9977 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9979 (sparc_cpu): Likewise.
9980 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9983 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9987 PR rtl-optimization/48345
9988 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9989 hard regs for given mode from profitable regs when doing secondary
9992 2011-03-29 Jeff Law <law@redhat.com>
9995 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9996 do_not_duplicate field.
9997 (lookup_redirection_data): Corresponding changes.
9998 (create_duplicates): Always create a template block.
9999 (redirect_edges): Remove code which reused the original block
10000 when it was going to become unreachable code.
10001 (thread_block): Don't set do_not_duplicate field.
10003 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10005 * lto-opts.c (register_user_option_p, lto_register_user_option):
10006 Make type argument unsigned.
10007 * lto-streamer.h (lto_register_user_option): Make type argument
10009 * opth-gen.awk: Make CL_* macros unsigned.
10010 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10011 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10012 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10013 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10014 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10015 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10016 (find_opt): Make lang_mask argument unsigned.
10018 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10020 PR rtl-optimization/48331
10021 PR rtl-optimization/48334
10022 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10023 for any used algorithm.
10025 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10027 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10030 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10032 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10033 (alpha_option_override): Don't set alpha_sr_alias_set.
10034 (emit_frame_store_1): Use gen_frame_mem rather than calling
10036 (alpha_expand_epilogue): Ditto.
10038 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10040 PR tree-optimization/48290
10041 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10042 vectorization, check that relevant phis in the basic block after
10043 the inner loop are really inner loop's exit phis.
10045 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10048 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10049 (cached_dw_loc_list_def): New structure.
10050 (cached_dw_loc_list): New typedef.
10051 (cached_dw_loc_list_table): New variable.
10052 (cached_dw_loc_list_table_hash): New function.
10053 (cached_dw_loc_list_table_eq): Likewise.
10054 (add_location_or_const_value_attribute): Take a bool cache_p.
10055 Cache the list when the parameter is true.
10056 (gen_formal_parameter_die): Update caller.
10057 (gen_variable_die): Likewise.
10058 (dwarf2out_finish): Likewise.
10059 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10060 while generating debug info for the decl.
10061 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10062 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10063 (resolve_addr): Cache the result of resolving a chain of
10066 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10068 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10069 conflict object hard regset nodes have intersecting hard reg sets.
10071 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10072 after regstat_init_n_sets_and_refs.
10074 * ira.c: Add more comments at the top.
10075 (setup_stack_reg_pressure_class, setup_pressure_classes):
10076 Add comments how we compute the register pressure classes.
10077 (setup_allocno_and_important_classes): Add more comments.
10078 (setup_class_translate_array, reorder_important_classes)
10079 (setup_reg_class_relations): Add comments.
10081 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10084 * ira-color.c: Add 2011 to the Copyright line.
10085 (assign_hard_reg): Add more comments.
10086 (improve_allocation): Ditto.
10088 * ira-costs.c: Add 2011 to the Copyright line.
10089 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10091 (setup_regno_cost_classes_by_mode): Ditto.
10093 Initial patches from ira-improv branch:
10095 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10097 * ira-build.c (ira_create_object): Remove initialization of
10098 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10099 (ira_create_allocno): Remove initialization of
10100 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10101 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10102 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10103 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10104 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10105 Initialize ALLOCNO_ADD_DATA.
10106 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10107 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10109 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10110 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10112 * ira.c (ira_reallocate): Remove.
10113 (setup_pressure_classes): Call
10114 ira_init_register_move_cost_if_necessary. Use
10115 ira_register_move_cost instead of ira_get_register_move_cost.
10116 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10117 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10119 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10120 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10121 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10122 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10123 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10124 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10126 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10127 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10128 (struct allocno_color_data): New.
10129 (allocno_color_data_t): New typedef.
10130 (allocno_color_data): New definition.
10131 (ALLOCNO_COLOR_DATA): New macro.
10132 (struct object_color_data): New.
10133 (object_color_data_t): New typedef.
10134 (object_color_data): New definition.
10135 (OBJECT_COLOR_DATA): New macro.
10136 (update_copy_costs, calculate_allocno_spill_cost): Call
10137 ira_init_register_move_cost_if_necessary. Use
10138 ira_register_move_cost instead of ira_get_register_move_cost.
10139 (move_spill_restore, update_curr_costs): Ditto.
10140 (allocno_spill_priority): Make it inline.
10141 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10142 (struct coalesce_data, coalesce_data_t): New.
10143 (allocno_coalesce_data): New definition.
10144 (ALLOCNO_COALESCE_DATA): New macro.
10145 (merge_allocnos, coalesced_allocno_conflict_p): Use
10146 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10147 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10148 (coalesce_allocnos): Ditto.
10149 (setup_coalesced_allocno_costs_and_nums): Ditto.
10150 (collect_spilled_coalesced_allocnos): Ditto.
10151 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10152 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10153 (coalesce_spill_slots): Ditto.
10154 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10155 free allocno_coalesce_data.
10157 * ira-conflicts.c: Fix formatting.
10158 (process_regs_for_copy): Call
10159 ira_init_register_move_cost_if_necessary. Use
10160 ira_register_move_cost instead of ira_get_register_move_cost.
10161 (build_object_conflicts): Optimize.
10163 * ira-costs.c (record_reg_classes): Optimize. Call
10164 ira_init_register_move_cost_if_necessary. Use
10165 ira_register_move_cost, ira_may_move_in_cost, and
10166 ira_may_move_out_cost instead of ira_get_register_move_cost and
10167 ira_get_may_move_cost.
10168 (record_address_regs): Ditto.
10169 (scan_one_insn): Optimize.
10170 (find_costs_and_classes): Optimize.
10171 (process_bb_node_for_hard_reg_moves): Call
10172 ira_init_register_move_cost_if_necessary. Use
10173 ira_register_move_cost instead of ira_get_register_move_cost.
10175 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10176 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10177 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10178 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10180 (ira_initiate_emit_data, ira_finish_emit_data)
10181 (create_new_allocno): New functions.
10182 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10183 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10184 Use ira_register_move_cost instead of ira_get_register_move_cost.
10186 * ira-int.h: Fix some comments.
10187 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10188 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10189 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10190 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10192 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10193 bitfield after mode. Make hard_regno a short int. Make
10194 hard_regno short. Remove first_coalesced_allocno and
10195 next_coalesced_allocno. Move mem_optimized_dest_p,
10196 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10197 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10198 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10199 temp, colorable_p. Add new member add_data.
10200 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10201 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10202 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10203 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10204 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10205 (ALLOCNO_ADD_DATA): New macro.
10206 (ira_emit_data_t): New typedef.
10207 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10208 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10209 from struct ira_allocno.
10210 (ALLOCNO_EMIT_DATA): New macro.
10211 (ira_allocno_emit_data, allocno_emit_reg): New.
10212 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10213 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10214 (OBJECT_ADD_DATA): New macro.
10215 (ira_reallocate): Remove.
10216 (ira_initiate_emit_data, ira_finish_emit_data): New.
10217 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10218 (ira_init_register_move_cost_if_necessary): New.
10219 (ira_object_conflict_iter_next): Merge into
10220 ira_object_conflict_iter_cond.
10221 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10223 * ira-live.c (process_single_reg_class_operands): Call
10224 ira_init_register_move_cost_if_necessary. Use
10225 ira_register_move_cost instead of ira_get_register_move_cost.
10227 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10229 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10231 * ira-costs.c: Fix formatting.
10232 (cost_classes, cost_classes_num): Remove.
10233 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10234 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10235 (cost_classes_del, cost_classes_htab): New.
10236 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10237 (initiate_regno_cost_classes, setup_cost_classes): New.
10238 (setup_regno_cost_classes_by_aclass): New.
10239 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10240 (record_reg_classes): Use regno_cost_classes instead of
10241 cost_classes. Move checking opposite operand up.
10242 (record_address_regs): Use regno_cost_classes
10243 instead of cost_classes.
10244 (scan_one_insn): Ditto. Use always general register.
10245 (print_allocno_costs): Use regno_cost_classes instead of
10247 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10248 (find_costs_and_classes): Set up cost classes for each registers.
10249 Use also their mode for this. Use regno_cost_classes instead of
10251 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10253 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10254 (ira_costs, ira_set_pseudo_classes): Call
10255 initiate_regno_cost_classes and finish_regno_cost_classes.
10257 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10259 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10261 * target.def (ira_cover_classes): Remove.
10263 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10265 * doc/tm.texi.in: Ditto.
10267 * ira-conflicts.c: Remove mentioning cover classes from the file.
10268 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10269 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10271 * targhooks.c (default_ira_cover_classes): Remove.
10273 * targhooks.h (default_ira_cover_classes): Ditto.
10275 * haifa-sched.c: Remove mentioning cover classes from the file.
10276 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10277 ira_pressure_classes and ira_pressure_classes_num instead of
10278 ira_reg_class_cover_size and ira_reg_class_cover. Use
10279 sched_regno_pressure_class instead of sched_regno_cover_class.
10280 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10281 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10283 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10284 classes from the file.
10285 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10286 (struct object_hard_regs, struct object_hard_regs_node): New.
10287 (struct ira_object): New members profitable_hard_regs,
10288 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10289 (struct ira_allocno): Rename cover_class to aclass. Rename
10290 cover_class_cost and updated_cover_class_cost to class_cost and
10291 updated_class_cost. Remove splay_removed_p and
10292 left_conflict_size. Add new members colorable_p.
10293 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10294 (ALLOCNO_COLORABLE_P): New macro.
10295 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10296 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10297 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10298 (OBJECT_...): Rename parameter C to O.
10299 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10300 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10301 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10302 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10303 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10304 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10305 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10306 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10307 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10308 x_ira_reg_class_subunion.
10309 (ira_max_memory_move_cost, ira_max_register_move_cost)
10310 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10311 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10312 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10313 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10314 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10315 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10316 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10317 (ira_tune_allocno_costs_and_cover_classes): Rename to
10318 ira_tune_allocno_costs.
10319 (ira_debug_hard_regs_forest): New.
10320 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10321 (ira_object_conflict_iter_next): Fix comments.
10322 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10323 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10324 cover_class to aclass.
10325 (ira_allocate_and_accumulate_costs): Ditto.
10326 (ira_allocate_and_set_or_copy_costs): Ditto.
10328 * opts.c (decode_options): Remove ira_cover_class check.
10330 * ira-color.c: Remove mentioning cover classes from the file. Use
10331 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10332 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10333 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10334 (splay-tree.h): Remove include.
10335 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10336 before copy_freq_compare_func.
10337 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10338 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10340 (hard_regs_roots, hard_regs_node_vec): Ditto.
10341 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10342 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10343 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10344 (create_new_object_hard_regs_node): Ditto.
10345 (add_new_object_hard_regs_node_to_forest): Ditto.
10346 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10347 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10349 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10350 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10351 (remove_unused_object_hard_regs_nodes): Ditto.
10352 (enumerate_object_hard_regs_nodes): Ditto.
10353 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10354 (object_hard_regs_subnode_t): Ditto.
10355 (struct object_hard_regs_subnode): Ditto.
10356 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10357 (setup_object_hard_regs_subnode_index): Ditto.
10358 (get_object_hard_regs_subnodes_num): Ditto.
10359 (form_object_hard_regs_nodes_forest): Ditto.
10360 (finish_object_hard_regs_nodes_tree): Ditto.
10361 (finish_object_hard_regs_nodes_forest): Ditto.
10362 (allocnos_have_intersected_live_ranges_p): Rename to
10363 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10364 (pseudos_have_intersected_live_ranges_p): Rename to
10365 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10366 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10367 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10368 (update_copy_costs): Remove assert. Skip cost update if the hard
10369 reg does not belong the class.
10370 (assign_hard_reg): Process only profitable hard regs.
10371 (uncolorable_allocnos_num): Make it scalar.
10372 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10373 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10374 and ira_reg_class_max_nregs.
10375 (bucket_allocno_compare_func): Check frequency first.
10376 (sort_bucket): Add compare function as a parameter.
10377 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10378 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10379 (push_allocno_to_stack): Rewrite for checking new allocno
10381 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10382 (push_only_colorable): Pass new parameter to sort_bucket.
10383 (push_allocno_to_spill): Remove.
10384 (allocno_spill_priority_compare): Make it inline and rewrite.
10385 (splay_tree_allocate, splay_tree_free): Remove.
10386 (allocno_spill_sort_compare): New function.
10387 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10388 build and use splay tree. Choose first allocno in uncolorable
10389 allocno bucket to spill. Remove setting spill cost.
10390 (all_conflicting_hard_regs): Remove.
10391 (setup_allocno_available_regs_num): Check only profitable hard
10392 regs. Print info about hard regs nodes.
10393 (setup_allocno_left_conflicts_size): Remove.
10394 (put_allocno_into_bucket): Don't call
10395 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10396 (improve_allocation): New.
10397 (color_allocnos): Call setup_profitable_hard_regs,
10398 form_object_hard_regs_nodes_forest, improve_allocation,
10399 finish_object_hard_regs_nodes_forest. Setup spill cost.
10400 (print_loop_title): Use pressure classes.
10401 (color_allocnso): Ditto.
10402 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10403 and allocnos_for_spilling.
10404 (ira_sort_regnos_for_alter_reg): Don't setup members
10405 {first,next}_coalesced_allocno.
10406 (color): Remove allocating and freeing removed_splay_allocno_vec.
10407 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10408 prohibited_class_mode_regs.
10410 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10412 (update_allocno_pressure_excess_length): Use pressure classes.
10413 (inc_register_pressure, dec_register_pressure): Check for pressure
10415 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10416 pressure class. Use ira_reg_class_nregs instead of
10417 ira_reg_class_max_nregs.
10418 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10419 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10420 (single_reg_class): Use ira_reg_class_nregs instead of
10421 ira_reg_class_max_nregs.
10422 (process_bb_node_lives): Use pressure classes.
10424 * ira-emit.c: Remove mentioning cover classes from the file. Use
10425 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10426 (change_loop): Use pressure classes.
10427 (modify_move_list): Call ira_set_allocno_class instead of
10428 ira_set_allocno_cover_class.
10430 * ira-build.c: Remove mentioning cover classes from the file. Use
10431 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10432 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10433 ALLOCNO_UPDATED_CLASS_COST instead of
10434 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10435 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10436 (ira_create_allocno): Remove initialization of
10437 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10438 ALLOCNO_COLORABLE_P.
10439 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10440 Update conflict regs for the objects.
10441 (create_cap_allocno): Remove assert. Don't propagate
10442 ALLOCNO_AVAILABLE_REGS_NUM.
10443 (ira_free_allocno_costs): New function.
10444 (finish_allocno): Change a part of code into call of
10445 ira_free_allocno_costs.
10446 (low_pressure_loop_node_p): Use pressure classes.
10447 (object_range_compare_func): Don't compare classes.
10448 (setup_min_max_conflict_allocno_ids): Ditto.
10450 * loop-invariant.c: Remove mentioning cover classes from the file.
10451 Use ira_pressure_classes and ira_pressure_classes_num instead of
10452 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10453 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10454 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10455 Use reg_allocno_class instead of reg_cover_class.
10456 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10457 STACK_REG_COVER_CLASS.
10458 (get_regno_cover_class): Rename to get_regno_pressure_class.
10459 (move_loop_invariants): Initialize and finalize regstat.
10461 * ira.c: Remove mentioning cover classes from the file. Add
10462 comments about coloring without cover classes. Use ALLOCNO_CLASS
10463 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10464 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10465 setup_class_subset_and_memory_move_costs.
10466 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10467 (setup_cover_and_important_classes): Rename to
10468 setup_allocno_and_important_classes.
10469 (setup_class_translate_array): New.
10470 (setup_class_translate): Call it for allocno and pressure classes.
10471 (cover_class_order): Rename to allocno_class_order.
10472 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10473 of ira_class_translate.
10474 (reorder_important_classes): Set up ira_important_class_nums.
10475 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10476 (print_class_cover): Rename to print_classes. Add parameter.
10477 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10478 Print pressure classes too.
10479 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10480 setup_reg_subclasses.
10481 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10482 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10483 (setup_prohibited_class_mode_regs): Use
10484 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10485 (clarify_prohibited_class_mode_regs): New function.
10486 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10487 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10488 (ira_init_once): Initialize them.
10489 (free_register_move_costs): Process them.
10490 (ira_init): Move calls of find_reg_classes and
10491 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10492 Call clarify_prohibited_class_mode_regs.
10493 (ira_no_alloc_reg): Remove.
10494 (too_high_register_pressure_p): Use pressure classes.
10496 * sched-deps.c: Remove mentioning cover classes from the file.
10497 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10498 ira_pressure_classes and ira_pressure_classes_num instead of
10499 ira_reg_class_cover_size and ira_reg_class_cover.
10500 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10501 sched_regno_pressure_class instead of sched_regno_cover_class.
10502 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10503 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10505 * ira.h: Add 2010 to Copyright.
10506 (ira_no_alloc_reg): Remove external.
10507 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10508 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10509 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10510 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10511 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10512 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10513 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10514 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10515 x_ira_no_alloc_regs.
10516 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10517 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10518 ira_allocno_classes_num and ira_allocno_classes.
10519 (ira_class_translate): Rename to ira_allocno_class_translate.
10520 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10521 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10522 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10523 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10524 (ira_no_alloc_regs): New.
10526 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10527 classes from the file. Use ALLOCNO_CLASS instead of
10528 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10529 ALLOCNO_COVER_CLASS_COST.
10530 (regno_cover_class): Rename to regno_aclass.
10531 (record_reg_classes): Use ira_reg_class_subunion instead of
10532 ira_reg_class_union.
10533 (record_address_regs): Check overflow.
10534 (scan_one_insn): Ditto.
10535 (print_allocno_costs): Print total mem cost fore regional allocation.
10536 (print_pseudo_costs): Use REG_N_REFS.
10537 (find_costs_and_classes): Use classes intersected with them on the
10538 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10539 ira_reg_class_union. Use ira_allocno_class_translate and
10540 regno_aclass instead of ira_class_translate and regno_cover_class.
10541 Modify code for finding regno_aclass. Setup preferred classes for
10543 (setup_allocno_cover_class_and_costs): Rename to
10544 setup_allocno_class_and_costs. Use regno_aclass instead of
10545 regno_cover_class. Use ira_set_allocno_class instead of
10546 ira_set_allocno_cover_class.
10547 (init_costs, finish_costs): Use regno_aclass instead of
10549 (ira_costs): Use setup_allocno_class_and_costs instead of
10550 setup_allocno_cover_class_and_costs.
10551 (ira_tune_allocno_costs_and_cover_classes): Rename to
10552 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10553 by processing objects. Use ira_reg_class_max_nregs instead of
10554 ira_reg_class_nregs.
10556 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10558 * sched-int.h: Remove mentioning cover classes from the file.
10559 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10561 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10562 classes from the file.
10563 (struct reg_pref): Rename coverclass into allocnoclass.
10564 (reg_cover_class): Rename to reg_allocno_class.
10566 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10568 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10570 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10572 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10574 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10576 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10578 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10580 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10582 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10584 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10586 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10587 (i386_ira_cover_classes): Ditto.
10589 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10591 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10593 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10595 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10597 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10599 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10601 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10602 (mips_ira_cover_classes): Ditto.
10604 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10606 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10608 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10610 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10612 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10614 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10615 (IRA_COVER_CLASSES_VSX): Ditto.
10617 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10618 (rs6000_ira_cover_classes): Ditto.
10620 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10622 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10624 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10626 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10628 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10630 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10632 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10634 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10636 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10638 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10640 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10643 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10644 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10645 dw_fde_unlikely_section_end_label, cold_in_std_section,
10646 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10647 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10649 (output_fde): Use dw_fde_second_{begin,end} if second is
10650 true, otherwise dw_fde_{begin,end}.
10651 (output_call_frame_info): Test dw_fde_second_begin != NULL
10652 instead of dw_fde_switched_sections.
10653 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10654 fields, initialize new fields. Initialize in_std_section
10655 unconditionally from the first partition.
10656 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10657 dw_fde_second_begin is non-NULL.
10658 (dwarf2out_switch_text_section): Stop initializing removed
10659 dw_fde_struct fields, initialize new fields, initialize
10660 also dw_fde_end here. Set dw_fde_switch_cfi even when
10661 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10662 (struct var_loc_list_def): Add last_before_switch field.
10663 (arange_table, arange_table_allocated, arange_table_in_use,
10664 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10665 (size_of_aranges): Count !in_std_section and !second_in_std_section
10666 hunks in fdes, instead of looking at arange_table_in_use.
10667 (output_aranges): Add aranges_length argument, don't call
10668 size_of_aranges here. Instead of using aranges_table*
10669 emit ranges for fdes when !in_std_section resp.
10670 !second_in_std_section.
10671 (dw_loc_list): Break ranges crossing section switch.
10672 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10673 use dw_fde_second_end instead of dw_fde_end as end of last range.
10674 (gen_subprogram_die): Don't call add_arange. Use
10675 dw_fde_{begin,end} for first partition and if switched
10676 section dw_fde_second_{begin,end} for the second.
10677 (var_location_switch_text_section_1,
10678 var_location_switch_text_section): New functions.
10679 (dwarf2out_begin_function): Initialize cold_text_section even
10680 when function_section () isn't text_section.
10681 (prune_unused_types): Don't walk arange_table.
10682 (dwarf2out_finish): Don't needlessly test
10683 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10684 If info_section_emitted, call size_of_aranges and if it indicates
10685 non-empty .debug_aranges, call output_aranges with the computed
10686 size. Stop using removed dw_fde_struct fields, use
10687 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10691 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10692 create ENTRY_VALUE if incoming or address of incoming's MEM
10694 * dwarf2out.c (mem_loc_descriptor): Don't emit
10695 DW_OP_GNU_entry_value of DW_OP_fbreg.
10696 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10697 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10698 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10699 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10701 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10702 is a REG_P or MEM_P with REG_P address, compute hash directly
10703 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10704 (preserve_only_constants): Don't clear VALUES forwaring
10705 ENTRY_VALUE to some other VALUE.
10707 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10709 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10710 instead of GEN_INT.
10712 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10714 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10715 block before expanding the statement.
10716 (expand_gimple_stmt_1): Likewise. Set them here...
10717 (expand_gimple_stmt): ...and not here. Tidy.
10718 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10721 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10723 * Makefile.in: New rule for cprop.o.
10724 * gcse.c: Move constant/copy propagation to cprop.c.
10725 (compute_local_properties): Only handle expression tables.
10726 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10727 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10728 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10729 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10730 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10731 compute_cprop_data, find_used_regs, try_replace_reg,
10732 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10733 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10734 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10735 find_bypass_set, reg_killed_on_edge, bypass_block,
10736 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10737 execute_rtl_cprop, pass_rtl_cprop): Move to...
10738 * cprop.c: ...here. New file, constant/copy propagation for RTL
10739 moved from gcse.c to here with minor cleanups in duplicated code.
10741 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10743 * config/i386/i386.c (flag_opts): Fix a typo in
10744 -mavx256-split-unaligned-store.
10746 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10748 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10749 LIBCALL_VALUE): Remove macros.
10750 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10751 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10752 (h8300_function_value, h8300_libcall_value,
10753 h8300_function_value_regno_p): New functions.
10755 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10757 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10759 2011-03-28 Jeff Law <law@redhat.com>
10761 * tree-ssa-threadupdate.c (redirect_edges): Call
10762 create_edge_and_update_destination_phis as needed.
10763 (create_edge_and_update_destination_phis): Accept new BB argument.
10764 All callers updated.
10765 (thread_block): Do not update the profile when threading around
10766 intermediate blocks.
10767 (thread_single_edge): Likewise.
10768 (determine_bb_domination_status): If BB is not a successor of the
10769 loop header, return NONDOMINATING.
10770 (register_jump_thread): Note when we register a jump thread around
10771 an intermediate block.
10772 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10773 (thread_across_edge): Use it.
10775 2011-03-28 Tristan Gingold <gingold@adacore.com>
10777 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10778 when for_return is 2.
10780 2011-03-28 Jeff Law <law@redhat.com>
10782 * var-tracking.c (canonicalize_values_mark): Delete unused
10784 (canonicalize_values_star, set_variable_part): Likewise.
10785 (clobber_variable_part, delete_variable_part): Likewise.
10787 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10789 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10791 2011-03-28 Martin Jambor <mjambor@suse.cz>
10793 * tree-inline.c (expand_call_inline): Do not check that destination
10795 (optimize_inline_calls): Assert that destination node is analyzed.
10796 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10797 not call tree_lowering_passes.
10798 * cgraph.h (cgraph_analyze_function): Declare.
10799 * cgraphunit.c (cgraph_analyze_function): Make public.
10801 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10803 * config/sparc/sparc-opts.h: New.
10804 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10805 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10806 (sparc_option_override): Store processor_type enumeration rather
10807 than string in cpu_default. Remove name and enumeration from
10808 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10809 without using sparc_select. Use target_flags_explicit instead of
10811 * config/sparc/sparc.h (enum processor_type): Move to
10813 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10814 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10815 HeaderInclude entry.
10816 (mcpu=, mtune=): Use Var and Enum.
10817 (sparc_processor_type): New Enum and EnumValue entries.
10819 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10820 Iain Sandoe <iains@gcc.gnu.org>
10823 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10825 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10827 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10828 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10829 Insert new statements at it in lieu of STMT.
10830 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10831 * tree-vect-stmts.c (vectorizable_store): Likewise.
10832 (vectorizable_load): Likewise.
10834 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10836 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10841 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10843 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10844 unaligned 256bit load/store.
10845 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10846 (*avx_movdqu<avxmodesuffix>): Likewise.
10848 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10851 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10852 * config/pa/pa.md (iordi3): Use new predicate in expander.
10853 (iorsi3): Likewise.
10855 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10857 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10858 FUNCTION_VALUE_REGNO_P): Remove macros.
10859 * config/mips/mips-protos.h (mips_function_value): Remove.
10860 * config/mips/mips.c (mips_function_value): Rename to...
10861 (mips_function_value_1): ... this. Make static. Handle receiving
10862 the function type in 'fn_decl_or_type' argument.
10863 (mips_function_value, mips_libcall_value,
10864 mips_function_value_regno_p): New function.
10865 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10866 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10868 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10870 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10871 and -mavx256-split-unaligned-store.
10872 (ix86_option_override_internal): Split 32-byte AVX unaligned
10873 load/store by default.
10874 (ix86_avx256_split_vector_move_misalign): New.
10875 (ix86_expand_vector_move_misalign): Use it.
10877 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10878 -mavx256-split-unaligned-store.
10880 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10881 256bit load/store. Generate unaligned store on misaligned memory
10883 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10885 (*avx_movdqu<avxmodesuffix>): Likewise.
10887 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10888 -mavx256-split-unaligned-store.
10890 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10893 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10896 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10898 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10899 opno arguments with an expand_operand. Use create_input_operand.
10900 (mips_prepare_builtin_target): Delete.
10901 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10903 (mips_expand_builtin_direct): Use create_output_operand and
10904 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10905 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10906 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10908 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10910 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10912 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10914 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10916 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10917 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10918 basic blocks and call commit_edge_insertions directly.
10919 (fixup_abnormal_edges): Move from here to...
10920 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10921 on the edges and return whether some have actually been inserted.
10922 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10925 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10927 PR rtl-optimization/48144
10928 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10929 (merge_expr_data): ... here.
10930 (av_set_intersect): Rename to av_set_code_motion_filter.
10931 Update all callers. Call merge_history_vect when an expression
10932 is found in both sets.
10933 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10935 2011-03-26 Alan Modra <amodra@gmail.com>
10937 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10938 cmodel medium addresses.
10939 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10940 64-bit gpr loads and stores.
10941 (rs6000_secondary_reload_ppc64): New function.
10942 * config/rs6000/rs6000-protos.h: Declare it.
10943 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10945 2011-03-26 Alan Modra <amodra@gmail.com>
10948 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10949 GNU Go in traceback table.
10951 2011-03-25 Richard Henderson <rth@redhat.com>
10953 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10954 if there are exactly 6 operands.
10955 (set_storage_via_setmem): Similarly.
10957 2011-03-25 Kai Tietz <ktietz@redhat.com>
10959 * collect2.c (write_c_file_stat): Handle backslash
10960 as right-hand directory separator.
10961 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10962 checking just for slash.
10963 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10964 instead of checking for trailing slash.
10965 * gcc.c (record_temp_file): Use filename_cmp instead
10967 (do_spec_1): Likewise.
10968 (replace_outfile_spec_function): Likewise.
10969 (is_directory): Use filename_ncmp instead of strncmp.
10970 (print_multilib_info): Likewise.
10971 * gcov.c (find_source): Use filename_cmp instead
10973 (make_gcov_file_name): Fix order of slash/backslash
10975 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10976 (add_standard_paths): Likewise.
10977 * mips-tfile.c (saber_stop): Handle backslash.
10978 * prefix.c (update_path): Use filename_ncmp instead of
10980 * profile.c (output_location): Use filename_cmp instead
10982 * read-md.c (handle_toplevel_file): Handle backslash.
10983 * tlink.c (frob_extension): Likewise.
10984 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10986 * tree-dump.c (dequeue_and_dump): Handle backslash.
10987 * tree.c (get_file_function_name): Likewise.
10988 * gengtype.c (read_input_list): Likewise.
10989 (get_file_realbasename): Likewise.
10990 (get_output_file_with_visibility): Use filename_cmp
10993 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10995 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10998 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11000 * fold-const.c (expr_location_or): New function.
11001 (fold_truth_not_expr): Call it.
11003 2011-03-25 Jeff Law <law@redhat.com>
11005 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11007 * c-family/c-common.c (def_fn_type): Likewise.
11008 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11009 * emit-rtl.c (gen_rtvec): Likewise.
11010 * lto/lto-lang.c (def_fn_type): Likewise.
11012 2011-03-25 Richard Guenther <rguenther@suse.de>
11014 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11015 also generate copies.
11016 (fini_copy_prop): Handle constant values properly.
11018 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11020 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11021 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11022 (hash_loc_operands, compare_loc_operands): Handle
11023 DW_OP_GNU_entry_value.
11025 2011-03-25 Kai Tietz <ktietz@redhat.com>
11027 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11028 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11029 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11030 comment and use macro TARGET_64BIT_MS_ABI instead.
11031 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11032 and change default behavior for 32-bit MS_ABI.
11033 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11034 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11036 (ix86_cfun_abi): Likewise.
11037 (ix86_maybe_switch_abi): Adjust comment.
11038 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11039 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11040 instead of checking for SYSV_ABI.
11041 (ix86_nsaved_sseregs): Likewise.
11042 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11044 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11045 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11046 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11047 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11048 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11050 2011-03-25 Richard Guenther <rguenther@suse.de>
11052 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11053 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11054 (verify_gimple): Remove.
11055 * tree-cfg.c (verify_gimple_call): Merge verification
11057 (verify_gimple_phi): Merge verification from verify_stmts.
11058 (verify_gimple_label): New function.
11059 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11060 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11061 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11062 (verify_stmts): Rename to verify_gimple_in_cfg.
11063 (verify_gimple_in_cfg): New function.
11064 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11065 * tree-ssa.c (verify_ssa): Likewise.
11066 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11068 2011-03-25 Richard Guenther <rguenther@suse.de>
11070 * passes.c (init_optimization_passes): Add FRE pass after
11073 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11074 Andrew Stubbs <ams@codesourcery.com>
11076 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11078 (arm_movdi_vfp_cortexa8): New pattern.
11079 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11080 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11081 instructions when tuning for Cortex-A8. Set attribute "arch".
11082 * config/arm/arm.md: Move include arm-tune.md up a bit.
11083 (define_attr "arch"): Add "onlya8" and "nota8" values.
11084 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11086 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11090 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11092 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11093 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11094 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11095 * passes.c (init_optimization_passes): Move
11096 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11098 2011-03-25 Kai Tietz <ktietz@redhat.com>
11100 * c-typeck.c (comptypes_internal): Replace target
11101 hook call of comp_type_attributes by version in tree.c file.
11102 * gimple.c (gimple_types_compatible_p_1): Likewise.
11103 * tree-ssa.c (useless_type_conversion_p): Likewise.
11104 * tree.c (build_type_attribute_qual_variant): Likewise.
11105 (attribute_value_equal): New static helper function.
11106 (comp_type_attributes): New function.
11107 (merge_attributes): Use attribute_value_equal for comparison.
11108 (attribute_list_contained): Likewise.
11109 * tree.h (comp_type_attributes): New prototype.
11111 2011-03-25 Richard Guenther <rguenther@suse.de>
11113 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11114 of complex types at -O0.
11115 (verify_gimple_assign_binary): Likewise.
11116 (verify_gimple_assign_ternary): Likewise.
11118 2011-03-24 Mark Wielaard <mjw@redhat.com>
11120 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11121 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11123 2011-03-24 Mark Wielaard <mjw@redhat.com>
11126 * dwarf2out.c (output_abbrev_section): Only write table when
11127 abbrev_die_table_in_use > 1.
11129 2011-02-24 Richard Henderson <rth@redhat.com>
11131 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11132 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11133 (alpha_expand_unaligned_load_words): Use extql.
11134 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11135 (emit_insxl): Handle all modes for consistency.
11137 2011-02-24 Richard Henderson <rth@redhat.com>
11139 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11140 (alpha_expand_unaligned_load): Likewise.
11141 (alpha_expand_unaligned_store): Likewise.
11142 (alpha_expand_unaligned_load_words): Likewise.
11143 (alpha_expand_unaligned_store_words): Likewise.
11144 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11145 (alpha_split_lock_test_and_set_12): Likewise.
11146 (print_operand, alpha_fold_builtin_extxx): Likewise.
11147 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11148 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11149 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11150 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11151 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11152 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11153 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11154 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11155 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11156 (extwl, extll, extql): Similarly.
11157 (inswh, inslh, insqh): Similarly.
11158 (mskbl, mskwl, mskll, mskql): Similarly.
11159 (mskwh, msklh, mskqh): Similarly.
11161 2011-02-24 Richard Henderson <rth@redhat.com>
11163 * config/alpha/alpha.md (attribute isa): Add er, ner.
11164 (attribute enabled): Handle them.
11165 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11167 2011-02-24 Richard Henderson <rth@redhat.com>
11169 * config/alpha/alpha.md (attribute isa): Add vms.
11170 (attribute enabled): Handle it.
11171 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11172 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11173 (*movtf): Rename from *movtf_internal for consistency.
11174 (*movsi): Merge with *movsi_nt_vms.
11175 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11176 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11177 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11178 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11180 2011-02-24 Richard Henderson <rth@redhat.com>
11182 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11183 (extendqisi2, extendhisi2): Likewise.
11184 (extendqidi2): Simplify BWX/non-BWX expansions.
11185 (extendhidi2): Similarly.
11187 2011-02-24 Richard Henderson <rth@redhat.com>
11189 * config/alpha/alpha.md (attribute isa): New.
11190 (attribute enabled): New.
11191 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11192 (zero_extendqisi2, zero_extendqidi2): Similarly.
11193 (zero_extendhisi2, zero_extendhidi2): Similarly.
11194 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11196 2011-02-24 Richard Henderson <rth@redhat.com>
11198 * config/alpha/predicates.md (input_operand): Revert last change;
11199 update comment to mention 32-bit VMS rather than Windows.
11201 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11203 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11204 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11205 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11206 * passes.c (init_optimization_passes): Move
11207 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11209 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11211 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11213 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11215 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11218 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11221 * simplify-rtx.c (simplify_const_unary_operation): Call
11222 real_convert when changing mode class with FLOAT_EXTEND.
11224 2011-03-24 Nick Clifton <nickc@redhat.com>
11226 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11227 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11228 * config/rx/rx.c (rx_option_override): Set align_jumps,
11229 align_loops and align_labels if not set by the user.
11230 (rx_align_for_label): New function.
11231 (rx_max_skip_for_label): New function.
11232 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11233 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11234 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11235 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11236 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11238 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11240 PR rtl-optimization/48263
11241 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11242 and original commutative_p handling. Use maybe_gen_insn.
11244 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11246 * reload.c (find_reloads_subreg_address): Add address_reloaded
11247 parameter and return true there if the full address has been
11249 (find_reloads_toplev): Pass address_reloaded flag.
11250 (find_reloads_address_1): Don't use address_reloaded parameter.
11252 2011-03-24 Jeff Law <law@redhat.com>
11254 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11255 unused variable "ann".
11256 (remove_unused_locals): Likewise.
11258 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11261 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11264 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11266 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11267 for invalid symbolic addresses.
11268 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11271 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11273 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11274 the argument in calls to fold_truth_not_expr.
11276 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11278 * tree.c (record_node_allocation_statistics): New function.
11279 (make_node_stat, copy_node_stat, build_string): Call it.
11280 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11281 (build1_stat, build_omp_clause): Likewise.
11283 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11285 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11288 2011-03-24 Richard Guenther <rguenther@suse.de>
11290 PR tree-optimization/48271
11291 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11292 blocks that still exist.
11294 2011-03-24 Richard Guenther <rguenther@suse.de>
11296 PR tree-optimization/48270
11297 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11298 not free datarefs before ddrs.
11300 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11302 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11303 from the address built for a reference with variable offset.
11305 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11308 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11309 alternatives that can be handled with movq or movabsq insn.
11310 (*movdf_internal): Disable for !TARGET_64BIT.
11311 (*movdf_internal_nointeger): Ditto.
11312 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11314 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11316 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11317 (FUNCTION_ARG_ADVANCE): Likewise.
11318 * tm.texi.in: Change references to them to hook references.
11319 * tm.texi: Regenerate.
11320 * targhooks.c (default_function_arg): Eliminate check for target macro.
11321 (default_function_incoming_arg): Likewise.
11322 (default_function_arg_advance): Likewise.
11323 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11324 (function_arg_advance): Likewise.
11325 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11327 2011-03-24 Richard Guenther <rguenther@suse.de>
11329 PR middle-end/48269
11330 * tree-object-size.c (addr_object_size): Do not double-account
11331 for MEM_REF offsets.
11333 2011-03-24 Diego Novillo <dnovillo@google.com>
11335 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11336 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11337 (lto_input_data_block): Move from lto-opts.c. Make extern.
11339 (lto_input_string): Rename from input_string. Make extern.
11341 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11342 output_string_with_length.
11343 Output 0 to indicate a non-NULL string. Update all callers to
11345 (lto_output_string): Rename from output_string. Make extern.
11347 (lto_output_decl_state_streams): Make extern.
11348 (lto_output_decl_state_refs): Make extern.
11349 * lto-streamer.h (lto_input_string): Declare.
11350 (lto_input_data_block): Declare.
11351 (lto_output_string): Declare.
11352 (lto_output_string_with_length): Declare.
11353 (lto_output_decl_state_streams): Declare.
11354 (lto_output_decl_state_refs): Declare.
11356 2011-03-24 Richard Guenther <rguenther@suse.de>
11358 PR tree-optimization/46562
11359 * tree.c (build_invariant_address): New function.
11360 * tree.h (build_invariant_address): Declare.
11361 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11362 a renamed function moved ...
11363 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11364 Take valueization callback parameter.
11365 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11366 * gimple-fold.h: New file.
11367 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11368 (ccp_fold, fold_const_aggregate_ref,
11369 fold_ctor_reference, fold_nonarray_ctor_reference,
11370 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11371 get_base_constructor): Move ...
11372 * gimple-fold.c: ... here.
11373 (gimple_fold_stmt_to_constant_1): New function
11374 split out from ccp_fold. Take a valueization callback parameter.
11375 Valueize all operands.
11376 (gimple_fold_stmt_to_constant): New wrapper function.
11377 (fold_const_aggregate_ref_1): New function split out from
11378 fold_const_aggregate_ref. Take a valueization callback parameter.
11379 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11380 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11381 invariant POINTER_PLUS_EXPRs to invariant form.
11382 (vn_valueize): New function.
11383 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11384 * tree-vrp.c (vrp_valueize): New function.
11385 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11386 to fold statements to constants.
11387 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11388 function declarations.
11389 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11390 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11392 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11394 * config/h8300/predicates.md (jump_address_operand): Fix register
11397 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11399 * doc/invoke.texi (max-stores-to-sink): Document.
11400 * params.h (MAX_STORES_TO_SINK): Define.
11401 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11402 if either vectorization or if-conversion is disabled.
11403 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11404 tree-vect-data-refs.c vect_equal_offsets.
11405 (dr_equal_offsets_p): New function.
11406 (find_data_references_in_bb): Remove static.
11407 * tree-data-ref.h (find_data_references_in_bb): Declare.
11408 (dr_equal_offsets_p): Likewise.
11409 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11410 (vect_drs_dependent_in_basic_block): Update calls to
11411 vect_equal_offsets.
11412 (vect_check_interleaving): Likewise.
11413 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11414 (cond_if_else_store_replacement): Rename to...
11415 (cond_if_else_store_replacement_1): ... this. Change arguments and
11417 (cond_if_else_store_replacement): New function.
11418 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11419 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11421 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11424 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11425 to subtract lower bound instead of GEN_INT().
11427 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11432 * doc/extend.texi (Alignment): Move section to match order in TOC.
11433 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11434 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11436 2011-03-23 Jeff Law <law@redhat.com>
11438 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11439 before removing the edge.
11441 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11442 it may have been freed by redirect_branch_edge or
11443 redirect_edge_succ_nodup.
11445 2011-03-23 Richard Guenther <rguenther@suse.de>
11447 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11448 (check_va_list_escapes): Likewise.
11449 (check_all_va_list_escapes): Likewise.
11451 2011-03-23 Richard Guenther <rguenther@suse.de>
11453 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11454 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11455 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11456 (alias.o): Likewise.
11457 (ipa-type-escape.o): Remove.
11458 (ipa-struct-reorg.o): Likewise.
11459 (GTFILES): Remove ipa-struct-reorg.c.
11460 * alias.c: Do not include ipa-type-escape.h.
11461 * tree-ssa-alias.c: Likewise.
11462 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11463 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11464 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11465 and ipa-type-escape passes.
11466 * tree-pass.h (pass_ipa_type_escape): Remove.
11467 (pass_ipa_struct_reorg): Likewise.
11468 * ipa-struct-reorg.h: Remove.
11469 * ipa-struct-reorg.c: Likewise.
11470 * ipa-type-escape.h: Likewise.
11471 * ipa-type-escape.c: Likewise.
11472 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11473 (--param struct-reorg-cold-struct-ratio): Likewise.
11474 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11475 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11476 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11478 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11480 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11481 cpu attribute value.
11482 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11483 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11484 * config/s390/s390.c (processor_flags_table): New constant array.
11485 (s390_handle_arch_option): Remove.
11486 (s390_handle_option): Remove s390_handle_arch_option invocations
11487 and OPT_mwarn_framesize_ handling.
11488 (s390_option_override): Remove s390_handle_arch_option invocation.
11489 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11491 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11492 * config/s390/s390.opt (s390_tune, s390_arch)
11493 (march=): Replace s390_arch_option enum and values with
11494 processor_type. Set variable name to s390_arch. Set
11495 initialization value.
11496 (mtune=): Replace s390_arch_option with processor_type. Set
11497 variable name to s390_tune. Set initialization value.
11499 2011-03-23 Julian Brown <julian@codesourcery.com>
11501 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11502 accesses which are not naturally aligned.
11504 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11507 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11509 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11511 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11512 parameter from "int" to "enum insn_code".
11513 (expand_operand_type): New enum.
11514 (expand_operand): New structure.
11515 (create_expand_operand): New function.
11516 (create_fixed_operand, create_output_operand): Likewise
11517 (create_input_operand, create_convert_operand_to): Likewise.
11518 (create_convert_operand_from, create_address_operand): Likewise.
11519 (create_integer_operand): Likewise.
11520 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11521 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11522 (expand_insn, expand_jump_insn): Likewise.
11523 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11524 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11525 (expand_movstr, expand_builtin___clear_cache): Likewise.
11526 (expand_builtin_lock_release): Likewise.
11527 * explow.c (allocate_dynamic_stack_space): Likewise.
11528 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11529 and use the default handling in that case.
11530 * expmed.c (check_predicate_volatile_ok): Delete.
11531 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11532 (emit_cstore): Likewise.
11533 * expr.c (emit_block_move_via_movmem): Likewise.
11534 (set_storage_via_setmem, expand_assignment): Likewise.
11535 (emit_storent_insn, try_casesi): Likewise.
11536 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11537 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11538 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11539 (expand_twoval_unop, expand_twoval_binop): Likewise.
11540 (expand_unop_direct, emit_indirect_jump): Likewise.
11541 (emit_conditional_move, vector_compare_rtx): Likewise.
11542 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11543 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11544 (expand_sync_lock_test_and_set): Likewise.
11545 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11546 (emit_unop_insn): Likewise.
11547 (expand_copysign_absneg): Change icode to an insn_code.
11548 (create_convert_operand_from_type): New function.
11549 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11550 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11551 (expand_insn, expand_jump_insn): Likewise.
11552 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11553 than const_int_operand for operand 2.
11555 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11557 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11560 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11562 * emit-rtl.c (emit_pattern_before_noloc): New function.
11563 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11564 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11565 (emit_pattern_after_noloc): New function.
11566 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11567 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11569 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11571 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11572 (__ffsDI2): Likewise.
11574 2011-03-22 Richard Henderson <rth@redhat.com>
11576 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11577 of !TARGET_ABI_OPEN_VMS.
11578 (alpha_trampoline_init, alpha_start_function): Likewise.
11579 (alpha_expand_epilogue, alpha_file_start): Likewise.
11580 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11581 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11582 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11583 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11584 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11586 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11588 * config/s390/s390-opts.h: New.
11589 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11590 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11591 s390_stack_guard): Remove.
11592 (s390_handle_arch_option): Return void. Take enum
11593 s390_arch_option value instead of string and searching array.
11594 (s390_handle_option): Don't assert that global structures are in
11595 use. Access variables via opts pointer. Use error_at. Don't use
11596 sscanf for -mstack-guard= or -mstack-size=. Update call to
11597 s390_handle_arch_option.
11598 (s390_option_override): Update call to s390_handle_arch_option.
11599 (s390_emit_prologue): Use %d format for s390_stack_size in
11600 diagnostic. Use %wd for HOST_WIDE_INT.
11601 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11602 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11603 * config/s390/s390.opt (config/s390/s390-opts.h): New
11604 HeaderInclude entry.
11605 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11606 s390_arch_flags, s390_warn_framesize): New Variable entries.
11607 (s390_arch_option): New Enum and EnumValue entries.
11608 (march=): Use Enum instead of Var.
11609 (mstack-guard=, mstack-size=): Use UInteger and Var.
11610 (mtune=): Use Enum.
11612 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11614 * config/score/score.c (score_handle_option): Don't assert that
11615 global structures are in use. Access target_flags via opts
11616 pointer. Use value of -march= option to determine target_flags
11618 * config/score/score.opt (march=): Use Enum.
11619 (score_arch): New Enum and EnumValue entries.
11621 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11623 * config/mep/mep.c (option_mtiny_specified): Remove.
11624 (mep_option_override): Move register handling for -mivc2 from
11625 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11626 instead of option_mtiny_specified.
11627 (mep_handle_option): Access target_flags via opts pointer. Don't
11628 assert that global structures are in use. Defer part of -mivc2
11629 handling and move it to mep_option_override.
11630 * config/mep/mep.opt (IVC2): New Mask entry.
11631 (mivc2): Use Var and Defer instead of Mask.
11633 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11635 * config/v850/v850-opts.h: New.
11636 * config/v850/v850.c (small_memory): Replace with
11637 small_memory_physical_max array. Make that array static const.
11638 (v850_handle_memory_option): Take integer value of argument. Take
11639 gcc_options pointer, option text and location. Return void.
11640 Update for changes to small memory structures.
11641 (v850_handle_option): Access target_flags via opts pointer. Don't
11642 assert that global structures are in use. Update calls to
11643 v850_handle_memory_option.
11644 (v850_encode_data_area): Update references to small memory settings.
11645 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11646 (enum small_memory_type): Move to v850-opts.h.
11647 * config/v850/v850.opt (config/v850/v850-opts.h): New
11648 HeaderInclude entry.
11649 (small_memory_max): New Variable entry.
11650 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11651 (mtda, mzda): Likewise.
11653 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11655 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11656 pointer. Don't assert that global structures are in use.
11658 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11660 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11661 via opts pointer. Don't assert that global structures are in use.
11663 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11665 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11666 (munix=93): Use Var.
11667 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11668 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11669 * config/pa/pa-opts.h: New.
11670 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11671 (pa_handle_option): Don't assert that global structures are in
11672 use. Access target_flags via opts pointer. Don't handle
11673 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11675 (pa_option_override): Handle deferred OPT_mfixed_range_.
11677 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11679 * config/mn10300/mn10300-opts.h: New.
11680 * config/mn10300/mn10300.c (mn10300_processor,
11681 mn10300_tune_string): Remove.
11682 (mn10300_handle_option): Don't assert that global structures are
11683 in use. Access mn10300_processor via opts pointer. Don't handle
11685 * config/mn10300/mn10300.h (enum processor_type): Move to
11687 (mn10300_processor): Remove.
11688 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11689 HeaderInclude entry.
11690 (mn10300_processor): New Variable entry.
11693 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11695 * config/microblaze/microblaze.c: Don't include opts.h.
11696 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11697 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11698 (mno-clearbss): Use Var and Warn.
11700 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11702 * config/m32r/m32r-opts.h: New.
11703 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11704 (m32r_handle_option): Don't assert that global structures are in
11705 use. Access target_flags and m32r_cache_flush_func via opts
11706 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11707 OPT_mno_flush_trap here.
11708 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11709 include of m32r-opts.h.
11710 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11711 HeaderInclude entry.
11712 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11713 (mmodel=): Use Enum and Var.
11714 (m32r_model): New Enum and EnumValue entries.
11715 (mno-flush-trap): Use Var.
11716 (msdata=): Use Enum and Var.
11717 (m32r_sdata): New Enum and EnumValue entries.
11719 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11721 * config/m32c/m32c.c: Don't include opts.h.
11722 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11723 m32c_handle_option): Remove.
11724 (m32c_option_override): Check global_options_set.x_target_memregs
11725 instead of target_memregs_set.
11726 * config/m32c/m32c.h (target_memregs): Remove.
11727 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11730 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11732 * config/iq2000/iq2000-opts.h: New.
11733 * config/iq2000/iq2000.c: Don't include opts.h.
11734 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11735 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11736 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11737 HeaderInclude entry.
11738 (iq2000_tune): New Variable entry.
11739 (march=): Add comment. Use Enum.
11740 (iq2000_arch): New Enum and EnumValue entries.
11741 (mcpu=): Use Enum and Var.
11742 (iq2000_tune): New Enum and EnumValue entries.
11744 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11746 * config/ia64/ia64-opts.h: New.
11747 * config/ia64/ia64.c (ia64_tune): Remove.
11748 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11749 here. Use error_at.
11750 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11751 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11752 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11753 HeaderInclude entry.
11754 (ia64_tune): New Variable entry.
11755 (mfixed-range=): Use Defer and Var.
11756 (mtune=): Use Enum and Var.
11757 (ia64_tune): New Enum and EnumValue entries.
11759 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11761 * config/frv/frv-opts.h: New.
11762 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11764 (frv_cpu_type): Remove.
11765 * config/frv/frv.c: Don't include opts.h.
11766 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11767 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11768 (frv_cpu_type): New Variable entry.
11769 (frv_cpu): New Enum and EnumValue entries.
11771 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11773 * config/cris/cris.c (cris_handle_option): Access target_flags via
11774 opts pointer. Don't assert that global structures are in use.
11775 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11776 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11778 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11780 * config/bfin/bfin-opts.h: New.
11781 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11782 bfin_si_revision, bfin_workarounds): Remove.
11783 (bfin_cpus): Make static const.
11784 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11785 not bfin_lib_id_given.
11786 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11787 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11788 pointer. Use error_at. Don't assert that global structures are in use.
11789 * config/bfin/bfin.h: Include bfin-opts.h.
11790 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11791 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11792 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11793 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11796 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11798 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11799 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11800 or -msoft-float here.
11801 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11802 -msoft-float and -mhard-float.
11803 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11804 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11806 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11808 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11809 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11811 (LIBGCC_SPEC): Don't handle -msoft-float.
11812 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11814 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11816 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11817 -mfloat-abi=*, not -msoft-float and -mhard-float.
11818 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11820 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11821 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11822 mhard-float and msoft-float.
11823 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11824 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11825 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11826 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11828 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11829 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11831 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11833 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11836 2011-03-22 Richard Henderson <rth@redhat.com>
11838 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11839 TARGET_ABI_WINDOWS_NT.
11840 (alpha_output_function_end_prologue): Likewise.
11841 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11842 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11843 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11844 (trap, *movsi_nt_vms): Likewise.
11845 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11846 (*tablejump_osf_nt_internal): Remove.
11847 * config/alpha/predicates.md (input_operand): Only test Pmode.
11849 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11851 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11852 via opts pointer. Use error_at. Don't assert that global
11853 structures are in use.
11855 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11857 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11858 (ix86_handle_option): Access ix86_isa_flags and
11859 ix86_isa_flags_explicit via opts pointer. Don't assert that
11860 global structures are in use.
11861 (ix86_function_specific_save, ix86_function_specific_restore):
11862 Update ix86_isa_flags_explicit field name.
11863 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11864 (ix86_isa_flags_explicit): Rename TargetSave entry to
11865 x_ix86_isa_flags_explicit.
11867 2011-03-22 Richard Henderson <rth@redhat.com>
11869 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11870 (alpha_option_override, direct_return): Likewise.
11871 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11872 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11873 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11874 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11875 (alpha_expand_epilogue, alpha_end_function): Likewise.
11876 (alpha_init_libfuncs): Likewise.
11877 (struct machine_function): Remove unicosmk members.
11878 (print_operand) ['t']: Remove.
11879 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11880 unicosmk_output_module_name, unicosmk_output_common,
11881 current_section_align, unicosmk_output_text_section_asm_op,
11882 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11883 unicosmk_section_type_flags, unicosmk_unique_section,
11884 unicosmk_asm_named_section, unicosmk_insert_attributes,
11885 unicosmk_output_align, unicosmk_defer_case_vector,
11886 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11887 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11888 unicosmk_output_ssib, unicosmk_add_call_info_word,
11889 unicosmk_extern_head, unicosmk_output_default_externs,
11890 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11891 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11892 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11893 * config/alpha/alpha-protos.h: Update.
11894 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11895 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11896 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11897 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11898 (*mulsi_se, mulvsi3): Likewise.
11899 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11900 (*divmodsi_internal, call, call_value, realign): Likewise.
11901 (moddi3, umoddi3): Likewise; remove duplicate expander.
11902 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11903 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11904 (*movdi_nofix): Remove r/U alternative.
11905 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11906 * config/alpha/constraints.md ("U"): Remove.
11907 * config/alpha/predicates.md (call_operand"): Don't test
11908 TARGET_ABI_UNICOSMK.
11910 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11912 * target.def (handle_option): Take gcc_options and
11913 cl_decoded_option pointers and location_t.
11914 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11915 * doc/tm.texi: Regenerate.
11916 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11917 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11918 * lto-opts.c (lto_reissue_options): Generate option structure for
11919 targetm.handle_option call.
11920 * opts.c (target_handle_option): Update call to
11921 targetm.handle_option. Remove assertions about values now passed
11923 * targhooks.c (default_target_handle_option): New.
11924 * targhooks.h (default_target_handle_option): Declare.
11925 * config/alpha/alpha.c: Include opts.h.
11926 (alpha_handle_option): Update to new hook interface.
11927 * config/arm/arm.c: Include opts.h.
11928 (arm_handle_option): Update to new hook interface.
11929 * config/arm/t-arm (arm.o): Update dependencies.
11930 * config/bfin/bfin.c: Include opts.h.
11931 (bfin_handle_option): Update to new hook interface.
11932 * config/cris/cris.c: Include opts.h.
11933 (cris_handle_option): Update to new hook interface.
11934 * config/frv/frv.c: Include opts.h.
11935 (frv_handle_option): Update to new hook interface.
11936 * config/i386/i386.c: Include opts.h.
11937 (ix86_handle_option): Update to new hook interface.
11938 (ix86_valid_target_attribute_inner_p): Generate option structure
11939 for call to ix86_handle_option.
11940 * config/i386/t-i386 (i386.o): Update dependencies.
11941 * config/ia64/ia64.c: Include opts.h.
11942 (ia64_handle_option): Update to new hook interface.
11943 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11944 * config/iq2000/iq2000.c: Include opts.h.
11945 (iq2000_handle_option): Update to new hook interface.
11946 * config/m32c/m32c.c: Include opts.h.
11947 (m32c_handle_option): Update to new hook interface.
11948 * config/m32r/m32r.c: Include opts.h.
11949 (m32r_handle_option): Update to new hook interface.
11950 * config/m68k/m68k.c: Include opts.h.
11951 (m68k_handle_option): Update to new hook interface.
11952 * config/mep/mep.c: Include opts.h.
11953 (mep_handle_option): Update to new hook interface.
11954 * config/microblaze/microblaze.c: Include opts.h.
11955 (microblaze_handle_option): Update to new hook interface.
11956 * config/mips/mips.c: Include opts.h.
11957 (mips_handle_option): Update to new hook interface.
11958 * config/mn10300/mn10300.c: Include opts.h.
11959 (mn10300_handle_option): Update to new hook interface.
11960 * config/pa/pa.c: Include opts.h.
11961 (pa_handle_option): Update to new hook interface.
11962 * config/pdp11/pdp11.c: Include opts.h.
11963 (pdp11_handle_option): Update to new hook interface.
11964 * config/rs6000/rs6000.c: Include opts.h.
11965 (rs6000_handle_option): Update to new hook interface.
11966 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11967 * config/rx/rx.c: Include opts.h.
11968 (rx_handle_option): Update to new hook interface.
11969 * config/s390/s390.c: Include opts.h.
11970 (s390_handle_option): Update to new hook interface.
11971 * config/score/score.c: Include opts.h.
11972 (score_handle_option): Update to new hook interface.
11973 * config/sh/sh.c: Include opts.h.
11974 (sh_handle_option): Update to new hook interface.
11975 * config/sparc/sparc.c: Include opts.h.
11976 (sparc_handle_option): Update to new hook interface.
11977 * config/v850/v850.c: Include opts.h.
11978 (v850_handle_option): Update to new hook interface.
11980 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11982 * gcc.c (driver_unknown_option_callback): Only permit and save
11983 unknown -Wno- options.
11984 (driver_wrong_lang_callback): Save options directly instead of via
11985 driver_unknown_option_callback.
11987 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11989 * combine.c (simplify_set): Try harder to find the best CC mode when
11990 simplifying a nested COMPARE on the RHS.
11992 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11994 * config/alpha/gnu.h: Remove.
11995 * config/arc: Remove directory.
11996 * config/arm/netbsd.h: Remove.
11997 * config/arm/t-pe: Remove.
11998 * config/crx: Remove directory.
11999 * config/i386/netbsd.h: Remove.
12000 * config/m68hc11: Remove directory.
12001 * config/m68k/uclinux-oldabi.h: Remove.
12002 * config/mcore/mcore-pe.h: Remove.
12003 * config/mcore/t-mcore-pe: Remove.
12004 * config/netbsd-aout.h: Remove.
12005 * config/rs6000/gnu.h: Remove.
12006 * config/sh/sh-symbian.h: Remove.
12007 * config/sh/symbian-base.c: Remove.
12008 * config/sh/symbian-c.c: Remove.
12009 * config/sh/symbian-cxx.c: Remove.
12010 * config/sh/symbian-post.h: Remove.
12011 * config/sh/symbian-pre.h: Remove.
12012 * config/sh/t-symbian: Remove.
12013 * config/svr3.h: Remove.
12014 * config/vax/netbsd.h: Remove.
12015 * config.build: Don't handle i[34567]86-*-pe.
12016 * config.gcc: Remove handling of deprecations for most deprecated
12018 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12019 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12020 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12021 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12022 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12023 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12025 * config.host: Don't handle i[34567]86-*-pe.
12026 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12027 (ASM_SPEC32): Don't handle -mcall-gnu.
12028 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12030 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12031 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12032 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12033 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12034 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12035 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12036 conditional on SYMBIAN.
12037 * configure.ac: Don't handle powerpc*-*-gnu*.
12038 * configure: Regenerate.
12039 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12040 * doc/install-old.texi (m6811, m6812): Don't mention.
12041 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12042 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12043 (m68k-uclinuxoldabi): Don't mention.
12044 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12046 (-mcall-gnu): Remove.
12047 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12048 families): Remove constraint documentation.
12050 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12052 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12053 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12054 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12056 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12059 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12060 vector when peeking at the next token for vector, don't expand the
12063 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12065 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12066 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12067 * config/avr/avr.c (init_cumulative_args)
12068 (avr_function_arg_advance): Use it.
12069 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12071 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12072 (avr_function_ok_for_sibcall): ...this new function.
12073 (avr_lookup_function_attribute1): New static Function.
12074 (avr_naked_function_p, interrupt_function_p)
12075 (signal_function_p, avr_OS_task_function_p)
12076 (avr_OS_main_function_p): Use it.
12077 * config/avr/avr.md ("sibcall", "sibcall_value")
12078 ("sibcall_epilogue"): New expander.
12079 ("*call_insn", "*call_value_insn"): New insn.
12080 ("call_insn", "call_value_insn"): Remove
12081 ("call", "call_value", "epilogue"): Change expander to handle
12084 2011-03-21 Nick Clifton <nickc@redhat.com>
12086 * doc/invoke.texi (Overall Options): Move closing brace to end of
12088 (Optimization Options): Add missing @gol.
12089 (Directory Options): Likewise.
12090 (i386 and x86-64 Options): Likewise.
12091 (RS6000 and PowerPC Options): Likewise.
12092 (i386 and x86-64 Windows Options): Likewise.
12093 (V850 Options): Add text missing from descriptions.
12095 2011-03-22 Richard Henderson <rth@redhat.com>
12097 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12098 (avr_incoming_return_addr_rtx): New.
12099 (emit_push_byte): New.
12100 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12101 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12102 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12103 (emit_pop_byte): New.
12104 (expand_epilogue): Use it. Pop frame pointer by bytes.
12105 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12106 (INCOMING_RETURN_ADDR_RTX): New.
12107 (INCOMING_FRAME_SP_OFFSET): New.
12108 (ARG_POINTER_CFA_OFFSET): New.
12109 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12110 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12113 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12115 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12117 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12118 (FUNCTION_ARG_ADVANCE): Likewise.
12119 * tm.texi.in: Change references to them to hook references.
12120 * tm.texi: Regenerate.
12121 * targhooks.c (default_function_arg): Eliminate check for target
12123 (default_function_incoming_arg): Likewise.
12124 (default_function_arg_advance): Likewise.
12125 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12126 (function_arg_advance): Likewise.
12127 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12129 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12131 * tree.c (build_call_1): New function.
12132 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12134 2011-03-22 Richard Guenther <rguenther@suse.de>
12136 PR tree-optimization/48228
12137 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12138 for single-arg PHIs.
12140 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12142 PR rtl-optimization/48143
12143 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12144 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12145 sse2_cvtps2pd): Likewise.
12147 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12149 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12151 2011-03-22 Richard Guenther <rguenther@suse.de>
12153 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12154 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12155 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12156 and REALIGN_LOAD_EXPR.
12157 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12158 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12159 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12160 DOT_PROD_EXPR case ...
12161 (expand_expr_real_2): ... here.
12162 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12163 and REALIGN_LOAD_EXPR.
12164 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12165 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12166 (vect_create_epilog_for_reduction): Likewise.
12167 (vectorizable_reduction): Likewise.
12168 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12169 * tree-vect-stmts.c (vectorizable_load): Likewise.
12171 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12173 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12175 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12177 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12178 handling for PLTOFF/GOTOFF.
12180 2011-03-22 Nick Clifton <nickc@redhat.com>
12182 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12183 trailing backslash from the end of the macro definition.
12185 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12187 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12190 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12192 * expr.h (prepare_operand): Move to...
12193 * optabs.h (prepare_operand): ...here and change the insn code
12194 parameter from "int" to "enum insn_code".
12195 (insn_operand_matches): Declare.
12196 * expr.c (init_expr_target): Use insn_operand_matches.
12197 (compress_float_constant): Likewise.
12198 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12199 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12200 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12201 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12203 (gen_cond_trap): Likewise.
12204 (prepare_operand): Likewise. Change icode to an insn_code.
12205 (insn_operand_matches): New function.
12206 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12207 * reload1.c (gen_reload): Likewise.
12208 * targhooks.c (default_secondary_reload): Likewise.
12210 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12212 * config/alpha/alpha.md (unspec): New define_c_enum.
12215 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12218 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12219 between a call and its CALL_ARG_LOCATION note.
12221 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12223 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12225 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12229 * c-common.c (shorten_compare): If primopN is first sign-extended
12230 to opN and then zero-extended to result type, set primopN to opN.
12232 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12234 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12235 for barrier handlers.
12237 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12239 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12240 UNSPEC constants to be in the unspec enumeration, and redefine
12241 all UNSPECV constants to be in the unspecv enumeration, so that
12242 dumps print which unspec/unspec_volatile this is.
12243 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12244 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12245 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12246 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12247 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12249 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12250 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12251 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12252 * config/rs6000/sync.md (isync, lwsync): Ditto.
12254 2011-03-21 Richard Guenther <rguenther@suse.de>
12256 * params.def (lto-min-partition): Fix typo.
12258 2011-03-21 Richard Guenther <rguenther@suse.de>
12261 * c-decl.c (grokdeclarator): Drop to the main variant only
12262 for array types. Drop flag_gen_aux_info check.
12264 2011-03-21 Richard Guenther <rguenther@suse.de>
12266 PR translation/47911
12267 * params.def (lto-partitions): Fix typo.
12268 (lto-min-partition): Fix wording.
12270 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12272 * config/rs6000/t-freebsd: Remove duplication from file.
12274 2011-03-21 Richard Guenther <rguenther@suse.de>
12276 PR middle-end/47661
12277 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12279 2011-03-21 Richard Guenther <rguenther@suse.de>
12282 * params.def (lto-partitions): Require at least 1 partition.
12284 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12286 * gthr-solaris.h: Remove.
12287 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12288 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12289 (LIB_SPEC): Likewise.
12290 * config/sol2.opt (threads): Remove.
12291 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12292 (sparc*-*-solaris2*): Likewise.
12293 * configure.ac (enable_threads): Enable solaris support.
12294 * configure: Regenerate.
12295 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12296 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12299 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12301 * config.gcc: Obsolete *-*-solaris2.8*.
12302 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12304 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12307 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12308 reference. Solaris 8 perl works.
12310 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12313 * doc/install.texi (Prerequisites): Move jar etc. up.
12314 Explain support library version requirements.
12316 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12319 * doc/install.texi (Prerequisites): Move Perl to build
12320 requirements. Always necessary on Solaris 2 with Sun ld.
12322 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12324 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12326 (Specific, i?86-*-solaris2.[89]): Likewise.
12327 (Specific, i?86-*-solaris2.10): Likewise.
12328 (Specific, mips-sgi-irix6): Likewise.
12329 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12330 Update for binutils 2.21.
12332 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12334 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12335 Allow -fuse-linker-plugin for non-default plugin linker.
12336 * configure: Regenerate.
12338 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12341 * gengtype.c (files_rules): Added rule for cp/parser.h.
12343 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12346 * config/s390/s390.c (s390_delegitimize_address): Don't call
12347 lowpart_subreg if orig_x has BLKmode.
12349 2011-03-21 Kai Tietz <ktietz@redhat.com>
12352 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12353 * tree.h (attribute_spec): Add new member affects_type_identity.
12354 * attribs.c (empty_attribute_table): Adjust attribute_spec
12356 * config/alpha/alpha.c: Likewise.
12357 * config/arc/arc.c: Likewise.
12358 * config/arm/arm.c: Likewise.
12359 * config/avr/avr.c: Likewise.
12360 * config/bfin/bfin.c: Likewise.
12361 * config/crx/crx.c: Likewise.
12362 * config/darwin.h: Likewise.
12363 * config/h8300/h8300.c: Likewise.
12364 * config/i386/cygming.h: Likewise.
12365 * config/i386/i386.c: Likewise.
12366 * config/ia64/ia64.c: Likewise.
12367 * config/m32c/m32c.c: Likewise.
12368 * config/m32r/m32r.c: Likewise.
12369 * config/m68hc11/m68hc11.c: Likewise.
12370 * config/m68k/m68k.c: Likewise.
12371 * config/mcore/mcore.c: Likewise.
12372 * config/mep/mep.c: Likewise.
12373 * config/microblaze/microblaze.c: Likewise.
12374 * config/mips/mips.c: Likewise.
12375 * config/rs6000/rs6000.c: Likewise.
12376 * config/rx/rx.c: Likewise.
12377 * config/sh/sh.c: Likewise.
12378 * config/sol2.h: Likewise.
12379 * config/sparc/sparc.c: Likewise.
12380 * config/spu/spu.c: Likewise.
12381 * config/stormy16/stormy16.c: Likewise.
12382 * config/v850/v850.c: Likewise.
12384 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12386 * simplify-rtx.c (simplify_binary_operation_1): Handle
12387 (xor (and A B) C) case when B and C are both constants.
12389 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12391 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12393 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12396 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12398 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12400 PR rtl-optimization/48156
12401 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12402 assume df and df_lr are not NULL.
12404 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12407 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12408 between a call and its CALL_ARG_LOCATION note.
12410 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12413 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12414 between a call and its corresponding CALL_ARG_LOCATION note.
12416 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12418 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12419 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12420 * haifa-sched.c (setup_ref_regs): Ditto.
12421 * caller-save.c (add_used_regs_1): Ditto.
12422 * dse.c (look_for_hardregs): Ditto.
12423 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12424 * sched-rgn.c (check_live_1): Ditto.
12426 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12428 * c-decl.c (diagnose_mismatched_decls): Give an error for
12429 redefining a typedef with variably modified type.
12431 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12433 * c-decl.c (grokfield): Don't allow typedefs for structures or
12434 unions with no tag by default.
12435 * doc/extend.texi (Unnamed Fields): Update.
12437 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12439 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12440 Rewrite using indirect functions.
12441 (lwp_slwpcb): Ditto.
12442 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12443 (avx_vinsertf128<mode>): Ditto.
12445 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12447 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12450 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12452 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12453 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12455 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12457 PR rtl-optimization/48170
12458 * gcse.c (hoist_code): Remove bogus asserts.
12460 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12462 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12463 computation for prologue/epilogue.
12465 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12467 * Makefile.in (check-consistency): Remove.
12469 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12472 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12473 arange_table_in_use is 0, but either text_section_used or
12474 cold_text_section_used is true. Don't call it if
12475 !info_section_emitted.
12477 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12479 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12480 FUNCTION_VALUE_REGNO_P): Remove.
12481 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12483 * config/avr/avr.c (avr_ret_register): Make static inline.
12484 (avr_function_value_regno_p): New function.
12485 (avr_libcall_value): Make static. Add 'func' argument.
12486 (avr_function_value): Make static. Rename 'func' argument to
12487 'fn_decl_or_type', forward it to avr_libcall_value. Call
12488 avr_ret_register function instead of RET_REGISTER macro.
12489 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12491 2011-03-18 Jason Merrill <jason@redhat.com>
12494 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12496 2011-03-18 Richard Guenther <rguenther@suse.de>
12498 * doc/install.texi (--enable-gold): Remove.
12499 (--with-plugin-ld): Document.
12500 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12502 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12504 PR middle-end/47790
12505 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12506 again after expansion changes.
12508 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12510 * combine.c (try_combine): Do simplification only call of
12511 subst() on i2 even when i1 is present. Update comments.
12513 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12515 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12516 and UNSPEC_PCREL_SYMOFF.
12518 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12520 * config/s390/s390.md: Use define_c_enum for the unspec constant
12523 2011-03-18 Richard Henderson <rth@redhat.com>
12524 Jakub Jelinek <jakub@redhat.com>
12527 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12528 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12530 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12532 PR middle-end/47725
12533 * combine.c (cant_combine_insn_p): Don't check zero/sign
12534 extended hard registers.
12536 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12538 PR middle-end/47725
12539 * combine.c (cant_combine_insn_p): Check zero/sign extended
12542 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12544 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12545 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12546 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12547 Change return type to bool.
12548 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12550 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12553 * var-tracking.c (prepare_call_arguments): If CALL target
12554 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12555 pc instead of looking it up using cselib_lookup and use
12556 Pmode for it if x has VOIDmode.
12557 * dwarf2out.c (gen_subprogram_die): If also both first and
12558 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12561 * function.c (assign_parms): For data.passed_pointer parms
12562 use MEM of data.entry_parm instead of data.entry_parm itself
12563 as DECL_INCOMING_RTL.
12564 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12565 also when passed and declared mode is the same, DECL_RTL
12566 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12569 2011-03-16 Jeff Law <law@redhat.com>
12571 PR rtl-optimization/37273
12572 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12573 handle them like argument loads from stack slots. Do not double
12574 count memory for memory constants and argument loads from stack slots.
12576 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12579 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12581 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12584 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12586 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12589 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12591 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12592 Clear call_arg_locations and call_arg_loc_last always.
12594 PR middle-end/48152
12595 * var-tracking.c (prepare_call_arguments): If argument needs to be
12596 passed by reference, adjust argtype and mode.
12598 2011-03-17 Richard Guenther <rguenther@suse.de>
12600 PR middle-end/48134
12601 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12602 a value make sure to fold the statement.
12604 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12607 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12608 return condition with !cfun->calls_alloca.
12610 2011-03-17 Richard Guenther <rguenther@suse.de>
12613 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12614 origin for decls in other ltrans units.
12615 (input_varpool_node): Likewise.
12617 2011-03-17 Richard Guenther <rguenther@suse.de>
12619 PR middle-end/48165
12620 * tree-object-size.c (compute_object_offset): Properly return
12621 the offset operand of MEM_REFs as sizetype.
12623 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12625 PR rtl-optimization/48141
12626 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12627 * dse.c: Include params.h.
12628 (active_local_stores_len): New variable.
12629 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12631 (record_store, check_mem_read_rtx): Decrease it when removing
12633 (scan_insn): Likewise. Increase it when adding to chain, if it
12634 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12635 set active_local_stores to NULL before the addition.
12636 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12638 PR rtl-optimization/48141
12639 * dse.c (record_store): If no positions are needed in an insn
12640 that cannot be deleted, at least unchain it from active_local_stores.
12642 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12645 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12646 (lookup_type_die_strip_naming_typedef): ... here.
12647 (get_context_die): Use it.
12648 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12649 the anonymous struct named by the naming typedef.
12651 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12654 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12655 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12657 2011-03-16 Jeff Law <law@redhat.com>
12659 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12660 check for operands of conditional. Allow type to be a pointer.
12662 2011-03-16 Richard Guenther <rguenther@suse.de>
12664 PR tree-optimization/48149
12665 * fold-const.c (fold_binary_loc): Fold
12666 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12668 2011-03-16 Richard Guenther <rguenther@suse.de>
12670 PR tree-optimization/26134
12671 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12672 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12673 (non_rewritable_mem_ref_base): Handle complex type component
12674 accesses, constrain offsets for vector and complex extracts
12677 2011-03-16 Richard Guenther <rguenther@suse.de>
12679 PR tree-optimization/48146
12680 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12681 operands avoiding the need for renaming.
12683 2011-03-16 Richard Guenther <rguenther@suse.de>
12685 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12686 constant folding. Move MEM_REF canonicalization first.
12687 Rely on fold_const_aggregate_ref for initializer folding.
12688 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12690 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12692 PR middle-end/48136
12693 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12694 arg0/arg1 or their arguments are always fold converted to matching
12697 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12700 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12703 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12704 Handle in-tree gold.
12705 (ld_vers): Extract binutils version for gold.
12706 (gcc_cv_ld_hidden): Handle gold here.
12707 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12708 * configure: Regenerate.
12709 * config.in: Regenerate.
12710 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12711 -fuse-linker-plugin otherwise.
12712 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12713 (LINK_COMMAND_SPEC): Use it.
12714 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12716 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12718 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12719 * calls.c: Remove debug.h include.
12720 (emit_call_1): Don't call virtual_call_token debug hook.
12721 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12722 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12723 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12724 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12725 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12726 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12727 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12728 dwarf2out_virtual_call): Remove.
12729 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12730 copy_call_info and virtual_call hooks.
12731 (dwarf2out_init): Don't initialize vcall_insn_table,
12732 debug_dcall_section and debug_vcall_section.
12733 (prune_unused_types): Don't mark nodes from dcall_table.
12734 (dwarf2out_finish): Don't output dcall or vcall tables.
12735 * final.c (final_scan_insn): Don't call direct_call or
12736 virtual_call debug hooks.
12737 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12738 virtual_call_token, copy_call_info and virtual_call hooks.
12739 (debug_nothing_uid): Remove prototype.
12740 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12741 copy_call_info and virtual_call hooks.
12742 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12743 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12744 * debug.c (do_nothing_debug_hooks): Likewise.
12745 (debug_nothing_uid): Remove.
12746 * doc/invoke.texi (-fenable-icf-debug): Remove.
12747 * common.opt (-fenable-icf-debug): Likewise.
12749 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12750 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12751 call's MEM. Handle functions returning aggregate through a hidden
12752 first pointer. For virtual calls add clobbered pc to call arguments
12754 * dwarf2out.c (gen_subprogram_die): Emit
12755 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12759 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12760 * rtl.h (ENTRY_VALUE_EXP): Define.
12761 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12762 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12763 * print-rtl.c (print_rtx): Likewise.
12764 * gengtype.c (adjust_field_rtx_def): Likewise.
12765 * var-tracking.c (vt_add_function_parameter): Adjust
12766 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12767 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12768 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12769 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12770 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12772 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12773 Call var_location debug hook even on CALL_INSNs.
12774 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12775 * rtl.def (ENTRY_VALUE): New.
12776 * dwarf2out.c: Include cfglayout.h.
12777 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12778 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12779 (struct call_arg_loc_node): New type.
12780 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12781 tail_call_site_count): New variables.
12782 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12783 DW_TAG_GNU_call_site_parameter.
12784 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12785 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12786 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12787 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12788 and DW_AT_GNU_all_source_call_sites.
12789 (mem_loc_descriptor): Handle ENTRY_VALUE.
12790 (add_src_coords_attributes): Don't add enything if
12791 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12792 (dwarf2out_abstract_function): Save and clear call_arg_location,
12793 call_site_count and tail_call_site_count around dwarf2out_decl call.
12794 (gen_call_site_die): New function.
12795 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12796 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12797 (dwarf2out_function_decl): Clear call_arg_locations,
12798 call_arg_loc_last, set call_site_count and tail_call_site_count
12799 to -1 and free block_map.
12800 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12801 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12802 followed by any real instructions.
12803 (dwarf2out_begin_function): Set call_site_count and
12804 tail_call_site_count to 0.
12805 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12806 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12807 attempt to force a DIE for it and worst case remove the attribute.
12808 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12809 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12811 * var-tracking.c: Include tm_p.h.
12812 (vt_stack_adjustments): For calls call note_register_arguments.
12813 (argument_reg_set): New variable.
12814 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12815 ensure the VALUE is resolved.
12816 (call_arguments): New variable.
12817 (prepare_call_arguments): New function.
12818 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12819 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12820 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12821 always use the best expression.
12822 (vt_expand_loc): Add ignore_cur_loc argument.
12823 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12824 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12825 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12826 note for all calls.
12827 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12828 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12829 argument. Don't call cselib_preserve_only_values and
12830 cselib_reset_table.
12831 (note_register_arguments): New function.
12832 (vt_initialize): Compute argument_reg_set. Call
12833 vt_add_function_parameters before processing basic blocks instead of
12834 afterwards. For calls call prepare_call_arguments before calling
12835 cselib_process_insn.
12836 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12837 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12838 (var-tracking.o): Depend on $(TM_P_H).
12839 * cfglayout.h (insn_scope): New prototype.
12840 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12841 * cfglayout.c (insn_scope): No longer static.
12842 * insn-notes.def (CALL_ARG_LOCATION): New.
12843 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12844 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12845 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12846 nothing for DECL_EXTERNAL BLOCK_VARS.
12848 2011-03-16 Alan Modra <amodra@gmail.com>
12851 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12852 create invalid offset address for vsx splat insn.
12853 * config/rs6000/predicates.md (splat_input_operand): New.
12854 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12856 2011-03-15 Xinliang David Li <davidxl@google.com>
12859 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12860 (normalize_preds): New function.
12861 (is_use_properly_guarded): Normalize def predicates.
12863 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12866 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12867 in the output template.
12869 2011-03-15 Richard Guenther <rguenther@suse.de>
12871 PR middle-end/47650
12872 * tree-pretty-print.c (dump_function_declaration): Properly
12873 dump unprototyped and varargs function types.
12875 2011-03-15 Richard Guenther <rguenther@suse.de>
12877 PR tree-optimization/13954
12878 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12881 2011-03-15 Richard Guenther <rguenther@suse.de>
12883 PR tree-optimization/48037
12884 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12885 selects into BIT_FIELD_REFs.
12886 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12889 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12891 PR tree-optimization/48129
12892 * builtins.c (fold_builtin_snprintf): Convert to type of
12893 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12894 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12896 2011-03-15 Richard Guenther <rguenther@suse.de>
12898 PR tree-optimization/41490
12899 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12900 value but with VUSE.
12901 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12903 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12904 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12905 * tree-tailcall.c (find_tail_calls): Ignore returns.
12907 2011-03-15 Richard Guenther <rguenther@suse.de>
12909 PR middle-end/48031
12910 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12911 or variable-indexed array accesses when in gimple form.
12913 2011-03-15 Richard Guenther <rguenther@suse.de>
12915 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12917 2011-03-15 Alan Modra <amodra@gmail.com>
12920 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12921 presume symbol_refs without a symbol_ref_decl are suitably
12922 aligned, nor other trees we may see here. Handle anchor symbols.
12923 (legitimate_constant_pool_address_p): Comment. Add mode param.
12924 Check cmodel=medium addresses. Adjust all calls.
12925 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12926 creating cmodel=medium optimized access to locals.
12927 * config/rs6000/constraints.md (R): Pass QImode to
12928 legitimate_constant_pool_address_p.
12929 * config/rs6000/predicates.md (input_operand): Pass mode to
12930 legitimate_constant_pool_address_p.
12931 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12934 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12937 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12938 64-bit constants being loaded into registers other than GPRs such
12939 as loading 0 into a VSX register.
12941 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12943 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12945 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12947 PR middle-end/47917
12948 * builtins.c (fold_builtin_snprintf): New function.
12949 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12950 (fold_builtin_4): Likewise.
12952 PR middle-end/38878
12953 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12954 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12955 and C - X == X also strip nops from +/-/p+ operand.
12956 When optimizing -X == C, fold C to arg0's type.
12959 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12960 emit it as add_AT_int instead of add_AT_unsigned.
12962 2011-03-14 Tom Tromey <tromey@redhat.com>
12964 * unwind-dw2.c: Include sys/sdt.h if it exists.
12965 (_Unwind_DebugHook): Use STAP_PROBE2.
12966 * config.in, configure: Rebuild.
12967 * configure.ac: Check for sys/sdt.h.
12969 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12971 * config/i386/i386.md (ROUND_FLOOR): New constant.
12972 (ROUND_CEIL): Ditto.
12973 (ROUND_TRUNC): Ditto.
12974 (ROUND_MXCSR): Ditto.
12975 (ROUND_NO_EXC): Ditto.
12976 (rint<mode>2): Use new defines instead of numerical constants.
12977 (floor<mode>2): Ditto.
12978 (ceil<mode>2): Ditto.
12979 (btrunc<mode>2): Ditto.
12980 * config/i386/i386-builtin-types.def: Define ROUND function type
12982 * config/i386/i386.c (enum ix86_builtins): Add
12983 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12984 (struct builtin_description): Add
12985 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12986 (ix86_expand_sse_round): New static function.
12987 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12989 (ix86_builtin_vectorized_function): Handle
12990 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12992 2011-03-14 Tom Tromey <tromey@redhat.com>
12994 * c-parser.c (c_parser_asm_string_literal): Clear
12995 warn_overlength_strings.
12997 2011-03-14 Tom Tromey <tromey@redhat.com>
12999 * c-parser.c (disable_extension_diagnostics): Save
13000 warn_overlength_strings.
13001 (restore_extension_diagnostics): Restore warn_overlength_strings.
13003 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13005 * BASE-VER: Change to 4.7.0.
13007 2011-03-14 Richard Guenther <rguenther@suse.de>
13009 PR middle-end/48098
13010 * tree.c (build_vector_from_val): Adjust assert to requirements
13013 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13016 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13018 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13020 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13021 terms of target_flags_explicit. Adjust copyright year.
13023 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13024 * config/rs6000/t-freebsd: New file. Add override for
13027 2011-03-13 Chris Demetriou <cgd@google.com>
13029 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13030 (-fno-diagnostics-show-option): this, to reflect current default.
13031 (-Werror=): Update text about -fno-diagnostics-show-option.
13033 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13036 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13037 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13038 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13039 mode is not V2DImode or V2DFmode.
13040 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13041 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13042 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13044 (movdi_internal64): Likewise.
13046 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13048 PR tree-optimization/47127
13049 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13051 (set_cloog_options): Same.
13052 (scop_to_clast): Same.
13053 (print_clast_stmt): Do not call cloog_state_malloc and
13055 (print_generated_program): Same.
13057 * graphite-clast-to-gimple.h (cloog_state): Declared.
13058 (scop_to_clast): Adjust declaration.
13059 * graphite.c (cloog_state): Defined here.
13060 (graphite_initialize): Call cloog_state_malloc.
13061 (graphite_finalize): Call cloog_state_free.
13063 2011-03-11 Jason Merrill <jason@redhat.com>
13065 * attribs.c (lookup_attribute_spec): Take const_tree.
13068 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13070 * config/sparc/sparc.c (sparc_option_override): Use
13071 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13073 2011-03-11 Richard Guenther <rguenther@suse.de>
13075 PR tree-optimization/48067
13076 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13077 multiplication result will be only used once on the target
13080 2011-03-11 Richard Guenther <rguenther@suse.de>
13082 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13084 2011-03-11 Richard Guenther <rguenther@suse.de>
13087 * tree.c (find_decls_types_r): Do not walk types only reachable
13088 from IDENTIFIER_NODEs.
13090 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13092 PR middle-end/48044
13093 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13094 all vnode->force_output nodes as needed.
13096 2011-03-11 Jason Merrill <jason@redhat.com>
13099 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13100 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13102 2011-03-11 Martin Jambor <mjambor@suse.cz>
13104 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13107 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13109 PR tree-optimization/48063
13110 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13111 inline functions called once if !tree_can_inline_p (node->callers).
13113 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13115 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13117 * config/score/score3.c: Delete.
13118 * config/score/score3.h: Delete.
13119 * config/score/mul-div.S: Delete.
13120 * config/score/sfp-machine.h: Add new file.
13121 * config/score/constraints.md: Add new file.
13122 * config/score/t-score-softfp: Add new file.
13123 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13124 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13125 (score7_extra_constraint): Delete.
13126 (score7_option_override): Remove unused code.
13127 * config/score/score.c: Remove score3 and score5 define and code.
13128 * config/score/score.h: Remove score3 and score5 define and code.
13129 * config/score/score.md: Remove score3 template and unusual insn.
13130 * config/score/score.opt: Remove score3 and score5 options.
13132 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13134 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13135 when _HPUX_SOURCE is defined.
13136 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13138 2011-03-10 Jason Merrill <jason@redhat.com>
13141 * stor-layout.c (layout_type): Don't set structural equality
13142 on arrays of incomplete type.
13143 * tree.c (type_hash_eq): Handle comparing them properly.
13145 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13148 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13149 result mode matches original rtl mode.
13151 2011-03-10 Nick Clifton <nickc@redhat.com>
13153 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13154 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13156 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13158 PR rtl-optimization/47866
13159 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13160 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13161 if target wasn't scalar.
13162 * function.c (assign_stack_temp_for_type): Assert that neither
13163 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13164 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13166 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13168 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13170 * config/s390/s390-protos.h (s390_label_align): New prototype.
13171 * config/s390/s390.c (s390_label_align): New function.
13172 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13174 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13177 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13178 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13179 (output_vec_const_move): Ditto.
13181 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13183 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13184 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13185 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13186 Change 'rclass' argument and result type to reg_class_t.
13187 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13189 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13191 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13192 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13193 (TARGET_MEMORY_MOVE_COST): Define.
13194 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13196 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13199 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13202 PR tree-optimization/48022
13203 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13206 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13209 * var-tracking.c (find_use_val): Return NULL for
13210 cui->sets && cui->store_p BLKmode MEMs.
13212 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13214 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13216 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13217 xstormy16_print_operand_address): Remove.
13218 * config/stormy16/stormy16.c (xstormy16_print_operand,
13219 xstormy16_print_operand_address): Make static.
13220 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13222 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13225 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13226 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13229 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13232 * cfgloopmanip.c (fix_bb_placements): Return immediately
13233 if FROM is BASE_LOOP's header.
13235 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13237 * gimplify.c (gimplify_function_tree): Fix building calls
13238 to __builtin_return_address.
13240 2011-03-07 Alan Modra <amodra@gmail.com>
13242 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13243 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13244 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13245 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13247 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13248 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13249 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13250 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13251 * config/rs6000/rs6000.c
13252 (rs6000_elf_end_indicate_exec_stack): Rename to..
13253 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13254 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13255 (rs6000_file_start): ..here.
13256 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13257 file scope variables.
13258 (call_ABI_of_interest): New function.
13259 (init_cumulative_args): Set above vars when function return value
13260 is a float, vector, or small struct.
13261 (rs6000_function_arg_advance_1): Likewise for function args.
13262 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13263 references float args.
13265 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13267 * doc/cfg.texi: Remove "See" before @ref.
13268 * doc/invoke.texi: Likewise.
13270 2011-03-05 Jason Merrill <jason@redhat.com>
13272 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13274 2011-03-05 Anthony Green <green@moxielogic.com>
13276 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13278 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13280 PR rtl-optimization/47899
13281 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13282 to flow_loop_nested_p when moving the loop upward.
13284 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13287 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13289 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13291 PR tree-optimization/47967
13292 * ipa-cp.c (build_const_val): Return NULL instead of creating
13293 VIEW_CONVERT_EXPR for mismatching sizes.
13294 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13295 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13296 give up on versioning.
13298 2011-03-05 Alan Modra <amodra@gmail.com>
13301 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13302 full cmodel medium/large lo_sum + high addresses.
13304 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13306 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13307 pool references in UNSPEC_LTREL_OFFSET.
13309 2011-03-04 Jan Hubicka <jh@suse.cz>
13312 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13313 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13314 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13316 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13317 cgraph_add_thunk): Add node pointers.
13318 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13319 associated to right node.
13320 (input_node): Update use of cgraph_same_body_alias
13321 and cgraph_add_thunk.
13323 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13325 * config/i386/i386.opt (mprefer-avx128): New flag.
13326 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13327 modes when the flag -mprefer-avx128 is on.
13329 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13331 * dwarf2out.c (compare_loc_operands): Fix address handling.
13333 2011-03-04 Alan Modra <amodra@gmail.com>
13335 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13337 2011-03-04 Richard Guenther <rguenther@suse.de>
13339 PR middle-end/47968
13340 * expmed.c (extract_bit_field_1): Prefer vector modes that
13341 vec_extract patterns can handle.
13343 2011-03-04 Richard Guenther <rguenther@suse.de>
13345 PR middle-end/47975
13346 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13348 2011-03-04 Richard Henderson <rth@redhat.com>
13350 * explow.c (emit_stack_save): Remove 'after' parameter.
13351 (emit_stack_restore): Likewise.
13352 * expr.h: Update to match.
13353 * builtins.c, calls.c, stmt.c: Likewise.
13354 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13355 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13356 * function.c (expand_function_end): Insert the emit_stack_save
13357 sequence before parm_birth_insn instead of after.
13359 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13361 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13362 (ssse3_pmaddubsw128): Ditto.
13363 (ssse3_pmaddubsw): Ditto.
13365 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13367 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13369 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13372 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13373 on TYPE_SIZE_UNIT if it is a DECL.
13376 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13377 first operand is not is_gimple_mem_ref_addr, try to fold it.
13378 If the operand still isn't is_gimple_mem_ref_addr, clear
13381 2011-03-03 Richard Guenther <rguenther@suse.de>
13383 PR middle-end/47283
13384 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13386 (refs_may_alias_p_1): For release branches return true if
13387 we are confused by our input.
13389 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13391 * config/s390/s390.c (s390_function_value): Rename to ...
13392 (s390_function_and_libcall_value): ... this.
13393 (s390_function_value): New function.
13394 (s390_libcall_value): New function.
13395 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13396 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13397 target macro definitions.
13398 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13400 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13402 * config/i386/freebsd64.h (CC1_SPEC): Define.
13403 * config/i386/linux64.h (CC1_SPEC): Define.
13404 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13406 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13408 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13410 * config/stormy16/stormy16.c: Include reload.h.
13411 (xstormy16_memory_move_cost): New function.
13412 (TARGET_MEMORY_MOVE_COST): Define.
13414 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13416 PR rtl-optimization/47925
13417 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13418 with side effects. Remove the more-specific check for volatile asms.
13420 2011-03-02 Alan Modra <amodra@gmail.com>
13423 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13424 toc relative addresses for valid offsets.
13426 2011-03-01 Richard Guenther <rguenther@suse.de>
13428 PR tree-optimization/47890
13429 * tree-vect-loop.c (get_initial_def_for_induction): Set
13430 related stmt properly.
13432 2011-03-01 Richard Guenther <rguenther@suse.de>
13435 * lto-streamer.c (lto_record_common_node): Also register
13436 the canonical type.
13438 2011-03-01 Richard Guenther <rguenther@suse.de>
13441 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13442 Do not stream DECL_ABSTRACT_ORIGIN.
13443 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13444 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13445 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13446 Do not stream DECL_ABSTRACT_ORIGIN.
13447 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13448 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13450 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13452 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13453 FUNCTION_VALUE_REGNO_P): Remove.
13454 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13455 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13456 Add 'outgoing' argument.
13457 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13459 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13460 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13462 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13465 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13466 (lookup_filename): Likewise.
13467 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13469 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13470 Jakub Jelinek <jakub@redhat.com>
13472 PR middle-end/47893
13473 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13474 (assign_stack_local_1): Change last argument type to int.
13475 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13476 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13477 don't record padding space into frame_space_list nor use those areas.
13478 (assign_stack_local): Adjust caller.
13479 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13480 of assign_stack_local, pass 0 as last argument.
13481 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13484 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13487 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13488 Use target address_mode and pointer_mode hooks instead of hardcoded
13489 Pmode and ptr_mode. Handle some simple cases of extending if
13490 POINTERS_EXTEND_UNSIGNED < 0.
13491 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13492 Call convert_debug_memory_address.
13493 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13494 convert_debug_memory_address.
13496 PR middle-end/46790
13497 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13498 * configure: Regenerated.
13499 * config.in: Regenerated.
13500 * varasm.c (default_function_section): Return NULL
13501 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13503 2011-02-28 Martin Jambor <mjambor@suse.cz>
13505 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13506 the description to match the printed values.
13508 2011-02-28 Richard Guenther <rguenther@suse.de>
13510 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13511 of the copied scope tree.
13513 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13515 * doc/extend.texi (Function Attributes): Avoid deeply (and
13516 wrongly) nested tables.
13518 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13520 PR middle-end/47903
13521 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13522 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13523 r isn't op0 nor op1.
13525 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13527 * config/avr/avr.md: Remove magic comment for emacs.
13529 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13532 * config/avr/avr.c (avr_option_override): Use error on bad options.
13533 (avr_help): New function.
13534 (TARGET_HELP): Define.
13536 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13539 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13540 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13542 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13544 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13545 (ARM Options): Ditto.
13546 (i386 and x86-64 Options): Ditto.
13547 (RX Options): Ditto.
13548 (SPARC Options): Ditto.
13550 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13552 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13553 FreeBSD 6 and later. Generally use cpu generic.
13555 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13557 * doc/cpp.texi: Update copyright years.
13559 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13562 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13564 2011-02-25 Jon Beniston <jon@beniston.com>
13567 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13568 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13569 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13570 (lm32_block_move_inline): Add type cast to remove warning.
13571 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13572 (gen_int_relational): Move declarations to start of function.
13574 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13576 PR tree-optimization/45470
13577 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13578 can throw internally only.
13579 * tree-vect-stmts.c (vectorizable_call): Likewise.
13581 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13583 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13584 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13585 * config/stormy16/stormy16-protos.h
13586 (xstormy16_preferred_reload_class): Remove.
13587 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13588 static. Change 'rclass' argument and return type to reg_class_t.
13589 (TARGET_PREFERRED_RELOAD_CLASS,
13590 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13592 2011-02-24 Richard Guenther <rguenther@suse.de>
13594 * lto-streamer-in.c (input_bb): Do not find referenced vars
13595 in debug statements.
13597 2011-02-23 Jason Merrill <jason@redhat.com>
13599 * common.opt (fabi-version): Document v5 and v6.
13601 2011-02-23 Richard Guenther <rguenther@suse.de>
13603 PR tree-optimization/47849
13604 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13606 2011-02-23 Jie Zhang <jie@codesourcery.com>
13608 * opts-common.c (decode_cmdline_option): Print empty string
13609 argument as "" in decoded->orig_option_with_args_text.
13610 * gcc.c (execute): Print empty string argument as ""
13611 in the verbose output.
13612 (do_spec_1): Keep empty string argument.
13614 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13616 * config.gcc: Declare score-* and crx-* obsolete.
13618 2011-02-23 Jie Zhang <jie@codesourcery.com>
13620 PR rtl-optimization/47763
13621 * web.c (web_main): Ignore naked clobber when replacing register.
13623 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13625 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13628 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13631 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13633 2011-02-22 Mike Stump <mikestump@comcast.net>
13635 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13637 * configure: Regenerate.
13639 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13641 PR rtl-optimization/46002
13642 * ira-color.c (update_copy_costs): Change class intersection
13643 test to reg_class_contents[] test of 'hard_regno'.
13645 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13647 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13648 than Driver option.
13649 * config/hpux11.opt (mt): Likewise.
13650 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13651 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13652 * config/vax/elf.opt (mno-asm-pic): Likewise.
13653 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13655 2011-02-21 Mike Stump <mikestump@comcast.net>
13658 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13659 tree so we can get save the type.
13660 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13661 for CFString instead of trying to use past the end of the builtins.
13662 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13663 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13664 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13665 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13666 Rename to darwin_builtin_cfstring.
13667 (darwin_init_cfstring_builtins): Return the built type.
13669 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13672 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13673 (_mm256_insert_epi64): Use _mm_insert_epi64.
13675 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13677 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13678 * config/stormy16/stormy16-protos.h
13679 (xstormy16_mode_dependent_address_p): Remove.
13680 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13681 Make static. Change return type to bool. Change argument type to
13682 const_rtx. Remove dead code.
13683 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13685 2011-02-21 Richard Guenther <rguenther@suse.de>
13688 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13689 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13690 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13692 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13693 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13695 2011-02-20 Richard Guenther <rguenther@suse.de>
13698 * tree.c (free_lang_data_in_decl): Clean builtins from
13699 the TU decl BLOCK_VARS.
13701 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13705 * haifa-sched.c (fix_tick_ready): Skip tick computation
13708 2011-02-19 Richard Guenther <rguenther@suse.de>
13711 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13712 Remove lazy BLOCK_VARS streaming.
13713 (lto_input_ts_block_tree_pointers): Likewise.
13714 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13716 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13718 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13720 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13722 * config/i386/biarch32.h, config/i386/mach.h,
13723 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13725 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13728 * config/i386/i386.md (peephole2 for shift and plus): Use
13729 operands[1] original mode in the first insn.
13731 2011-02-18 Mike Stump <mikestump@comcast.net>
13733 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13735 2011-02-18 Jan Hubicka <jh@suse.cz>
13737 PR middle-end/47788
13738 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13739 to zero when the function is not inlinable at all.
13741 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13743 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13744 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13745 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13746 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13747 * config/pa/t-pa64: Likewise.
13748 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13750 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13753 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13755 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13758 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13760 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13762 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13763 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13764 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13765 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13766 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13767 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13768 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13769 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13770 m32r_legitimate_address_p): New functions.
13771 * config/m32r/constraints.md (constraint "S"): Don't use
13772 STORE_PREINC_PREDEC_P.
13773 (constraint "U"): Don't use LOAD_POSTINC_P.
13775 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13777 PR rtl-optimization/46178
13778 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13779 compute ira_hard_regno_cover_class[].
13781 2011-02-18 Richard Guenther <rguenther@suse.de>
13784 * lto-streamer.h (lto_global_var_decls): Declare.
13785 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13786 statics for global var processing.
13788 2011-02-18 Richard Guenther <rguenther@suse.de>
13790 PR tree-optimization/47737
13791 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13792 edge dominance check.
13794 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13797 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13798 avoid invalid rtx sharing.
13800 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13802 * doc/cpp.texi (Obsolete Features): Add background on the
13803 origin of assertions.
13805 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13807 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13809 * config/darwin.c (output_objc_section_asm_op): Added support for
13811 (is_objc_metadata): New.
13812 (darwin_objc2_section): New.
13813 (darwin_objc1_section): New.
13814 (machopic_select_section): Added support for ABI v1 and v2.
13815 (darwin_emit_objc_zeroed): New.
13816 (darwin_output_aligned_bss): Detect objc metadata and treat it
13818 (darwin_asm_output_aligned_decl_common): Same.
13819 (darwin_asm_output_aligned_decl_local): Same.
13820 * config/darwin-sections.def: Updated for ABI v1 and v2.
13821 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13822 compiling Objective-C code for the NeXT runtime, default to using
13823 ABI version 0 for 32-bit, and version 2 for 64-bit.
13825 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13827 * common.opt (optimize_fast): New Variable.
13828 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13829 instead of local variable ofast.
13831 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13833 * doc/invoke.texi (fobjc-abi-version): Documented.
13834 (fobjc-nilcheck): Documented.
13835 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13838 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13841 * common.opt (export-dynamic): New Driver option.
13842 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13844 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13846 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13848 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13849 Jan Hubicka <jh@suse.cz>
13853 * cfgexpand.c (account_used_vars_for_block): Remove.
13854 (estimated_stack_frame_size): Use referenced vars.
13855 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13856 that were referenced in the original function. Test src_fn
13857 rather than cfun. Drop redundant get_var_ann.
13858 (setup_one_parameter): Drop redundant get_var_ann.
13859 (declare_return_variable): Likewise.
13860 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13861 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13862 * ipa-inline.c (compute_inline_parameters): Do not compute
13863 disregard_inline_limits here.
13864 (compute_inlinable_for_current, pass_inlinable): New.
13865 (pass_inline_parameters): Require PROP_referenced_vars.
13866 * cgraphunit.c (cgraph_process_new_functions): Don't run
13867 compute_inline_parameters explicitly unless function is in SSA form.
13868 (cgraph_analyze_function): Set .disregard_inline_limits.
13869 * tree-sra.c (convert_callers): Compute inliner parameters
13870 only for functions already in SSA form.
13872 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13874 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13875 -mlittle-endian-data.
13877 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13879 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13880 -mno-fpu, not -fpu and -no-fpu.
13881 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13882 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13884 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13887 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13888 input reload with PLUS RTX.
13890 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13892 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13893 of InverseVar(MDMX).
13895 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13897 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13900 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13902 * config/mn10300/mn10300.opt (mno-crt0): New.
13904 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13906 * config/m68k/uclinux.opt (static-libc): New Driver option.
13908 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13910 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13912 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13914 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13915 %{muser-extend-enabled}.
13917 2011-02-16 Richard Guenther <rguenther@suse.de>
13919 PR tree-optimization/47738
13920 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13921 the TODO from tree_predictive_commoning.
13923 2011-02-15 Jeff Law <law@redhat.com>
13926 2011-01-25 Jeff Law <law@redhat.com>
13928 PR rtl-optimization/37273
13929 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13930 handle them like argument loads from stack slots. Do not double
13931 count memory for memory constants and argument loads from stack slots.
13933 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13935 PR middle-end/47725
13936 * combine.c (cant_combine_insn_p): Revert the last change.
13938 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13941 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13942 mode for vector constants. Remove code that checks for TImode.
13944 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13948 * cgraph.h (compute_inline_parameters): Return void.
13949 * ipa-inline.c (compute_inline_parameters): Adjust.
13951 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13955 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13957 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13958 * ipa-inline.c (compute_inline_parameters): Adjust.
13960 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13964 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13965 Adjust all users. Pass FN to...
13966 * tree-flow-inline.h (first_referenced_var): ... this. Add
13968 * ipa-struct-reorg.c: Adjust.
13969 * tree-dfa.c: Adjust.
13970 * tree-into-ssa.c: Adjust.
13971 * tree-sra.c: Adjust.
13972 * tree-ssa-alias.c: Adjust.
13973 * tree-ssa-live.c: Adjust.
13974 * tree-ssa.c: Adjust.
13975 * tree-ssanames.c: Adjust.
13976 * tree-tailcall.c: Adjust.
13978 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13982 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13983 Adjust all callers.
13984 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13985 * tree-flow-inline.h: Adjust.
13986 * gimple-pretty-print.c: Adjust.
13987 * tree-into-ssa.c: Adjust.
13988 * tree-ssa.c: Adjust.
13989 * cfgexpand.c: Adjust.
13991 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13993 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13994 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13995 (EXTRA_CONSTRAINT): Delete.
13996 * config/iq2000/constraints.md: New file.
13997 * config/iq2000/iq2000.md: Include it.
13998 (define_insn ""): Delete.
13999 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14000 unsupported constraint letters from patterns.
14001 (call_value, call_value_internal1): Likewise.
14002 (call_value_multiple_internal1): Likewise.
14004 2011-02-15 Nick Clifton <nickc@redhat.com>
14006 * config/mn10300/mn10300.c: Include tm-constrs.h.
14007 (struct liw_data): New data structure describing an LIW candidate
14009 (extract_bundle): Use struct liw_data. Allow small integer
14010 operands for some instructions.
14011 (check_liw_constraints): Use struct liw_data. Remove swapped
14012 parameter. Add comments describing the checks. Fix bug when
14013 assigning the source of liw1 to the source of liw2.
14014 (liw_candidate): Delete. Code moved into extract_bundle.
14015 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14017 * config/mn10300/predicates.md (liw_operand): New predicate.
14018 Allows registers and small integer constants.
14019 * config/mn10300/constraints.md (O): New constraint. Accetps
14020 integers in the range -8 to +7 inclusive.
14021 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14022 for moving a small integer into a register. Give this alternative
14024 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14025 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14026 using the J,K,L and M constraints,
14027 (liw): Remove SI mode on second operands to allow for HI and QI
14029 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14032 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14034 PR middle-end/47725
14035 * combine.c (cant_combine_insn_p): Check zero/sign extended
14038 2011-02-15 Richard Guenther <rguenther@suse.de>
14040 PR tree-optimization/47743
14041 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14042 for a non-type-compatible VN lookup bail out.
14044 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14046 * config/fr30/constraints.md: New file.
14047 * config/fr30/fr30.md: Include it.
14048 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14049 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14050 (EXTRA_CONSTRAINT): Delete.
14052 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14054 * config/frv/constraints.md: New file.
14055 * config/frv/predicates.md: Include it.
14056 * config/frv/frv.c (reg_class_from_letter): Delete.
14057 (frv_option_override): Don't initialize it.
14058 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14059 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14060 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14061 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14062 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14063 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14064 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14065 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14066 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14067 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14068 (REG_CLASS_FROM_CONSTRAINT): Delete.
14070 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14072 PR middle-end/47581
14073 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14074 if frame size is 0 in a leaf function.
14076 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14079 * config/alpha/host-osf.c: New file.
14080 * config/alpha/x-osf: New file.
14081 * config.host (alpha*-dec-osf*): Use it.
14083 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14085 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14086 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14087 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14088 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14090 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14092 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14094 * config/stormy16/constraints.md: New file.
14095 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14096 Use satisfies_constraint_Q and satisfies_constraint_R.
14097 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14099 (xstormy16_legitiamte_address_p): Declare.
14100 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14101 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14102 (EXTRA_CONSTRAINT): Delete.
14103 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14105 (xstormy16_extra_constraint_p): Delete.
14107 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14109 PR tree-optimization/46494
14110 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14111 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14112 (pass_rtl_loop_done): Add TODO_verify_flow.
14113 * fwprop.c (pass_rtl_fwprop): Likewise.
14114 * modulo-sched.c (pass_sms): Likewise.
14115 * tree-ssa-dom.c (pass_dominator): Likewise.
14116 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14117 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14118 (pass_tree_loop_done): Likewise.
14119 * tree-ssa-pre.c (execute_pre): Likewise.
14120 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14121 * tree-ssa-sink.c (pass_sink_code): Likewise.
14122 * tree-vrp.c (pass_vrp): Likewise.
14124 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14126 * config/v850/constraints.md: New file.
14127 * config/v850/v850.md: Include it.
14128 * config/v850/predicates.md (reg_or_0_operand): Use
14129 satisfies_constraint_G.
14130 (special_symbolref_operand): Use satisfies_constraint_K.
14131 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14132 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14133 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14134 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14135 (EXTRA_CONSTRAINT): Delete.
14136 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14137 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14138 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14140 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14143 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14146 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14148 * config/mcore/constraints.md: New file.
14149 * config/mcore/mcore.md: Include it.
14150 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14151 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14152 (REG_CLASS_FROM_LETTER): Delete.
14153 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14154 insn_const_int_ok_for_constraint.
14155 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14156 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14157 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14158 (EXTRA_CONSTRAINT): Delete.
14160 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14163 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14164 (IS_SIGHANDLER): Define.
14165 (sparc64_is_sighandler): New function, split off from
14166 sparc64_fallback_frame_state.
14167 (sparc_is_sighandler): New function, split off from
14168 sparc_fallback_frame_state.
14169 (sparc64_fallback_frame_state): Merge with ...
14170 (sparc_fallback_frame_state): ... this into ...
14171 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14172 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14173 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14174 stack instead of hardcoded offsets.
14176 2011-02-14 Andriy Gapon <avg@freebsd.org>
14179 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14181 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14183 * configure: Regenerate.
14185 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14188 * gcc.c (asm_options): Correct spec matching --target-help.
14190 2011-02-12 Martin Jambor <mjambor@suse.cz>
14192 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14193 to gimple call error.
14195 2011-02-12 Mike Stump <mikestump@comcast.net>
14197 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14198 comments in backslash regions.
14200 2011-02-12 Mike Stump <mikestump@comcast.net>
14201 Jakub Jelinek <jakub@redhat.com>
14202 Iain Sandoe <iains@gcc.gnu.org>
14205 * dwarf2out.c (output_cfa_loc): When required, apply the
14206 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14207 (output_loc_sequence): Likewise.
14208 (output_loc_operands_raw): Likewise.
14209 (output_loc_sequence_raw): Likewise.
14210 (output_cfa_loc): Likewise.
14211 (output_loc_list): Suppress register number adjustment when
14212 calling output_loc_sequence()
14213 (output_die): Likewise.
14215 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14217 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14219 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14220 xtensa_memory_move_cost): New functions.
14221 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14223 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14226 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14227 in the current directory.
14228 * configure: Rebuilt.
14230 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14232 * config/darwin.c (darwin_override_options): Add a hunk missed
14233 from the commit of r168571. Trim comment line lengths and
14234 correct indents of the preceding block.
14236 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14238 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14241 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14243 * common.opt (nostartfiles): New Driver option.
14245 2011-02-11 Xinliang David Li <davidxl@google.com>
14247 PR tree-optimization/47707
14248 * tree-chrec.c (convert_affine_scev): Keep type precision.
14250 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14252 PR tree-optimization/47420
14253 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14255 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14257 PR rtl-optimization/47614
14258 * rtl.h (check_for_inc_dec): Declare.
14259 * dse.c (check_for_inc_dec): Externalize...
14260 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14261 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14263 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14266 * gcc.c (main): Do not compile inputs if there were errors in
14268 * opts-common.c (read_cmdline_option): Check for wrong language
14269 after other error checks.
14271 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14273 * cgraph.c: Fix comment typos.
14274 * cgraph.h: Likewise.
14275 * cgraphunit.c: Likewise.
14276 * ipa-cp.c: Likewise.
14277 * ipa-inline.c: Likewise.
14278 * ipa-prop.c: Likewise.
14279 * ipa-pure-const.c: Likewise.
14280 * ipa-ref.c: Likewise.
14281 * ipa-reference.c: Likewise.
14283 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14286 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14288 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14291 * doc/sourcebuild.texi (Require Support): Document
14292 dg-require-ascii-locale.
14294 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14296 * doc/lto.texi (Write summary): Fix missing parentheses.
14298 2011-02-10 DJ Delorie <dj@redhat.com>
14300 * config/m32c/m32c.c (m32c_option_override): Disable
14301 -fcombine-stack-adjustments until flag value tracking and compare
14302 optimization can be rewritten.
14304 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14306 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14308 (PROCESSOR_DEFAULT64): Likewise.
14310 2011-02-10 Richard Henderson <rth@redhat.com>
14312 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14313 change from 2011-02-03.
14314 * config/rx/rx.c (flags_from_code): Likewise.
14315 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14316 is valid, n/pz otherwise.
14317 (rx_select_cc_mode): Return CCmode if Y is not zero.
14319 2011-02-10 Richard Guenther <rguenther@suse.de>
14321 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14323 2011-02-10 Richard Guenther <rguenther@suse.de>
14325 PR tree-optimization/47677
14326 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14328 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14331 * combine.c (make_compound_operation): Only change shifts into
14332 multiplication for SCALAR_INT_MODE_P.
14334 2011-02-10 Jie Zhang <jie@codesourcery.com>
14338 2011-02-05 Jie Zhang <jie@codesourcery.com>
14340 * web.c (entry_register): Don't clobber the number of the
14341 first uninitialized reference in used[].
14343 2011-02-09 Richard Guenther <rguenther@suse.de>
14345 PR tree-optimization/47664
14346 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14349 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14353 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14355 (PROCESSOR_DEFAULT64): Same.
14356 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14358 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14360 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14362 2011-02-09 Martin Jambor <mjambor@suse.cz>
14364 PR middle-end/45505
14365 * tree-sra.c (struct access): New flags grp_scalar_read and
14366 grp_scalar_write. Changed description of assignment read and write
14368 (dump_access): Dump new flags, reorder all of them.
14369 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14370 to detect multiple scalar reads.
14371 (analyze_access_subtree): Use the new scalar read write flags instead
14372 of the old flags. Adjusted comments.
14374 2011-02-08 DJ Delorie <dj@redhat.com>
14377 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14380 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14382 * config/m68k/uclinux.opt: New.
14383 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14385 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14387 * config/cris/elf.opt (sim): New Driver option.
14389 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14391 * config/xtensa/elf.opt: New.
14392 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14394 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14396 * config/vax/elf.opt: New.
14397 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14399 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14401 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14403 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14405 * config/gnu-user.opt: New.
14406 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14407 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14408 *-*-uclinux*): Use gnu-user.opt.
14410 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14412 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14413 * config/i386/gnu.h (CPP_SPEC): Likewise.
14415 2011-02-08 Ian Lance Taylor <iant@google.com>
14417 * common.opt (fcx-limited-range): Add SetByCombined flag.
14418 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14419 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14420 (fassociative-math, freciprocal-math): Likewise.
14421 (funsafe-math-optimizations): Likewise.
14422 * opth-gen.awk: Handle SetByCombined.
14423 * optc-gen.awk: Likewise.
14424 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14425 (set_unsafe_math_optimizations_flags): Likewise.
14426 * doc/options.texi (Option properties): Document SetByCombined.
14428 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14430 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14431 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14432 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14433 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14434 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14436 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14438 PR tree-optimization/46834
14439 PR tree-optimization/46994
14440 PR tree-optimization/46995
14441 * graphite-sese-to-poly.c (used_outside_reduction): New.
14442 (detect_commutative_reduction): Call used_outside_reduction.
14443 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14444 translate_scalar_reduction_to_array only when at least one
14445 loop-phi/close-phi tuple has been detected.
14447 2011-02-08 Richard Guenther <rguenther@suse.de>
14449 PR middle-end/47639
14450 * tree-vect-generic.c (expand_vector_operations_1): Update
14452 (expand_vector_operations): ... not here. Cleanup EH info
14453 and the CFG if required.
14455 2011-02-08 Richard Guenther <rguenther@suse.de>
14457 PR tree-optimization/47641
14458 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14459 require type compatibility.
14461 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14463 * gimple-low.c (lower_function_body): Don't remove the location of
14464 the return statement here.
14465 (lower_gimple_return): Do it here instead but only if the return
14466 statement is actually used twice.
14468 2011-02-08 Richard Guenther <rguenther@suse.de>
14470 PR tree-optimization/47632
14471 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14472 unused up_to_stmt parameter, return whether cfg-cleanup is
14473 necessary, remove EH info properly.
14474 (forward_propagate_into_gimple_cond): Adjust caller.
14475 (forward_propagate_into_cond): Likewise.
14476 (forward_propagate_comparison): Likewise.
14477 (tree_ssa_forward_propagate_single_use_vars): Make
14478 forward_propagate_comparison case similar to the two others.
14480 2011-02-08 Nick Clifton <nickc@redhat.com>
14482 * config/mn10300/mn10300.opt (mliw): New command line option.
14483 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14484 (liw_bundling): New automaton.
14485 (liw): New attribute.
14486 (liw_op): New attribute.
14487 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14488 (movsi_internal): Add LIW attributes.
14489 (andsi3): Likewise.
14490 (iorsi3): Likewise.
14491 (xorsi3): Likewise.
14492 (addsi3): Separate register and immediate alternatives.
14493 Add LIW attributes.
14494 (subsi3): Likewise.
14496 (aslsi3): Likewise.
14497 (lshrsi3): Likewise.
14498 (ashrsi3): Likewise.
14499 (liw): New pattern.
14500 * config/mn10300/mn10300.c (liw_op_names): New
14501 (mn10300_print_operand): Handle 'W' operand descriptor.
14502 (extract_bundle): New function.
14503 (check_liw_constraints): New function.
14504 (liw_candidate): New function.
14505 (mn10300_bundle_liw): New function.
14506 (mn10300_reorg): New function.
14507 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14508 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14509 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14510 __LIW__ or __NO_LIW__.
14511 * doc/invoke.texi: Describe the -mliw command line option.
14513 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14515 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14516 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14517 pthread_mutex_unlock): Remove.
14518 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14519 * config/pa/t-pa64: Likewise.
14520 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14521 shared libc if not linking against libpthread.
14522 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14524 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14527 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14528 on 10.6 and later to ensure that we always use the unwinder from
14529 the system. Only add -no_compact_unwind when tarteting darwin
14532 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14535 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14536 (vec_interleave_lowv2sf): Ditto.
14537 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14538 (vec_extract_oddv2sf): Ditto.
14540 2011-02-07 Mike Stump <mikestump@comcast.net>
14543 Add __ieee_divdc3 entry point.
14544 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14546 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14547 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14548 * config/darwin.c (darwin_rename_builtins): Add.
14549 * config/darwin-protos.h (darwin_rename_builtins): Add.
14551 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14554 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14557 2011-02-07 Mike Stump <mikestump@comcast.net>
14559 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14561 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14564 * config/avr/libgcc.S (exit): Move .endfunc
14566 2011-02-07 Richard Guenther <rguenther@suse.de>
14568 PR tree-optimization/47615
14569 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14570 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14571 (run_scc_vn): Initialize it.
14572 (visit_reference_op_load): Use it.
14573 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14575 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14577 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14578 DImode trapping arithmetic libfuncs.
14580 2011-02-07 Richard Guenther <rguenther@suse.de>
14582 PR tree-optimization/47621
14583 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14585 (execute_update_addresses_taken): ... here. Make it more
14586 conservative in what we accept.
14588 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14590 * config/sparc/freebsd.h (ASM_SPEC): Define.
14591 * config/sparc/vxworks.h (ASM_SPEC): Define.
14593 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14595 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14597 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14599 * doc/invoke.texi: Remove reference to compiler internals from
14600 user documentation.
14602 * reg-notes.def: Remove REG_VALUE_PROFILE.
14603 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14605 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14607 PR middle-end/47610
14608 * varasm.c (default_section_type_flags): If decl is NULL,
14609 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14611 2011-02-05 Jie Zhang <jie@codesourcery.com>
14614 * web.c (entry_register): Don't clobber the number of the
14615 first uninitialized reference in used[].
14617 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14619 PR tree-optimization/46194
14620 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14621 (build_classic_dist_vector_1): Do not represent classic distance
14622 vectors when the access functions are variating in different loops.
14624 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14626 * config/mips/iris6.opt: New.
14627 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14629 2011-02-04 Richard Henderson <rth@redhat.com>
14630 Steve Ellcey <sje@cup.hp.com>
14633 * config/ia64/predicates.md (mux1_brcst_element): New.
14634 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14635 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14636 (ia64_unpack_sign): New.
14637 (ia64_expand_unpack): Rewrite using new routines.
14638 (ia64_expand_widen_sum): Ditto.
14639 (ia64_expand_dot_prod_v8qi): Ditto.
14640 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14641 routines, add endian check.
14642 (pmpy2_even): Rename from pmpy2_r, add endian check.
14643 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14644 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14645 (vec_widen_smult_hi_v4hi): Ditto.
14646 (vec_widen_umult_lo_v4hi): Ditto.
14647 (vec_widen_umult_hi_v4hi): Ditto.
14648 (mulv2si3): Change endian checks.
14649 (sdot_prodv4hi): Rewrite with new calls.
14650 (udot_prodv4hi): New.
14651 (vec_pack_ssat_v4hi): Add endian check.
14652 (vec_pack_usat_v4hi): Ditto.
14653 (vec_pack_ssat_v2si): Ditto.
14654 (max1_even): Rename from max1_r, add endian check.
14655 (max1_odd): Rename from max1_l, add endian check.
14656 (*mux1_rev): Format change.
14657 (*mux1_mix): Ditto.
14658 (*mux1_shuf): Ditto.
14659 (*mux1_alt): Ditto.
14660 (*mux1_brcst_v8qi): Use new predicate.
14661 (vec_extract_evenv8qi): Remove endian check.
14662 (vec_extract_oddv8qi): Ditto.
14663 (vec_interleave_lowv4hi): Format change.
14664 (vec_interleave_highv4hi): Ditto.
14665 (mix2_even): Rename from mix2_r, add endian check.
14666 (mix2_odd): Rename from mux2_l, add endian check.
14667 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14668 (vec_extract_evenodd_helper): Format change.
14669 (vec_extract_evenv4hi): Remove endian check.
14670 (vec_extract_oddv4hi): Remove endian check.
14671 (vec_interleave_lowv2si): Format change.
14672 (vec_interleave_highv2si): Format change.
14673 (vec_initv2si): Remove endian check.
14674 (vecinit_v2si): Add endian check.
14675 (reduc_splus_v2sf): Add endian check.
14676 (reduc_smax_v2sf): Ditto.
14677 (reduc_smin_v2sf): Ditto.
14678 (vec_initv2sf): Remove endian check.
14679 (fpack): Add endian check.
14680 (fswap): Add endian check.
14681 (vec_interleave_highv2sf): Add endian check.
14682 (vec_interleave_lowv2sf): Add endian check.
14683 (fmix_lr): Add endian check.
14684 (vec_setv2sf): Format change.
14685 (*vec_extractv2sf_0_be): Use shift to extract operand.
14686 (*vec_extractv2sf_1_be): New.
14687 (vec_pack_trunc_v4hi): Add endian check.
14688 (vec_pack_trunc_v2si): Format change.
14690 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14692 PR inline-asm/23200
14693 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14694 do bb, locus and block comparison and disallow loads if it is not set.
14695 (stmt_is_replaceable_p): New function.
14696 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14698 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14699 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14701 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14703 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14705 * config/rs6000/xilinx.opt: New.
14706 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14708 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14710 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14712 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14714 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14715 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14716 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14717 secondary_reload_info, xtensa_secondary_reload): Remove.
14718 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14719 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14720 (xtensa_preferred_reload_class): Make static. Change return and
14721 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14722 Use CONST_DOUBLE_P predicate.
14723 (xtensa_preferred_output_reload_class): New function.
14724 (xtensa_secondary_reload): Make static.
14726 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14728 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14729 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14730 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14732 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14734 PR middle-end/31490
14735 * output.h (SECTION_RELRO): Define.
14736 (SECTION_MACH_DEP): Adjust.
14737 (get_variable_section): New prototype.
14738 * varpool.c (varpool_finalize_named_section_flags): New function.
14739 (varpool_assemble_pending_decls): Call it.
14740 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14741 * cgraphunit.c (cgraph_output_in_order): Call
14742 varpool_finalize_named_section_flags.
14743 * varasm.c (get_section): Allow section flags conflicts between
14744 relro and read-only sections if the section hasn't been declared yet.
14745 Set SECTION_OVERRIDE after diagnosing section type conflict.
14746 (get_variable_section): No longer static.
14747 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14748 readonly sections that need relocations.
14749 (decl_readonly_section_1): New function.
14750 (decl_readonly_section): Use it.
14753 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14754 Steve Ellcey <sje@cup.hp.com>
14756 PR middle-end/31490
14757 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14758 if section attribute used.
14760 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14762 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14763 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14764 (darwin_init_sections): Remove assertion.
14766 2011-02-03 Nick Clifton <nickc@redhat.com>
14768 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14770 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14771 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14772 instead of "n" and "pz".
14773 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14776 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14779 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14780 fma, expand FMA_EXPR as fma{,f,l} call.
14783 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14784 copy them into a unsigned char variable and pass address of it to
14785 lto_output_data_stream.
14788 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14789 around backend_init_target and lang_dependent_init_target calls.
14790 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14791 (verify_cgraph_node): Don't call set_cfun here. Use
14792 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14793 Set error_found for incorrectly represented calls to thunks.
14795 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14798 PR rtl-optimization/43494
14799 * rtl.h (for_each_inc_dec_fn): New type.
14800 (for_each_inc_dec): Declare.
14801 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14802 (for_each_inc_dec_find_inc_dec): New fn.
14803 (for_each_inc_dec_find_mem): New fn.
14804 (for_each_inc_dec): New fn.
14805 * dse.c (struct insn_size): Remove.
14806 (replace_inc_dec, replace_inc_dec_mem): Remove.
14807 (emit_inc_dec_insn_before): New fn.
14808 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14809 (canon_address): Pass mem modes to cselib_lookup.
14810 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14811 (cselib_lookup_from_insn): Likewise.
14812 (cselib_subst_to_values): Likewise.
14813 * cselib.c (find_slot_memmode): New var.
14814 (cselib_find_slot): New fn. Use it instead of
14815 htab_find_slot_with_hash everywhere.
14816 (entry_and_rtx_equal_p): Use find_slot_memmode.
14817 (autoinc_split): New fn.
14818 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14819 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14820 Deal with autoinc. Special-case recursion into MEMs.
14821 (cselib_hash_rtx): Likewise.
14822 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14823 address and MEM modes.
14824 (cselib_subst_to_values): Add memmode, pass it on.
14826 (cselib_lookup): Add memmode argument, pass it on.
14827 (cselib_lookup_from_insn): Add memmode.
14828 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14829 (struct cselib_record_autoinc_data): New.
14830 (cselib_record_autoinc_cb): New fn.
14831 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14832 mode to cselib_lookup. Reset autoinced REGs here instead of...
14833 (cselib_process_insn): ... here.
14834 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14836 (add_uses): Likewise, also to cselib_subst_to_values.
14837 (add_stores): Likewise.
14838 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14839 cselib_subst_to_values.
14840 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14841 * gcse.c (do_local_cprop): Adjusted.
14842 * postreload.c (reload_cse_simplify_set): Adjusted.
14843 (reload_cse_simplify_operands): Adjusted.
14844 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14846 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14848 PR tree-optimization/45122
14849 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14850 unsafe assumptions when there's more than one loop exit.
14852 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14855 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14856 Document using vector double with the load/store builtins, and
14857 that the load/store builtins always use Altivec instructions.
14859 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14860 to use altivec memory instructions, even on VSX.
14861 (vector_altivec_store_<mode>): Ditto.
14863 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14866 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14867 V2DF, V2DI support to load/store overloaded builtins.
14869 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14870 altivec load/store builtins for V2DF/V2DI types.
14872 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14873 set avoid indexed addresses on power6 if -maltivec.
14874 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14875 vector_altivec_load/vector_altivec_store builtins.
14876 (altivec_expand_st_builtin): Ditto.
14877 (altivec_expand_builtin): Add VSX memory builtins.
14878 (rs6000_init_builtins): Add V2DI types to internal types.
14879 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14880 load/store builtins.
14881 (rs6000_address_for_altivec): Insure memory address is appropriate
14884 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14885 vec_vsx_ld and vec_vsx_st.
14886 (vsx_store_<mode>): Ditto.
14888 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14889 variables to hold long long types for VSX vector memory builtins.
14890 (RS6000_BTI_unsigned_long_long): Ditto.
14891 (long_long_integer_type_internal_node): Ditti.
14892 (long_long_unsigned_type_internal_node): Ditti.
14894 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14895 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14896 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14898 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14900 (vec_vsx_st): Ditto.
14902 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14904 * config/pa/pa-hpux10.opt: New.
14905 * config/hpux11.opt (pthread): New Driver option.
14906 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14907 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14909 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14911 * config/ia64/vms.opt: New.
14912 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14914 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14917 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14918 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14919 generator functions.
14920 (vsx_floatuns<VSi><mode>2): Ditto.
14921 (vsx_fix_trunc<mode><VSi>2): Ditto.
14922 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14924 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14926 * config/i386/djgpp.opt (posix): New Driver option.
14928 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14930 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14931 Move to the unsupported targets list.
14933 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14935 PR rtl-optimization/47525
14936 * df-scan.c: Update copyright years.
14937 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14938 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14940 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14942 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14943 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14944 (ASM_OUTPUT_ASCII): Remove.
14945 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14947 2011-02-02 Jeff Law <law@redhat.com>
14949 PR middle-end/47543
14950 * reload.c (find_reloads_address): Handle reg+d address where both
14951 components are invalid by reloading the entire address.
14953 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14954 Richard Guenther <rguenther@suse.de>
14956 PR tree-optimization/40979
14958 * passes.c (init_optimization_passes): After LIM call copy_prop
14959 and DCE to clean up.
14960 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14962 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14964 PR tree-optimization/47576
14965 PR tree-optimization/47555
14966 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14967 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14968 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14969 * tree-scalar-evolution.c (follow_ssa_edge): Use
14970 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14972 2011-02-02 Richard Guenther <rguenther@suse.de>
14974 PR tree-optimization/47566
14975 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14977 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14981 * tree-inline.c (declare_return_variable): Remove unused caller
14986 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14987 * cfgexpand.c (account_used_vars_for_block): Use them.
14988 * tree-nrv.c (tree_nrv): Likewise.
14989 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14990 (dump_scope_block): Likewise.
14991 (remove_unused_locals): Likewise.
14995 * tree-inline.c (declare_return_variable): Add result decl to
14996 local decls only once.
14997 * gimple-low.c (record_vars_into): Mark newly-created variables
15000 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15006 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15008 (no_real_insns_p, schedule_block, set_priorities): Drop special
15009 treatment of boundary debug insns.
15010 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15011 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15012 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15013 (BOUNDARY_DEBUG_INSN_P): Likewise.
15014 (SCHEDULE_DEBUG_INSN_P): Likewise.
15015 * sched-rgn.c (init_ready_list): Drop special treatment of
15016 boundary debug insns.
15017 * final.c (rest_of_clean_state): Clear notes' BB.
15019 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15021 * config/openbsd.opt (assert=): New Driver option.
15023 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15025 * config/i386/nto.opt: New.
15026 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15028 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15030 * config/i386/netware.opt: New.
15031 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15033 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15035 * config/interix.opt (posix): New Driver option.
15037 2011-02-01 DJ Delorie <dj@redhat.com>
15039 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15041 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15044 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15046 PR tree-optimization/47561
15047 * toplev.c (process_options): Print the Graphite flags. Add
15048 flag_loop_flatten to the list of options requiring Graphite.
15050 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15052 * config/i386/cygming.opt (posix): New Driver option.
15054 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15056 * config/arm/vxworks.opt: New.
15057 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15059 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15061 * config/alpha/elf.opt: New.
15062 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15063 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15065 2011-02-01 Richard Guenther <rguenther@suse.de>
15067 PR tree-optimization/47559
15068 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15069 store-motion on references that can throw.
15071 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15073 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15074 * tree-pass.h (TDF_CSELIB): New macro.
15075 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15076 cselib_lookup): Check for it rather than for TDF_DETAILS.
15078 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15081 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15082 is HOST_BIT_BUCKET.
15084 * opts.c (finish_options): Don't add x_aux_base_name if it is
15087 2011-02-01 Richard Guenther <rguenther@suse.de>
15089 PR tree-optimization/47555
15091 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15093 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15095 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15098 * config/lm32/t-lm32: Add multilib for all CPU options.
15100 2011-02-01 Richard Guenther <rguenther@suse.de>
15102 PR tree-optimization/47541
15103 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15104 sure to have a field at offset zero.
15106 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15108 * config/arc/arc.opt (EB, EL): New Driver options.
15110 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15112 * config/alpha/osf5.opt: New.
15113 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15115 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15117 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15119 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15121 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15122 -floop-interchange.
15123 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15124 is an alias of -floop-interchange and that it requires the
15125 Graphite infrastructure.
15126 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15127 flag_loop_interchange based on the value of flag_tree_loop_linear.
15129 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15130 Richard Guenther <rguenther@suse.de>
15132 PR tree-optimization/47538
15133 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15134 type instead of r1type, except for comparisons. For right
15135 shifts and comparisons punt if there are mismatches in
15136 sizetype vs. non-sizetype types.
15138 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15140 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15143 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15145 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15147 * configure: Regenerate.
15149 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15151 * configure.ac (gcc_cv_ld_static_option): Define.
15152 (gcc_cv_ld_dynamic_option): Define.
15153 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15155 (HAVE_LD_STATIC_DYNAMIC): Update message.
15156 (LD_STATIC_OPTION): Define.
15157 (LD_DYNAMIC_OPTION): Define.
15158 * configure: Regenerate.
15159 * config.in: Regenerate.
15160 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15161 HAVE_LD_STATIC_DYNAMIC]: Use them.
15163 2011-01-31 Nick Clifton <nickc@redhat.com>
15165 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15166 registers inside interrupt handlers if the handler is not a leaf
15169 2011-01-31 Nick Clifton <nickc@redhat.com>
15171 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15172 reg_renumber returning an INVALID_REGNUM.
15174 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15177 * doc/install.texi: Document host options discarded when cross
15178 configuring target libraries.
15180 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15183 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15186 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15188 (no_real_insns_p, schedule_block, set_priorities): Drop special
15189 treatment of boundary debug insns.
15190 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15191 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15192 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15193 (BOUNDARY_DEBUG_INSN_P): Likewise.
15194 (SCHEDULE_DEBUG_INSN_P): Likewise.
15195 * sched-rgn.c (init_ready_list): Drop special treatment of
15196 boundary debug insns.
15197 * final.c (rest_of_clean-state): Clear notes' BB.
15199 2011-01-31 Alan Modra <amodra@gmail.com>
15201 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15202 toc relative expressions as we do in print_operand_address.
15204 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15206 * doc/extend.texi: Follow spelling conventions.
15207 * doc/invoke.texi: Fix a typo.
15209 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15211 * config/hpux11.opt: New.
15212 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15213 ia64*-*-hpux*): Use hpux11.opt.
15215 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15217 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15220 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15222 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15225 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15227 * doc/install.texi (Binaries): Remove outdated reference for
15228 Motorola 68HC11/68HC12 downloads.
15230 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15232 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15235 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15238 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15241 2011-01-28 Ahmad Sharif <asharif@google.com>
15243 * value-prof.c (check_counter): Corrected error message.
15245 2011-01-29 Jie Zhang <jie@codesourcery.com>
15247 * config/arm/arm.c (arm_legitimize_reload_address): New.
15248 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15249 arm_legitimize_reload_address.
15250 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15252 2011-01-28 Ian Lance Taylor <iant@google.com>
15254 * godump.c (go_define): Ignore macros whose definitions include
15255 two adjacent operands.
15257 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15260 * varasm.c (force_const_mem): Store copy of x in desc->constant
15261 instead of x itself.
15262 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15263 itself into REG_EQUAL note.
15265 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15267 * config/freebsd.opt (posix, rdynamic): New Driver options.
15269 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15271 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15272 -Bstatic/-Bdynamic.
15273 * configure: Regenerate.
15275 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15277 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15278 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15280 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15282 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15283 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15284 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15285 (s390_preferred_reload_class): Make static. Change return and
15286 'rclass' argument type to reg_class_t.
15288 2011-01-27 Jan Hubicka <jh@suse.cz>
15290 PR middle-end/46949
15291 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15292 (process_function_and_variable_attributes): Check defined weakrefs.
15294 2011-01-27 Martin Jambor <mjambor@suse.cz>
15296 PR tree-optimization/47228
15297 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15298 build_ref_for_offset.
15300 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15302 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15304 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15306 PR rtl-optimization/46856
15307 * postreload.c (reload_combine_recognize_const_pattern): Do not
15308 separate cc0 setter and user on cc0 targets.
15310 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15313 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15314 passed a VOID_TYPE expression, immediately emit an error and
15315 return error_mark_node.
15317 2011-01-26 Jeff Law <law@redhat.com>
15319 PR rtl-optimization/47464
15320 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15321 rather than may_trap_p as needed.
15323 2011-01-26 DJ Delorie <dj@redhat.com>
15325 PR rtl-optimization/46878
15326 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15327 setter/user dependency as well.
15329 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15331 PR rtl-optimization/44469
15332 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15333 after removing trivially dead basic blocks.
15335 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15337 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15338 * config/frv/frv.h (LINK_SPEC): Likewise.
15339 * config/i386/netware.h (LINK_SPEC): Likewise.
15340 * config/m68k/linux.h (ASM_SPEC): Likewise.
15341 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15342 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15343 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15344 * config/sparc/linux.h (ASM_SPEC): Likewise.
15345 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15346 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15348 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15350 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15351 * config/frv/frv.h (ASM_SPEC): Likewise.
15352 * config/m68k/linux.h (ASM_SPEC): Likewise.
15353 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15354 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15355 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15356 * config/sparc/linux.h (ASM_SPEC): Likewise.
15357 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15358 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15360 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15362 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15363 * config/frv/frv.h (LINK_SPEC): Likewise.
15364 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15366 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15368 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15369 * config/frv/frv.h (ASM_SPEC): Likewise.
15370 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15371 * config/m68k/linux.h (ASM_SPEC): Likewise.
15372 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15373 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15374 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15375 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15376 * config/sparc/linux.h (ASM_SPEC): Likewise.
15377 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15378 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15379 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15381 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15384 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15386 (vec_extract_evenodd_help): Ditto.
15387 (vec_extract_evenv4hi): Ditto.
15388 (vec_extract_oddv4hi): Ditto.
15389 (vec_interleave_lowv2si): Ditto.
15390 (vec_interleave_highv2si): Ditto.
15391 (vec_extract_evenv2si): Ditto.
15392 (vec_extract_oddv2si: Ditto.
15393 (vec_pack_trunc_v2si): Ditto.
15395 2011-01-22 Jan Hubicka <jh@suse.cz>
15398 * cgraph.h (cgraph_local_info): New field can_change_signature.
15399 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15400 signature can change.
15401 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15403 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15404 (cgraph_function_versioning): We can not change signature of functions
15405 that don't allow that.
15406 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15407 (lto_input_node): Likewise.
15408 * ipa-inline.c (compute_inline_parameters): Compute
15409 local.can_change_signature.
15410 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15411 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15412 functions that can not change signature.
15413 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15414 init_cumulative_args): Do not use local calling conventions
15415 for functions that can not change signature.
15417 2011-01-22 Jan Hubicka <jh@suse.cz>
15419 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15421 2011-01-26 Richard Guenther <rguenther@suse.de>
15423 PR tree-optimization/47190
15424 * cgraphunit.c (process_common_attributes): New function.
15425 (process_function_and_variable_attributes): Use it.
15427 2011-01-26 Richard Guenther <rguenther@suse.de>
15430 * cgraphbuild.c (record_eh_tables): Record reference to personality
15433 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15436 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15437 non-debug insns from moving up.
15439 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15442 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15443 t-dlldir{,-x} fragment for build and add it to tmake_file.
15444 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15445 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15446 * config/i386/t-dlldir: New file.
15447 (SHLIB_DLLDIR): Define.
15448 * config/i386/t-dlldir-x: New file.
15449 (SHLIB_DLLDIR): Define.
15450 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15451 (SHLIB_INSTALL): Use it.
15453 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15456 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15457 lower bound of the allowed Thumb-2 coprocessor load/store
15458 index range to -256. Add explaining comment.
15460 2011-01-25 Ian Lance Taylor <iant@google.com>
15462 * godump.c (go_define): Improve lexing of macro expansion to only
15463 accept expressions which match Go spec.
15465 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15468 * tree.c (handle_dll_attribute): Handle it.
15469 * doc/extend.texi (@item dllexport): Mention it.
15470 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15472 2011-01-25 Ian Lance Taylor <iant@google.com>
15474 PR tree-optimization/26854
15475 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15476 (decl_jump_unsafe): Move higher in file, with no other change.
15477 (bind): Set has_jump_unsafe_decl if appropriate.
15478 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15479 (check_earlier_gotos): Likewise.
15480 (c_check_switch_jump_warnings): Likewise.
15482 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15484 * doc/invoke.texi (Warning Options): Add missing hyphen.
15485 (-fprofile-dir): Minor grammatical fixes.
15486 (-fbranch-probabilities): Likewise.
15488 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15492 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15494 (no_real_insns_p, schedule_block, set_priorities): Drop special
15495 treatment of boundary debug insns.
15496 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15497 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15498 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15499 (BOUNDARY_DEBUG_INSN_P): Likewise.
15500 (SCHEDULE_DEBUG_INSN_P): Likewise.
15501 * sched-rgn.c (init_ready_list): Drop special treatment of
15502 boundary debug insns.
15503 * final.c (rest_of_clean-state): Clear notes' BB.
15505 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15507 * Makefile.in (LAMBDA_H): Removed.
15508 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15509 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15510 lambda-trans.o, and tree-loop-linear.o.
15511 (lto-symtab.o): Remove dependence on LAMBDA_H.
15512 (tree-loop-linear.o): Remove rule.
15513 (lambda-mat.o): Same.
15514 (lambda-trans.o): Same.
15515 (lambda-code.o): Same.
15516 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15517 (tree-vect-slp.o): Same.
15518 * hwint.h (gcd): Moved here.
15519 (least_common_multiple): Same.
15520 * lambda-code.c: Removed.
15521 * lambda-mat.c: Removed.
15522 * lambda-trans.c: Removed.
15523 * lambda.h: Removed.
15524 * tree-loop-linear.c: Removed.
15525 * lto-symtab.c: Do not include lambda.h.
15526 * omega.c (gcd): Removed.
15527 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15528 * tree-data-ref.c (print_lambda_vector): Moved here.
15529 (lambda_vector_copy): Same.
15530 (lambda_matrix_copy): Same.
15531 (lambda_matrix_id): Same.
15532 (lambda_vector_first_nz): Same.
15533 (lambda_matrix_row_add): Same.
15534 (lambda_matrix_row_exchange): Same.
15535 (lambda_vector_mult_const): Same.
15536 (lambda_vector_negate): Same.
15537 (lambda_matrix_row_negate): Same.
15538 (lambda_vector_equal): Same.
15539 (lambda_matrix_right_hermite): Same.
15540 * tree-data-ref.h: Do not include lambda.h.
15541 (lambda_vector): Moved here.
15542 (lambda_matrix): Same.
15543 (dependence_level): Same.
15544 (lambda_transform_legal_p): Removed declaration.
15545 (lambda_collect_parameters): Same.
15546 (lambda_compute_access_matrices): Same.
15547 (lambda_vector_gcd): Same.
15548 (lambda_vector_new): Same.
15549 (lambda_vector_clear): Same.
15550 (lambda_vector_lexico_pos): Same.
15551 (lambda_vector_zerop): Same.
15552 (lambda_matrix_new): Same.
15553 * tree-flow.h (least_common_multiple): Removed declaration.
15554 * tree-parloops.c (lambda_trans_matrix): Moved here.
15555 (LTM_MATRIX): Same.
15556 (LTM_ROWSIZE): Same.
15557 (LTM_COLSIZE): Same.
15558 (LTM_DENOMINATOR): Same.
15559 (lambda_trans_matrix_new): Same.
15560 (lambda_matrix_vector_mult): Same.
15561 (lambda_transform_legal_p): Same.
15562 * tree-pass.h (pass_linear_transform): Removed declaration.
15563 * tree-ssa-loop.c (tree_linear_transform): Removed.
15564 (gate_tree_linear_transform): Removed.
15565 (pass_linear_transform): Removed.
15566 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15567 flag_loop_interchange.
15569 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15571 PR tree-optimization/47265
15572 PR tree-optimization/47443
15573 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15574 if name still has some uses.
15576 2011-01-25 Martin Jambor <mjambor@suse.cz>
15578 PR tree-optimization/47382
15579 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15580 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15582 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15584 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15585 sjlj_except_unwind_info.
15587 2011-01-25 Richard Guenther <rguenther@suse.de>
15589 PR tree-optimization/47426
15590 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15591 visible functions results escape.
15593 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15596 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15597 (arm_get_frame_offsets): Use it.
15599 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15600 Jakub Jelinek <jakub@redhat.com>
15602 PR tree-optimization/47271
15603 * tree-if-conv.c (bb_postdominates_preds): New.
15604 (if_convertible_bb_p): Call bb_postdominates_preds.
15605 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15606 (predicate_scalar_phi): Call bb_postdominates_preds.
15608 2011-01-25 Nick Clifton <nickc@redhat.com>
15610 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15611 * config/rx/rx.c (rx_function_value): Likewise.
15612 (rx_promote_function_mode): Likewise.
15613 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15614 in order to make it legitimate.
15615 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15616 make sure that the first operand is the same as the result register.
15617 (addsi3_unspec): Delete.
15618 (subdi3): Do not accept immediate operands.
15619 (subdi3_internal): Likewise.
15621 2011-01-25 Jeff Law <law@redhat.com>
15623 PR rtl-optimization/37273
15624 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15625 handle them like argument loads from stack slots. Do not double
15626 count memory for memory constants and argument loads from stack slots.
15628 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15630 PR tree-optimization/47427
15631 PR tree-optimization/47428
15632 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15633 coalesce if the new root var would be TREE_READONLY.
15635 2011-01-25 Richard Guenther <rguenther@suse.de>
15637 PR middle-end/47414
15638 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15639 correct type for TBAA.
15641 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15643 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15644 (close_phi_written_to_memory): Call for_each_index with
15645 dr_indices_valid_in_loop.
15647 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15649 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15650 when it is initialized.
15652 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15654 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15655 call to graphite_find_data_references_in_stmt.
15656 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15657 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15658 call to graphite_find_data_references_in_stmt.
15659 (analyze_drs_in_stmts): Same.
15660 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15661 in which the scalar analysis of indices is performed.
15662 (create_data_ref): Same. Update call to dr_analyze_indices.
15663 (find_data_references_in_stmt): Update call to create_data_ref.
15664 (graphite_find_data_references_in_stmt): Same.
15665 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15667 (create_data_ref): Same.
15668 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15669 call to create_data_ref.
15671 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15673 * graphite-sese-to-poly.c (build_poly_scop): Move
15674 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15676 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15678 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15679 VAR_DECL, PARM_DECL, and RESULT_DECL.
15681 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15683 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15684 in a reduction PBB.
15685 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15686 that have already been marked as PBB_IS_REDUCTION.
15688 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15690 * graphite-scop-detection.c (same_close_phi_node): New.
15691 (remove_duplicate_close_phi): New.
15692 (make_close_phi_nodes_unique): New.
15693 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15695 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15697 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15698 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15699 of both data references to be the same.
15701 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15703 * graphite-dependences.c (build_lexicographical_constraint): Remove
15704 the gdim parameter.
15705 (build_lexicographical_constraint): Adjust call to
15706 ppl_powerset_is_empty.
15707 (dependence_polyhedron): Same.
15708 (graphite_legal_transform_dr): Same.
15709 (graphite_carried_dependence_level_k): Same.
15710 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15712 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15714 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15716 * graphite-sese-to-poly.c
15717 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15718 (close_phi_written_to_memory): New.
15719 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15722 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15724 * doc/install.texi: Update the expected version number of PPL to 0.11.
15725 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15726 #if PPL_VERSION_MINOR < 11.
15728 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15730 * graphite-dependences.c: Include graphite-cloog-util.h.
15731 (new_poly_ddr): Inlined into dependence_polyhedron.
15732 (free_poly_ddr): Moved close by new_poly_ddr.
15733 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15734 Early return NULL when ppl_powerset_is_empty returns true.
15735 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15736 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15737 (graphite_legal_transform_dr): Call new_poly_ddr.
15738 (graphite_carried_dependence_level_k): Same.
15739 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15740 (dot_transformed_deps_stmt_1): Removed.
15741 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15742 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15743 (dot_deps_1): Call dot_deps_2.
15744 * Makefile.in (graphite-dependences.o): Add missing dependence on
15745 graphite-cloog-util.h.
15747 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15749 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15750 (build_lexicographical_constraint): Same.
15751 (dependence_polyhedron_1): Same.
15752 (graphite_legal_transform_dr): Same.
15753 (graphite_carried_dependence_level_k): Same.
15754 * graphite-ppl.c (ppl_powerset_is_empty): New.
15755 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15756 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15758 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15760 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15761 the "a followed by b" relation and document it.
15763 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15765 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15766 iteration when the bag of constraints is empty.
15768 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15770 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15772 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15774 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15775 nest and two loop depths as parameters.
15776 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15777 lst_perfect_nestify.
15779 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15781 * graphite-dependences.c (print_pddr): Call
15782 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15784 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15786 * graphite-ppl.c (debug_gmp_value): New.
15787 * graphite-ppl.h (debug_gmp_value): Declared.
15789 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15791 * doc/install.texi: Document availability of cloog-0.16.
15793 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15795 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15796 invalid postdominance info.
15798 2011-01-24 Jan Hubicka <jh@suse.cz>
15801 * doc/extend.texi (weak pragma): Drop claim that it must
15802 appear before definition.
15803 * varasm.c (merge_weak, declare_weak): Only sanity check
15804 that DECL is not output at a time it is declared weak.
15806 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15808 * machmode.def: Fixed comments.
15810 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15812 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15814 2011-01-24 Paul Koning <ni1d@arrl.net>
15816 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15819 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15822 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15823 (block_info): Add scanned and prev.
15824 (move_or_delete_vzeroupper_2): Return if the basic block
15825 has been scanned and the upper 128bit state is unchanged
15826 from the last scan.
15827 (move_or_delete_vzeroupper_1): Return true if the exit
15829 (move_or_delete_vzeroupper): Visit basic blocks using the
15830 work-list based algorithm based on vt_find_locations in
15833 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15835 2011-01-24 Nick Clifton <nickc@redhat.com>
15837 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15838 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15839 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15840 then define __v850e1__.
15841 * doc/invoke.texi: Document -mv850es.
15843 2011-01-24 Richard Henderson <rth@redhat.com>
15845 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15846 compound unordered comparisons.
15847 * config/rx/rx.c (rx_split_fp_compare): Remove.
15848 * config/rx/rx-protos.h: Update.
15849 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15850 (cbranchsf4): Don't call rx_split_fp_compare.
15851 (*cbranchsf4): Use rx_split_cbranch.
15852 (*cmpsf): Don't accept "i" constraint.
15853 (*conditional_branch): Only valid after reload.
15854 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15856 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15859 * config/rs6000/altivec.md (vector constant splitters): Add
15860 support for creating vector single precision constants if -mvsx is
15861 used and we would create the constant using Altivec primitives.
15863 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15864 Richard Sandiford <rdsandiford@googlemail.com>
15866 PR rtl-optimization/47166
15867 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15868 mechanism for PRE_MODIFY and POST_MODIFY.
15869 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15872 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15874 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15876 2011-01-22 Jan Hubicka <jh@suse.cz>
15879 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15881 2011-01-22 Jan Hubicka <jh@suse.cz>
15883 PR tree-optimization/43884
15885 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15886 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15888 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15890 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15891 * config/s390/s390.c (s390_register_move_cost,
15892 s390_memory_move_cost): New.
15893 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15895 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15897 PR middle-end/47401
15898 * except.c (sjlj_assign_call_site_values): Move setting the
15899 crtl->uses_eh_lsda flag to ...
15900 (sjlj_mark_call_sites): ... here.
15901 (sjlj_emit_function_enter): Support NULL dispatch label.
15902 (sjlj_build_landing_pads): In a function with no landing pads
15903 that still has must-not-throw regions, generate code to register
15904 a personality function with empty LSDA.
15906 2011-01-21 Richard Henderson <rth@redhat.com>
15908 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15910 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15912 * compare-elim.c: New file.
15913 * Makefile.in (OBJS-common): Add it.
15914 (compare-elim.o): New.
15915 * common.opt (fcompare-elim): New.
15916 * opts.c (default_options_table): Add OPT_fcompare_elim.
15917 * tree-pass.h (pass_compare_elim_after_reload): New.
15918 * passes.c (init_optimization_passes): Add it.
15919 * recog.h: Protect against re-inclusion.
15920 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15921 * doc/invoke.texi (-fcompare-elim): Document it.
15922 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15923 * doc/tm.texi: Rebuild.
15925 2011-01-22 Nick Clifton <nickc@redhat.com>
15927 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15928 rx_split_fp_compare.
15930 2011-01-22 Nick Clifton <nickc@redhat.com>
15932 * config/rx/rx.md (UNSPEC_CONST): New.
15933 (deallocate_and_return): Wrap the amount popped off the stack in
15934 an UNSPEC_CONST in order to stop it being rejected by
15935 -mmax-constant-size.
15936 (pop_and_return): Add a "(return)" rtx.
15937 (call): Drop the immediate operand.
15938 (call_internal): Likewise.
15939 (call_value): Likewise.
15940 (call_value_internal): Likewise.
15941 (sibcall_internal): Likewise.
15942 (sibcall_value_internal): Likewise.
15943 (sibcall): Likewise. Generate an explicit call using
15945 (sibcall_value): Likewise.
15946 (mov<>): FAIL if a constant operand is not legitimate.
15947 (addsi3_unpsec): New pattern.
15949 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15950 (ok_for_max_constant): New function.
15951 (gen_safe_add): New function.
15952 (rx_expand_prologue): Use gen_safe_add.
15953 (rx_expand_epilogue): Likewise.
15954 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15957 2011-01-21 Jeff Law <law@redhat.com>
15959 PR tree-optimization/47053
15960 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15961 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15962 statements are deleted.
15963 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15964 is nonempty, then purge dead edges and cleanup the CFG.
15966 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15969 Temporarily revert:
15970 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15972 * tree-dfa.c (create_var_ann): Mark variable as used.
15974 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15976 PR middle-end/45566
15977 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15978 notes from other section in hot/cold partitioning even if
15979 last_action is -3. Increment call_site_base.
15981 PR rtl-optimization/47366
15982 * fwprop.c (forward_propagate_into): Return bool. If
15983 any changes are made, -fnon-call-exceptions is used and
15984 REG_EH_REGION note is present, call purge_dead_edges
15985 and return true if it purged anything.
15986 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15987 any EH edges were purged.
15989 2011-01-21 Jeff Law <law@redhat.com>
15991 PR rtl-optimization/41619
15992 * caller-save.c (setup_save_areas): Break out code to determine
15993 which hard regs are live across calls by examining the reload chains
15994 so that it is always used.
15995 Eliminate code which checked REG_N_CALLS_CROSSED.
15997 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15999 PR tree-optimization/47355
16000 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16001 NOP has non-debug uses beyond PHIs in new_bb.
16003 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16006 * cfgexpand.c (account_used_vars_for_block): Only account vars
16007 that are annotated as used.
16008 (estimated_stack_frame_size): Don't set TREE_USED.
16009 * tree-dfa.c (create_var_ann): Mark variable as used.
16011 2011-01-21 Richard Guenther <rguenther@suse.de>
16013 PR middle-end/47395
16014 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16016 2011-01-21 Richard Guenther <rguenther@suse.de>
16018 PR tree-optimization/47365
16019 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16020 (vn_reference_lookup_pieces): Adjust.
16021 (vn_reference_lookup): Likewise.
16022 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16023 (vn_reference_lookup_3): Only look through kills if in
16024 VN_WALKREWRITE mode.
16025 (vn_reference_lookup_pieces): Adjust.
16026 (vn_reference_lookup): Likewise.
16027 (visit_reference_op_load): Likewise.
16028 (visit_reference_op_store): Likewise.
16029 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16030 (compute_avail): Likewise.
16031 (eliminate): Likewise.
16033 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16035 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16036 DECL_IGNORED_P non-reg vars if they are used.
16038 PR tree-optimization/47391
16039 * varpool.c (const_value_known_p): Return false if
16042 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16045 * config/i386/i386.c (ix86_local_alignment): Handle
16046 case for va_list_type_node is nil.
16047 (ix86_canonical_va_list_type): Likewise.
16049 2011-01-21 Alan Modra <amodra@gmail.com>
16051 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16052 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16054 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16056 * config/arm/arm.md (define_attr type): Rename f_load
16057 and f_store to f_fpa_load and f_fpa_store. Update.
16058 (write_conflict): Deal with rename fallout.
16059 (*push_fp_multi): Likewise.
16060 * config/arm/fpa.md (f_load): Use f_fpa_load.
16061 (f_store): Use f_fpa_store.
16062 (*movsf_fpa): Likewise.
16063 (*movdf_fpa): Likewise.
16064 (*movxf_fpa): Likewise.
16065 (*thumb2_movsf_fpa): Likewise.
16066 (*thumb2_movdf_fpa): Likewise.
16067 (*thumb2_movxf_fpa): Likewise.
16068 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16069 f_loadd and f_stored.
16070 (*thumb2_movdi_vfp): Likewise.
16071 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16072 (*thumb2_movsi_vfp): Likewise.
16073 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16074 Use f_loads instead of f_load.
16075 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16077 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16079 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16080 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16081 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16082 (xtensa_mode_dependent_address_p): New function.
16083 (constantpool_address_p): Make static. Change return type to bool.
16084 Change argument type to const_rtx. Use CONST_INT_P predicate.
16086 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16089 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16091 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16094 * cfgexpand.c (expand_debug_expr): Instead of generating
16095 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16098 2011-01-20 Richard Guenther <rguenther@suse.de>
16100 PR middle-end/47370
16101 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16102 the pointer operand of MEM_REFs.
16104 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16106 PR tree-optimization/46130
16107 * ipa-split.c (consider_split): If return_bb contains non-virtual
16108 PHIs other than for retval or if split_function would not adjust it,
16111 2011-01-20 Richard Guenther <rguenther@suse.de>
16113 PR tree-optimization/47167
16114 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16115 Revert previous change, only avoid enumeral type changes.
16117 2011-01-19 Mike Stump <mikestump@comcast.net>
16119 * doc/tm.texi.in (BRANCH_COST): Englishify.
16120 * doc/tm.texi (BRANCH_COST): Likewise.
16122 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16125 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16126 (gen_scheduled_generic_parms_dies): New functions.
16127 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16128 generation for the end of CU compilation.
16129 (dwarf2out_finish): Generate template parameters DIEs here.
16131 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16134 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16135 debug bind stmt on merge edges.
16137 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16141 * function.c (instantiate_expr): Instantiate incoming rtl of
16142 implicit arguments, and recurse on VALUE_EXPRs.
16143 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16144 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16146 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16148 * c-parser.c (c_parser_for_statement): Initialize
16149 collection_expression.
16151 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16153 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16155 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16157 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16158 (LINK_SHLIB_SPEC): Don't use %(link_path).
16159 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16161 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16163 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16164 (NO_SHARED_LIB_SUPPORT): Remove.
16165 (LINK_SHLIB_SPEC): Remove one conditional definition.
16167 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16169 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16171 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16172 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16173 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16174 %{call_shared} and conditionals on these options not being passed.
16175 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16178 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16180 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16183 * ipa-split.c: Spelling fixes.
16185 2011-01-19 Richard Henderson <rth@redhat.com>
16187 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16188 (*mulsi3): Likewise.
16190 * longlong.h [__mn10300__] (count_leading_zeros): New.
16191 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16192 [__mn10300__] (add_ssaaaa, subddmmss): New.
16193 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16194 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16196 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16198 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16200 2011-01-19 Richard Henderson <rth@redhat.com>
16202 * config/mn10300/mn10300.md (addsi3_flags): New.
16203 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16204 (subsi3_flags, subc_internal, subdi3): New.
16205 (subdi3_internal, *subdi3_degenerate): New.
16206 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16208 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16209 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16210 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16211 * config/mn10300/mn10300-protos.h: Update.
16212 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16213 (return_ret): Likewise. Rename from return_internal_regs.
16214 (return_internal): Remove.
16216 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16217 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16218 (mn10300_legitimate_constant_p): Likewise.
16219 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16220 (mn10300_frame_size): New.
16221 (mn10300_expand_prologue): Use it.
16222 (mn10300_expand_epilogue): Likewise.
16223 (mn10300_initial_offset): Likewise.
16224 * config/mn10300/mn10300-protos.h: Update.
16225 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16226 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16227 (prologue, epilogue, return_internal): Tidy output code.
16228 (mn10300_store_multiple_operation, return): Likewise.
16229 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16230 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16231 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16232 (load_pic, am33_load_pic): New.
16233 (mn10300_load_pic0, mn10300_load_pic1): New.
16235 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16236 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16237 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16238 (cc_flags_for_mode, cc_flags_for_code): New.
16239 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16240 overflow flag is not valid. Validate that the flags we need
16241 for the comparison are valid.
16242 (mn10300_output_cmp): Remove.
16243 (mn10300_output_add): New.
16244 (mn10300_select_cc_mode): Use cc_flags_for_code.
16245 (mn10300_split_cbranch): New.
16246 (mn10300_match_ccmode): New.
16247 (mn10300_split_and_operand_count): New.
16248 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16250 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16251 (addsi3): ... here. Use mn10300_output_add.
16252 (*addsi3_flags): New.
16253 (*am33_subsi3, *mn10300_subsi3): Merge...
16254 (subsi3): ... here. Use attribute isa.
16255 (*subsi3_flags): New.
16256 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16258 (*am33_andsi3, *mn10300_andsi3): Merge...
16259 (andsi3): ... here.
16260 (*andsi3_flags): New.
16261 (andsi3 splitters): New.
16262 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16263 (iorsi3): ... here.
16264 (*iorsi3_flags): New.
16265 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16266 (xorsi3): ... here.
16267 (*xorsi3_flags): New.
16268 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16269 (one_cmplsi2): ... here.
16270 (*one_cmplsi2_flags): New.
16271 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16272 instead of "dax" in constraints. Use mn10300_split_cbranch.
16273 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16274 use matching constraints to eliminate a self-comparison.
16275 (*integer_conditional_branch): Rename from integer_conditional_branch.
16276 Use int_mode_flags to match CC_REG.
16277 (*cbranchsi4_btst, *btstsi): New.
16278 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16279 mn10300_split_cbranch.
16280 (*am33_cmpsf): Rename from am33_cmpsf.
16281 (*float_conditional_branch): Rename from float_conditional_branch.
16282 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16283 (zero_extendqisi2): ... here.
16284 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16285 (zero_extendhisi2): ... here.
16286 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16287 (extendqisi2): ... here.
16288 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16289 (extendhisi2): ... here.
16290 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16291 (ashlsi3): ... here.
16292 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16293 (lshrsi3): ... here.
16294 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16295 (ashrsi3): ... here.
16296 (consecutive add peephole): Remove.
16297 * config/mn10300/predicates.md (label_ref_operand): New.
16298 (int_mode_flags): New.
16299 (CCZN_comparison_operator): New.
16301 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16302 (throughput_42_latency_43): New reservation.
16303 (mulsidi3, umulsidi3): New expanders.
16304 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16305 the MDR register to allocation; separately allocate the low and
16306 high parts of the DImode result.
16307 (umulsidi3_internal): Similarly.
16308 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16309 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16310 (udivsi3, umodsi3): Remove.
16311 (udivmodsi4, divmodsi4): New expanders.
16312 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16313 (*divmodsi4): Simiarly.
16314 (ext_internal): New.
16316 * config/mn10300/constraints.md ("z"): New constraint.
16317 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16318 (FIXED_REGISTERS): Don't fix MDR.
16319 (CALL_USED_REGSITERS): Reformat nicely.
16320 (REG_ALLOC_ORDER): Add MDR.
16321 (enum regclass): Add MDR_REGS.
16322 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16323 (IRA_COVER_CLASSES): Add MDR_REGS.
16324 (REGNO_REG_CLASS): Handle MDR_REG.
16325 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16326 (mn10300_register_move_cost): Likewise.
16327 * config/mn10300/mn10300.md (MDR_REG): New.
16328 (*movsi_internal): Handle moves to/from MDR_REGS.
16330 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16332 (mn10300_secondary_reload): Tidy combination reload classes.
16333 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16334 addresses for AM33. Allow symbolic offsets for reg+imm.
16335 (mn10300_regno_in_class_p): New.
16336 (mn10300_legitimize_reload_address): New.
16337 * config/mn10300/mn10300.h (enum reg_class): Remove
16338 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16339 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16340 SP_OR_GENERAL_REGS.
16341 (REG_CLASS_NAMES): Update to match.
16342 (REG_CLASS_CONTENTS): Likewise.
16343 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16344 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16345 (REGNO_IN_RANGE_P): Remove.
16346 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16347 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16348 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16349 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16350 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16351 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16352 (REGNO_GENERAL_P): New.
16353 (HAVE_POST_MODIFY_DISP): New.
16354 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16355 (LEGITIMIZE_RELOAD_ADDRESS): New.
16356 * config/mn10300/mn10300-protos.h: Update.
16358 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16359 DATA_REGS for AM33 stack-pointer destination.
16360 (mn10300_preferred_output_reload_class): Likewise.
16361 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16362 into a form appropriate for ...
16363 (TARGET_SECONDARY_RELOAD): New.
16364 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16365 * config/mn10300/mn10300-protos.h: Update.
16366 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16367 reload_insi; use the "A" constraint for the scratch; handle AM33
16368 moves of sp to non-address registers.
16370 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16371 (*movqi_internal): ... here.
16372 (*am33_movhi, *mn10300_movhi): Merge into...
16373 (*movhi_internal): ... here.
16374 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16375 as the source/destination of moves from/to SP.
16376 (movsf): Only allow for AM33-2.
16377 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16378 any integer constant constraint. Only allow for AM33-2. Tidy
16379 all of the alternative outputs.
16380 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16381 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16383 (udivsi3, umodsi3): New patterns for MN103 only.
16385 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16387 * doc/tm.texi.in: Spell out that a lack of register class unions
16389 * doc/tm.texi: Regenerate.
16391 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16393 PR rtl-optimization/47337
16394 * dce.c (check_argument_store): New function.
16395 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16397 PR tree-optimization/47290
16398 * tree-eh.c (infinite_empty_loop_p): New function.
16399 (cleanup_empty_eh): Use it.
16401 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16404 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16405 (a64_expand_widen_sum): Ditto.
16406 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16407 (vec_extract_evenodd_help): Ditto.
16408 (vec_extract_evenv4hi): Ditto.
16409 (vec_extract_oddv4hi): Ditto.
16410 (vec_extract_evenv2si): Ditto.
16411 (vec_extract_oddv2si): Ditto.
16412 (vec_extract_evenv2sf): Ditto.
16413 (vec_extract_oddv2sf): Ditto.
16414 (vec_pack_trunc_v4hi: Ditto.
16415 (vec_pack_trunc_v2si): Ditto.
16416 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16417 (vec_interleave_highv8qi): Ditto.
16419 (vec_extract_oddv8qi): Ditto.
16420 (vec_interleave_lowv4hi): Ditto.
16421 (vec_interleave_highv4hi): Ditto.
16422 (vec_interleave_lowv2si): Ditto.
16423 (vec_interleave_highv2si): Ditto.
16425 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16427 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16428 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16429 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16430 (pa_c_mode_for_suffix): New.
16431 (TARGET_EXPAND_BUILTIN): Define.
16432 (TARGET_C_MODE_FOR_SUFFIX): Define.
16433 (pa_builtins): Define.
16434 (pa_init_builtins): Register __float128 type and init new support
16436 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16437 * config/pa/quadlib.c (_U_Qfcopysign): New.
16439 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16441 PR middle-end/46894
16442 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16443 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16446 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16448 PR tree-optimization/47179
16449 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16450 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16452 2011-01-18 Richard Guenther <rguenther@suse.de>
16454 PR rtl-optimization/47216
16455 * emit-rtl.c: Include tree-flow.h.
16456 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16457 of replicating it with different semantics.
16458 * Makefile.in (emit-rtl.o): Adjust.
16460 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16462 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16463 (cortex_a9_dp): Handle neon types correctly.
16465 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16467 PR rtl-optimization/47299
16468 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16469 subtarget. Use normal multiplication if both operands are constants.
16470 * expmed.c (expand_widening_mult): Don't try to optimize constant
16471 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16474 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16476 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16477 spacing after 'e.g.', typos, comma, hyphenation.
16479 2011-01-17 Richard Henderson <rth@redhat.com>
16481 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16482 (rx_restricted_mem_operand): New.
16483 (rx_shift_operand): Use register_operand.
16484 (rx_source_operand, rx_compare_operand): Likewise.
16485 * config/rx/rx.md (addsi3_flags): New expander.
16486 (adddi3): Rewrite as expander.
16487 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16488 (subsi3_flags): New expander.
16489 (subdi3): Rewrite as expander.
16490 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16492 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16493 (rx_init_builtins): Remove sat builtin.
16494 (rx_expand_builtin): Likewise.
16495 * config/rx/rx.md (ssaddsi3): New.
16496 (*sat): Rename from sat. Represent the CC_REG input.
16498 * config/rx/predicates.md (rshift_operator): New.
16499 * config/rx/rx.c (rx_expand_insv): Remove.
16500 * config/rx/rx-protos.h: Update.
16501 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16502 operand to the canonical position.
16503 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16504 (*bitclr, *bitclr_in_memory): Similarly.
16505 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16506 (insv): Retain the zero_extract in the expansion.
16508 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16509 (bswaphi2, bitinvert, revw): Likewise.
16511 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16512 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16513 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16514 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16515 (bitset, bitset_in_memory): Likewise.
16516 (bitinvert, bitinvert_in_memory): Likewise.
16517 (bitclr, bitclr_in_memory): Likewise.
16518 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16519 (rx_strend, rx_cmpstrn): Likewise.
16520 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16521 (bitop peep2 patterns): Remove.
16523 * config/rx/rx.c (rx_match_ccmode): New.
16524 * config/rx/rx-protos.h: Update.
16525 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16526 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16527 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16528 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16529 (fix_truncsfsi2, floatsisf2): Likewise.
16530 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16531 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16532 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16533 (*subsi3_flags, *xorsi3_flags): New.
16535 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16537 * config/rx/rx.c (rx_print_operand): Remove workaround for
16538 unsplit comparison operations.
16540 * config/rx/rx.md (movsicc): Split after reload.
16541 (*movsicc): Merge *movsieq and *movsine via match_operator.
16542 (*stcc): New pattern.
16544 * config/rx/rx.c (rx_float_compare_mode): Remove.
16545 * config/rx/rx.h (rx_float_compare_mode): Remove.
16546 * config/rx/rx.md (cstoresi4): Split after reload.
16547 (*sccc): New pattern.
16549 * config/rx/predicates.md (label_ref_operand): New.
16550 (rx_z_comparison_operator): New.
16551 (rx_zs_comparison_operator): New.
16552 (rx_fp_comparison_operator): New.
16553 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16554 Validate that the flags are set properly for the comparison.
16555 (rx_gen_cond_branch_template): Remove.
16556 (rx_cc_modes_compatible): Remove.
16557 (mode_from_flags): New.
16558 (flags_from_code): Rename from flags_needed_for_conditional.
16559 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16560 (rx_select_cc_mode): Likewise.
16561 (rx_split_fp_compare): New.
16562 (rx_split_cbranch): New.
16563 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16564 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16565 (*cbranchsf4): Similarly.
16566 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16567 match_operator and rx_split_cbranch.
16568 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16569 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16570 (*cmpsi): Rename from cmpsi.
16571 (*tstsi): Rename from tstsi.
16572 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16573 (*conditional_branch): Rename from conditional_branch.
16574 (*reveresed_conditional_branch): Remove.
16575 (b<code>): Remove expander.
16576 * config/rx/rx-protos.h: Update.
16578 * config/rx/rx.c (rx_compare_redundant): Remove.
16579 * config/rx/rx.md (cmpsi): Don't use it.
16580 * config/rx/rx-protos.h: Update.
16582 * config/rx/rx-modes.def (CC_F): New mode.
16583 * config/rx/rx.c (rx_select_cc_mode): New.
16584 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16585 * config/rx/rx-protos.h: Update.
16587 2011-01-17 Richard Henderson <rth@redhat.com>
16589 * except.c (dump_eh_tree): Fix stray ; after for statement.
16591 2011-01-17 Richard Guenther <rguenther@suse.de>
16593 PR tree-optimization/47313
16594 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16595 handling before copying the body. Properly deal with
16596 by-reference result in SSA form.
16598 2011-01-17 Ian Lance Taylor <iant@google.com>
16601 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16602 (struct_value_alias_set): Don't define.
16603 (sparc_option_override): Don't set sparc_sr_alias_set and
16604 struct_value_alias_set.
16605 (save_or_restore_regs): Use gen_frame_mem rather than calling
16607 (sparc_struct_value_rtx): Likewise.
16609 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16612 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16613 (_mm_maskstore_pd): Likewise.
16614 (_mm_maskload_ps): Likewise.
16615 (_mm_maskstore_ps): Likewise.
16616 (_mm256_maskload_pd): Change mask to __m256i.
16617 (_mm256_maskstore_pd): Likewise.
16618 (_mm256_maskload_ps): Likewise.
16619 (_mm256_maskstore_ps): Likewise.
16621 * config/i386/i386-builtin-types.def: Updated.
16622 (ix86_expand_special_args_builtin): Likewise.
16624 * config/i386/i386.c (bdesc_special_args): Update
16625 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16626 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16627 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16628 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16630 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16631 Use <avxpermvecmode> on mask register.
16632 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16634 2011-01-17 Olivier Hainque <hainque@adacore.com>
16635 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16636 Eric Botcazou <ebotcazou@adacore.com>
16639 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16640 if <= USHRT_MAX in 32-bit mode.
16642 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16644 * doc/install.texi (Configuration, Specific): Wrap long
16645 lines in examples. Allow line wrapping in long options
16646 and URLs where beneficial for PDF output.
16648 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16650 * config/mips/mips.c (mips_classify_symbol): Don't return
16651 SYMBOL_PC_RELATIVE for nonlocal labels.
16653 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16655 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16657 2011-01-15 Jan Hubicka <jh@suse.cz>
16659 PR tree-optimization/47276
16660 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16661 declarations as needed.
16663 2011-01-15 Martin Jambor <mjambor@suse.cz>
16665 * common.opt (fdevirtualize): New flag.
16666 * doc/invoke.texi (Option Summary): Document it.
16667 * opts.c (default_options_table): Add devirtualize flag.
16668 * ipa-prop.c (detect_type_change): Return immediately if
16669 devirtualize flag is not set.
16670 (detect_type_change_ssa): Likewise.
16671 (compute_known_type_jump_func): Likewise.
16672 (ipa_analyze_virtual_call_uses): Likewise.
16674 2011-01-14 Martin Jambor <mjambor@suse.cz>
16676 PR tree-optimization/45934
16677 PR tree-optimization/46302
16678 * ipa-prop.c (type_change_info): New type.
16679 (stmt_may_be_vtbl_ptr_store): New function.
16680 (check_stmt_for_type_change): Likewise.
16681 (detect_type_change): Likewise.
16682 (detect_type_change_ssa): Likewise.
16683 (compute_complex_assign_jump_func): Check for dynamic type change.
16684 (compute_complex_ancestor_jump_func): Likewise.
16685 (compute_known_type_jump_func): Likewise.
16686 (compute_scalar_jump_functions): Likewise.
16687 (ipa_analyze_virtual_call_uses): Likewise.
16688 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16690 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16692 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16693 * config/i386/i386.opt (msse5): New Alias.
16695 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16697 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16698 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16699 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16700 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16702 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16704 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16706 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16707 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16708 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16709 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16711 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16713 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16715 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16717 2011-01-14 Mike Stump <mikestump@comcast.net>
16719 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16720 * config/fr30/fr30.md: Likweise
16721 (movsi_push): Likewise.
16722 (movsi_pop): Likewise.
16723 (enter_func): Likewise.
16724 * config/moxie/moxie.md (movsi_push): Likewise.
16725 (movsi_pop): Likewise.
16727 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16729 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16730 %{no_archive} %{exact_version}.
16731 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16732 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16733 %{no_archive} %{exact_version}.
16734 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16735 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16736 * config/mips/vxworks.h: Likewise.
16738 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16740 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16742 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16744 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16745 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16747 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16749 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16752 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16754 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16756 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16757 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16759 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16760 Don't handle -shlib.
16762 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16764 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16765 (CC1_SPEC): Don't handle -profile.
16767 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16769 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16770 * config/mips/mips.h (CC1_SPEC): Likewise.
16772 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16774 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16775 * config/mips/mips.h (CC1_SPEC): Likewise.
16777 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16779 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16780 * config/m32r/linux.h (LINK_SPEC): Likewise.
16781 * config/mips/linux.h (LINK_SPEC): Likewise.
16782 * config/mips/linux64.h (LINK_SPEC): Likewise.
16783 * config/sparc/linux.h (LINK_SPEC): Likewise.
16784 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16785 LINK_SPEC): Likewise.
16786 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16788 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16790 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16792 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16794 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16796 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16797 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16799 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16801 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16803 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16805 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16806 supports -Bstatic/-Bdynamic.
16807 * configure: Regenerate.
16809 2011-01-14 Jan Hubicka <jh@suse.cz>
16810 Jack Howarth <howarth@bromo.med.uc.edu>
16813 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16814 when checking debug_info_level. Test write_symbols instead of
16815 debug_hooks->var_location when setting flag_var_tracking_uninit.
16817 2011-01-14 Richard Guenther <rguenther@suse.de>
16819 PR tree-optimization/47179
16820 * target.def (ref_may_alias_errno): New target hook.
16821 * targhooks.h (default_ref_may_alias_errno): Declare.
16822 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16823 (default_ref_may_alias_errno): New function.
16824 * target.h (struct ao_ref_s): Declare.
16825 * tree-ssa-alias.c: Include target.h.
16826 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16827 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16828 (targhooks.o): Likewise.
16829 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16830 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16832 2011-01-14 Richard Guenther <rguenther@suse.de>
16834 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16836 2011-01-14 Richard Guenther <rguenther@suse.de>
16838 PR tree-optimization/47280
16839 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16840 return CFG changes.
16841 (tree_ssa_forward_propagate_single_use_vars): Deal with
16842 CFG changes from associate_plusminus.
16844 2011-01-14 Richard Guenther <rguenther@suse.de>
16846 PR middle-end/47281
16848 2011-01-11 Richard Guenther <rguenther@suse.de>
16850 PR tree-optimization/46076
16851 * tree-ssa.c (useless_type_conversion_p): Conversions from
16852 unprototyped to empty argument list function types are useless.
16854 2011-01-14 Richard Guenther <rguenther@suse.de>
16856 PR tree-optimization/47286
16857 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16859 2011-01-14 Martin Jambor <mjambor@suse.cz>
16861 PR middle-end/46823
16862 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16864 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16866 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16867 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16868 * config/xtensa/xtensa.c (xtensa_libcall_value,
16869 xtensa_function_value_regno_p): New functions.
16870 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16872 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16875 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16877 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16878 New function prototype.
16879 * config/i386/winnt.c (i386_pe_assemble_visibility):
16880 Warn only if attribute was specified by user.
16882 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16885 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16887 (floatunsdidf2_fcfidu): Ditto.
16889 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16891 * config/s390/s390.c (print_operand_address): Replace 'error' with
16892 'output_operand_lossage'.
16893 (print_operand): Likewise.
16895 2011-01-13 Jeff Law <law@redhat.com>
16897 PR rtl-optimization/39077
16898 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16899 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16900 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16901 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16902 * gcse.c (prune_insertions_deletions): New function.
16903 (compute_pre_data): Use it.
16905 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16908 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16910 (prune_unused_types_mark): Use it.
16912 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16914 PR rtl-optimization/45352
16915 * sel-sched.c: Update copyright years.
16916 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16917 in the advancing loop when we have issued issue_rate insns.
16919 2011-01-12 Richard Henderson <rth@redhat.com>
16921 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16922 (TARGET_MD_ASM_CLOBBERS): New.
16924 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16925 (TARGET_DELEGITIMIZE_ADDRESS): New.
16927 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16928 (clzsi2, *bsch): New patterns.
16930 * config/mn10300/mn10300.md (INT): New mode iterator.
16931 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16933 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16934 flag_split_wide_types.
16936 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16937 (mn10300_trampoline_init): Rewrite without a template, an immediate
16938 load and a direct branch.
16939 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16941 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16943 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16944 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16945 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16946 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16948 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16951 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16954 2011-01-12 Jan Hubicka <jh@suse.cz>
16957 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16958 (PLUGIN_COND_CLOSE): New macro.
16959 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16961 2011-01-12 Richard Guenther <rguenther@suse.de>
16964 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16965 register variables in a MEM_REF.
16967 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16969 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16970 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16971 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16972 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16973 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16974 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16975 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16976 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16977 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16978 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16979 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16980 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16981 * config/gnu-user.h: New. Copied from linux.h.
16982 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16983 GNU_USER_TARGET_STARTFILE_SPEC.
16984 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16985 GNU_USER_TARGET_ENDFILE_SPEC.
16986 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16987 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16988 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16989 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16990 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16991 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16992 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16993 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16994 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16995 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16996 * config/arm/linux-eabi.h (CC1_SPEC): Use
16997 GNU_USER_TARGET_CC1_SPEC.
16998 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16999 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17000 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17001 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17002 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17003 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17004 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17005 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17007 2011-01-12 Richard Guenther <rguenther@suse.de>
17010 * doc/invoke.texi (ffast-math): Document it is turned on
17013 2011-01-12 Jan Hubicka <jh@suse.cz>
17015 PR tree-optimization/47233
17016 * opts.c (common_handle_option): Disable ipa-reference with profile
17019 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17021 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17024 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17026 * c-parser.c (c_lex_one_token): Updated and reindented some
17027 comments. No changes in code.
17029 2011-01-11 Ian Lance Taylor <iant@google.com>
17031 * godump.c (go_output_var): Don't output the variable if there is
17032 already a type with the same name.
17034 2011-01-11 Ian Lance Taylor <iant@google.com>
17036 * godump.c (go_format_type): Don't generate float80.
17038 2011-01-11 Richard Henderson <rth@redhat.com>
17040 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17041 declaration. Rewrite for both speed and size.
17042 (mn10300_address_cost_1): Remove.
17043 (mn10300_register_move_cost): New.
17044 (mn10300_memory_move_cost): New.
17045 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17046 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17047 extensions, shifts, BSWAP, CLZ.
17048 (mn10300_wide_const_load_uses_clr): Remove.
17049 (TARGET_REGISTER_MOVE_COST): New.
17050 (TARGET_MEMORY_MOVE_COST): New.
17051 * config/mn10300/mn10300-protos.h: Update.
17052 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17054 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17055 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17056 * config/mn10300/mn10300-protos.h: Update.
17057 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17058 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17059 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17060 (*test_int_bitfield, *test_byte_bitfield): Remove.
17061 (*bit_test, *subreg_bit_test): Remove.
17062 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17064 * config/mn10300/constraints.md ("c"): Rename from "A".
17065 ("A", "D"): New constraint letters.
17066 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17067 (fmssf4, fnmasf4, fnmssf4): Likewise.
17069 * config/mn10300/mn10300.md (isa): New attribute.
17070 (enabled): New attribute.
17072 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17073 (abssf2, negsf2): Define only for hardware fp.
17074 (sqrtsf2): Reformat.
17075 (addsf3, subsf3, mulsf3): Merge expander and insn.
17077 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17078 (DEBUGGER_AUTO_OFFSET): Remove.
17079 (DEBUGGER_ARG_OFFSET): Remove.
17081 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17082 Emit register stores with the same offsets as the hardware.
17083 (mn10300_store_multiple_operation): Don't check that the register
17084 save offsets are monotonic.
17085 * config/mn10300/mn10300-protos.h: Update.
17087 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17089 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17090 in terms of the value on the stack, not the MDR register.
17092 2011-01-11 Jan Hubicka <jh@suse.cz>
17096 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17097 (symbol_alias_set_destroy, symbol_alias_set_contains,
17098 propagate_aliases_backward): Declare.
17099 * lto-streamer-out.c (struct sets): New sturcture.
17100 (trivally_defined_alias): New function.
17101 (output_alias_pair_p): Rewrite.
17102 (output_unreferenced_globals): Fix output of alias pairs.
17103 (produce_symtab): Likewise.
17104 * ipa.c (function_and_variable_visibility): Set weak alias destination
17106 * varasm.c (symbol_alias_set_t): Remove.
17107 (symbol_alias_set_destroy): Export.
17108 (propagate_aliases_forward, propagate_aliases_backward): New functions
17110 (compute_visible_aliases): ... this one; remove.
17111 (trivially_visible_alias): New
17112 (trivially_defined_alias): New.
17113 (remove_unreachable_alias_pairs): Rewrite.
17114 (finish_aliases_1): Reorganize code checking if alias is defined.
17115 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17118 2011-01-11 Richard Guenther <rguenther@suse.de>
17120 PR tree-optimization/46076
17121 * tree-ssa.c (useless_type_conversion_p): Conversions from
17122 unprototyped to empty argument list function types are useless.
17124 2011-01-11 Richard Guenther <rguenther@suse.de>
17126 PR middle-end/45235
17127 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17128 volatile MEMs as MEM_READONLY_P.
17130 2011-01-11 Richard Guenther <rguenther@suse.de>
17132 PR tree-optimization/47239
17133 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17135 2011-01-11 Jeff Law <law@redhat.com>
17137 PR tree-optimization/47086
17138 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17139 IVs from statements that might throw.
17141 2011-01-10 Jan Hubicka <jh@suse.cz>
17144 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17146 2011-01-10 Jan Hubicka <jh@suse.cz>
17149 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17150 when correcting profile.
17152 2011-01-10 Jan Hubicka <jh@suse.cz>
17155 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17156 DECL_FINI_PRIORITY.
17157 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17158 Restore DECL_FINI_PRIORITY.
17160 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17162 * doc/gimple.texi: Fix quoting of multi-word return values in
17163 @deftypefn statements. Ensure presence of return value. Wrap
17164 overlong @deftypefn lines.
17165 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17166 descriptions of removed functions.
17167 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17168 of multi-word return value in @deftypefn statement.
17170 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17172 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17173 (Conditional Expressions, Logical Operators)
17174 (Statement and operand traversals): Do not indent smallexample
17175 code. Fix duplicate function argument in example.
17177 2011-01-10 Jeff Law <law@redhat.com>
17179 PR tree-optimization/47141
17180 * ipa-split.c (split_function): Handle case where we are
17181 returning a value and the return block has a virtual operand phi.
17183 2011-01-10 Jan Hubicka <jh@suse.cz>
17185 PR tree-optimization/47234
17186 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17187 (pass_feedback_split_functions): Declare.
17188 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17190 * ipa-split.c (gate_split_functions): Update comments; disable
17191 split-functions for profile_arc_flag and branch_probabilities.
17192 (gate_feedback_split_functions): New function.
17193 (execute_feedback_split_functions): New function.
17194 (pass_feedback_split_functions): New global var.
17196 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17199 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17200 calling gimple_call_set_cannot_inline.
17202 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17204 * config/darwin-sections.def: Remove unused section.
17206 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17209 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17211 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17214 * c-parser.c (c_parser_declaration_or_fndef): Improved
17217 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17219 * config/i386/winnt.c (i386_pe_start_function): Make sure
17220 to switch back to function's section.
17222 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17226 * plugin.c: Move include of dlfcn.h from here...
17227 * system.h: ... to here.
17229 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17231 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17233 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17234 two extra empty pages in PDF output.
17236 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17239 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17240 for error recovery purposes behave as if it was not specified so
17241 that the default type is usd.
17243 2011-01-07 Jan Hubicka <jh@suse.cz>
17245 PR tree-optmization/46469
17246 * ipa.c (function_and_variable_visibility): Clear needed flags on
17247 nodes with external decls; handle weakrefs merging correctly.
17249 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17251 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17254 2011-01-07 Jan Hubicka <jh@suse.cz>
17256 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17257 and no longer claim that gold is required for linker plugin.
17258 * configure: Regenerate.
17259 * gcc.c (PLUGIN_COND): New macro.
17260 (LINK_COMMAND_SPEC): Use it.
17261 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17262 * config.in (HAVE_LTO_PLUGIN): New.
17263 * configure.ac (--with-lto-plugin): New parameter; autodetect
17266 2011-01-07 Jan Hubicka <jh@suse.cz>
17268 PR tree-optimization/46367
17269 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17270 when we can update original.
17271 (cgraph_mark_inline_edge): Sanity check.
17272 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17274 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17276 * config/spu/spu.h (ASM_COMMENT_START): Define.
17278 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17281 * gcc.c (%>S): New.
17282 (SWITCH_KEEP_FOR_GCC): Likewise.
17283 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17284 (do_spec_1): Handle "%>".
17286 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17288 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17291 * config/i386/i386.c (ix86_delegitimize_address): If
17292 simplify_gen_subreg fails, return orig_x.
17295 * value-prof.c (gimple_stringop_fixed_value): Handle
17296 lhs of the call properly.
17298 2011-01-07 Jan Hubicka <jh@suse.cz>
17301 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17303 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17305 * target.def (function_switched_text_sections): New hook.
17306 * doc/tm.texi: Regenerated.
17307 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17308 * final.c (default_function_switched_text_sections): New.
17309 (final_scan_insn): Call function_switched_text_sections when a
17310 mid-function section change occurs.
17311 * output.h (default_function_switched_text_sections): Declare.
17312 * config/darwin-protos.h (darwin_function_switched_text_sections):
17314 * config/darwin.c (darwin_function_switched_text_sections): New.
17315 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17317 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17319 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17320 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17321 the secondary code fragment when outputting for DWARF == 2.
17323 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17325 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17326 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17328 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17329 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17331 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17334 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17335 when it is not empty.
17337 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17340 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17341 (case ${target}): Add btver1.
17342 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17343 -march=native recognize btver1 processors.
17344 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17345 btver1 def_and_undef
17346 * config/i386/i386.c (struct processor_costs btver1_cost): New
17348 (m_BTVER1): New definition.
17349 (m_AMD_MULTIPLE): Includes m_BTVER1.
17350 (initial_ix86_tune_features): Add btver1 tune.
17351 (processor_target_table): Add btver1 entry.
17352 (static const char *const cpu_names): Add btver1 entry.
17353 (software_prefetching_beneficial_p): Add btver1.
17354 (ix86_option_override_internal): Add btver1 instruction sets.
17355 (ix86_issue_rate): Add btver1.
17356 (ix86_adjust_cost): Add btver1.
17357 * config/i386/i386.h (TARGET_BTVER1): New definition.
17358 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17359 (enum processor_type): Add PROCESSOR_BTVER1.
17360 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17362 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17365 * config/i386/i386.c (legitimize_tls_address)
17366 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17367 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17368 (tls_initial_exec_64_sun): New pattern.
17370 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17372 * doc/invoke.texi (Overall Options): Improve wording and markup
17373 of the description of -wrapper.
17375 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17377 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17378 rdynamic, threads): New Driver options.
17380 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17383 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17384 if coming from .tdata.
17385 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17387 2011-01-06 Jan Hubicka <jh@suse.cz>
17390 * collect2.c (main): Do not enable LTOmode when plugin is active.
17392 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17395 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17396 --version output if supported.
17397 * configure: Regenerate.
17399 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17401 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17404 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17407 * c-convert.c (convert): When converting a complex expression
17408 other than COMPLEX_EXPR to a different complex type, ensure
17409 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17410 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17411 when converting COMPLEX_TYPE.
17413 2011-01-06 Ira Rosen <irar@il.ibm.com>
17415 PR tree-optimization/47139
17416 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17417 only the last reduction value is used outside the loop. Update
17420 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17422 * config/rtems.opt: New.
17423 * config.gcc (*-*-rtems*): Use rtems.opt.
17425 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17427 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17428 processors do not support 3DNow instructions.
17430 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17432 * config/spu/spu.c (spu_option_override): Set parameter
17433 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17435 2011-01-05 Jan Hubicka <jh@suse.cz>
17437 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17438 at the command line.
17440 2011-01-05 Martin Jambor <mjambor@suse.cz>
17443 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17444 deltas on streamed outgoing edges.
17445 (output_node_opt_summary): Output info for outgoing edges only when
17446 the node is in new parameter set.
17447 (output_cgraph_opt_summary): New parameter set, passed to the two
17448 aforementioned functions. Update its forward declaration and its
17451 2011-01-05 Tom Tromey <tromey@redhat.com>
17453 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17454 operator to c_finish_omp_atomic.
17455 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17456 (build_unary_op): Update.
17457 (build_modify_expr): Update.
17458 (build_asm_expr): Update.
17460 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17462 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17463 newly inserted insns.
17464 (pad_bb): Likewise.
17465 (spu_emit_branch_hint): Likewise.
17466 (insert_hbrp_for_ilb_runout): Likewise.
17467 (spu_machine_dependent_reorg): Call df_finish_pass after
17468 schedule_insns returns.
17470 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17472 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17474 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17476 PR tree-optimization/47005
17477 * tree-sra.c (struct access): Add 'non_addressable' bit.
17478 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17479 (decide_one_param_reduction): Return 0 if the parameter is passed by
17480 reference and one of the accesses in the group is non_addressable.
17482 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17484 PR tree-optimization/47056
17485 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17486 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17487 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17489 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17491 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17492 initializer. Skip view conversions from aggregate types.
17494 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17497 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17499 2011-01-04 Philipp Thomas <pth@suse.de>
17501 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17504 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17506 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17507 on empty epilogue sequences.
17509 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17511 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17512 non-static): New Driver options.
17514 2011-01-04 Jie Zhang <jie@codesourcery.com>
17517 * gcc.c (default_compilers[]): Set combinable field to 0
17518 for all assembly languages.
17520 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17522 * config/mips/loongson3a.md: New file.
17523 * config/mips/mips.md: Include loongson3a.md.
17524 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17527 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17529 PR middle-end/47017
17530 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17531 instead of convert_memory_address_addr_space on the base expression.
17533 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17535 * config/spu/spu.c (spu_option_override): Update error text
17536 for bad -march= / -mtune= values.
17538 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17540 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17541 if branch-hint optimization will be performed.
17543 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17545 PR tree-optimization/47148
17546 * ipa-split.c (split_function): Convert arguments to
17547 DECL_ARG_TYPE if possible.
17549 PR tree-optimization/47155
17550 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17551 when computing uns.
17553 PR rtl-optimization/47157
17554 * combine.c (try_combine): If undobuf.other_insn becomes
17555 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17556 and set *new_direct_jump_p too.
17558 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17560 PR tree-optimization/47021
17561 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17563 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17565 * gcc.c (process_command): Update copyright notice dates.
17566 * gcov.c (print_version): Likewise.
17567 * gcov-dump.c (print_version): Likewise.
17568 * mips-tfile.c (main): Likewise.
17569 * mips-tdump.c (main): Likewise.
17571 2011-01-03 Martin Jambor <mjambor@suse.cz>
17573 PR tree-optimization/46801
17574 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17575 aggregate fields start at byte boundary instead of the bit-field flag.
17577 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17580 * gcc.c (main): Revert revision 168407.
17582 2011-01-03 Martin Jambor <mjambor@suse.cz>
17584 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17586 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17588 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17589 vector optab to expand vector/scalar shift, update gimple to vector.
17591 2011-01-03 Martin Jambor <mjambor@suse.cz>
17593 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17596 2011-01-03 Martin Jambor <mjambor@suse.cz>
17598 PR tree-optimization/46984
17599 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17601 (cgraph_create_indirect_edge): Fixed line length.
17602 (cgraph_indirect_call_info): Declare.
17603 (cgraph_make_edge_direct) Update declaration.
17604 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17605 (cgraph_create_indirect_edge): Use it.
17606 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17608 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17609 the new thunk_delta representation.
17610 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17612 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17613 (ipa_read_indirect_edge_info): Likewise.
17614 * lto-cgraph.c (output_edge_opt_summary): New function.
17615 (output_node_opt_summary): Call it on all outgoing edges.
17616 (input_edge_opt_summary): New function.
17617 (input_node_opt_summary): Call it on all outgoing edges.
17619 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17622 * gcc.c (main): Don't check have_o when settting combine_inputs.
17624 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17626 * regrename.c: Add general comment describing the pass.
17627 (struct du_head): Remove 'length' field.
17628 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17629 (regrename_optimize): Do not sort chains. Rework comments, add others.
17630 Force renaming to the preferred class (if any) in the first pass and do
17631 not consider registers that belong to it in the second pass.
17632 (create_new_chain): Do not set 'length' field.
17633 (scan_rtx_reg): Likewise.
17635 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17637 PR tree-optimization/47140
17638 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17639 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17640 to bit_value_binop.
17642 PR rtl-optimization/47028
17643 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17644 parm_birth_insn instead of at the beginning of first bb.
17646 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17648 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17649 Remove the word "see" before "@pxref".
17650 * doc/rtl.texi: Remove the word "see" before "@pxref".
17652 2011-01-01 Jan Hubicka <jh@suse.cz>
17654 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17657 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17660 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17663 Copyright (C) 2011 Free Software Foundation, Inc.
17665 Copying and distribution of this file, with or without modification,
17666 are permitted in any medium without royalty provided the copyright
17667 notice and this notice are preserved.