1 2011-06-13 Jan Hubicka <jh@suse.cz>
3 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
5 2011-06-14 Richard Henderson <rth@redhat.com>
8 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
9 (based_loc_descr): Assert it's true.
10 (compute_frame_pointer_to_fb_displacement): Set it, rather than
13 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
14 Mingfeng Wu <mingfeng@faraday-tech.com>
16 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
18 2011-06-13 Jan Hubicka <jh@suse.cz>
20 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
22 2011-06-13 Jan Hubicka <jh@suse.cz>
24 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
25 similarly to DECL_COMDAT.
26 * cgraphunit.c (cgraph_analyze_function): Likewise.
27 * ipa.c (function_and_variable_visibility): Likewise.
29 2011-06-13 Jan Hubicka <jh@suse.cz>
31 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
32 BINFO_VIRTUALS when streaming for ltrans unit.
34 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
36 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
37 (movdi_internal64): Same.
39 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
41 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern
42 with a set of similar patterns, where the MATCH_OPERAND for the
43 function argument is replaced with individual references to hardware
45 (save_fpregs_<mode>): Ditto
46 (restore_gpregs_<mode>): Ditto
47 (return_and_restore_gpregs_<mode>): Ditto
48 (return_and_restore_fpregs_<mode>): Ditto
49 (return_and_restore_fpregs_aix_<mode>): Ditto
51 2011-06-13 Jan Hubicka <jh@suse.cz>
53 * ipa-utils.c (postorder_stack): New structure.
54 (ipa_reverse_postorder): Handle aliases.
56 2011-06-13 Jan Hubicka <jh@suse.cz>
58 * ipa-inline.c (reset_edge_caches): Walk aliases.
59 (update_caller_keys): Do not test inlinability of aliases.
60 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
61 (do_estimate_growth): Fix typo.
63 2011-06-13 Jan Hubicka <jh@suse.cz>
65 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
66 (can_remove_node_now_p): ... here; handle same comdat groups.
67 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
68 (inline_call): Update use of can_remove_node_now_p.
70 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
72 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
73 condition to disallow non-identical memory locations.
74 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
75 preference to bit manipulation instructions.
77 2011-06-13 Jan Hubicka <jh@suse.cz>
79 * cgraph.c (cgraph_for_node_thunks_and_aliases,
80 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
81 (nonremovable_p): New function.
82 (cgraph_can_remove_if_no_direct_calls_p): New function.
83 (used_from_object_file_p): New functoin.
84 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
85 references from aliases.
86 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
87 * ipa-inline.c (check_caller_edge): New function.
88 (want_inline_function_called_once_p): Use it; accept aliases called
90 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
92 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
95 * config/arm/neon.md (vec_pack_trunc): Set the lengths
96 correctly for the case with Quad vectors.
98 2011-06-13 Jakub Jelinek <jakub@redhat.com>
99 Ira Rosen <ira.rosen@linaro.org>
101 PR tree-optimization/49352
102 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
103 all, make sure loop_use_stmt after the loop is a def stmt of a used
104 SSA_NAME that is the only one defined inside of the loop. Don't
105 check for COND_EXPR and GIMPLE_BINARY_RHS.
106 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
107 check_reduction is true.
109 2011-06-11 Jan Hubicka <jh@suse.cz>
112 * ipa.c (cgraph_externally_visible_p): Check resolution info.
114 2011-06-11 Jan Hubicka <jh@suse.cz>
117 * ipa-inline-transform.c: Include tree-pass.h
118 (inline_transform): Set TODO_update_ssa_only_virtuals.
119 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
121 2011-06-11 Jan Hubicka <jh@suse.cz>
124 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
127 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
129 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
130 Take number of iterations to peel into account for equally frequent
133 2011-06-11 Jan Hubicka <jh@suse.cz>
135 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
138 2011-06-11 Jan Hubicka <jh@suse.cz>
140 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
142 (ipa_update_after_lto_read): Likewise.
143 (ipa_write_node_info): Do not sream call_with_var_arguments.
144 (ipa_read_node_info): Likewise.
146 2011-06-11 Jan Hubicka <jh@suse.cz>
148 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
150 2011-06-11 Jan Hubicka <jh@suse.cz>
152 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
153 (lto_symtab_resolve_can_prevail_p): Likewise.
154 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
155 * cgraph.c (same_body_aliases_done): New global var.
156 (cgraph_same_body_alias_1): Rename to ...
157 (cgraph_create_function_alias): ... this one; reorg to new
159 (cgraph_same_body_alias): Use cgraph_create_function_alias;
160 record references when asked to.
161 (cgraph_add_thunk): Fix formating.
162 (cgraph_get_node): Kill same body alias code.
163 (cgraph_node_for_asm): Likewise.
164 (cgraph_remove_same_body_alias): Remove.
165 (cgraph_remove_node): Kill same body alias code.
166 (cgraph_mark_address_taken_node): Mark also the aliased function
167 as having address taken.
168 (dump_cgraph_node): Dump same body aliases.
169 (cgraph_for_node_thunks_and_aliases): Update for new alias
171 (cgraph_for_node_and_aliases): Likewise.
172 * cgraph.h (same_body): Kll pointer.
173 (same_body_alias): Update comment.
174 (same_body_aliases_done): Declare.
175 (cgraph_remove_same_body_alias): Remove declaration.
176 (cgraph_create_function_alias): Declare.
177 (cgraph_process_same_body_aliases): Declare.
178 (cgraph_function_with_gimple_body_p): Check for alias.
179 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
180 (cgraph_alias_aliased_node): New function.
181 (cgraph_function_node): Update for new aliases.
182 (cgraph_function_or_thunk_node): Likewise.
183 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
184 (inline_call): Remove dead aliases.
185 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
186 name hack for same body aliases.
187 (clone_of_p): Look through aliases.
188 (verify_cgraph_node): Verify aliases.
189 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
190 (cgraph_process_same_body_aliases): New function.
191 (process_function_and_variable_attributes): Disable weakref warning on
193 (cgraph_analyze_functions): Handle aliases.
194 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
195 (assemble_thunks): Rename to ...
196 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
197 (cgraph_expand_function): Remove alias output code.
198 (cgraph_output_in_order): Skip aliases.
199 (cgraph_preserve_function_body_p): Aliases don't need preserving.
200 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
201 (ipa_record_reference): Do not assert on alias references.
202 (ipa_ref_has_aliases_p): New function.
203 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
204 (ipa_ref_has_aliases_p): Declare.
205 * lto-cgraph.c (lto_output_node): Handle aliases.
206 (input_node): Likewise.
207 * lto-streamer-out.c (lto_output): Skip aliases.
208 (produce_symtab): Kill same_body_alias code.
209 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
210 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
211 * ipa-inline.c (update_caller_keys): Walk aliases.
212 (inline_small_functions): Fix thinko in previous patch.
213 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
214 (function_and_variable_visibility): Do not walk same body aliases.
215 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
216 (ipa_pta_execute): Use it.
218 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
220 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
221 (*vec_dupv2df): Rename from vec_dupv2df.
222 (vec_dupv2df): New expander.
224 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
226 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
228 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
230 * config/i386/i386.md: Use default value in "isa" attribute.
231 * config/i386/sse.md: Ditto.
232 * config/i386/mmx.md: Ditto.
234 2011-06-10 Wei Guozhi <carrot@google.com>
237 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
238 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
239 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
241 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
243 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
244 (arm_legitimate_ldrd_p): New prototype.
245 (arm_output_ldrd): New prototype.
246 * config/arm/arm.c (arm_check_ldrd_operands): New function.
247 (arm_legitimate_ldrd_p): New function.
248 (arm_output_ldrd): New function.
250 2011-06-10 David Li <davidxl@google.com>
252 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
253 * passes.c (passr_eq): New function.
254 (create_pass_tab): New function.
255 (pass_traverse): New function.
256 (dump_one_pass): New function.
257 (dump_pass_list): New function.
258 (dump_passes): New function.
260 2011-06-10 Jan Hubicka <jh@suse.cz>
262 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
263 setting the nothrow flag.
264 * ipa-reference.c (propagate): Skip aliases.
265 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
266 (propagate_nothrow): Skip aliases; do not update cgraph.
267 (local_pure_const): Do not update cgraph.
268 * tree-profile.c (tree_profiling): Do fixup_cfg.
270 2011-06-10 Jan Hubicka <jh@suse.cz>
272 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
273 (cgraph_local_node_p): ... here; handle aliases.
274 (has_addr_references_p): Break out from ...;
275 (cgraph_remove_unreachable_nodes) ... here.
277 2011-06-10 Jan Hubicka <jh@suse.cz>
279 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
280 * common.opt (flag_inline_functions_called_once): Do not
283 2011-06-10 Jan Hubicka <jh@suse.cz>
285 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
286 (ipcp_initialize_node_lattices): Do not deal with aliases;
287 Do not try to propagate through thunks.
288 (ipcp_change_tops_to_bottom): Do not deal with aliases.
290 2011-06-10 Jan Hubicka <jh@suse.cz>
292 * ipa-prop.c (ipa_write_node_info): Stream jump functions
294 (ipa_read_node_info): Likewise.
296 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
299 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
300 (build_and_insert_call): Likewise.
301 (build_and_insert_ref): New.
302 (gimple_expand_builtin_pow): Minor cleanup.
303 (gimple_expand_builtin_cabs): New.
304 (execute_cse_sincos): Add case for BUILT_IN_CABS.
306 2011-06-10 Jan Hubicka <jh@suse.cz>
308 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
309 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
310 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
311 (ipcp_propagate_stage): Skip aliases when propagating.
312 (ipcp_need_redirect_p): Skip aliases.
313 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
314 collect_callers_of_node.
315 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
317 (ipa_compute_jump_functions): Look through aliases.
319 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
321 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
323 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
325 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
327 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
329 2011-06-10 Jan Hubicka <jh@suse.cz>
331 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
332 Update call of gimple_get_virt_method_for_binfo.
333 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
334 refuse_thunks parameter.
335 (gimple_fold_call): Update.
336 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
338 2011-06-10 Jan Hubicka <jh@suse.cz>
340 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
341 (not_all_callers_have_enough_arguments_p): ... this one; turn into
342 worker for cgraph_for_node_and_aliases.
343 (convert_callers_for_node): Break out from ...
344 (convert_callers): ... here.
345 (modify_function): Use collect_callers_of_node.
346 (ipa_early_sra): Use cgraph_for_node_and_aliases.
348 2011-06-10 Richard Guenther <rguenther@suse.de>
350 PR tree-optimization/49361
351 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
352 when not already in gimple form.
354 2011-06-10 Richard Guenther <rguenther@suse.de>
357 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
358 FOR_EACH_PHI_OR_STMT_USE.
360 2011-06-10 Jan Hubicka <jh@suse.cz>
362 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
363 (clone_inlined_nodes): ... here.
364 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
365 to real destination prior inlining.
366 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
367 can_early_inline_edge_p, want_early_inline_function_p,
368 want_early_inline_function_p, want_inline_small_function_p,
369 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
370 edge_badness, update_all_callee_keys, lookup_recursive_calls,
371 add_new_edges_to_heap, inline_small_functions, flatten_function,
372 inline_always_inline_functions, early_inline_small_functions): Use
373 cgraph_function_or_thunk_node.
374 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
375 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
376 (do_estimate_edge_growth_1): Break out from ...
377 (do_estimate_growth) ... here; walk aliases.
378 (inline_generate_summary): Skip aliases.
380 2011-06-10 Richard Guenther <rguenther@suse.de>
382 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
383 forward when combining, visit inserted stmts when a stmt was changed.
385 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
387 * tree.h (error_operand_p): Add.
388 * dbxout.c (dbxout_type_fields): Use the latter.
389 * c-decl.c (add_stmt): Likewise.
390 * gimplify.c (omp_add_variable, omp_notice_variable,
391 gimplify_scan_omp_clauses): Likewise.
393 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
395 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
396 when a value is actually passed in regs.
398 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
399 Laurent Rougé <laurent.rouge@menta.fr>
401 * doc/invoke.texi (SPARC options): Add -mflat.
402 * config/sparc/sparc.opt: Likewise.
403 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
404 (sparc_flat_expand_prologue): Declare.
405 (sparc_flat_expand_epilogue): Likewise.
406 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
407 (CPP_ENDIAN_SPEC): Replace with...
408 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
409 (CPP_SPEC): Adjust to above change.
410 (EXTRA_SPECS): Likewise.
411 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
412 (INCOMING_REGNO): Likewise.
413 (OUTGOING_REGNO): Likewise.
414 (LOCAL_REGNO): Likewise.
415 (SETUP_FRAME_ADDRESSES): Likewise.
416 (FIXED_REGISTERS): Set 0 for %fp.
417 (CALL_USED_REGISTERS): Likewise.
418 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
419 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
420 (RETURN_ADDR_REGNUM): Define.
421 (RETURN_ADDR_RTX): Use it.
422 (INCOMING_RETURN_ADDR_REGNUM): Define.
423 (INCOMING_RETURN_ADDR_RTX): Use it.
424 (DWARF_FRAME_RETURN_COLUMN): Likewise.
425 (EH_RETURN_REGNUM): Define.
426 (EH_RETURN_STACKADJ_RTX): Use it.
427 (EH_RETURN_HANDLER_RTX): Delete.
428 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
429 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
431 (struct machine_function): Add frame_size, apparent_frame_size,
432 frame_base_reg, frame_base_offset, n_global_fp_regs and
433 save_local_in_regs_p fields.
434 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
435 sparc_frame_base_offset, sparc_n_global_fp_regs,
436 sparc_save_local_in_regs_p): New macros.
437 (sparc_option_override): Error out if -fcall-saved-REG is specified
439 (eligible_for_restore_insn): Fix formatting.
440 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
441 (eligible_for_sibcall_delay): Likewise.
442 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
443 (sparc_legitimate_address_p): Adjust to above change.
444 (save_global_or_fp_reg_p): New predicate.
445 (return_addr_reg_needed_p): Likewise.
446 (save_local_or_in_reg_p): Likewise.
447 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
448 (SORR_SAVE, SORR_RESTORE): Delete.
449 (sorr_pred_t): New typedef.
450 (sorr_act_t): New enum.
451 (save_or_restore_regs): Rename to...
452 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
453 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
454 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
455 mechanism. Add CFI information for double-word saves in 32-bit mode.
456 (emit_adjust_base_to_offset): New function extracted from...
457 (emit_save_or_restore_regs): ...this. Rename the rest to...
458 (emit_save_or_restore_regs_global_fp_regs): ...this.
459 (emit_save_or_restore_regs_local_in_regs): New function.
460 (gen_create_flat_frame_[123]): New functions.
461 (sparc_expand_prologue): Use SIZE local variable. Adjust.
462 (sparc_flat_expand_prologue): New function.
463 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
464 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
465 (sparc_flat_expand_epilogue): New function.
466 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
467 (output_return): Likewise.
468 (output_sibcall): Likewise.
469 (sparc_output_mi_thunk): Likewise.
470 (sparc_frame_pointer_required): Likewise.
471 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
472 function optimization.
473 * config/sparc/sparc.md (flat): New attribute.
474 (prologue): Add TARGET_FLAT handling.
475 (save_register_window): Disable if TARGET_FLAT.
476 (create_flat_frame_[123]): New patterns.
477 (epilogue): Add TARGET_FLAT handling.
478 (sibcall_epilogue): Likewise.
479 (eh_return): New expander.
480 (eh_return_internal): New insn and splitter.
481 (return_internal): Add TARGET_FLAT handling.
482 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
483 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
484 (nonlocal_goto): Add TARGET_FLAT handling.
485 * config/sparc/t-elf: Add -mflat multilib.
486 * config/sparc/t-leon: Likewise.
488 2011-06-10 Jan Hubicka <jh@suse.cz>
490 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
491 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
492 (self_recursive_p): Use cgraph_function_node.
493 (propagate_pure_const): Likewise.
494 (propagate_nothrow): Likewise.
495 * ipa-reference.c (ipa_reference_get_not_read_global): Use
496 cgraph_function_node.
497 (propagate_bits): Likewise.
498 (propagate): Likewise.
500 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
501 Richard Earnshaw <rearnsha@arm.com>
503 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
504 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
505 (*thumb2_movdi_vfp): Delete.
506 (*arm_movdi_vfp_cortexa8): Delete.
507 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
508 (*movdi_vfp_cortexa8): Likewise.
510 2011-06-10 Richard Guenther <rguenther@suse.de>
512 * stor-layout.c (initialize_sizetypes): Give names to all
515 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
517 PR tree-optimization/49318
518 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
519 irrelevant pattern statements.
521 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
523 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
526 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
529 2011-06-09 Jan Hubicka <jh@suse.cz>
531 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
532 do not recompute reachable flag.
533 (cgraph_finalize_function, cgraph_analyze_functions): Set
534 redefined_extern_inline here.
536 2011-06-09 Jan Hubicka <jh@suse.cz>
538 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
539 (cgraph_only_called_directly_p): ... this one; bring offline.
540 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
541 varpool_used_from_object_file_p): Drop names from the declaratoin.
542 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
543 collect_callers_of_node): New.
544 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
545 (cgraph_edge_recursive_p): Use cgraph_function_node.
546 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
547 (cgraph_node_cannot_be_local_p_1): Break out from ...
548 (cgraph_node_can_be_local_p): ... here; walk aliases.
549 (cgraph_for_node_thunks_and_aliases): New function.
550 (cgraph_for_node_and_aliases): New function.
551 (cgraph_make_node_local_1): Break out from ...
552 (cgraph_make_node_local) ... here; use
553 cgraph_for_node_thunks_and_aliases.
554 (cgraph_set_nothrow_flag_1): Break out from ...
555 (cgraph_set_nothrow_flag) ... here;
556 use cgraph_for_node_thunks_and_aliases.
557 (cgraph_set_const_flag_1): Break out from ...
558 (cgraph_set_const_flag) ... here;
559 use cgraph_for_node_thunks_and_aliases.
560 (cgraph_set_pure_flag_1): Break out from ...
561 (cgraph_set_pure_flag) ... here;
562 use cgraph_for_node_thunks_and_aliases.
563 (cgraph_propagate_frequency_1): Break out from ...
564 (cgraph_propagate_frequency) ... here; use
565 cgraph_for_node_thunks_and_aliases.
566 (cgraph_used_from_object_file_p): Do not care about aliases.
567 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
569 (collect_callers_of_node_1, collect_callers_of_node): New functions.
571 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
573 PR rtl-optimization/49154
574 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
575 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
576 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
577 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
578 * config/cris/cris.h (cris_register_move_cost): Remove
579 !TARGET_V32 code. Tweak comments.
581 2011-06-09 Jan Hubicka <jh@suse.cz>
583 * cgraphbuild.c (record_eh_tables): Mark personality function as having
586 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
588 PR rtl-optimization/49154
589 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
590 is a matching slot in the hashtable, assign it to classes_ptr.
592 PR rtl-optimization/49154
593 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
595 * doc/tm.texi: Regenerate.
597 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
600 * config/sh/sh.md (UNSPEC_CHKADD): New.
601 (chk_guard_add): New define_insn_and_split.
602 (symGOT_load): Use chk_guard_add instead of blockage.
604 2011-06-09 Kai Tietz <ktietz@redhat.com>
606 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
608 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
610 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
612 2011-06-09 Wei Guozhi <carrot@google.com>
615 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
616 (peephole2 for conditional move): Generate 16 bit instructions.
618 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
620 * config/i386/i386.md (*movdi_internal_rex64): Merge
621 alternatives 6 and 8.
623 2011-06-09 David Li <davidxl@google.com>
625 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
626 * passes.c (passr_eq): New function.
627 (create_pass_tab): New function.
628 (pass_traverse): New function.
629 (dump_one_pass): New function.
630 (dump_pass_list): New function.
631 (dump_passes): New function.
633 2011-06-09 David Li <davidxl@google.com>
635 * tree-complex.c (tree_lower_complex): Gate cleanup.
636 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
637 (execute_optimize_stdarg): Ditto.
638 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
639 (execute_cleanup_eh_1): Ditto.
640 (execute_cleanup_eh): Ditto.
641 * gcse.c (gate_rtl_pre): Ditto.
642 (execute_rtl_pre): Ditto.
643 * except.c (finish_eh_generation): Ditto.
644 (convert_to_eh_region_ranges): Ditto.
645 * cprop.c (one_cprop_pass): Ditto.
647 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
650 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
653 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
655 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
656 (HAVE_ENABLE_EXECUTE_STACK): Define.
657 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
658 (HAVE_ENABLE_EXECUTE_STACK): Define.
659 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
660 (HAVE_ENABLE_EXECUTE_STACK): Define.
661 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
662 (ENABLE_EXECUTE_STACK): Remove.
663 (HAVE_ENABLE_EXECUTE_STACK): Define.
664 [IN_LIBGCC2]: Don't include <windows.h>.
665 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
666 (HAVE_ENABLE_EXECUTE_STACK): Define.
667 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
668 (HAVE_ENABLE_EXECUTE_STACK): Define.
669 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
670 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
671 (HAVE_ENABLE_EXECUTE_STACK): Define.
672 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
673 (HAVE_ENABLE_EXECUTE_STACK): Define.
674 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
675 (HAVE_ENABLE_EXECUTE_STACK): Define.
676 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
677 (HAVE_ENABLE_EXECUTE_STACK): Define.
678 * config/alpha/alpha.c (alpha_trampoline_init): Test
679 HAVE_ENABLE_EXECUTE_STACK.
680 * config/i386/i386.c (ix86_trampoline_init): Likewise.
681 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
682 (sparc64_initialize_trampoline): Likewise.
683 * libgcc2.c [L_enable_execute_stack]: Remove.
684 * system.h (ENABLE_EXECUTE_STACK): Poison.
685 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
686 * doc/tm.texi: Regenerate.
687 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
689 2011-06-09 Jakub Jelinek <jakub@redhat.com>
692 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
693 variable. After resetting and rescanning insn continue with previous
696 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
698 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
699 (gcc_cv_ld_hidden): Likewise.
700 * configure: Regenerate.
701 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
702 (ix86_stack_protect_fail): Mark unused.
703 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
704 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
705 [TARGET_MACHO]: Don't define.
706 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
707 (TARGET_STACK_PROTECT_FAIL): Likewise.
708 (rs6000_stack_protect_fail): Mark unused.
709 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
710 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
712 2011-06-08 Andi Kleen <ak@linux.intel.com>
714 * varasm.c (get_section): Print location of other conflict
715 for section conflicts.
717 2011-06-08 Andi Kleen <ak@linux.intel.com>
719 * config/i386/driver-i386.c (host_detect_local_cpu):
720 Add model 0x2d Intel CPU.
722 2011-06-08 Andi Kleen <ak@linux.intel.com>
724 * reginfo.c (global_regs_decl): Add.
725 (globalize_reg): Add decl parameter. Compute location. Pass location
726 to warnings and add inform. Store decl in global_regs_decl.
727 * rtl.h (globalize_reg): Update prototype.
728 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
730 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
732 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
734 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
737 * config/sh/predicates.md (general_movsrc_operand): Check
738 mode for memory with indexed address for QI and HImode.
739 (general_movdst_operand): Likewise.
741 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
743 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
745 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
747 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
748 (num_ssa_operands): Likewise.
749 (op_iter_init_phiuse): Forward-declare.
750 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
752 2011-06-08 Nick Clifton <nickc@redhat.com>
754 * doc/invoke.texi (ARM Options): Update description of
757 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
759 * config/i386/driver-i386.c (host_detect_local_cpu): Support
760 unknown Intel family 0x6 CPUs.
762 2011-06-08 Martin Jambor <mjambor@suse.cz>
764 * tree-sra.c (mark_rw_status): Removed.
765 (analyze_access_subtree): New parameter parent instead of
766 mark_read and mark_write, propagate from that.
768 2011-06-08 Julian Brown <julian@codesourcery.com>
770 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
771 for double-precision helper functions in hard-float mode if only
772 single-precision arithmetic is supported in hardware.
774 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
776 PR rtl-optimization/49303
777 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
778 code_motion_path_driver returned 0 or 1.
779 (sel_region_finish): Clear h_d_i_d.
781 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
783 * config/sh/sh.c (prepare_move_operands): Set pic register
784 appropriately for global and local dynamic tls models even
785 if flag_pic is unset.
787 2011-06-07 Jason Merrill <jason@redhat.com>
789 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
791 2011-06-07 Xinliang David Li <davidxl@google.com>
792 * passes.c (enable_disable_pass): Handle assembler name.
793 (is_pass_explicitly_enabled_or_disabled): Ditto.
795 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
797 PR tree-optimization/48497
798 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
800 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
802 PR tree-optimization/46728
803 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
804 to use gimple_val_nonnegative_real_p.
805 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
806 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
808 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
810 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
812 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
814 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
817 2011-06-07 Richard Guenther <rguenther@suse.de>
819 * stor-layout.c (initialize_sizetypes): Initialize all
820 sizetypes based on target definitions.
821 (set_sizetype): Remove.
822 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
823 * tree.h (set_sizetype): Remove.
825 2011-06-07 Nick Clifton <nickc@redhat.com>
827 * config.gcc: Unify V850 architecture options and add support for
828 newer V850 architectures.
829 * config/v850/t-v850e: Delete.
831 2011-06-07 Richard Guenther <rguenther@suse.de>
833 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
834 Call set_sizetype from here.
836 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
838 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
839 (*maddhisi4tb, *maddhisi4tt): New define_insns.
841 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
842 Andrew Stubbs <ams@codesourcery.com>
844 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
846 * doc/md.texi (Canonicalization of Instructions): Document widening
847 multiply canonicalization.
849 2011-06-07 Jakub Jelinek <jakub@redhat.com>
851 PR gcov-profile/49299
852 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
854 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
856 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
858 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
859 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
860 vect_recog_pow_pattern): Likewise.
861 (vect_pattern_recog_1): Remove declaration.
862 (widened_name_p): Remove declaration. Add new argument to specify
863 whether to check that both types are either signed or unsigned.
864 (vect_recog_widen_mult_pattern): Update documentation. Handle
865 unsigned patterns and multiplication by constants.
866 (vect_pattern_recog_1): Update vect_recog_func references. Use
867 statement information from the statement returned from pattern
869 (vect_pattern_recog): Update vect_recog_func reference.
870 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
871 multiplication by a constant use the type of the other operand.
873 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
875 PR rtl-optimization/49145
876 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
878 2011-06-06 Jakub Jelinek <jakub@redhat.com>
881 * dwarf2out.c (native_encode_initializer): Decrement count in each
885 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
889 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
890 if stmt folded into nothing.
891 * tree-inline.c (fold_marked_statements): If a builtin at the end of
892 a bb folded into nothing, just update cgraph edges and move to next bb.
893 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
894 to be NULL. Don't compute count and frequency if new_call is NULL.
896 2011-06-04 Diego Novillo <dnovillo@google.com>
898 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
899 (cgraph.o): Likewise.
900 (cgraphunit.o): Likewise.
901 * cgraphunit.c: Include lto-streamer.h
902 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
904 * lto-streamer-in.c (unpack_value_fields): Call
905 streamer_hooks.unpack_value_fields if set.
906 (lto_materialize_tree): For unhandled nodes, first try to
907 call lto_streamer_hooks.alloc_tree, if it exists.
908 (lto_input_ts_decl_common_tree_pointers): Move reading of
909 DECL_INITIAL to lto_streamer_read_tree.
910 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
911 (lto_streamer_read_tree): New.
912 (lto_reader_init): Rename from lto_init_reader.
913 Move initialization code to lto/lto.c.
914 * lto-streamer-out.c (pack_value_fields): Call
915 streamer_hooks.pack_value_fields if set.
916 (lto_output_tree_ref): For tree nodes that are not normally indexable,
917 call streamer_hooks.indexable_with_decls_p before giving up.
918 (lto_output_ts_decl_common_tree_pointers): Move handling
919 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
920 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
921 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
922 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
923 (lto_streamer_write_tree): New.
924 (lto_output): Call lto_streamer_init directly.
925 (lto_writer_init): Remove.
926 * lto-streamer.c (streamer_hooks): New.
927 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
928 instead of lto_preload_common_nodes.
929 (lto_is_streamable): Move from lto-streamer.h
930 (lto_streamer_hooks_init): New.
931 (streamer_hooks): New.
932 (streamer_hooks_init): New.
933 * lto-streamer.h (struct output_block): Forward declare.
934 (struct lto_input_block): Likewise.
935 (struct data_in): Likewise.
936 (struct bitpack_d): Likewise.
937 (struct streamer_hooks): Declare.
938 (streamer_hooks): Declare.
939 (lto_streamer_hooks_init): Declare.
940 (lto_streamer_write_tree): Declare.
941 (lto_streamer_read_tree): Declare.
942 (streamer_hooks_init): Declare.
943 (lto_is_streamable): Move to lto-streamer.c
945 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
947 * longlong.h (smul_ppmm): The resulting register pair contains the
948 higher order word first.
950 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
952 PR tree-optimization/46728
953 * builtins.c (powi_table): Remove.
954 (powi_lookup_cost): Remove.
956 (expand_powi_1): Remove.
957 (expand_powi): Remove.
958 (expand_builtin_pow_root): Remove.
959 (expand_builtin_pow): Remove.
960 (expand_builtin_powi): Eliminate handling of constant exponent.
961 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
963 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
965 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
967 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
969 * dce.c (reset_unmarked_insns_debug_uses): New.
970 (delete_unmarked_insns): Skip debug insns.
971 (prescan_insns_for_dce): Likewise.
972 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
973 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
974 active reg can be found.
975 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
976 (convert_regs_1): Use it.
978 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
980 * tree-pretty-print.c (dump_function_header): Add flags.
981 Don't dump decl_uid with nouid.
982 * tree-pretty-print.h (dump_function_header): Adjust.
983 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
984 * passes.c (pass_init_dump_file): Pass dump_flags on.
985 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
987 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
990 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
992 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
994 PR tree-optimization/49243
995 * calls.c (setjmp_call_p): Also check if fndecl has the
996 returns_twice attribute.
998 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1000 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1003 2011-06-06 Richard Henderson <rth@redhat.com>
1004 Georg-Johann Lay <avr@gjlay.de>
1007 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1009 * config/avr/avr.md ("insv"): New insn expander.
1010 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1011 "*insv.not.io", "*insv.reg"): New insns.
1013 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1016 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1017 to nonimmediate_operand from memory_operand for the operand that is to
1018 be forced to memory by the expander. Lose the constraints.
1020 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1022 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1023 EH return when delayed branches are disabled.
1025 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1027 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1028 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1030 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1031 Simplify MODE_V1DF and MODE_V2SF handling.
1032 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1033 Simplify MODE_SF handling.
1035 2011-06-04 Jan Hubicka <jh@suse.cz>
1037 PR tree-optimization/48893
1038 PR tree-optimization/49091
1039 PR tree-optimization/49179
1040 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1043 2011-06-04 Jan Hubicka <jh@suse.cz>
1046 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1049 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1051 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1053 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1056 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1057 to be strictly smaller than 1 << shiftcount.
1059 2011-06-04 Jan Hubicka <jh@suse.cz>
1061 PR tree-optimize/48929
1062 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1065 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1068 * calls.c (emit_call_1): Prefer the __builtin declaration of
1071 2011-06-03 Diego Novillo <dnovillo@google.com>
1073 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1074 (lto_input_tree_pointers): Likewise.
1075 * lto-streamer-out.c (pack_value_fields): Likewise.
1076 (lto_output_tree_pointers): Likewise.
1077 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1078 and OPTIMIZATION_NODE.
1080 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1082 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1083 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1084 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1085 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1086 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1087 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1088 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1089 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1090 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1091 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1092 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1093 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1094 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1095 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1096 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1097 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1098 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1099 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1100 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1101 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1102 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1103 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1104 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1105 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1106 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1107 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1108 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1109 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1110 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1111 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1112 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1113 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1114 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1115 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1116 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1117 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1118 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1119 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1120 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1121 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1122 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1123 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1124 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1125 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1126 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1127 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1128 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1129 * system.h (MD_UNWIND_SUPPORT): Poison.
1130 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1131 * doc/tm.texi: Regenerate.
1132 * unwind-dw2.c: Include md-unwind-support.h instead of
1134 * config/ia64/unwind-ia64.c: Likewise.
1135 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1137 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1139 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1141 2011-06-03 Richard Henderson <rth@redhat.com>
1142 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1144 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1145 (sigill_hdlr): Correct insn, insn size.
1146 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1148 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1150 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1152 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1153 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1154 * config/mips/t-iris: Remove.
1155 * config/mips/t-irix6: New file.
1156 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1158 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1160 * Makefile.in (LIB2ADDEHDEP): Remove.
1161 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1162 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1163 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1164 * config/t-darwin (LIB2ADDEHDEP): Remove.
1165 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1166 * config/t-linux (LIB2ADDEHDEP): Remove.
1168 2011-06-03 Diego Novillo <dnovillo@google.com>
1170 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1171 (lto_register_var_decl_in_symtab): Likewise.
1172 (lto_register_function_decl_in_symtab): Likewise.
1173 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1174 logic to uniquify_nodes.
1176 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1178 * config/alpha/t-osf5: Remove.
1179 * config/alpha/t-osf-pthread: Remove.
1180 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1181 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1183 2011-06-03 Julian Brown <julian@codesourcery.com>
1185 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1186 (strongarm1110): Use strongarm tuning.
1187 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1188 * config/arm/arm.c (arm_strongarm_tune): New.
1189 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1190 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1191 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1192 setting, using previous defaults or 1 for Cortex-A5.
1193 (arm_option_override): Set max_insns_skipped from current tuning.
1195 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1197 * doc/install.texi (Options specification): Document --with-specs.
1199 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1201 * config/arm/neon.md (orndi3_neon): Actually split it.
1203 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1205 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1206 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1208 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1211 * target.def (delay_sched2, delay_vartrack): New.
1212 * doc/tm.texi.in: Update.
1213 * doc/tm.texi: Rebuild.
1214 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1215 * var-tracking.c (gate_handle_var_tracking): Likewise.
1216 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1217 (bfin_flag_var_tracking): Drop.
1218 (output_file_start): Don't save and override flag_var_tracking.
1219 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1220 (bfin_reorg): Test original variables.
1221 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1222 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1223 (ia64_flag_var_tracking): Drop.
1224 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1225 (ia64_file_start): Don't save and override flag_var_tracking.
1226 (ia64_override_options_after_change): Ditto
1227 flag_schedule_insns_after_reload.
1228 (ia64_reorg): Test original variables.
1229 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1230 (picochip_flag_var_tracking): Drop.
1231 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1232 (picochip_option_override): Don't save and override
1233 flag_schedule_insns_after_reload.
1234 (picochip_asm_file_start): Ditto flag_var_tracking.
1235 (picochip_reorg): Test original variables.
1236 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1237 (TARGET_DELAY_VARTRACK): Define.
1238 (spu_var_tracking): New.
1239 (spu_machine_dependent_reorg): Call it.
1240 (asm_file_start): Don't save and override flag_var_tracking.
1242 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1245 * config/sh/predicates.md (general_movsrc_operand): Return 0
1246 for memory and memory subreg of which address is an invalid
1247 indexed address for QI and HImode.
1248 (general_movdst_operand): Likewise.
1250 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1252 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1253 edges only, when there is a non-local label in the function.
1254 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1256 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1258 * config/i386/constraints.md (Y3): New register constraint.
1259 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1260 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1261 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1262 *sse2_interleave_lowv2df.
1264 2011-06-02 Julian Brown <julian@codesourcery.com>
1266 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1267 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1268 (arm_cortex_a5_tune): New.
1270 2011-06-02 Julian Brown <julian@codesourcery.com>
1272 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1273 * config/arm/arm.c (arm_default_branch_cost): New.
1274 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1275 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1276 (arm_fa726_tune): Set branch_cost field using
1277 arm_default_branch_cost.
1278 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1279 current_tune structure.
1280 * dojump.c (tm_p.h): Include file.
1282 2011-06-02 Julian Brown <julian@codesourcery.com>
1284 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1286 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1287 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1288 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1290 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1291 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1292 (arm_fa726te_tune): Add prefer_constant_pool setting.
1293 (arm_v6t2_tune, arm_cortex_tune): New.
1294 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1295 prefer_constant_pool setting.
1297 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1299 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1301 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1302 (*movdf_internal) <case 6,7,8>: Ditto.
1304 * config/i386/constraints.md (Y4): New register constraint.
1305 * config/i386/sse.md (vec_set<mode>_0): Merge with
1306 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1307 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1308 *vec_extractv2di_1_sse.
1309 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1310 and *vec_concatv2di_rex64_sse.
1312 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1315 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1316 of cgraph_local_info for null before attempting to use it.
1318 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1320 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1321 (current_function_dynamic_alloc_count): Delete.
1322 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1323 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1324 (expand_builtin_update_setjmp_buf): Remove dead code.
1325 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1326 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1328 * function.c (instantiate_virtual_regs): Likewise.
1329 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1330 for a block with a single abnormal incoming edge.
1331 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1332 (SETJMP_VIA_SAVE_AREA): Delete.
1333 * config/sparc/sparc-protos.h (load_got_register): Declare.
1334 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1335 (load_got_register): Make global.
1336 (sparc_frame_pointer_required): Add 'static'.
1337 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1338 (sparc_builtin_setjmp_frame_value): New function.
1339 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1340 (save_stack_nonlocal): New expander.
1341 (restore_stack_nonlocal): Likewise.
1342 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1343 (nonlocal_goto_internal): New insn.
1344 (goto_handler_and_restore): Delete.
1345 (builtin_setjmp_setup): Likewise.
1346 (do_builtin_setjmp_setup): Likewise.
1348 (builtin_setjmp_receiver): New expander.
1350 2011-06-01 David Li <davidxl@google.com>
1353 * tree-pretty-print.c (dump_function_header): Format cleanup.
1355 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1358 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1359 needed when original operands are used for msw_skip comparison.
1361 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1364 * var-tracking.c (add_uses, add_stores): Don't call
1365 cselib_subst_to_values on ENTRY_VALUE.
1367 2011-06-01 Diego Novillo <dnovillo@google.com>
1369 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1370 output_record_start with LTO_null instead of output_zero.
1371 (lto_output_ts_binfo_tree_pointers): Likewise.
1372 (lto_output_tree): Likewise.
1373 (output_eh_try_list): Likewise.
1374 (output_eh_region): Likewise.
1375 (output_eh_lp): Likewise.
1376 (output_eh_regions): Likewise.
1377 (output_bb): Likewise.
1378 (output_function): Likewise.
1379 (output_unreferenced_globals): Likewise.
1380 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1381 instead of NUM_TREE_CODES.
1382 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1383 (lto_output_int_in_range): Change << to >> when shifting VAL.
1385 2011-06-01 Diego Novillo <dnovillo@google.com>
1387 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1388 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1390 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1393 * optabs.h (valid_multiword_target_p): Declare.
1394 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1395 doing multi-word operations.
1396 * optabs.c (expand_binop): Likewise.
1397 (expand_doubleword_bswap): Likewise.
1398 (expand_absneg_bit): Likewise.
1399 (expand_unop): Likewise.
1400 (expand_copysign_bit): Likewise.
1401 (multiword_target_p): New function.
1403 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1405 PR rtl-optimization/48830
1406 PR rtl-optimization/48808
1407 PR rtl-optimization/48792
1408 * reload.c (push_reload): Check contains_reg_of_mode.
1409 * reload1.c (strip_paradoxical_subreg): New function.
1410 (gen_reload_chain_without_interm_reg_p): Use it to handle
1411 paradoxical subregs.
1412 (emit_output_reload_insns, gen_reload): Likewise.
1414 2011-06-01 David Li <davidxl@google.com>
1416 * predict.c : Change pass name
1419 * tree-profile.c: Ditto.
1422 2011-06-01 David Li <davidxl@google.com>
1424 * tree-pretty-print.c (dump_function_header): New function.
1425 * final.c (rest_of_clean_state): Use header dumper.
1426 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1427 * passes.c (pass_init_dump_file): Use header dumper.
1429 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1431 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1432 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1433 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1435 (mem_loc_descriptor): Use them.
1437 * var-tracking.c (create_entry_value): New function.
1438 (vt_add_function_parameter): Use it.
1440 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1442 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1443 Include <signal.h>, <ucontext.h>.
1444 (sigill_caught): Define.
1445 (sigill_hdlr): New function.
1446 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1447 insns can be executed.
1448 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1449 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1451 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1453 * config/t-slibgcc-darwin: Move to ...
1454 * config/t-slibgcc-dummy: ... this. Clarify comments.
1455 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1456 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1457 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1458 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1459 Remove i386/t-crtstuff from tmake_file.
1460 (i[34567]86-*-solaris2*): Remove t-svr4,
1461 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1463 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1464 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1465 sparc/t-crtfm from tmake_file.
1466 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1467 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1469 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1470 * config/i386/t-nwld (SHLIB_LINK): Remove.
1471 * config/i386/t-rtems-i386: Rename to ...
1472 * config/i386/t-rtems: ... this.
1473 ($(T)crti.o, $(T)crtn.o): Remove.
1474 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1475 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1476 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1477 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1478 EXTRA_MULTILIB_PARTS): Remove.
1479 * config/sparc/t-sol2-64: Likewise.
1480 * config/sparc/t-sol2: Remove.
1481 * config/sparc/t-crtin: Remove.
1482 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1483 * config/i386/gmon-sol2.c: Remove.
1484 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1485 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1486 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1487 * config/i386/sol2-gc1.asm: Remove.
1488 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1489 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1490 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1491 * config/t-slibgcc-sld: Remove.
1493 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1495 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1496 base_type_for_mode with op_mode instead of mode.
1498 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1500 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1502 * config/arm/arm-tune.md: Regenerate.
1503 * config/arm/arm-tables.opt: Regenerate.
1504 * config/arm/arm.c (FL_DIV): Rename...
1505 (FL_THUMB_DIV): ... to this.
1506 (FL_ARM_DIV): Define.
1507 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1508 (arm_arch_hwdiv): Remove.
1509 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1510 (arm_issue_rate): Add cortexr5.
1511 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1512 __ARM_ARCH_EXT_IDIV__.
1513 (TARGET_IDIV): Define.
1514 (arm_arch_hwdiv): Remove.
1515 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1516 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1517 (divsi3, udivsi3): New patterns.
1518 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1519 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1521 2011-06-01 Martin Jambor <mjambor@suse.cz>
1523 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1524 * ipa-utils.c (searchc): Set scc_no.
1526 2011-06-01 Martin Jambor <mjambor@suse.cz>
1528 * ipa-utils.c (searchc_env): New field allow_overwritable.
1529 (searchc): do not ignore edges to overwritable nodes if indicated
1530 by env->allow_overwritable.
1531 (ipa_reduced_postorder): Set env.allow_overwritable.
1533 2011-06-01 Richard Guenther <rguenther@suse.de>
1535 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1537 * lto-streamer.c (lto_record_common_node): Take node pointer,
1538 do not register types.
1539 (lto_preload_common_nodes): Explicitly skip preloading nodes
1540 that differ between frontends.
1542 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1544 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1547 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1549 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1550 parameter value for dump. Dump cost on outermost call only.
1551 (rs6000_memory_move_cost): Dump cost on outermost call only.
1553 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1555 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1556 DW_OP_GNU_convert ops.
1558 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1559 cselib_preserve_constants.
1560 (cselib_lookup_1): If cselib_preserve_constants,
1561 a new VALUE is being created for REG and there is a VALUE for the
1562 same register in wider mode, add another loc with lowpart SUBREG of
1564 (cselib_subst_to_values): Handle ENTRY_VALUE.
1565 * var-tracking.c (replace_expr_with_values): Return NULL for
1567 * dwarf2out.c (convert_descriptor_to_signed): New function.
1568 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1569 instead of two shifts.
1570 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1571 the right mode if needed.
1572 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1573 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1574 convert_descriptor_to_signed.
1575 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1576 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1579 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1581 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1583 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1584 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1585 (SWI248x): New mode iterator, rename from X87MODEI.
1586 (X87MODEI): Remove mode iterator.
1587 (X87MODEI12): Ditto.
1588 (SSEMODEI24): Ditto.
1590 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1592 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1593 * doc/invoke.texi: Document max-vartrack-expr-depth.
1594 * var-tracking.c (EXPR_DEPTH): New.
1595 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1597 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1599 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1600 * config/i386/sse.md: Add n to negated FMA pattern names.
1602 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1604 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1606 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1608 * gengtype-state.c (read_state_params_structs): Initialize previous.
1610 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1612 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1613 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1615 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1617 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1618 registers. Penalize F*r->o alternative to prevent partial memory
1619 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1620 CONST_DOUBLE immediates when optimizing function for size. Do not move
1621 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1622 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1623 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1624 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1626 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1628 (fp_register_operand splitters): Use fp_register_operand
1629 constraint. Do not use FP_REG_P in insn condition.
1630 (any_fp_register_operand splitters): Use any_fp_register_operand
1631 constraint. Do not use ANY_FP_REG_P in insn condition.
1633 2011-05-31 Jan Hubicka <jh@suse.cz>
1635 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1636 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1637 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1638 (lto_output_edge): Use output_enum and var_len_unsigned.
1639 (lto_output_varpool_node): Likewise.
1640 (input_overwrite_node): Do not take resolution parameter;
1641 extract it from a bitpack.
1642 (input_node): Do not read resolution; use input_enum and
1644 (input_varpool_node): Likewise.
1645 (input_edge): Likewise.
1646 (input_cgraph_1): Likewise.
1648 2011-05-31 Richard Guenther <rguenther@suse.de>
1650 * gimple.c (gimple_register_canonical_type): Do not register
1651 any types via gimple_register_type.
1653 2011-05-31 Jan Hubicka <jh@suse.cz>
1655 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1658 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1660 PR rtl-optimization/49235
1661 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1662 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1664 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1666 PR tree-optimization/49093
1667 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1670 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1673 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1674 for concrete functions containing the code of cloned functions.
1676 2011-05-31 Richard Guenther <rguenther@suse.de>
1678 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1680 (forward_propagate_into_comparison_1): ... this.
1681 (forward_propagate_comparison): Rename to ...
1682 (forward_propagate_into_comparison): ... this. Split out
1683 real forward propagation code to ...
1684 (forward_propagate_comparison): ... this.
1685 (forward_propagate_into_gimple_cond): Remove looping.
1686 (forward_propagate_into_cond): Likewise.
1687 (simplify_not_neg_expr): Return whether we have done something.
1688 (simplify_gimple_switch): Likewise.
1689 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1690 (ssa_forward_propagate_and_combine): ... this. Re-structure
1691 to do a forward forward-propagation walk on BBs and a backward
1692 stmt combining walk on BBs. Consistently re-scan changed statements.
1693 (pass_forwprop): Adjust.
1695 2011-05-30 Ian Lance Taylor <iant@google.com>
1697 * godump.c (go_format_type): Correct length of name added to
1698 obstack for anonymous field.
1700 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1703 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1704 part of the second operand is 0.
1706 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1708 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1709 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1710 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1711 (*movdf_internal_rex64): Do not penalize F->r alternative.
1712 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1713 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1714 when optimizing function for size. Do not move CONST_DOUBLEs
1715 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1716 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1717 SUBREGs. Do not check for MEM_P operands in the insn condition,
1718 check for ANY_FP_REGNO_P instead.
1719 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1720 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1722 * config/i386/i386.c (ix86_option_override_internal): Do not
1723 set TARGET_INTEGER_DFMODE_MOVES here.
1725 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1728 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1730 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1732 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1733 DW_TAG_rvalue_reference_type even for
1734 -gdwarf-4 -fno-debug-types-section.
1736 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1738 PR tree-optimization/46728
1739 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1740 (build_and_insert_binop): New.
1741 (gimple_expand_builtin_pow): Reorder args for
1742 build_and_insert_call; use build_and_insert_binop; add more
1743 optimizations for fractional exponents.
1745 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1750 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1752 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1754 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1755 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1756 TS_BASE instead of TS_COMMON.
1757 * varasm.c (assemble_name): Remove assert.
1759 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1761 * config.gcc: Keep obselete list sorted.
1763 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1764 Eric Botcazou <ebotcazou@adacore.com>
1766 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1767 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1768 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1769 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1770 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1772 2011-05-30 Richard Guenther <rguenther@suse.de>
1774 * gimple.c (gimple_types_compatible_p_1): Compare record
1775 and union type members properly.
1777 2011-05-30 Richard Guenther <rguenther@suse.de>
1779 PR tree-optimization/49210
1780 * ipa-split.c (split_function): Care for the case where the call
1781 result is not trivially convertible to the result holding variable.
1783 2011-05-30 Richard Guenther <rguenther@suse.de>
1785 PR tree-optimization/49218
1786 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1789 2011-05-30 Richard Guenther <rguenther@suse.de>
1791 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1792 New function split out from ...
1793 (forward_propagate_into_gimple_cond): ... here. Adjust.
1794 (forward_propagate_into_cond): Likewise.
1795 (forward_propagate_comparison): Also propagate into
1796 comparisons on assignment RHS. Change return value to
1797 behave similar to forward_propagate_into_cond.
1798 (tree_ssa_forward_propagate_single_use_vars): Handle
1799 strict-overflow warnings properly for forward_propagate_comparison.
1801 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1803 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1805 * configure: Regenerate.
1807 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1809 PR tree-optimization/49199
1810 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1811 non-reduction operands are either defined in the loop or by induction.
1813 2011-05-29 Xinliang David Li <davidxl@google.com>
1815 * opts-global.c (handle_common_deferred_options): Handle new options.
1816 * passes.c (register_one_dump_file): Call register_pass_name.
1817 (execute_one_pass): Check explicit enable/disable flag.
1818 (passr_hash): New function.
1820 (register_pass_name): Ditto.
1821 (get_pass_by_name): Ditto.
1824 (enable_pass): Ditto.
1825 (disable_pass): Ditto.
1826 (is_pass_explicitly_enabled_or_disabled): Ditto.
1828 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1830 * config/i386/i386.md (*movoi_internal_avx): Use
1831 standard_sse_constant_opcode for alternative 0.
1832 (*movti_internal_sse): Ditto.
1833 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1835 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1837 (*movsi_internal): Ditto.
1838 (*movdi_internal): Ditto. Add ssecvt type moves.
1840 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1843 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1845 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1847 PR rtl-optimization/49095
1848 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1849 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1851 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1854 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1855 recurse_p argument. Only follow register copies if it is set,
1856 and prevent mips_find_pic_call_symbol from recursing.
1857 (mips_find_pic_call_symbol): Add a recurse_p argument.
1858 Pass it to mips_pic_call_symbol_from_set.
1859 (mips_annotate_pic_calls): Update accordingly.
1861 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1863 * emit-rtl.c (try_split): Use a loop to search for
1864 NOTE_INSN_CALL_ARG_LOCATIONs.
1866 2011-05-29 Richard Guenther <rguenther@suse.de>
1868 PR tree-optimization/49217
1869 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1871 2011-05-28 Jan Hubicka <jh@suse.cz>
1873 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1875 (string_slot_free): Remove
1876 (create_output_block): Initialize obstack.
1877 (destroy_output_block): Free obstack.
1878 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1879 the string unless it needs to be added into the hash.
1880 (lto_output_string_with_length): Add persistent attribute;
1881 handle NULL strings.
1882 (lto_output_string): Add PERSISTENT parameter.
1883 (output_string_cst, output_identifier): Simplify.
1884 (lto_output_location_bitpack): Update.
1885 (lto_output_builtin_tree): Update.
1886 * lto-streamer.h (struct output_block): Add obstack.
1887 (lto_output_string, lto_output_string_with_length): Remove
1888 declarations; functions are static now.
1890 2011-05-28 Jan Hubicka <jh@suse.cz>
1892 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1893 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1894 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1895 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1896 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1897 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1898 unpack_ts_decl_with_vis_value_fields,
1899 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1900 lto_get_builtin_tree): Use enum and variable length i/o.
1901 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1902 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1904 (bp_pack_enum, bp_unpack_enum): New macros.
1906 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1908 * genrecog.c: Remove redundant forward declarations.
1910 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1912 * config.gcc: Deprecate mips*-*-openbsd*.
1914 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1917 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1920 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1923 * gengtype.c (vec_prefix_type): New function.
1924 (note_def_vec): Use vec_prefix_type and change the length
1925 attribute to be based on the prefix.
1926 * vec.c: Include coretypes.h before vec.h.
1927 (struct vec_prefix): Remove.
1928 (vec_gc_p_reserve): Change the offsetof to sizeof.
1929 (vec_gc_p_reserve_exact): Likewise.
1930 (vec_heap_p_reserve): Likewise.
1931 (vec_heap_p_reserve_exact): Likewise.
1932 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1933 (vec_stack_p_reserve): Change the offsetof to sizeof.
1934 (vec_stack_p_reserve_exact): Likewise.
1935 * vec.h (struct vec_prefix): New struct definition.
1936 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1937 (VEC_T_GTY(T,B)): Likewise.
1938 (DEF_VEC_FUNC_P(T)): Use prefix field.
1939 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1940 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1942 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1944 PR tree-optimization/46728
1945 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1946 (powi_as_mults): Add gimple_set_location.
1947 (build_and_insert_call): New.
1948 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1949 0.5, 0.25, 0.75, 1./3., or 1./6.
1951 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1953 * doc/contrib.texi: Update copyright years.
1954 (Contributors): Add Zdenek Sojka.
1956 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1958 * c-decl.c (c_push_function_context): Copy the current statement
1960 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1961 (finish_struct): Call building_stmt_list_p instead of checking
1963 * c-parser.c (c_parser_postfix_expression): Likewise.
1964 * c-typeck.c (c_end_compound_stmt): Likewise.
1965 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1966 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1967 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1968 (free_stmt_list): Likewise.
1969 * tree.h (struct tree_statement_list): Include typed_tree instead
1971 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1972 as TS_TYPED instead of TS_COMMON.
1974 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1975 Uros Bizjak <ubizjak@gmail.com>
1977 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1978 (HAVE_AS_IX86_TLSGDPTL): Define.
1979 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1980 (HAVE_AS_IX86_TLSLDMPLT): Define.
1981 * configure: Regenerate.
1982 * config.in: Regenerate.
1983 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1984 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1985 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1986 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1987 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1989 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1991 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1993 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1995 (INSN_COND, INSN_REVERSE_COND): New macros.
1996 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1998 (sched_get_condition_with_rev): Cache the results, and look them up
2000 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2001 are clobbered by the current insn.
2002 * target.def (exposed_pipline): New sched data hook.
2003 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2004 * doc/tm.texi: Regenerate.
2006 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2008 PR tree-optimization/49170
2009 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2012 2011-05-27 Richard Guenther <rguenther@suse.de>
2015 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2018 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2020 * haifa-sched.c (sched_scan_info): Remove.
2021 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2023 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2025 (sched_scan): Remove.
2026 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2027 static. All callers changed.
2028 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2029 static. All callers changed.
2030 (sched_init_luids): Remove all arguments except the first. All
2031 callers changed. Don't use sched_scan.
2032 (haifa_init_h_i_d): Likewise.
2033 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2034 manually rather than using sched_init_luids. Likewise with
2035 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2036 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2037 rather than sched_init_luids with NULL args.
2038 * sel-sched-ir.c (new_insns): Remove variable.
2039 (sched_scan): New static function, previously in haifa-sched.c. Remove
2040 all arguments but the first two; all callers changed.
2041 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2042 rather than sched_init_luids.
2043 (sel_init_bbs): Remove second argument. All callers changed.
2044 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2045 with NULL arguments.
2046 (create_insn_rtx_from_pattern): Likewise.
2047 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2048 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2049 (sched_init_insn_luid, sched_extend_luids): Declare.
2050 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2053 2011-05-27 Richard Guenther <rguenther@suse.de>
2056 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2057 A CMP B ? (T) true : (T) false for non-integral types T again.
2059 2011-05-27 Jan Hubicka <jh@suse.cz>
2061 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2062 so 0 means NULL string.
2063 (lto_output_string_with_length): ... here.
2064 (lto_output_string, output_string_cst, output_identifier): Update
2065 handling of NULL strings.
2066 (lto_output_location_bitpack): New function.
2067 (lto_output_location): Use it.
2068 (lto_output_tree_ref): Use output_record_start.
2069 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2071 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2073 (input_string_internal): ... here;
2074 (input_string_cst, input_identifier, lto_input_string): Update handling
2076 (lto_input_location_bitpack): New function
2077 (lto_input_location): Use it.
2078 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2080 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2081 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2082 (bp_pack_value): Sanity check the value range.
2083 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2085 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2088 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2090 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2091 call_arg_location instructions down the floor.
2093 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2095 PR rtl-optimization/49154
2096 * ira.c (setup_pressure_classes): Process class without sublcasses
2097 as a candidate for pressure classes.
2099 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2101 PR rtl-optimization/48575
2102 * genrecog.c (position_type): New enum.
2103 (position): New structure.
2104 (decision): Use position structure instead of a string.
2105 (root_pos, peep2_insn_pos_list): New variables.
2106 (next_position, compare_positions): New functions.
2107 (new_decision): Use position structures instead of strings.
2108 (maybe_both_true): Likewise.
2109 (change_state): Likewise.
2110 (write_tree): Likewise.
2111 (make_insn_sequence): Likewise.
2113 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2115 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2116 TS_BASE instead of TS_COMMON.
2117 (find_decls_types_r): Check for TS_TYPED structure before looking at
2119 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2121 (BLOCK_CHAIN): Use new chain field.
2123 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2125 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2126 moves expensive on Power7 also.
2128 2011-05-26 Richard Guenther <rguenther@suse.de>
2130 * fold-const.c (fold_unary_loc): Remove bogus code.
2132 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2134 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2136 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2137 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2138 TS_BASE instead of TS_COMMON.
2139 * varasm.c (assemble_name): Remove assert.
2141 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2143 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2145 * libgcc-std.ver: Delete file.
2147 2011-05-26 Richard Guenther <rguenther@suse.de>
2149 PR tree-optimization/48702
2150 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2151 only when we know the base address is within bounds.
2152 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2153 assume the base address of TARGET_MEM_REFs is in bounds.
2155 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2158 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2159 declaration in TARGET_SOLARIS.
2161 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2163 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2164 The instruction is then expanded explicitly.
2165 (supported_compare): Callable instruction.
2166 (compare): Likewise.
2168 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2171 * gimplify.c (shortcut_cond_r): Don't special case
2172 COND_EXPRs if they have void type on one of their arms.
2174 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2176 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2177 to reduce duplication, and to achieve a slightly more logical order
2180 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2182 PR tree-optimization/49161
2183 * tree-vrp.c (struct case_info): New type.
2184 (compare_case_labels): Sort case_info structs instead of
2185 trees, and not primarily by CASE_LABEL uids but by
2186 label_for_block indexes.
2187 (find_switch_asserts): Put case labels into struct case_info
2188 array instead of TREE_VEC, adjust sorting, compare label_for_block
2189 values instead of CASE_LABELs.
2191 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2193 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2194 ("orndi3_neon"): Likewise.
2195 ("bic<mode>3_neon"): Likewise.
2197 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2199 PR tree-optimization/49038
2200 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2201 Ensure at least one epilogue iteration if required by data
2203 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2204 to mark loops that require peeling for gaps.
2205 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2206 (vect_get_known_peeling_cost): Take peeling for gaps into
2208 (vect_transform_loop): Generate epilogue if required by data
2210 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2211 loop as requiring an epilogue if there are gaps in the end of
2214 2011-05-25 Ian Lance Taylor <iant@google.com>
2216 * godump.c (go_format_type): Output the first field with a usable
2219 2011-05-25 Ian Lance Taylor <iant@google.com>
2221 * godump.c (go_format_type): Check for invalid type names, pointer
2222 target types, and struct field types.
2224 2011-05-25 Jason Merrill <jason@redhat.com>
2226 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2228 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2230 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2232 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2234 * config/i386/i386.md (*movqi_extv_1)): Put back
2235 "register_operand" check in "type" calculation.
2236 (*movqi_extzv_2): Likewise.
2238 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2240 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2242 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2245 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2246 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2247 __divxc3, __divtc3): Wrap definitions in #ifndef.
2249 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2252 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2253 "register_operand" check and replace q_regs_operand with
2254 QIreg_operand in "type" calculation.
2255 (*movqi_extv_1): Likewise.
2256 (*movqi_extzv_2_rex64): Likewise.
2257 (*movqi_extzv_2): Likewise.
2259 * config/i386/predicates.md (QIreg_operand): New.
2261 2011-05-25 Richard Guenther <rguenther@suse.de>
2263 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2264 type-based offset disambiguation, streamline MEM_REF and
2265 TARGET_MEM_REF handling.
2267 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2269 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2270 (bdesc_special_args): Add pause intrinsic.
2272 * config/i386/i386.md (UNSPEC_PAUSE): New.
2275 * config/i386/ia32intrin.h (__pause): Likewise.
2277 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2280 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2282 PR tree-optimization/46728
2283 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2284 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2286 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2288 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2289 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2290 instead of TS_COMMON.
2292 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2294 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2295 LIBGCC2_GNU_PREFIX is defined.
2297 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2298 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2299 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2300 __clz_tab): Define using __N.
2301 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2302 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2303 * target.def (libfunc_gnu_prefix): New hook.
2304 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2305 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2306 * doc/tm.texi: Regenerate.
2307 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2308 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2310 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2311 (init_optabs): Likewise for the bswap libfuncs.
2312 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2314 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2315 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2316 * libgcc-std.ver: Remove.
2317 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2318 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2320 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2321 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2322 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2323 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2324 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2325 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2326 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2327 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2328 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2329 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2331 2011-05-25 Jan Hubicka <jh@suse.cz>
2333 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2334 (lto_output_tree): Use output_record_start.
2335 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2336 (lto_get_pickled_tree): Use input_record_start.
2337 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2338 (lto_value_range_error): New function.
2339 * lto-streamer.h (lto_value_range_error): Declare.
2340 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2341 (lto_output_enum, lto_input_enum): New macros.
2343 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2345 * common.opt (flag_stack_usage_info): New variable.
2346 (-Wstack-usage): New option.
2347 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2348 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2349 <OPT_fstack_usage>: Likewise.
2350 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2351 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2352 of flag_stack_usage.
2353 (emit_library_call_value_1): Likewise.
2354 * explow.c (allocate_dynamic_stack_space): Likewise.
2355 * function.c (instantiate_virtual_regs ): Likewise.
2356 (prepare_function_start): Likewise.
2357 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2358 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2359 * config/arm/arm.c (arm_expand_prologue): Likewise.
2360 (thumb1_expand_prologue): Likewise.
2361 * config/avr/avr.c (expand_prologue): Likewise.
2362 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2363 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2364 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2365 * config/mips/mips.c (mips_expand_prologue): Likewise.
2366 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2367 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2368 * config/s390/s390.c (s390_emit_prologue): Likewise.
2369 * config/sh/sh.c (sh_expand_prologue): Likewise.
2370 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2371 * config/spu/spu.c (spu_expand_prologue): Likewise.
2373 2011-05-25 Richard Guenther <rguenther@suse.de>
2375 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2376 (gimple_canonical_types_compatible_p): Likewise.
2378 2011-05-25 Jan Hubicka <jh@suse.cz>
2381 * ipa.c (function_and_variable_visibility): Only add to same
2382 comdat group list if DECL_ONE_ONLY.
2384 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2386 PR rtl-optimization/49014
2387 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2389 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2392 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2394 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2396 PR rtl-optimization/48757
2397 * ira-build.c (loop_with_eh_edge_p): Rename to
2398 loop_with_complex_edge_p, check edges on complexity, make function
2400 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2403 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2405 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2406 force flag_ira_share_save_slots to 0.
2408 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2410 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2411 (vt_initialize): Set PROLOGUE_BB unconditionally.
2412 Add block comment about CFA_BASE_RTX machinery.
2413 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2414 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2416 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2419 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2420 parsing of syntax error in ObjC instance variable lists. In
2421 particular, avoid an infinite loop if there is a stray ']'.
2422 Updated error message.
2424 2011-05-24 Ian Lance Taylor <iant@google.com>
2426 * godump.c (go_define): Don't accept a string immediately after
2429 2011-05-24 Ian Lance Taylor <iant@google.com>
2431 * godump.c (struct godump_container): Add invalid_hash field.
2432 (go_format_type): Return false if type is found in invalid_hash.
2433 (go_output_typedef): Add invalid type to invalid_hash.
2434 (go_finish): Create and delete invalid_hash.
2436 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2438 PR tree-optimization/46728
2439 * tree-ssa-math-opts.c (powi_table): New.
2440 (powi_lookup_cost): New.
2442 (powi_as_mults_1): New.
2443 (powi_as_mults): New.
2444 (gimple_expand_builtin_powi): New.
2445 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2446 (gate_cse_sincos): Remove sincos/cexp restriction.
2448 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2451 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2453 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2454 * mips-tdump.c: Likewise.
2456 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2459 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2460 add -mno-XXX. Handle FMA.
2462 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2464 PR rtl-optimization/48633
2465 * ira-build.c (loop_with_eh_edge_p): New function.
2466 (mark_loops_for_removal): Use it.
2468 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2470 PR rtl-optimization/48971
2471 * ira.c (setup_pressure_classes): Don't check register move cost
2472 for classes with one registers. Don't add pressure class if there
2473 is a pressure class with the same available hard registers.
2474 Check contains_reg_of_mode. Fix a typo in collecting
2475 temp_hard_regset. Ignore hard registers not belonging to a class.
2477 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2480 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2482 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2483 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2485 PR gcov-profile/48845
2486 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2488 2011-05-24 Richard Guenther <rguenther@suse.de>
2490 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2491 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2492 (gimple_types_compatible_p_1): Adjust.
2493 (iterative_hash_canonical_type): Do not bother about complete vs.
2495 (gimple_canonical_types_compatible_p): Likewise.
2497 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2499 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2501 2011-05-24 Richard Guenther <rguenther@suse.de>
2504 * gimple.c (gimple_register_canonical_type): Revert
2506 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2507 does not for a tree for the case where it matters. Cache
2508 pointer-type alias-sets.
2510 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2512 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2513 (OBJS): Remove options.o, opts-common.o and prefix.o.
2514 (OBJS-libcommon-target): New.
2515 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2516 (BACKEND): Include libcommon-target.a.
2517 (MOSTLYCLEANFILES): Include libcommon-target.a.
2518 (libcommon-target.a): New.
2519 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2522 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2524 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2525 parts of output shared with the driver.
2526 * optc-gen.awk: Don't generate parts of output not shared with the
2528 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2529 * doc/options.texi (SourcerInclude): Mention options-save.c.
2530 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2531 (OBJS): Add options-save.o.
2532 (options-save.c, options-save.o): New.
2533 (options.o): Update dependencies.
2534 (gcc-options.o): Remove.
2535 (mostlyclean): Remove options-save.c.
2537 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2540 * dbxout.c: Include cgraph.h.
2541 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2542 and without value expr, return NULL if no varpool node exists for
2543 it or if it is not needed.
2544 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2547 * c-decl.c (start_decl): Convert expr to void_type_node.
2549 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2551 PR rtl-optimization/48826
2552 * emit-rtl.c (try_split): When splitting a call that is followed
2553 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2555 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2557 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2558 parameters passed in memory prefer using DECL_INCOMING_RTL over
2559 the pseudos it will be copied into.
2561 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2564 * config/i386/i386.c (ix86_option_override_internal): Save the
2565 initial options after checking vzeroupper.
2567 2011-05-23 David Li <davidxl@google.com>
2569 PR tree-optimization/48988
2570 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2571 Initialize has_valid_pred for each pred chain.
2573 2011-05-23 Richard Guenther <rguenther@suse.de>
2575 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2576 (iterative_hash_gimple_type): Always hash type names.
2578 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2580 * c-typeck.c (build_function_call_vec): Tweak call to
2581 check_function_arguments.
2583 2011-05-23 Richard Guenther <rguenther@suse.de>
2585 PR tree-optimization/49115
2586 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2587 is not necessarily carried out, do not claim it kills the ref.
2588 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2590 2011-05-23 Richard Guenther <rguenther@suse.de>
2593 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2594 what pointer types we accept for folding.
2596 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2598 * gthr-gnat.c: Remove.
2599 * gthr-gnat.h: Remove.
2600 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2601 * config/t-freebsd (LIB2ADDEH): Likewise.
2602 * config/t-linux (LIB2ADDEH): Likewise.
2603 * config/t-sol2 (LIB2ADDEH): Likewise.
2604 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2605 * configure.ac (target_thread_file): Remove gnat handling.
2606 * configure: Regenerate.
2607 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2609 2011-05-23 Tristan Gingold <gingold@adacore.com>
2610 Eric Botcazou <ebotcazou@adacore.com>
2612 * gcov.c (create_file_names): If no object directory is specified,
2613 keep the directory of the file.
2615 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2617 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2618 * configure: Regenerate.
2620 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2623 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2624 failed and the comparison has a single bit signed type, use
2625 constm1_rtx instead of const1_rtx for true value.
2626 (do_store_flag): If ops->type is single bit signed type, disable
2627 signel bit test optimization and pass -1 instead of 1 as last
2628 parameter to emit_store_flag_force.
2630 2011-05-23 Tom de Vries <tom@codesourcery.com>
2633 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2635 (infer_loop_bounds_from_undefined): Use new function.
2637 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2639 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2640 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2641 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2643 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2645 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2647 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2648 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2651 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2653 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2655 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2657 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2658 UNSPEC_MOVE_PIC pattern.
2660 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2662 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2663 (sparc-*-rtems*): Likewise.
2664 (sparc64-*-elf*): Likewise.
2665 (sparc64-*-rtems*): Likewise.
2666 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2667 * config/sparc/t-crtin: New file.
2668 * config/sparc/t-sol2 (crti.o): Delete rule.
2670 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2671 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2672 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2673 (ENDFILE_SPEC): Add crtn.o.
2675 2011-05-22 Tom de Vries <tom@codesourcery.com>
2678 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2679 CODE_CONTAINS_STRUCT (TS_COMMON).
2681 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2684 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2685 only after deciding which mode to use.
2687 2011-05-22 Tom de Vries <tom@codesourcery.com>
2690 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2691 for call to get_shiftadd_cost.
2693 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2696 * config/i386/cpuid.h (bit_MMXEXT): New define.
2698 2011-05-22 Nick Clifton <nickc@redhat.com>
2700 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2701 initialisation of non-existant args[2] element. Use args[] array
2702 not arg[] array to pass arguments to build_function_type_list.
2704 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2706 PR tree-optimization/49087
2707 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2709 2011-05-21 Jason Merrill <jason@redhat.com>
2712 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2713 static storage duration.
2715 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2717 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2720 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2722 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2723 false if there are call-saved registers here...
2724 (sparc_can_use_return_insn_p): ...but here instead.
2725 (save_or_restore_regs): Fix thinko.
2726 (sparc_expand_prologue): Use current_function_is_leaf.
2727 (sparc_frame_pointer_required): Likewise.
2729 2011-05-21 Nick Clifton <nickc@redhat.com>
2732 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2734 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2736 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2737 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2739 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2741 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2742 * optc-gen.awk: Move common code to opt-read.awk.
2743 * opth-gen.awk: Likewise.
2744 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2746 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2748 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2750 2011-05-20 Tom de Vries <tom@codesourcery.com>
2753 * tree-ssa-loop-ivopts.c: Include expmed.h.
2754 (get_shiftadd_cost): New function.
2755 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2757 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2760 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2761 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2763 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2765 * Makefile.in: Update comment referring to $(OBJS-common).
2767 2011-05-20 Ian Lance Taylor <iant@google.com>
2769 * godump.c (go_output_typedef): Put enum constants in the macro
2770 hash table to avoid duplicate Go const definitions.
2772 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2774 * Makefile.in (LIBDEPS): Add libcommon.a.
2776 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2777 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2778 pretty-print.o and version.o.
2779 (OBJS-libcommon): New.
2780 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2781 (BACKEND): Add libcommon.a.
2782 (MOSTLYCLEANFILES): Likewise.
2784 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2785 (cpp$(exeext)): Likewise.
2786 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2787 pretty-print.o and input.o.
2788 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2789 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2791 (mips-tfile): Don't explicitly use version.o.
2792 (mips-tdump): Likewise.
2793 (gcov.o): Depend on $(DIAGNOSTIC_H).
2794 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2795 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2796 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2797 * gcov-dump.c: Include intl.h and diagnostic.h.
2798 (main): Initialize diagnostics.
2799 * gcov.c: Include diagnostic.h.
2801 (main): Initialize diagnostics.
2802 * lto-wrapper.c: Include diagnostic.h.
2803 (main): Initialize diagnostics.
2805 2011-05-20 Michael Matz <matz@suse.de>
2807 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2809 2011-05-20 Michael Matz <matz@suse.de>
2810 Richard Guenther <rguenther@suse.de>
2812 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2813 use lto_streamer_cache_append directly instead of returning a VEC.
2814 (preload_common_node): Remove.
2815 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2817 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2819 2011-05-20 Richard Guenther <rguenther@suse.de>
2821 PR tree-optimization/49079
2822 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2823 MEM_REFs correctly for the trailing array access detection.
2824 Special case constants the same way as decls for overall size
2827 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2829 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2832 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2834 PR tree-optimization/49073
2835 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2836 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2837 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2839 2011-05-20 Richard Guenther <rguenther@suse.de>
2842 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2843 of pointer types the same way the middle-end does.
2845 2011-05-20 Richard Guenther <rguenther@suse.de>
2847 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2848 or pointer-to chains. Delay all fixup to uniquify_nodes.
2850 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2852 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2853 (fma4_fmaddsub): Likewise
2855 2011-05-19 Jan Hubicka <jh@suse.cz>
2857 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2858 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2859 (type_pair_cache): New static var.
2860 (lookup_type_pair): Use fixed sized custom hash; make inline.
2861 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2862 calls of lookup_type_pair.
2863 (print_gimple_types_stats): Remove cache stats.
2864 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2867 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2869 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2870 when TARGET_RDRND is active.
2871 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2872 Generate dummy SImode target register when target is NULL.
2874 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2876 * config/arm/arm-fpus.def: New.
2877 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2879 * config/arm/arm-tables.opt: Regenerate.
2880 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2881 (arm_option_override): Don't decode FPU name to string here.
2882 * config/arm/arm.opt (mfpu=): Use Enum.
2883 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2884 Update dependencies.
2886 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2888 * collect2.c: Include diagnostic.h.
2889 (fatal_perror, fatal, error, fancy_abort): Remove.
2890 (main): Set progname. Call xmalloc_set_program_name and
2891 diagnostic_initialize.
2892 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2893 scan_libraries, resolve_lib_name): Call fatal_error instead of
2894 fatal and fatal_perror.
2895 * collect2.h (error, fatal, fatal_perror): Don't declare.
2896 * tlink.c: Include diagnostic-core.h.
2897 (recompile_files): Call fatal_error instead of fatal_perror.
2898 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2899 pretty-print.o and input.o.
2900 (collect2.o, tlink.o): Update dependencies.
2902 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2904 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2906 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2909 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2910 COMDAT group syntax, both SPARC and x86 variants.
2911 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2912 * configure: Regenerate.
2913 * config/sol2.h (TARGET_SOLARIS): Define.
2914 (PUSHSECTION_FORMAT): Remove.
2915 (SECTION_NAME_FORMAT): Define.
2916 * config/sol2.c: Include hashtab.h.
2917 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2918 expansion, using SECTION_NAME_FORMAT.
2919 (solaris_comdat_htab): New variable.
2920 (struct comdat_entry): Define.
2921 (comdat_hash): New function.
2922 (comdat_eq): New function.
2923 (solaris_elf_asm_comdat_section): New function.
2924 (solaris_define_comdat_signature): New function.
2925 (solaris_code_end): New function.
2926 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2927 (solaris_code_end): Declare.
2928 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2929 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2931 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2932 Remove ATTRIBUTE_UNUSED.
2933 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2934 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2935 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2936 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2937 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2938 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2939 (PUSHSECTION_FORMAT): Remove.
2940 (SECTION_NAME_FORMAT): Redefine.
2942 2011-05-19 Kai Tietz <ktietz@redhat.com>
2944 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2945 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2946 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2948 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2949 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2951 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2953 2011-05-19 Richard Guenther <rguenther@suse.de>
2956 * tree-object-size.c (addr_object_size): If the pointed-to
2957 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2959 2011-05-19 Richard Guenther <rguenther@suse.de>
2961 * gimple.c (gimple_types_compatible_p_1): Compare names of
2962 the types themselves.
2963 (iterative_hash_gimple_type): And hash them that way.
2964 (gimple_register_type_1): If we register a main variant properly
2965 initialize the leader to ourselves.
2967 2011-05-19 Tom de Vries <tom@codesourcery.com>
2970 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2971 get_loop_invariant_expr_id.
2972 (get_loop_invariant_expr_id): Use get_expr_id.
2973 (parm_decl_cost): New function.
2974 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2975 Improve bound cost estimation. Use different inv_expr_id for elim and
2978 2011-05-19 Tom de Vries <tom@codesourcery.com>
2981 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2982 cost_base.cost == 0.
2984 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2987 * config/i386/sse.md
2988 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2991 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2993 PR tree-optimization/49039
2994 * tree-vrp.c (extract_range_from_binary_expr): For
2995 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2996 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2998 2011-05-18 Tom de Vries <tom@codesourcery.com>
3001 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3003 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3005 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3006 (*tls_global_dynamic_64): Ditto.
3007 (*tls_local_dynamic_base_32_gnu): Ditto.
3008 (*tls_local_dynamic_base_64): Ditto.
3009 (tls_initial_exec_64_sun): Ditto.
3011 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3013 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3014 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3016 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3017 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3018 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3019 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3020 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3021 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3022 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3024 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3026 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3027 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3028 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3029 target_thread_pointer, arm_structure_size_boundary, struct
3030 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3031 struct abi_name, arm_all_abis): Remove.
3032 (arm_option_override) Don't process most enumerated option values here.
3033 Don't process target_fpe_name here. Work with integer not string for
3034 structure size boundary; use separate diagnostics for each case.
3035 * config/arm/arm.h (enum float_abi_type, enum
3036 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3038 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3039 arm_structure_size_boundary): Remove.
3040 * config/arm/arm.opt (mabi=): Use Enum and Init.
3041 (arm_abi_type): New Enum and EnumValue entries.
3042 (mfloat-abi=): Use Enum and Init.
3043 (float_abi_type): New Enum and EnumValue entries.
3044 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3045 (mfp16-format=): Use Enum and Init.
3046 (arm_fp16_format_type): New Enum and EnumValue entries.
3047 (mstructure-size-boundary=): Use UInteger and Init.
3048 (mtp=): Use Enum and Init.
3049 (arm_tp_type): New Enum and EnumValue entries.
3051 2011-05-18 Richard Guenther <rguenther@suse.de>
3053 PR tree-optimization/49018
3054 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3055 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3056 gimple_has_side_effects.
3058 2011-05-18 Richard Guenther <rguenther@suse.de>
3060 * gimple.c (gimple_register_type_1): New function, split out from ...
3061 (gimple_register_type): ... here. Avoid infinite recursion.
3063 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3065 PR tree-optimization/41881
3066 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3067 reduction_chains along with a macro for its access.
3068 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3069 (destroy_loop_vec_info): Free reduction chains.
3070 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3071 (vect_is_slp_reduction): New function.
3072 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3073 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3074 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3075 definition types for reduction chains.
3076 (vect_supported_load_permutation_p): Don't allow permutations for
3078 (vect_analyze_slp_instance): Support reduction chains.
3079 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3080 (vect_get_constant_vectors): Handle reduction chains.
3081 (vect_schedule_slp_instance): Mark the first statement of the
3082 reduction chain as reduction.
3084 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3086 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3087 names for group elements access.
3088 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3089 reduction chains as well. Remove data reference and interleaving
3090 related words from the fields names.
3091 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3093 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3094 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3095 vect_update_interleaving_chain, vect_same_range_drs,
3096 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3097 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3098 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3099 vect_analyze_group_access, vect_analyze_data_ref_access,
3100 vect_create_data_ref_ptr, vect_transform_strided_load,
3101 vect_record_strided_load_vectors): Likewise.
3102 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3103 vect_model_load_cost, vectorizable_store, vectorizable_load,
3104 vect_remove_stores, new_stmt_vec_info): Likewise.
3105 * tree-vect-slp.c (vect_build_slp_tree,
3106 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3108 2011-05-18 Richard Guenther <rguenther@suse.de>
3111 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3112 operand verification.
3113 (verify_gimple_assign_binary): Likewise.
3114 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3115 to non-1-precision BOOLEAN_TYPEs.
3117 2011-05-18 Tom de Vries <tom@codesourcery.com>
3120 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3122 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3124 PR tree-optimization/49000
3125 * tree-ssa.c (execute_update_addresses_taken): Call
3126 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3127 be rewritten and decl has been marked for renaming, reset
3130 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3132 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3133 enum_opts_set when testing if attributes have set -mfpmath=.
3135 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3137 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3139 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3141 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3143 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3144 id.transform_lang_insert_block with NULL.
3146 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3148 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3149 (output_fp_compare): Change args 3 and 4 to bool.
3150 (ix86_expand_call): Change arg 6 to bool.
3151 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3152 (ix86_attr_length_vex_default): Change arg 3 to bool.
3153 * config/i386/i386.md: Update all uses.
3154 * config/i386/i386.c: Ditto.
3155 (ix86_flags_dependent): Change return type to bool.
3157 2011-05-17 Richard Guenther <rguenther@suse.de>
3159 * gimple.c (type_hash_pair_compare): Fix comparison.
3161 2011-05-17 Richard Guenther <rguenther@suse.de>
3163 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3164 case some more, fix final hash value of the non-singleton case.
3166 2011-05-17 Richard Guenther <rguenther@suse.de>
3170 2011-05-16 Richard Guenther <rguenther@suse.de>
3172 * gimple.c (gimple_types_compatible_p_1): Use names of the
3173 type itself, not its main variant.
3174 (iterative_hash_gimple_type): Likewise.
3176 2011-05-17 Richard Guenther <rguenther@suse.de>
3178 * gimple.c (gimple_register_canonical_type): Use the main-variant
3179 leader for computing the canonical type.
3181 2011-05-17 Nick Clifton <nickc@redhat.com>
3183 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3186 * config/rx/rx.md: Add peephole to remove redundant extensions
3188 (bitset_in_memory): Use rx_restricted_mem_operand.
3189 (bitinvert_in_memory): Likewise.
3190 (bitclr_in_memory): Likewise.
3192 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3193 Nick Clifton <nickc@redhat.com>
3195 * config/rx/rx.md: Add peepholes to match a register move followed
3196 by a comparison of the moved register. Replace these with an
3197 addition of zero that does both actions in one instruction.
3199 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3202 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3203 predicate to allow CONST_INT.
3204 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3206 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3208 * opts-common.c (opt_enum_arg_to_value): New.
3209 * opts.h (opt_enum_arg_to_value): Declare.
3210 * config/i386/i386.opt (fpmath): Remove.
3211 (mfpmath=): Use Enum, Init and Save.
3212 (fpmath_unit): New Enum and EnumValue entries.
3213 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3214 name for function fpmath state.
3215 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3216 * config/i386/i386.c: Include diagnostic.h.
3217 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3218 (ix86_target_string): Take enum fpmath_unit value instead of string.
3219 (ix86_debug_options): Update call to ix86_target_string.
3220 (ix86_option_override_internal): Don't process fpmath strings here.
3221 (x86_function_specific_save, ix86_function_specific_restore):
3222 Don't handle fpmath state specially.
3223 (ix86_function_specific_print): Pass fpmath state to
3224 ix86_target_string instead of printing in this function.
3225 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3226 Handle enum attributes.
3227 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3228 (ix86_valid_target_attribute_tree): Update option_strings
3229 handling. Handle fpmath as enum option.
3230 (ix86_can_inline_p): Update field names for function fpmath state.
3231 (ix86_expand_builtin): Update call to ix86_target_string.
3232 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3233 (ix86_fpmath): Remove.
3234 * config/i386/t-i386 (i386.o): Update dependencies.
3236 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3238 PR preprocessor/48677
3239 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3240 from decoded_options[0], not from itself.
3242 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3244 * config/i386/constraints.md (z): New constraint.
3245 * config/i386/i386.c (c): New mode attribute.
3246 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3247 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3248 constraint for operand 0.
3249 (*call_vzeroupper): Ditto.
3250 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3251 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3252 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3253 Use "lzm" constraint for operand 0.
3254 (*call_pop_vzeroupper): Ditto.
3255 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3256 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3257 constraint for operand 0.
3258 (*sibcall_vzeroupper): Ditto.
3259 (*sibcall_rex64_ms_sysv): Ditto.
3260 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3261 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3262 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3263 (*sibcall_pop_vzeroupper): Ditto.
3264 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3265 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3266 mode iterator. Use "<c>zm" constraint for operand 1.
3267 (*call_value_vzeroupper): Ditto.
3268 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3270 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3271 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3272 *call_value_pop_1. Use "lzm" constraint for operand 1.
3273 (*call_value_pop_vzeroupper): Ditto.
3274 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3275 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3276 mode iterator. Use "Uz" constraint for operand 1.
3277 (*sibcall_value_vzeroupper): Ditto.
3278 (*sibcall_value_rex64_ms_sysv): Ditto.
3279 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3280 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3281 constraint for operand 1.
3282 (*sibcall_value_pop_vzeroupper): Ditto.
3283 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3284 and "z" constraint for operand 2.
3285 (*tls_global_dynamic_32_gnu): Ditto.
3286 (*tls_local_dynamic_base_32_gnu): Ditto.
3287 (*tls_local_dynamic_base_64): Ditto.
3288 (*tls_local_dynamic_32_once): Ditto.
3289 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3291 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3293 2011-05-16 Richard Guenther <rguenther@suse.de>
3295 * gimple.c (gimple_types_compatible_p_1): Use names of the
3296 type itself, not its main variant.
3297 (iterative_hash_gimple_type): Likewise.
3299 2011-05-16 Richard Guenther <rguenther@suse.de>
3301 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3302 always visit pointer target and function result and argument types.
3304 2011-05-16 Jason Merrill <jason@redhat.com>
3307 * tree-inline.c (copy_statement_list): Put back recursion.
3309 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3313 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3314 * config/avr/avr.md ("*ior<mode>qi.byte0",
3315 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3317 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3320 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3321 register is needed for a function argument.
3323 2011-05-16 Richard Guenther <rguenther@suse.de>
3325 * gimple.c (struct type_hash_pair): New type.
3326 (type_hash_pair_compare): New function.
3327 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3329 2011-05-16 Revital Eres <revital.eres@linaro.org>
3331 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3333 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3335 * config/i386/i386.md (floating point move splitters): Fix
3336 usage of standard_80387_constant_p.
3337 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3339 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3341 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3343 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3345 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3346 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3347 (tree_ssa_lim_finalize): Likewise.
3349 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3351 * config/i386/constraint.md (Yd, Yx): New register constraints.
3352 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3353 Yd conditional register constraint.
3354 (*movtf_internal): Use standard_sse_constant_opcode.
3355 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3356 Yx conditional register constraint.
3357 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3358 Yd conditional register constraint. Use standard_sse_constant_p to
3359 check for valid SSE constants and call standard_sse_constant_opcode to
3361 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3362 constants and call standard_sse_constant_opcode to output SSE insn.
3363 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3364 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3365 optimize_size is set.
3366 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3368 2011-05-14 Tobias Burnus <burnus@net-b.de>
3370 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3372 2011-05-13 Martin Jambor <mjambor@suse.cz>
3374 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3375 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3376 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3377 (evaluate_conditions_for_ipcp_clone): Removed.
3378 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3379 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3380 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3382 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3384 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3385 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3386 lieu of MAY_HAVE_DEBUG_STMTS.
3387 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3388 debug statements if !MAY_HAVE_DEBUG_STMTS.
3390 2011-05-13 Martin Thuresson <martint@google.com>
3392 PR gcov-profile/47793
3393 * libgcov.c (gcov_exit): Support relative profile paths.
3394 * doc/invoke.texi (-fprofile-dir): Update for above change.
3396 2011-05-13 Richard Guenther <rguenther@suse.de>
3398 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3399 type-pair caching, do not compare hashes.
3401 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3404 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3405 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3407 2011-05-13 Kai Tietz <ktietz@redhat.com>
3409 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3410 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3411 compatible type for TRUTH_NOT_EXPR.
3413 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3415 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3416 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3417 can_create_pseudo_p ().
3419 2011-05-13 Richard Guenther <rguenther@suse.de>
3422 * gimple.c (iterative_hash_gimple_type): Revert change in
3423 pointer target and function result and argument hashing.
3425 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3427 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3428 (*movxf_internal_nointeger): Ditto.
3429 (*movdf_internal_rex64): Ditto.
3430 (*movdf_internal): Ditto.
3431 (*movdf_internal_nointeger): Ditto.
3432 (*movsf_internal): Ditto.
3433 (sincos splitters): Use can_create_pseudo ().
3435 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3437 * config/i386/i386-opts.h: New.
3438 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3439 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3440 ix86_section_threshold): Remove.
3441 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3442 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3444 (ix86_option_override_internal): Don't decode strings for options
3445 other than -march=, -mtune= and -mfpmath=. Don't allow for
3446 __attribute__ uses in remaining diagnostics for options with
3447 string arguments. Don't check for integer arguments being negative.
3448 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3449 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3450 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3451 ix86_branch_cost, ix86_section_threshold): Remove.
3452 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3454 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3456 (masm=): Use Enum and Init.
3457 (asm_dialect): New Enum and EnumValue entries.
3458 (mbranch-cost=): Use UInteger.
3459 (mlarge-data-threshold=): Use UInteger and Init.
3460 (mcmodel=): Use Enum and Init.
3461 (cmodel): New Enum and EnumValue entries.
3462 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3463 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3464 mregparm=): Use UInteger.
3465 (mstringop-strategy=): Use Enum and Init.
3466 (stringop_alg): New Enum and EnumValue entries.
3467 (mtls-dialect=): Use Enum and Init.
3468 (tls_dialect): New Enum and EnumValue entries.
3469 (mabi=): Use Enum and Init.
3470 (calling_abi): New Enum and EnumValue entries.
3471 (mveclibabi=): Use Enum and Init.
3472 (ix86_veclibabi): New Enum and EnumValue entries.
3474 2011-05-13 Nick Clifton <nickc@redhat.com>
3476 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3477 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3479 2011-05-13 Kai Tietz <ktietz@redhat.com>
3482 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3483 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3484 (gimple_boolify): Check for cast for boolean_type_node instead for
3487 2011-05-13 Richard Guenther <rguenther@suse.de>
3489 PR tree-optimization/48172
3490 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3491 multiplying by number of iterations for equal step.
3492 (vect_create_cond_for_alias_checks): Likewise.
3494 2011-05-13 Andreas Schwab <schwab@redhat.com>
3496 * configure.ac: Use AS_HELP_STRING throughout.
3497 * configure: Regenerate.
3499 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3501 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3502 (ix86_emit_restore_regs_using_mov): Likewise.
3503 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3505 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3507 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3508 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3509 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3510 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3511 RTX_OK_FOR_OLO10_P): ...here.
3512 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3515 2011-05-12 Kai Tietz <ktietz@redhat.com>
3517 * gimplify.c (gimple_boolify): Re-boolify expression
3518 arguments even if expression type is of kind BOOLEAN_TYPE.
3519 (gimplify_boolean_expr): Removed.
3520 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3521 and XOR. Additional take care that we keep expression's type.
3522 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3523 of TRUTH_AND|OR|XOR_EXPR.
3525 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3527 PR tree-optimization/48975
3528 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3529 on all bbs here and free and clear ifc_bbs at the end.
3531 2011-05-12 Richard Guenther <rguenther@suse.de>
3533 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3534 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3535 until after simple checks.
3536 (gimple_types_compatible_p): Likewise.
3537 (iterative_hash_gimple_type): Always hash pointer targets
3538 and function return and argument types.
3539 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3540 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3541 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3542 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3543 completely in the simple compare section.
3544 (gimple_register_canonical_type): Query the cache again after
3547 2011-05-12 Richard Guenther <rguenther@suse.de>
3549 PR tree-optimization/48172
3550 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3551 the number of iterations from the segment size calculation.
3552 (vect_create_cond_for_alias_checks): Adjust.
3554 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3557 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3558 if validate_subreg fails.
3560 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3562 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3563 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3566 2011-05-12 DJ Delorie <dj@redhat.com>
3568 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3569 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3570 created builtin into rx_builtins array.
3571 (rx_builtin_decl): New function.
3572 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3574 2011-05-12 DJ Delorie <dj@redhat.com>
3575 Nick Clifton <nickc@redhat.com>
3577 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3578 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3579 (rx_is_legitimate_address): Add pre-decrement and post-increment
3580 addressing in HImode and QImode. Fix test for out of range
3582 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3583 (rx_align_for_label): Test label before extracting its usage count.
3584 (rx_adjust_insn_lengths): Fix selection of insn codes.
3585 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3587 2011-05-11 Jason Merrill <jason@redhat.com>
3589 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3591 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3593 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3594 reindent the subsequent block.
3596 2011-05-11 Satoru Takabayashi <satorux@google.com>
3597 Paul Pluzhnikov <ppluzhnikov@google.com>
3599 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3600 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3601 * config.in: Add LINKER_HASH_STYLE.
3602 * configure.ac: Add --with-linker-hash-style.
3603 * configure: Regenerate.
3605 2011-05-11 Richard Guenther <rguenther@suse.de>
3608 * gimple.c (iterative_hash_canonical_type): Fix typo.
3610 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3612 * config/i386/i386.c (legitimize_tls_address)
3613 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3614 expanders directly for TARGET_GNU2_TLS. Determine pic and
3615 __tls_get_addr symbol reference here. Update call to
3616 gen_tls_global_dynamic_{32,64} for added arguments.
3617 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3618 expanders directly for TARGET_GNU2_TLS. Determine
3619 __tls_get_addr symbol reference here. Update call to
3620 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3621 unique UNSPEC REG_EQUIV to libcall block.
3622 (ix86_tls_get_addr): Declare static.
3623 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3624 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3625 Do not determine pic and __tls_get_addr symbol reference here. Do not
3626 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3627 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3628 (tls_global_dynamic_64): Add operand 2. Do not determine
3629 __tls_get_addr symbol reference here. Do not call
3630 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3631 (tls_local_dynamic_base64): Ditto for operand 1.
3633 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3635 * function.c (expand_function_start): Initialize stack_check_probe_note
3636 only if the generic stack checking mechanism is used.
3638 2011-05-11 Richard Guenther <rguenther@suse.de>
3640 PR tree-optimization/15256
3641 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3642 (A & B) | C, combine (A op CST1) op CST2.
3643 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3644 visit assigns that have uses.
3646 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3648 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3649 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3650 (unpack_ts_type_common_value_fields): ...this. Update comment.
3651 (unpack_value_fields): Adjust for renaming.
3652 (lto_input_ts_type_tree_pointers): Split into...
3653 (lto_input_ts_type_common_tree_pointer): ...this and...
3654 (lto_input_ts_type_non_common_tree_pointers): ...this.
3655 (lto_input_tree_pointers): Adjust for above split.
3656 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3657 (pack_ts_type_common_value_fields): ...this. Update comment.
3658 (lto_output_ts_type_tree_pointers): Split into...
3659 (lto_output_ts_type_common_tree_pointers): ...this and...
3660 (lto_output_ts_type_non_common_tree_pointers): ...this.
3661 (lto_output_tree_pointers): Adjust for above split.
3662 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3663 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3664 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3665 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3667 (struct tree_type): Split into...
3668 (struct tree_type_common: ...this and...
3669 (struct tree_type_with_lang_specific): ...this and...
3670 (struct tree_type_non_common): ...this. Adjust accessor macros
3672 (TYPE_VALUES_RAW): Define.
3673 (union tree_node): Update for above changes.
3674 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3676 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3677 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3678 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3679 * treestructu.def (TS_TYPE): Remove.
3680 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3683 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3686 * tree-ssa.c (reset_debug_uses): New function.
3687 * tree-flow.h (reset_debug_uses): New prototype.
3688 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3689 * tree-loop-distribution.c (generate_loops_for_partition): Call
3690 reset_debug_uses on the stmts that will be removed. Keep around
3691 all debug stmts, don't count them as bits in partition bitmap.
3692 (generate_builtin): Don't count debug stmts or labels as bits in
3695 2011-05-11 Richard Guenther <rguenther@suse.de>
3697 * gimple.c (gimple_type_hash_1): Merge with ...
3698 (gimple_type_hash): ... this.
3699 (gtc_visit): Remove mode parameter and simplify accordingly.
3700 (gimple_types_compatible_p_1): Likewise.
3701 (gimple_types_compatible_p): Likewise.
3702 (iterative_hash_gimple_type): Likewise.
3704 (gimple_type_eq): Adjust.
3706 2011-05-11 Revital Eres <revital.eres@linaro.org>
3708 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3709 enters the branch create an anti edge in the opposite direction
3710 to prevent the creation of reg-moves.
3711 * modulo-sched.c: Adjust comment to reflect the fact we are
3712 scheduling closing branch.
3713 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3714 (stage_count): New field in struct partial_schedule.
3715 (calculate_stage_count): New function.
3716 (normalize_sched_times): Rename to reset_sched_times and handle
3717 incrementing the sched time of the nodes by a constant value
3718 passed as parameter.
3719 (duplicate_insns_of_cycles): Skip closing branch.
3720 (sms_schedule_by_order): Schedule closing branch.
3721 (ps_insn_find_column): Handle closing branch.
3722 (sms_schedule): Call reset_sched_times and adjust the code to
3723 support scheduling of the closing branch.
3724 (ps_insert_empty_row): Update calls to normalize_sched_times
3725 and rotate_partial_schedule functions.
3727 2011-05-11 Richard Guenther <rguenther@suse.de>
3730 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3732 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3734 * opts.c (finish_options): Move warning settings from process_options.
3735 * toplev.c (process_options): Move warning settings to finish_options.
3737 2011-05-11 Richard Guenther <rguenther@suse.de>
3739 PR tree-optimization/18041
3740 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3741 (simplify_bitwise_binary): ... this. Handle operand conversions
3742 by applying them to the result instead.
3743 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3745 2011-05-11 Richard Guenther <rguenther@suse.de>
3747 * gimple.c (gimple_canonical_types_compatible_p): Split out
3748 from gimple_types_compatible_p and friends. Do not recurse
3749 to pointed-to types.
3750 (gimple_canonical_type_eq): Use it.
3751 (iterative_hash_canonical_type): Split out from
3752 iterative_hash_gimple_type and friends. Do not recurse
3753 to pointed-to types.
3754 (gimple_canonical_type_hash): Use it, allocate the hash here.
3756 2011-05-11 Revital Eres <revital.eres@linaro.org>
3758 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3761 2011-05-11 Revital Eres <revital.eres@linaro.org>
3763 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3764 instead of PREV_INSN.
3766 2011-05-11 Revital Eres <revital.eres@linaro.org>
3768 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3769 * loop-doloop.c (doloop_condition_get): Likewise.
3770 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3772 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3774 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3776 * tree.def (CASE_LABEL_EXPR): Add an operand.
3777 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3779 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3781 * c-decl.c (c_override_global_bindings_to_false): Remove.
3782 (global_bindings_p): Don't check
3783 c_override_global_bindings_to_false.
3784 * c-tree.h (c_override_global_bindings_to_false): Remove.
3785 * c-typeck.c (composite_type): Don't set
3786 c_override_global_bindings_to_false.
3788 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3790 PR target/48857, 48495
3791 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3793 (VSX_MOVE_MODE): Ditto.
3794 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3795 VSX vector types. Add V2DImode.
3796 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3797 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3798 (MODES_TIEABLE_P): Ditto.
3800 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3801 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3803 (init_cumulative_args): Ditto.
3804 (rs6000_function_arg_boundary): Ditto.
3805 (rs6000_function_arg_advance_1): Ditto.
3806 (rs6000_function_arg): Ditto.
3807 (rs6000_function_ok_for_sibcall): Ditto.
3808 (emit_frame_save): Ditto.
3809 (rs6000_function_value): Ditto.
3810 (rs6000_libcall_value): Ditto.
3812 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3814 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3815 i386/darwin-lib.h to $libgcc_tm_file.
3816 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3818 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3820 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3822 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3824 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3825 * config/rs6000/rs6000-tables.opt: New file (generated).
3826 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3827 rs6000/rs6000-tables.opt to extra_options.
3828 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3829 * config/rs6000/rs6000.c (rs6000_select): Remove.
3830 (processor_target_table): Move contents to rs6000-cpus.def.
3831 (darwin_rs6000_override_options): Check
3832 global_options_set.x_rs6000_cpu_index instead of
3833 rs6000_select[1].string.
3834 (rs6000_option_override_internal): Likewise.
3835 (rs6000_handle_option): Don't assert that global structures are in
3836 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3837 (rs6000_default_cpu): New variable.
3838 (rs6000_file_start): Set it instead of local default_cpu. Check
3839 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3840 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3841 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3842 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3843 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3844 rs6000_select): Remove.
3845 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3847 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3848 * config/rs6000/t-rs6000
3849 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3850 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3851 global_options_set.x_rs6000_cpu_index instead of
3852 rs6000_select[1].string.
3853 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3854 global_options_set.x_rs6000_cpu_index instead of
3855 rs6000_select[1].string.
3857 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3859 * config.gcc (libgcc_tm_file): Define instead of including files
3860 from ../../libgcc/config/ in tm_file.
3861 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3862 * configure: Regenerate.
3863 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3864 libgcc_tm.h, cs-libgcc_tm.h): New.
3865 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3866 (clean): Remove libgcc_tm.h.
3867 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3868 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3869 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3871 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3874 * config/avr/avr.c (avr_ret_register): Return unsigned int
3876 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3877 it to avr_libcall_value.
3878 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3880 (avr_expand_binop_builtin): Ditto.
3881 (avr_expand_unop_builtin): Ditto.
3883 2011-05-10 DJ Delorie <dj@redhat.com>
3885 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3886 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3887 * config/rx/rx.c (rx_align_for_label): Add label and
3888 uses_threshold parameters. Do not align when the label is not
3890 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3892 2011-05-10 Richard Guenther <rguenther@suse.de>
3894 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3895 a series of conversions and apply foldings similar to what
3897 (tree_ssa_forward_propagate_single_use_vars): Call it.
3899 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3901 PR tree-optimization/48611
3902 PR tree-optimization/48794
3903 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3904 referenced from RESX or EH_DISPATCH arguments.
3907 * dfp.c (decimal_to_decnumber): Handle conversion from
3908 dconst{1,2,m1,half}.
3910 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3912 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3913 for !flag_prefer_avx128.
3914 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3916 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3918 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3919 (fold_ternary_loc): Use expr_location_or.
3921 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3924 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3925 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3926 Pmode and mem_mode is not VOIDmode.
3928 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3930 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3931 TYPE_QUAL_RESTRICT): Convert to enum.
3933 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3935 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3936 (const_pow2_1_to_8_operand): Ditto.
3937 (const_pow2_1_to_128_operand): Ditto.
3938 (const_pow2_1_to_32768_operand): Ditto.
3939 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3940 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3941 in insn constraint to check integer value of operand 3.
3942 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3944 (PINSR_MODE): New mode iterator.
3945 (sse2p4_1): New mode attribute.
3946 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3947 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3948 iterator. Use const_int_operand instead of
3949 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3950 exact_log2 in insn constraint to check integer value of operand 3.
3952 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3954 * config/i386/sse.md (blendbits): Remove mode attribute.
3955 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3956 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3957 Check integer value of operand 3 in insn constraint.
3959 2011-05-09 Richard Guenther <rguenther@suse.de>
3961 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3963 (lto_symtab_merge): Likewise. Do not register types here.
3964 (lto_symtab_merge_decls_2): Likewise.
3965 (lto_symtab_merge_decls_1): Likewise.
3966 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3967 * gimple.c (enum gtc_mode): Declare.
3968 (gimple_types_compatible_p): Make static.
3970 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3972 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3973 temporary register to match Pmode.
3975 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3977 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3978 and *vec_concatv4si_1_avx.
3980 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3982 PR rtl-optimization/48927
3983 * ira-conflicts.c (commutative_constraint_p): Use
3984 recog_data.alternative_enabled_p to disable alternatives where
3985 "enabled" attribute is false.
3986 (get_dup_num): Ditto.
3987 * ira-lives.c (single_reg_class): Ditto.
3988 (ira_implicitly_set_insn_hard_regs): Ditto.
3990 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3992 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3993 (dataflow_set_preserve_mem_locs): Likewise.
3995 2011-05-09 Philipp Thomas <pth@suse.de>
3997 * config/mep/mep.c (mep_validate_vliw): Syntax description
3998 should not be translated.
4000 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4002 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4003 * config/mips/mips-tables.opt: New file (generated).
4004 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4005 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4006 MIPS_ARCH_OPTION_NATIVE): Define.
4007 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4009 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4010 mips_parse_cpu): Remove.
4011 (mips_cpu_info_from_opt, mips_default_arch): New.
4012 (mips_handle_option): Don't assert that global structures are in
4013 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4014 (mips_option_override): Use new variables and functions to set
4015 state of these options. Use strcmp to check for individual CPU names.
4016 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4018 * config/mips/mips.opt (march=): Use ToLower and Enum.
4019 (mips): Use ToLower, Enum and Var.
4020 (mtune=): Use ToLower and Enum.
4021 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4023 2011-05-08 Jan Hubicka <jh@suse.cz>
4025 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4026 Arrange type pairs to be UID ordered.
4027 (gimple_lookup_type_leader): Make inline.
4029 2011-05-09 Nick Clifton <nickc@redhat.com>
4032 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4036 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4039 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4041 * combine.c (simplify_comparison): Abstract out parts into...
4042 (simplify_compare_const): ... new function.
4043 (try_combine): Generalize parallel arithmetic/compare combining
4044 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4046 2011-05-08 Jan Hubicka <jh@suse.cz>
4048 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4049 (cgraph_create_virtual_clone): Call hooks once virtual clone
4051 * cgraph.h (cgraph_clone_node): Update prototype.
4052 * ipa-cp.c (ipcp_estimate_growth): Use
4053 estimate_ipcp_clone_size_and_time.
4054 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4055 * lto-cgraph.c (input_node): Update.
4056 * ipa-inline.c (recursive_inlining): Update.
4057 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4058 (evaluate_conditions_for_known_args): Break out from ...
4059 (evaluate_conditions_for_edge): ... here.
4060 (evaluate_conditions_for_ipcp_clone): New function.
4061 (inline_node_duplication_hook): Update clone summary based
4063 (estimate_callee_size_and_time): Rename to ...
4064 (estimate_node_size_and_time): take NODE instead of EDGE;
4065 take POSSIBLE_TRUTHS as argument.
4066 (estimate_callee_size_and_time): Update.
4067 (estimate_ipcp_clone_size_and_time): New function.
4068 (do_estimate_edge_time): Update.
4070 2011-05-08 Richard Guenther <rguenther@suse.de>
4074 * expmed.c (expand_shift_1): Compute adjusted constant shift
4077 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4079 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4081 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4083 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4085 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4087 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4089 2011-05-07 Jan Hubicka <jh@suse.cz>
4091 * ipa-inline-transform.c (inline_call): Account when program size
4093 * ipa-inline.c (relative_time_benefit): New function.
4094 (edge_badness): Reorganize to be power 2 based; fix thinko when
4095 computing badness for negative growth; update comments to match
4096 reality; better dumps.
4098 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4100 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4101 type to bool and adjust comment.
4102 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4103 (fold_mathfn_compare): Remove calls to global_bindings_p.
4104 (fold_inf_compare): Likewise.
4105 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4106 * c-tree.h (global_bindings_p): Adjust prototype.
4107 * c-decl.c (global_bindings_p): Return bool and simplify.
4109 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4111 PR tree-optimization/48837
4112 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4113 when accumulator transformation is performed.
4115 2011-05-06 Jan Hubicka <jh@suse.cz>
4117 * i386.h (ix86_tune_indices): Add
4118 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4119 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4120 * i386.c (initial_ix86_tune_features): Add
4121 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4122 (software_prefetching_beneficial_p): Remove predicate.
4123 (ix86_option_override_internal): Use new macro.
4125 2011-05-06 Jan Hubicka <jh@suse.cz>
4127 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4129 2011-05-06 Jan Hubicka <jh@suse.cz>
4131 * cgraph.c (cgraph_add_thunk): Create real function node instead
4132 of alias node; finalize it and mark needed/reachale; arrange visibility
4133 to be right and add it into the corresponding same comdat group list.
4134 (dump_cgraph_node): Dump thunks.
4135 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4136 cgraph_function_with_gimple_body_p,
4137 cgraph_first_function_with_gimple_body,
4138 cgraph_next_function_with_gimple_body): New functions.
4139 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4141 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4142 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4143 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4144 devirtualization when optimizing.
4145 (verify_cgraph_node): Verify thunks.
4146 (cgraph_analyze_function): Analyze thunks.
4147 (cgraph_mark_functions_to_output): Output thunks only in combination
4148 with function they are assigned to.
4149 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4150 alias into normal node.
4151 (assemble_thunks): New functoin.
4152 (cgraph_expand_function): Use it.
4153 * lto-cgraph.c (lto_output_node): Stream thunks.
4154 (input_overwrite_node): Stream in thunks.
4155 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4156 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4157 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4158 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4159 (inline_analyze_function): Do not care about thunk jump functions.
4160 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4161 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4162 cgraph_function_with_gimple_body_p.
4163 * passes.c (do_per_function_toporder): Use
4164 cgraph_function_with_gimple_body_p.
4165 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4166 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4167 (function_called_by_processed_nodes_p): Likewise.
4169 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4171 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4172 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4174 (mabi=): Replace with separate entries for mabi=altivec,
4175 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4176 mabi=ieeelongdouble and mabi=ibmlongdouble.
4177 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4178 check for -mabi=spe without SPE ABI support here.
4179 (rs6000_handle_option): Replace OPT_mabi_ handling with
4180 OPT_mabi_altivec and OPT_mabi_spe handling.
4182 2011-05-06 Cary Coutant <ccoutant@google.com>
4184 * dwarf2out.c (contains_subprogram_definition): New function.
4185 (should_move_die_to_comdat): Call it.
4187 2011-05-06 Jeff Law <law@redhat.com>
4189 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4190 remove_ctrl_stmt_and_useless_edges.
4191 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4192 (fixup_template_block, thread_single_edge): Likewise.
4193 (mark_threaded_blocks): Use THREAD_TARGET.
4195 2011-05-06 Alan Modra <amodra@gmail.com>
4198 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4199 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4201 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4203 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4204 constraint modifier to "r".
4206 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4208 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4209 fall through for OPT_mcmodel_.
4211 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4213 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4215 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4217 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4220 * config/arm/arm.opt (marm): Document it.
4221 (mthumb): Reject negative variant.
4223 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4226 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4227 Fix typo in "ccvt" variable name.
4229 2011-05-06 Tristan Gingold <gingold@adacore.com>
4232 * config/vms/vms-ar.c (main): Remove cwd variable.
4234 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4237 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4239 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4241 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4242 * gimplify.c (gimplify_switch_expr): Likewise.
4243 * omp-low.c (expand_omp_sections): Likewise.
4244 * tree-eh.c (lower_try_finally_switch): Likewise.
4245 (lower_eh_dispatch): Likewise.
4246 * tree.h (build_case_label): Declare.
4247 * tree.c (build_case_label): Define.
4249 2011-05-05 Jason Merrill <jason@redhat.com>
4252 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4253 (copy_statement_list): Don't recurse.
4254 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4257 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4259 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4260 through from -mfpu= handling.
4261 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4263 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4265 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4268 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4270 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4272 (hppa[12]*-*-hpux11*): Ditto.
4273 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4274 * config/ia64/hpux-unix2003.h: New.
4275 * config/pa/pa-hpux1131.opt: New.
4276 * config/pa/pa-hpux1131.h: New.
4277 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4278 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4279 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4281 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4284 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4285 instead of mode as 3rd argument to recursive call.
4286 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4287 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4289 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4290 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4291 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4292 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4294 2011-05-05 Julian Brown <julian@codesourcery.com>
4296 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4297 parenthesis in D-register case.
4299 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4301 * opt-functions.awk (var_type_struct): Handle Enum options.
4302 * optc-gen.awk: Don't check range of variables of character type.
4303 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4304 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4305 rs6000_sdata_name, rs6000_explicit_options): Remove.
4306 (rs6000_option_override_internal): Check for -malign-power here.
4307 Use global_options_set instead of rs6000_explicit_options.
4308 (rs6000_parse_fpu_option): Remove.
4309 (rs6000_handle_option): Access variables via opts and opts_set
4310 pointers. Use error_at and warning_at. Add fall-through
4311 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4312 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4313 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4314 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4315 here. Don't use rs6000_parse_fpu_option.
4316 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4317 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4318 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4320 (mspe): Use Var and Save.
4321 (mtraceback=): Use Enum and Var.
4322 (rs6000_traceback_type): New Enum and EnumValue entries.
4323 (mfloat-gprs=): Use Enum, Var and Save.
4324 (rs6000_float_gprs): New Enum and EnumValue entries.
4325 (mlong-double-): use Var and Save.
4326 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4327 (malign-): Use Enum and Var.
4328 (rs6000_alignment_flags): New Enum and EnumValue entries.
4330 (fpu_type_t): New Enum and EnumValue entries.
4331 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4332 global_options_set instead of rs6000_explicit_options.
4333 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4334 global_options_set instead of rs6000_explicit_options.
4335 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4336 global_options_set instead of rs6000_explicit_options.
4337 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4338 global_options_set instead of rs6000_explicit_options.
4339 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4340 global_options_set instead of rs6000_explicit_options.
4341 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4342 global_options_set instead of rs6000_explicit_options.
4343 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4345 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4346 global_options_set instead of rs6000_explicit_options.
4347 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4348 (rs6000_cmodel): New Enum and EnumValue entries.
4349 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4350 global_options_set instead of rs6000_explicit_options.
4351 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4352 (mtls-size=): Use Enum and Var.
4353 (rs6000_tls_size): New Enum and EnumValue entries.
4355 2011-05-05 Michael Matz <matz@suse.de>
4357 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4358 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4359 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4360 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4361 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4362 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4363 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4364 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4365 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4366 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4367 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4368 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4369 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4370 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4371 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4372 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4374 2011-05-05 Richard Guenther <rguenther@suse.de>
4376 * expmed.c (expand_variable_shift): Rename to ...
4377 (expand_shift_1): ... this. Take an expanded shift amount.
4378 For rotates recurse directly not building trees for the shift amount.
4379 (expand_variable_shift): Wrap around expand_shift_1.
4380 (expand_shift): Adjust.
4382 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4384 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4386 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4388 * tree.h (get_pending_sizes): Remove prototype.
4389 (put_pending_size): Likewise.
4390 (put_pending_sizes): Likewise.
4391 * stor-layout.c (pending_sizes): Delete.
4392 (get_pending_sizes): Likewise.
4393 (put_pending_size): Likewise.
4394 (put_pending_sizes): Likewise.
4395 (variable_size): Do not call put_pending_size and tidy up.
4396 * function.h (struct function): Remove dont_save_pending_sizes_p.
4397 * lto-streamer-in.c (input_function): Do not stream it.
4398 * lto-streamer-out.c (output_function): Likewise.
4399 * tree-inline.c (initialize_cfun): Do not copy it.
4400 * c-decl.c (store_parm_decls): Do not set it.
4401 * omp-low.c (create_task_copyfn): Likewise.
4402 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4404 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4406 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4408 (*movdf_internal): Ditto.
4409 (*movdf_internal_nointeger): Ditto.
4410 (*movsf_internal): Ditto.
4412 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4414 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4415 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4416 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4417 (c_variable_size): Remove.
4418 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4419 call put_pending_sizes.
4420 (get_parm_info): Add parameter expr. Use it to set
4421 arg_info->pending_sizes.
4422 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4424 * c-parser.c (c_parser_parms_declarator): Update call to
4425 c_parser_parms_list_declarator.
4426 (c_parser_parms_list_declarator): Take parameter expr. Update
4427 call to push_parm_decl. Update recursive call. Don't call
4428 get_pending_sizes. Update calls to get_parm_info.
4429 (c_parser_objc_method_definition): Update calls to
4430 c_parser_objc_method_decl and objc_start_method_definition.
4431 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4432 (c_parser_objc_method_decl): Add parameter expr. Update call to
4434 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4435 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4436 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4438 2011-05-05 Michael Hope <michael.hope@linaro.org>
4441 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4444 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4446 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4447 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4448 (spu_output_mi_thunk): New function.
4450 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4452 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4453 targetm.asm_out.print_operand.
4454 * config/sol2.c: Include target.h.
4456 2011-05-04 Jan Hubicka <jh@suse.cz>
4458 * ipa-inline.c (reset_edge_caches): New function.
4459 (update_caller_keys): Add check_inlinablity_for; do not
4460 reset edge caches; remove now unnecesary loop.
4461 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4462 (update_all_callee_keys): Likewise.
4463 (inline_small_functions): Sanity check cache; update code
4466 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4468 PR rtl-optimization/47612
4469 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4470 as the last insn of the sequence to be moved.
4472 2011-05-04 Tobias Burnus <burnus@net-b.de>
4475 * doc/invoke.texi (Ofast): Document that it
4476 enables Fortran's -fno-protect-parens.
4478 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4480 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4482 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4484 * stor-layout.c (variable_size): Do not issue errors.
4486 2011-05-04 Richard Guenther <rguenther@suse.de>
4488 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4489 for array-ref indices.
4490 (tree_coverage_counter_addr): Likewise.
4491 (build_fn_info_type): Use size_int for index types.
4492 (build_gcov_info): Likewise.
4494 2011-05-04 Richard Guenther <rguenther@suse.de>
4496 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4498 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4499 for constructor indices.
4500 (push_init_level): Likewise.
4502 2011-05-04 Richard Guenther <rguenther@suse.de>
4504 * explow.c (promote_mode): Move variable declarations before code.
4506 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4508 * tree.h (build_function_type_array): Declare.
4509 (build_varargs_function_type_array): Declare.
4510 (build_function_type_vec, build_varargs_function_type_vec): Define.
4511 * tree.c (build_function_type_array_1): New function.
4512 (build_function_type_array): New function.
4513 (build_varargs_function_type_array): New function.
4515 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4517 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4518 before setting STMT_VINFO_TYPE.
4520 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4522 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4523 instead of spu_pass_by_reference.
4525 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4527 * calls.c (emit_library_call_value_1): Invoke
4528 promote_function_mode hook on libcall arguments.
4529 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4530 argument being NULL.
4531 * targhooks.c (default_promote_function_mode): Lisewise.
4532 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4533 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4535 * doc/tm.texi: Document that TYPE argument might be NULL.
4537 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4539 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4541 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4544 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4546 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4548 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4549 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4551 * mips-tfile.c: ... here.
4552 Don't include coretypes.h, tm.h, filenames.h.
4553 (saber_stop): Remove definition and all calls.
4554 [__SABER__]: Remove.
4555 (__LINE__): Remove default.
4556 (Size_t, Ptrdiff_t): Remove definitions.
4557 Replace by size_t, ptrdiff_t.
4558 [!MIPS_DEBUGGING_INFO]: Remove.
4559 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4560 (progname): Add const.
4562 Replace all uses by static.
4563 (ALIGN_SYMTABLE_OFFSET): Remove default.
4564 * mips-tdump.c: Don't include coretypes.h, tm.h.
4565 Remove !MIPS_IS_STAB guard.
4566 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4567 $(TM_H), filenames.h dependencies.
4568 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4570 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4573 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4574 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4576 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4579 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4580 account and save/restore RETS.
4581 (PROFILE_BEFORE_PROLOGUE): Define.
4582 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4583 the push insn to use predecrement.
4585 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4588 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4590 2011-05-04 Nick Clifton <nickc@redhat.com>
4592 * config/mn10300/mn10300.c: Include cfgloop.h.
4594 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4595 Lcc or a FLcc insn into the instruction stream.
4596 (mn10300_block_contains_call): New function. Returns true if the
4597 given basic block contains a CALL insn.
4598 (mn10300_loop_contains_call_insn): New function. Returns true if
4599 the given loop contains a CALL insn.
4600 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4601 to use the SETLB and Lcc or FLcc insns.
4602 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4603 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4604 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4605 disable the SETLB optimization.
4606 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4607 __SETLB__ or __NO_SETLB__.
4608 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4609 (movsf_internal): Handle MDR register.
4610 (cmpsi): Make visible.
4611 (setlb): New pattern.
4613 (FLcc): New pattern.
4615 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4618 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4619 for reg<->xmm moves.
4620 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4621 (vec_concatv2di_rex64_sse): Ditto.
4622 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4623 (*vec_extractv2di_1_rex64): Ditto.
4626 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4628 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4630 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4632 2011-05-04 Richard Guenther <rguenther@suse.de>
4634 * tree.h (int_const_binop): Remove notrunc argument.
4635 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4636 create integer constants that are properly truncated.
4637 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4638 (const_binop): Remove zero notrunc argument to int_const_binop.
4639 (size_binop_loc): Likewise.
4640 (fold_div_compare): Likewise.
4641 (maybe_canonicalize_comparison_1): Likewise.
4642 (fold_comparison): Likewise.
4643 (fold_binary_loc): Likewise.
4644 (multiple_of_p): Likewise.
4645 * expr.c (store_constructor): Likewise.
4646 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4647 (maybe_fold_stmt_addition): Likewise.
4648 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4649 * stor-layout.c (layout_type): Likewise.
4650 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4651 * tree-sra.c (build_ref_for_offset): Likewise.
4652 (build_user_friendly_ref_for_offset): Likewise.
4653 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4654 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4655 * tree-ssa-loop-niter.c (inverse): Likewise.
4656 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4657 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4658 * tree-switch-conversion.c (check_range): Likewise.
4659 (build_constructors): Likewise.
4660 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4661 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4662 (extract_range_from_assert): Likewise.
4663 (vrp_int_const_binop): Likewise.
4664 (extract_range_from_binary_expr): Likewise.
4665 (extract_range_from_unary_expr): Likewise.
4666 (check_array_ref): Likewise.
4667 (find_case_label_range): Likewise.
4668 (simplify_div_or_mod_using_ranges): Likewise.
4669 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4670 comparing case labels for merging.
4672 2011-05-03 Mark Wielaard <mjw@redhat.com>
4674 * dwarf2out.c (debug_str_hash_forced): Removed.
4675 (gen_label_for_indirect_string): Removed.
4676 (get_debug_string_label): Removed.
4677 (AT_string_form): Generate label directly.
4678 (output_indirect_string): Test indirect_string_node for
4679 DW_FORM_strp instead of checking label and refcount.
4680 (prune_indirect_string): Removed.
4681 (prune_unused_types): Don't check debug_str_hash_forced or
4682 call prune_indirect_string.
4684 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4687 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4689 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4693 * combine.c (try_combine): Skip debug insns at m_split tests.
4695 2011-04-26 Mark Wielaard <mjw@redhat.com>
4698 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4699 when info_section_emitted.
4701 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4703 * config/mips/mips-opts.h: New.
4704 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4706 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4707 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4708 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4710 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4712 (mips_abi, mips_code_readable): Don't declare.
4713 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4714 (mabi=): Use Enum and Var.
4715 (mips_abi): New Enum and EnumValue entries.
4716 (mcode-readable=): Use Enum and Var.
4717 (mips_code_readable_setting): New Enum and EnumValue entries.
4718 (mr10k-cache-barrier=): Use Enum and Var.
4719 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4721 2011-05-03 Jan Hubicka <jh@suse.cz>
4723 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4724 replace hash by pointer map.
4725 (cgraph_node_set_element_def, cgraph_node_set_element,
4726 const_cgraph_node_set_element, varpool_node_set_element_def,
4727 varpool_node_set_element, const_varpool_node_set_element): Remove.
4728 (free_cgraph_node_set, free_varpool_node_set): New function.
4729 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4730 * tree-emutls.c: Free varpool node set.
4731 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4732 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4733 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4734 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4735 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4736 Move here from ipa.c; implement using pointer_map
4737 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4738 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4739 debug_cgraph_node_set, varpool_node_set_new,
4740 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4741 dump_varpool_node_set, debug_varpool_node_set):
4742 Move to ipa-uitls.c.
4743 * passes.c (ipa_write_summaries): Update.
4745 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4747 From Mike Frysinger:
4748 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4749 bf542/bf544/bf547/bf548/bf549.
4751 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4753 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4755 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4758 * config/bfin/bfin.md (MOVCC): New mode_macro.
4759 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4760 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4761 comments from generated assembly.
4763 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4766 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4767 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4768 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4769 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4770 * config/bfin/lib1funcs.asm (___muldi3): New function.
4772 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4774 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4775 build_function_type_list instead of build_function_type.
4776 Rearrange initialization of `args' to do so.
4778 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4780 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4781 instead of build_function_type.
4783 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4785 * config/rs6000/rs6000.c (spe_init_builtins): Call
4786 build_function_type_list instead of build_function_type.
4787 (paired_init_builtins, altivec_init_builtins): Likewise.
4788 (builtin_function_type): Likewise.
4790 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4792 * config/sh/sh.c (sh_media_init_builtins): Call
4793 build_function_type_list instead of build_function_type.
4795 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4797 * config/sparc/sparc.c (sparc_file_end): Call
4798 build_function_type_list instead of build_function_type.
4800 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4802 * config/alpha/alpha.c (alpha_init_builtins): Call
4803 build_function_type_list instead of build_function_type.
4805 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4807 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4808 build_function_type_list instead of build_function_type.
4810 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4812 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4813 build_function_type_list instead of build_function_type.
4814 Delete `endlink' variable.
4816 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4818 * config/avr/avr.c (avr_init_builtins): Call
4819 build_function_type_list instead of build_function_type.
4821 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4823 * config/picochip/picochip.c (picochip_init_builtins): Call
4824 build_function_type_list instead of build_function_type.
4825 Delete `endlink' variable.
4827 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4829 * config/bfin/bfin.c (bfin_init_builtins): Call
4830 build_function_type_list instead of build_function_type.
4832 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4835 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4836 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4838 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4841 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4842 libbffastfp overrides libgcc when -mfast-fp.
4844 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4846 Originally from Bernd Schmidt
4847 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4848 * config/bfin/bfin.c (override_options): Test it and error if
4851 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4853 Originally From Bernd Schmidt
4854 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4857 2011-05-03 Jeff Law <law@redhat.com>
4859 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4860 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4861 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4862 than accessing AUX field directly. Free the AUX field before
4864 (thread_block, thread_through_loop_header): Likewise.
4865 (thread_single_edge, mark_threaded_blocks): Likewise.
4866 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4867 (register_jump_thread): Do not attempt to thread to a NULL edge.
4869 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4871 * function.c (init_function_start): Call decide_function_section.
4872 * varasm.c (decide_function_section): New function.
4873 (assemble_start_function): When not using
4874 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4875 or first_function_block_is_cold.
4876 * rtl.h (decide_function_section): Declare.
4878 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4879 Jakub Jelinek <jakub@redhat.com>
4882 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4883 only succeed if req_mode is the same as set_mode.
4885 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4887 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4888 * genemit.c (gen_exp): Handle RETURN.
4889 * emit-rtl.c (verify_rtx_sharing): Likewise.
4890 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4891 * rtl.c (copy_rtx): RETURN is shared.
4892 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4894 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4895 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4896 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4897 * config/cris/cris.c (cris_expand_return): Likewise.
4898 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4899 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4900 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4901 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4902 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4904 * config/v850/v850.c (expand_epilogue): Likewise.
4905 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4906 * config/arm/arm.md (epilogue): Likewise.
4907 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4908 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4909 variable to ret_reg.
4911 2011-05-03 Richard Guenther <rguenther@suse.de>
4914 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4915 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4916 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4918 2011-05-03 Richard Guenther <rguenther@suse.de>
4920 * c-decl.c (grokdeclarator): Instead of looking at
4921 TREE_OVERFLOW check if the constant fits in the index type.
4923 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4925 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4926 (vec_store_lanes<mode><mode>): Likewise.
4928 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4930 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4931 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4932 convert_optab_index values.
4933 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4934 * genopinit.c (optabs): Initialize the new optabs.
4935 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4936 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4937 (expand_STORE_LANES): New functions.
4938 * tree.h (build_array_type_nelts): Declare.
4939 * tree.c (build_array_type_nelts): New function.
4940 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4941 (vect_model_load_cost): Likewise.
4942 (vect_store_lanes_supported, vect_load_lanes_supported)
4943 (vect_record_strided_load_vectors): Declare.
4944 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4945 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4946 (vect_transform_strided_load): Split out statement recording into...
4947 (vect_record_strided_load_vectors): ...this new function.
4948 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4949 (write_vector_array, create_array_ref): New functions.
4950 (vect_model_store_cost): Add store_lanes_p argument.
4951 (vect_model_load_cost): Add load_lanes_p argument.
4952 (vectorizable_store): Try to use store-lanes functions for
4954 (vectorizable_load): Likewise load-lanes and loads.
4955 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4956 to vect_model_store_cost.
4957 (vect_build_slp_tree): Likewise vect_model_load_cost.
4959 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4961 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4962 * hooks.c (hook_bool_mode_uhwi_false): New function.
4963 * target.def (array_mode_supported_p): New hook.
4964 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4965 * doc/tm.texi: Regenerate.
4966 * stor-layout.c (mode_for_array): New function.
4967 (layout_type): Use it.
4968 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4969 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4971 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4974 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4975 for -fstack-check if the size to allocate is negative.
4977 2011-05-02 Lawrence Crowl <crowl@google.com>
4979 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4980 (timevar_cond_start): New for starting a timer only when it is not
4982 (timevar_cond_stop): New for stopping a timer when it was not already
4985 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4986 (timevar_cond_start): New as above.
4987 (timevar_cond_stop): New as above.
4989 * timevar.def: Add start/stop timers for compiler phases,
4990 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4991 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4992 and TV_PHASE_FINALIZE.
4993 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4994 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4995 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4996 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4997 Make unused TV_OVERLOAD into a start/stop timer.
4999 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5000 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5001 to indicate that they are start/stop timers.
5003 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5004 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5005 Move initialization to do_compile.
5006 (do_compile): Add initialization from above.
5007 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5009 * c-decl.c (c_write_global_declarations): Add start/stop of
5010 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5012 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5013 or TV_PARSE_INLINE, as appropriate.
5014 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5015 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5017 2011-05-02 Jason Merrill <jason@redhat.com>
5020 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5022 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5025 * c-decl.c (finish_decl): Only create a composite if the types are
5028 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5030 * config/fr30/fr30-protos.h (Mmode): Don't define.
5031 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5032 definition where used.
5033 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5034 define. Expand definitions where used.
5035 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5036 Expand definitions where used.
5037 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5038 rx_function_arg, rx_function_arg_advance,
5039 rx_function_arg_boundary): Expand definitions of those macros.
5040 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5041 definition where used.
5043 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5045 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5047 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5048 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5049 with *movv2sf_internal_rex64_avx.
5050 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5051 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5052 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5053 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5054 "vex" in "prefix" attribute calculation.
5055 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5057 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5060 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5061 inputs match the output.
5063 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5066 * config/m68k/m68k.c (m68k_expand_prologue): Set
5067 current_function_static_stack_size.
5069 2011-05-02 Jan Hubicka <jh@suse.cz>
5071 * lto-streamer.c (lto_streamer_cache_insert_1,
5072 lto_streamer_cache_lookup, lto_streamer_cache_create,
5073 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5074 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5076 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5078 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5079 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5080 config/m68k/t-opts: New files.
5081 * config/m68k/m68k-tables.opt: New file (generated).
5082 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5083 extra_options and m68k/t-opts to tmake_file.
5084 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5085 (all_isas): Initialize using m68k-isas.def.
5086 (all_microarchs): Initialize using m68k-microarchs.def.
5087 (m68k_find_selection): Remove.
5088 (m68k_handle_option): Don't assert that global structures are in
5089 use. Use error_at. Access variables via opts pointer. Don't
5090 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5091 directly for -m68020-40 and -m68020-60.
5092 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5093 m68k_tune_entry here.
5094 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5096 (m68k_library_id_string): Remove declaration.
5097 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5098 (m68k_library_id_string): New Variable.
5099 (march=, mcpu=, mtune=): Use Enum and Var.
5101 2011-05-02 Richard Guenther <rguenther@suse.de>
5103 * varasm.c (output_constructor_regular_field): Compute zero-based
5104 index with double-ints. Make sure to ICE instead of producing
5106 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5107 in asserts. Properly use a signed type.
5109 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5111 * config/i386/sse.md (V): New mode iterator.
5112 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5114 (V_256): Rename from AVX256MODE.
5115 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5116 condition to all users.
5118 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5119 condition to all users.
5120 (VF_128): Make V4SF mode unconditional.
5121 (VF_256): Rename from AVX256MODEF2P.
5122 (VI4F_128): Rename from SSEMODE4S.
5123 (VI8F_128): Rename from SSEMODE2D.
5124 (VI4F_256): Rename from AVX256MODE8P.
5125 (VI8F_256): Rename from AVX256MODE4P.
5126 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5127 (ssescalarmodesuffix): Remove SF and DF modes.
5128 (SSEMODE124): Remove.
5129 (SSEMODE1248): Ditto.
5130 (SSEMODEF2P): Ditto.
5131 (AVXMODEF2P): Ditto.
5132 (AVXMODEFDP): Ditto.
5133 (AVXMODEFSP): Ditto.
5134 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5136 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5138 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5139 xop_pcmov_<mode>256. Use V mode iterator.
5141 Adjust RTX patterns globally for renamed mode attributes.
5143 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5145 * haifa-sched.c (sched_emit_insn): Emit insn before first
5146 non-scheduled insn. Inform back-end about new insn. Add
5147 new insn to scheduled_insns list.
5149 2011-05-02 Richard Guenther <rguenther@suse.de>
5151 PR tree-optimization/48822
5152 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5153 (process_scc): Indicate which iteration we start.
5155 2011-05-02 Jan Hubicka <jh@suse.cz>
5157 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5158 (lto_section_overrun): New.
5159 * lto-section-out.c (append_block): Rename to ...
5160 (lto_append_block): ... this one; export.
5161 (lto_output_1_stream): Move lto lto-streamer.h
5162 (lto_output_data_stream): Update.
5163 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5164 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5167 2011-05-02 Richard Guenther <rguenther@suse.de>
5169 * tree.c (tree_code_counts): New global array.
5170 (record_node_allocation_statistics): Count individual tree codes.
5171 (dump_tree_statistics): Dump individual code stats.
5173 2011-05-01 Jan Hubicka <jh@suse.cz>
5175 * ipa-inline.c (caller_growth_limits): Fix thinko when
5176 looking for largest stack frame.
5177 * ipa-inline.h (dump_inline_summary): Declare.
5178 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5180 (dump_inline_summary): Export.
5181 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5183 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5185 * reginfo.c (memory_move_cost): Change rclass argument type form
5186 'enum reg_class' to reg_class_t.
5187 * reload.h (memory_move_cost): Update prototype.
5188 * postreload.c reload_cse_simplify_set): Change type dclass var to
5190 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5192 (ira_allocate_and_set_costs): Change aclass argument type form
5193 'enum reg_class' to reg_class_t.
5194 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5195 Change aclass argument type to reg_class_t.
5196 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5198 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5199 memory_move_cost call.
5201 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5202 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5203 Change type tmp var to reg_class_t.
5205 2011-04-30 Jan Hubicka <jh@suse.cz>
5207 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5208 inlining into function with flatten attribute.
5209 (want_inline_small_function_p): Be more realistic about inlining
5210 cold calls where callee size grows.
5212 2011-04-30 Jan Hubicka <jh@suse.cz>
5214 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5217 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5219 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5220 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5221 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5222 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5223 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5224 (print_operand): Rename to...
5225 (sparc_print_operand): ...this. Make static. Adjust
5226 sparc_print_operand function call.
5227 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5230 2011-04-30 Jan Hubicka <jh@suse.cz>
5233 * ipa-inline.c (early_inliner): Disable when doing late
5234 addition of function.
5236 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5238 * dwarf2out.c (get_address_mode): New inline.
5239 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5240 if not dwarf_strict emit
5241 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5242 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5243 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5244 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5245 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5246 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5247 mem_loc_descriptor callers.
5248 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5249 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5250 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5251 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5252 (base_types): New variable.
5253 (get_base_type_offset, calc_base_type_die_sizes,
5254 base_type_for_mode, mark_base_types, base_type_cmp,
5255 move_marked_base_types): New functions.
5256 (calc_die_sizes): Assert that die_offset is 0 or equal to
5258 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5259 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5260 callers. If not dwarf_strict, call mem_loc_descriptor even for
5261 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5262 (gen_subprogram_die): Don't give up on call site parameters
5263 with non-integral or large integral modes. Adjust
5264 mem_loc_descriptor callers.
5265 (prune_unused_types): Call prune_unused_types_mark on base_types
5267 (resolve_addr): Call mark_base_types.
5268 (dwarf2out_finish): Call move_marked_base_types.
5270 PR tree-optimization/48809
5271 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5273 (gen_inbound_check): Don't compute index_expr - range_min in utype
5274 again, instead reuse SSA_NAME initialized in build_arrays.
5275 Remove two useless gsi_for_stmt calls.
5277 2011-04-29 Jeff Law <law@redhat.com>
5279 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5281 2011-04-29 Martin Jambor <mjambor@suse.cz>
5283 * cgraph.h (cgraph_postorder): Remove declaration.
5284 * ipa-utils.h (ipa_free_postorder_info): Declare.
5285 (ipa_reverse_postorder): Likewise.
5286 * cgraphunit.c: Include ipa-utils.h.
5287 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5288 * ipa-inline.c: Include ipa-utils.h.
5289 (ipa_inline): Update call to ipa_reverse_postorder.
5290 * ipa-pure-const.c (propagate_pure_const): Update call to
5291 ipa_reduced_postorder and ipa_print_order. Call
5292 ipa_free_postorder_info to clean up.
5293 (propagate_nothrow): Likewise.
5294 * ipa-reference.c (propagate): Removed a useless call to
5295 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5296 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5297 * ipa.c: Include ipa-utils.h.
5298 (ipa_profile): Update call to ipa_reverse_postorder.
5299 (cgraph_postorder): Moved to...
5300 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5301 (ipa_utils_print_order): Renamed to ipa_print_order.
5302 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5304 (ipa_free_postorder_info): New function.
5305 * passes.c: Include ipa-utils.h.
5306 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5307 (ipa_write_summaries): Likewise.
5308 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5309 (cgraphunit.o): Likewise.
5311 (ipa-inline.o): Likewise.
5313 2011-04-29 Jan Hubicka <jh@suse.cz>
5315 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5316 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5317 * ipa-inline.h (clause_t): Turn into unsigned int.
5318 * ipa-inline-analysis.c (add_clause): Do more simplification.
5319 (and_predicates): Shortcut more cases.
5320 (predicates_equal_p): Move forward; check that clauses are properly
5322 (or_predicates): Shortcut more cases.
5323 (edge_execution_predicate): Rewrite as...
5324 (set_cond_stmt_execution_predicate): ... this function; handle
5325 __builtin_constant_p.
5326 (set_switch_stmt_execution_predicate): New .
5327 (compute_bb_predicates): New.
5328 (will_be_nonconstant_predicate): Update TODO.
5329 (estimate_function_body_sizes): Use compute_bb_predicates
5330 and free them later, always try to estimate if stmt is constant.
5331 (estimate_time_after_inlining, estimate_size_after_inlining):
5332 Gracefully handle optimized out edges.
5333 (read_predicate): Fix off by one error.
5335 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5337 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5339 2011-04-27 Xinliang David Li <davidxl@google.com>
5341 * tree-profile.c (init_ic_make_global_vars): Set
5342 tls attribute on ic vars.
5343 * coverage.c (coverage_end_function): Initialize
5344 function_list with zero.
5346 2011-04-29 Richard Guenther <rguenther@suse.de>
5348 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5349 for the type of the result.
5350 (fold_builtin_isascii): Likewise.
5351 (fold_builtin_toascii): Use integer_type_node where appropriate.
5352 (fold_builtin_logb): Likewise.
5353 (fold_builtin_frexp): Likewise.
5354 (fold_builtin_strstr): Likewise.
5355 (fold_builtin_strpbrk): Likewise.
5356 (fold_builtin_fputs): Likewise.
5357 (fold_builtin_sprintf): Likewise.
5358 (fold_builtin_snprintf): Likewise.
5359 (fold_builtin_printf): Likewise.
5360 (do_mpfr_remquo): Use a proper type for the assigned constant.
5361 (do_mpfr_lgamma_r): Likewise.
5362 * dwarf2out.c (resolve_one_addr): Use size_int.
5363 * except.c (init_eh): Likewise.
5364 (assign_filter_values): Use integer_type_node for filter values.
5365 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5367 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5368 for EH region numbers.
5369 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5370 for the shift amount.
5372 2011-04-29 Richard Guenther <rguenther@suse.de>
5374 * expr.h (expand_shift): Rename to ...
5375 (expand_variable_shift): ... this.
5376 (expand_shift): Take a constant shift amount.
5377 * expmed.c (expand_shift): Rename to ...
5378 (expand_variable_shift): ... this.
5379 (expand_shift): New wrapper around expand_variable_shift.
5380 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5381 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5382 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5383 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5384 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5385 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5386 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5387 emit_store_flag_1, emit_store_flag): Likewise.
5388 * builtins.c (expand_builtin_signbit): Likewise.
5389 * calls.c (load_register_parameters): Likewise.
5390 * function.c (assign_parm_setup_block): Likewise.
5391 * lower-subreg.c (resolve_shift_zext): Likewise.
5392 * optabs.c (widen_bswap, expand_abs_nojump,
5393 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5394 * spu/spu.c (spu_expand_extv): Likewise.
5395 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5397 2011-04-29 Richard Guenther <rguenther@suse.de>
5399 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5400 for the remapped region number.
5401 * predict.c (build_predict_expr): Use integer_type_node for the
5403 * fold-const.c (fold_binary_loc): Use integer_type_node for
5404 the shift amount. Use a proper type for the PLUS_EXPR operand.
5406 2011-04-29 Michael Matz <matz@suse.de>
5408 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5409 other trees that just builtins.
5410 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5412 2011-04-29 Richard Guenther <rguenther@suse.de>
5414 * tree-nested.c (get_trampoline_type): Use size_int.
5415 (get_nl_goto_field): Likewise.
5416 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5418 (lower_eh_constructs_2): Likewise.
5419 (lower_resx): Likewise.
5420 (lower_eh_dispatch): Likewise.
5421 * tree-mudflap.c (mf_build_string): Use size_int.
5422 (mudflap_register_call): Use integer_type_node for the flag.
5423 (mudflap_enqueue_constant): Use size_int.
5424 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5425 instead of rebuilding it.
5427 2011-04-29 Richard Guenther <rguenther@suse.de>
5429 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5430 Handle OBJ_TYPE_REF.
5431 (find_func_aliases_for_call): Use it more consistently.
5433 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5435 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5436 (rank_for_schedule): Use it.
5437 (schedule_block): Set it.
5439 2011-04-28 David Li <davidxl@google.com>
5441 * tree.c (crc32_string): Use crc32_byte.
5442 (crc32_byte): New function.
5443 * tree.h (crc32_byte): New function.
5444 * gcov.c (read_graph_file): Handle new cfg_cksum.
5445 (read_count_file): Ditto.
5446 * profile.c (instrument_values): Ditto.
5447 (get_exec_counts): Ditto.
5448 (read_profile_edge_counts): Ditto.
5449 (compute_branch_probabilities): Ditto.
5450 (compute_value_histograms): Ditto.
5451 (branch_prob): Ditto.
5452 (end_branch_prob): Ditto.
5453 * coverage.c (read_counts_file): Ditto.
5454 (get_coverage_counts): Ditto.
5455 (tree_coverage_counter_addr): Ditto.
5456 (coverage_checksum_string): Ditto.
5457 (coverage_begin_output): Ditto.
5458 (coverage_end_function): Ditto.
5459 (build_fn_info_type): Ditto.
5460 (build_fn_info_value): Ditto.
5461 * libgcov.c (gcov_exit): Ditto.
5462 * gcov-dump.c (tag_function): Ditto.
5463 (compute_checksum): Remove.
5465 2011-04-29 Alan Modra <amodra@gmail.com>
5467 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5468 unspec plus offset. Tidy macho code.
5470 2011-04-29 Martin Jambor <mjambor@suse.cz>
5472 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5473 node instead of a decl. Update all callers.
5474 * cgraph.h: Update declaration.
5476 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5478 PR tree-optimization/48765
5479 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5480 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5481 to indicate if loop aware SLP is being used. Scan the statements
5482 and update the vectorization factor according to the type of
5483 vectorization before statement analysis.
5484 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5485 pass it to vect_analyze_loop_operations.
5486 (vectorizable_reduction): Set number of copies to 1 in case of pure
5488 * tree-vect-stmts.c (vectorizable_conversion,
5489 vectorizable_assignment, vectorizable_shift,
5490 vectorizable_operation, vectorizable_type_demotion,
5491 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5493 (vectorizable_condition): Move the check that it is not SLP
5494 vectorization before the number of copies check.
5495 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5496 to vectorize the loop using SLP.
5498 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5501 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5504 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5506 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5507 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5508 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5509 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5510 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5512 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5513 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5514 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5515 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5516 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5517 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5519 * config/i386/linux.h (REG_NAME): Don't define.
5520 * config/i386/linux64.h (REG_NAME): Don't define.
5521 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5522 Undefine before defining.
5524 2011-04-28 Jan Hubicka <jh@suse.cz>
5526 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5527 nonconstant_names array.
5528 (estimate_function_body_sizes): Build nonconstant_names array; handle
5529 BUILT_IN_CONSTANT_P.
5531 2011-04-28 Richard Guenther <rguenther@suse.de>
5535 2011-04-28 Richard Guenther <rguenther@suse.de>
5537 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5538 as late as possible.
5540 2011-04-28 Richard Guenther <rguenther@suse.de>
5542 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5543 (debug_constraint): Do it here.
5544 (dump_constraints): And here.
5545 (rewrite_constraints): And here.
5546 (dump_constraint_edge): Remove.
5547 (dump_constraint_graph): Rewrite to produce DOT output.
5548 (solve_constraints): Build succ graph as late as possible.
5549 Dump constraint graphs before and after solving.
5551 2011-04-28 Richard Guenther <rguenther@suse.de>
5553 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5554 New function split out from ...
5555 (find_func_aliases): ... here. Call it.
5556 (find_func_aliases_for_call): Likewise.
5558 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5560 * internal-fn.h (internal_fn_name_array): Declare.
5561 (internal_fn_flags_array): Likewise.
5563 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5565 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5566 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5568 (ssemodefsuffix): Remove.
5569 (ssevecmodesuffix): New mode attribute.
5570 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5571 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5572 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5573 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5574 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5575 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5576 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5577 ssemodesuffix mode attribute.
5578 (float splitters): Use ssevecmodesuffix mode attribute.
5579 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5580 (sseinsmode): Rename from avxvecmode.
5581 (avxsizesuffix): Rename from avxmodesuffix.
5582 (sseintvecmode): Rename from avxpermvecmode.
5583 (ssedoublevecmode): Rename from ssedoublesizemode.
5584 (ssehalfvecmode): Rename from avxhalfvecmode.
5585 (ssescalarmode): Rename from avxscalarmode.
5586 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5587 templates for ssemodesuffix mode attribute.
5588 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5591 Adjust RTX patterns globally for renamed mode attributes.
5593 2011-04-27 Jan Hubcika <jh@suse.cz>
5595 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5596 * ipa-inline-analysis.c: Include alloc-pool.h.
5597 (edge_predicate_pool): New.
5598 (trye_predicate_p): New function
5599 (false_predicate_p): New function.
5600 (add_clause): Sanity check that false clauses are "optimized";
5601 never add clauses to predicate that is already known to be false.
5602 (and_predicate): Use flase_predicate_p.
5603 (evaulate_predicate): Rename to ...
5604 (evaluate_predicate): ... this one; update all callers; assert
5605 that false is not listed among possible truths.
5606 (dump_predicate): Use true_predicate_p.
5607 (account_size_time): Use false_predicate_p.
5608 (evaulate_conditions_for_edge): Rename to ...
5609 (evaluate_conditions_for_edge) ... this one.
5610 (edge_set_predicate): New function.
5611 (inline_edge_duplication_hook): Duplicate edge predicates.
5612 (inline_edge_removal_hook): Free edge predicates.
5613 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5614 (dump_inline_summary): Update.
5615 (estimate_function_body_sizes): Set edge predicates.
5616 (estimate_calls_size_and_time): Handle predicates.
5617 (estimate_callee_size_and_time): Update.
5618 (remap_predicate): Add toplev_predicate; update comment.
5619 (remap_edge_predicates): New function.
5620 (inline_merge_summary): Compute toplev predicate; update.
5621 (read_predicate): New function.
5622 (read_inline_edge_summary): Use it.
5623 (inline_read_section): Likewise.
5624 (write_predicate): New function.
5625 (write_inline_edge_summary): Use it.
5626 (inline_write_summary): Likewise.
5627 (inline_free_summary): Free alloc pool and edge summary vec.
5629 2011-04-27 Richard Guenther <rguenther@suse.de>
5631 * tree-ssa-structalias.c (changed_count): Remove.
5632 (changed): Use a bitmap.
5633 (unify_nodes): Adjust.
5634 (do_sd_constraint): Likewise.
5635 (do_ds_constraint): Likewise.
5636 (do_complex_constraint): Likewise.
5637 (solve_graph): Likewise.
5639 2011-04-27 Jan Hubicka <jh@suse.cz>
5641 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5643 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5645 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5646 (avx_vperm2f128_*_operand): Ditto.
5647 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5648 Use avx_vpermilp_parallel in insn condition.
5649 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5650 Use avx_vperm2f128_parallel in insn condition.
5652 2011-04-27 Richard Guenther <rguenther@suse.de>
5654 * Makefile.in (tree-ssa-structalias.o): Remove
5655 gt-tree-ssa-structalias.h dependency.
5656 (GTFILES): Remove tree-ssa-structalias.c.
5657 * tree.c (allocate_decl_uid): New function.
5658 (make_node_stat): Use it.
5659 (copy_node_stat): Likewise.
5660 * tree.h (allocate_decl_uid): Declare.
5661 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5662 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5663 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5664 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5665 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5666 (struct heapvar_map): Likewise.
5667 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5668 heapvar_insert): Likewise.
5669 (make_heapvar_for): Rename to ...
5670 (make_heapvar): ... this. Simplify.
5671 (fake_var_decl_obstack): New global var.
5672 (build_fake_var_decl): New function.
5673 (make_constraint_from_heapvar): Adjust.
5674 (handle_lhs_call): Likewise.
5675 (create_function_info_for): Likewise.
5676 (intra_create_variable_infos): Likewise.
5677 (init_alias_vars): Allocate fake_var_decl_obstack.
5678 (init_alias_heapvars, delete_alias_heapvars): Remove.
5679 (compute_points_to_sets): Do not call init_alias_heapvars.
5680 (ipa_pta_execute): Likewise.
5681 (delete_points_to_sets): Free fake_var_decl_obstack.
5683 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5685 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5686 (si_from_UTItype, si_to_UTItype): New functions.
5687 (__udivmodti4): Use them to implement type-punning.
5688 * config/spu/multi3.c (union qword_TItype): New data type.
5689 (si_from_TItype, si_to_TItype): New functions.
5690 (__multi3): Use them to implement type-punning.
5692 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5694 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5696 2011-04-27 Jan Hubicka <jh@suse.cz>
5698 * ipa-prop.c (function_insertion_hook_holder): New holder.
5699 (ipa_add_new_function): New function.
5700 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5701 Register/deregister holder.
5703 2011-04-27 Richard Guenther <rguenther@suse.de>
5705 PR tree-optimization/48772
5706 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5708 2011-04-27 Richard Guenther <rguenther@suse.de>
5710 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5711 TARGET_MEM_REF handling.
5713 2011-04-27 Nick Clifton <nickc@redhat.com>
5715 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5716 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5717 (REG_CLASS_NAMES): Likewise.
5718 (REG_CLASS_CONTENTS): Likewise.
5719 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5720 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5721 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5722 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5723 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5724 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5725 duplicate register classes.
5726 (frv_class_likely_spilled_p): Likewise.
5727 (frv_register_move_cost): Likewise.
5729 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5730 end of the regno_reg_class array.
5732 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5735 * c-typeck.c (build_binary_op): Don't wrap arguments if
5736 int_operands is true.
5738 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5741 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5742 targetm.calls.must_pass_in_stack for void type.
5744 2011-04-26 Jan Hubicka <jh@suse.cz>
5746 * cgraphbuild.c (build_cgraph_edges): Update call
5747 of cgraph_create_edge and cgraph_create_indirect_edge.
5748 * cgraph.c (cgraph_create_edge_including_clones,
5749 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5750 cgraph_update_edges_for_call_stmt_node): Do not take nest
5751 argument; do not initialize call_stmt_size/time.
5752 (dump_cgraph_node): Do not dump nest.
5753 (cgraph_clone_edge): Do not take loop_nest argument;
5754 do not propagate it; do not clone call_stmt_size/time.
5755 (cgraph_clone_node): Likewise.
5756 (cgraph_create_virtual_clone): Update.
5757 * cgraph.h (struct cgraph_edge): Remove
5758 call_stmt_size/call_stmt_time/loop_nest.
5759 (cgraph_create_edge, cgraph_create_indirect_edge,
5760 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5762 * tree-emutls.c (gen_emutls_addr): Update.
5763 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5764 loop_nest; handle indirect calls, too.
5765 (clone_inlined_nodes): Do not care about updating inline summaries.
5766 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5767 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5768 stream call_stmt_size/call_stmt_time/loop_nest.
5769 * ipa-inline.c (edge_badness): Update.
5770 (ipa_inline): dump summaries after inlining.
5771 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5773 (inline_edge_summary): New function.
5774 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5775 (inline_edge_removal_hook): Handle edge summaries.
5776 (inline_edge_duplication_hook): New hook.
5777 (inline_summary_alloc): Alloc hooks.
5778 (initialize_growth_caches): Do not register removal hooks.
5779 (free_growth_caches); Do not free removal hook.
5780 (dump_inline_edge_summary): New function.
5781 (dump_inline_summary): Use it.
5782 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5783 (inline_update_callee_summaries): New function.
5784 (inline_merge_summary): Use it.
5785 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5786 (read_inline_edge_summary): New function.
5787 (inline_read_section): Use it.
5788 (write_inline_edge_summary): New function.
5789 (inline_write_summary): Use it.
5790 (inline_free_summary): Free edge new holders.
5791 * tree-inline.c (copy_bb): Update.
5793 2011-04-26 Jason Merrill <jason@redhat.com>
5795 * tree-eh.c (lower_try_finally_switch): Create the label along with
5796 the CASE_LABEL_EXPR.
5798 2011-04-26 David S. Miller <davem@davemloft.net>
5799 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5801 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5802 * configure: Regenerate.
5804 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5807 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5809 (VEC_reduc): New code iterator and splitters for vector reduction.
5810 (VEC_reduc_name): Ditto.
5811 (VEC_reduc_rtx): Ditto.
5812 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5813 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5815 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5816 support for extracting SF on VSX.
5818 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5819 generating xscvspdp.
5820 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5821 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5822 double add, minimum, maximum vector reduction.
5823 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5824 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5825 optimize double vector reduction.
5826 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5828 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5830 * config/fr30/fr30.h (inhibit_libc): Don't define.
5831 * config/m32r/m32r-protos.h: Correct comment.
5832 * config/v850/v850.h (GHS_default_section_names,
5833 GHS_current_section_names): Use tree, not union tree_node *.
5835 2011-04-26 Xinliang David Li <davidxl@google.com>
5837 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5838 * c-family/c-opts.c (c_common_handle_option): Set
5839 warn_maybe_uninitialized.
5840 * opts.c (common_handle_option): Ditto.
5841 * common.opt: New option.
5842 * tree-ssa.c (warn_uninit): Add one more parameter.
5843 (warn_uninitialized_var): Pass warning code.
5844 * tree-flow.h: Interface change.
5846 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5848 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5849 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5850 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5852 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5854 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5855 * config/mips/mips.opt (mmips-tfile): Remove.
5857 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5858 mips-tdump reference to ...
5859 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5860 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5861 reference by Tru64 UNIX.
5863 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5866 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5867 is error_mark_node, set value to NULL.
5869 PR tree-optimization/48734
5870 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5871 if return value from maybe_fold_*_comparsions isn't something
5872 the code is prepared to handle.
5874 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5876 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5878 (ext_QIreg_nomode_operands): Remove.
5879 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5883 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5885 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5887 2011-04-26 Richard Guenther <rguenther@suse.de>
5889 * c-typeck.c (build_unary_op): Do not expand array-refs via
5890 pointer arithmetic. Only adjust qualifiers for function types.
5892 2011-04-26 Richard Guenther <rguenther@suse.de>
5895 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5896 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5897 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5898 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5900 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5902 * doc/extend.texi: Document __underlying_type.
5904 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5906 * config/rs6000/titan.md (automata_option "progress"): Remove.
5908 2011-04-25 Jeff Law <law@redhat.com>
5910 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5912 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5914 * system.h (ENUM_BITFIELD): Remove.
5916 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5917 Eric Botcazou <ebotcazou@adacore.com>
5919 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5920 for STORE_FLAG_VALUE==-1 case.
5922 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5925 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5926 LEGITIMATE_PIC_OPERAND_P.
5928 2011-04-24 Jan Hubicka <jh@suse.cz>
5930 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5932 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5933 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5934 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5935 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5936 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5937 Sanity check predicate length.
5938 (remap_predicate): Likewise; sanity check jump functions.
5939 (inline_read_section, inline_write_summary): Sanity check
5942 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5945 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5946 __is_literal_type, and __is_trivial; update throughout about
5947 possibly cv-qualified void types.
5949 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5951 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5952 testsuite and make it version agnostic.
5954 2011-04-22 Jan Hubicka <jh@suse.cz>
5956 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5958 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5961 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5962 to VOID_TYPE even around MODIFY_EXPR.
5964 2011-04-22 Mike Stump <mikestump@comcast.net>
5966 * gensupport.c (read_md_rtx): Fix typo in comment.
5967 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5970 2011-04-22 Jan Hubicka <jh@suse.cz>
5972 * gengtype.c (open_base_files): Add ipa-inline.h include.
5973 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5974 ipa-prop.c; update all uses.
5975 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5976 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5977 merge summary of inlined function into former caller.
5978 * ipa-inline.c (max_benefit): Remove.
5979 (edge_badness): Compensate for removal of benefits.
5980 (update_caller_keys): Use
5981 reset_node_growth_cache/reset_edge_growth_cache.
5982 (update_callee_keys): Likewise.
5983 (update_all_callee_keys): Likewise.
5984 (inline_small_functions): Do not collect max_benefit; do not reset
5985 estimated_growth; call free_growth_caches and initialize_growth_caches.
5986 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5987 struct size_time_entry): New structures.
5988 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5989 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5990 and estimated_growth.
5991 (edge_growth_cache_entry): New structure.
5992 (node_growth_cache, edge_growth_cache): New global vars.
5993 (estimate_growth): Turn into inline.
5994 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5995 initialize_growth_caches, free_growth_caches): Declare.
5996 (estimate_edge_growth): Rewrite.
5997 (estimate_edge_time): Implement as inline cache lookup.
5998 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6000 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6001 (NUM_CONDITIONS): New constant.
6002 (predicate_conditions): New enum.
6003 (IS_NOT_CONSTANT): New constant.
6004 (edge_removal_hook_holder): New var.
6005 (node_growth_cache, edge_growth_cache): New global vars.
6006 (true_predicate, single_cond_predicate, false_predicate,
6007 not_inlined_predicate, add_condition, add_clause, and_predicates,
6008 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6009 dump_clause, dump_predicate, account_size_time,
6010 evaulate_conditions_for_edge): New functions.
6011 (inline_summary_alloc): Move to heap.
6012 (inline_node_removal_hook): Clear condition and entry vectors.
6013 (inline_edge_removal_hook): New function.
6014 (initialize_growth_caches, free_growth_caches): New function.
6015 (dump_inline_summary): Update.
6016 (edge_execution_predicate): New function.
6017 (will_be_nonconstant_predicate): New function.
6018 (estimate_function_body_sizes): Compute BB and constantness predicates.
6019 (compute_inline_parameters): Do not clear estimated_growth.
6020 (estimate_edge_size_and_time): New function.
6021 (estimate_calls_size_and_time): New function.
6022 (estimate_callee_size_and_time): New function.
6023 (remap_predicate): New function.
6024 (inline_merge_summary): New function.
6025 (do_estimate_edge_time): New function based on...
6026 (estimate_edge_time): ... this one.
6027 (do_estimate_edge_growth): New function.
6028 (do_estimate_growth): New function based on....
6029 (estimate_growth): ... this one.
6030 (inline_analyze_function): Analyze after deciding on jump functions.
6031 (inline_read_section): New function.
6032 (inline_read_summary): Use it.
6033 (inline_write_summary): Write all the new data.
6034 * ipa-prop.c (ipa_get_param_decl_index): Export.
6035 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6036 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6038 (ipa_get_lattice): Move here from ipa-cp.c
6039 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6040 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6041 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6042 cgraph_edge_inlinable_p): Remove.
6043 * cgraphunit.c: Include ipainline.h
6044 (cgraph_process_new_functions): Update call of
6045 compute_inline_parameters.
6047 2011-04-22 Richard Guenther <rguenther@suse.de>
6049 * tree.c (build_int_cst): Properly create canonicalized integer
6051 (build_int_cst_type): Remove scary comments.
6053 2011-04-22 Xinliang David Li <davidxl@google.com>
6055 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6056 by default when -Wno-error is not specified.
6057 * opts-global.c (decode_options): Remove call to
6058 control_warning_options.
6060 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6062 PR tree-optimization/48717
6063 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6064 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6066 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6068 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6069 definition where used.
6071 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6074 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6075 TREE_STATIC variables declared inside of some OpenMP construct.
6077 2011-04-22 Martin Jambor <mjambor@suse.cz>
6080 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6082 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6085 * c-typeck.c (pop_init_level): Do not warn about initializing
6088 2011-04-22 Alan Modra <amodra@gmail.com>
6090 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6091 when returning call_cookie.
6092 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6093 pointers, to functions with no more vector args than the current
6094 function, and some non-local calls for ABI_V4.
6095 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6096 sibcall_nonlocal_aix64): Combine to ..
6097 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6098 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6099 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6100 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6101 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6103 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6104 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6105 sibcall_value_symbolic_64): Delete.
6107 2011-04-21 Xinliang David Li <davidxl@google.com>
6109 * cgraph.h: Remove pid.
6110 * cgraph.c: Remove pid.
6111 * value-prof.c (init_node_map): New function.
6112 (del_node_map): New function.
6113 (find_func_by_funcdef_no): New function.
6114 (gimple_ic_transform): Call new function.
6115 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6116 * function.c (get_last_funcdef_no): New function.
6117 * function.h (get_last_funcdef_no): New function.
6118 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6119 to libgcov function.
6120 (tree-profiling): Call node map init and delete function.
6122 2011-04-21 Ian Lance Taylor <iant@google.com>
6124 * godump.c (go_format_type): Use exported Go name for anonymous
6127 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6129 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6130 Call builtin_function_type_list instead of builtin_function_type.
6131 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6133 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6135 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6136 build_function_type_list instead of build_function_type.
6137 Delete variable `endlink'.
6139 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6141 * config/s390/s390.c (s390_init_builtins): Call
6142 build_function_type_list instead of build_function_type.
6144 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6146 * config/ia64/ia64.c (ia64_init_builtins): Call
6147 build_function_type_list instead of builtin_function_type.
6149 2011-04-21 Easwaran Raman <eraman@google.com>
6151 * cfgexpand.c (stack_var): Remove OFFSET...
6152 (add_stack_var): ...and its reference here...
6153 (expand_stack_vars): ...and here.
6154 (stack_var_cmp): Sort by descending order of size.
6155 (partition_stack_vars): Change heuristic.
6156 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6157 (dump_stack_var_partition): Add newline after each partition.
6159 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6160 Jeff Law <law@redhat.com>
6162 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6163 * gengtype.c (matching_file_name_substitute): Likewise.
6165 2011-04-21 Richard Guenther <rguenther@suse.de>
6168 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6170 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6172 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6174 2011-04-21 Richard Guenther <rguenther@suse.de>
6176 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6179 2011-04-21 Richard Guenther <rguenther@suse.de>
6181 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6182 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6183 Use DECL_P, not SSA_VAR_P.
6184 (ptr_derefs_may_alias_p): Likewise.
6185 (ptr_deref_may_alias_ref_p_1): Likewise.
6186 (decl_refs_may_alias_p): Likewise.
6187 (refs_may_alias_p_1): Likewise.
6188 (ref_maybe_used_by_call_p_1): Likewise.
6189 (call_may_clobber_ref_p_1): Likewise.
6190 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6191 are either MEM_REF or TARGET_MEM_REF.
6192 (indirect_refs_may_alias_p): Likewise.
6193 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6194 for MEM_EXPR of indirect calls.
6196 2011-04-21 Tristan Gingold <gingold@adacore.com>
6198 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6199 (dst_file_info_struct): Remove flen field.
6200 (lookup_filename): Remove code that set flen field.
6202 2011-04-21 Tristan Gingold <gingold@adacore.com>
6204 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6206 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6209 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6210 vec_extract and vec_concat for non-SSE4_1 targets.
6212 2011-04-21 Richard Guenther <rguenther@suse.de>
6214 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6217 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6219 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6221 (FILE): Don't undefine.
6223 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6225 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6227 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6229 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6230 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6231 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6233 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6234 definitions where used.
6235 * config/microblaze/microblaze.h (struct microblaze_args): Use
6236 rtx, not struct rtx_def *.
6237 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6239 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6240 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6241 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6242 not struct rtx_def *.
6243 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6245 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6247 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6249 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6251 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6252 operand_equal_p to compare DR_BASE_ADDRESSes.
6253 (vect_check_interleaving): Likewise.
6255 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6258 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6259 for all Neon struct constants.
6261 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6263 * target.def (legitimate_constant_p): New hook.
6264 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6265 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6266 * doc/tm.texi: Regenerate.
6267 * hooks.h (hook_bool_mode_rtx_true): Declare.
6268 * hooks.c (hook_bool_mode_rtx_true): Define.
6269 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6270 * calls.c (precompute_register_parameters): Replace uses of
6271 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6272 (emit_library_call_value_1): Likewise.
6273 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6274 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6275 * ira-costs.c (scan_one_insn): Likewise.
6276 * recog.c (general_operand, immediate_operand): Likewise.
6277 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6278 * reload1.c (init_eliminable_invariants): Likewise.
6280 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6282 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6283 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6285 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6286 * config/alpha/predicates.md (input_operand): Update call to
6287 alpha_legitimate_constant_p.
6289 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6290 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6291 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6292 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6293 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6294 (arm_legitimate_constant_p): New functions.
6295 (arm_cannot_force_const_mem): Make static.
6297 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6299 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6300 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6301 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6302 instead of bfin_legitimate_constant_p.
6303 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6304 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6306 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6308 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6310 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6311 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6312 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6313 (frv_legitimate_constant_p): Make static. Add a mode argument.
6315 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6316 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6317 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6319 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6320 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6321 * config/i386/i386.c (legitimate_constant_p): Rename to...
6322 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6324 (ix86_cannot_force_const_mem): Update accordingly.
6325 (ix86_legitimate_address_p): Likewise.
6326 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6327 * config/i386/i386.md: Update commentary.
6329 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6330 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6331 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6332 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6334 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6336 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6337 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6338 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6339 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6341 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6342 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6343 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6345 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6346 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6347 (m32r_legitimate_constant_p): New function.
6349 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6350 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6351 LEGITIMATE_CONSTANT_P.
6352 (LEGITIMATE_CONSTANT_P): Delete.
6353 * config/m68k/m68k.c (m68k_expand_prologue): Call
6354 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6355 (m68k_legitimate_constant_p): New function.
6356 * config/m68k/m68k.md: Update comments.
6358 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6359 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6360 (mcore_legitimate_constant_p): New function.
6362 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6363 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6364 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6365 Add a mode argument.
6366 (mep_legitimate_address): Update accordingly.
6367 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6369 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6371 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6372 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6373 static. Check OP's mode for VOIDmode.
6374 (microblaze_legitimate_constant_p): New function.
6375 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6377 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6378 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6379 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6380 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6381 * config/mips/predicates.md: Update comments.
6383 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6384 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6385 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6386 (mmix_legitimate_constant_p): Make static, return a bool, and take
6388 (mmix_print_operand_address): Update accordingly.
6390 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6392 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6393 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6394 static. Add a mode argument.
6395 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6397 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6399 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6400 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6401 (pa_legitimate_constant_p): New function.
6403 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6405 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6406 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6407 (pdp11_legitimate_constant_p): New function.
6409 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6410 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6411 (rs6000_legitimate_constant_p): New function.
6413 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6414 (rx_legitimate_constant_p): ...this.
6415 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6416 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6417 (rx_legitimate_constant_p): ...this.
6418 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6419 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6421 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6422 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6423 * config/s390/s390.c (legitimate_constant_p): Rename to...
6424 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6425 and add a mode argument.
6426 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6428 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6430 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6431 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6432 (sh_legitimate_constant_p): New function.
6434 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6435 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6436 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6437 (legitimate_constant_p): Rename to...
6438 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6440 (constant_address_p): Update accordingly.
6442 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6443 argument and return a bool.
6444 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6445 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6446 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6447 (spu_rtx_costs): Update accordingly.
6448 * config/spu/predicates.md (vec_imm_operand): Likewise.
6450 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6452 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6453 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6454 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6456 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6457 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6458 * config/vax/vax.c (legitimate_constant_p): Likewise.
6460 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6461 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6462 (xtensa_legitimate_constant_p): New function.
6464 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6466 * target.def (cannot_force_const_mem): Add a mode argument.
6467 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6468 * doc/tm.texi: Regenerate.
6469 * hooks.h (hook_bool_mode_rtx_false): Declare.
6470 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6471 (hook_bool_mode_const_rtx_true): Likewise.
6472 (hook_bool_mode_rtx_false): New function.
6473 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6474 to be non-VOID. Update call to cannot_force_const_mem.
6475 (find_reloads): Update accordingly.
6476 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6477 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6479 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6480 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6481 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6482 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6483 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6484 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6485 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6486 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6487 (m68k_cannot_force_const_mem): ...this new function.
6488 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6490 (mips_const_insns, mips_legitimize_const_move): Update calls.
6491 (mips_secondary_reload_class): Likewise.
6492 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6493 (pa_cannot_force_const_mem): ...this new function.
6494 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6495 (rs6000_cannot_force_const_mem): ...this new function.
6496 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6498 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6499 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6501 (xtensa_cannot_force_const_mem): ...this new function.
6503 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6505 * config/mips/mips.c (mips16_build_function_stub): Call
6506 build_function_type_list instead of build_function_type.
6507 (mips16_build_call_stub): Likewise.
6509 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6511 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6512 instead of build_function_type.
6514 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6516 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6517 instead of build_function_type.
6519 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6522 * config/i386/i386.md (insv): Change operand 0 constraint to
6523 "register_operand". Change operand 1 and 2 constraint to
6524 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6525 * config/i386/sse.md (sse4_1_pinsrb): Export.
6526 (sse2_pinsrw): Ditto.
6527 (sse4_1_pinsrd): Ditto.
6528 (sse4_1_pinsrq): Ditto.
6529 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6530 * config/i386/i386.c (ix86_expand_pinsr): New.
6532 2011-04-20 Easwaran Raman <eraman@google.com>
6534 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6535 containing union type only with -fstrict-aliasing.
6537 2011-04-20 Jim Meyering <meyering@redhat.com>
6539 Remove useless if-before-free tests.
6540 * calls.c (expand_call, save_area): Likewise.
6541 * cfgcleanup.c (try_forward_edges): Likewise.
6542 * collect2.c (collect_execute): Likewise.
6543 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6544 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6545 * coverage.c (coverage_checksum_string): Likewise.
6546 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6547 * cselib.c (cselib_init): Likewise.
6548 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6549 (df_set_clean_cfg): Likewise.
6550 * function.c (free_after_compilation): Likewise.
6551 * gcc.c (do_spec_1, main): Likewise.
6552 * gcov.c (create_file_names): Likewise.
6553 * gensupport.c (identify_predicable_attribute): Likewise.
6554 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6555 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6556 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6557 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6558 * ipa-pure-const.c (local_pure_const): Likewise.
6559 * ipa-reference.c (propagate): Likewise.
6560 * ira-costs.c (free_ira_costs): Likewise.
6561 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6562 * matrix-reorg.c (mat_free): Likewise.
6563 * prefix.c (get_key_value): Likewise.
6564 * profile.c (compute_value_histograms): Likewise.
6565 * reload1.c (free_reg_equiv): Likewise.
6566 * sched-deps.c (free_deps): Likewise.
6567 * sel-sched-ir.c (fence_clear): Likewise.
6568 * sese.c (set_rename, if_region_set_false_region): Likewise.
6569 * tree-data-ref.c (free_rdg): Likewise.
6570 * tree-eh.c (lower_try_finally): Likewise.
6571 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6572 * tree-ssa-live.c (delete_var_map): Likewise.
6573 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6574 * tree-ssa-pre.c (phi_trans_add): Likewise.
6576 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6578 PR tree-optimization/48611
6579 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6580 beyond ERT_MUST_NOT_THROW region.
6582 2011-04-20 Catherine Moore <clm@codesourcery.com>
6584 * config/mips/mips.opt (mfix-24k): New.
6585 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6586 * config/mips/mips.md (length): Increase by 4 for stores if
6588 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6589 all noreorder if fixing 24K errata.
6590 * doc/invoke.texi: Document mfix-24k.
6592 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6594 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6595 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6597 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6599 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6600 (const_ok_for_op): ... to here.
6602 2011-04-20 Kai Tietz <ktietz@redhat.com>
6604 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6605 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6607 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6609 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6611 2011-04-20 Richard Guenther <rguenther@suse.de>
6613 PR tree-optimization/47892
6614 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6617 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6619 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6621 2011-04-20 Tristan Gingold <gingold@adacore.com>
6623 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6625 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6629 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6630 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6631 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6632 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6633 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6635 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6638 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6639 (avr_asm_named_section, avr_asm_output_aligned_common,
6640 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6641 New functions to update...
6642 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6643 (avr_asm_init_sections): Overwrite section callbacks for
6644 data_section, bss_section.
6645 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6647 (avr_file_end): ...here.
6649 2011-04-20 Richard Guenther <rguenther@suse.de>
6652 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6653 objects and types here. Adjust for their offset before comparing.
6655 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6657 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6660 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6662 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6663 (GIMPLE_H): Include $(INTERNAL_FN_H).
6664 (OBJS-common): Add internal-fn.o.
6665 (internal-fn.o): New rule.
6666 * internal-fn.def: New file.
6667 * internal-fn.h: Likewise.
6668 * internal-fn.c: Likewise.
6669 * gimple.h: Include internal-fn.h.
6670 (GF_CALL_INTERNAL): New gf_mask.
6671 (gimple_statement_call): Put fntype into a union with a new
6673 (gimple_build_call_internal): Declare.
6674 (gimple_build_call_internal_vec): Likewise.
6675 (gimple_call_same_target_p): Likewise.
6676 (gimple_call_internal_p): New function.
6677 (gimple_call_internal_fn): Likewise.
6678 (gimple_call_fntype): Return null for internal calls.
6679 (gimple_call_set_fntype): Assert that the function is not internal.
6680 (gimple_call_set_fn): Likewise.
6681 (gimple_call_set_fndecl): Likewise.
6682 (gimple_call_set_internal_fn): New function.
6683 (gimple_call_addr_fndecl): Handle null functions.
6684 (gimple_call_return_type): Likewise null types.
6685 * gimple.c (gimple_build_call_internal_1): New function.
6686 (gimple_build_call_internal): Likewise.
6687 (gimple_build_call_internal_vec): Likewise.
6688 (gimple_call_same_target_p): Likewise.
6689 (gimple_call_flags): Handle calls to internal functions.
6690 (gimple_call_fnspec): New function.
6691 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6692 (gimple_has_side_effects): Handle null functions.
6693 (gimple_rhs_has_side_effects): Likewise.
6694 (gimple_call_copy_skip_args): Handle calls to internal functions.
6695 * cfgexpand.c (expand_call_stmt): Likewise.
6696 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6697 * gimple-fold.c (gimple_fold_call): Handle null functions.
6698 (gimple_fold_stmt_to_constant_1): Don't fold
6699 calls to internal functions.
6700 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6702 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6703 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6704 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6705 (do_warn_unused_result): Likewise.
6706 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6707 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6708 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6709 the target of a call.
6710 (initialize_hash_element): Update accordingly.
6711 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6712 (iterative_hash_hashable_expr): Handle calls to internal functions.
6713 (print_expr_hash_elt): Likewise.
6714 * tree-ssa-pre.c (can_value_number_call): Likewise.
6715 (eliminate): Handle null functions.
6716 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6717 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6718 (find_func_aliases): Likewise.
6719 * value-prof.c (gimple_ic_transform): Likewise.
6720 (gimple_indirect_call_to_profile): Likewise.
6721 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6722 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6724 2011-04-19 Jan Hubicka <jh@suse.cz>
6726 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6727 * ipa-inline.c (inline_small_functions): Compute summaries first,
6728 populate heap later.
6730 2011-04-19 Jan Hubicka <jh@suse.cz>
6732 * cgraph.h (save_inline_function_body): Remove.
6733 * ipa-inline-transform.c: New file, broke out of...
6734 * ipa-inline.c: ... this one; Update toplevel comment.
6735 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6737 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6738 (cgraph_mark_inline_edge): Rename to inline_call; move to
6739 ipa-inline-transform.c.
6740 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6741 move to ipa-inline-transform.c
6742 (recursive_inlining, inline_small_functions, flatten_function,
6743 ipa_inline, inline_always_inline_functions,
6744 early_inline_small_functions): Update.
6745 (inline_transform): Move to ipa-inline-transform.c.
6746 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6748 * Makefile.in (ipa-inline-transform.o): New file.
6749 * cgraphunit.c (save_inline_function_body): Move to
6750 ipa-inline-transform.c
6752 2011-04-19 DJ Delorie <dj@redhat.com>
6754 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6755 registers if we already know there aren't any.
6756 (m32c_emit_epilogue): Don't emit a barrier here.
6757 (m32c_emit_eh_epilogue): Likewise.
6758 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6759 operands at expand time.
6760 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6762 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6763 duplicates. Provide aliases instead.
6764 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6765 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6768 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6770 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6771 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6772 (general_or_i64_p, sparc_register_move_cost): New function.
6774 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6776 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6777 Add lynx, mipssde. Sort table.
6779 2011-04-19 Xinliang David Li <davidxl@google.com>
6781 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6784 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6787 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6788 is a SUBREG with non-MODE_INT mode inside of it.
6790 2011-04-19 Martin Jambor <mjambor@suse.cz>
6792 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6793 also according to actual contants.
6794 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6795 (gimple_fold_call): Use it.
6796 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6798 2011-04-19 Martin Jambor <mjambor@suse.cz>
6800 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6801 non-pointer assignments.
6803 2011-04-19 Martin Jambor <mjambor@suse.cz>
6805 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6806 account anc_offset and otr_type from the indirect edge info.
6807 * ipa-prop.c (get_ancestor_addr_info): New function.
6808 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6809 get_ancestor_addr_info, call it.
6810 (ipa_note_param_call): Do not initialize information about polymorphic
6811 calls, return the indirect call graph edge. Remove the last
6812 parameter, adjust all callers.
6813 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6814 parameters. Initialize polymorphic information in the indirect edge.
6816 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6819 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6820 the types if they have different enumeration identifiers.
6822 2011-04-19 Jan Hubicka <jh@suse.cz>
6824 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6825 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6826 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6827 (optimize_function_for_size_p) ... here.
6829 2011-04-19 Richard Guenther <rguenther@suse.de>
6832 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6835 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6837 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6838 if DECL_NO_INLINE_WARNING_P is set on the function.
6840 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6843 * reload1.c (inc_for_reload): Return void. All callers changed.
6844 (emit_input_reload_insns): Don't try to delete previous output
6845 reloads to a register, or record spill_reg_store for autoincs.
6847 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6849 * gengtype.h: Updated copyright year.
6850 (struct input_file_st): Add inpisplugin field.
6851 (type_fileloc): New function.
6853 (write_typed_struct_alloc_def): Add gcc_assert.
6854 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6855 (write_typed_alloc_defns): Don't output for plugin files.
6856 (input_file_by_name): Clear inpisplugin field.
6857 (main): Set inpisplugin field for plugin files.
6859 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6861 * gengtype-state.c (string_eq): New.
6862 (read_state): Use string_eq instead of strcmp when creating the
6865 2011-04-19 Wei Guozhi <carrot@google.com>
6868 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6869 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6871 * config/arm/constraints.md (Uu): New constraint.
6872 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6874 2011-04-19 Tristan Gingold <gingold@adacore.com>
6876 * config.gcc (-*-*-*vms): Added.
6877 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6879 * config/vms/vms-ld.c: New file.
6880 * config/vms/vms-ar.c: New file.
6881 * config/vms/t-vmsnative: New file.
6883 2011-04-18 Xinliang David Li <davidxl@google.com>
6885 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6887 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6890 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6891 if TREE_TYPE (v) is non-NULL.
6893 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6894 gimple_get_virt_mehtod_for_binfo.
6895 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6896 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6898 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6900 2011-04-18 Michael Matz <matz@suse.de>
6901 Steve Ellcey <sje@cup.hp.com>
6903 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6904 use its mode as source mode if it isn't VOIDmode.
6906 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6908 * doc/passes.texi: Fill crossref nodes.
6910 2011-04-18 Jim Meyering <meyering@redhat.com>
6912 Fix doubled-word typos in comments and strings
6913 * config/alpha/vms-unwind.h: s/for for/for/
6914 * config/arm/unwind-arm.h: Likewise.
6915 * config/microblaze/microblaze.c: Likewise.
6916 * config/sh/constraints.md: s/in in/in/
6917 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6919 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6921 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6922 (AVX_FLOAT_MODE_P): Ditto.
6923 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6924 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6925 (AVX_VEC_FLOAT_MODE_P): Ditto.
6926 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6927 (UNSPEC_MASKSTORE): Ditto.
6928 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6929 Merge from <sse>_movmsk<ssemodesuffix> and
6930 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6931 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6933 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6934 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6935 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6937 2011-04-18 Jan Hubicka <jh@suse.cz>
6939 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6941 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6942 (want_inline_function_called_once_p): Break out the logic from
6944 (edge_badness): Ensure that profile is not misupdated.
6945 (lookup_recursive_calls): Prioritize by call frequencies.
6946 (inline_small_functions): Move program size estimates here;
6947 actually process whole queue even when unit growth has been
6948 met. (to properly compute inline_failed reasons and for the
6949 case unit size decrease.) Revisit comments on recursive inlining.
6950 (ipa_inline): Remove unit summary code; first inline hot calls
6951 of functions called once, cold calls next.
6952 (order, nnodes): Remove unused variables.
6953 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6954 (GTFILES): Remove ipa-inline.c
6955 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6957 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6959 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6961 2011-04-18 Jie Zhang <jie@codesourcery.com>
6962 Richard Earnshaw <rearnsha@arm.com>
6964 * arm.c (neon_builtin_type_bits): Remove.
6965 (typedef enum neon_builtin_mode): New.
6966 (T_MAX): Don't define.
6967 (typedef enum neon_builtin_datum): Remove bits, codes[],
6968 num_vars and base_fcode. Add mode, code and fcode.
6969 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6970 VAR10): Change accordingly.
6971 (neon_builtin_data[]): Change accordingly
6972 (arm_init_neon_builtins): Change accordingly.
6973 (neon_builtin_compare): Remove.
6974 (locate_neon_builtin_icode): Remove.
6975 (arm_expand_neon_builtin): Change accordingly.
6977 * arm.h (enum arm_builtins): Move to ...
6978 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6980 * arm.c (arm_builtin_decl): Declare.
6981 (TARGET_BUILTIN_DECL): Define.
6982 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6983 (arm_builtin_decls[]): New.
6984 (arm_init_neon_builtins): Store builtin declarations in
6985 arm_builtin_decls[].
6986 (arm_init_tls_builtins): Likewise.
6987 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6988 (arm_builtin_decl): New.
6990 2011-04-18 Richard Guenther <rguenther@suse.de>
6992 * tree.c (upper_bound_in_type): Build properly canonicalized
6994 (lower_bound_in_type): Likewise.
6996 2011-04-18 Richard Guenther <rguenther@suse.de>
6998 * gimple.h (gimple_call_addr_fndecl): New function.
6999 (gimple_call_fndecl): Use it.
7000 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7002 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7003 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7005 2011-04-18 Richard Guenther <rguenther@suse.de>
7008 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7010 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7013 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7014 DECL_IN_CONSTANT_POOL without RTL.
7016 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7017 Ira Rosen <ira.rosen@linaro.org>
7020 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7021 to match neon_vzip/vuzp/vtrn_internal.
7022 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7023 outputs explicitly dependent on both inputs.
7024 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7026 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7028 PR tree-optimization/48616
7029 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7030 whether the shift is by scalar or vector based on whether all SLP
7031 scalar stmts have the same rhs.
7033 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7035 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7038 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7041 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7044 2011-04-17 Jan Hubicka <jh@suse.cz>
7046 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7047 * cgrpahunit.c (cgraph_finalize_function): Do not set
7048 finalized_by_frontend.
7049 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7050 finalized_by_frontend.
7052 2011-04-17 Jan Hubicka <jh@suse.cz>
7054 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7055 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7056 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7057 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7059 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7061 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7063 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7066 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7067 is non-null before accessing it.
7068 (input_cgraph): Remove trailing spaces.
7070 2011-04-17 Revital Eres <revital.eres@linaro.org>
7072 * params.def (sms-min-sc): New param flag.
7073 * modulo-sched.c (sms_schedule): Use it.
7074 * doc/invoke.texi (sms-min-sc): Document it.
7076 2011-04-17 Jan Hubicka <jh@suse.cz>
7078 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7079 present, also set gimple_call_set_cannot_inline.
7080 * ipa-inline.c: Update toplevel comment.
7082 (cgraph_clone_inlined_nodes): Fix linebreaks.
7083 (cgraph_check_inline_limits): Restructure to ...
7084 (caller_growth_limits): ... this one; be more tolerant
7085 on growth in nested inline chains; add explanatory comment;
7086 fix stack accounting thinko introduced by previous patch.
7087 (cgraph_default_inline_p): Remove.
7088 (report_inline_failed_reason): New function.
7089 (can_inline_edge_p): New function.
7090 (can_early_inline_edge_p): New function.
7091 (leaf_node_p): Move upwards in file.
7092 (want_early_inline_function_p): New function.
7093 (want_inline_small_function_p): New function.
7094 (want_inline_self_recursive_call_p): New function.
7095 (cgraph_edge_badness): Rename to ...
7096 (edge_badness) ... this one; fix linebreaks.
7097 (update_edge_key): Update call of edge_baddness; add
7098 detailed dump about queue updates.
7099 (update_caller_keys): Use can_inline_edge_p and
7100 want_inline_small_function_p.
7101 (cgraph_decide_recursive_inlining): Rename to...
7102 (recursive_inlining): Use can_inline_edge_p and
7103 want_inline_self_recursive_call_p; simplify and remove no longer
7105 (cgraph_set_inline_failed): Remove.
7106 (add_new_edges_to_heap): Use can_inline_edge_p and
7107 want_inline_small_function_p.
7108 (cgraph_decide_inlining_of_small_functions): Rename to ...
7109 (inline_small_functions): ... this one; cleanup; use
7110 can/want predicates; cleanup debug ouput; work edges till fibheap
7111 is exhausted and do not stop once unit growth is reached; remove
7112 later loop processing remaining edges.
7113 (cgraph_flatten): Rename to ...
7114 (flatten_function): ... this one; use can_inline_edge_p
7115 and can_early_inline_edge_p predicates.
7116 (cgraph_decide_inlining): Rename to ...
7117 (ipa_inline): ... this one; remove unreachable nodes before
7118 inlining functions called once; simplify the pass.
7119 (cgraph_perform_always_inlining): Rename to ...
7120 (inline_always_inline_functions): ... this one; use
7121 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7122 (cgraph_decide_inlining_incrementally): Rename to ...
7123 (early_inline_small_functions): ... this one; simplify
7124 using new predicates; cleanup; make dumps prettier.
7125 (cgraph_early_inlining): Rename to ...
7126 (early_inliner): newer inline regular functions into always-inlines;
7127 fix updating of call stmt summaries.
7128 (pass_early_inline): Update for new names.
7129 (inline_transform): Fix formating.
7130 (gate_cgraph_decide_inlining): Rename to ...
7131 (pass_ipa_inline): ... this one.
7132 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7133 * ipa-inline-analysis.c (dump_inline_summary): Update.
7134 (compute_inline_parameters): Do not compute disregard_inline_limits;
7135 look for mismatching arguments.
7136 (estimate_growth): Fix handlig of non-trivial self recursion.
7137 (inline_read_summary): Do not read info->disregard_inline_limits.
7138 (inline_write_summary): Do not write info->disregard_inline_limits.
7139 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7140 and move all checks into can_inline_edge_p predicate; re-enable code
7141 comparing optimization levels.
7142 (expand_call_inline): Do not test inline_forbidden_into_p.
7143 * Makefile.in (ipa-inline.o): Update arguments.
7145 2011-04-17 Revital Eres <revital.eres@linaro.org>
7147 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7149 2011-04-17 Revital Eres <revital.eres@linaro.org>
7151 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7153 2011-04-17 Michael Matz <matz@suse.de>
7155 PR tree-optimization/48622
7157 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7158 in same order as they're written.
7160 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7162 * config/pa/predicates.md: Reorganize and simplify predicates.
7163 Eliminate duplicate code checks.
7164 (arith_operand): Rename to arith14_operand
7165 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7166 * config/pa/pa.md: Use renamed operands.
7167 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7168 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7169 arith11_operand, adddi3_operand, indexed_memory_operand,
7170 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7171 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7172 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7173 move_dest_operand, move_src_operand, prefetch_cc_operand,
7174 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7175 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7176 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7177 div_operand, int5_operand, movb_comparison_operator,
7178 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7179 arith_double_operand, ireg_operand, lhs_lshift_operand,
7180 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7181 integer_store_memory_operand): Likewise.
7182 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7183 (integer_store_memory_operand, read_only_operand,
7184 function_label_operand, borx_reg_operand,
7185 non_hard_reg_operand): Likewise.
7186 (eq_neq_comparison_operator): Delete unused operator.
7187 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7188 function_label_operand.
7189 (emit_move_sequence): Likewise.
7191 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7193 * config/i386/sse.md (sseunpackmode): New mode attribute.
7194 (ssepackmode): Ditto.
7195 (vec_pack_trunc_<mode>): Macroize expander from
7196 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7197 (vec_unpacks_lo_<mode>): Macroize expander from
7198 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7199 (vec_unpacks_hi_<mode>): Macroize expander from
7200 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7201 (vec_unpacku_lo_<mode>): Macroize expander from
7202 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7203 (vec_unpacku_hi_<mode>): Macroize expander from
7204 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7205 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7206 ix86_expand_sse4_unpack.
7207 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7209 2011-04-16 Jan Hubicka <jh@suse.cz>
7211 * cgraphbuild.c: Include ipa-inline.h.
7212 (reset_inline_failed): Use initialize_inline_failed.
7213 * cgraph.c: Include ipa-inline.h.
7214 (cgraph_create_node_1): Do not initialize estimated_growth.
7215 (initialize_inline_failed): More to ipa-inline-analysis.c
7216 (dump_cgraph_node): Do not dump inline flags.
7217 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7218 and disregard_inline_limits flags.
7219 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7220 time, size, estimated_growth.
7221 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7223 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7224 DECL_DISREGARD_INLINE_LIMITS.
7225 (cgraph_analyze_function): Do not initialize
7226 node->local.disregard_inline_limits.
7227 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7228 inlinable, versionable and disregard_inline_limits.
7229 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7230 cgraph_check_inline_limits, cgraph_default_inline_p,
7231 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7232 add_new_edges_to_heap): Update.
7233 (cgraph_decide_inlining_of_small_function): Update; set
7234 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7235 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7236 cgraph_decide_inlining_incrementally): Update.
7237 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7238 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7239 time, size and estimated_growth parameters.
7240 (estimate_edge_growth): Update.
7241 (initialize_inline_failed): Declare.
7242 * ipa-split.c: Include ipa-inline.h
7243 (execute_split_functions): Update.
7244 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7245 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7246 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7247 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7248 estimated_growth to INT_MIN.
7249 (inline_node_duplication_hook): Likewise.
7250 (dump_inline_summary): Dump new fields.
7251 (compute_inline_parameters): Update.
7252 (estimate_edge_time, estimate_time_after_inlining,
7253 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7254 inline_write_summary):
7255 (initialize_inline_failed): Move here from cgraph.c.
7256 * tree-sra.c: Include ipa-inline.h.
7257 (ipa_sra_preliminary_function_checks): Update.
7258 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7261 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7263 * config/i386/sse.md (V16): New mode iterator.
7265 (AVXMODEQI, AVXMODEDI): Remove.
7266 (sse2, sse3): New mode attribute.
7267 (mov<mode>): Use V16 mode iterator.
7268 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7269 (push<mode>1): Use V16 mode iterator.
7270 (movmisalign<mode>): Ditto.
7271 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7272 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7273 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7274 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7275 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7276 avx_movdqu<avxmodesuffix>.
7277 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7278 *avx_movdqu<avxmodesuffix>.
7279 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7280 avx_lddqu<avxmodesuffix>.
7281 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7282 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7283 avx_movnt<AVXMODEDI:mode>.
7284 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7285 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7287 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7290 * haifa-sched.c (prune_ready_list, schedule_block): Use
7291 sched_pressure_p rather than flag_sched_pressure.
7293 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7295 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7296 cgraph_get_node instead of cgraph_get_create_node.
7298 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7300 * cfgexpand.c (expand_debug_expr): Use
7301 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7303 2011-04-15 Michael Matz <matz@suse.de>
7305 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7306 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7307 * function.c (gimplify_parameters): Ditto.
7308 * gimplify.c (gimplify_vla_decl): Ditto.
7310 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7311 (gimple_call_set_alloca_for_var): New inline function.
7312 (gimple_call_alloca_for_var_p): Ditto.
7313 * gimple.c (gimple_build_call_from_tree): Remember
7314 CALL_ALLOCA_FOR_VAR_P state.
7315 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7317 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7318 calls if they were for VLA objects.
7320 2011-04-15 Martin Jambor <mjambor@suse.cz>
7322 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7325 2011-04-15 Martin Jambor <mjambor@suse.cz>
7328 * tree-emutls.c (lower_emutls_function_body): Call
7329 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7332 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7334 * c-decl.c (detect_field_duplicates): Call
7335 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7337 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7339 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7340 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7341 * ipa-pure-const.c (check_stmt): Call it.
7342 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7344 2011-04-15 Richard Guenther <rguenther@suse.de>
7346 PR tree-optimization/48290
7347 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7348 Properly decide inhibiting propagation based on the valueized
7349 operand. Do loop-closed SSA form preserving here ...
7350 (init_copy_prop): ... not here.
7352 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7355 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7356 (*ieee_smax<mode>3): Likewise.
7358 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7360 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7361 Replace match_operand with match_dup for the third operand in
7364 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7366 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7367 to track processing of conditionals. Update all callers.
7368 (try_combine, simplify_if_then_else): Update.
7370 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7372 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7375 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7377 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7378 instead of match_operand for operand 3.
7380 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7382 * recog.h (insn_operand_data): Add an "allows_mem" field.
7383 * genoutput.c (output_operand_data): Initialize it.
7384 * optabs.c (maybe_legitimize_operand_same_code): New function.
7385 (maybe_legitimize_operand): Use it when matching the original
7388 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7390 * gimplify.c: Fix issues in comments throughout.
7391 (voidify_wrapper_expr): Fix long line.
7392 (build_stack_save_restore): Likewise.
7393 (gimplify_loop_expr): Likewise.
7394 (gimplify_compound_lval): Likewise.
7395 (gimplify_init_ctor_eval): Likewise.
7396 (gimplify_modify_expr_rhs): Likewise.
7397 (omp_notice_threadprivate_variable): Likewise.
7399 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7401 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7402 original one if this is not a builtin function.
7404 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7407 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7408 offset it as needed based on top 2 bits in operands[3], change
7409 MEM mode to SFmode and mask those 2 bits away from operands[3].
7411 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7413 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7414 change from objc_declare_protocols() to objc_declare_protocol().
7416 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7418 * config/i386/sse.md (sse4_1): New mode attribute.
7419 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7420 avx_blend<ssemodesuffix><avxmodesuffix> and
7421 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7422 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7423 avx_blendv<ssemodesuffix><avxmodesuffix> and
7424 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7425 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7426 avx_dp<ssemodesuffix><avxmodesuffix> and
7427 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7428 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7429 (sse4_1_packusdw): Merge with *avx_packusdw.
7430 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7431 (sse4_1_pblendw): Merge with *avx_pblendw.
7432 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7433 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7434 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7436 (sse4_1_round<ssescalarmodesuffix>): Merge with
7437 *avx_round<ssescalarmodesuffix>.
7438 (aesenc): Merge with *avx_aesenc.
7439 (aesenclast): Merge with *avx_aesenclast.
7440 (aesdec): Merge with *avx_aesdec.
7441 (aesdeclast): Merge with *avx_aesdeclast.
7442 (pclmulqdq): Merge with *pclmulqdq.
7443 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7445 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7447 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7450 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7451 (align_local_variable): This. Update DECL_ALIGN.
7452 (add_stack_var): Updated.
7453 (expand_one_stack_var): Likewise.
7455 2011-04-14 Richard Guenther <rguenther@suse.de>
7457 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7459 (dse_initialize_block_local_data, dse_leave_block,
7460 record_voperand_set, get_stmt_uid): Likewise.
7461 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7462 (dse_optimize_stmt): Remove voperand set handling code.
7463 Simplify and improve to handle any kind of killing stmt.
7464 (dse_record_phi): Remove.
7465 (dse_enter_block): Simplify.
7466 (tree_ssa_dse): Likewise.
7467 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7469 2011-04-14 Jan Hubicka <jh@suse.cz>
7471 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7472 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7473 (cgraph_local_info): Remove inline_summary.
7474 * ipa-cp.c: Include ipa-inline.h.
7475 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7476 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7478 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7479 (input_overwrite_node): Do not set inline summary.
7480 (input_node): Do not stream inline summary.
7481 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7482 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7483 growth; we do not have inline parameters computed for that anyway.
7484 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7485 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7486 (inline_summary_t): New type and VECtor.
7487 (debug_inline_summary, dump_inline_summaries): Declare.
7488 (inline_summary): Use VOCtor.
7489 (estimate_edge_growth): Kill hack computing call stmt size directly.
7490 * lto-section-in.c (lto_section_name): Add inline section.
7491 * ipa-inline-analysis.c: Include lto-streamer.h
7492 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7493 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7494 (inline_summary_vec): Define.
7495 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7496 dump_inline_summaries): New functions.
7497 (estimate_function_body_sizes): Properly compute size/time of outgoing
7499 (compute_inline_parameters): Alloc inline_summary; do not compute
7500 size/time of incomming calls.
7501 (estimate_edge_time): Avoid missing time summary hack.
7502 (inline_read_summary): Read inline summary info.
7503 (inline_write_summary): Write inline summary info.
7504 (inline_free_summary): Free all hooks and inline summary vector.
7505 * lto-streamer.h: Add LTO_section_inline_summary section.
7506 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7507 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7509 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7511 * tree-vectorizer.h (vect_strided_store_supported): Add a
7512 HOST_WIDE_INT argument.
7513 (vect_strided_load_supported): Likewise.
7514 (vect_permute_store_chain): Return void.
7515 (vect_transform_strided_load): Likewise.
7516 (vect_permute_load_chain): Delete.
7517 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7518 count argument. Check that the count is a power of two.
7519 (vect_strided_load_supported): Likewise.
7520 (vect_permute_store_chain): Return void. Update after above changes.
7521 Assert that the access is supported.
7522 (vect_permute_load_chain): Likewise.
7523 (vect_transform_strided_load): Return void.
7524 * tree-vect-stmts.c (vectorizable_store): Update calls after
7525 above interface changes.
7526 (vectorizable_load): Likewise.
7527 (vect_analyze_stmt): Don't check for strided powers of two here.
7529 2011-04-14 Richard Guenther <rguenther@suse.de>
7531 PR tree-optimization/48590
7532 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7533 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7534 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7535 BUILT_IN_STACK_SAVE.
7536 * tree-ssa-dce.c (propagate_necessity): Handle
7537 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7539 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7541 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7544 2011-04-14 Richard Guenther <rguenther@suse.de>
7546 * tree.h (get_object_alignment_1): Declare.
7547 * builtins.c (get_object_alignment_1): Split out worker from ...
7548 (get_object_alignment): ... here.
7549 * fold-const.c (get_pointer_modulus_and_residue): Use
7550 get_object_alignment_1.
7552 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7554 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7556 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7557 parameter. Generalise code to handle arrays as well as vectors.
7558 (vect_setup_realignment): Update accordingly.
7559 * tree-vect-stmts.c (vectorizable_store): Likewise.
7560 (vectorizable_load): Likewise.
7562 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7564 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7565 within the per-copy loop.
7567 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7569 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7572 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7574 * doc/options.texi (Negative): Explicitly mention that the
7575 Negative chain must be circular.
7577 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7579 * function.h (block_chainon): Declare.
7580 * function.c (block_chainon): Define.
7582 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7583 Eric Weddington <eric.weddington@atmel.com>
7584 Georg-Johann Lay <avr@gjlay.de>
7586 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7588 (avr_init_builtins, avr_expand_builtin,
7589 avr_expand_delay_cycles, avr_expand_unop_builtin,
7590 avr_expand_binop_builtin ): New functions.
7591 (avr_builtin_id): New enum
7592 (struct avr_builtin_description): New struct
7593 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7594 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7596 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7597 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7598 UNSPECV_DELAY_CYCLES): new enumeration values
7599 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7600 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7601 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7602 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7603 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7604 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7605 "fmulsu"): New insns
7607 * config/avr/avr-c.c: fix line endings
7608 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7609 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7610 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7611 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7612 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7614 * doc/extend.texi (AVR Built-in Functions): New node
7615 (Target Builtins): Add documentation of AVR
7618 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7621 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7622 alone. Error if non-const data has attribute progmem.
7624 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7626 * tree.h (struct tree_constructor): Include tree_typed instead of
7628 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7629 TS_TYPED instead of TS_COMMON.
7631 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7633 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7634 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7635 (sse2_psadbw): Merge with *avx_psadbw.
7636 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7637 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7638 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7639 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7640 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7641 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7642 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7643 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7644 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7645 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7646 (ssse3_palignrti): Merge with *avx_palignrti.
7648 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7650 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7651 * tree-ssanames.c (fini_ssanames): VEC_free it.
7652 (make_ssa_name_fn): Update for VECness of free_ssanames.
7653 (release_ssa_name, release_dead_ssa_names): Likewise.
7654 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7656 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7657 TS_TYPED instead of TS_COMMON.
7659 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7661 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7662 statistics_counter_event.
7663 * tree-ssa-copyrename.c (stats): Define.
7664 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7665 statistics_counter_event.
7666 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7667 (bswap_stats, widen_mul_stats): Define.
7668 (insert_reciprocals): Increment rdivs_inserted.
7669 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7670 rfuncs_inserted. Add calls to statistics_counter_event.
7671 (execute_cse_sincos_1): Increment inserted.
7672 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7673 statistics_counter_event.
7674 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7675 of bswap_stats. Add calls to statistics_counter_event.
7676 (convert_mult_to_widen): Increment widen_mults_inserted.
7677 (convert_plusminus_to_widen): Increment maccs_inserted.
7678 (convert_mult_to_fma): Increment fmas_inserted.
7679 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7680 calls to statistics_counter_event.
7682 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7684 PR rtl-optimization/48455
7685 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7686 `temp_costs->mem_cost'.
7688 2011-04-13 Jan Hubicka <jh@suse.cz>
7690 * ipa-inline.h: New file.
7691 * ipa-inline-analysis.c: New file. Broken out of ...
7692 * ipa-inline.c: ... this file; update toplevel comment;
7693 include ipa-inline.h
7694 (inline_summary): Move to ipa-inline.h
7695 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7696 ipa-inline-analysis.c.
7697 (cgraph_estimate_time_after_inlining): Rename to
7698 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7699 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7700 to estimate_edge_growth.
7701 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7702 rename to estimate_size_after_inlining.
7703 (cgraph_mark_inline_edge): Update for new naming convention.
7704 (cgraph_check_inline_limits): Likewise.
7705 (cgraph_edge_badness): Likewise.
7706 (cgraph_decide_recursive_inlining): Likewise.
7707 (cgraph_decide_inlining_of_small_functions): Likewise.
7708 (cgraph_decide_inlining_incrementally): Likewise.
7709 (cgraph_estimate_growth): Rename to estimate_growth; move to
7710 ipa-inline-analysis.c.
7711 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7712 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7713 (compute_inline_parameters): Likewise.
7714 (compute_inline_parameters_for_current): Likewise.
7715 (pass_inline_parameters): Likewise.
7716 (inline_indirect_intraprocedural_analysis): Likewise.
7717 (analyze_function): Rename to inline_analyze_function; likewise.
7718 (add_new_function): Move to ipa-inline-analysis.c.
7719 (inline_generate_summary): Likewise.
7720 (inline_read_summary): Likewise.
7721 (inline_write_summary): Likewise.
7722 * Makefile.in (ipa-inline-analysis.c): New file.
7724 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7726 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7727 * configure: Regenerate.
7729 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7731 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7732 instead of tree_common.
7733 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7735 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7736 TS_TYPED rather than TS_COMMON.
7737 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7739 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7742 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7743 r20 around calls of __tablejump_elpm__
7745 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7748 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7750 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7752 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7754 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7755 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7756 (cfi_vec): New typedef.
7757 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7758 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7759 (cie_cfi_vec): New static variable.
7760 (cie_cfi_head): Delete.
7761 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7762 declaration changed. Use vector rather than list operations.
7763 (new_cfi): Don't initialize the dw_cfi_next field.
7764 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7765 rather than list operations.
7766 (lookup_cfa): Use vector rather than list operations.
7767 (output_cfis): New argument upto. Accept a cfi_vec rather than
7768 a dw_cfi_ref list head as argument. All callers changed.
7769 Iterate over the vector using upto as a maximum index.
7770 (output_all_cfis): New static function.
7771 (output_fde): Use vector rather than list operations. Use the
7772 new upto argument for output_cfis rather than manipulating a
7774 (dwarf2out_begin_prologue): Change initializations to match
7776 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7777 from the vector length rather than searching for the end of a list.
7778 Use output_all_cfis.
7779 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7781 2011-04-13 Nick Clifton <nickc@redhat.com>
7783 * config/rx/rx.md (movmemsi): Do not use this pattern when
7784 volatile pointers are involved.
7786 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7788 * config/i386/sse.md (pinsrbits): Remove.
7789 (sse2_packsswb): Merge with *avx_packsswb.
7790 (sse2_packssdw): Merge with *avx_packssdw.
7791 (sse2_packuswb): Merge with *avx_packuswb.
7792 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7793 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7794 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7795 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7796 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7797 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7798 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7799 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7800 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7801 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7802 (sse2_loadld): Merge with *avx_loadld.
7803 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7804 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7805 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7806 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7807 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7809 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7811 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7813 * print-tree.c (print_node): Likewise.
7814 * tree-inline.c (copy_tree_r): Likewise.
7815 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7816 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7817 instead of TS_COMMON.
7818 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7819 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7820 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7821 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7822 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7824 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7826 (TREE_CHAIN): Check for a TS_COMMON structure.
7827 (TREE_TYPE): Check for a TS_TYPED structure.
7829 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7831 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7832 cgraph_get_create_node instead of cgraph_node.
7834 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7836 * c-parser.c (c_parser_initelt): Updated call to
7837 objc_build_message_expr.
7838 (c_parser_postfix_expression): Likewise.
7840 2011-04-12 Kai Tietz <ktietz@redhat.com>
7842 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7843 MASK_MS_BITFIELD_LAYOUT bit.
7845 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7847 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7848 assert it is always true.
7849 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7852 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7854 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7855 compiling Objective-C to be more efficient.
7857 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7859 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7862 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7864 * recog.h, genoutput.c, optabs.c: Revert last patch.
7866 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7869 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7871 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7873 * recog.h (insn_operand_data): Add an "allows_mem" field.
7874 * genoutput.c (output_operand_data): Initialize it.
7875 * optabs.c (maybe_legitimize_operand_same_code): New function.
7876 (maybe_legitimize_operand): Use it when matching the original
7879 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7881 * genpreds.c (process_define_predicate): Move most processing
7882 to gensupport.c. Continue to validate the expression.
7883 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7884 (process_define_predicate): Move processing to gensupport.c.
7885 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7886 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7887 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7889 (valid_predicate_name_p): New function, split out from old
7890 genpreds.c:process_define_predicate.
7891 (process_define_predicate): New function, combining code from
7892 old genpreds.c and genrecog.c functions.
7893 (process_rtx): Call it for DEFINE_PREDICATE and
7894 DEFINE_SPECIAL_PREDICATE.
7896 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7898 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7899 size of a '%A' memory reference.
7900 (T_DREG, T_QREG): New neon_builtin_type_bits.
7901 (arm_init_neon_builtins): Assert that the load and store operands
7902 are neon_struct_operands.
7903 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7904 (NEON_ARG_MEMORY): New builtin_arg.
7905 (neon_dereference_pointer): New function.
7906 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7907 Handle NEON_ARG_MEMORY.
7908 (arm_expand_neon_builtin): Update after above interface changes.
7909 Use NEON_ARG_MEMORY for loads and stores.
7910 * config/arm/predicates.md (neon_struct_operand): New predicate.
7911 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7912 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7913 (V_four_elem): Tweak formatting.
7914 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7915 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7916 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7917 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7918 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7919 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7920 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7921 Use %A in the output template.
7922 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7923 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7924 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7925 the width of the memory access. Remove post-increment.
7926 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7928 2011-04-12 Nick Clifton <nickc@redhat.com>
7930 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7931 instruction for interrupt handlers if the target is the basic V850
7933 (expand_epilogue): Likewise.
7935 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7937 PR rtl-optimization/48549
7938 * combine.c (propagate_for_debug): Also stop after BB_END of
7939 this_basic_block. Process LAST and just stop processing after it.
7940 (combine_instructions): If last_combined_insn has been deleted,
7941 set last_combined_insn to its PREV_INSN.
7943 2011-04-12 Richard Guenther <rguenther@suse.de>
7945 PR tree-optimization/46076
7946 * gimple.h (struct gimple_statement_call): Add fntype field.
7947 (gimple_call_fntype): Adjust.
7948 (gimple_call_set_fntype): New function.
7949 * gimple.c (gimple_build_call_1): Set the call function type.
7950 * gimplify.c (gimplify_call_expr): Preserve the function
7951 type the frontend used for the call.
7952 (gimplify_modify_expr): Likewise.
7953 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7955 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7957 * tree-ssa.c (useless_type_conversion_p): Function pointer
7958 conversions are useless.
7960 2011-04-12 Martin Jambor <mjambor@suse.cz>
7962 * cgraph.h (cgraph_node): Remove function declaration.
7963 (cgraph_create_node): Declare.
7964 (cgraph_get_create_node): Likewise.
7965 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7966 Updated all callers.
7967 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7968 the decl does not already exist. Call cgraph_get_create_node instead
7970 (cgraph_get_create_node): New function.
7971 (cgraph_same_body_alias): Update comment.
7972 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7973 assert it does not return NULL.
7974 (cgraph_update_edges_for_call_stmt): Likewise.
7975 (cgraph_clone_edge): Likewise.
7976 (cgraph_create_virtual_clone): Likewise.
7977 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7978 instead of cgraph_node.
7979 (cgraph_add_new_function): Call cgraph_create_node or
7980 cgraph_get_create_node instead of cgraph_node.
7981 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7982 instead of cgraph_node.
7983 (record_eh_tables): Likewise.
7984 (mark_address): Likewise.
7985 (mark_load): Likewise.
7986 (build_cgraph_edges): Call cgraph_get_create_node instead
7988 (rebuild_cgraph_edges): Likewise.
7989 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7990 instead of cgraph_node.
7991 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7993 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7994 cgraph_create_node instead of cgraph_node.
7995 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7997 * lto-cgraph.c (input_node): Likewise.
7998 * lto-streamer-in.c (input_function): Likewise.
7999 * varasm.c (mark_decl_referenced): Likewise.
8000 (assemble_alias): Likewise.
8002 2011-04-12 Martin Jambor <mjambor@suse.cz>
8004 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8005 instead of cgraph_node and assert it does not return NULL.
8006 * lto-streamer-in.c (lto_read_body): Likewise.
8007 * omp-low.c (new_omp_context): Likewise.
8008 (create_task_copyfn): Likewise.
8009 * tree-emutls.c (lower_emutls_function_body): Likewise.
8010 * matrix-reorg.c (transform_allocation_sites): Likewise.
8012 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8015 * c-typeck.c (build_asm_expr): Error out on attempts to use
8016 void type outputs or inputs for constraints that allow reg or
8019 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8020 Richard Earnshaw <rearnsha@arm.com>
8023 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8024 to use sign-magnitude offsets. Reject unsupported unaligned
8025 cases. Add detailed description in comments.
8026 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8027 condition from TARGET_32BIT to TARGET_ARM.
8029 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8031 * tree.h (struct typed_tree): New.
8032 (struct tree_common): Include it instead of tree_base.
8033 (TREE_TYPE): Update for new location of type field.
8034 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8035 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8036 (union tree_node): Add typed field.
8037 * treestruct.def (TS_TYPED): New.
8038 * lto-streamer.c (check_handled_ts_structures): Handle it.
8039 * tree.c (MARK_TS_TYPED): New macro.
8040 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8042 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8044 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8045 (force_nonfallthru): Do not alter the loop nest if no basic block
8048 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8050 * config/i386/sse.md (VI): New mode iterator.
8052 (AVX256MODEI): Ditto.
8053 (AVXMODEF4P): Ditto.
8054 (avxvecpsmode): Ditto.
8055 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8056 (sse2_andnot<mode>3): New expander.
8057 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8058 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8059 (<any_logic:code><mode>3): Use VI mode iterator.
8060 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8061 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8062 (*andnottf3): Handle AVX three-operand constraints.
8063 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8065 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8066 Robert Millan <rmh@gnu.org>
8068 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8069 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8070 GNU_USER_DYNAMIC_LINKER64): Define.
8071 (REG_NAME): Don't undefine.
8072 (MD_UNWIND_SUPPORT): Undefine.
8073 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8074 (REG_NAME): Don't undefine.
8075 (MD_UNWIND_SUPPORT): Undefine.
8076 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8078 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8080 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8081 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8083 2011-04-11 Xinliang David Li <davidxl@google.com>
8085 * value-profile.c (check_ic_target): New function.
8086 (gimple_ic_transform): Sanity check indirect call target.
8087 * gimple-low.c (gimple_check_call_args): Interface change.
8088 (gimple_check_call_matching_types): New function.
8089 * tree-inline.c (tree_can_inline_p): Call new function.
8091 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8093 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8094 tree-pretty-print.h & realmpfr.h.
8096 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8099 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8100 (setup_allocno_and_important_classes): Ditto.
8102 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8104 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8105 GNU_USER_DYNAMIC_LINKER.
8106 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8107 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8108 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8109 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8110 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8111 GNU_USER_TARGET_OS_CPP_BUILTINS.
8112 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8114 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8115 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8116 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8117 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8118 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8119 GNU_USER_TARGET_OS_CPP_BUILTINS.
8120 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8121 GNU_USER_DYNAMIC_LINKER.
8122 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8123 GNU_USER_TARGET_OS_CPP_BUILTINS.
8124 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8125 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8126 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8127 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8128 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8129 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8130 GNU_USER_DYNAMIC_LINKER64): Remove.
8131 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8132 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8133 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8134 GNU_USER_DYNAMIC_LINKER.
8135 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8136 GNU_USER_TARGET_OS_CPP_BUILTINS.
8137 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8138 GNU_USER_TARGET_OS_CPP_BUILTINS.
8139 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8140 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8141 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8142 GNU_USER_TARGET_OS_CPP_BUILTINS.
8143 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8144 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8145 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8146 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8147 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8148 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8149 GNU_USER_DYNAMIC_LINKER.
8150 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8151 GNU_USER_TARGET_OS_CPP_BUILTINS.
8152 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8153 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8154 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8155 GNU_USER_DYNAMIC_LINKER.
8156 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8157 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8158 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8159 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8160 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8161 GNU_USER_DYNAMIC_LINKER.
8162 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8163 GNU_USER_DYNAMIC_LINKERN32.
8164 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8165 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8166 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8167 GNU_USER_DYNAMIC_LINKER32.
8168 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8169 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8170 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8171 GNU_USER_DYNAMIC_LINKER.
8172 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8173 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8174 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8175 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8176 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8177 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8178 GNU_USER_DYNAMIC_LINKER32.
8179 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8180 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8181 GNU_USER_DYNAMIC_LINKER.
8182 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8183 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8184 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8185 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8186 GNU_USER_DYNAMIC_LINKER64.
8187 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8188 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8189 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8190 GNU_USER_DYNAMIC_LINKER.
8191 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8192 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8193 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8194 GNU_USER_DYNAMIC_LINKER.
8195 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8196 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8197 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8198 GNU_USER_DYNAMIC_LINKER32.
8199 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8200 GNU_USER_DYNAMIC_LINKER64.
8201 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8202 GNU_USER_DYNAMIC_LINKER64.
8203 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8204 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8205 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8206 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8207 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8209 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8211 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8212 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8213 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8214 GNU_USER_DYNAMIC_LINKER.
8215 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8216 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8217 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8218 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8219 GNU_USER_DYNAMIC_LINKER64.
8220 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8221 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8222 GNU_USER_LINK_EMULATION.
8223 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8224 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8225 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8226 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8227 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8228 CPP_SPEC, CC1_SPEC): Remove.
8229 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8230 (GNU_USER_DYNAMIC_LINKER): Define.
8231 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8232 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8233 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8234 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8235 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8236 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8237 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8238 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8239 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8240 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8241 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8242 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8243 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8244 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8245 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8246 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8247 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8248 GNU_USER_DYNAMIC_LINKER.
8249 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8250 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8251 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8252 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8253 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8254 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8255 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8256 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8257 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8258 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8260 2011-04-11 Kai Tietz <ktietz@redhat.com>
8264 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8265 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8267 (ix86_is_msabi_thiscall): Removed.
8268 (ix86_is_type_thiscall): Likewise.
8269 (ix86_get_callcvt): New function.
8270 (ix86_comp_type_attributes): Simplify check.
8271 (ix86_function_regparm): Use ix86_get_callcvt for calling
8272 convention attribute checks.
8273 (ix86_return_pops_args): Likewise.
8274 (ix86_static_chain): Likewise.
8275 (x86_this_parameter): Likewise.
8276 (x86_output_mi_thunk): Likewise.
8277 (ix86_function_type_abi): Optimize check for types without attributes.
8278 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8279 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8280 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8282 (IX86_BASE_CALLCVT): Helper macro.
8283 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8284 Use ix86_get_callcvt for calling convention attribute checks and avoid
8285 symbol-decoration for stdcall in TARGET_RTD case.
8286 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8288 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8291 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8293 * config/i386/sse.md (VI_128): New mode iterator.
8294 (VI12_128): Rename from SSEMODE12.
8295 (VI14_128): Rename from SSEMODE14.
8296 (VI124_128): New mode iterator.
8297 (VI24_128): Rename from SSEMODE248.
8298 (VI248_128): Rename from SSEMODE248.
8299 (SSEMODE124C8): Remove.
8300 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8301 (*sse2_<plusminus_insn><mode>3): Merge with
8302 *avx_<plusminus_insn><mode>3.
8303 (*mulv8hi3): Merge with *avx_mulv8hi3.
8304 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8305 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8306 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8307 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8308 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8309 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8310 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8311 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8312 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8313 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8314 (*<smaxmin:code>v8hi3): Ditto.
8315 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8316 (*<smaxmin:code>v16qi3): Ditto.
8317 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8318 (*sse2_eq<mode>3): Ditto.
8319 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8320 (*sse2_gt<mode>3): Ditto.
8321 (vcondv2di): Split out of vcond<mode>.
8322 (vconduv2di): Split out of vcondu<mode>.
8324 2011-04-11 Richard Guenther <rguenther@suse.de>
8326 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8327 before calling tree_low_cst.
8329 2011-04-11 Richard Guenther <rguenther@suse.de>
8331 * stor-layout.c (layout_type): Compute all array index size operations
8332 in the original type.
8333 (initialize_sizetypes): Add comment.
8334 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8336 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8338 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8340 2011-04-11 Martin Jambor <mjambor@suse.cz>
8342 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8343 of cgraph_node, handle NULL return value.
8344 (cgraph_global_info): Likewise.
8345 (cgraph_rtl_info): Likewise.
8346 * tree-inline.c (estimate_num_insns): Likewise.
8347 * gimplify.c (unshare_body): Likewise.
8348 (unvisit_body): Likewise.
8349 (gimplify_body): Likewise.
8350 * predict.c (optimize_function_for_size_p): Likewise.
8351 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8352 (call_may_clobber_ref_p_1): Likewise.
8353 * varasm.c (function_section_1): Likewise.
8354 (assemble_start_function): Likewise.
8356 2011-04-11 Martin Jambor <mjambor@suse.cz>
8358 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8360 * final.c (rest_of_clean_state): Likewise.
8361 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8362 * passes.c (pass_init_dump_file): Likewise.
8363 (execute_all_ipa_transforms): Likewise.
8364 (function_called_by_processed_nodes_p): Likewise.
8365 * predict.c (maybe_hot_frequency_p): Likewise.
8366 (probably_never_executed_bb_p): Likewise.
8367 (compute_function_frequency): Likewise.
8368 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8369 (unnest_nesting_tree_1): Likewise.
8370 (lower_nested_functions): Likewise.
8371 * tree-optimize.c (execute_fixup_cfg): Likewise.
8372 (tree_rest_of_compilation): Likewise.
8373 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8374 * tree-sra.c (ipa_early_sra): Likewise.
8375 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8376 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8377 * ipa.c (record_cdtor_fn): Likewise.
8378 * ipa-inline.c (cgraph_early_inlining): Likewise.
8379 (compute_inline_parameters_for_current): Likewise.
8380 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8381 * ipa-pure-const.c (local_pure_const): Likewise.
8382 * ipa-split.c (split_function): Likewise.
8383 (execute_split_functions): Likewise.
8384 * cgraphbuild.c (build_cgraph_edges): Likewise.
8385 (rebuild_cgraph_edges): Likewise.
8386 (cgraph_rebuild_references): Likewise.
8387 (remove_cgraph_callee_edges): Likewise.
8388 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8389 (verify_cgraph_node): Likewise.
8390 (cgraph_analyze_functions): Likewise.
8391 (cgraph_preserve_function_body_p): Likewise.
8392 (save_inline_function_body): Likewise.
8393 (save_inline_function_body): Likewise.
8394 * tree-inline.c (copy_bb): Likewise.
8395 (optimize_inline_calls): Likewise.
8397 2011-04-11 Martin Jambor <mjambor@suse.cz>
8399 PR tree-optimization/48195
8400 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8401 ipa_check_create_edge_args.
8402 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8403 ipa_check_create_edge_args.
8404 * ipa-inline.c (inline_generate_summary): Do not call
8405 ipa_check_create_node_params and ipa_check_create_edge_args.
8406 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8407 ipa_check_create_edge_args.
8409 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8411 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8413 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8414 * function.c (record_hard_reg_sets): Likewise.
8415 * ira.c (compute_regs_asm_clobbered): Likewise.
8416 * sched-deps.c (sched_analyze_1): Likewise.
8417 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8419 2011-04-09 Xinliang David Li <davidxl@google.com>
8421 PR tree-optimization/PR48484
8422 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8423 has_valid_pred lazily
8425 2011-04-09 Duncan Sands <baldrick@free.fr>
8427 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8429 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8431 * combine.c (combine_validate_cost): Adjust comments. Set registered
8432 cost of I0 to zero at the end, if any.
8434 2011-04-08 Xinliang David Li <davidxl@google.com>
8436 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8437 to insane profile data.
8439 2011-04-08 Xinliang David Li <davidxl@google.com>
8441 * ipa-cp.c (ipcp_update_profiling): Correct
8442 negative scale factor due to insane profile data.
8444 2011-04-08 Xinliang David Li <davidxl@google.com>
8446 * final.c (dump_basic_block_info): New function.
8447 (final): Dump basic block.
8448 (final_scan_insn): Remove old dump.
8450 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8453 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8456 2011-04-08 Michael Matz <matz@suse.de>
8459 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8461 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8462 * rtl.h (rebuild_jump_labels_chain): Declare.
8463 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8464 insns inserted on edges.
8466 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8468 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8469 * config/arm/arm-arches.def: New.
8470 * config/arm/arm-opts.h: New.
8471 * config/arm/genopt.sh: New.
8472 * config/arm/arm-tables.opt: New (generated).
8473 * config/arm/arm.c (arm_handle_option, arm_target_help,
8474 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8475 (all_architectures): Get most table contents from arm-arches.def.
8476 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8477 arm_selected_tune here.
8478 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8479 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8480 (march=, mcpu=, mtune=): Use Enum and Var.
8481 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8482 (arm.o): Update dependencies.
8484 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8486 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8488 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8489 (write_typed_alloc_defns): Likewise.
8490 (main): Calls write_typed_alloc_defns with output_header.
8492 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8495 * ira-color.c (setup_profitable_hard_regs): Add comments.
8496 Don't take prohibited hard regs into account.
8497 (setup_conflict_profitable_regs): Rename to
8498 get_conflict_profitable_regs.
8499 (check_hard_reg_p): Check prohibited hard regs.
8501 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8503 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8504 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8505 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8507 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8510 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8511 move from floating point to shift amount register.
8512 (emit_move_sequence): Remove secondary reload support for floating
8513 point to shift amount amount register copies.
8514 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8515 amount register copies.
8516 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8517 register, return false if mode isn't a scalar integer mode.
8518 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8520 2011-04-08 Richard Guenther <rguenther@suse.de>
8522 * gimple.c (gimple_call_flags): Remove kludge.
8524 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8526 * sel-sched.c (sel_region_init): Move call to
8527 sel_setup_region_sched_flags after setup_current_loop_nest.
8529 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8531 PR rtl-optimization/48272
8532 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8533 init_insn_reg_pressure_info. Adjust a caller.
8534 * sched-int.h (init_insn_reg_pressure_info): Declare.
8535 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8536 when sched-pressure is enabled.
8538 2011-04-08 Richard Guenther <rguenther@suse.de>
8540 * gimple.c (gimple_set_modified): Do not queue calls to
8541 MODIFIED_NORETURN_CALLS here ...
8542 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8544 2011-04-08 Richard Guenther <rguenther@suse.de>
8547 * toplev.c (lang_dependent_init): Do not open asm_out_file
8548 in WPA mode, nor perform debug machinery initialization.
8549 (finalize): Do not unlink asm_out_file in WPA mode.
8551 2011-04-08 Richard Guenther <rguenther@suse.de>
8553 * gimple.h (gimple_call_fntype): New function.
8554 (gimple_call_return_type): Use it.
8555 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8556 * gimple-low.c (gimple_check_call_args): Likewise.
8557 * gimple.c (gimple_call_flags): Likewise.
8558 (gimple_call_arg_flags): Likewise.
8559 (gimple_call_return_flags): Likewise.
8560 * tree-cfg.c (verify_gimple_call): Likewise.
8561 (do_warn_unused_result): Likewise.
8562 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8563 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8565 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8567 PR rtl-optimization/48235
8568 * sel-sched.c (code_motion_process_successors): Recompute the last
8569 insn in basic block if control flow changed.
8570 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8571 Update condition for ilist_remove.
8573 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8575 PR rtl-optimization/48302
8576 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8577 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8578 it to record added preheader blocks.
8579 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8580 on to sel_add_loop_preheaders.
8581 (sel_region_init): Move call to setup_current_loop_nest after
8584 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8587 * cfgloop.h (loop_has_exit_edges): New helper.
8588 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8590 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8591 that have no exit edges.
8593 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8595 PR rtl-optimization/48442
8596 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8597 all callers. Adjust assert.
8599 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8601 PR tree-optimization/48377
8602 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8603 is_packed to true even for types with smaller TYPE_ALIGN than
8606 2011-04-08 Richard Guenther <rguenther@suse.de>
8609 * doc/tm.texi: Re-generate.
8611 2011-04-08 Wei Guozhi <carrot@google.com>
8614 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8615 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8616 * config/arm/arm.md (*push_multi): Change the length computation to
8619 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8621 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8622 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8623 * doc/tm.texi: Regenerate.
8624 * system.h (ASM_OUTPUT_BSS): Poison.
8625 * varasm.c (asm_output_bss): Remove function.
8626 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8628 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8629 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8630 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8631 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8633 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8635 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8637 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8639 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8641 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8644 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8646 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8647 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8648 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8650 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8651 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8652 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8653 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8654 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8655 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8656 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8657 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8658 options. Don't map other m68k options manually. Don't handle
8659 old-style options as canonical.
8660 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8661 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8663 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8665 * basic-block.h (force_nonfallthru): Move to...
8666 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8667 (force_nonfallthru): ...here.
8668 * cfghooks.c (force_nonfallthru): New function.
8669 * cfgrtl.c (force_nonfallthru): Rename into...
8670 (rtl_force_nonfallthru): ...this.
8671 (commit_one_edge_insertion): Do not set AUX field.
8672 (commit_edge_insertions): Do not discover new basic blocks.
8673 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8674 (cfg_layout_rtl_cfg_hooks): Likewise.
8675 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8676 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8677 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8679 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8681 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8684 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8686 * config/i386/sse.md: Update copyright year.
8687 (avxcvtvecmode): Remove.
8688 (sse_movhlps): Merge with *avx_movhlps.
8689 (sse_movlhps): Merge with *avx_movlhps.
8690 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8691 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8692 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8693 (sse_loadhps): Merge with *avx_loadhps.
8694 (sse_storelps): Merge with *avx_storelps.
8695 (sse_loadlps): Merge with *avx_loadlps.
8696 (sse_movss): Merge with *avx_movss.
8697 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8698 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8699 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8700 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8701 (vec_set<mode>_0): Ditto.
8702 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8703 (sse4_1_insertps): Merge with *avx_insertps.
8704 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8705 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8706 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8707 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8708 (sse2_storehpd): Merge with *avx_storehpd.
8709 (sse2_loadhpd): Merge with *avx_loadhpd.
8710 (sse2_loadlpd): Merge with *avx_loadlpd.
8711 (sse2_movsd): Merge with *avx_movsd.
8712 (*vec_concatv2df): Merge with *vec_concatv2df.
8714 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8717 * combine.c (combine_instructions): Add last_combined_insn,
8718 update it if insn is after it, pass it to all try_combine calls.
8719 (try_combine): Add last_combined_insn parameter, pass it instead of
8720 i3 to propagate_for_debug.
8722 2011-04-07 Nick Clifton <nickc@redhat.com>
8724 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8725 to handle MDR <-> data register transfers.
8726 (movhi_internal): Likewise.
8728 2011-04-07 Alan Modra <amodra@gmail.com>
8730 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8731 previous stack info.
8733 2011-04-07 Tom de Vries <tom@codesourcery.com>
8736 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8737 flow_find_cross_jump. Swap variables to implement backward replacement.
8738 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8740 2011-04-07 Tom de Vries <tom@codesourcery.com>
8743 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8744 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8746 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8747 src1 or src2. Redirect edges to the last basic block. Update
8748 frequency and count on multiple basic blocks in case of fallthru.
8750 2011-04-07 Tom de Vries <tom@codesourcery.com>
8753 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8755 (old_insns_match_p): Change return type. Replace return false/true
8756 with return dir_none/dir_both. Use can_replace_by.
8757 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8758 direction from dir_p. Register replacement direction in dir, last_dir
8759 and afterlast_dir. Handle new return type of old_insns_match_p using
8760 merge_dir. Return replacement direction in dir_p.
8761 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8762 return type of old_insns_match_p.
8763 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8764 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8765 flow_find_cross_jump.
8766 * basic-block.h (enum replace_direction): New type.
8767 (flow_find_cross_jump): Add parameter to declaration.
8769 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8771 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8772 (AVXMODEDCVTPS2DQ): Ditto.
8773 (VEC_FLOAT_MODE): Ditto.
8774 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8775 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8776 (<any_logic:code><mode>3): Use VF mode iterator.
8777 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8778 Use VF mode iterator.
8779 (copysign<mode>3): Use VF mode iterator.
8780 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8781 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8782 (*<any_logic:code><MODEF:mode>3): Merge with
8783 *avx_<any_logic:code><MODEF:mode>3.
8784 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8785 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8786 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8787 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8788 (sse2_cvtdq2ps): Use %v modifier.
8789 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8790 (avx_cvtps2dq<avxmodesuffix>): Remove.
8791 (sse2_cvtps2dq): Use %v modifier.
8792 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8793 (avx_cvttps2dq<avxmodesuffix>): Remove.
8794 (sse2_cvttps2dq): Use %v modifier.
8795 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8796 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8797 (sse2_cvtsd2siq): Fix insn template.
8798 (sse2_cvtsd2siq_2): Ditto.
8799 (sse2_cvttsd2siq): Ditto.
8800 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8801 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8803 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8805 * gcov-io.c: Use GCC Runtime Library Exception.
8807 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8810 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8811 as base_reg whatever register reg has been eliminated to, instead
8812 of hardcoding STACK_POINTER_REGNUM.
8814 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8816 * doc/tm.texi.in: Document C target hooks as separate from general
8818 * doc/tm.texi: Regenerate.
8819 * genhooks.c (struct hook_desc): Add docname field.
8820 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8822 (hook_array): Include c-target.def.
8823 (emit_documentation): Use docname field in output.
8824 (emit_init_macros): Take docname argument. Only emit definitions
8825 for hooks matching docname.
8826 (main): Expect additional arguments in all cases. Pass argument
8827 to emit_init_macros.
8828 * target.def: Move initial macro definitions and comments to
8829 target-hooks-macros.h.
8830 (gcc_targetcm): Move to c-family/c-target.def.
8831 * target.h (targetcm): Move declaration to c-family/c-target.h.
8832 * targhooks.c (default_handle_c_option): Move to
8834 * targhooks.h (default_handle_c_option): Move declaration to
8835 c-family/c-common.h.
8836 * target-hooks-macros.h: New file.
8837 * config.gcc (target_has_targetcm): Define and use to add to
8838 c_target_objs and cxx_target_objs.
8839 * config/default-c.c: New file.
8840 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8841 of target.h and target-def.h.
8842 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8843 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8844 darwin_check_cfstring_format_arg): Make static.
8845 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8846 TARGET_STRING_OBJECT_REF_TYPE_P,
8847 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8848 * config/darwin-protos.h (darwin_objc_construct_string,
8849 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8851 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8852 TARGET_STRING_OBJECT_REF_TYPE_P,
8853 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8854 * config/t-darwin (darwin-c.o): Update dependencies.
8855 * system.h (TARGET_HAS_TARGETCM): Poison.
8856 * Makefile.in (TARGET_H): Update.
8857 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8858 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8859 (default-c.o): New target.
8860 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8861 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8862 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8864 (build/genhooks.o): Update dependencies.
8866 2011-04-06 Richard Guenther <rguenther@suse.de>
8868 * ipa-inline.c (enum inlining_mode): Remove.
8869 (cgraph_flatten): Use some other token.
8870 (cgraph_edge_early_inlinable_p): New function, split out from ...
8871 (cgraph_perform_always_inlining): New function, split out from ...
8872 (cgraph_decide_inlining_incrementally): ... here.
8873 (cgraph_mark_inline_edge): Adjust.
8874 (cgraph_early_inlining): Re-structure.
8875 (pass_early_inline): Require SSA form.
8877 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8878 Julian Brown <julian@codesourcery.com>
8879 Mark Shinwell <shinwell@codesourcery.com>
8881 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8882 LO_REGS only for Thumb-1.
8883 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8884 be used in short instructions when optimising for size on Thumb-2.
8886 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8888 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8889 associated with user returns to be preserved.
8891 2011-04-06 Tristan Gingold <gingold@adacore.com>
8893 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8894 symbol_queue_size, DBXOUT_DECR_NESTING,
8895 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8896 if XCOFF_DEBUGGING_INFO.
8898 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8900 * config/i386/i386.md (attribute isa): New.
8901 (attribute enabled): New.
8902 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8903 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8904 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8905 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8906 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8907 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8908 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8909 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8911 * config/i386/sse.md (VF): New mode iterator.
8915 (SSEMODEF4): Remove.
8916 (attribute sse): Handle V8SF and V4DF modes.
8917 (<absneg:code><mode>2): Use VF mode iterator.
8918 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8920 (<plusminus_insn><mode>3): Use VF mode iterator.
8921 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8922 Use VF mode iterator.
8923 (<sse>_vm<plusminus_insn><mode>3): Merge with
8924 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8925 (mul<mode>3): Use VF mode iterator.
8926 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8927 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8929 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8930 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8931 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8932 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8934 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8935 Use VF1 mode iterator.
8936 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8937 (sqrt<VF2:mode>2): New expander.
8938 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8939 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8940 and sqrtv2df2. Use VF mode iterator.
8941 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8943 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8944 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8945 Use VF1 mode iterator.
8946 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8947 (<smaxmin:code><mode>3): Use VF mode iterator.
8948 (*<smaxmin:code><mode>3_finite): Merge with
8949 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8950 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8951 (<sse>_vm<smaxmin:code><mode>2): Merge with
8952 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8953 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8955 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8957 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8958 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8959 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8960 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8961 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8963 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8964 Use VF_128 mode iterator.
8965 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8967 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8968 VF_128 mode iterator.
8969 (vcond<mode>): Use VF mode iterator.
8970 * config/i386/predicates.md (sse_comparison_operator): Merge with
8971 avx_comparison_float_operator. Do not declare as special_predicate.
8972 * config/i386/i386.c (struct builtin_description): Update for renamed
8974 (ix86_expand_args_builtin): Ditto.
8975 (ix86_expand_sse_compare_mask): Ditto.
8977 2011-04-06 Richard Guenther <rguenther@suse.de>
8979 * tree-inline.c (estimate_num_insns): For calls simply account
8980 for all passed arguments and a used return value.
8982 2011-04-06 Richard Guenther <rguenther@suse.de>
8984 PR tree-optimization/47663
8985 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8986 call_stmt_time fields.
8987 (cgraph_edge_inlinable_p): Declare.
8988 (cgraph_edge_recursive_p): New inline function.
8989 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8990 (cgraph_clone_edge): Copy it.
8991 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8992 Account for call stmt time.
8993 (cgraph_estimate_time_after_inlining): Take edge argument.
8994 (cgraph_estimate_edge_growth): Account call stmt size.
8995 (cgraph_estimate_size_after_inlining): Take edge argument.
8996 (cgraph_mark_inline_edge): Adjust.
8997 (cgraph_check_inline_limits): Likewise.
8998 (cgraph_recursive_inlining_p): Remove.
8999 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9000 (cgraph_decide_recursive_inlining): Take edge argument and
9002 (cgraph_decide_inlining_of_small_functions): Do not avoid
9003 diags for recursive inlining here.
9004 (cgraph_flatten): Adjust.
9005 (cgraph_decide_inlining_incrementally): Likewise.
9006 (estimate_function_body_sizes): Remove call cost handling.
9007 (compute_inline_parameters): Initialize caller edge call costs.
9008 (cgraph_estimate_edge_growth): New function.
9009 (cgraph_estimate_growth): Use it.
9010 (cgraph_edge_badness): Likewise.
9011 (cgraph_check_inline_limits): Take an edge argument.
9012 (cgraph_decide_inlining_of_small_functions): Adjust.
9013 (cgraph_decide_inlining): Likewise.
9014 * tree-inline.c (estimate_num_insns): Only account for call
9015 return value if it is used.
9016 (expand_call_inline): Avoid diagnostics on recursive inline
9018 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9019 (input_edge): Input edge call costs.
9021 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9023 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9025 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9027 * doc/invoke.texi (Spec Files): Fix typo.
9029 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9031 * profile.c (branch_prob): Move declaration of local variable. Remove
9032 obsolete ??? comment. Expand the location explicitly instead of using
9033 the LOCATION_FILE and LOCATION_LINE macros.
9035 2011-04-06 Wei Guozhi <carrot@google.com>
9038 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9039 (arm_cond_branch): Likewise.
9040 (arm_cond_branch_reversed): Likewise.
9041 (arm_jump): Likewise.
9042 (push_multi): Likewise.
9043 * config/arm/constraints.md (Py): New constraint.
9045 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9048 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9050 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9051 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9052 #ifdef DBX_DEBUGGING_INFO.
9054 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9057 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9058 if old and new states differ.
9060 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9062 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9063 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9064 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9065 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9066 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9068 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9069 ColdFire options to -mcpu= options.
9071 2011-04-05 Jeff Law <law@redhat.com>
9073 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9074 check if BB is a successor of LOOP->header and return
9075 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9077 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9079 * cprop.c (struct reg_use): Remove.
9080 (reg_use_table): Make an array of RTX.
9081 (find_used_regs, constprop_register, local_cprop_pass,
9082 bypass_block): Simplify users of reg_use_table.
9083 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9084 on one of the uses found by find_used_regs.
9086 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9089 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9092 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9094 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9096 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9098 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9101 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9103 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9105 * combine.c: Include obstack.h.
9106 (struct insn_link): Define.
9107 (uid_log_links): Adjust type.
9108 (FOR_EACH_LOG_LINK): New macro.
9109 (insn_link_obstack): Declare.
9110 (alloc_insn_link): Define.
9111 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9112 type of link variables.
9113 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9114 (try_combine, record_promoted_values, distribute_notes): Likewise.
9115 (distribute_links): Likewise. Tweak prototype.
9116 (clear_log_links): Delete.
9117 (adjust_for_new_dest): Call alloc_insn_link.
9118 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9120 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9122 * gcse.c (modify_mem_list): Convert to an array of VECs.
9123 (canon_modify_mem_list, compute_transp): Tweak formatting.
9124 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9125 (load_killed_in_block_p): Likewise.
9126 (record_last_mem_set_info): Likewise.
9127 (clear_modify_mem_tables): Likewise.
9129 2011-04-05 Tom de Vries <tom@codesourcery.com>
9132 * function.c (emit_use_return_register_into_block): Only define if
9135 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9137 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9139 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9141 * config/rx/rx-opts.h: New.
9142 * config/rx/rx.c (rx_cpu_type): Remove.
9143 (rx_handle_option): Don't assert that global structures are in
9144 use. Access variables via opts pointer. Defer most handling of
9145 OPT_mint_register_. Use error_at.
9146 (rx_option_override): Handle deferred OPT_mint_register_ here.
9147 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9148 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9149 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9150 (rx_cpu_types): New Enum and EnumValue entries.
9151 (mint-register=): Use Defer and use Var accordingly.
9153 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9155 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9156 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9157 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9159 (debug_free_queue, debug_nesting, symbol_queue_index):
9161 * dbxout.c: ...to here. Make static.
9163 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9165 * gcse.c (modify_pair): Define. Define a VEC of it.
9166 (canon_modify_mem_list): Convert to an array of VECs.
9167 (free_insn_expr_list_list): Delete.
9168 (clear_modify_mem_tables): Call VEC_free instead.
9169 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9170 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9171 (canon_list_insert, compute_transp): Likewise.
9173 2011-04-05 Tom de Vries <tom@codesourcery.com>
9176 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9179 2011-04-05 Tom de Vries <tom@codesourcery.com>
9182 * function.c (emit_use_return_register_into_block): New function.
9183 (thread_prologue_and_epilogue_insns): Use
9184 emit_use_return_register_into_block.
9186 2011-04-05 Tom de Vries <tom@codesourcery.com>
9189 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9192 2011-04-05 Tom de Vries <tom@codesourcery.com>
9194 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9196 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9198 * config/arm/arm.md (define_constants for unspec): Replace with
9200 (define_constants for unspecv): Replace with define_c_enum.
9201 * config/arm/neon.md (define_constants for unspec): Replace with
9204 2011-04-04 Richard Henderson <rth@redhat.com>
9207 * dwarf2out.c (output_line_info): Always emit line info from
9208 at least one section.
9209 (dwarf2out_init): Create text_section_line_info here ...
9210 (set_cur_line_info_table): ... not here.
9212 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9215 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9218 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9220 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9222 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9223 (expr_equiv_p): Remove.
9224 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9225 (hash_scan_set): Update call to insert_set_in_table.
9226 (dump_hash_table): Dump <dest, src> pair.
9227 (lookup_set): Simplify. Lookup <dest, src> pair.
9228 (compute_transp): Remove, fold heavily simplified code into...
9229 (compute_local_properties): ...here. Expect COMP and TRANSP
9231 (find_avail_set): Take set directly from struct expr.
9232 (find_bypass-set): Likewise.
9233 (bypass_block): Likewise.
9234 (cprop_insn): Likewise. Remove redundant INSN_P test.
9236 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9237 checks on form of COND from find_implicit_sets to here.
9238 (find_implicit_sets): Cleanup control flow. Split critical edges
9239 if it exposes implicit sets. Allocate/resize implicit_sets as
9241 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9242 changed something. Run df_analyze after find_implicit_sets if any
9243 edges were split. Do not allocate implicit_sets here.
9245 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9246 (gcse_obstack): Renamed to cprop_obstack.
9247 (GNEW, GNEWVEC, GNEWVAR): Remove.
9249 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9250 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9251 (gcse_alloc): Likewise, and rename to cprop_alloc.
9252 (alloc_gcse_men, free_gcse_mem): Remove.
9253 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9254 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9255 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9257 * cprop.c (oprs_not_set_p): Remove.
9258 (mark_set, mark_clobber): Remove.
9259 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9260 (reg_not_set_p): New function.
9261 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9262 (cprop_insn): Likewise.
9263 (cprop_jump): Use FOR_EACH_EDGE.
9265 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9268 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9269 (rank_for_schedule): Use scheduled_insns vector instead of
9270 last_scheduled_insn.
9271 (ok_for_early_queue_removal): Likewise.
9272 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9274 (choose_ready): Likewise.
9275 (commit_schedule): Use VEC_iterate.
9276 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9277 a dbg_cnt, use it and ensure the first insn is in the ready list.
9278 (haifa_sched_init): Allocate scheduled_insns.
9279 (sched_extend_ready_list): Don't allocate it; reserve space.
9280 (haifa_sched_finish): Free it.
9282 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9284 * optc-gen.awk: Always remove type from Variable entry before
9285 recording in var_seen.
9287 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9289 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9290 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9291 call to tidy_fallthru_edges.
9293 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9295 * doc/options.texi (ToLower): Document.
9296 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9297 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9298 * opts.h (cl_option): Add cl_tolower field.
9299 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9300 arguments with lowercase strings.
9301 * config/rx/rx.opt (mcpu=): Add ToLower.
9302 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9305 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9307 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9309 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9311 * config/vax/vax.c: Include reload.h.
9313 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9315 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9316 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9317 (sparc_preferred_reload_class): New function.
9319 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9322 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9323 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9325 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9327 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9328 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9330 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9332 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9333 (ASM_OUTPUT_ALIGNED_BSS): Define.
9335 2011-04-03 Michael Matz <matz@suse.de>
9337 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9338 and next_slot members.
9339 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9340 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9341 (lto_streamer_cache_append): Declare.
9342 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9343 unsigned index, remove offset parameter, ensure that we append
9344 or update existing entries.
9345 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9346 parameter, update next_slot for append.
9347 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9349 (lto_streamer_cache_insert_at): Likewise.
9350 (lto_streamer_cache_append): New function.
9351 (lto_streamer_cache_lookup): Use unsigned index.
9352 (lto_streamer_cache_get): Likewise.
9353 (lto_record_common_node): Don't test tree_node_can_be_shared.
9354 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9355 (lto_streamer_cache_delete): Don't free offsets member.
9356 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9357 (lto_output_string_with_length): Use lto_output_data_stream.
9358 (lto_output_tree_header): Remove ix parameter, don't write it.
9359 (lto_output_builtin_tree): Likewise.
9360 (lto_write_tree): Adjust callers to above, don't track and write
9361 offset, write unsigned index.
9362 (output_unreferenced_globals): Don't emit all global vars.
9363 (write_global_references): Use unsigned indices.
9364 (lto_output_decl_state_refs): Likewise.
9365 (write_symbol): Likewise.
9366 * lto-streamer-in.c (lto_input_chain): Move earlier.
9367 (input_function): Use unsigned index.
9368 (input_alias_pairs): Don't read and then ignore all global vars.
9369 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9370 don't pass it back, use lto_streamer_cache_append.
9371 (lto_register_var_decl_in_symtab): Use unsigned index.
9372 (lto_register_function_decl_in_symtab): Likewise.
9373 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9375 (lto_get_builtin_tree): Don't read index, use
9376 lto_streamer_cache_append.
9377 (lto_read_tree): Adjust call to lto_materialize_tree.
9379 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9380 don't use function calls in arguments to MIN.
9382 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9385 * gimple.c (gimple_type_leader_entry): Mark deletable.
9387 2011-04-03 Alan Modra <amodra@gmail.com>
9389 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9391 2011-04-03 Michael Matz <matz@suse.de>
9393 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9395 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9397 2011-04-03 Michael Matz <matz@suse.de>
9399 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9400 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9401 without function context.
9402 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9403 current_function_decl and cfun.
9405 2011-04-03 Michael Matz <matz@suse.de>
9407 * tree.c (decl_init_priority_insert): Don't create entry for
9409 (decl_fini_priority_insert): Ditto.
9410 (fields_compatible_p, find_compatible_field): Remove.
9411 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9412 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9414 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9416 * combine.c (try_combine): Remove useless local variable.
9418 2011-04-03 Richard Guenther <rguenther@suse.de>
9419 Ira Rosen <ira.rosen@linaro.org>
9421 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9422 non-variable offsets and compare the remaining bases of the two
9423 accesses instead of looking for exact same data-ref.
9425 2011-04-02 Kai Tietz <ktietz@redhat.com>
9428 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9430 * i386.c (ix86_is_msabi_thiscall): New helper function.
9431 (ix86_is_type_thiscall): New helper function.
9432 (ix86_comp_type_attributes): Handle thiscall for method-functions
9434 (init_cumulative_args): Likewise.
9435 (find_drap_reg): Likewise.
9436 (ix86_static_chain): Likewise.
9437 (x86_this_parameter): Likewise.
9438 (x86_output_mi_thunk): Likewise.
9440 2011-04-01 Olivier Hainque <hainque@adacore.com>
9441 Nicolas Setton <setton@adacore.com>
9442 Eric Botcazou <ebotcazou@adacore.com>
9444 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9445 (add_gnat_descriptive_type_attribute): New function.
9446 (gen_array_type_die): Call it.
9447 (gen_enumeration_type_die): Likewise.
9448 (gen_struct_or_union_type_die): Likewise.
9449 (modified_type_die): Likewise.
9450 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9451 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9452 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9454 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9457 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9458 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9461 2011-03-17 Richard Guenther <rguenther@suse.de>
9464 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9465 origin for decls in other ltrans units.
9466 (input_varpool_node): Likewise.
9468 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9471 * expr.c (expand_assignment): Handle all possibilities
9472 if TO_RTX is CONCAT.
9473 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9474 (store_split_bit_field): If SUBREG_REG (op0) or
9475 op0 itself has smaller mode than word, return it
9476 for offset 0 and const0_rtx for out-of-bounds stores.
9477 If word is const0_rtx, skip it.
9479 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9481 * config/h8300/h8300.c (print_operand_address): Rename to...
9482 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9483 Call h8300_print_operand and h8300_print_operand_address instead of
9484 print_operand and print_operand_address. Declare.
9485 (print_operand): Renake to...
9486 (h8300_print_operand): ...this. Make static. Adjust comments.
9487 Call h8300_print_operand instead of print_operand. Declare.
9488 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9489 (h8300_register_move_cost): Likewise.
9490 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9491 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9492 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9493 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9494 * config/h8300/h8300-protos.h (print_operand): Delete.
9495 (print_operand_address): Delete.
9497 2011-04-01 Richard Henderson <rth@redhat.com>
9500 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9501 in strict mode before dwarf4. Re-order tests to early out
9502 before switching sections.
9504 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9506 * config/h8300/constraints.md: New file.
9507 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9508 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9509 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9510 * config/h8300/predicates.md (bit_operand): Likewise.
9511 (incdec_operand): Use satisfies_constraint_M and
9512 satisfies_constraint_O. Don't use C code block.
9513 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9514 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9515 (compute_mov_length): Use satisfies_constraint_G.
9516 (fix_bit_operand): Use satisfies_constraint_U.
9517 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9518 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9519 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9520 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9521 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9522 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9523 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9524 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9525 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9526 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9527 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9528 (EXTRA_MEMORY_CONSTRAINT): Delete.
9530 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9531 Michael Meissner <meissner@linux.vnet.ibm.com>
9534 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9535 operands, as per the specifications.
9537 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9538 (vec_extract_evenv4sf): Ditto.
9539 (vec_extract_evenv8hi): Ditto.
9540 (vec_extract_evenv16qi): Ditto.
9541 (vec_extract_oddv4si): Ditto.
9543 2011-03-31 Mark Wielaard <mjw@redhat.com>
9545 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9546 high_pc attribute if the CU has no associated code. Only output
9547 DW_AT_entry_pc for CU if not generating strict dwarf and
9550 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9552 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9553 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9555 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9556 * final.c (final_start_function): Call the new function rather
9557 than using a NULL argument for dwarf2out_frame_debug.
9559 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9560 that contains the prologue.
9562 * haifa-sched.c (queue_insn): New arg REASON. All callers
9563 changed. Print it in debugging output.
9565 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9567 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9568 Split most of the code into...
9569 (begin_move_insn): ... here. New function.
9570 (ebb_sched_info): Add a pointer to it.
9571 * haifa-sched.c (scheduled_insns): New static variable.
9572 (sched_extend_ready_list): Allocate it.
9573 (schedule_block): Use it to record the order of scheduled insns.
9574 Perform RTL changes to move insns only after all scheduling
9575 decisions have been made.
9576 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9577 begin_move_insn field.
9578 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9579 * sched-int.h (struct haifa_sched_info): Remove second argument
9580 from begin_schedule_ready hook. Add new member begin_move_insn.
9581 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9582 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9584 * haifa-sched.c (prune_ready_list): New function, broken out of
9586 (schedule_block): Use it.
9588 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9590 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9592 2011-04-01 Kai Tietz <ktietz@redhat.com>
9594 * config.gcc (*-*-mingw*): Allow as option the
9595 posix threading model.
9596 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9597 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9599 (CPP_SPEC): Add pthread/no-pthread handling.
9600 (LIB_SPEC): Likewise.
9601 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9602 (LIB_SPEC): Likewise.
9603 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9604 flag to pass -pthread option for shared libgcc build.
9605 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9606 for shared libgcc build.
9607 * config/i386/t-mingw-pthread: New file.
9608 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9609 New define to enable use of library pthread by default.
9610 * config/i386/mingw.opt (pthread): New driver option.
9611 (no-pthread): New driver option.
9612 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9613 * config/i386/mingw-w64.opt: Likewise.
9615 2011-04-01 Gary Funck <gary@intrepid.com>
9617 * c-decl.c (grokdeclarator): Fix formatting.
9619 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9621 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9622 instead of n_operands.
9623 (set_storage_via_setmem): Likewise.
9624 * optabs.c (maybe_gen_insn): Likewise.
9625 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9626 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9627 (mips_expand_builtin_direct): Likewise.
9628 * config/spu/spu.c (expand_builtin_args): Likewise.
9630 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9632 * recog.h (insn_data_d): Add n_generator_args.
9633 * genoutput.c (data): Likewise.
9634 (output_insn_data): Print it.
9635 (max_opno, num_dups): Delete.
9636 (scan_operands): Just fill in "d->operand[...]".
9637 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9639 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9641 * gensupport.h (pattern_stats): New structure.
9642 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9643 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9644 (max_operand_1, max_operand_vec): Delete.
9645 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9647 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9649 * emit-rtl.c (emit_pattern_after_setloc): New function.
9650 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9651 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9652 (emit_pattern_after): New function.
9653 (emit_insn_after, emit_jump_insn_after): Call it.
9654 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9655 (emit_pattern_before_setloc): New function.
9656 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9657 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9659 (emit_pattern_before): New function.
9660 (emit_insn_before, emit_jump_insn_before): Call it.
9661 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9663 2011-03-31 Richard Henderson <rth@redhat.com>
9665 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9666 (dw_separate_line_info_entry): Remove.
9667 (enum dw_line_info_opcode): New.
9668 (dw_line_info_entry): Use it.
9669 (dw_line_info_table, dw_line_info_table_p): New.
9670 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9671 (line_info_table, line_info_label_num): Remove.
9672 (line_info_table_in_use): Remove.
9673 (separate_line_info_table): Remove.
9674 (separate_line_info_table_allocated): Remove.
9675 (separate_line_info_table_in_use): Remove.
9676 (LINE_INFO_TABLE_INCREMENT): Remove.
9677 (line_info_label_num): New.
9678 (cur_line_info_table): New.
9679 (text_section_line_info, cold_text_section_line_info): New.
9680 (separate_line_info): New.
9681 (SEPARATE_LINE_CODE_LABEL): Remove.
9682 (print_dwarf_line_table): Remove.
9683 (debug_dwarf): Don't dump it.
9684 (output_one_line_info_table): New.
9685 (output_line_info): Use it.
9686 (new_line_info_table): New.
9687 (set_cur_line_info_table): New.
9688 (dwarf2out_switch_text_section): Use it.
9689 (dwarf2out_begin_function): Likewise.
9690 (push_dw_line_info_entry): New.
9691 (dwarf2out_source_line): Rewrite for new line info tables.
9692 (dwarf2out_init): Remove dead initailizations.
9694 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9696 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9698 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9699 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9700 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9701 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9702 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9703 * opt-functions.awk (flag_init, switch_bit_fields): New.
9704 (switch_flags): Don't handle flags moved to bit-fields. Don't
9705 generate CL_MISSING_OK or CL_SAVE.
9706 * optc-gen.awk: Update to generate bit-field output as well as
9708 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9709 bit-field instead of CL_REJECT_DRIVER flag.
9710 * opts-common.c (generate_canonical_option,
9711 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9712 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9713 instead of CL_REJECT_NEGATIVE flag.
9714 * toplev.c (print_switch_values): Use cl_report bit-field instead
9717 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9719 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9720 a zero minimum index only if it is redundant.
9722 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9724 PR rtl-optimization/48381
9725 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9726 instead of ira_class_hard_reg_index for calculating conflicting
9729 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9731 * cprop.c: Clean up hash table building.
9732 (reg_avail_info): Remove.
9733 (oprs_available_p): Remove.
9734 (record_last_reg_set_info): Remove.
9735 (record_last_set_info): Remove.
9736 (reg_available_p): New function.
9737 (gcse_constant_p): Do not treat unfolded conditions as constants.
9738 (make_set_regs_unavailable): New function.
9739 (hash_scan_set): Simplify with new reg_available_p.
9740 (compute_hash_table_work): Traverse insns stream only once.
9741 Do not compute reg_avail_info. Traverse insns in reverse order.
9742 Record implicit sets after recording explicit sets from the block.
9744 2011-03-31 Michael Matz <matz@suse.de>
9746 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9748 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9750 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9751 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9752 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9753 (h8300_mode_dependent_address_p): New function.
9754 (h8300_get_index): Make static.
9756 2011-03-31 Jeff Law <law@redhat.com>
9758 * reload1.c (elimination_effects): Fix typo in recent change.
9760 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9761 typo potentially leading to null pointer dereference.
9763 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9764 (setup_save_areas): Corresponding changes to avoid useless
9767 * jump.c (reversed_comparison_code_parts): Avoid successive return
9768 statements when REVERSE_CONDITION is defined.
9770 * expr.c (expand_assignment): Avoid useless assignments.
9771 (expand_expr_real_1): Likewise.
9772 (expand_expr_real_2): Avoid useless statements.
9774 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9776 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9778 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9781 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9783 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9786 * doc/tm.texi.in (TARGET_VERSION): Remove.
9787 * doc/tm.texi: Regenerate.
9788 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9789 * collect2.c (main): Don't use TARGET_VERSION.
9790 * mips-tdump.c (main): Don't use TARGET_VERSION.
9791 * mips-tfile.c (main): Don't use TARGET_VERSION.
9792 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9793 * config/rs6000/vxworksae.h: Remove.
9794 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9795 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9796 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9797 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9798 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9799 * config/arm/arm.h (TARGET_VERSION): Remove.
9800 * config/arm/coff.h (TARGET_VERSION): Remove.
9801 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9802 * config/arm/elf.h (TARGET_VERSION): Remove.
9803 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9804 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9805 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9806 * config/arm/pe.h (TARGET_VERSION): Remove.
9807 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9808 * config/arm/semi.h (TARGET_VERSION): Remove.
9809 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9810 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9811 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9812 * config/avr/avr.h (TARGET_VERSION): Remove.
9813 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9814 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9815 * config/frv/frv.h (TARGET_VERSION): Remove.
9816 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9817 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9818 * config/i386/darwin.h (TARGET_VERSION): Remove.
9819 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9820 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9821 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9822 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9823 * config/i386/gnu.h (TARGET_VERSION): Remove.
9824 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9825 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9826 * config/i386/linux.h (TARGET_VERSION): Remove.
9827 * config/i386/linux64.h (TARGET_VERSION): Remove.
9828 * config/i386/lynx.h (TARGET_VERSION): Remove.
9829 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9830 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9831 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9832 * config/i386/netware.h (TARGET_VERSION): Remove.
9833 * config/i386/nto.h (TARGET_VERSION): Remove.
9834 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9835 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9836 * config/ia64/elf.h (TARGET_VERSION): Remove.
9837 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9838 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9839 * config/ia64/linux.h (TARGET_VERSION): Remove.
9840 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9841 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9842 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9843 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9844 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9845 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9846 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9847 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9848 * config/m68k/linux.h (TARGET_VERSION): Remove.
9849 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9850 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9851 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9852 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9853 * config/mep/mep.h (TARGET_VERSION): Remove.
9854 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9855 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9856 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9857 * config/mips/linux.h (TARGET_VERSION): Remove.
9858 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9859 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9860 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9861 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9862 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9863 * config/pa/pa.h (TARGET_VERSION): Remove.
9864 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9865 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9866 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9867 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9868 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9869 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9870 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9871 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9872 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9873 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9874 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9875 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9876 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9877 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9878 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9879 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9880 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9881 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9882 * config/s390/linux.h (TARGET_VERSION): Remove.
9883 * config/s390/s390.h (TARGET_VERSION): Remove.
9884 * config/s390/tpf.h (TARGET_VERSION): Remove.
9885 * config/score/score.h (TARGET_VERSION): Remove.
9886 * config/sh/linux.h (TARGET_VERSION): Remove.
9887 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9888 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9889 * config/sh/sh.h (TARGET_VERSION): Remove.
9890 * config/sh/sh64.h (TARGET_VERSION): Remove.
9891 * config/sh/superh.h (TARGET_VERSION): Remove.
9892 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9893 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9894 * config/sparc/linux.h (TARGET_VERSION): Remove.
9895 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9896 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9897 TARGET_NAME32, TARGET_NAME): Remove.
9898 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9899 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9900 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9901 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9902 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9903 * config/spu/spu.h (TARGET_VERSION): Remove.
9904 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9905 * config/v850/v850.h (TARGET_VERSION): Remove.
9906 * config/vax/linux.h (TARGET_VERSION): Remove.
9907 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9908 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9909 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9911 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9914 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9915 frame-related from frame-unrelated adjustments to the stack pointer.
9917 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9919 * common.opt (fdebug-types-section): Move earlier.
9920 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9922 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9924 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9927 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9929 * tree.h (CASE_CHAIN): Define.
9930 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9931 (gimple_redirect_edge_and_branch): Likewise.
9933 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9936 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9939 2011-03-30 Jeff Law <law@redhat.com>
9941 * PR bootstrap/48371
9942 * reload1.c (reload): Fix botch in last change.
9944 * reload.h (struct reload): Fix typo introduced in last change.
9946 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9948 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9949 Undocumented. Remove help text.
9950 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9953 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9955 * doc/options.texi (NegativeAlias): Document.
9956 (Alias): Mention NegativeAlias.
9957 * opt-functions.awk: Handle NegativeAlias.
9958 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9959 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9960 * opts.h (CL_NEGATIVE_ALIAS): Define.
9961 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9962 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9964 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9966 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9967 mno-spe and mno-isel instead of mspe=no and -misel=no.
9969 2011-03-29 Mark Wielaard <mjw@redhat.com>
9971 * common.opt (fdebug-types-section): New flag.
9972 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9973 * dwarf2out.c (use_debug_types): New define.
9974 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9975 (print_die): Guard output of type unit signatures using
9977 (build_abbrev_table): Replace assert of dwarf_version >= 4
9978 with assert on use_debug_types.
9979 (size_of_die): Likewise.
9980 (unmark_dies): Likewise.
9981 (value_format): Decide AT_ref_external form on use_debug_types.
9982 (output_die): Replace dwarf_version version check guard with
9983 use_debug_types where appropriate.
9984 (modified_type_die): Likewise.
9985 (gen_reference_type_die): Likewise.
9986 (dwarf2out_start_source_file): Likewise.
9987 (dwarf2out_end_source_file): Likewise.
9988 (prune_unused_types_walk_attribs): Likewise.
9989 (dwarf2out_finish): Likewise.
9991 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9993 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9995 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9997 PR rtl-optimization/48332
9998 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9999 mode of input operand N and modeN to its actual mode.
10001 2011-03-30 Jeff Law <law@redhat.com>
10003 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10004 define accessor macro.
10005 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10006 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10007 (reg_equiv_init): Likewise.
10008 (reg_equivs_size): New variable.
10009 (reg_equiv_init_size): Remove.
10010 (allocate_initial_values): Move prototype to here from....
10011 * integrate.h (allocate_initial_values): Remove prototype.
10012 * integrate.c: Include reload.h.
10013 (allocate_initial_values): Corresponding changes.
10014 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10015 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10016 (update_equiv_regs): Corresponding changes.
10017 (ira): Corresponding changes.
10018 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10019 (push_secondary_reload): Corresponding changes.
10020 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10021 (make_memloc, find_reloads_address): Corresponding changes.
10022 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10023 (find_reloads_address_1): Corresponding changes.
10024 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10025 (refers_to_regno_for_reload_p): Corresponding changes.
10026 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10027 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10028 * reload1.c: Include ggc.h.
10029 (grow_reg_equivs): New function.
10030 (replace_pseudos_in, reload): Corresponding changes.
10031 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10032 (eliminate_regs_1, elimination_effects): Corresponding changes.
10033 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10034 (delete_output_reload): Likewise.
10035 * caller-save.c (mark_referenced_regs): Corresponding changes.
10036 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10037 * frv/predicates.md (frv_load_operand): Corresponding changes.
10038 * microblaze/microblaze.c (double_memory_operand): Corresponding
10040 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10041 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10042 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10043 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10044 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10046 * pa/pa.c (emit_move_sequence): Corresponding changes.
10047 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10049 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10052 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10053 structure modes. Don't check neon_vector_mem_operand for
10054 vector or structure modes.
10056 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10057 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10060 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10061 operand 1 and reshuffle the operands to match.
10062 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10064 2011-03-30 Christian Schüler <cschueler@gmx.de>
10067 * config/c.opt (F): Added 'Driver' to -F option.
10070 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10072 * config/darwin.opt: Added '-arch' option.
10074 2011-03-30 Nick Clifton <nickc@redhat.com>
10076 * config/rx/rx.md: Add peepholes and patterns to combine
10077 extending loads and simple arithmetic instructions.
10078 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10079 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10080 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10081 modes to use pre-decrement and post-increment addressing.
10082 (rx_is_restricted_memory_address): Add range checking of REG+INT
10084 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10085 (rx_memory_move_cost): Adjust cost of stores.
10086 (rx_adjust_insn_length): New function.
10088 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10091 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10092 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10093 matching arg00/arg01 types.
10095 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10097 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10098 last_location to UNKNOWN_LOCATION.
10100 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10103 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10106 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10107 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10110 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10111 Init(PROCESSOR_V7).
10112 (sparc_cpu): Likewise.
10113 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10116 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10119 PR middle-end/48342
10120 PR rtl-optimization/48345
10121 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10122 hard regs for given mode from profitable regs when doing secondary
10125 2011-03-29 Jeff Law <law@redhat.com>
10128 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10129 do_not_duplicate field.
10130 (lookup_redirection_data): Corresponding changes.
10131 (create_duplicates): Always create a template block.
10132 (redirect_edges): Remove code which reused the original block
10133 when it was going to become unreachable code.
10134 (thread_block): Don't set do_not_duplicate field.
10136 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10138 * lto-opts.c (register_user_option_p, lto_register_user_option):
10139 Make type argument unsigned.
10140 * lto-streamer.h (lto_register_user_option): Make type argument
10142 * opth-gen.awk: Make CL_* macros unsigned.
10143 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10144 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10145 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10146 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10147 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10148 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10149 (find_opt): Make lang_mask argument unsigned.
10151 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10153 PR rtl-optimization/48331
10154 PR rtl-optimization/48334
10155 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10156 for any used algorithm.
10158 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10160 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10163 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10165 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10166 (alpha_option_override): Don't set alpha_sr_alias_set.
10167 (emit_frame_store_1): Use gen_frame_mem rather than calling
10169 (alpha_expand_epilogue): Ditto.
10171 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10173 PR tree-optimization/48290
10174 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10175 vectorization, check that relevant phis in the basic block after
10176 the inner loop are really inner loop's exit phis.
10178 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10181 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10182 (cached_dw_loc_list_def): New structure.
10183 (cached_dw_loc_list): New typedef.
10184 (cached_dw_loc_list_table): New variable.
10185 (cached_dw_loc_list_table_hash): New function.
10186 (cached_dw_loc_list_table_eq): Likewise.
10187 (add_location_or_const_value_attribute): Take a bool cache_p.
10188 Cache the list when the parameter is true.
10189 (gen_formal_parameter_die): Update caller.
10190 (gen_variable_die): Likewise.
10191 (dwarf2out_finish): Likewise.
10192 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10193 while generating debug info for the decl.
10194 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10195 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10196 (resolve_addr): Cache the result of resolving a chain of
10199 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10201 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10202 conflict object hard regset nodes have intersecting hard reg sets.
10204 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10205 after regstat_init_n_sets_and_refs.
10207 * ira.c: Add more comments at the top.
10208 (setup_stack_reg_pressure_class, setup_pressure_classes):
10209 Add comments how we compute the register pressure classes.
10210 (setup_allocno_and_important_classes): Add more comments.
10211 (setup_class_translate_array, reorder_important_classes)
10212 (setup_reg_class_relations): Add comments.
10214 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10217 * ira-color.c: Add 2011 to the Copyright line.
10218 (assign_hard_reg): Add more comments.
10219 (improve_allocation): Ditto.
10221 * ira-costs.c: Add 2011 to the Copyright line.
10222 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10224 (setup_regno_cost_classes_by_mode): Ditto.
10226 Initial patches from ira-improv branch:
10228 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10230 * ira-build.c (ira_create_object): Remove initialization of
10231 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10232 (ira_create_allocno): Remove initialization of
10233 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10234 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10235 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10236 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10237 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10238 Initialize ALLOCNO_ADD_DATA.
10239 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10240 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10242 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10243 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10245 * ira.c (ira_reallocate): Remove.
10246 (setup_pressure_classes): Call
10247 ira_init_register_move_cost_if_necessary. Use
10248 ira_register_move_cost instead of ira_get_register_move_cost.
10249 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10250 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10252 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10253 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10254 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10255 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10256 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10257 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10259 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10260 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10261 (struct allocno_color_data): New.
10262 (allocno_color_data_t): New typedef.
10263 (allocno_color_data): New definition.
10264 (ALLOCNO_COLOR_DATA): New macro.
10265 (struct object_color_data): New.
10266 (object_color_data_t): New typedef.
10267 (object_color_data): New definition.
10268 (OBJECT_COLOR_DATA): New macro.
10269 (update_copy_costs, calculate_allocno_spill_cost): Call
10270 ira_init_register_move_cost_if_necessary. Use
10271 ira_register_move_cost instead of ira_get_register_move_cost.
10272 (move_spill_restore, update_curr_costs): Ditto.
10273 (allocno_spill_priority): Make it inline.
10274 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10275 (struct coalesce_data, coalesce_data_t): New.
10276 (allocno_coalesce_data): New definition.
10277 (ALLOCNO_COALESCE_DATA): New macro.
10278 (merge_allocnos, coalesced_allocno_conflict_p): Use
10279 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10280 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10281 (coalesce_allocnos): Ditto.
10282 (setup_coalesced_allocno_costs_and_nums): Ditto.
10283 (collect_spilled_coalesced_allocnos): Ditto.
10284 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10285 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10286 (coalesce_spill_slots): Ditto.
10287 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10288 free allocno_coalesce_data.
10290 * ira-conflicts.c: Fix formatting.
10291 (process_regs_for_copy): Call
10292 ira_init_register_move_cost_if_necessary. Use
10293 ira_register_move_cost instead of ira_get_register_move_cost.
10294 (build_object_conflicts): Optimize.
10296 * ira-costs.c (record_reg_classes): Optimize. Call
10297 ira_init_register_move_cost_if_necessary. Use
10298 ira_register_move_cost, ira_may_move_in_cost, and
10299 ira_may_move_out_cost instead of ira_get_register_move_cost and
10300 ira_get_may_move_cost.
10301 (record_address_regs): Ditto.
10302 (scan_one_insn): Optimize.
10303 (find_costs_and_classes): Optimize.
10304 (process_bb_node_for_hard_reg_moves): Call
10305 ira_init_register_move_cost_if_necessary. Use
10306 ira_register_move_cost instead of ira_get_register_move_cost.
10308 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10309 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10310 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10311 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10313 (ira_initiate_emit_data, ira_finish_emit_data)
10314 (create_new_allocno): New functions.
10315 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10316 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10317 Use ira_register_move_cost instead of ira_get_register_move_cost.
10319 * ira-int.h: Fix some comments.
10320 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10321 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10322 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10323 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10325 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10326 bitfield after mode. Make hard_regno a short int. Make
10327 hard_regno short. Remove first_coalesced_allocno and
10328 next_coalesced_allocno. Move mem_optimized_dest_p,
10329 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10330 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10331 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10332 temp, colorable_p. Add new member add_data.
10333 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10334 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10335 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10336 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10337 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10338 (ALLOCNO_ADD_DATA): New macro.
10339 (ira_emit_data_t): New typedef.
10340 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10341 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10342 from struct ira_allocno.
10343 (ALLOCNO_EMIT_DATA): New macro.
10344 (ira_allocno_emit_data, allocno_emit_reg): New.
10345 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10346 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10347 (OBJECT_ADD_DATA): New macro.
10348 (ira_reallocate): Remove.
10349 (ira_initiate_emit_data, ira_finish_emit_data): New.
10350 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10351 (ira_init_register_move_cost_if_necessary): New.
10352 (ira_object_conflict_iter_next): Merge into
10353 ira_object_conflict_iter_cond.
10354 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10356 * ira-live.c (process_single_reg_class_operands): Call
10357 ira_init_register_move_cost_if_necessary. Use
10358 ira_register_move_cost instead of ira_get_register_move_cost.
10360 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10362 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10364 * ira-costs.c: Fix formatting.
10365 (cost_classes, cost_classes_num): Remove.
10366 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10367 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10368 (cost_classes_del, cost_classes_htab): New.
10369 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10370 (initiate_regno_cost_classes, setup_cost_classes): New.
10371 (setup_regno_cost_classes_by_aclass): New.
10372 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10373 (record_reg_classes): Use regno_cost_classes instead of
10374 cost_classes. Move checking opposite operand up.
10375 (record_address_regs): Use regno_cost_classes
10376 instead of cost_classes.
10377 (scan_one_insn): Ditto. Use always general register.
10378 (print_allocno_costs): Use regno_cost_classes instead of
10380 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10381 (find_costs_and_classes): Set up cost classes for each registers.
10382 Use also their mode for this. Use regno_cost_classes instead of
10384 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10386 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10387 (ira_costs, ira_set_pseudo_classes): Call
10388 initiate_regno_cost_classes and finish_regno_cost_classes.
10390 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10392 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10394 * target.def (ira_cover_classes): Remove.
10396 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10398 * doc/tm.texi.in: Ditto.
10400 * ira-conflicts.c: Remove mentioning cover classes from the file.
10401 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10402 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10404 * targhooks.c (default_ira_cover_classes): Remove.
10406 * targhooks.h (default_ira_cover_classes): Ditto.
10408 * haifa-sched.c: Remove mentioning cover classes from the file.
10409 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10410 ira_pressure_classes and ira_pressure_classes_num instead of
10411 ira_reg_class_cover_size and ira_reg_class_cover. Use
10412 sched_regno_pressure_class instead of sched_regno_cover_class.
10413 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10414 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10416 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10417 classes from the file.
10418 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10419 (struct object_hard_regs, struct object_hard_regs_node): New.
10420 (struct ira_object): New members profitable_hard_regs,
10421 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10422 (struct ira_allocno): Rename cover_class to aclass. Rename
10423 cover_class_cost and updated_cover_class_cost to class_cost and
10424 updated_class_cost. Remove splay_removed_p and
10425 left_conflict_size. Add new members colorable_p.
10426 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10427 (ALLOCNO_COLORABLE_P): New macro.
10428 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10429 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10430 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10431 (OBJECT_...): Rename parameter C to O.
10432 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10433 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10434 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10435 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10436 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10437 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10438 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10439 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10440 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10441 x_ira_reg_class_subunion.
10442 (ira_max_memory_move_cost, ira_max_register_move_cost)
10443 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10444 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10445 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10446 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10447 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10448 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10449 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10450 (ira_tune_allocno_costs_and_cover_classes): Rename to
10451 ira_tune_allocno_costs.
10452 (ira_debug_hard_regs_forest): New.
10453 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10454 (ira_object_conflict_iter_next): Fix comments.
10455 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10456 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10457 cover_class to aclass.
10458 (ira_allocate_and_accumulate_costs): Ditto.
10459 (ira_allocate_and_set_or_copy_costs): Ditto.
10461 * opts.c (decode_options): Remove ira_cover_class check.
10463 * ira-color.c: Remove mentioning cover classes from the file. Use
10464 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10465 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10466 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10467 (splay-tree.h): Remove include.
10468 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10469 before copy_freq_compare_func.
10470 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10471 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10473 (hard_regs_roots, hard_regs_node_vec): Ditto.
10474 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10475 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10476 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10477 (create_new_object_hard_regs_node): Ditto.
10478 (add_new_object_hard_regs_node_to_forest): Ditto.
10479 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10480 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10482 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10483 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10484 (remove_unused_object_hard_regs_nodes): Ditto.
10485 (enumerate_object_hard_regs_nodes): Ditto.
10486 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10487 (object_hard_regs_subnode_t): Ditto.
10488 (struct object_hard_regs_subnode): Ditto.
10489 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10490 (setup_object_hard_regs_subnode_index): Ditto.
10491 (get_object_hard_regs_subnodes_num): Ditto.
10492 (form_object_hard_regs_nodes_forest): Ditto.
10493 (finish_object_hard_regs_nodes_tree): Ditto.
10494 (finish_object_hard_regs_nodes_forest): Ditto.
10495 (allocnos_have_intersected_live_ranges_p): Rename to
10496 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10497 (pseudos_have_intersected_live_ranges_p): Rename to
10498 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10499 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10500 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10501 (update_copy_costs): Remove assert. Skip cost update if the hard
10502 reg does not belong the class.
10503 (assign_hard_reg): Process only profitable hard regs.
10504 (uncolorable_allocnos_num): Make it scalar.
10505 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10506 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10507 and ira_reg_class_max_nregs.
10508 (bucket_allocno_compare_func): Check frequency first.
10509 (sort_bucket): Add compare function as a parameter.
10510 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10511 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10512 (push_allocno_to_stack): Rewrite for checking new allocno
10514 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10515 (push_only_colorable): Pass new parameter to sort_bucket.
10516 (push_allocno_to_spill): Remove.
10517 (allocno_spill_priority_compare): Make it inline and rewrite.
10518 (splay_tree_allocate, splay_tree_free): Remove.
10519 (allocno_spill_sort_compare): New function.
10520 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10521 build and use splay tree. Choose first allocno in uncolorable
10522 allocno bucket to spill. Remove setting spill cost.
10523 (all_conflicting_hard_regs): Remove.
10524 (setup_allocno_available_regs_num): Check only profitable hard
10525 regs. Print info about hard regs nodes.
10526 (setup_allocno_left_conflicts_size): Remove.
10527 (put_allocno_into_bucket): Don't call
10528 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10529 (improve_allocation): New.
10530 (color_allocnos): Call setup_profitable_hard_regs,
10531 form_object_hard_regs_nodes_forest, improve_allocation,
10532 finish_object_hard_regs_nodes_forest. Setup spill cost.
10533 (print_loop_title): Use pressure classes.
10534 (color_allocnso): Ditto.
10535 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10536 and allocnos_for_spilling.
10537 (ira_sort_regnos_for_alter_reg): Don't setup members
10538 {first,next}_coalesced_allocno.
10539 (color): Remove allocating and freeing removed_splay_allocno_vec.
10540 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10541 prohibited_class_mode_regs.
10543 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10545 (update_allocno_pressure_excess_length): Use pressure classes.
10546 (inc_register_pressure, dec_register_pressure): Check for pressure
10548 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10549 pressure class. Use ira_reg_class_nregs instead of
10550 ira_reg_class_max_nregs.
10551 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10552 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10553 (single_reg_class): Use ira_reg_class_nregs instead of
10554 ira_reg_class_max_nregs.
10555 (process_bb_node_lives): Use pressure classes.
10557 * ira-emit.c: Remove mentioning cover classes from the file. Use
10558 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10559 (change_loop): Use pressure classes.
10560 (modify_move_list): Call ira_set_allocno_class instead of
10561 ira_set_allocno_cover_class.
10563 * ira-build.c: Remove mentioning cover classes from the file. Use
10564 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10565 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10566 ALLOCNO_UPDATED_CLASS_COST instead of
10567 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10568 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10569 (ira_create_allocno): Remove initialization of
10570 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10571 ALLOCNO_COLORABLE_P.
10572 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10573 Update conflict regs for the objects.
10574 (create_cap_allocno): Remove assert. Don't propagate
10575 ALLOCNO_AVAILABLE_REGS_NUM.
10576 (ira_free_allocno_costs): New function.
10577 (finish_allocno): Change a part of code into call of
10578 ira_free_allocno_costs.
10579 (low_pressure_loop_node_p): Use pressure classes.
10580 (object_range_compare_func): Don't compare classes.
10581 (setup_min_max_conflict_allocno_ids): Ditto.
10583 * loop-invariant.c: Remove mentioning cover classes from the file.
10584 Use ira_pressure_classes and ira_pressure_classes_num instead of
10585 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10586 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10587 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10588 Use reg_allocno_class instead of reg_cover_class.
10589 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10590 STACK_REG_COVER_CLASS.
10591 (get_regno_cover_class): Rename to get_regno_pressure_class.
10592 (move_loop_invariants): Initialize and finalize regstat.
10594 * ira.c: Remove mentioning cover classes from the file. Add
10595 comments about coloring without cover classes. Use ALLOCNO_CLASS
10596 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10597 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10598 setup_class_subset_and_memory_move_costs.
10599 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10600 (setup_cover_and_important_classes): Rename to
10601 setup_allocno_and_important_classes.
10602 (setup_class_translate_array): New.
10603 (setup_class_translate): Call it for allocno and pressure classes.
10604 (cover_class_order): Rename to allocno_class_order.
10605 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10606 of ira_class_translate.
10607 (reorder_important_classes): Set up ira_important_class_nums.
10608 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10609 (print_class_cover): Rename to print_classes. Add parameter.
10610 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10611 Print pressure classes too.
10612 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10613 setup_reg_subclasses.
10614 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10615 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10616 (setup_prohibited_class_mode_regs): Use
10617 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10618 (clarify_prohibited_class_mode_regs): New function.
10619 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10620 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10621 (ira_init_once): Initialize them.
10622 (free_register_move_costs): Process them.
10623 (ira_init): Move calls of find_reg_classes and
10624 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10625 Call clarify_prohibited_class_mode_regs.
10626 (ira_no_alloc_reg): Remove.
10627 (too_high_register_pressure_p): Use pressure classes.
10629 * sched-deps.c: Remove mentioning cover classes from the file.
10630 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10631 ira_pressure_classes and ira_pressure_classes_num instead of
10632 ira_reg_class_cover_size and ira_reg_class_cover.
10633 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10634 sched_regno_pressure_class instead of sched_regno_cover_class.
10635 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10636 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10638 * ira.h: Add 2010 to Copyright.
10639 (ira_no_alloc_reg): Remove external.
10640 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10641 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10642 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10643 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10644 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10645 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10646 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10647 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10648 x_ira_no_alloc_regs.
10649 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10650 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10651 ira_allocno_classes_num and ira_allocno_classes.
10652 (ira_class_translate): Rename to ira_allocno_class_translate.
10653 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10654 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10655 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10656 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10657 (ira_no_alloc_regs): New.
10659 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10660 classes from the file. Use ALLOCNO_CLASS instead of
10661 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10662 ALLOCNO_COVER_CLASS_COST.
10663 (regno_cover_class): Rename to regno_aclass.
10664 (record_reg_classes): Use ira_reg_class_subunion instead of
10665 ira_reg_class_union.
10666 (record_address_regs): Check overflow.
10667 (scan_one_insn): Ditto.
10668 (print_allocno_costs): Print total mem cost fore regional allocation.
10669 (print_pseudo_costs): Use REG_N_REFS.
10670 (find_costs_and_classes): Use classes intersected with them on the
10671 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10672 ira_reg_class_union. Use ira_allocno_class_translate and
10673 regno_aclass instead of ira_class_translate and regno_cover_class.
10674 Modify code for finding regno_aclass. Setup preferred classes for
10676 (setup_allocno_cover_class_and_costs): Rename to
10677 setup_allocno_class_and_costs. Use regno_aclass instead of
10678 regno_cover_class. Use ira_set_allocno_class instead of
10679 ira_set_allocno_cover_class.
10680 (init_costs, finish_costs): Use regno_aclass instead of
10682 (ira_costs): Use setup_allocno_class_and_costs instead of
10683 setup_allocno_cover_class_and_costs.
10684 (ira_tune_allocno_costs_and_cover_classes): Rename to
10685 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10686 by processing objects. Use ira_reg_class_max_nregs instead of
10687 ira_reg_class_nregs.
10689 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10691 * sched-int.h: Remove mentioning cover classes from the file.
10692 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10694 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10695 classes from the file.
10696 (struct reg_pref): Rename coverclass into allocnoclass.
10697 (reg_cover_class): Rename to reg_allocno_class.
10699 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10701 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10703 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10705 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10707 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10709 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10711 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10713 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10715 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10717 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10719 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10720 (i386_ira_cover_classes): Ditto.
10722 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10724 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10726 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10728 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10730 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10732 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10734 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10735 (mips_ira_cover_classes): Ditto.
10737 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10739 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10741 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10743 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10745 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10747 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10748 (IRA_COVER_CLASSES_VSX): Ditto.
10750 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10751 (rs6000_ira_cover_classes): Ditto.
10753 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10755 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10757 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10759 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10761 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10763 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10765 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10767 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10769 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10771 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10773 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10776 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10777 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10778 dw_fde_unlikely_section_end_label, cold_in_std_section,
10779 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10780 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10782 (output_fde): Use dw_fde_second_{begin,end} if second is
10783 true, otherwise dw_fde_{begin,end}.
10784 (output_call_frame_info): Test dw_fde_second_begin != NULL
10785 instead of dw_fde_switched_sections.
10786 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10787 fields, initialize new fields. Initialize in_std_section
10788 unconditionally from the first partition.
10789 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10790 dw_fde_second_begin is non-NULL.
10791 (dwarf2out_switch_text_section): Stop initializing removed
10792 dw_fde_struct fields, initialize new fields, initialize
10793 also dw_fde_end here. Set dw_fde_switch_cfi even when
10794 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10795 (struct var_loc_list_def): Add last_before_switch field.
10796 (arange_table, arange_table_allocated, arange_table_in_use,
10797 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10798 (size_of_aranges): Count !in_std_section and !second_in_std_section
10799 hunks in fdes, instead of looking at arange_table_in_use.
10800 (output_aranges): Add aranges_length argument, don't call
10801 size_of_aranges here. Instead of using aranges_table*
10802 emit ranges for fdes when !in_std_section resp.
10803 !second_in_std_section.
10804 (dw_loc_list): Break ranges crossing section switch.
10805 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10806 use dw_fde_second_end instead of dw_fde_end as end of last range.
10807 (gen_subprogram_die): Don't call add_arange. Use
10808 dw_fde_{begin,end} for first partition and if switched
10809 section dw_fde_second_{begin,end} for the second.
10810 (var_location_switch_text_section_1,
10811 var_location_switch_text_section): New functions.
10812 (dwarf2out_begin_function): Initialize cold_text_section even
10813 when function_section () isn't text_section.
10814 (prune_unused_types): Don't walk arange_table.
10815 (dwarf2out_finish): Don't needlessly test
10816 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10817 If info_section_emitted, call size_of_aranges and if it indicates
10818 non-empty .debug_aranges, call output_aranges with the computed
10819 size. Stop using removed dw_fde_struct fields, use
10820 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10824 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10825 create ENTRY_VALUE if incoming or address of incoming's MEM
10827 * dwarf2out.c (mem_loc_descriptor): Don't emit
10828 DW_OP_GNU_entry_value of DW_OP_fbreg.
10829 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10830 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10831 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10832 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10834 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10835 is a REG_P or MEM_P with REG_P address, compute hash directly
10836 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10837 (preserve_only_constants): Don't clear VALUES forwaring
10838 ENTRY_VALUE to some other VALUE.
10840 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10842 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10843 instead of GEN_INT.
10845 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10847 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10848 block before expanding the statement.
10849 (expand_gimple_stmt_1): Likewise. Set them here...
10850 (expand_gimple_stmt): ...and not here. Tidy.
10851 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10854 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10856 * Makefile.in: New rule for cprop.o.
10857 * gcse.c: Move constant/copy propagation to cprop.c.
10858 (compute_local_properties): Only handle expression tables.
10859 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10860 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10861 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10862 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10863 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10864 compute_cprop_data, find_used_regs, try_replace_reg,
10865 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10866 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10867 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10868 find_bypass_set, reg_killed_on_edge, bypass_block,
10869 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10870 execute_rtl_cprop, pass_rtl_cprop): Move to...
10871 * cprop.c: ...here. New file, constant/copy propagation for RTL
10872 moved from gcse.c to here with minor cleanups in duplicated code.
10874 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10876 * config/i386/i386.c (flag_opts): Fix a typo in
10877 -mavx256-split-unaligned-store.
10879 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10881 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10882 LIBCALL_VALUE): Remove macros.
10883 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10884 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10885 (h8300_function_value, h8300_libcall_value,
10886 h8300_function_value_regno_p): New functions.
10888 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10890 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10892 2011-03-28 Jeff Law <law@redhat.com>
10894 * tree-ssa-threadupdate.c (redirect_edges): Call
10895 create_edge_and_update_destination_phis as needed.
10896 (create_edge_and_update_destination_phis): Accept new BB argument.
10897 All callers updated.
10898 (thread_block): Do not update the profile when threading around
10899 intermediate blocks.
10900 (thread_single_edge): Likewise.
10901 (determine_bb_domination_status): If BB is not a successor of the
10902 loop header, return NONDOMINATING.
10903 (register_jump_thread): Note when we register a jump thread around
10904 an intermediate block.
10905 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10906 (thread_across_edge): Use it.
10908 2011-03-28 Tristan Gingold <gingold@adacore.com>
10910 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10911 when for_return is 2.
10913 2011-03-28 Jeff Law <law@redhat.com>
10915 * var-tracking.c (canonicalize_values_mark): Delete unused
10917 (canonicalize_values_star, set_variable_part): Likewise.
10918 (clobber_variable_part, delete_variable_part): Likewise.
10920 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10922 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10924 2011-03-28 Martin Jambor <mjambor@suse.cz>
10926 * tree-inline.c (expand_call_inline): Do not check that destination
10928 (optimize_inline_calls): Assert that destination node is analyzed.
10929 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10930 not call tree_lowering_passes.
10931 * cgraph.h (cgraph_analyze_function): Declare.
10932 * cgraphunit.c (cgraph_analyze_function): Make public.
10934 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10936 * config/sparc/sparc-opts.h: New.
10937 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10938 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10939 (sparc_option_override): Store processor_type enumeration rather
10940 than string in cpu_default. Remove name and enumeration from
10941 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10942 without using sparc_select. Use target_flags_explicit instead of
10944 * config/sparc/sparc.h (enum processor_type): Move to
10946 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10947 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10948 HeaderInclude entry.
10949 (mcpu=, mtune=): Use Var and Enum.
10950 (sparc_processor_type): New Enum and EnumValue entries.
10952 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10953 Iain Sandoe <iains@gcc.gnu.org>
10956 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10958 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10960 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10961 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10962 Insert new statements at it in lieu of STMT.
10963 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10964 * tree-vect-stmts.c (vectorizable_store): Likewise.
10965 (vectorizable_load): Likewise.
10967 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10969 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10974 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10976 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10977 unaligned 256bit load/store.
10978 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10979 (*avx_movdqu<avxmodesuffix>): Likewise.
10981 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10984 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10985 * config/pa/pa.md (iordi3): Use new predicate in expander.
10986 (iorsi3): Likewise.
10988 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10990 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10991 FUNCTION_VALUE_REGNO_P): Remove macros.
10992 * config/mips/mips-protos.h (mips_function_value): Remove.
10993 * config/mips/mips.c (mips_function_value): Rename to...
10994 (mips_function_value_1): ... this. Make static. Handle receiving
10995 the function type in 'fn_decl_or_type' argument.
10996 (mips_function_value, mips_libcall_value,
10997 mips_function_value_regno_p): New function.
10998 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10999 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11001 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11003 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11004 and -mavx256-split-unaligned-store.
11005 (ix86_option_override_internal): Split 32-byte AVX unaligned
11006 load/store by default.
11007 (ix86_avx256_split_vector_move_misalign): New.
11008 (ix86_expand_vector_move_misalign): Use it.
11010 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11011 -mavx256-split-unaligned-store.
11013 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11014 256bit load/store. Generate unaligned store on misaligned memory
11016 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11018 (*avx_movdqu<avxmodesuffix>): Likewise.
11020 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11021 -mavx256-split-unaligned-store.
11023 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11026 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11029 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11031 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11032 opno arguments with an expand_operand. Use create_input_operand.
11033 (mips_prepare_builtin_target): Delete.
11034 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11036 (mips_expand_builtin_direct): Use create_output_operand and
11037 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11038 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11039 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11041 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11043 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11045 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11047 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11049 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11050 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11051 basic blocks and call commit_edge_insertions directly.
11052 (fixup_abnormal_edges): Move from here to...
11053 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11054 on the edges and return whether some have actually been inserted.
11055 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11058 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11060 PR rtl-optimization/48144
11061 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11062 (merge_expr_data): ... here.
11063 (av_set_intersect): Rename to av_set_code_motion_filter.
11064 Update all callers. Call merge_history_vect when an expression
11065 is found in both sets.
11066 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11068 2011-03-26 Alan Modra <amodra@gmail.com>
11070 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11071 cmodel medium addresses.
11072 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11073 64-bit gpr loads and stores.
11074 (rs6000_secondary_reload_ppc64): New function.
11075 * config/rs6000/rs6000-protos.h: Declare it.
11076 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11078 2011-03-26 Alan Modra <amodra@gmail.com>
11081 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11082 GNU Go in traceback table.
11084 2011-03-25 Richard Henderson <rth@redhat.com>
11086 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11087 if there are exactly 6 operands.
11088 (set_storage_via_setmem): Similarly.
11090 2011-03-25 Kai Tietz <ktietz@redhat.com>
11092 * collect2.c (write_c_file_stat): Handle backslash
11093 as right-hand directory separator.
11094 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11095 checking just for slash.
11096 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11097 instead of checking for trailing slash.
11098 * gcc.c (record_temp_file): Use filename_cmp instead
11100 (do_spec_1): Likewise.
11101 (replace_outfile_spec_function): Likewise.
11102 (is_directory): Use filename_ncmp instead of strncmp.
11103 (print_multilib_info): Likewise.
11104 * gcov.c (find_source): Use filename_cmp instead
11106 (make_gcov_file_name): Fix order of slash/backslash
11108 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11109 (add_standard_paths): Likewise.
11110 * mips-tfile.c (saber_stop): Handle backslash.
11111 * prefix.c (update_path): Use filename_ncmp instead of
11113 * profile.c (output_location): Use filename_cmp instead
11115 * read-md.c (handle_toplevel_file): Handle backslash.
11116 * tlink.c (frob_extension): Likewise.
11117 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11119 * tree-dump.c (dequeue_and_dump): Handle backslash.
11120 * tree.c (get_file_function_name): Likewise.
11121 * gengtype.c (read_input_list): Likewise.
11122 (get_file_realbasename): Likewise.
11123 (get_output_file_with_visibility): Use filename_cmp
11126 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11128 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11131 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11133 * fold-const.c (expr_location_or): New function.
11134 (fold_truth_not_expr): Call it.
11136 2011-03-25 Jeff Law <law@redhat.com>
11138 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11140 * c-family/c-common.c (def_fn_type): Likewise.
11141 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11142 * emit-rtl.c (gen_rtvec): Likewise.
11143 * lto/lto-lang.c (def_fn_type): Likewise.
11145 2011-03-25 Richard Guenther <rguenther@suse.de>
11147 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11148 also generate copies.
11149 (fini_copy_prop): Handle constant values properly.
11151 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11153 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11154 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11155 (hash_loc_operands, compare_loc_operands): Handle
11156 DW_OP_GNU_entry_value.
11158 2011-03-25 Kai Tietz <ktietz@redhat.com>
11160 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11161 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11162 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11163 comment and use macro TARGET_64BIT_MS_ABI instead.
11164 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11165 and change default behavior for 32-bit MS_ABI.
11166 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11167 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11169 (ix86_cfun_abi): Likewise.
11170 (ix86_maybe_switch_abi): Adjust comment.
11171 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11172 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11173 instead of checking for SYSV_ABI.
11174 (ix86_nsaved_sseregs): Likewise.
11175 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11177 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11178 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11179 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11180 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11181 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11183 2011-03-25 Richard Guenther <rguenther@suse.de>
11185 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11186 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11187 (verify_gimple): Remove.
11188 * tree-cfg.c (verify_gimple_call): Merge verification
11190 (verify_gimple_phi): Merge verification from verify_stmts.
11191 (verify_gimple_label): New function.
11192 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11193 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11194 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11195 (verify_stmts): Rename to verify_gimple_in_cfg.
11196 (verify_gimple_in_cfg): New function.
11197 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11198 * tree-ssa.c (verify_ssa): Likewise.
11199 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11201 2011-03-25 Richard Guenther <rguenther@suse.de>
11203 * passes.c (init_optimization_passes): Add FRE pass after
11206 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11207 Andrew Stubbs <ams@codesourcery.com>
11209 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11211 (arm_movdi_vfp_cortexa8): New pattern.
11212 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11213 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11214 instructions when tuning for Cortex-A8. Set attribute "arch".
11215 * config/arm/arm.md: Move include arm-tune.md up a bit.
11216 (define_attr "arch"): Add "onlya8" and "nota8" values.
11217 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11219 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11223 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11225 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11226 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11227 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11228 * passes.c (init_optimization_passes): Move
11229 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11231 2011-03-25 Kai Tietz <ktietz@redhat.com>
11233 * c-typeck.c (comptypes_internal): Replace target
11234 hook call of comp_type_attributes by version in tree.c file.
11235 * gimple.c (gimple_types_compatible_p_1): Likewise.
11236 * tree-ssa.c (useless_type_conversion_p): Likewise.
11237 * tree.c (build_type_attribute_qual_variant): Likewise.
11238 (attribute_value_equal): New static helper function.
11239 (comp_type_attributes): New function.
11240 (merge_attributes): Use attribute_value_equal for comparison.
11241 (attribute_list_contained): Likewise.
11242 * tree.h (comp_type_attributes): New prototype.
11244 2011-03-25 Richard Guenther <rguenther@suse.de>
11246 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11247 of complex types at -O0.
11248 (verify_gimple_assign_binary): Likewise.
11249 (verify_gimple_assign_ternary): Likewise.
11251 2011-03-24 Mark Wielaard <mjw@redhat.com>
11253 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11254 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11256 2011-03-24 Mark Wielaard <mjw@redhat.com>
11259 * dwarf2out.c (output_abbrev_section): Only write table when
11260 abbrev_die_table_in_use > 1.
11262 2011-02-24 Richard Henderson <rth@redhat.com>
11264 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11265 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11266 (alpha_expand_unaligned_load_words): Use extql.
11267 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11268 (emit_insxl): Handle all modes for consistency.
11270 2011-02-24 Richard Henderson <rth@redhat.com>
11272 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11273 (alpha_expand_unaligned_load): Likewise.
11274 (alpha_expand_unaligned_store): Likewise.
11275 (alpha_expand_unaligned_load_words): Likewise.
11276 (alpha_expand_unaligned_store_words): Likewise.
11277 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11278 (alpha_split_lock_test_and_set_12): Likewise.
11279 (print_operand, alpha_fold_builtin_extxx): Likewise.
11280 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11281 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11282 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11283 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11284 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11285 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11286 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11287 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11288 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11289 (extwl, extll, extql): Similarly.
11290 (inswh, inslh, insqh): Similarly.
11291 (mskbl, mskwl, mskll, mskql): Similarly.
11292 (mskwh, msklh, mskqh): Similarly.
11294 2011-02-24 Richard Henderson <rth@redhat.com>
11296 * config/alpha/alpha.md (attribute isa): Add er, ner.
11297 (attribute enabled): Handle them.
11298 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11300 2011-02-24 Richard Henderson <rth@redhat.com>
11302 * config/alpha/alpha.md (attribute isa): Add vms.
11303 (attribute enabled): Handle it.
11304 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11305 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11306 (*movtf): Rename from *movtf_internal for consistency.
11307 (*movsi): Merge with *movsi_nt_vms.
11308 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11309 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11310 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11311 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11313 2011-02-24 Richard Henderson <rth@redhat.com>
11315 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11316 (extendqisi2, extendhisi2): Likewise.
11317 (extendqidi2): Simplify BWX/non-BWX expansions.
11318 (extendhidi2): Similarly.
11320 2011-02-24 Richard Henderson <rth@redhat.com>
11322 * config/alpha/alpha.md (attribute isa): New.
11323 (attribute enabled): New.
11324 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11325 (zero_extendqisi2, zero_extendqidi2): Similarly.
11326 (zero_extendhisi2, zero_extendhidi2): Similarly.
11327 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11329 2011-02-24 Richard Henderson <rth@redhat.com>
11331 * config/alpha/predicates.md (input_operand): Revert last change;
11332 update comment to mention 32-bit VMS rather than Windows.
11334 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11336 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11337 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11338 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11339 * passes.c (init_optimization_passes): Move
11340 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11342 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11344 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11346 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11348 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11351 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11354 * simplify-rtx.c (simplify_const_unary_operation): Call
11355 real_convert when changing mode class with FLOAT_EXTEND.
11357 2011-03-24 Nick Clifton <nickc@redhat.com>
11359 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11360 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11361 * config/rx/rx.c (rx_option_override): Set align_jumps,
11362 align_loops and align_labels if not set by the user.
11363 (rx_align_for_label): New function.
11364 (rx_max_skip_for_label): New function.
11365 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11366 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11367 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11368 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11369 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11371 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11373 PR rtl-optimization/48263
11374 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11375 and original commutative_p handling. Use maybe_gen_insn.
11377 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11379 * reload.c (find_reloads_subreg_address): Add address_reloaded
11380 parameter and return true there if the full address has been
11382 (find_reloads_toplev): Pass address_reloaded flag.
11383 (find_reloads_address_1): Don't use address_reloaded parameter.
11385 2011-03-24 Jeff Law <law@redhat.com>
11387 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11388 unused variable "ann".
11389 (remove_unused_locals): Likewise.
11391 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11394 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11397 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11399 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11400 for invalid symbolic addresses.
11401 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11404 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11406 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11407 the argument in calls to fold_truth_not_expr.
11409 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11411 * tree.c (record_node_allocation_statistics): New function.
11412 (make_node_stat, copy_node_stat, build_string): Call it.
11413 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11414 (build1_stat, build_omp_clause): Likewise.
11416 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11418 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11421 2011-03-24 Richard Guenther <rguenther@suse.de>
11423 PR tree-optimization/48271
11424 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11425 blocks that still exist.
11427 2011-03-24 Richard Guenther <rguenther@suse.de>
11429 PR tree-optimization/48270
11430 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11431 not free datarefs before ddrs.
11433 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11435 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11436 from the address built for a reference with variable offset.
11438 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11441 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11442 alternatives that can be handled with movq or movabsq insn.
11443 (*movdf_internal): Disable for !TARGET_64BIT.
11444 (*movdf_internal_nointeger): Ditto.
11445 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11447 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11449 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11450 (FUNCTION_ARG_ADVANCE): Likewise.
11451 * tm.texi.in: Change references to them to hook references.
11452 * tm.texi: Regenerate.
11453 * targhooks.c (default_function_arg): Eliminate check for target macro.
11454 (default_function_incoming_arg): Likewise.
11455 (default_function_arg_advance): Likewise.
11456 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11457 (function_arg_advance): Likewise.
11458 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11460 2011-03-24 Richard Guenther <rguenther@suse.de>
11462 PR middle-end/48269
11463 * tree-object-size.c (addr_object_size): Do not double-account
11464 for MEM_REF offsets.
11466 2011-03-24 Diego Novillo <dnovillo@google.com>
11468 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11469 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11470 (lto_input_data_block): Move from lto-opts.c. Make extern.
11472 (lto_input_string): Rename from input_string. Make extern.
11474 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11475 output_string_with_length.
11476 Output 0 to indicate a non-NULL string. Update all callers to
11478 (lto_output_string): Rename from output_string. Make extern.
11480 (lto_output_decl_state_streams): Make extern.
11481 (lto_output_decl_state_refs): Make extern.
11482 * lto-streamer.h (lto_input_string): Declare.
11483 (lto_input_data_block): Declare.
11484 (lto_output_string): Declare.
11485 (lto_output_string_with_length): Declare.
11486 (lto_output_decl_state_streams): Declare.
11487 (lto_output_decl_state_refs): Declare.
11489 2011-03-24 Richard Guenther <rguenther@suse.de>
11491 PR tree-optimization/46562
11492 * tree.c (build_invariant_address): New function.
11493 * tree.h (build_invariant_address): Declare.
11494 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11495 a renamed function moved ...
11496 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11497 Take valueization callback parameter.
11498 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11499 * gimple-fold.h: New file.
11500 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11501 (ccp_fold, fold_const_aggregate_ref,
11502 fold_ctor_reference, fold_nonarray_ctor_reference,
11503 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11504 get_base_constructor): Move ...
11505 * gimple-fold.c: ... here.
11506 (gimple_fold_stmt_to_constant_1): New function
11507 split out from ccp_fold. Take a valueization callback parameter.
11508 Valueize all operands.
11509 (gimple_fold_stmt_to_constant): New wrapper function.
11510 (fold_const_aggregate_ref_1): New function split out from
11511 fold_const_aggregate_ref. Take a valueization callback parameter.
11512 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11513 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11514 invariant POINTER_PLUS_EXPRs to invariant form.
11515 (vn_valueize): New function.
11516 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11517 * tree-vrp.c (vrp_valueize): New function.
11518 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11519 to fold statements to constants.
11520 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11521 function declarations.
11522 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11523 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11525 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11527 * config/h8300/predicates.md (jump_address_operand): Fix register
11530 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11532 * doc/invoke.texi (max-stores-to-sink): Document.
11533 * params.h (MAX_STORES_TO_SINK): Define.
11534 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11535 if either vectorization or if-conversion is disabled.
11536 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11537 tree-vect-data-refs.c vect_equal_offsets.
11538 (dr_equal_offsets_p): New function.
11539 (find_data_references_in_bb): Remove static.
11540 * tree-data-ref.h (find_data_references_in_bb): Declare.
11541 (dr_equal_offsets_p): Likewise.
11542 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11543 (vect_drs_dependent_in_basic_block): Update calls to
11544 vect_equal_offsets.
11545 (vect_check_interleaving): Likewise.
11546 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11547 (cond_if_else_store_replacement): Rename to...
11548 (cond_if_else_store_replacement_1): ... this. Change arguments and
11550 (cond_if_else_store_replacement): New function.
11551 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11552 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11554 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11557 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11558 to subtract lower bound instead of GEN_INT().
11560 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11565 * doc/extend.texi (Alignment): Move section to match order in TOC.
11566 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11567 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11569 2011-03-23 Jeff Law <law@redhat.com>
11571 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11572 before removing the edge.
11574 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11575 it may have been freed by redirect_branch_edge or
11576 redirect_edge_succ_nodup.
11578 2011-03-23 Richard Guenther <rguenther@suse.de>
11580 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11581 (check_va_list_escapes): Likewise.
11582 (check_all_va_list_escapes): Likewise.
11584 2011-03-23 Richard Guenther <rguenther@suse.de>
11586 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11587 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11588 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11589 (alias.o): Likewise.
11590 (ipa-type-escape.o): Remove.
11591 (ipa-struct-reorg.o): Likewise.
11592 (GTFILES): Remove ipa-struct-reorg.c.
11593 * alias.c: Do not include ipa-type-escape.h.
11594 * tree-ssa-alias.c: Likewise.
11595 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11596 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11597 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11598 and ipa-type-escape passes.
11599 * tree-pass.h (pass_ipa_type_escape): Remove.
11600 (pass_ipa_struct_reorg): Likewise.
11601 * ipa-struct-reorg.h: Remove.
11602 * ipa-struct-reorg.c: Likewise.
11603 * ipa-type-escape.h: Likewise.
11604 * ipa-type-escape.c: Likewise.
11605 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11606 (--param struct-reorg-cold-struct-ratio): Likewise.
11607 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11608 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11609 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11611 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11613 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11614 cpu attribute value.
11615 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11616 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11617 * config/s390/s390.c (processor_flags_table): New constant array.
11618 (s390_handle_arch_option): Remove.
11619 (s390_handle_option): Remove s390_handle_arch_option invocations
11620 and OPT_mwarn_framesize_ handling.
11621 (s390_option_override): Remove s390_handle_arch_option invocation.
11622 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11624 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11625 * config/s390/s390.opt (s390_tune, s390_arch)
11626 (march=): Replace s390_arch_option enum and values with
11627 processor_type. Set variable name to s390_arch. Set
11628 initialization value.
11629 (mtune=): Replace s390_arch_option with processor_type. Set
11630 variable name to s390_tune. Set initialization value.
11632 2011-03-23 Julian Brown <julian@codesourcery.com>
11634 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11635 accesses which are not naturally aligned.
11637 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11640 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11642 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11644 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11645 parameter from "int" to "enum insn_code".
11646 (expand_operand_type): New enum.
11647 (expand_operand): New structure.
11648 (create_expand_operand): New function.
11649 (create_fixed_operand, create_output_operand): Likewise
11650 (create_input_operand, create_convert_operand_to): Likewise.
11651 (create_convert_operand_from, create_address_operand): Likewise.
11652 (create_integer_operand): Likewise.
11653 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11654 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11655 (expand_insn, expand_jump_insn): Likewise.
11656 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11657 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11658 (expand_movstr, expand_builtin___clear_cache): Likewise.
11659 (expand_builtin_lock_release): Likewise.
11660 * explow.c (allocate_dynamic_stack_space): Likewise.
11661 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11662 and use the default handling in that case.
11663 * expmed.c (check_predicate_volatile_ok): Delete.
11664 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11665 (emit_cstore): Likewise.
11666 * expr.c (emit_block_move_via_movmem): Likewise.
11667 (set_storage_via_setmem, expand_assignment): Likewise.
11668 (emit_storent_insn, try_casesi): Likewise.
11669 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11670 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11671 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11672 (expand_twoval_unop, expand_twoval_binop): Likewise.
11673 (expand_unop_direct, emit_indirect_jump): Likewise.
11674 (emit_conditional_move, vector_compare_rtx): Likewise.
11675 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11676 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11677 (expand_sync_lock_test_and_set): Likewise.
11678 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11679 (emit_unop_insn): Likewise.
11680 (expand_copysign_absneg): Change icode to an insn_code.
11681 (create_convert_operand_from_type): New function.
11682 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11683 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11684 (expand_insn, expand_jump_insn): Likewise.
11685 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11686 than const_int_operand for operand 2.
11688 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11690 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11693 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11695 * emit-rtl.c (emit_pattern_before_noloc): New function.
11696 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11697 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11698 (emit_pattern_after_noloc): New function.
11699 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11700 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11702 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11704 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11705 (__ffsDI2): Likewise.
11707 2011-03-22 Richard Henderson <rth@redhat.com>
11709 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11710 of !TARGET_ABI_OPEN_VMS.
11711 (alpha_trampoline_init, alpha_start_function): Likewise.
11712 (alpha_expand_epilogue, alpha_file_start): Likewise.
11713 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11714 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11715 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11716 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11717 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11719 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11721 * config/s390/s390-opts.h: New.
11722 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11723 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11724 s390_stack_guard): Remove.
11725 (s390_handle_arch_option): Return void. Take enum
11726 s390_arch_option value instead of string and searching array.
11727 (s390_handle_option): Don't assert that global structures are in
11728 use. Access variables via opts pointer. Use error_at. Don't use
11729 sscanf for -mstack-guard= or -mstack-size=. Update call to
11730 s390_handle_arch_option.
11731 (s390_option_override): Update call to s390_handle_arch_option.
11732 (s390_emit_prologue): Use %d format for s390_stack_size in
11733 diagnostic. Use %wd for HOST_WIDE_INT.
11734 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11735 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11736 * config/s390/s390.opt (config/s390/s390-opts.h): New
11737 HeaderInclude entry.
11738 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11739 s390_arch_flags, s390_warn_framesize): New Variable entries.
11740 (s390_arch_option): New Enum and EnumValue entries.
11741 (march=): Use Enum instead of Var.
11742 (mstack-guard=, mstack-size=): Use UInteger and Var.
11743 (mtune=): Use Enum.
11745 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11747 * config/score/score.c (score_handle_option): Don't assert that
11748 global structures are in use. Access target_flags via opts
11749 pointer. Use value of -march= option to determine target_flags
11751 * config/score/score.opt (march=): Use Enum.
11752 (score_arch): New Enum and EnumValue entries.
11754 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11756 * config/mep/mep.c (option_mtiny_specified): Remove.
11757 (mep_option_override): Move register handling for -mivc2 from
11758 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11759 instead of option_mtiny_specified.
11760 (mep_handle_option): Access target_flags via opts pointer. Don't
11761 assert that global structures are in use. Defer part of -mivc2
11762 handling and move it to mep_option_override.
11763 * config/mep/mep.opt (IVC2): New Mask entry.
11764 (mivc2): Use Var and Defer instead of Mask.
11766 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11768 * config/v850/v850-opts.h: New.
11769 * config/v850/v850.c (small_memory): Replace with
11770 small_memory_physical_max array. Make that array static const.
11771 (v850_handle_memory_option): Take integer value of argument. Take
11772 gcc_options pointer, option text and location. Return void.
11773 Update for changes to small memory structures.
11774 (v850_handle_option): Access target_flags via opts pointer. Don't
11775 assert that global structures are in use. Update calls to
11776 v850_handle_memory_option.
11777 (v850_encode_data_area): Update references to small memory settings.
11778 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11779 (enum small_memory_type): Move to v850-opts.h.
11780 * config/v850/v850.opt (config/v850/v850-opts.h): New
11781 HeaderInclude entry.
11782 (small_memory_max): New Variable entry.
11783 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11784 (mtda, mzda): Likewise.
11786 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11788 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11789 pointer. Don't assert that global structures are in use.
11791 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11793 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11794 via opts pointer. Don't assert that global structures are in use.
11796 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11798 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11799 (munix=93): Use Var.
11800 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11801 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11802 * config/pa/pa-opts.h: New.
11803 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11804 (pa_handle_option): Don't assert that global structures are in
11805 use. Access target_flags via opts pointer. Don't handle
11806 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11808 (pa_option_override): Handle deferred OPT_mfixed_range_.
11810 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11812 * config/mn10300/mn10300-opts.h: New.
11813 * config/mn10300/mn10300.c (mn10300_processor,
11814 mn10300_tune_string): Remove.
11815 (mn10300_handle_option): Don't assert that global structures are
11816 in use. Access mn10300_processor via opts pointer. Don't handle
11818 * config/mn10300/mn10300.h (enum processor_type): Move to
11820 (mn10300_processor): Remove.
11821 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11822 HeaderInclude entry.
11823 (mn10300_processor): New Variable entry.
11826 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11828 * config/microblaze/microblaze.c: Don't include opts.h.
11829 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11830 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11831 (mno-clearbss): Use Var and Warn.
11833 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11835 * config/m32r/m32r-opts.h: New.
11836 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11837 (m32r_handle_option): Don't assert that global structures are in
11838 use. Access target_flags and m32r_cache_flush_func via opts
11839 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11840 OPT_mno_flush_trap here.
11841 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11842 include of m32r-opts.h.
11843 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11844 HeaderInclude entry.
11845 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11846 (mmodel=): Use Enum and Var.
11847 (m32r_model): New Enum and EnumValue entries.
11848 (mno-flush-trap): Use Var.
11849 (msdata=): Use Enum and Var.
11850 (m32r_sdata): New Enum and EnumValue entries.
11852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11854 * config/m32c/m32c.c: Don't include opts.h.
11855 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11856 m32c_handle_option): Remove.
11857 (m32c_option_override): Check global_options_set.x_target_memregs
11858 instead of target_memregs_set.
11859 * config/m32c/m32c.h (target_memregs): Remove.
11860 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11863 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11865 * config/iq2000/iq2000-opts.h: New.
11866 * config/iq2000/iq2000.c: Don't include opts.h.
11867 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11868 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11869 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11870 HeaderInclude entry.
11871 (iq2000_tune): New Variable entry.
11872 (march=): Add comment. Use Enum.
11873 (iq2000_arch): New Enum and EnumValue entries.
11874 (mcpu=): Use Enum and Var.
11875 (iq2000_tune): New Enum and EnumValue entries.
11877 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11879 * config/ia64/ia64-opts.h: New.
11880 * config/ia64/ia64.c (ia64_tune): Remove.
11881 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11882 here. Use error_at.
11883 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11884 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11885 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11886 HeaderInclude entry.
11887 (ia64_tune): New Variable entry.
11888 (mfixed-range=): Use Defer and Var.
11889 (mtune=): Use Enum and Var.
11890 (ia64_tune): New Enum and EnumValue entries.
11892 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11894 * config/frv/frv-opts.h: New.
11895 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11897 (frv_cpu_type): Remove.
11898 * config/frv/frv.c: Don't include opts.h.
11899 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11900 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11901 (frv_cpu_type): New Variable entry.
11902 (frv_cpu): New Enum and EnumValue entries.
11904 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11906 * config/cris/cris.c (cris_handle_option): Access target_flags via
11907 opts pointer. Don't assert that global structures are in use.
11908 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11909 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11911 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11913 * config/bfin/bfin-opts.h: New.
11914 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11915 bfin_si_revision, bfin_workarounds): Remove.
11916 (bfin_cpus): Make static const.
11917 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11918 not bfin_lib_id_given.
11919 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11920 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11921 pointer. Use error_at. Don't assert that global structures are in use.
11922 * config/bfin/bfin.h: Include bfin-opts.h.
11923 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11924 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11925 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11926 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11929 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11931 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11932 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11933 or -msoft-float here.
11934 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11935 -msoft-float and -mhard-float.
11936 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11937 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11939 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11941 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11942 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11944 (LIBGCC_SPEC): Don't handle -msoft-float.
11945 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11947 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11949 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11950 -mfloat-abi=*, not -msoft-float and -mhard-float.
11951 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11953 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11954 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11955 mhard-float and msoft-float.
11956 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11957 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11958 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11959 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11961 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11962 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11964 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11966 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11969 2011-03-22 Richard Henderson <rth@redhat.com>
11971 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11972 TARGET_ABI_WINDOWS_NT.
11973 (alpha_output_function_end_prologue): Likewise.
11974 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11975 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11976 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11977 (trap, *movsi_nt_vms): Likewise.
11978 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11979 (*tablejump_osf_nt_internal): Remove.
11980 * config/alpha/predicates.md (input_operand): Only test Pmode.
11982 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11984 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11985 via opts pointer. Use error_at. Don't assert that global
11986 structures are in use.
11988 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11990 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11991 (ix86_handle_option): Access ix86_isa_flags and
11992 ix86_isa_flags_explicit via opts pointer. Don't assert that
11993 global structures are in use.
11994 (ix86_function_specific_save, ix86_function_specific_restore):
11995 Update ix86_isa_flags_explicit field name.
11996 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11997 (ix86_isa_flags_explicit): Rename TargetSave entry to
11998 x_ix86_isa_flags_explicit.
12000 2011-03-22 Richard Henderson <rth@redhat.com>
12002 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12003 (alpha_option_override, direct_return): Likewise.
12004 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12005 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12006 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12007 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12008 (alpha_expand_epilogue, alpha_end_function): Likewise.
12009 (alpha_init_libfuncs): Likewise.
12010 (struct machine_function): Remove unicosmk members.
12011 (print_operand) ['t']: Remove.
12012 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12013 unicosmk_output_module_name, unicosmk_output_common,
12014 current_section_align, unicosmk_output_text_section_asm_op,
12015 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12016 unicosmk_section_type_flags, unicosmk_unique_section,
12017 unicosmk_asm_named_section, unicosmk_insert_attributes,
12018 unicosmk_output_align, unicosmk_defer_case_vector,
12019 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12020 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12021 unicosmk_output_ssib, unicosmk_add_call_info_word,
12022 unicosmk_extern_head, unicosmk_output_default_externs,
12023 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12024 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12025 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12026 * config/alpha/alpha-protos.h: Update.
12027 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12028 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12029 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12030 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12031 (*mulsi_se, mulvsi3): Likewise.
12032 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12033 (*divmodsi_internal, call, call_value, realign): Likewise.
12034 (moddi3, umoddi3): Likewise; remove duplicate expander.
12035 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12036 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12037 (*movdi_nofix): Remove r/U alternative.
12038 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12039 * config/alpha/constraints.md ("U"): Remove.
12040 * config/alpha/predicates.md (call_operand"): Don't test
12041 TARGET_ABI_UNICOSMK.
12043 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12045 * target.def (handle_option): Take gcc_options and
12046 cl_decoded_option pointers and location_t.
12047 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12048 * doc/tm.texi: Regenerate.
12049 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12050 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12051 * lto-opts.c (lto_reissue_options): Generate option structure for
12052 targetm.handle_option call.
12053 * opts.c (target_handle_option): Update call to
12054 targetm.handle_option. Remove assertions about values now passed
12056 * targhooks.c (default_target_handle_option): New.
12057 * targhooks.h (default_target_handle_option): Declare.
12058 * config/alpha/alpha.c: Include opts.h.
12059 (alpha_handle_option): Update to new hook interface.
12060 * config/arm/arm.c: Include opts.h.
12061 (arm_handle_option): Update to new hook interface.
12062 * config/arm/t-arm (arm.o): Update dependencies.
12063 * config/bfin/bfin.c: Include opts.h.
12064 (bfin_handle_option): Update to new hook interface.
12065 * config/cris/cris.c: Include opts.h.
12066 (cris_handle_option): Update to new hook interface.
12067 * config/frv/frv.c: Include opts.h.
12068 (frv_handle_option): Update to new hook interface.
12069 * config/i386/i386.c: Include opts.h.
12070 (ix86_handle_option): Update to new hook interface.
12071 (ix86_valid_target_attribute_inner_p): Generate option structure
12072 for call to ix86_handle_option.
12073 * config/i386/t-i386 (i386.o): Update dependencies.
12074 * config/ia64/ia64.c: Include opts.h.
12075 (ia64_handle_option): Update to new hook interface.
12076 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12077 * config/iq2000/iq2000.c: Include opts.h.
12078 (iq2000_handle_option): Update to new hook interface.
12079 * config/m32c/m32c.c: Include opts.h.
12080 (m32c_handle_option): Update to new hook interface.
12081 * config/m32r/m32r.c: Include opts.h.
12082 (m32r_handle_option): Update to new hook interface.
12083 * config/m68k/m68k.c: Include opts.h.
12084 (m68k_handle_option): Update to new hook interface.
12085 * config/mep/mep.c: Include opts.h.
12086 (mep_handle_option): Update to new hook interface.
12087 * config/microblaze/microblaze.c: Include opts.h.
12088 (microblaze_handle_option): Update to new hook interface.
12089 * config/mips/mips.c: Include opts.h.
12090 (mips_handle_option): Update to new hook interface.
12091 * config/mn10300/mn10300.c: Include opts.h.
12092 (mn10300_handle_option): Update to new hook interface.
12093 * config/pa/pa.c: Include opts.h.
12094 (pa_handle_option): Update to new hook interface.
12095 * config/pdp11/pdp11.c: Include opts.h.
12096 (pdp11_handle_option): Update to new hook interface.
12097 * config/rs6000/rs6000.c: Include opts.h.
12098 (rs6000_handle_option): Update to new hook interface.
12099 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12100 * config/rx/rx.c: Include opts.h.
12101 (rx_handle_option): Update to new hook interface.
12102 * config/s390/s390.c: Include opts.h.
12103 (s390_handle_option): Update to new hook interface.
12104 * config/score/score.c: Include opts.h.
12105 (score_handle_option): Update to new hook interface.
12106 * config/sh/sh.c: Include opts.h.
12107 (sh_handle_option): Update to new hook interface.
12108 * config/sparc/sparc.c: Include opts.h.
12109 (sparc_handle_option): Update to new hook interface.
12110 * config/v850/v850.c: Include opts.h.
12111 (v850_handle_option): Update to new hook interface.
12113 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12115 * gcc.c (driver_unknown_option_callback): Only permit and save
12116 unknown -Wno- options.
12117 (driver_wrong_lang_callback): Save options directly instead of via
12118 driver_unknown_option_callback.
12120 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12122 * combine.c (simplify_set): Try harder to find the best CC mode when
12123 simplifying a nested COMPARE on the RHS.
12125 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12127 * config/alpha/gnu.h: Remove.
12128 * config/arc: Remove directory.
12129 * config/arm/netbsd.h: Remove.
12130 * config/arm/t-pe: Remove.
12131 * config/crx: Remove directory.
12132 * config/i386/netbsd.h: Remove.
12133 * config/m68hc11: Remove directory.
12134 * config/m68k/uclinux-oldabi.h: Remove.
12135 * config/mcore/mcore-pe.h: Remove.
12136 * config/mcore/t-mcore-pe: Remove.
12137 * config/netbsd-aout.h: Remove.
12138 * config/rs6000/gnu.h: Remove.
12139 * config/sh/sh-symbian.h: Remove.
12140 * config/sh/symbian-base.c: Remove.
12141 * config/sh/symbian-c.c: Remove.
12142 * config/sh/symbian-cxx.c: Remove.
12143 * config/sh/symbian-post.h: Remove.
12144 * config/sh/symbian-pre.h: Remove.
12145 * config/sh/t-symbian: Remove.
12146 * config/svr3.h: Remove.
12147 * config/vax/netbsd.h: Remove.
12148 * config.build: Don't handle i[34567]86-*-pe.
12149 * config.gcc: Remove handling of deprecations for most deprecated
12151 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12152 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12153 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12154 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12155 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12156 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12158 * config.host: Don't handle i[34567]86-*-pe.
12159 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12160 (ASM_SPEC32): Don't handle -mcall-gnu.
12161 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12163 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12164 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12165 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12166 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12167 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12168 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12169 conditional on SYMBIAN.
12170 * configure.ac: Don't handle powerpc*-*-gnu*.
12171 * configure: Regenerate.
12172 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12173 * doc/install-old.texi (m6811, m6812): Don't mention.
12174 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12175 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12176 (m68k-uclinuxoldabi): Don't mention.
12177 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12179 (-mcall-gnu): Remove.
12180 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12181 families): Remove constraint documentation.
12183 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12185 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12186 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12187 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12189 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12192 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12193 vector when peeking at the next token for vector, don't expand the
12196 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12198 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12199 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12200 * config/avr/avr.c (init_cumulative_args)
12201 (avr_function_arg_advance): Use it.
12202 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12204 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12205 (avr_function_ok_for_sibcall): ...this new function.
12206 (avr_lookup_function_attribute1): New static Function.
12207 (avr_naked_function_p, interrupt_function_p)
12208 (signal_function_p, avr_OS_task_function_p)
12209 (avr_OS_main_function_p): Use it.
12210 * config/avr/avr.md ("sibcall", "sibcall_value")
12211 ("sibcall_epilogue"): New expander.
12212 ("*call_insn", "*call_value_insn"): New insn.
12213 ("call_insn", "call_value_insn"): Remove
12214 ("call", "call_value", "epilogue"): Change expander to handle
12217 2011-03-21 Nick Clifton <nickc@redhat.com>
12219 * doc/invoke.texi (Overall Options): Move closing brace to end of
12221 (Optimization Options): Add missing @gol.
12222 (Directory Options): Likewise.
12223 (i386 and x86-64 Options): Likewise.
12224 (RS6000 and PowerPC Options): Likewise.
12225 (i386 and x86-64 Windows Options): Likewise.
12226 (V850 Options): Add text missing from descriptions.
12228 2011-03-22 Richard Henderson <rth@redhat.com>
12230 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12231 (avr_incoming_return_addr_rtx): New.
12232 (emit_push_byte): New.
12233 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12234 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12235 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12236 (emit_pop_byte): New.
12237 (expand_epilogue): Use it. Pop frame pointer by bytes.
12238 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12239 (INCOMING_RETURN_ADDR_RTX): New.
12240 (INCOMING_FRAME_SP_OFFSET): New.
12241 (ARG_POINTER_CFA_OFFSET): New.
12242 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12243 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12246 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12248 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12250 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12251 (FUNCTION_ARG_ADVANCE): Likewise.
12252 * tm.texi.in: Change references to them to hook references.
12253 * tm.texi: Regenerate.
12254 * targhooks.c (default_function_arg): Eliminate check for target
12256 (default_function_incoming_arg): Likewise.
12257 (default_function_arg_advance): Likewise.
12258 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12259 (function_arg_advance): Likewise.
12260 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12262 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12264 * tree.c (build_call_1): New function.
12265 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12267 2011-03-22 Richard Guenther <rguenther@suse.de>
12269 PR tree-optimization/48228
12270 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12271 for single-arg PHIs.
12273 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12275 PR rtl-optimization/48143
12276 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12277 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12278 sse2_cvtps2pd): Likewise.
12280 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12282 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12284 2011-03-22 Richard Guenther <rguenther@suse.de>
12286 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12287 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12288 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12289 and REALIGN_LOAD_EXPR.
12290 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12291 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12292 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12293 DOT_PROD_EXPR case ...
12294 (expand_expr_real_2): ... here.
12295 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12296 and REALIGN_LOAD_EXPR.
12297 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12298 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12299 (vect_create_epilog_for_reduction): Likewise.
12300 (vectorizable_reduction): Likewise.
12301 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12302 * tree-vect-stmts.c (vectorizable_load): Likewise.
12304 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12306 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12308 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12310 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12311 handling for PLTOFF/GOTOFF.
12313 2011-03-22 Nick Clifton <nickc@redhat.com>
12315 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12316 trailing backslash from the end of the macro definition.
12318 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12320 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12323 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12325 * expr.h (prepare_operand): Move to...
12326 * optabs.h (prepare_operand): ...here and change the insn code
12327 parameter from "int" to "enum insn_code".
12328 (insn_operand_matches): Declare.
12329 * expr.c (init_expr_target): Use insn_operand_matches.
12330 (compress_float_constant): Likewise.
12331 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12332 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12333 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12334 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12336 (gen_cond_trap): Likewise.
12337 (prepare_operand): Likewise. Change icode to an insn_code.
12338 (insn_operand_matches): New function.
12339 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12340 * reload1.c (gen_reload): Likewise.
12341 * targhooks.c (default_secondary_reload): Likewise.
12343 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12345 * config/alpha/alpha.md (unspec): New define_c_enum.
12348 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12351 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12352 between a call and its CALL_ARG_LOCATION note.
12354 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12356 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12358 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12362 * c-common.c (shorten_compare): If primopN is first sign-extended
12363 to opN and then zero-extended to result type, set primopN to opN.
12365 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12367 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12368 for barrier handlers.
12370 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12372 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12373 UNSPEC constants to be in the unspec enumeration, and redefine
12374 all UNSPECV constants to be in the unspecv enumeration, so that
12375 dumps print which unspec/unspec_volatile this is.
12376 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12377 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12378 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12379 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12380 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12382 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12383 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12384 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12385 * config/rs6000/sync.md (isync, lwsync): Ditto.
12387 2011-03-21 Richard Guenther <rguenther@suse.de>
12389 * params.def (lto-min-partition): Fix typo.
12391 2011-03-21 Richard Guenther <rguenther@suse.de>
12394 * c-decl.c (grokdeclarator): Drop to the main variant only
12395 for array types. Drop flag_gen_aux_info check.
12397 2011-03-21 Richard Guenther <rguenther@suse.de>
12399 PR translation/47911
12400 * params.def (lto-partitions): Fix typo.
12401 (lto-min-partition): Fix wording.
12403 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12405 * config/rs6000/t-freebsd: Remove duplication from file.
12407 2011-03-21 Richard Guenther <rguenther@suse.de>
12409 PR middle-end/47661
12410 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12412 2011-03-21 Richard Guenther <rguenther@suse.de>
12415 * params.def (lto-partitions): Require at least 1 partition.
12417 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12419 * gthr-solaris.h: Remove.
12420 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12421 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12422 (LIB_SPEC): Likewise.
12423 * config/sol2.opt (threads): Remove.
12424 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12425 (sparc*-*-solaris2*): Likewise.
12426 * configure.ac (enable_threads): Enable solaris support.
12427 * configure: Regenerate.
12428 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12429 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12432 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12434 * config.gcc: Obsolete *-*-solaris2.8*.
12435 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12437 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12440 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12441 reference. Solaris 8 perl works.
12443 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12446 * doc/install.texi (Prerequisites): Move jar etc. up.
12447 Explain support library version requirements.
12449 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12452 * doc/install.texi (Prerequisites): Move Perl to build
12453 requirements. Always necessary on Solaris 2 with Sun ld.
12455 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12457 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12459 (Specific, i?86-*-solaris2.[89]): Likewise.
12460 (Specific, i?86-*-solaris2.10): Likewise.
12461 (Specific, mips-sgi-irix6): Likewise.
12462 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12463 Update for binutils 2.21.
12465 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12467 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12468 Allow -fuse-linker-plugin for non-default plugin linker.
12469 * configure: Regenerate.
12471 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12474 * gengtype.c (files_rules): Added rule for cp/parser.h.
12476 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12479 * config/s390/s390.c (s390_delegitimize_address): Don't call
12480 lowpart_subreg if orig_x has BLKmode.
12482 2011-03-21 Kai Tietz <ktietz@redhat.com>
12485 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12486 * tree.h (attribute_spec): Add new member affects_type_identity.
12487 * attribs.c (empty_attribute_table): Adjust attribute_spec
12489 * config/alpha/alpha.c: Likewise.
12490 * config/arc/arc.c: Likewise.
12491 * config/arm/arm.c: Likewise.
12492 * config/avr/avr.c: Likewise.
12493 * config/bfin/bfin.c: Likewise.
12494 * config/crx/crx.c: Likewise.
12495 * config/darwin.h: Likewise.
12496 * config/h8300/h8300.c: Likewise.
12497 * config/i386/cygming.h: Likewise.
12498 * config/i386/i386.c: Likewise.
12499 * config/ia64/ia64.c: Likewise.
12500 * config/m32c/m32c.c: Likewise.
12501 * config/m32r/m32r.c: Likewise.
12502 * config/m68hc11/m68hc11.c: Likewise.
12503 * config/m68k/m68k.c: Likewise.
12504 * config/mcore/mcore.c: Likewise.
12505 * config/mep/mep.c: Likewise.
12506 * config/microblaze/microblaze.c: Likewise.
12507 * config/mips/mips.c: Likewise.
12508 * config/rs6000/rs6000.c: Likewise.
12509 * config/rx/rx.c: Likewise.
12510 * config/sh/sh.c: Likewise.
12511 * config/sol2.h: Likewise.
12512 * config/sparc/sparc.c: Likewise.
12513 * config/spu/spu.c: Likewise.
12514 * config/stormy16/stormy16.c: Likewise.
12515 * config/v850/v850.c: Likewise.
12517 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12519 * simplify-rtx.c (simplify_binary_operation_1): Handle
12520 (xor (and A B) C) case when B and C are both constants.
12522 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12524 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12526 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12529 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12531 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12533 PR rtl-optimization/48156
12534 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12535 assume df and df_lr are not NULL.
12537 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12540 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12541 between a call and its CALL_ARG_LOCATION note.
12543 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12546 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12547 between a call and its corresponding CALL_ARG_LOCATION note.
12549 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12551 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12552 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12553 * haifa-sched.c (setup_ref_regs): Ditto.
12554 * caller-save.c (add_used_regs_1): Ditto.
12555 * dse.c (look_for_hardregs): Ditto.
12556 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12557 * sched-rgn.c (check_live_1): Ditto.
12559 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12561 * c-decl.c (diagnose_mismatched_decls): Give an error for
12562 redefining a typedef with variably modified type.
12564 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12566 * c-decl.c (grokfield): Don't allow typedefs for structures or
12567 unions with no tag by default.
12568 * doc/extend.texi (Unnamed Fields): Update.
12570 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12572 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12573 Rewrite using indirect functions.
12574 (lwp_slwpcb): Ditto.
12575 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12576 (avx_vinsertf128<mode>): Ditto.
12578 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12580 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12583 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12585 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12586 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12588 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12590 PR rtl-optimization/48170
12591 * gcse.c (hoist_code): Remove bogus asserts.
12593 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12595 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12596 computation for prologue/epilogue.
12598 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12600 * Makefile.in (check-consistency): Remove.
12602 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12605 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12606 arange_table_in_use is 0, but either text_section_used or
12607 cold_text_section_used is true. Don't call it if
12608 !info_section_emitted.
12610 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12612 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12613 FUNCTION_VALUE_REGNO_P): Remove.
12614 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12616 * config/avr/avr.c (avr_ret_register): Make static inline.
12617 (avr_function_value_regno_p): New function.
12618 (avr_libcall_value): Make static. Add 'func' argument.
12619 (avr_function_value): Make static. Rename 'func' argument to
12620 'fn_decl_or_type', forward it to avr_libcall_value. Call
12621 avr_ret_register function instead of RET_REGISTER macro.
12622 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12624 2011-03-18 Jason Merrill <jason@redhat.com>
12627 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12629 2011-03-18 Richard Guenther <rguenther@suse.de>
12631 * doc/install.texi (--enable-gold): Remove.
12632 (--with-plugin-ld): Document.
12633 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12635 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12637 PR middle-end/47790
12638 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12639 again after expansion changes.
12641 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12643 * combine.c (try_combine): Do simplification only call of
12644 subst() on i2 even when i1 is present. Update comments.
12646 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12648 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12649 and UNSPEC_PCREL_SYMOFF.
12651 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12653 * config/s390/s390.md: Use define_c_enum for the unspec constant
12656 2011-03-18 Richard Henderson <rth@redhat.com>
12657 Jakub Jelinek <jakub@redhat.com>
12660 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12661 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12663 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12665 PR middle-end/47725
12666 * combine.c (cant_combine_insn_p): Don't check zero/sign
12667 extended hard registers.
12669 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12671 PR middle-end/47725
12672 * combine.c (cant_combine_insn_p): Check zero/sign extended
12675 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12677 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12678 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12679 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12680 Change return type to bool.
12681 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12683 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12686 * var-tracking.c (prepare_call_arguments): If CALL target
12687 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12688 pc instead of looking it up using cselib_lookup and use
12689 Pmode for it if x has VOIDmode.
12690 * dwarf2out.c (gen_subprogram_die): If also both first and
12691 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12694 * function.c (assign_parms): For data.passed_pointer parms
12695 use MEM of data.entry_parm instead of data.entry_parm itself
12696 as DECL_INCOMING_RTL.
12697 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12698 also when passed and declared mode is the same, DECL_RTL
12699 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12702 2011-03-16 Jeff Law <law@redhat.com>
12704 PR rtl-optimization/37273
12705 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12706 handle them like argument loads from stack slots. Do not double
12707 count memory for memory constants and argument loads from stack slots.
12709 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12712 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12714 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12717 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12719 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12722 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12724 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12725 Clear call_arg_locations and call_arg_loc_last always.
12727 PR middle-end/48152
12728 * var-tracking.c (prepare_call_arguments): If argument needs to be
12729 passed by reference, adjust argtype and mode.
12731 2011-03-17 Richard Guenther <rguenther@suse.de>
12733 PR middle-end/48134
12734 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12735 a value make sure to fold the statement.
12737 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12740 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12741 return condition with !cfun->calls_alloca.
12743 2011-03-17 Richard Guenther <rguenther@suse.de>
12746 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12747 origin for decls in other ltrans units.
12748 (input_varpool_node): Likewise.
12750 2011-03-17 Richard Guenther <rguenther@suse.de>
12752 PR middle-end/48165
12753 * tree-object-size.c (compute_object_offset): Properly return
12754 the offset operand of MEM_REFs as sizetype.
12756 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12758 PR rtl-optimization/48141
12759 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12760 * dse.c: Include params.h.
12761 (active_local_stores_len): New variable.
12762 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12764 (record_store, check_mem_read_rtx): Decrease it when removing
12766 (scan_insn): Likewise. Increase it when adding to chain, if it
12767 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12768 set active_local_stores to NULL before the addition.
12769 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12771 PR rtl-optimization/48141
12772 * dse.c (record_store): If no positions are needed in an insn
12773 that cannot be deleted, at least unchain it from active_local_stores.
12775 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12778 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12779 (lookup_type_die_strip_naming_typedef): ... here.
12780 (get_context_die): Use it.
12781 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12782 the anonymous struct named by the naming typedef.
12784 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12787 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12788 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12790 2011-03-16 Jeff Law <law@redhat.com>
12792 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12793 check for operands of conditional. Allow type to be a pointer.
12795 2011-03-16 Richard Guenther <rguenther@suse.de>
12797 PR tree-optimization/48149
12798 * fold-const.c (fold_binary_loc): Fold
12799 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12801 2011-03-16 Richard Guenther <rguenther@suse.de>
12803 PR tree-optimization/26134
12804 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12805 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12806 (non_rewritable_mem_ref_base): Handle complex type component
12807 accesses, constrain offsets for vector and complex extracts
12810 2011-03-16 Richard Guenther <rguenther@suse.de>
12812 PR tree-optimization/48146
12813 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12814 operands avoiding the need for renaming.
12816 2011-03-16 Richard Guenther <rguenther@suse.de>
12818 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12819 constant folding. Move MEM_REF canonicalization first.
12820 Rely on fold_const_aggregate_ref for initializer folding.
12821 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12823 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12825 PR middle-end/48136
12826 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12827 arg0/arg1 or their arguments are always fold converted to matching
12830 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12833 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12836 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12837 Handle in-tree gold.
12838 (ld_vers): Extract binutils version for gold.
12839 (gcc_cv_ld_hidden): Handle gold here.
12840 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12841 * configure: Regenerate.
12842 * config.in: Regenerate.
12843 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12844 -fuse-linker-plugin otherwise.
12845 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12846 (LINK_COMMAND_SPEC): Use it.
12847 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12849 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12851 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12852 * calls.c: Remove debug.h include.
12853 (emit_call_1): Don't call virtual_call_token debug hook.
12854 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12855 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12856 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12857 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12858 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12859 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12860 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12861 dwarf2out_virtual_call): Remove.
12862 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12863 copy_call_info and virtual_call hooks.
12864 (dwarf2out_init): Don't initialize vcall_insn_table,
12865 debug_dcall_section and debug_vcall_section.
12866 (prune_unused_types): Don't mark nodes from dcall_table.
12867 (dwarf2out_finish): Don't output dcall or vcall tables.
12868 * final.c (final_scan_insn): Don't call direct_call or
12869 virtual_call debug hooks.
12870 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12871 virtual_call_token, copy_call_info and virtual_call hooks.
12872 (debug_nothing_uid): Remove prototype.
12873 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12874 copy_call_info and virtual_call hooks.
12875 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12876 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12877 * debug.c (do_nothing_debug_hooks): Likewise.
12878 (debug_nothing_uid): Remove.
12879 * doc/invoke.texi (-fenable-icf-debug): Remove.
12880 * common.opt (-fenable-icf-debug): Likewise.
12882 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12883 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12884 call's MEM. Handle functions returning aggregate through a hidden
12885 first pointer. For virtual calls add clobbered pc to call arguments
12887 * dwarf2out.c (gen_subprogram_die): Emit
12888 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12892 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12893 * rtl.h (ENTRY_VALUE_EXP): Define.
12894 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12895 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12896 * print-rtl.c (print_rtx): Likewise.
12897 * gengtype.c (adjust_field_rtx_def): Likewise.
12898 * var-tracking.c (vt_add_function_parameter): Adjust
12899 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12900 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12901 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12902 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12903 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12905 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12906 Call var_location debug hook even on CALL_INSNs.
12907 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12908 * rtl.def (ENTRY_VALUE): New.
12909 * dwarf2out.c: Include cfglayout.h.
12910 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12911 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12912 (struct call_arg_loc_node): New type.
12913 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12914 tail_call_site_count): New variables.
12915 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12916 DW_TAG_GNU_call_site_parameter.
12917 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12918 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12919 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12920 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12921 and DW_AT_GNU_all_source_call_sites.
12922 (mem_loc_descriptor): Handle ENTRY_VALUE.
12923 (add_src_coords_attributes): Don't add enything if
12924 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12925 (dwarf2out_abstract_function): Save and clear call_arg_location,
12926 call_site_count and tail_call_site_count around dwarf2out_decl call.
12927 (gen_call_site_die): New function.
12928 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12929 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12930 (dwarf2out_function_decl): Clear call_arg_locations,
12931 call_arg_loc_last, set call_site_count and tail_call_site_count
12932 to -1 and free block_map.
12933 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12934 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12935 followed by any real instructions.
12936 (dwarf2out_begin_function): Set call_site_count and
12937 tail_call_site_count to 0.
12938 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12939 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12940 attempt to force a DIE for it and worst case remove the attribute.
12941 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12942 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12944 * var-tracking.c: Include tm_p.h.
12945 (vt_stack_adjustments): For calls call note_register_arguments.
12946 (argument_reg_set): New variable.
12947 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12948 ensure the VALUE is resolved.
12949 (call_arguments): New variable.
12950 (prepare_call_arguments): New function.
12951 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12952 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12953 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12954 always use the best expression.
12955 (vt_expand_loc): Add ignore_cur_loc argument.
12956 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12957 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12958 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12959 note for all calls.
12960 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12961 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12962 argument. Don't call cselib_preserve_only_values and
12963 cselib_reset_table.
12964 (note_register_arguments): New function.
12965 (vt_initialize): Compute argument_reg_set. Call
12966 vt_add_function_parameters before processing basic blocks instead of
12967 afterwards. For calls call prepare_call_arguments before calling
12968 cselib_process_insn.
12969 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12970 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12971 (var-tracking.o): Depend on $(TM_P_H).
12972 * cfglayout.h (insn_scope): New prototype.
12973 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12974 * cfglayout.c (insn_scope): No longer static.
12975 * insn-notes.def (CALL_ARG_LOCATION): New.
12976 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12977 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12978 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12979 nothing for DECL_EXTERNAL BLOCK_VARS.
12981 2011-03-16 Alan Modra <amodra@gmail.com>
12984 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12985 create invalid offset address for vsx splat insn.
12986 * config/rs6000/predicates.md (splat_input_operand): New.
12987 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12989 2011-03-15 Xinliang David Li <davidxl@google.com>
12992 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12993 (normalize_preds): New function.
12994 (is_use_properly_guarded): Normalize def predicates.
12996 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12999 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13000 in the output template.
13002 2011-03-15 Richard Guenther <rguenther@suse.de>
13004 PR middle-end/47650
13005 * tree-pretty-print.c (dump_function_declaration): Properly
13006 dump unprototyped and varargs function types.
13008 2011-03-15 Richard Guenther <rguenther@suse.de>
13010 PR tree-optimization/13954
13011 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13014 2011-03-15 Richard Guenther <rguenther@suse.de>
13016 PR tree-optimization/48037
13017 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13018 selects into BIT_FIELD_REFs.
13019 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13022 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13024 PR tree-optimization/48129
13025 * builtins.c (fold_builtin_snprintf): Convert to type of
13026 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13027 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13029 2011-03-15 Richard Guenther <rguenther@suse.de>
13031 PR tree-optimization/41490
13032 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13033 value but with VUSE.
13034 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13036 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13037 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13038 * tree-tailcall.c (find_tail_calls): Ignore returns.
13040 2011-03-15 Richard Guenther <rguenther@suse.de>
13042 PR middle-end/48031
13043 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13044 or variable-indexed array accesses when in gimple form.
13046 2011-03-15 Richard Guenther <rguenther@suse.de>
13048 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13050 2011-03-15 Alan Modra <amodra@gmail.com>
13053 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13054 presume symbol_refs without a symbol_ref_decl are suitably
13055 aligned, nor other trees we may see here. Handle anchor symbols.
13056 (legitimate_constant_pool_address_p): Comment. Add mode param.
13057 Check cmodel=medium addresses. Adjust all calls.
13058 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13059 creating cmodel=medium optimized access to locals.
13060 * config/rs6000/constraints.md (R): Pass QImode to
13061 legitimate_constant_pool_address_p.
13062 * config/rs6000/predicates.md (input_operand): Pass mode to
13063 legitimate_constant_pool_address_p.
13064 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13067 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13070 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13071 64-bit constants being loaded into registers other than GPRs such
13072 as loading 0 into a VSX register.
13074 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13076 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13078 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13080 PR middle-end/47917
13081 * builtins.c (fold_builtin_snprintf): New function.
13082 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13083 (fold_builtin_4): Likewise.
13085 PR middle-end/38878
13086 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13087 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13088 and C - X == X also strip nops from +/-/p+ operand.
13089 When optimizing -X == C, fold C to arg0's type.
13092 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13093 emit it as add_AT_int instead of add_AT_unsigned.
13095 2011-03-14 Tom Tromey <tromey@redhat.com>
13097 * unwind-dw2.c: Include sys/sdt.h if it exists.
13098 (_Unwind_DebugHook): Use STAP_PROBE2.
13099 * config.in, configure: Rebuild.
13100 * configure.ac: Check for sys/sdt.h.
13102 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13104 * config/i386/i386.md (ROUND_FLOOR): New constant.
13105 (ROUND_CEIL): Ditto.
13106 (ROUND_TRUNC): Ditto.
13107 (ROUND_MXCSR): Ditto.
13108 (ROUND_NO_EXC): Ditto.
13109 (rint<mode>2): Use new defines instead of numerical constants.
13110 (floor<mode>2): Ditto.
13111 (ceil<mode>2): Ditto.
13112 (btrunc<mode>2): Ditto.
13113 * config/i386/i386-builtin-types.def: Define ROUND function type
13115 * config/i386/i386.c (enum ix86_builtins): Add
13116 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13117 (struct builtin_description): Add
13118 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13119 (ix86_expand_sse_round): New static function.
13120 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13122 (ix86_builtin_vectorized_function): Handle
13123 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13125 2011-03-14 Tom Tromey <tromey@redhat.com>
13127 * c-parser.c (c_parser_asm_string_literal): Clear
13128 warn_overlength_strings.
13130 2011-03-14 Tom Tromey <tromey@redhat.com>
13132 * c-parser.c (disable_extension_diagnostics): Save
13133 warn_overlength_strings.
13134 (restore_extension_diagnostics): Restore warn_overlength_strings.
13136 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13138 * BASE-VER: Change to 4.7.0.
13140 2011-03-14 Richard Guenther <rguenther@suse.de>
13142 PR middle-end/48098
13143 * tree.c (build_vector_from_val): Adjust assert to requirements
13146 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13149 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13151 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13153 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13154 terms of target_flags_explicit. Adjust copyright year.
13156 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13157 * config/rs6000/t-freebsd: New file. Add override for
13160 2011-03-13 Chris Demetriou <cgd@google.com>
13162 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13163 (-fno-diagnostics-show-option): this, to reflect current default.
13164 (-Werror=): Update text about -fno-diagnostics-show-option.
13166 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13169 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13170 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13171 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13172 mode is not V2DImode or V2DFmode.
13173 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13174 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13175 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13177 (movdi_internal64): Likewise.
13179 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13181 PR tree-optimization/47127
13182 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13184 (set_cloog_options): Same.
13185 (scop_to_clast): Same.
13186 (print_clast_stmt): Do not call cloog_state_malloc and
13188 (print_generated_program): Same.
13190 * graphite-clast-to-gimple.h (cloog_state): Declared.
13191 (scop_to_clast): Adjust declaration.
13192 * graphite.c (cloog_state): Defined here.
13193 (graphite_initialize): Call cloog_state_malloc.
13194 (graphite_finalize): Call cloog_state_free.
13196 2011-03-11 Jason Merrill <jason@redhat.com>
13198 * attribs.c (lookup_attribute_spec): Take const_tree.
13201 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13203 * config/sparc/sparc.c (sparc_option_override): Use
13204 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13206 2011-03-11 Richard Guenther <rguenther@suse.de>
13208 PR tree-optimization/48067
13209 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13210 multiplication result will be only used once on the target
13213 2011-03-11 Richard Guenther <rguenther@suse.de>
13215 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13217 2011-03-11 Richard Guenther <rguenther@suse.de>
13220 * tree.c (find_decls_types_r): Do not walk types only reachable
13221 from IDENTIFIER_NODEs.
13223 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13225 PR middle-end/48044
13226 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13227 all vnode->force_output nodes as needed.
13229 2011-03-11 Jason Merrill <jason@redhat.com>
13232 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13233 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13235 2011-03-11 Martin Jambor <mjambor@suse.cz>
13237 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13240 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13242 PR tree-optimization/48063
13243 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13244 inline functions called once if !tree_can_inline_p (node->callers).
13246 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13248 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13250 * config/score/score3.c: Delete.
13251 * config/score/score3.h: Delete.
13252 * config/score/mul-div.S: Delete.
13253 * config/score/sfp-machine.h: Add new file.
13254 * config/score/constraints.md: Add new file.
13255 * config/score/t-score-softfp: Add new file.
13256 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13257 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13258 (score7_extra_constraint): Delete.
13259 (score7_option_override): Remove unused code.
13260 * config/score/score.c: Remove score3 and score5 define and code.
13261 * config/score/score.h: Remove score3 and score5 define and code.
13262 * config/score/score.md: Remove score3 template and unusual insn.
13263 * config/score/score.opt: Remove score3 and score5 options.
13265 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13267 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13268 when _HPUX_SOURCE is defined.
13269 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13271 2011-03-10 Jason Merrill <jason@redhat.com>
13274 * stor-layout.c (layout_type): Don't set structural equality
13275 on arrays of incomplete type.
13276 * tree.c (type_hash_eq): Handle comparing them properly.
13278 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13281 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13282 result mode matches original rtl mode.
13284 2011-03-10 Nick Clifton <nickc@redhat.com>
13286 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13287 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13289 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13291 PR rtl-optimization/47866
13292 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13293 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13294 if target wasn't scalar.
13295 * function.c (assign_stack_temp_for_type): Assert that neither
13296 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13297 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13299 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13301 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13303 * config/s390/s390-protos.h (s390_label_align): New prototype.
13304 * config/s390/s390.c (s390_label_align): New function.
13305 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13307 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13310 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13311 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13312 (output_vec_const_move): Ditto.
13314 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13316 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13317 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13318 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13319 Change 'rclass' argument and result type to reg_class_t.
13320 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13322 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13324 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13325 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13326 (TARGET_MEMORY_MOVE_COST): Define.
13327 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13329 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13332 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13335 PR tree-optimization/48022
13336 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13339 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13342 * var-tracking.c (find_use_val): Return NULL for
13343 cui->sets && cui->store_p BLKmode MEMs.
13345 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13347 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13349 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13350 xstormy16_print_operand_address): Remove.
13351 * config/stormy16/stormy16.c (xstormy16_print_operand,
13352 xstormy16_print_operand_address): Make static.
13353 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13355 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13358 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13359 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13362 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13365 * cfgloopmanip.c (fix_bb_placements): Return immediately
13366 if FROM is BASE_LOOP's header.
13368 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13370 * gimplify.c (gimplify_function_tree): Fix building calls
13371 to __builtin_return_address.
13373 2011-03-07 Alan Modra <amodra@gmail.com>
13375 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13376 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13377 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13378 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13380 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13381 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13382 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13383 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13384 * config/rs6000/rs6000.c
13385 (rs6000_elf_end_indicate_exec_stack): Rename to..
13386 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13387 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13388 (rs6000_file_start): ..here.
13389 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13390 file scope variables.
13391 (call_ABI_of_interest): New function.
13392 (init_cumulative_args): Set above vars when function return value
13393 is a float, vector, or small struct.
13394 (rs6000_function_arg_advance_1): Likewise for function args.
13395 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13396 references float args.
13398 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13400 * doc/cfg.texi: Remove "See" before @ref.
13401 * doc/invoke.texi: Likewise.
13403 2011-03-05 Jason Merrill <jason@redhat.com>
13405 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13407 2011-03-05 Anthony Green <green@moxielogic.com>
13409 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13411 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13413 PR rtl-optimization/47899
13414 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13415 to flow_loop_nested_p when moving the loop upward.
13417 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13420 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13422 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13424 PR tree-optimization/47967
13425 * ipa-cp.c (build_const_val): Return NULL instead of creating
13426 VIEW_CONVERT_EXPR for mismatching sizes.
13427 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13428 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13429 give up on versioning.
13431 2011-03-05 Alan Modra <amodra@gmail.com>
13434 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13435 full cmodel medium/large lo_sum + high addresses.
13437 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13439 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13440 pool references in UNSPEC_LTREL_OFFSET.
13442 2011-03-04 Jan Hubicka <jh@suse.cz>
13445 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13446 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13447 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13449 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13450 cgraph_add_thunk): Add node pointers.
13451 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13452 associated to right node.
13453 (input_node): Update use of cgraph_same_body_alias
13454 and cgraph_add_thunk.
13456 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13458 * config/i386/i386.opt (mprefer-avx128): New flag.
13459 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13460 modes when the flag -mprefer-avx128 is on.
13462 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13464 * dwarf2out.c (compare_loc_operands): Fix address handling.
13466 2011-03-04 Alan Modra <amodra@gmail.com>
13468 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13470 2011-03-04 Richard Guenther <rguenther@suse.de>
13472 PR middle-end/47968
13473 * expmed.c (extract_bit_field_1): Prefer vector modes that
13474 vec_extract patterns can handle.
13476 2011-03-04 Richard Guenther <rguenther@suse.de>
13478 PR middle-end/47975
13479 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13481 2011-03-04 Richard Henderson <rth@redhat.com>
13483 * explow.c (emit_stack_save): Remove 'after' parameter.
13484 (emit_stack_restore): Likewise.
13485 * expr.h: Update to match.
13486 * builtins.c, calls.c, stmt.c: Likewise.
13487 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13488 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13489 * function.c (expand_function_end): Insert the emit_stack_save
13490 sequence before parm_birth_insn instead of after.
13492 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13494 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13495 (ssse3_pmaddubsw128): Ditto.
13496 (ssse3_pmaddubsw): Ditto.
13498 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13500 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13502 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13505 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13506 on TYPE_SIZE_UNIT if it is a DECL.
13509 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13510 first operand is not is_gimple_mem_ref_addr, try to fold it.
13511 If the operand still isn't is_gimple_mem_ref_addr, clear
13514 2011-03-03 Richard Guenther <rguenther@suse.de>
13516 PR middle-end/47283
13517 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13519 (refs_may_alias_p_1): For release branches return true if
13520 we are confused by our input.
13522 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13524 * config/s390/s390.c (s390_function_value): Rename to ...
13525 (s390_function_and_libcall_value): ... this.
13526 (s390_function_value): New function.
13527 (s390_libcall_value): New function.
13528 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13529 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13530 target macro definitions.
13531 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13533 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13535 * config/i386/freebsd64.h (CC1_SPEC): Define.
13536 * config/i386/linux64.h (CC1_SPEC): Define.
13537 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13539 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13541 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13543 * config/stormy16/stormy16.c: Include reload.h.
13544 (xstormy16_memory_move_cost): New function.
13545 (TARGET_MEMORY_MOVE_COST): Define.
13547 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13549 PR rtl-optimization/47925
13550 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13551 with side effects. Remove the more-specific check for volatile asms.
13553 2011-03-02 Alan Modra <amodra@gmail.com>
13556 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13557 toc relative addresses for valid offsets.
13559 2011-03-01 Richard Guenther <rguenther@suse.de>
13561 PR tree-optimization/47890
13562 * tree-vect-loop.c (get_initial_def_for_induction): Set
13563 related stmt properly.
13565 2011-03-01 Richard Guenther <rguenther@suse.de>
13568 * lto-streamer.c (lto_record_common_node): Also register
13569 the canonical type.
13571 2011-03-01 Richard Guenther <rguenther@suse.de>
13574 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13575 Do not stream DECL_ABSTRACT_ORIGIN.
13576 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13577 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13578 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13579 Do not stream DECL_ABSTRACT_ORIGIN.
13580 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13581 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13583 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13585 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13586 FUNCTION_VALUE_REGNO_P): Remove.
13587 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13588 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13589 Add 'outgoing' argument.
13590 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13592 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13593 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13595 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13598 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13599 (lookup_filename): Likewise.
13600 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13602 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13603 Jakub Jelinek <jakub@redhat.com>
13605 PR middle-end/47893
13606 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13607 (assign_stack_local_1): Change last argument type to int.
13608 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13609 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13610 don't record padding space into frame_space_list nor use those areas.
13611 (assign_stack_local): Adjust caller.
13612 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13613 of assign_stack_local, pass 0 as last argument.
13614 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13617 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13620 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13621 Use target address_mode and pointer_mode hooks instead of hardcoded
13622 Pmode and ptr_mode. Handle some simple cases of extending if
13623 POINTERS_EXTEND_UNSIGNED < 0.
13624 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13625 Call convert_debug_memory_address.
13626 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13627 convert_debug_memory_address.
13629 PR middle-end/46790
13630 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13631 * configure: Regenerated.
13632 * config.in: Regenerated.
13633 * varasm.c (default_function_section): Return NULL
13634 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13636 2011-02-28 Martin Jambor <mjambor@suse.cz>
13638 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13639 the description to match the printed values.
13641 2011-02-28 Richard Guenther <rguenther@suse.de>
13643 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13644 of the copied scope tree.
13646 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13648 * doc/extend.texi (Function Attributes): Avoid deeply (and
13649 wrongly) nested tables.
13651 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13653 PR middle-end/47903
13654 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13655 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13656 r isn't op0 nor op1.
13658 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13660 * config/avr/avr.md: Remove magic comment for emacs.
13662 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13665 * config/avr/avr.c (avr_option_override): Use error on bad options.
13666 (avr_help): New function.
13667 (TARGET_HELP): Define.
13669 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13672 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13673 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13675 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13677 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13678 (ARM Options): Ditto.
13679 (i386 and x86-64 Options): Ditto.
13680 (RX Options): Ditto.
13681 (SPARC Options): Ditto.
13683 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13685 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13686 FreeBSD 6 and later. Generally use cpu generic.
13688 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13690 * doc/cpp.texi: Update copyright years.
13692 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13695 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13697 2011-02-25 Jon Beniston <jon@beniston.com>
13700 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13701 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13702 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13703 (lm32_block_move_inline): Add type cast to remove warning.
13704 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13705 (gen_int_relational): Move declarations to start of function.
13707 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13709 PR tree-optimization/45470
13710 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13711 can throw internally only.
13712 * tree-vect-stmts.c (vectorizable_call): Likewise.
13714 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13716 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13717 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13718 * config/stormy16/stormy16-protos.h
13719 (xstormy16_preferred_reload_class): Remove.
13720 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13721 static. Change 'rclass' argument and return type to reg_class_t.
13722 (TARGET_PREFERRED_RELOAD_CLASS,
13723 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13725 2011-02-24 Richard Guenther <rguenther@suse.de>
13727 * lto-streamer-in.c (input_bb): Do not find referenced vars
13728 in debug statements.
13730 2011-02-23 Jason Merrill <jason@redhat.com>
13732 * common.opt (fabi-version): Document v5 and v6.
13734 2011-02-23 Richard Guenther <rguenther@suse.de>
13736 PR tree-optimization/47849
13737 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13739 2011-02-23 Jie Zhang <jie@codesourcery.com>
13741 * opts-common.c (decode_cmdline_option): Print empty string
13742 argument as "" in decoded->orig_option_with_args_text.
13743 * gcc.c (execute): Print empty string argument as ""
13744 in the verbose output.
13745 (do_spec_1): Keep empty string argument.
13747 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13749 * config.gcc: Declare score-* and crx-* obsolete.
13751 2011-02-23 Jie Zhang <jie@codesourcery.com>
13753 PR rtl-optimization/47763
13754 * web.c (web_main): Ignore naked clobber when replacing register.
13756 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13758 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13761 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13764 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13766 2011-02-22 Mike Stump <mikestump@comcast.net>
13768 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13770 * configure: Regenerate.
13772 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13774 PR rtl-optimization/46002
13775 * ira-color.c (update_copy_costs): Change class intersection
13776 test to reg_class_contents[] test of 'hard_regno'.
13778 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13780 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13781 than Driver option.
13782 * config/hpux11.opt (mt): Likewise.
13783 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13784 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13785 * config/vax/elf.opt (mno-asm-pic): Likewise.
13786 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13788 2011-02-21 Mike Stump <mikestump@comcast.net>
13791 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13792 tree so we can get save the type.
13793 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13794 for CFString instead of trying to use past the end of the builtins.
13795 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13796 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13797 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13798 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13799 Rename to darwin_builtin_cfstring.
13800 (darwin_init_cfstring_builtins): Return the built type.
13802 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13805 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13806 (_mm256_insert_epi64): Use _mm_insert_epi64.
13808 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13810 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13811 * config/stormy16/stormy16-protos.h
13812 (xstormy16_mode_dependent_address_p): Remove.
13813 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13814 Make static. Change return type to bool. Change argument type to
13815 const_rtx. Remove dead code.
13816 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13818 2011-02-21 Richard Guenther <rguenther@suse.de>
13821 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13822 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13823 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13825 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13826 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13828 2011-02-20 Richard Guenther <rguenther@suse.de>
13831 * tree.c (free_lang_data_in_decl): Clean builtins from
13832 the TU decl BLOCK_VARS.
13834 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13838 * haifa-sched.c (fix_tick_ready): Skip tick computation
13841 2011-02-19 Richard Guenther <rguenther@suse.de>
13844 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13845 Remove lazy BLOCK_VARS streaming.
13846 (lto_input_ts_block_tree_pointers): Likewise.
13847 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13849 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13851 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13853 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13855 * config/i386/biarch32.h, config/i386/mach.h,
13856 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13858 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13861 * config/i386/i386.md (peephole2 for shift and plus): Use
13862 operands[1] original mode in the first insn.
13864 2011-02-18 Mike Stump <mikestump@comcast.net>
13866 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13868 2011-02-18 Jan Hubicka <jh@suse.cz>
13870 PR middle-end/47788
13871 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13872 to zero when the function is not inlinable at all.
13874 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13876 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13877 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13878 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13879 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13880 * config/pa/t-pa64: Likewise.
13881 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13883 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13886 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13888 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13891 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13893 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13895 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13896 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13897 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13898 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13899 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13900 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13901 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13902 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13903 m32r_legitimate_address_p): New functions.
13904 * config/m32r/constraints.md (constraint "S"): Don't use
13905 STORE_PREINC_PREDEC_P.
13906 (constraint "U"): Don't use LOAD_POSTINC_P.
13908 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13910 PR rtl-optimization/46178
13911 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13912 compute ira_hard_regno_cover_class[].
13914 2011-02-18 Richard Guenther <rguenther@suse.de>
13917 * lto-streamer.h (lto_global_var_decls): Declare.
13918 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13919 statics for global var processing.
13921 2011-02-18 Richard Guenther <rguenther@suse.de>
13923 PR tree-optimization/47737
13924 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13925 edge dominance check.
13927 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13930 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13931 avoid invalid rtx sharing.
13933 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13935 * doc/cpp.texi (Obsolete Features): Add background on the
13936 origin of assertions.
13938 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13940 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13942 * config/darwin.c (output_objc_section_asm_op): Added support for
13944 (is_objc_metadata): New.
13945 (darwin_objc2_section): New.
13946 (darwin_objc1_section): New.
13947 (machopic_select_section): Added support for ABI v1 and v2.
13948 (darwin_emit_objc_zeroed): New.
13949 (darwin_output_aligned_bss): Detect objc metadata and treat it
13951 (darwin_asm_output_aligned_decl_common): Same.
13952 (darwin_asm_output_aligned_decl_local): Same.
13953 * config/darwin-sections.def: Updated for ABI v1 and v2.
13954 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13955 compiling Objective-C code for the NeXT runtime, default to using
13956 ABI version 0 for 32-bit, and version 2 for 64-bit.
13958 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13960 * common.opt (optimize_fast): New Variable.
13961 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13962 instead of local variable ofast.
13964 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13966 * doc/invoke.texi (fobjc-abi-version): Documented.
13967 (fobjc-nilcheck): Documented.
13968 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13971 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13974 * common.opt (export-dynamic): New Driver option.
13975 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13977 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13979 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13981 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13982 Jan Hubicka <jh@suse.cz>
13986 * cfgexpand.c (account_used_vars_for_block): Remove.
13987 (estimated_stack_frame_size): Use referenced vars.
13988 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13989 that were referenced in the original function. Test src_fn
13990 rather than cfun. Drop redundant get_var_ann.
13991 (setup_one_parameter): Drop redundant get_var_ann.
13992 (declare_return_variable): Likewise.
13993 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13994 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13995 * ipa-inline.c (compute_inline_parameters): Do not compute
13996 disregard_inline_limits here.
13997 (compute_inlinable_for_current, pass_inlinable): New.
13998 (pass_inline_parameters): Require PROP_referenced_vars.
13999 * cgraphunit.c (cgraph_process_new_functions): Don't run
14000 compute_inline_parameters explicitly unless function is in SSA form.
14001 (cgraph_analyze_function): Set .disregard_inline_limits.
14002 * tree-sra.c (convert_callers): Compute inliner parameters
14003 only for functions already in SSA form.
14005 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14007 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14008 -mlittle-endian-data.
14010 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14012 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14013 -mno-fpu, not -fpu and -no-fpu.
14014 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14015 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14017 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14020 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14021 input reload with PLUS RTX.
14023 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14025 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14026 of InverseVar(MDMX).
14028 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14030 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14033 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14035 * config/mn10300/mn10300.opt (mno-crt0): New.
14037 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14039 * config/m68k/uclinux.opt (static-libc): New Driver option.
14041 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14043 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14045 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14047 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14048 %{muser-extend-enabled}.
14050 2011-02-16 Richard Guenther <rguenther@suse.de>
14052 PR tree-optimization/47738
14053 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14054 the TODO from tree_predictive_commoning.
14056 2011-02-15 Jeff Law <law@redhat.com>
14059 2011-01-25 Jeff Law <law@redhat.com>
14061 PR rtl-optimization/37273
14062 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14063 handle them like argument loads from stack slots. Do not double
14064 count memory for memory constants and argument loads from stack slots.
14066 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14068 PR middle-end/47725
14069 * combine.c (cant_combine_insn_p): Revert the last change.
14071 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14074 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14075 mode for vector constants. Remove code that checks for TImode.
14077 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14081 * cgraph.h (compute_inline_parameters): Return void.
14082 * ipa-inline.c (compute_inline_parameters): Adjust.
14084 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14088 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14090 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14091 * ipa-inline.c (compute_inline_parameters): Adjust.
14093 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14097 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14098 Adjust all users. Pass FN to...
14099 * tree-flow-inline.h (first_referenced_var): ... this. Add
14101 * ipa-struct-reorg.c: Adjust.
14102 * tree-dfa.c: Adjust.
14103 * tree-into-ssa.c: Adjust.
14104 * tree-sra.c: Adjust.
14105 * tree-ssa-alias.c: Adjust.
14106 * tree-ssa-live.c: Adjust.
14107 * tree-ssa.c: Adjust.
14108 * tree-ssanames.c: Adjust.
14109 * tree-tailcall.c: Adjust.
14111 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14115 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14116 Adjust all callers.
14117 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14118 * tree-flow-inline.h: Adjust.
14119 * gimple-pretty-print.c: Adjust.
14120 * tree-into-ssa.c: Adjust.
14121 * tree-ssa.c: Adjust.
14122 * cfgexpand.c: Adjust.
14124 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14126 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14127 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14128 (EXTRA_CONSTRAINT): Delete.
14129 * config/iq2000/constraints.md: New file.
14130 * config/iq2000/iq2000.md: Include it.
14131 (define_insn ""): Delete.
14132 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14133 unsupported constraint letters from patterns.
14134 (call_value, call_value_internal1): Likewise.
14135 (call_value_multiple_internal1): Likewise.
14137 2011-02-15 Nick Clifton <nickc@redhat.com>
14139 * config/mn10300/mn10300.c: Include tm-constrs.h.
14140 (struct liw_data): New data structure describing an LIW candidate
14142 (extract_bundle): Use struct liw_data. Allow small integer
14143 operands for some instructions.
14144 (check_liw_constraints): Use struct liw_data. Remove swapped
14145 parameter. Add comments describing the checks. Fix bug when
14146 assigning the source of liw1 to the source of liw2.
14147 (liw_candidate): Delete. Code moved into extract_bundle.
14148 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14150 * config/mn10300/predicates.md (liw_operand): New predicate.
14151 Allows registers and small integer constants.
14152 * config/mn10300/constraints.md (O): New constraint. Accetps
14153 integers in the range -8 to +7 inclusive.
14154 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14155 for moving a small integer into a register. Give this alternative
14157 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14158 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14159 using the J,K,L and M constraints,
14160 (liw): Remove SI mode on second operands to allow for HI and QI
14162 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14165 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14167 PR middle-end/47725
14168 * combine.c (cant_combine_insn_p): Check zero/sign extended
14171 2011-02-15 Richard Guenther <rguenther@suse.de>
14173 PR tree-optimization/47743
14174 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14175 for a non-type-compatible VN lookup bail out.
14177 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14179 * config/fr30/constraints.md: New file.
14180 * config/fr30/fr30.md: Include it.
14181 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14182 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14183 (EXTRA_CONSTRAINT): Delete.
14185 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14187 * config/frv/constraints.md: New file.
14188 * config/frv/predicates.md: Include it.
14189 * config/frv/frv.c (reg_class_from_letter): Delete.
14190 (frv_option_override): Don't initialize it.
14191 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14192 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14193 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14194 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14195 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14196 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14197 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14198 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14199 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14200 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14201 (REG_CLASS_FROM_CONSTRAINT): Delete.
14203 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14205 PR middle-end/47581
14206 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14207 if frame size is 0 in a leaf function.
14209 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14212 * config/alpha/host-osf.c: New file.
14213 * config/alpha/x-osf: New file.
14214 * config.host (alpha*-dec-osf*): Use it.
14216 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14218 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14219 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14220 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14221 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14223 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14225 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14227 * config/stormy16/constraints.md: New file.
14228 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14229 Use satisfies_constraint_Q and satisfies_constraint_R.
14230 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14232 (xstormy16_legitiamte_address_p): Declare.
14233 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14234 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14235 (EXTRA_CONSTRAINT): Delete.
14236 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14238 (xstormy16_extra_constraint_p): Delete.
14240 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14242 PR tree-optimization/46494
14243 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14244 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14245 (pass_rtl_loop_done): Add TODO_verify_flow.
14246 * fwprop.c (pass_rtl_fwprop): Likewise.
14247 * modulo-sched.c (pass_sms): Likewise.
14248 * tree-ssa-dom.c (pass_dominator): Likewise.
14249 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14250 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14251 (pass_tree_loop_done): Likewise.
14252 * tree-ssa-pre.c (execute_pre): Likewise.
14253 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14254 * tree-ssa-sink.c (pass_sink_code): Likewise.
14255 * tree-vrp.c (pass_vrp): Likewise.
14257 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14259 * config/v850/constraints.md: New file.
14260 * config/v850/v850.md: Include it.
14261 * config/v850/predicates.md (reg_or_0_operand): Use
14262 satisfies_constraint_G.
14263 (special_symbolref_operand): Use satisfies_constraint_K.
14264 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14265 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14266 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14267 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14268 (EXTRA_CONSTRAINT): Delete.
14269 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14270 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14271 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14273 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14276 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14279 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14281 * config/mcore/constraints.md: New file.
14282 * config/mcore/mcore.md: Include it.
14283 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14284 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14285 (REG_CLASS_FROM_LETTER): Delete.
14286 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14287 insn_const_int_ok_for_constraint.
14288 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14289 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14290 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14291 (EXTRA_CONSTRAINT): Delete.
14293 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14296 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14297 (IS_SIGHANDLER): Define.
14298 (sparc64_is_sighandler): New function, split off from
14299 sparc64_fallback_frame_state.
14300 (sparc_is_sighandler): New function, split off from
14301 sparc_fallback_frame_state.
14302 (sparc64_fallback_frame_state): Merge with ...
14303 (sparc_fallback_frame_state): ... this into ...
14304 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14305 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14306 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14307 stack instead of hardcoded offsets.
14309 2011-02-14 Andriy Gapon <avg@freebsd.org>
14312 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14314 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14316 * configure: Regenerate.
14318 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14321 * gcc.c (asm_options): Correct spec matching --target-help.
14323 2011-02-12 Martin Jambor <mjambor@suse.cz>
14325 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14326 to gimple call error.
14328 2011-02-12 Mike Stump <mikestump@comcast.net>
14330 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14331 comments in backslash regions.
14333 2011-02-12 Mike Stump <mikestump@comcast.net>
14334 Jakub Jelinek <jakub@redhat.com>
14335 Iain Sandoe <iains@gcc.gnu.org>
14338 * dwarf2out.c (output_cfa_loc): When required, apply the
14339 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14340 (output_loc_sequence): Likewise.
14341 (output_loc_operands_raw): Likewise.
14342 (output_loc_sequence_raw): Likewise.
14343 (output_cfa_loc): Likewise.
14344 (output_loc_list): Suppress register number adjustment when
14345 calling output_loc_sequence()
14346 (output_die): Likewise.
14348 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14350 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14352 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14353 xtensa_memory_move_cost): New functions.
14354 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14356 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14359 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14360 in the current directory.
14361 * configure: Rebuilt.
14363 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14365 * config/darwin.c (darwin_override_options): Add a hunk missed
14366 from the commit of r168571. Trim comment line lengths and
14367 correct indents of the preceding block.
14369 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14371 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14374 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14376 * common.opt (nostartfiles): New Driver option.
14378 2011-02-11 Xinliang David Li <davidxl@google.com>
14380 PR tree-optimization/47707
14381 * tree-chrec.c (convert_affine_scev): Keep type precision.
14383 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14385 PR tree-optimization/47420
14386 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14388 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14390 PR rtl-optimization/47614
14391 * rtl.h (check_for_inc_dec): Declare.
14392 * dse.c (check_for_inc_dec): Externalize...
14393 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14394 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14396 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14399 * gcc.c (main): Do not compile inputs if there were errors in
14401 * opts-common.c (read_cmdline_option): Check for wrong language
14402 after other error checks.
14404 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14406 * cgraph.c: Fix comment typos.
14407 * cgraph.h: Likewise.
14408 * cgraphunit.c: Likewise.
14409 * ipa-cp.c: Likewise.
14410 * ipa-inline.c: Likewise.
14411 * ipa-prop.c: Likewise.
14412 * ipa-pure-const.c: Likewise.
14413 * ipa-ref.c: Likewise.
14414 * ipa-reference.c: Likewise.
14416 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14419 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14421 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14424 * doc/sourcebuild.texi (Require Support): Document
14425 dg-require-ascii-locale.
14427 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14429 * doc/lto.texi (Write summary): Fix missing parentheses.
14431 2011-02-10 DJ Delorie <dj@redhat.com>
14433 * config/m32c/m32c.c (m32c_option_override): Disable
14434 -fcombine-stack-adjustments until flag value tracking and compare
14435 optimization can be rewritten.
14437 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14439 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14441 (PROCESSOR_DEFAULT64): Likewise.
14443 2011-02-10 Richard Henderson <rth@redhat.com>
14445 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14446 change from 2011-02-03.
14447 * config/rx/rx.c (flags_from_code): Likewise.
14448 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14449 is valid, n/pz otherwise.
14450 (rx_select_cc_mode): Return CCmode if Y is not zero.
14452 2011-02-10 Richard Guenther <rguenther@suse.de>
14454 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14456 2011-02-10 Richard Guenther <rguenther@suse.de>
14458 PR tree-optimization/47677
14459 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14461 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14464 * combine.c (make_compound_operation): Only change shifts into
14465 multiplication for SCALAR_INT_MODE_P.
14467 2011-02-10 Jie Zhang <jie@codesourcery.com>
14471 2011-02-05 Jie Zhang <jie@codesourcery.com>
14473 * web.c (entry_register): Don't clobber the number of the
14474 first uninitialized reference in used[].
14476 2011-02-09 Richard Guenther <rguenther@suse.de>
14478 PR tree-optimization/47664
14479 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14482 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14486 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14488 (PROCESSOR_DEFAULT64): Same.
14489 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14491 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14493 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14495 2011-02-09 Martin Jambor <mjambor@suse.cz>
14497 PR middle-end/45505
14498 * tree-sra.c (struct access): New flags grp_scalar_read and
14499 grp_scalar_write. Changed description of assignment read and write
14501 (dump_access): Dump new flags, reorder all of them.
14502 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14503 to detect multiple scalar reads.
14504 (analyze_access_subtree): Use the new scalar read write flags instead
14505 of the old flags. Adjusted comments.
14507 2011-02-08 DJ Delorie <dj@redhat.com>
14510 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14513 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14515 * config/m68k/uclinux.opt: New.
14516 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14518 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14520 * config/cris/elf.opt (sim): New Driver option.
14522 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14524 * config/xtensa/elf.opt: New.
14525 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14527 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14529 * config/vax/elf.opt: New.
14530 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14532 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14534 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14536 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14538 * config/gnu-user.opt: New.
14539 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14540 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14541 *-*-uclinux*): Use gnu-user.opt.
14543 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14545 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14546 * config/i386/gnu.h (CPP_SPEC): Likewise.
14548 2011-02-08 Ian Lance Taylor <iant@google.com>
14550 * common.opt (fcx-limited-range): Add SetByCombined flag.
14551 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14552 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14553 (fassociative-math, freciprocal-math): Likewise.
14554 (funsafe-math-optimizations): Likewise.
14555 * opth-gen.awk: Handle SetByCombined.
14556 * optc-gen.awk: Likewise.
14557 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14558 (set_unsafe_math_optimizations_flags): Likewise.
14559 * doc/options.texi (Option properties): Document SetByCombined.
14561 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14563 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14564 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14565 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14566 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14567 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14569 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14571 PR tree-optimization/46834
14572 PR tree-optimization/46994
14573 PR tree-optimization/46995
14574 * graphite-sese-to-poly.c (used_outside_reduction): New.
14575 (detect_commutative_reduction): Call used_outside_reduction.
14576 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14577 translate_scalar_reduction_to_array only when at least one
14578 loop-phi/close-phi tuple has been detected.
14580 2011-02-08 Richard Guenther <rguenther@suse.de>
14582 PR middle-end/47639
14583 * tree-vect-generic.c (expand_vector_operations_1): Update
14585 (expand_vector_operations): ... not here. Cleanup EH info
14586 and the CFG if required.
14588 2011-02-08 Richard Guenther <rguenther@suse.de>
14590 PR tree-optimization/47641
14591 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14592 require type compatibility.
14594 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14596 * gimple-low.c (lower_function_body): Don't remove the location of
14597 the return statement here.
14598 (lower_gimple_return): Do it here instead but only if the return
14599 statement is actually used twice.
14601 2011-02-08 Richard Guenther <rguenther@suse.de>
14603 PR tree-optimization/47632
14604 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14605 unused up_to_stmt parameter, return whether cfg-cleanup is
14606 necessary, remove EH info properly.
14607 (forward_propagate_into_gimple_cond): Adjust caller.
14608 (forward_propagate_into_cond): Likewise.
14609 (forward_propagate_comparison): Likewise.
14610 (tree_ssa_forward_propagate_single_use_vars): Make
14611 forward_propagate_comparison case similar to the two others.
14613 2011-02-08 Nick Clifton <nickc@redhat.com>
14615 * config/mn10300/mn10300.opt (mliw): New command line option.
14616 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14617 (liw_bundling): New automaton.
14618 (liw): New attribute.
14619 (liw_op): New attribute.
14620 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14621 (movsi_internal): Add LIW attributes.
14622 (andsi3): Likewise.
14623 (iorsi3): Likewise.
14624 (xorsi3): Likewise.
14625 (addsi3): Separate register and immediate alternatives.
14626 Add LIW attributes.
14627 (subsi3): Likewise.
14629 (aslsi3): Likewise.
14630 (lshrsi3): Likewise.
14631 (ashrsi3): Likewise.
14632 (liw): New pattern.
14633 * config/mn10300/mn10300.c (liw_op_names): New
14634 (mn10300_print_operand): Handle 'W' operand descriptor.
14635 (extract_bundle): New function.
14636 (check_liw_constraints): New function.
14637 (liw_candidate): New function.
14638 (mn10300_bundle_liw): New function.
14639 (mn10300_reorg): New function.
14640 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14641 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14642 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14643 __LIW__ or __NO_LIW__.
14644 * doc/invoke.texi: Describe the -mliw command line option.
14646 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14648 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14649 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14650 pthread_mutex_unlock): Remove.
14651 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14652 * config/pa/t-pa64: Likewise.
14653 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14654 shared libc if not linking against libpthread.
14655 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14657 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14660 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14661 on 10.6 and later to ensure that we always use the unwinder from
14662 the system. Only add -no_compact_unwind when tarteting darwin
14665 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14668 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14669 (vec_interleave_lowv2sf): Ditto.
14670 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14671 (vec_extract_oddv2sf): Ditto.
14673 2011-02-07 Mike Stump <mikestump@comcast.net>
14676 Add __ieee_divdc3 entry point.
14677 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14679 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14680 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14681 * config/darwin.c (darwin_rename_builtins): Add.
14682 * config/darwin-protos.h (darwin_rename_builtins): Add.
14684 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14687 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14690 2011-02-07 Mike Stump <mikestump@comcast.net>
14692 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14694 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14697 * config/avr/libgcc.S (exit): Move .endfunc
14699 2011-02-07 Richard Guenther <rguenther@suse.de>
14701 PR tree-optimization/47615
14702 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14703 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14704 (run_scc_vn): Initialize it.
14705 (visit_reference_op_load): Use it.
14706 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14708 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14710 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14711 DImode trapping arithmetic libfuncs.
14713 2011-02-07 Richard Guenther <rguenther@suse.de>
14715 PR tree-optimization/47621
14716 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14718 (execute_update_addresses_taken): ... here. Make it more
14719 conservative in what we accept.
14721 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14723 * config/sparc/freebsd.h (ASM_SPEC): Define.
14724 * config/sparc/vxworks.h (ASM_SPEC): Define.
14726 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14728 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14730 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14732 * doc/invoke.texi: Remove reference to compiler internals from
14733 user documentation.
14735 * reg-notes.def: Remove REG_VALUE_PROFILE.
14736 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14738 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14740 PR middle-end/47610
14741 * varasm.c (default_section_type_flags): If decl is NULL,
14742 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14744 2011-02-05 Jie Zhang <jie@codesourcery.com>
14747 * web.c (entry_register): Don't clobber the number of the
14748 first uninitialized reference in used[].
14750 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14752 PR tree-optimization/46194
14753 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14754 (build_classic_dist_vector_1): Do not represent classic distance
14755 vectors when the access functions are variating in different loops.
14757 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14759 * config/mips/iris6.opt: New.
14760 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14762 2011-02-04 Richard Henderson <rth@redhat.com>
14763 Steve Ellcey <sje@cup.hp.com>
14766 * config/ia64/predicates.md (mux1_brcst_element): New.
14767 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14768 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14769 (ia64_unpack_sign): New.
14770 (ia64_expand_unpack): Rewrite using new routines.
14771 (ia64_expand_widen_sum): Ditto.
14772 (ia64_expand_dot_prod_v8qi): Ditto.
14773 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14774 routines, add endian check.
14775 (pmpy2_even): Rename from pmpy2_r, add endian check.
14776 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14777 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14778 (vec_widen_smult_hi_v4hi): Ditto.
14779 (vec_widen_umult_lo_v4hi): Ditto.
14780 (vec_widen_umult_hi_v4hi): Ditto.
14781 (mulv2si3): Change endian checks.
14782 (sdot_prodv4hi): Rewrite with new calls.
14783 (udot_prodv4hi): New.
14784 (vec_pack_ssat_v4hi): Add endian check.
14785 (vec_pack_usat_v4hi): Ditto.
14786 (vec_pack_ssat_v2si): Ditto.
14787 (max1_even): Rename from max1_r, add endian check.
14788 (max1_odd): Rename from max1_l, add endian check.
14789 (*mux1_rev): Format change.
14790 (*mux1_mix): Ditto.
14791 (*mux1_shuf): Ditto.
14792 (*mux1_alt): Ditto.
14793 (*mux1_brcst_v8qi): Use new predicate.
14794 (vec_extract_evenv8qi): Remove endian check.
14795 (vec_extract_oddv8qi): Ditto.
14796 (vec_interleave_lowv4hi): Format change.
14797 (vec_interleave_highv4hi): Ditto.
14798 (mix2_even): Rename from mix2_r, add endian check.
14799 (mix2_odd): Rename from mux2_l, add endian check.
14800 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14801 (vec_extract_evenodd_helper): Format change.
14802 (vec_extract_evenv4hi): Remove endian check.
14803 (vec_extract_oddv4hi): Remove endian check.
14804 (vec_interleave_lowv2si): Format change.
14805 (vec_interleave_highv2si): Format change.
14806 (vec_initv2si): Remove endian check.
14807 (vecinit_v2si): Add endian check.
14808 (reduc_splus_v2sf): Add endian check.
14809 (reduc_smax_v2sf): Ditto.
14810 (reduc_smin_v2sf): Ditto.
14811 (vec_initv2sf): Remove endian check.
14812 (fpack): Add endian check.
14813 (fswap): Add endian check.
14814 (vec_interleave_highv2sf): Add endian check.
14815 (vec_interleave_lowv2sf): Add endian check.
14816 (fmix_lr): Add endian check.
14817 (vec_setv2sf): Format change.
14818 (*vec_extractv2sf_0_be): Use shift to extract operand.
14819 (*vec_extractv2sf_1_be): New.
14820 (vec_pack_trunc_v4hi): Add endian check.
14821 (vec_pack_trunc_v2si): Format change.
14823 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14825 PR inline-asm/23200
14826 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14827 do bb, locus and block comparison and disallow loads if it is not set.
14828 (stmt_is_replaceable_p): New function.
14829 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14831 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14832 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14834 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14836 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14838 * config/rs6000/xilinx.opt: New.
14839 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14841 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14843 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14845 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14847 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14848 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14849 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14850 secondary_reload_info, xtensa_secondary_reload): Remove.
14851 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14852 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14853 (xtensa_preferred_reload_class): Make static. Change return and
14854 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14855 Use CONST_DOUBLE_P predicate.
14856 (xtensa_preferred_output_reload_class): New function.
14857 (xtensa_secondary_reload): Make static.
14859 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14861 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14862 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14863 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14865 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14867 PR middle-end/31490
14868 * output.h (SECTION_RELRO): Define.
14869 (SECTION_MACH_DEP): Adjust.
14870 (get_variable_section): New prototype.
14871 * varpool.c (varpool_finalize_named_section_flags): New function.
14872 (varpool_assemble_pending_decls): Call it.
14873 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14874 * cgraphunit.c (cgraph_output_in_order): Call
14875 varpool_finalize_named_section_flags.
14876 * varasm.c (get_section): Allow section flags conflicts between
14877 relro and read-only sections if the section hasn't been declared yet.
14878 Set SECTION_OVERRIDE after diagnosing section type conflict.
14879 (get_variable_section): No longer static.
14880 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14881 readonly sections that need relocations.
14882 (decl_readonly_section_1): New function.
14883 (decl_readonly_section): Use it.
14886 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14887 Steve Ellcey <sje@cup.hp.com>
14889 PR middle-end/31490
14890 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14891 if section attribute used.
14893 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14895 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14896 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14897 (darwin_init_sections): Remove assertion.
14899 2011-02-03 Nick Clifton <nickc@redhat.com>
14901 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14903 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14904 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14905 instead of "n" and "pz".
14906 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14909 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14912 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14913 fma, expand FMA_EXPR as fma{,f,l} call.
14916 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14917 copy them into a unsigned char variable and pass address of it to
14918 lto_output_data_stream.
14921 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14922 around backend_init_target and lang_dependent_init_target calls.
14923 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14924 (verify_cgraph_node): Don't call set_cfun here. Use
14925 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14926 Set error_found for incorrectly represented calls to thunks.
14928 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14931 PR rtl-optimization/43494
14932 * rtl.h (for_each_inc_dec_fn): New type.
14933 (for_each_inc_dec): Declare.
14934 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14935 (for_each_inc_dec_find_inc_dec): New fn.
14936 (for_each_inc_dec_find_mem): New fn.
14937 (for_each_inc_dec): New fn.
14938 * dse.c (struct insn_size): Remove.
14939 (replace_inc_dec, replace_inc_dec_mem): Remove.
14940 (emit_inc_dec_insn_before): New fn.
14941 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14942 (canon_address): Pass mem modes to cselib_lookup.
14943 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14944 (cselib_lookup_from_insn): Likewise.
14945 (cselib_subst_to_values): Likewise.
14946 * cselib.c (find_slot_memmode): New var.
14947 (cselib_find_slot): New fn. Use it instead of
14948 htab_find_slot_with_hash everywhere.
14949 (entry_and_rtx_equal_p): Use find_slot_memmode.
14950 (autoinc_split): New fn.
14951 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14952 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14953 Deal with autoinc. Special-case recursion into MEMs.
14954 (cselib_hash_rtx): Likewise.
14955 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14956 address and MEM modes.
14957 (cselib_subst_to_values): Add memmode, pass it on.
14959 (cselib_lookup): Add memmode argument, pass it on.
14960 (cselib_lookup_from_insn): Add memmode.
14961 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14962 (struct cselib_record_autoinc_data): New.
14963 (cselib_record_autoinc_cb): New fn.
14964 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14965 mode to cselib_lookup. Reset autoinced REGs here instead of...
14966 (cselib_process_insn): ... here.
14967 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14969 (add_uses): Likewise, also to cselib_subst_to_values.
14970 (add_stores): Likewise.
14971 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14972 cselib_subst_to_values.
14973 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14974 * gcse.c (do_local_cprop): Adjusted.
14975 * postreload.c (reload_cse_simplify_set): Adjusted.
14976 (reload_cse_simplify_operands): Adjusted.
14977 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14979 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14981 PR tree-optimization/45122
14982 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14983 unsafe assumptions when there's more than one loop exit.
14985 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14988 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14989 Document using vector double with the load/store builtins, and
14990 that the load/store builtins always use Altivec instructions.
14992 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14993 to use altivec memory instructions, even on VSX.
14994 (vector_altivec_store_<mode>): Ditto.
14996 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14999 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15000 V2DF, V2DI support to load/store overloaded builtins.
15002 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15003 altivec load/store builtins for V2DF/V2DI types.
15005 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15006 set avoid indexed addresses on power6 if -maltivec.
15007 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15008 vector_altivec_load/vector_altivec_store builtins.
15009 (altivec_expand_st_builtin): Ditto.
15010 (altivec_expand_builtin): Add VSX memory builtins.
15011 (rs6000_init_builtins): Add V2DI types to internal types.
15012 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15013 load/store builtins.
15014 (rs6000_address_for_altivec): Insure memory address is appropriate
15017 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15018 vec_vsx_ld and vec_vsx_st.
15019 (vsx_store_<mode>): Ditto.
15021 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15022 variables to hold long long types for VSX vector memory builtins.
15023 (RS6000_BTI_unsigned_long_long): Ditto.
15024 (long_long_integer_type_internal_node): Ditti.
15025 (long_long_unsigned_type_internal_node): Ditti.
15027 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15028 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15029 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15031 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15033 (vec_vsx_st): Ditto.
15035 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15037 * config/pa/pa-hpux10.opt: New.
15038 * config/hpux11.opt (pthread): New Driver option.
15039 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15040 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15042 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15044 * config/ia64/vms.opt: New.
15045 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15047 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15050 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15051 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15052 generator functions.
15053 (vsx_floatuns<VSi><mode>2): Ditto.
15054 (vsx_fix_trunc<mode><VSi>2): Ditto.
15055 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15057 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15059 * config/i386/djgpp.opt (posix): New Driver option.
15061 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15063 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15064 Move to the unsupported targets list.
15066 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15068 PR rtl-optimization/47525
15069 * df-scan.c: Update copyright years.
15070 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15071 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15073 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15075 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15076 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15077 (ASM_OUTPUT_ASCII): Remove.
15078 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15080 2011-02-02 Jeff Law <law@redhat.com>
15082 PR middle-end/47543
15083 * reload.c (find_reloads_address): Handle reg+d address where both
15084 components are invalid by reloading the entire address.
15086 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15087 Richard Guenther <rguenther@suse.de>
15089 PR tree-optimization/40979
15091 * passes.c (init_optimization_passes): After LIM call copy_prop
15092 and DCE to clean up.
15093 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15095 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15097 PR tree-optimization/47576
15098 PR tree-optimization/47555
15099 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15100 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15101 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15102 * tree-scalar-evolution.c (follow_ssa_edge): Use
15103 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15105 2011-02-02 Richard Guenther <rguenther@suse.de>
15107 PR tree-optimization/47566
15108 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15110 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15114 * tree-inline.c (declare_return_variable): Remove unused caller
15119 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15120 * cfgexpand.c (account_used_vars_for_block): Use them.
15121 * tree-nrv.c (tree_nrv): Likewise.
15122 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15123 (dump_scope_block): Likewise.
15124 (remove_unused_locals): Likewise.
15128 * tree-inline.c (declare_return_variable): Add result decl to
15129 local decls only once.
15130 * gimple-low.c (record_vars_into): Mark newly-created variables
15133 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15139 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15141 (no_real_insns_p, schedule_block, set_priorities): Drop special
15142 treatment of boundary debug insns.
15143 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15144 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15145 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15146 (BOUNDARY_DEBUG_INSN_P): Likewise.
15147 (SCHEDULE_DEBUG_INSN_P): Likewise.
15148 * sched-rgn.c (init_ready_list): Drop special treatment of
15149 boundary debug insns.
15150 * final.c (rest_of_clean_state): Clear notes' BB.
15152 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15154 * config/openbsd.opt (assert=): New Driver option.
15156 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15158 * config/i386/nto.opt: New.
15159 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15161 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15163 * config/i386/netware.opt: New.
15164 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15166 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15168 * config/interix.opt (posix): New Driver option.
15170 2011-02-01 DJ Delorie <dj@redhat.com>
15172 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15174 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15177 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15179 PR tree-optimization/47561
15180 * toplev.c (process_options): Print the Graphite flags. Add
15181 flag_loop_flatten to the list of options requiring Graphite.
15183 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15185 * config/i386/cygming.opt (posix): New Driver option.
15187 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15189 * config/arm/vxworks.opt: New.
15190 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15192 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15194 * config/alpha/elf.opt: New.
15195 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15196 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15198 2011-02-01 Richard Guenther <rguenther@suse.de>
15200 PR tree-optimization/47559
15201 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15202 store-motion on references that can throw.
15204 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15206 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15207 * tree-pass.h (TDF_CSELIB): New macro.
15208 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15209 cselib_lookup): Check for it rather than for TDF_DETAILS.
15211 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15214 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15215 is HOST_BIT_BUCKET.
15217 * opts.c (finish_options): Don't add x_aux_base_name if it is
15220 2011-02-01 Richard Guenther <rguenther@suse.de>
15222 PR tree-optimization/47555
15224 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15226 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15228 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15231 * config/lm32/t-lm32: Add multilib for all CPU options.
15233 2011-02-01 Richard Guenther <rguenther@suse.de>
15235 PR tree-optimization/47541
15236 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15237 sure to have a field at offset zero.
15239 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15241 * config/arc/arc.opt (EB, EL): New Driver options.
15243 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15245 * config/alpha/osf5.opt: New.
15246 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15248 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15250 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15252 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15254 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15255 -floop-interchange.
15256 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15257 is an alias of -floop-interchange and that it requires the
15258 Graphite infrastructure.
15259 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15260 flag_loop_interchange based on the value of flag_tree_loop_linear.
15262 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15263 Richard Guenther <rguenther@suse.de>
15265 PR tree-optimization/47538
15266 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15267 type instead of r1type, except for comparisons. For right
15268 shifts and comparisons punt if there are mismatches in
15269 sizetype vs. non-sizetype types.
15271 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15273 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15276 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15278 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15280 * configure: Regenerate.
15282 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15284 * configure.ac (gcc_cv_ld_static_option): Define.
15285 (gcc_cv_ld_dynamic_option): Define.
15286 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15288 (HAVE_LD_STATIC_DYNAMIC): Update message.
15289 (LD_STATIC_OPTION): Define.
15290 (LD_DYNAMIC_OPTION): Define.
15291 * configure: Regenerate.
15292 * config.in: Regenerate.
15293 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15294 HAVE_LD_STATIC_DYNAMIC]: Use them.
15296 2011-01-31 Nick Clifton <nickc@redhat.com>
15298 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15299 registers inside interrupt handlers if the handler is not a leaf
15302 2011-01-31 Nick Clifton <nickc@redhat.com>
15304 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15305 reg_renumber returning an INVALID_REGNUM.
15307 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15310 * doc/install.texi: Document host options discarded when cross
15311 configuring target libraries.
15313 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15316 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15319 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15321 (no_real_insns_p, schedule_block, set_priorities): Drop special
15322 treatment of boundary debug insns.
15323 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15324 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15325 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15326 (BOUNDARY_DEBUG_INSN_P): Likewise.
15327 (SCHEDULE_DEBUG_INSN_P): Likewise.
15328 * sched-rgn.c (init_ready_list): Drop special treatment of
15329 boundary debug insns.
15330 * final.c (rest_of_clean-state): Clear notes' BB.
15332 2011-01-31 Alan Modra <amodra@gmail.com>
15334 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15335 toc relative expressions as we do in print_operand_address.
15337 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15339 * doc/extend.texi: Follow spelling conventions.
15340 * doc/invoke.texi: Fix a typo.
15342 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15344 * config/hpux11.opt: New.
15345 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15346 ia64*-*-hpux*): Use hpux11.opt.
15348 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15350 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15353 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15355 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15358 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15360 * doc/install.texi (Binaries): Remove outdated reference for
15361 Motorola 68HC11/68HC12 downloads.
15363 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15365 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15368 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15371 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15374 2011-01-28 Ahmad Sharif <asharif@google.com>
15376 * value-prof.c (check_counter): Corrected error message.
15378 2011-01-29 Jie Zhang <jie@codesourcery.com>
15380 * config/arm/arm.c (arm_legitimize_reload_address): New.
15381 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15382 arm_legitimize_reload_address.
15383 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15385 2011-01-28 Ian Lance Taylor <iant@google.com>
15387 * godump.c (go_define): Ignore macros whose definitions include
15388 two adjacent operands.
15390 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15393 * varasm.c (force_const_mem): Store copy of x in desc->constant
15394 instead of x itself.
15395 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15396 itself into REG_EQUAL note.
15398 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15400 * config/freebsd.opt (posix, rdynamic): New Driver options.
15402 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15404 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15405 -Bstatic/-Bdynamic.
15406 * configure: Regenerate.
15408 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15410 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15411 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15413 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15415 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15416 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15417 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15418 (s390_preferred_reload_class): Make static. Change return and
15419 'rclass' argument type to reg_class_t.
15421 2011-01-27 Jan Hubicka <jh@suse.cz>
15423 PR middle-end/46949
15424 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15425 (process_function_and_variable_attributes): Check defined weakrefs.
15427 2011-01-27 Martin Jambor <mjambor@suse.cz>
15429 PR tree-optimization/47228
15430 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15431 build_ref_for_offset.
15433 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15435 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15437 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15439 PR rtl-optimization/46856
15440 * postreload.c (reload_combine_recognize_const_pattern): Do not
15441 separate cc0 setter and user on cc0 targets.
15443 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15446 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15447 passed a VOID_TYPE expression, immediately emit an error and
15448 return error_mark_node.
15450 2011-01-26 Jeff Law <law@redhat.com>
15452 PR rtl-optimization/47464
15453 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15454 rather than may_trap_p as needed.
15456 2011-01-26 DJ Delorie <dj@redhat.com>
15458 PR rtl-optimization/46878
15459 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15460 setter/user dependency as well.
15462 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15464 PR rtl-optimization/44469
15465 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15466 after removing trivially dead basic blocks.
15468 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15470 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15471 * config/frv/frv.h (LINK_SPEC): Likewise.
15472 * config/i386/netware.h (LINK_SPEC): Likewise.
15473 * config/m68k/linux.h (ASM_SPEC): Likewise.
15474 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15475 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15476 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15477 * config/sparc/linux.h (ASM_SPEC): Likewise.
15478 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15479 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15481 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15483 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15484 * config/frv/frv.h (ASM_SPEC): Likewise.
15485 * config/m68k/linux.h (ASM_SPEC): Likewise.
15486 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15487 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15488 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15489 * config/sparc/linux.h (ASM_SPEC): Likewise.
15490 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15491 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15493 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15495 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15496 * config/frv/frv.h (LINK_SPEC): Likewise.
15497 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15499 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15501 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15502 * config/frv/frv.h (ASM_SPEC): Likewise.
15503 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15504 * config/m68k/linux.h (ASM_SPEC): Likewise.
15505 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15506 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15507 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15508 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15509 * config/sparc/linux.h (ASM_SPEC): Likewise.
15510 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15511 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15512 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15514 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15517 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15519 (vec_extract_evenodd_help): Ditto.
15520 (vec_extract_evenv4hi): Ditto.
15521 (vec_extract_oddv4hi): Ditto.
15522 (vec_interleave_lowv2si): Ditto.
15523 (vec_interleave_highv2si): Ditto.
15524 (vec_extract_evenv2si): Ditto.
15525 (vec_extract_oddv2si: Ditto.
15526 (vec_pack_trunc_v2si): Ditto.
15528 2011-01-22 Jan Hubicka <jh@suse.cz>
15531 * cgraph.h (cgraph_local_info): New field can_change_signature.
15532 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15533 signature can change.
15534 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15536 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15537 (cgraph_function_versioning): We can not change signature of functions
15538 that don't allow that.
15539 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15540 (lto_input_node): Likewise.
15541 * ipa-inline.c (compute_inline_parameters): Compute
15542 local.can_change_signature.
15543 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15544 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15545 functions that can not change signature.
15546 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15547 init_cumulative_args): Do not use local calling conventions
15548 for functions that can not change signature.
15550 2011-01-22 Jan Hubicka <jh@suse.cz>
15552 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15554 2011-01-26 Richard Guenther <rguenther@suse.de>
15556 PR tree-optimization/47190
15557 * cgraphunit.c (process_common_attributes): New function.
15558 (process_function_and_variable_attributes): Use it.
15560 2011-01-26 Richard Guenther <rguenther@suse.de>
15563 * cgraphbuild.c (record_eh_tables): Record reference to personality
15566 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15569 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15570 non-debug insns from moving up.
15572 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15575 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15576 t-dlldir{,-x} fragment for build and add it to tmake_file.
15577 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15578 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15579 * config/i386/t-dlldir: New file.
15580 (SHLIB_DLLDIR): Define.
15581 * config/i386/t-dlldir-x: New file.
15582 (SHLIB_DLLDIR): Define.
15583 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15584 (SHLIB_INSTALL): Use it.
15586 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15589 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15590 lower bound of the allowed Thumb-2 coprocessor load/store
15591 index range to -256. Add explaining comment.
15593 2011-01-25 Ian Lance Taylor <iant@google.com>
15595 * godump.c (go_define): Improve lexing of macro expansion to only
15596 accept expressions which match Go spec.
15598 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15601 * tree.c (handle_dll_attribute): Handle it.
15602 * doc/extend.texi (@item dllexport): Mention it.
15603 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15605 2011-01-25 Ian Lance Taylor <iant@google.com>
15607 PR tree-optimization/26854
15608 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15609 (decl_jump_unsafe): Move higher in file, with no other change.
15610 (bind): Set has_jump_unsafe_decl if appropriate.
15611 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15612 (check_earlier_gotos): Likewise.
15613 (c_check_switch_jump_warnings): Likewise.
15615 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15617 * doc/invoke.texi (Warning Options): Add missing hyphen.
15618 (-fprofile-dir): Minor grammatical fixes.
15619 (-fbranch-probabilities): Likewise.
15621 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15625 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15627 (no_real_insns_p, schedule_block, set_priorities): Drop special
15628 treatment of boundary debug insns.
15629 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15630 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15631 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15632 (BOUNDARY_DEBUG_INSN_P): Likewise.
15633 (SCHEDULE_DEBUG_INSN_P): Likewise.
15634 * sched-rgn.c (init_ready_list): Drop special treatment of
15635 boundary debug insns.
15636 * final.c (rest_of_clean-state): Clear notes' BB.
15638 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15640 * Makefile.in (LAMBDA_H): Removed.
15641 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15642 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15643 lambda-trans.o, and tree-loop-linear.o.
15644 (lto-symtab.o): Remove dependence on LAMBDA_H.
15645 (tree-loop-linear.o): Remove rule.
15646 (lambda-mat.o): Same.
15647 (lambda-trans.o): Same.
15648 (lambda-code.o): Same.
15649 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15650 (tree-vect-slp.o): Same.
15651 * hwint.h (gcd): Moved here.
15652 (least_common_multiple): Same.
15653 * lambda-code.c: Removed.
15654 * lambda-mat.c: Removed.
15655 * lambda-trans.c: Removed.
15656 * lambda.h: Removed.
15657 * tree-loop-linear.c: Removed.
15658 * lto-symtab.c: Do not include lambda.h.
15659 * omega.c (gcd): Removed.
15660 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15661 * tree-data-ref.c (print_lambda_vector): Moved here.
15662 (lambda_vector_copy): Same.
15663 (lambda_matrix_copy): Same.
15664 (lambda_matrix_id): Same.
15665 (lambda_vector_first_nz): Same.
15666 (lambda_matrix_row_add): Same.
15667 (lambda_matrix_row_exchange): Same.
15668 (lambda_vector_mult_const): Same.
15669 (lambda_vector_negate): Same.
15670 (lambda_matrix_row_negate): Same.
15671 (lambda_vector_equal): Same.
15672 (lambda_matrix_right_hermite): Same.
15673 * tree-data-ref.h: Do not include lambda.h.
15674 (lambda_vector): Moved here.
15675 (lambda_matrix): Same.
15676 (dependence_level): Same.
15677 (lambda_transform_legal_p): Removed declaration.
15678 (lambda_collect_parameters): Same.
15679 (lambda_compute_access_matrices): Same.
15680 (lambda_vector_gcd): Same.
15681 (lambda_vector_new): Same.
15682 (lambda_vector_clear): Same.
15683 (lambda_vector_lexico_pos): Same.
15684 (lambda_vector_zerop): Same.
15685 (lambda_matrix_new): Same.
15686 * tree-flow.h (least_common_multiple): Removed declaration.
15687 * tree-parloops.c (lambda_trans_matrix): Moved here.
15688 (LTM_MATRIX): Same.
15689 (LTM_ROWSIZE): Same.
15690 (LTM_COLSIZE): Same.
15691 (LTM_DENOMINATOR): Same.
15692 (lambda_trans_matrix_new): Same.
15693 (lambda_matrix_vector_mult): Same.
15694 (lambda_transform_legal_p): Same.
15695 * tree-pass.h (pass_linear_transform): Removed declaration.
15696 * tree-ssa-loop.c (tree_linear_transform): Removed.
15697 (gate_tree_linear_transform): Removed.
15698 (pass_linear_transform): Removed.
15699 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15700 flag_loop_interchange.
15702 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15704 PR tree-optimization/47265
15705 PR tree-optimization/47443
15706 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15707 if name still has some uses.
15709 2011-01-25 Martin Jambor <mjambor@suse.cz>
15711 PR tree-optimization/47382
15712 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15713 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15715 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15717 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15718 sjlj_except_unwind_info.
15720 2011-01-25 Richard Guenther <rguenther@suse.de>
15722 PR tree-optimization/47426
15723 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15724 visible functions results escape.
15726 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15729 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15730 (arm_get_frame_offsets): Use it.
15732 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15733 Jakub Jelinek <jakub@redhat.com>
15735 PR tree-optimization/47271
15736 * tree-if-conv.c (bb_postdominates_preds): New.
15737 (if_convertible_bb_p): Call bb_postdominates_preds.
15738 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15739 (predicate_scalar_phi): Call bb_postdominates_preds.
15741 2011-01-25 Nick Clifton <nickc@redhat.com>
15743 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15744 * config/rx/rx.c (rx_function_value): Likewise.
15745 (rx_promote_function_mode): Likewise.
15746 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15747 in order to make it legitimate.
15748 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15749 make sure that the first operand is the same as the result register.
15750 (addsi3_unspec): Delete.
15751 (subdi3): Do not accept immediate operands.
15752 (subdi3_internal): Likewise.
15754 2011-01-25 Jeff Law <law@redhat.com>
15756 PR rtl-optimization/37273
15757 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15758 handle them like argument loads from stack slots. Do not double
15759 count memory for memory constants and argument loads from stack slots.
15761 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15763 PR tree-optimization/47427
15764 PR tree-optimization/47428
15765 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15766 coalesce if the new root var would be TREE_READONLY.
15768 2011-01-25 Richard Guenther <rguenther@suse.de>
15770 PR middle-end/47414
15771 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15772 correct type for TBAA.
15774 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15776 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15777 (close_phi_written_to_memory): Call for_each_index with
15778 dr_indices_valid_in_loop.
15780 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15782 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15783 when it is initialized.
15785 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15787 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15788 call to graphite_find_data_references_in_stmt.
15789 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15790 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15791 call to graphite_find_data_references_in_stmt.
15792 (analyze_drs_in_stmts): Same.
15793 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15794 in which the scalar analysis of indices is performed.
15795 (create_data_ref): Same. Update call to dr_analyze_indices.
15796 (find_data_references_in_stmt): Update call to create_data_ref.
15797 (graphite_find_data_references_in_stmt): Same.
15798 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15800 (create_data_ref): Same.
15801 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15802 call to create_data_ref.
15804 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15806 * graphite-sese-to-poly.c (build_poly_scop): Move
15807 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15811 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15812 VAR_DECL, PARM_DECL, and RESULT_DECL.
15814 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15816 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15817 in a reduction PBB.
15818 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15819 that have already been marked as PBB_IS_REDUCTION.
15821 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15823 * graphite-scop-detection.c (same_close_phi_node): New.
15824 (remove_duplicate_close_phi): New.
15825 (make_close_phi_nodes_unique): New.
15826 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15828 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15830 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15831 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15832 of both data references to be the same.
15834 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15836 * graphite-dependences.c (build_lexicographical_constraint): Remove
15837 the gdim parameter.
15838 (build_lexicographical_constraint): Adjust call to
15839 ppl_powerset_is_empty.
15840 (dependence_polyhedron): Same.
15841 (graphite_legal_transform_dr): Same.
15842 (graphite_carried_dependence_level_k): Same.
15843 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15845 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15847 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15849 * graphite-sese-to-poly.c
15850 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15851 (close_phi_written_to_memory): New.
15852 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15855 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15857 * doc/install.texi: Update the expected version number of PPL to 0.11.
15858 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15859 #if PPL_VERSION_MINOR < 11.
15861 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15863 * graphite-dependences.c: Include graphite-cloog-util.h.
15864 (new_poly_ddr): Inlined into dependence_polyhedron.
15865 (free_poly_ddr): Moved close by new_poly_ddr.
15866 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15867 Early return NULL when ppl_powerset_is_empty returns true.
15868 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15869 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15870 (graphite_legal_transform_dr): Call new_poly_ddr.
15871 (graphite_carried_dependence_level_k): Same.
15872 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15873 (dot_transformed_deps_stmt_1): Removed.
15874 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15875 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15876 (dot_deps_1): Call dot_deps_2.
15877 * Makefile.in (graphite-dependences.o): Add missing dependence on
15878 graphite-cloog-util.h.
15880 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15882 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15883 (build_lexicographical_constraint): Same.
15884 (dependence_polyhedron_1): Same.
15885 (graphite_legal_transform_dr): Same.
15886 (graphite_carried_dependence_level_k): Same.
15887 * graphite-ppl.c (ppl_powerset_is_empty): New.
15888 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15889 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15891 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15893 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15894 the "a followed by b" relation and document it.
15896 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15898 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15899 iteration when the bag of constraints is empty.
15901 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15903 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15905 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15907 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15908 nest and two loop depths as parameters.
15909 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15910 lst_perfect_nestify.
15912 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15914 * graphite-dependences.c (print_pddr): Call
15915 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15917 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15919 * graphite-ppl.c (debug_gmp_value): New.
15920 * graphite-ppl.h (debug_gmp_value): Declared.
15922 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15924 * doc/install.texi: Document availability of cloog-0.16.
15926 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15928 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15929 invalid postdominance info.
15931 2011-01-24 Jan Hubicka <jh@suse.cz>
15934 * doc/extend.texi (weak pragma): Drop claim that it must
15935 appear before definition.
15936 * varasm.c (merge_weak, declare_weak): Only sanity check
15937 that DECL is not output at a time it is declared weak.
15939 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15941 * machmode.def: Fixed comments.
15943 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15945 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15947 2011-01-24 Paul Koning <ni1d@arrl.net>
15949 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15952 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15955 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15956 (block_info): Add scanned and prev.
15957 (move_or_delete_vzeroupper_2): Return if the basic block
15958 has been scanned and the upper 128bit state is unchanged
15959 from the last scan.
15960 (move_or_delete_vzeroupper_1): Return true if the exit
15962 (move_or_delete_vzeroupper): Visit basic blocks using the
15963 work-list based algorithm based on vt_find_locations in
15966 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15968 2011-01-24 Nick Clifton <nickc@redhat.com>
15970 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15971 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15972 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15973 then define __v850e1__.
15974 * doc/invoke.texi: Document -mv850es.
15976 2011-01-24 Richard Henderson <rth@redhat.com>
15978 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15979 compound unordered comparisons.
15980 * config/rx/rx.c (rx_split_fp_compare): Remove.
15981 * config/rx/rx-protos.h: Update.
15982 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15983 (cbranchsf4): Don't call rx_split_fp_compare.
15984 (*cbranchsf4): Use rx_split_cbranch.
15985 (*cmpsf): Don't accept "i" constraint.
15986 (*conditional_branch): Only valid after reload.
15987 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15989 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15992 * config/rs6000/altivec.md (vector constant splitters): Add
15993 support for creating vector single precision constants if -mvsx is
15994 used and we would create the constant using Altivec primitives.
15996 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15997 Richard Sandiford <rdsandiford@googlemail.com>
15999 PR rtl-optimization/47166
16000 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16001 mechanism for PRE_MODIFY and POST_MODIFY.
16002 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16005 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16007 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16009 2011-01-22 Jan Hubicka <jh@suse.cz>
16012 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16014 2011-01-22 Jan Hubicka <jh@suse.cz>
16016 PR tree-optimization/43884
16018 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16019 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16021 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16023 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16024 * config/s390/s390.c (s390_register_move_cost,
16025 s390_memory_move_cost): New.
16026 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16028 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16030 PR middle-end/47401
16031 * except.c (sjlj_assign_call_site_values): Move setting the
16032 crtl->uses_eh_lsda flag to ...
16033 (sjlj_mark_call_sites): ... here.
16034 (sjlj_emit_function_enter): Support NULL dispatch label.
16035 (sjlj_build_landing_pads): In a function with no landing pads
16036 that still has must-not-throw regions, generate code to register
16037 a personality function with empty LSDA.
16039 2011-01-21 Richard Henderson <rth@redhat.com>
16041 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16043 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16045 * compare-elim.c: New file.
16046 * Makefile.in (OBJS-common): Add it.
16047 (compare-elim.o): New.
16048 * common.opt (fcompare-elim): New.
16049 * opts.c (default_options_table): Add OPT_fcompare_elim.
16050 * tree-pass.h (pass_compare_elim_after_reload): New.
16051 * passes.c (init_optimization_passes): Add it.
16052 * recog.h: Protect against re-inclusion.
16053 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16054 * doc/invoke.texi (-fcompare-elim): Document it.
16055 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16056 * doc/tm.texi: Rebuild.
16058 2011-01-22 Nick Clifton <nickc@redhat.com>
16060 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16061 rx_split_fp_compare.
16063 2011-01-22 Nick Clifton <nickc@redhat.com>
16065 * config/rx/rx.md (UNSPEC_CONST): New.
16066 (deallocate_and_return): Wrap the amount popped off the stack in
16067 an UNSPEC_CONST in order to stop it being rejected by
16068 -mmax-constant-size.
16069 (pop_and_return): Add a "(return)" rtx.
16070 (call): Drop the immediate operand.
16071 (call_internal): Likewise.
16072 (call_value): Likewise.
16073 (call_value_internal): Likewise.
16074 (sibcall_internal): Likewise.
16075 (sibcall_value_internal): Likewise.
16076 (sibcall): Likewise. Generate an explicit call using
16078 (sibcall_value): Likewise.
16079 (mov<>): FAIL if a constant operand is not legitimate.
16080 (addsi3_unpsec): New pattern.
16082 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16083 (ok_for_max_constant): New function.
16084 (gen_safe_add): New function.
16085 (rx_expand_prologue): Use gen_safe_add.
16086 (rx_expand_epilogue): Likewise.
16087 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16090 2011-01-21 Jeff Law <law@redhat.com>
16092 PR tree-optimization/47053
16093 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16094 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16095 statements are deleted.
16096 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16097 is nonempty, then purge dead edges and cleanup the CFG.
16099 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16102 Temporarily revert:
16103 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16105 * tree-dfa.c (create_var_ann): Mark variable as used.
16107 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16109 PR middle-end/45566
16110 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16111 notes from other section in hot/cold partitioning even if
16112 last_action is -3. Increment call_site_base.
16114 PR rtl-optimization/47366
16115 * fwprop.c (forward_propagate_into): Return bool. If
16116 any changes are made, -fnon-call-exceptions is used and
16117 REG_EH_REGION note is present, call purge_dead_edges
16118 and return true if it purged anything.
16119 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16120 any EH edges were purged.
16122 2011-01-21 Jeff Law <law@redhat.com>
16124 PR rtl-optimization/41619
16125 * caller-save.c (setup_save_areas): Break out code to determine
16126 which hard regs are live across calls by examining the reload chains
16127 so that it is always used.
16128 Eliminate code which checked REG_N_CALLS_CROSSED.
16130 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16132 PR tree-optimization/47355
16133 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16134 NOP has non-debug uses beyond PHIs in new_bb.
16136 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16139 * cfgexpand.c (account_used_vars_for_block): Only account vars
16140 that are annotated as used.
16141 (estimated_stack_frame_size): Don't set TREE_USED.
16142 * tree-dfa.c (create_var_ann): Mark variable as used.
16144 2011-01-21 Richard Guenther <rguenther@suse.de>
16146 PR middle-end/47395
16147 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16149 2011-01-21 Richard Guenther <rguenther@suse.de>
16151 PR tree-optimization/47365
16152 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16153 (vn_reference_lookup_pieces): Adjust.
16154 (vn_reference_lookup): Likewise.
16155 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16156 (vn_reference_lookup_3): Only look through kills if in
16157 VN_WALKREWRITE mode.
16158 (vn_reference_lookup_pieces): Adjust.
16159 (vn_reference_lookup): Likewise.
16160 (visit_reference_op_load): Likewise.
16161 (visit_reference_op_store): Likewise.
16162 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16163 (compute_avail): Likewise.
16164 (eliminate): Likewise.
16166 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16168 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16169 DECL_IGNORED_P non-reg vars if they are used.
16171 PR tree-optimization/47391
16172 * varpool.c (const_value_known_p): Return false if
16175 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16178 * config/i386/i386.c (ix86_local_alignment): Handle
16179 case for va_list_type_node is nil.
16180 (ix86_canonical_va_list_type): Likewise.
16182 2011-01-21 Alan Modra <amodra@gmail.com>
16184 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16185 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16187 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16189 * config/arm/arm.md (define_attr type): Rename f_load
16190 and f_store to f_fpa_load and f_fpa_store. Update.
16191 (write_conflict): Deal with rename fallout.
16192 (*push_fp_multi): Likewise.
16193 * config/arm/fpa.md (f_load): Use f_fpa_load.
16194 (f_store): Use f_fpa_store.
16195 (*movsf_fpa): Likewise.
16196 (*movdf_fpa): Likewise.
16197 (*movxf_fpa): Likewise.
16198 (*thumb2_movsf_fpa): Likewise.
16199 (*thumb2_movdf_fpa): Likewise.
16200 (*thumb2_movxf_fpa): Likewise.
16201 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16202 f_loadd and f_stored.
16203 (*thumb2_movdi_vfp): Likewise.
16204 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16205 (*thumb2_movsi_vfp): Likewise.
16206 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16207 Use f_loads instead of f_load.
16208 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16210 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16212 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16213 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16214 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16215 (xtensa_mode_dependent_address_p): New function.
16216 (constantpool_address_p): Make static. Change return type to bool.
16217 Change argument type to const_rtx. Use CONST_INT_P predicate.
16219 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16222 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16224 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16227 * cfgexpand.c (expand_debug_expr): Instead of generating
16228 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16231 2011-01-20 Richard Guenther <rguenther@suse.de>
16233 PR middle-end/47370
16234 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16235 the pointer operand of MEM_REFs.
16237 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16239 PR tree-optimization/46130
16240 * ipa-split.c (consider_split): If return_bb contains non-virtual
16241 PHIs other than for retval or if split_function would not adjust it,
16244 2011-01-20 Richard Guenther <rguenther@suse.de>
16246 PR tree-optimization/47167
16247 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16248 Revert previous change, only avoid enumeral type changes.
16250 2011-01-19 Mike Stump <mikestump@comcast.net>
16252 * doc/tm.texi.in (BRANCH_COST): Englishify.
16253 * doc/tm.texi (BRANCH_COST): Likewise.
16255 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16258 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16259 (gen_scheduled_generic_parms_dies): New functions.
16260 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16261 generation for the end of CU compilation.
16262 (dwarf2out_finish): Generate template parameters DIEs here.
16264 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16267 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16268 debug bind stmt on merge edges.
16270 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16274 * function.c (instantiate_expr): Instantiate incoming rtl of
16275 implicit arguments, and recurse on VALUE_EXPRs.
16276 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16277 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16279 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16281 * c-parser.c (c_parser_for_statement): Initialize
16282 collection_expression.
16284 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16286 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16288 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16290 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16291 (LINK_SHLIB_SPEC): Don't use %(link_path).
16292 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16294 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16296 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16297 (NO_SHARED_LIB_SUPPORT): Remove.
16298 (LINK_SHLIB_SPEC): Remove one conditional definition.
16300 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16302 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16304 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16305 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16306 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16307 %{call_shared} and conditionals on these options not being passed.
16308 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16311 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16313 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16316 * ipa-split.c: Spelling fixes.
16318 2011-01-19 Richard Henderson <rth@redhat.com>
16320 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16321 (*mulsi3): Likewise.
16323 * longlong.h [__mn10300__] (count_leading_zeros): New.
16324 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16325 [__mn10300__] (add_ssaaaa, subddmmss): New.
16326 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16327 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16329 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16331 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16333 2011-01-19 Richard Henderson <rth@redhat.com>
16335 * config/mn10300/mn10300.md (addsi3_flags): New.
16336 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16337 (subsi3_flags, subc_internal, subdi3): New.
16338 (subdi3_internal, *subdi3_degenerate): New.
16339 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16341 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16342 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16343 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16344 * config/mn10300/mn10300-protos.h: Update.
16345 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16346 (return_ret): Likewise. Rename from return_internal_regs.
16347 (return_internal): Remove.
16349 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16350 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16351 (mn10300_legitimate_constant_p): Likewise.
16352 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16353 (mn10300_frame_size): New.
16354 (mn10300_expand_prologue): Use it.
16355 (mn10300_expand_epilogue): Likewise.
16356 (mn10300_initial_offset): Likewise.
16357 * config/mn10300/mn10300-protos.h: Update.
16358 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16359 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16360 (prologue, epilogue, return_internal): Tidy output code.
16361 (mn10300_store_multiple_operation, return): Likewise.
16362 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16363 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16364 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16365 (load_pic, am33_load_pic): New.
16366 (mn10300_load_pic0, mn10300_load_pic1): New.
16368 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16369 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16370 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16371 (cc_flags_for_mode, cc_flags_for_code): New.
16372 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16373 overflow flag is not valid. Validate that the flags we need
16374 for the comparison are valid.
16375 (mn10300_output_cmp): Remove.
16376 (mn10300_output_add): New.
16377 (mn10300_select_cc_mode): Use cc_flags_for_code.
16378 (mn10300_split_cbranch): New.
16379 (mn10300_match_ccmode): New.
16380 (mn10300_split_and_operand_count): New.
16381 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16383 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16384 (addsi3): ... here. Use mn10300_output_add.
16385 (*addsi3_flags): New.
16386 (*am33_subsi3, *mn10300_subsi3): Merge...
16387 (subsi3): ... here. Use attribute isa.
16388 (*subsi3_flags): New.
16389 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16391 (*am33_andsi3, *mn10300_andsi3): Merge...
16392 (andsi3): ... here.
16393 (*andsi3_flags): New.
16394 (andsi3 splitters): New.
16395 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16396 (iorsi3): ... here.
16397 (*iorsi3_flags): New.
16398 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16399 (xorsi3): ... here.
16400 (*xorsi3_flags): New.
16401 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16402 (one_cmplsi2): ... here.
16403 (*one_cmplsi2_flags): New.
16404 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16405 instead of "dax" in constraints. Use mn10300_split_cbranch.
16406 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16407 use matching constraints to eliminate a self-comparison.
16408 (*integer_conditional_branch): Rename from integer_conditional_branch.
16409 Use int_mode_flags to match CC_REG.
16410 (*cbranchsi4_btst, *btstsi): New.
16411 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16412 mn10300_split_cbranch.
16413 (*am33_cmpsf): Rename from am33_cmpsf.
16414 (*float_conditional_branch): Rename from float_conditional_branch.
16415 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16416 (zero_extendqisi2): ... here.
16417 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16418 (zero_extendhisi2): ... here.
16419 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16420 (extendqisi2): ... here.
16421 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16422 (extendhisi2): ... here.
16423 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16424 (ashlsi3): ... here.
16425 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16426 (lshrsi3): ... here.
16427 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16428 (ashrsi3): ... here.
16429 (consecutive add peephole): Remove.
16430 * config/mn10300/predicates.md (label_ref_operand): New.
16431 (int_mode_flags): New.
16432 (CCZN_comparison_operator): New.
16434 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16435 (throughput_42_latency_43): New reservation.
16436 (mulsidi3, umulsidi3): New expanders.
16437 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16438 the MDR register to allocation; separately allocate the low and
16439 high parts of the DImode result.
16440 (umulsidi3_internal): Similarly.
16441 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16442 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16443 (udivsi3, umodsi3): Remove.
16444 (udivmodsi4, divmodsi4): New expanders.
16445 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16446 (*divmodsi4): Simiarly.
16447 (ext_internal): New.
16449 * config/mn10300/constraints.md ("z"): New constraint.
16450 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16451 (FIXED_REGISTERS): Don't fix MDR.
16452 (CALL_USED_REGSITERS): Reformat nicely.
16453 (REG_ALLOC_ORDER): Add MDR.
16454 (enum regclass): Add MDR_REGS.
16455 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16456 (IRA_COVER_CLASSES): Add MDR_REGS.
16457 (REGNO_REG_CLASS): Handle MDR_REG.
16458 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16459 (mn10300_register_move_cost): Likewise.
16460 * config/mn10300/mn10300.md (MDR_REG): New.
16461 (*movsi_internal): Handle moves to/from MDR_REGS.
16463 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16465 (mn10300_secondary_reload): Tidy combination reload classes.
16466 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16467 addresses for AM33. Allow symbolic offsets for reg+imm.
16468 (mn10300_regno_in_class_p): New.
16469 (mn10300_legitimize_reload_address): New.
16470 * config/mn10300/mn10300.h (enum reg_class): Remove
16471 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16472 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16473 SP_OR_GENERAL_REGS.
16474 (REG_CLASS_NAMES): Update to match.
16475 (REG_CLASS_CONTENTS): Likewise.
16476 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16477 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16478 (REGNO_IN_RANGE_P): Remove.
16479 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16480 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16481 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16482 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16483 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16484 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16485 (REGNO_GENERAL_P): New.
16486 (HAVE_POST_MODIFY_DISP): New.
16487 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16488 (LEGITIMIZE_RELOAD_ADDRESS): New.
16489 * config/mn10300/mn10300-protos.h: Update.
16491 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16492 DATA_REGS for AM33 stack-pointer destination.
16493 (mn10300_preferred_output_reload_class): Likewise.
16494 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16495 into a form appropriate for ...
16496 (TARGET_SECONDARY_RELOAD): New.
16497 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16498 * config/mn10300/mn10300-protos.h: Update.
16499 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16500 reload_insi; use the "A" constraint for the scratch; handle AM33
16501 moves of sp to non-address registers.
16503 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16504 (*movqi_internal): ... here.
16505 (*am33_movhi, *mn10300_movhi): Merge into...
16506 (*movhi_internal): ... here.
16507 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16508 as the source/destination of moves from/to SP.
16509 (movsf): Only allow for AM33-2.
16510 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16511 any integer constant constraint. Only allow for AM33-2. Tidy
16512 all of the alternative outputs.
16513 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16514 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16516 (udivsi3, umodsi3): New patterns for MN103 only.
16518 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16520 * doc/tm.texi.in: Spell out that a lack of register class unions
16522 * doc/tm.texi: Regenerate.
16524 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16526 PR rtl-optimization/47337
16527 * dce.c (check_argument_store): New function.
16528 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16530 PR tree-optimization/47290
16531 * tree-eh.c (infinite_empty_loop_p): New function.
16532 (cleanup_empty_eh): Use it.
16534 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16537 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16538 (a64_expand_widen_sum): Ditto.
16539 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16540 (vec_extract_evenodd_help): Ditto.
16541 (vec_extract_evenv4hi): Ditto.
16542 (vec_extract_oddv4hi): Ditto.
16543 (vec_extract_evenv2si): Ditto.
16544 (vec_extract_oddv2si): Ditto.
16545 (vec_extract_evenv2sf): Ditto.
16546 (vec_extract_oddv2sf): Ditto.
16547 (vec_pack_trunc_v4hi: Ditto.
16548 (vec_pack_trunc_v2si): Ditto.
16549 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16550 (vec_interleave_highv8qi): Ditto.
16552 (vec_extract_oddv8qi): Ditto.
16553 (vec_interleave_lowv4hi): Ditto.
16554 (vec_interleave_highv4hi): Ditto.
16555 (vec_interleave_lowv2si): Ditto.
16556 (vec_interleave_highv2si): Ditto.
16558 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16560 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16561 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16562 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16563 (pa_c_mode_for_suffix): New.
16564 (TARGET_EXPAND_BUILTIN): Define.
16565 (TARGET_C_MODE_FOR_SUFFIX): Define.
16566 (pa_builtins): Define.
16567 (pa_init_builtins): Register __float128 type and init new support
16569 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16570 * config/pa/quadlib.c (_U_Qfcopysign): New.
16572 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16574 PR middle-end/46894
16575 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16576 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16579 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16581 PR tree-optimization/47179
16582 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16583 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16585 2011-01-18 Richard Guenther <rguenther@suse.de>
16587 PR rtl-optimization/47216
16588 * emit-rtl.c: Include tree-flow.h.
16589 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16590 of replicating it with different semantics.
16591 * Makefile.in (emit-rtl.o): Adjust.
16593 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16595 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16596 (cortex_a9_dp): Handle neon types correctly.
16598 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16600 PR rtl-optimization/47299
16601 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16602 subtarget. Use normal multiplication if both operands are constants.
16603 * expmed.c (expand_widening_mult): Don't try to optimize constant
16604 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16607 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16609 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16610 spacing after 'e.g.', typos, comma, hyphenation.
16612 2011-01-17 Richard Henderson <rth@redhat.com>
16614 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16615 (rx_restricted_mem_operand): New.
16616 (rx_shift_operand): Use register_operand.
16617 (rx_source_operand, rx_compare_operand): Likewise.
16618 * config/rx/rx.md (addsi3_flags): New expander.
16619 (adddi3): Rewrite as expander.
16620 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16621 (subsi3_flags): New expander.
16622 (subdi3): Rewrite as expander.
16623 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16625 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16626 (rx_init_builtins): Remove sat builtin.
16627 (rx_expand_builtin): Likewise.
16628 * config/rx/rx.md (ssaddsi3): New.
16629 (*sat): Rename from sat. Represent the CC_REG input.
16631 * config/rx/predicates.md (rshift_operator): New.
16632 * config/rx/rx.c (rx_expand_insv): Remove.
16633 * config/rx/rx-protos.h: Update.
16634 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16635 operand to the canonical position.
16636 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16637 (*bitclr, *bitclr_in_memory): Similarly.
16638 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16639 (insv): Retain the zero_extract in the expansion.
16641 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16642 (bswaphi2, bitinvert, revw): Likewise.
16644 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16645 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16646 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16647 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16648 (bitset, bitset_in_memory): Likewise.
16649 (bitinvert, bitinvert_in_memory): Likewise.
16650 (bitclr, bitclr_in_memory): Likewise.
16651 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16652 (rx_strend, rx_cmpstrn): Likewise.
16653 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16654 (bitop peep2 patterns): Remove.
16656 * config/rx/rx.c (rx_match_ccmode): New.
16657 * config/rx/rx-protos.h: Update.
16658 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16659 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16660 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16661 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16662 (fix_truncsfsi2, floatsisf2): Likewise.
16663 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16664 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16665 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16666 (*subsi3_flags, *xorsi3_flags): New.
16668 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16670 * config/rx/rx.c (rx_print_operand): Remove workaround for
16671 unsplit comparison operations.
16673 * config/rx/rx.md (movsicc): Split after reload.
16674 (*movsicc): Merge *movsieq and *movsine via match_operator.
16675 (*stcc): New pattern.
16677 * config/rx/rx.c (rx_float_compare_mode): Remove.
16678 * config/rx/rx.h (rx_float_compare_mode): Remove.
16679 * config/rx/rx.md (cstoresi4): Split after reload.
16680 (*sccc): New pattern.
16682 * config/rx/predicates.md (label_ref_operand): New.
16683 (rx_z_comparison_operator): New.
16684 (rx_zs_comparison_operator): New.
16685 (rx_fp_comparison_operator): New.
16686 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16687 Validate that the flags are set properly for the comparison.
16688 (rx_gen_cond_branch_template): Remove.
16689 (rx_cc_modes_compatible): Remove.
16690 (mode_from_flags): New.
16691 (flags_from_code): Rename from flags_needed_for_conditional.
16692 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16693 (rx_select_cc_mode): Likewise.
16694 (rx_split_fp_compare): New.
16695 (rx_split_cbranch): New.
16696 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16697 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16698 (*cbranchsf4): Similarly.
16699 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16700 match_operator and rx_split_cbranch.
16701 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16702 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16703 (*cmpsi): Rename from cmpsi.
16704 (*tstsi): Rename from tstsi.
16705 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16706 (*conditional_branch): Rename from conditional_branch.
16707 (*reveresed_conditional_branch): Remove.
16708 (b<code>): Remove expander.
16709 * config/rx/rx-protos.h: Update.
16711 * config/rx/rx.c (rx_compare_redundant): Remove.
16712 * config/rx/rx.md (cmpsi): Don't use it.
16713 * config/rx/rx-protos.h: Update.
16715 * config/rx/rx-modes.def (CC_F): New mode.
16716 * config/rx/rx.c (rx_select_cc_mode): New.
16717 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16718 * config/rx/rx-protos.h: Update.
16720 2011-01-17 Richard Henderson <rth@redhat.com>
16722 * except.c (dump_eh_tree): Fix stray ; after for statement.
16724 2011-01-17 Richard Guenther <rguenther@suse.de>
16726 PR tree-optimization/47313
16727 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16728 handling before copying the body. Properly deal with
16729 by-reference result in SSA form.
16731 2011-01-17 Ian Lance Taylor <iant@google.com>
16734 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16735 (struct_value_alias_set): Don't define.
16736 (sparc_option_override): Don't set sparc_sr_alias_set and
16737 struct_value_alias_set.
16738 (save_or_restore_regs): Use gen_frame_mem rather than calling
16740 (sparc_struct_value_rtx): Likewise.
16742 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16745 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16746 (_mm_maskstore_pd): Likewise.
16747 (_mm_maskload_ps): Likewise.
16748 (_mm_maskstore_ps): Likewise.
16749 (_mm256_maskload_pd): Change mask to __m256i.
16750 (_mm256_maskstore_pd): Likewise.
16751 (_mm256_maskload_ps): Likewise.
16752 (_mm256_maskstore_ps): Likewise.
16754 * config/i386/i386-builtin-types.def: Updated.
16755 (ix86_expand_special_args_builtin): Likewise.
16757 * config/i386/i386.c (bdesc_special_args): Update
16758 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16759 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16760 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16761 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16763 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16764 Use <avxpermvecmode> on mask register.
16765 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16767 2011-01-17 Olivier Hainque <hainque@adacore.com>
16768 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16769 Eric Botcazou <ebotcazou@adacore.com>
16772 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16773 if <= USHRT_MAX in 32-bit mode.
16775 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16777 * doc/install.texi (Configuration, Specific): Wrap long
16778 lines in examples. Allow line wrapping in long options
16779 and URLs where beneficial for PDF output.
16781 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16783 * config/mips/mips.c (mips_classify_symbol): Don't return
16784 SYMBOL_PC_RELATIVE for nonlocal labels.
16786 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16788 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16790 2011-01-15 Jan Hubicka <jh@suse.cz>
16792 PR tree-optimization/47276
16793 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16794 declarations as needed.
16796 2011-01-15 Martin Jambor <mjambor@suse.cz>
16798 * common.opt (fdevirtualize): New flag.
16799 * doc/invoke.texi (Option Summary): Document it.
16800 * opts.c (default_options_table): Add devirtualize flag.
16801 * ipa-prop.c (detect_type_change): Return immediately if
16802 devirtualize flag is not set.
16803 (detect_type_change_ssa): Likewise.
16804 (compute_known_type_jump_func): Likewise.
16805 (ipa_analyze_virtual_call_uses): Likewise.
16807 2011-01-14 Martin Jambor <mjambor@suse.cz>
16809 PR tree-optimization/45934
16810 PR tree-optimization/46302
16811 * ipa-prop.c (type_change_info): New type.
16812 (stmt_may_be_vtbl_ptr_store): New function.
16813 (check_stmt_for_type_change): Likewise.
16814 (detect_type_change): Likewise.
16815 (detect_type_change_ssa): Likewise.
16816 (compute_complex_assign_jump_func): Check for dynamic type change.
16817 (compute_complex_ancestor_jump_func): Likewise.
16818 (compute_known_type_jump_func): Likewise.
16819 (compute_scalar_jump_functions): Likewise.
16820 (ipa_analyze_virtual_call_uses): Likewise.
16821 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16823 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16825 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16826 * config/i386/i386.opt (msse5): New Alias.
16828 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16830 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16831 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16832 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16833 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16835 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16837 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16839 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16840 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16841 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16842 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16844 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16846 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16848 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16850 2011-01-14 Mike Stump <mikestump@comcast.net>
16852 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16853 * config/fr30/fr30.md: Likweise
16854 (movsi_push): Likewise.
16855 (movsi_pop): Likewise.
16856 (enter_func): Likewise.
16857 * config/moxie/moxie.md (movsi_push): Likewise.
16858 (movsi_pop): Likewise.
16860 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16862 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16863 %{no_archive} %{exact_version}.
16864 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16865 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16866 %{no_archive} %{exact_version}.
16867 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16868 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16869 * config/mips/vxworks.h: Likewise.
16871 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16873 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16875 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16877 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16878 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16880 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16882 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16885 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16887 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16889 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16890 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16892 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16893 Don't handle -shlib.
16895 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16897 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16898 (CC1_SPEC): Don't handle -profile.
16900 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16902 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16903 * config/mips/mips.h (CC1_SPEC): Likewise.
16905 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16907 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16908 * config/mips/mips.h (CC1_SPEC): Likewise.
16910 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16912 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16913 * config/m32r/linux.h (LINK_SPEC): Likewise.
16914 * config/mips/linux.h (LINK_SPEC): Likewise.
16915 * config/mips/linux64.h (LINK_SPEC): Likewise.
16916 * config/sparc/linux.h (LINK_SPEC): Likewise.
16917 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16918 LINK_SPEC): Likewise.
16919 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16921 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16923 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16925 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16927 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16929 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16930 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16932 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16934 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16936 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16938 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16939 supports -Bstatic/-Bdynamic.
16940 * configure: Regenerate.
16942 2011-01-14 Jan Hubicka <jh@suse.cz>
16943 Jack Howarth <howarth@bromo.med.uc.edu>
16946 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16947 when checking debug_info_level. Test write_symbols instead of
16948 debug_hooks->var_location when setting flag_var_tracking_uninit.
16950 2011-01-14 Richard Guenther <rguenther@suse.de>
16952 PR tree-optimization/47179
16953 * target.def (ref_may_alias_errno): New target hook.
16954 * targhooks.h (default_ref_may_alias_errno): Declare.
16955 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16956 (default_ref_may_alias_errno): New function.
16957 * target.h (struct ao_ref_s): Declare.
16958 * tree-ssa-alias.c: Include target.h.
16959 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16960 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16961 (targhooks.o): Likewise.
16962 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16963 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16965 2011-01-14 Richard Guenther <rguenther@suse.de>
16967 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16969 2011-01-14 Richard Guenther <rguenther@suse.de>
16971 PR tree-optimization/47280
16972 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16973 return CFG changes.
16974 (tree_ssa_forward_propagate_single_use_vars): Deal with
16975 CFG changes from associate_plusminus.
16977 2011-01-14 Richard Guenther <rguenther@suse.de>
16979 PR middle-end/47281
16981 2011-01-11 Richard Guenther <rguenther@suse.de>
16983 PR tree-optimization/46076
16984 * tree-ssa.c (useless_type_conversion_p): Conversions from
16985 unprototyped to empty argument list function types are useless.
16987 2011-01-14 Richard Guenther <rguenther@suse.de>
16989 PR tree-optimization/47286
16990 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16992 2011-01-14 Martin Jambor <mjambor@suse.cz>
16994 PR middle-end/46823
16995 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16997 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16999 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17000 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17001 * config/xtensa/xtensa.c (xtensa_libcall_value,
17002 xtensa_function_value_regno_p): New functions.
17003 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17005 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17008 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17010 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17011 New function prototype.
17012 * config/i386/winnt.c (i386_pe_assemble_visibility):
17013 Warn only if attribute was specified by user.
17015 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17018 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17020 (floatunsdidf2_fcfidu): Ditto.
17022 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17024 * config/s390/s390.c (print_operand_address): Replace 'error' with
17025 'output_operand_lossage'.
17026 (print_operand): Likewise.
17028 2011-01-13 Jeff Law <law@redhat.com>
17030 PR rtl-optimization/39077
17031 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17032 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17033 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17034 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17035 * gcse.c (prune_insertions_deletions): New function.
17036 (compute_pre_data): Use it.
17038 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17041 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17043 (prune_unused_types_mark): Use it.
17045 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17047 PR rtl-optimization/45352
17048 * sel-sched.c: Update copyright years.
17049 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17050 in the advancing loop when we have issued issue_rate insns.
17052 2011-01-12 Richard Henderson <rth@redhat.com>
17054 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17055 (TARGET_MD_ASM_CLOBBERS): New.
17057 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17058 (TARGET_DELEGITIMIZE_ADDRESS): New.
17060 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17061 (clzsi2, *bsch): New patterns.
17063 * config/mn10300/mn10300.md (INT): New mode iterator.
17064 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17066 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17067 flag_split_wide_types.
17069 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17070 (mn10300_trampoline_init): Rewrite without a template, an immediate
17071 load and a direct branch.
17072 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17074 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17076 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17077 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17078 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17079 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17081 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17084 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17087 2011-01-12 Jan Hubicka <jh@suse.cz>
17090 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17091 (PLUGIN_COND_CLOSE): New macro.
17092 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17094 2011-01-12 Richard Guenther <rguenther@suse.de>
17097 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17098 register variables in a MEM_REF.
17100 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17102 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17103 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17104 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17105 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17106 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17107 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17108 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17109 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17110 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17111 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17112 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17113 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17114 * config/gnu-user.h: New. Copied from linux.h.
17115 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17116 GNU_USER_TARGET_STARTFILE_SPEC.
17117 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17118 GNU_USER_TARGET_ENDFILE_SPEC.
17119 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17120 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17121 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17122 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17123 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17124 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17125 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17126 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17127 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17128 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17129 * config/arm/linux-eabi.h (CC1_SPEC): Use
17130 GNU_USER_TARGET_CC1_SPEC.
17131 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17132 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17133 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17134 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17135 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17136 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17137 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17138 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17140 2011-01-12 Richard Guenther <rguenther@suse.de>
17143 * doc/invoke.texi (ffast-math): Document it is turned on
17146 2011-01-12 Jan Hubicka <jh@suse.cz>
17148 PR tree-optimization/47233
17149 * opts.c (common_handle_option): Disable ipa-reference with profile
17152 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17154 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17157 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17159 * c-parser.c (c_lex_one_token): Updated and reindented some
17160 comments. No changes in code.
17162 2011-01-11 Ian Lance Taylor <iant@google.com>
17164 * godump.c (go_output_var): Don't output the variable if there is
17165 already a type with the same name.
17167 2011-01-11 Ian Lance Taylor <iant@google.com>
17169 * godump.c (go_format_type): Don't generate float80.
17171 2011-01-11 Richard Henderson <rth@redhat.com>
17173 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17174 declaration. Rewrite for both speed and size.
17175 (mn10300_address_cost_1): Remove.
17176 (mn10300_register_move_cost): New.
17177 (mn10300_memory_move_cost): New.
17178 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17179 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17180 extensions, shifts, BSWAP, CLZ.
17181 (mn10300_wide_const_load_uses_clr): Remove.
17182 (TARGET_REGISTER_MOVE_COST): New.
17183 (TARGET_MEMORY_MOVE_COST): New.
17184 * config/mn10300/mn10300-protos.h: Update.
17185 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17187 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17188 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17189 * config/mn10300/mn10300-protos.h: Update.
17190 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17191 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17192 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17193 (*test_int_bitfield, *test_byte_bitfield): Remove.
17194 (*bit_test, *subreg_bit_test): Remove.
17195 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17197 * config/mn10300/constraints.md ("c"): Rename from "A".
17198 ("A", "D"): New constraint letters.
17199 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17200 (fmssf4, fnmasf4, fnmssf4): Likewise.
17202 * config/mn10300/mn10300.md (isa): New attribute.
17203 (enabled): New attribute.
17205 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17206 (abssf2, negsf2): Define only for hardware fp.
17207 (sqrtsf2): Reformat.
17208 (addsf3, subsf3, mulsf3): Merge expander and insn.
17210 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17211 (DEBUGGER_AUTO_OFFSET): Remove.
17212 (DEBUGGER_ARG_OFFSET): Remove.
17214 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17215 Emit register stores with the same offsets as the hardware.
17216 (mn10300_store_multiple_operation): Don't check that the register
17217 save offsets are monotonic.
17218 * config/mn10300/mn10300-protos.h: Update.
17220 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17222 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17223 in terms of the value on the stack, not the MDR register.
17225 2011-01-11 Jan Hubicka <jh@suse.cz>
17229 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17230 (symbol_alias_set_destroy, symbol_alias_set_contains,
17231 propagate_aliases_backward): Declare.
17232 * lto-streamer-out.c (struct sets): New sturcture.
17233 (trivally_defined_alias): New function.
17234 (output_alias_pair_p): Rewrite.
17235 (output_unreferenced_globals): Fix output of alias pairs.
17236 (produce_symtab): Likewise.
17237 * ipa.c (function_and_variable_visibility): Set weak alias destination
17239 * varasm.c (symbol_alias_set_t): Remove.
17240 (symbol_alias_set_destroy): Export.
17241 (propagate_aliases_forward, propagate_aliases_backward): New functions
17243 (compute_visible_aliases): ... this one; remove.
17244 (trivially_visible_alias): New
17245 (trivially_defined_alias): New.
17246 (remove_unreachable_alias_pairs): Rewrite.
17247 (finish_aliases_1): Reorganize code checking if alias is defined.
17248 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17251 2011-01-11 Richard Guenther <rguenther@suse.de>
17253 PR tree-optimization/46076
17254 * tree-ssa.c (useless_type_conversion_p): Conversions from
17255 unprototyped to empty argument list function types are useless.
17257 2011-01-11 Richard Guenther <rguenther@suse.de>
17259 PR middle-end/45235
17260 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17261 volatile MEMs as MEM_READONLY_P.
17263 2011-01-11 Richard Guenther <rguenther@suse.de>
17265 PR tree-optimization/47239
17266 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17268 2011-01-11 Jeff Law <law@redhat.com>
17270 PR tree-optimization/47086
17271 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17272 IVs from statements that might throw.
17274 2011-01-10 Jan Hubicka <jh@suse.cz>
17277 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17279 2011-01-10 Jan Hubicka <jh@suse.cz>
17282 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17283 when correcting profile.
17285 2011-01-10 Jan Hubicka <jh@suse.cz>
17288 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17289 DECL_FINI_PRIORITY.
17290 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17291 Restore DECL_FINI_PRIORITY.
17293 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17295 * doc/gimple.texi: Fix quoting of multi-word return values in
17296 @deftypefn statements. Ensure presence of return value. Wrap
17297 overlong @deftypefn lines.
17298 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17299 descriptions of removed functions.
17300 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17301 of multi-word return value in @deftypefn statement.
17303 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17305 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17306 (Conditional Expressions, Logical Operators)
17307 (Statement and operand traversals): Do not indent smallexample
17308 code. Fix duplicate function argument in example.
17310 2011-01-10 Jeff Law <law@redhat.com>
17312 PR tree-optimization/47141
17313 * ipa-split.c (split_function): Handle case where we are
17314 returning a value and the return block has a virtual operand phi.
17316 2011-01-10 Jan Hubicka <jh@suse.cz>
17318 PR tree-optimization/47234
17319 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17320 (pass_feedback_split_functions): Declare.
17321 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17323 * ipa-split.c (gate_split_functions): Update comments; disable
17324 split-functions for profile_arc_flag and branch_probabilities.
17325 (gate_feedback_split_functions): New function.
17326 (execute_feedback_split_functions): New function.
17327 (pass_feedback_split_functions): New global var.
17329 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17332 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17333 calling gimple_call_set_cannot_inline.
17335 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17337 * config/darwin-sections.def: Remove unused section.
17339 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17342 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17344 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17347 * c-parser.c (c_parser_declaration_or_fndef): Improved
17350 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17352 * config/i386/winnt.c (i386_pe_start_function): Make sure
17353 to switch back to function's section.
17355 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17359 * plugin.c: Move include of dlfcn.h from here...
17360 * system.h: ... to here.
17362 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17364 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17366 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17367 two extra empty pages in PDF output.
17369 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17372 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17373 for error recovery purposes behave as if it was not specified so
17374 that the default type is usd.
17376 2011-01-07 Jan Hubicka <jh@suse.cz>
17378 PR tree-optmization/46469
17379 * ipa.c (function_and_variable_visibility): Clear needed flags on
17380 nodes with external decls; handle weakrefs merging correctly.
17382 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17384 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17387 2011-01-07 Jan Hubicka <jh@suse.cz>
17389 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17390 and no longer claim that gold is required for linker plugin.
17391 * configure: Regenerate.
17392 * gcc.c (PLUGIN_COND): New macro.
17393 (LINK_COMMAND_SPEC): Use it.
17394 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17395 * config.in (HAVE_LTO_PLUGIN): New.
17396 * configure.ac (--with-lto-plugin): New parameter; autodetect
17399 2011-01-07 Jan Hubicka <jh@suse.cz>
17401 PR tree-optimization/46367
17402 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17403 when we can update original.
17404 (cgraph_mark_inline_edge): Sanity check.
17405 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17407 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17409 * config/spu/spu.h (ASM_COMMENT_START): Define.
17411 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17414 * gcc.c (%>S): New.
17415 (SWITCH_KEEP_FOR_GCC): Likewise.
17416 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17417 (do_spec_1): Handle "%>".
17419 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17421 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17424 * config/i386/i386.c (ix86_delegitimize_address): If
17425 simplify_gen_subreg fails, return orig_x.
17428 * value-prof.c (gimple_stringop_fixed_value): Handle
17429 lhs of the call properly.
17431 2011-01-07 Jan Hubicka <jh@suse.cz>
17434 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17436 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17438 * target.def (function_switched_text_sections): New hook.
17439 * doc/tm.texi: Regenerated.
17440 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17441 * final.c (default_function_switched_text_sections): New.
17442 (final_scan_insn): Call function_switched_text_sections when a
17443 mid-function section change occurs.
17444 * output.h (default_function_switched_text_sections): Declare.
17445 * config/darwin-protos.h (darwin_function_switched_text_sections):
17447 * config/darwin.c (darwin_function_switched_text_sections): New.
17448 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17450 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17452 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17453 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17454 the secondary code fragment when outputting for DWARF == 2.
17456 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17458 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17459 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17461 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17462 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17464 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17467 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17468 when it is not empty.
17470 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17473 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17474 (case ${target}): Add btver1.
17475 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17476 -march=native recognize btver1 processors.
17477 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17478 btver1 def_and_undef
17479 * config/i386/i386.c (struct processor_costs btver1_cost): New
17481 (m_BTVER1): New definition.
17482 (m_AMD_MULTIPLE): Includes m_BTVER1.
17483 (initial_ix86_tune_features): Add btver1 tune.
17484 (processor_target_table): Add btver1 entry.
17485 (static const char *const cpu_names): Add btver1 entry.
17486 (software_prefetching_beneficial_p): Add btver1.
17487 (ix86_option_override_internal): Add btver1 instruction sets.
17488 (ix86_issue_rate): Add btver1.
17489 (ix86_adjust_cost): Add btver1.
17490 * config/i386/i386.h (TARGET_BTVER1): New definition.
17491 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17492 (enum processor_type): Add PROCESSOR_BTVER1.
17493 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17495 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17498 * config/i386/i386.c (legitimize_tls_address)
17499 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17500 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17501 (tls_initial_exec_64_sun): New pattern.
17503 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17505 * doc/invoke.texi (Overall Options): Improve wording and markup
17506 of the description of -wrapper.
17508 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17510 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17511 rdynamic, threads): New Driver options.
17513 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17516 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17517 if coming from .tdata.
17518 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17520 2011-01-06 Jan Hubicka <jh@suse.cz>
17523 * collect2.c (main): Do not enable LTOmode when plugin is active.
17525 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17528 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17529 --version output if supported.
17530 * configure: Regenerate.
17532 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17534 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17537 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17540 * c-convert.c (convert): When converting a complex expression
17541 other than COMPLEX_EXPR to a different complex type, ensure
17542 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17543 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17544 when converting COMPLEX_TYPE.
17546 2011-01-06 Ira Rosen <irar@il.ibm.com>
17548 PR tree-optimization/47139
17549 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17550 only the last reduction value is used outside the loop. Update
17553 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17555 * config/rtems.opt: New.
17556 * config.gcc (*-*-rtems*): Use rtems.opt.
17558 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17560 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17561 processors do not support 3DNow instructions.
17563 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17565 * config/spu/spu.c (spu_option_override): Set parameter
17566 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17568 2011-01-05 Jan Hubicka <jh@suse.cz>
17570 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17571 at the command line.
17573 2011-01-05 Martin Jambor <mjambor@suse.cz>
17576 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17577 deltas on streamed outgoing edges.
17578 (output_node_opt_summary): Output info for outgoing edges only when
17579 the node is in new parameter set.
17580 (output_cgraph_opt_summary): New parameter set, passed to the two
17581 aforementioned functions. Update its forward declaration and its
17584 2011-01-05 Tom Tromey <tromey@redhat.com>
17586 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17587 operator to c_finish_omp_atomic.
17588 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17589 (build_unary_op): Update.
17590 (build_modify_expr): Update.
17591 (build_asm_expr): Update.
17593 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17595 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17596 newly inserted insns.
17597 (pad_bb): Likewise.
17598 (spu_emit_branch_hint): Likewise.
17599 (insert_hbrp_for_ilb_runout): Likewise.
17600 (spu_machine_dependent_reorg): Call df_finish_pass after
17601 schedule_insns returns.
17603 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17605 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17607 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17609 PR tree-optimization/47005
17610 * tree-sra.c (struct access): Add 'non_addressable' bit.
17611 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17612 (decide_one_param_reduction): Return 0 if the parameter is passed by
17613 reference and one of the accesses in the group is non_addressable.
17615 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17617 PR tree-optimization/47056
17618 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17619 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17620 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17622 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17624 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17625 initializer. Skip view conversions from aggregate types.
17627 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17630 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17632 2011-01-04 Philipp Thomas <pth@suse.de>
17634 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17637 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17639 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17640 on empty epilogue sequences.
17642 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17644 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17645 non-static): New Driver options.
17647 2011-01-04 Jie Zhang <jie@codesourcery.com>
17650 * gcc.c (default_compilers[]): Set combinable field to 0
17651 for all assembly languages.
17653 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17655 * config/mips/loongson3a.md: New file.
17656 * config/mips/mips.md: Include loongson3a.md.
17657 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17660 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17662 PR middle-end/47017
17663 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17664 instead of convert_memory_address_addr_space on the base expression.
17666 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17668 * config/spu/spu.c (spu_option_override): Update error text
17669 for bad -march= / -mtune= values.
17671 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17673 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17674 if branch-hint optimization will be performed.
17676 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17678 PR tree-optimization/47148
17679 * ipa-split.c (split_function): Convert arguments to
17680 DECL_ARG_TYPE if possible.
17682 PR tree-optimization/47155
17683 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17684 when computing uns.
17686 PR rtl-optimization/47157
17687 * combine.c (try_combine): If undobuf.other_insn becomes
17688 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17689 and set *new_direct_jump_p too.
17691 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17693 PR tree-optimization/47021
17694 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17696 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17698 * gcc.c (process_command): Update copyright notice dates.
17699 * gcov.c (print_version): Likewise.
17700 * gcov-dump.c (print_version): Likewise.
17701 * mips-tfile.c (main): Likewise.
17702 * mips-tdump.c (main): Likewise.
17704 2011-01-03 Martin Jambor <mjambor@suse.cz>
17706 PR tree-optimization/46801
17707 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17708 aggregate fields start at byte boundary instead of the bit-field flag.
17710 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17713 * gcc.c (main): Revert revision 168407.
17715 2011-01-03 Martin Jambor <mjambor@suse.cz>
17717 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17719 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17721 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17722 vector optab to expand vector/scalar shift, update gimple to vector.
17724 2011-01-03 Martin Jambor <mjambor@suse.cz>
17726 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17729 2011-01-03 Martin Jambor <mjambor@suse.cz>
17731 PR tree-optimization/46984
17732 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17734 (cgraph_create_indirect_edge): Fixed line length.
17735 (cgraph_indirect_call_info): Declare.
17736 (cgraph_make_edge_direct) Update declaration.
17737 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17738 (cgraph_create_indirect_edge): Use it.
17739 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17741 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17742 the new thunk_delta representation.
17743 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17745 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17746 (ipa_read_indirect_edge_info): Likewise.
17747 * lto-cgraph.c (output_edge_opt_summary): New function.
17748 (output_node_opt_summary): Call it on all outgoing edges.
17749 (input_edge_opt_summary): New function.
17750 (input_node_opt_summary): Call it on all outgoing edges.
17752 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17755 * gcc.c (main): Don't check have_o when settting combine_inputs.
17757 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17759 * regrename.c: Add general comment describing the pass.
17760 (struct du_head): Remove 'length' field.
17761 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17762 (regrename_optimize): Do not sort chains. Rework comments, add others.
17763 Force renaming to the preferred class (if any) in the first pass and do
17764 not consider registers that belong to it in the second pass.
17765 (create_new_chain): Do not set 'length' field.
17766 (scan_rtx_reg): Likewise.
17768 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17770 PR tree-optimization/47140
17771 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17772 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17773 to bit_value_binop.
17775 PR rtl-optimization/47028
17776 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17777 parm_birth_insn instead of at the beginning of first bb.
17779 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17781 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17782 Remove the word "see" before "@pxref".
17783 * doc/rtl.texi: Remove the word "see" before "@pxref".
17785 2011-01-01 Jan Hubicka <jh@suse.cz>
17787 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17790 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17793 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17796 Copyright (C) 2011 Free Software Foundation, Inc.
17798 Copying and distribution of this file, with or without modification,
17799 are permitted in any medium without royalty provided the copyright
17800 notice and this notice are preserved.