1 2011-06-13 Jan Hubicka <jh@suse.cz>
3 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4 (can_remove_node_now_p): ... here; handle same comdat groups.
5 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
6 (inline_call): Update use of can_remove_node_now_p.
8 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
11 condition to disallow non-identical memory locations.
12 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
13 preference to bit manipulation instructions.
15 2011-06-13 Jan Hubicka <jh@suse.cz>
17 * cgraph.c (cgraph_for_node_thunks_and_aliases,
18 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
19 (nonremovable_p): New function.
20 (cgraph_can_remove_if_no_direct_calls_p): New function.
21 (used_from_object_file_p): New functoin.
22 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for references
24 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
25 * ipa-inline.c (check_caller_edge): New function.
26 (want_inline_function_called_once_p): Use it; accept aliases called once, too.
27 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
29 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
32 * config/arm/neon.md (vec_pack_trunc): Set the lengths
33 correctly for the case with Quad vectors.
35 2011-06-13 Jakub Jelinek <jakub@redhat.com>
36 Ira Rosen <ira.rosen@linaro.org>
38 PR tree-optimization/49352
39 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
40 all, make sure loop_use_stmt after the loop is a def stmt of a used
41 SSA_NAME that is the only one defined inside of the loop. Don't
42 check for COND_EXPR and GIMPLE_BINARY_RHS.
43 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
44 check_reduction is true.
46 2011-06-11 Jan Hubicka <jh@suse.cz>
49 * ipa.c (cgraph_externally_visible_p): Check resolution info.
51 2011-06-11 Jan Hubicka <jh@suse.cz>
54 * ipa-inline-transform.c: Include tree-pass.h
55 (inline_transform): Set TODO_update_ssa_only_virtuals.
56 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
58 2011-06-11 Jan Hubicka <jh@suse.cz>
61 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
64 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
66 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
67 Take number of iterations to peel into account for equally frequent
70 2011-06-11 Jan Hubicka <jh@suse.cz>
72 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
75 2011-06-11 Jan Hubicka <jh@suse.cz>
77 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying args.
78 (ipa_update_after_lto_read): Likewise.
79 (ipa_write_node_info): Do not sream call_with_var_arguments.
80 (ipa_read_node_info): Likewise.
82 2011-06-11 Jan Hubicka <jh@suse.cz>
84 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
86 2011-06-11 Jan Hubicka <jh@suse.cz>
88 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
89 (lto_symtab_resolve_can_prevail_p): Likewise.
90 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
91 * cgraph.c (same_body_aliases_done): New global var.
92 (cgraph_same_body_alias_1): Rename to ...
93 (cgraph_create_function_alias): ... this one; reorg to new
95 (cgraph_same_body_alias): Use cgraph_create_function_alias;
96 record references when asked to.
97 (cgraph_add_thunk): Fix formating.
98 (cgraph_get_node): Kill same body alias code.
99 (cgraph_node_for_asm): Likewise.
100 (cgraph_remove_same_body_alias): Remove.
101 (cgraph_remove_node): Kill same body alias code.
102 (cgraph_mark_address_taken_node): Mark also the aliased function
103 as having address taken.
104 (dump_cgraph_node): Dump same body aliases.
105 (cgraph_for_node_thunks_and_aliases): Update for new alias
107 (cgraph_for_node_and_aliases): Likewise.
108 * cgraph.h (same_body): Kll pointer.
109 (same_body_alias): Update comment.
110 (same_body_aliases_done): Declare.
111 (cgraph_remove_same_body_alias): Remove declaration.
112 (cgraph_create_function_alias): Declare.
113 (cgraph_process_same_body_aliases): Declare.
114 (cgraph_function_with_gimple_body_p): Check for alias.
115 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
116 (cgraph_alias_aliased_node): New function.
117 (cgraph_function_node): Update for new aliases.
118 (cgraph_function_or_thunk_node): Likewise.
119 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
120 (inline_call): Remove dead aliases.
121 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler name
122 hack for same body aliases.
123 (clone_of_p): Look through aliases.
124 (verify_cgraph_node): Verify aliases.
125 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
126 (cgraph_process_same_body_aliases): New function.
127 (process_function_and_variable_attributes): Disable weakref warning on
129 (cgraph_analyze_functions): Handle aliases.
130 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
131 (assemble_thunks): Rename to ...
132 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
133 (cgraph_expand_function): Remove alias output code.
134 (cgraph_output_in_order): Skip aliases.
135 (cgraph_preserve_function_body_p): Aliases don't need preserving.
136 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
137 (ipa_record_reference): Do not assert on alias references.
138 (ipa_ref_has_aliases_p): New function.
139 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
140 (ipa_ref_has_aliases_p): Declare.
141 * lto-cgraph.c (lto_output_node): Handle aliases.
142 (input_node): Likewise.
143 * lto-streamer-out.c (lto_output): Skip aliases.
144 (produce_symtab): Kill same_body_alias code.
145 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
146 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
147 * ipa-inline.c (update_caller_keys): Walk aliases.
148 (inline_small_functions): Fix thinko in previous patch.
149 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
150 (function_and_variable_visibility): Do not walk same body aliases.
151 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
152 (ipa_pta_execute): Use it.
154 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
156 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
157 (*vec_dupv2df): Rename from vec_dupv2df.
158 (vec_dupv2df): New expander.
160 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
162 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
164 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
166 * config/i386/i386.md: Use default value in "isa" attribute.
167 * config/i386/sse.md: Ditto.
168 * config/i386/mmx.md: Ditto.
170 2011-06-10 Wei Guozhi <carrot@google.com>
173 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
174 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
175 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
177 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
179 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
180 (arm_legitimate_ldrd_p): New prototype.
181 (arm_output_ldrd): New prototype.
182 * config/arm/arm.c (arm_check_ldrd_operands): New function.
183 (arm_legitimate_ldrd_p): New function.
184 (arm_output_ldrd): New function.
186 2011-06-10 David Li <davidxl@google.com>
188 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
189 * passes.c (passr_eq): New function.
190 (create_pass_tab): New function.
191 (pass_traverse): New function.
192 (dump_one_pass): New function.
193 (dump_pass_list): New function.
194 (dump_passes): New function.
196 2011-06-10 Jan Hubicka <jh@suse.cz>
198 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
199 setting the nothrow flag.
200 * ipa-reference.c (propagate): Skip aliases.
201 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
202 (propagate_nothrow): Skip aliases; do not update cgraph.
203 (local_pure_const): Do not update cgraph.
204 * tree-profile.c (tree_profiling): Do fixup_cfg.
206 2011-06-10 Jan Hubicka <jh@suse.cz>
208 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
209 (cgraph_local_node_p): ... here; handle aliases.
210 (has_addr_references_p): Break out from ...;
211 (cgraph_remove_unreachable_nodes) ... here.
213 2011-06-10 Jan Hubicka <jh@suse.cz>
215 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
216 * common.opt (flag_inline_functions_called_once): Do not
219 2011-06-10 Jan Hubicka <jh@suse.cz>
221 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
222 (ipcp_initialize_node_lattices): Do not deal with aliases;
223 Do not try to propagate through thunks.
224 (ipcp_change_tops_to_bottom): Do not deal with aliases.
226 2011-06-10 Jan Hubicka <jh@suse.cz>
228 * ipa-prop.c (ipa_write_node_info): Stream jump functions
230 (ipa_read_node_info): Likewise.
232 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
235 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
236 (build_and_insert_call): Likewise.
237 (build_and_insert_ref): New.
238 (gimple_expand_builtin_pow): Minor cleanup.
239 (gimple_expand_builtin_cabs): New.
240 (execute_cse_sincos): Add case for BUILT_IN_CABS.
242 2011-06-10 Jan Hubicka <jh@suse.cz>
244 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
245 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
246 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
247 (ipcp_propagate_stage): Skip aliases when propagating.
248 (ipcp_need_redirect_p): Skip aliases.
249 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
250 collect_callers_of_node.
251 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
253 (ipa_compute_jump_functions): Look through aliases.
255 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
257 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
259 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
261 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
263 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
265 2011-06-10 Jan Hubicka <jh@suse.cz>
267 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
268 Update call of gimple_get_virt_method_for_binfo.
269 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
270 refuse_thunks parameter.
271 (gimple_fold_call): Update.
272 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
274 2011-06-10 Jan Hubicka <jh@suse.cz>
276 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
277 (not_all_callers_have_enough_arguments_p): ... this one; turn into
278 worker for cgraph_for_node_and_aliases.
279 (convert_callers_for_node): Break out from ...
280 (convert_callers): ... here.
281 (modify_function): Use collect_callers_of_node.
282 (ipa_early_sra): Use cgraph_for_node_and_aliases.
284 2011-06-10 Richard Guenther <rguenther@suse.de>
286 PR tree-optimization/49361
287 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
288 when not already in gimple form.
290 2011-06-10 Richard Guenther <rguenther@suse.de>
293 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
294 FOR_EACH_PHI_OR_STMT_USE.
296 2011-06-10 Jan Hubicka <jh@suse.cz>
298 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
299 (clone_inlined_nodes): ... here.
300 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
301 to real destination prior inlining.
302 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
303 can_early_inline_edge_p, want_early_inline_function_p,
304 want_early_inline_function_p, want_inline_small_function_p,
305 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
306 edge_badness, update_all_callee_keys, lookup_recursive_calls,
307 add_new_edges_to_heap, inline_small_functions, flatten_function,
308 inline_always_inline_functions, early_inline_small_functions): Use
309 cgraph_function_or_thunk_node.
310 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
311 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
312 (do_estimate_edge_growth_1): Break out from ...
313 (do_estimate_growth) ... here; walk aliases.
314 (inline_generate_summary): Skip aliases.
316 2011-06-10 Richard Guenther <rguenther@suse.de>
318 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
319 forward when combining, visit inserted stmts when a stmt was changed.
321 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
323 * tree.h (error_operand_p): Add.
324 * dbxout.c (dbxout_type_fields): Use the latter.
325 * c-decl.c (add_stmt): Likewise.
326 * gimplify.c (omp_add_variable, omp_notice_variable,
327 gimplify_scan_omp_clauses): Likewise.
329 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
331 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
332 when a value is actually passed in regs.
334 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
335 Laurent Rougé <laurent.rouge@menta.fr>
337 * doc/invoke.texi (SPARC options): Add -mflat.
338 * config/sparc/sparc.opt: Likewise.
339 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
340 (sparc_flat_expand_prologue): Declare.
341 (sparc_flat_expand_epilogue): Likewise.
342 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
343 (CPP_ENDIAN_SPEC): Replace with...
344 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
345 (CPP_SPEC): Adjust to above change.
346 (EXTRA_SPECS): Likewise.
347 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
348 (INCOMING_REGNO): Likewise.
349 (OUTGOING_REGNO): Likewise.
350 (LOCAL_REGNO): Likewise.
351 (SETUP_FRAME_ADDRESSES): Likewise.
352 (FIXED_REGISTERS): Set 0 for %fp.
353 (CALL_USED_REGISTERS): Likewise.
354 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
355 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
356 (RETURN_ADDR_REGNUM): Define.
357 (RETURN_ADDR_RTX): Use it.
358 (INCOMING_RETURN_ADDR_REGNUM): Define.
359 (INCOMING_RETURN_ADDR_RTX): Use it.
360 (DWARF_FRAME_RETURN_COLUMN): Likewise.
361 (EH_RETURN_REGNUM): Define.
362 (EH_RETURN_STACKADJ_RTX): Use it.
363 (EH_RETURN_HANDLER_RTX): Delete.
364 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
365 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
367 (struct machine_function): Add frame_size, apparent_frame_size,
368 frame_base_reg, frame_base_offset, n_global_fp_regs and
369 save_local_in_regs_p fields.
370 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
371 sparc_frame_base_offset, sparc_n_global_fp_regs,
372 sparc_save_local_in_regs_p): New macros.
373 (sparc_option_override): Error out if -fcall-saved-REG is specified
375 (eligible_for_restore_insn): Fix formatting.
376 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
377 (eligible_for_sibcall_delay): Likewise.
378 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
379 (sparc_legitimate_address_p): Adjust to above change.
380 (save_global_or_fp_reg_p): New predicate.
381 (return_addr_reg_needed_p): Likewise.
382 (save_local_or_in_reg_p): Likewise.
383 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
384 (SORR_SAVE, SORR_RESTORE): Delete.
385 (sorr_pred_t): New typedef.
386 (sorr_act_t): New enum.
387 (save_or_restore_regs): Rename to...
388 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
389 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
390 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
391 mechanism. Add CFI information for double-word saves in 32-bit mode.
392 (emit_adjust_base_to_offset): New function extracted from...
393 (emit_save_or_restore_regs): ...this. Rename the rest to...
394 (emit_save_or_restore_regs_global_fp_regs): ...this.
395 (emit_save_or_restore_regs_local_in_regs): New function.
396 (gen_create_flat_frame_[123]): New functions.
397 (sparc_expand_prologue): Use SIZE local variable. Adjust.
398 (sparc_flat_expand_prologue): New function.
399 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
400 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
401 (sparc_flat_expand_epilogue): New function.
402 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
403 (output_return): Likewise.
404 (output_sibcall): Likewise.
405 (sparc_output_mi_thunk): Likewise.
406 (sparc_frame_pointer_required): Likewise.
407 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
408 function optimization.
409 * config/sparc/sparc.md (flat): New attribute.
410 (prologue): Add TARGET_FLAT handling.
411 (save_register_window): Disable if TARGET_FLAT.
412 (create_flat_frame_[123]): New patterns.
413 (epilogue): Add TARGET_FLAT handling.
414 (sibcall_epilogue): Likewise.
415 (eh_return): New expander.
416 (eh_return_internal): New insn and splitter.
417 (return_internal): Add TARGET_FLAT handling.
418 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
419 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
420 (nonlocal_goto): Add TARGET_FLAT handling.
421 * config/sparc/t-elf: Add -mflat multilib.
422 * config/sparc/t-leon: Likewise.
424 2011-06-10 Jan Hubicka <jh@suse.cz>
426 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
427 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
428 (self_recursive_p): Use cgraph_function_node.
429 (propagate_pure_const): Likewise.
430 (propagate_nothrow): Likewise.
431 * ipa-reference.c (ipa_reference_get_not_read_global): Use
432 cgraph_function_node.
433 (propagate_bits): Likewise.
434 (propagate): Likewise.
436 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
437 Richard Earnshaw <rearnsha@arm.com>
439 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
440 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
441 (*thumb2_movdi_vfp): Delete.
442 (*arm_movdi_vfp_cortexa8): Delete.
443 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
444 (*movdi_vfp_cortexa8): Likewise.
446 2011-06-10 Richard Guenther <rguenther@suse.de>
448 * stor-layout.c (initialize_sizetypes): Give names to all
451 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
453 PR tree-optimization/49318
454 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
455 irrelevant pattern statements.
457 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
459 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
462 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
465 2011-06-09 Jan Hubicka <jh@suse.cz>
467 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
468 do not recompute reachable flag.
469 (cgraph_finalize_function, cgraph_analyze_functions): Set
470 redefined_extern_inline here.
472 2011-06-09 Jan Hubicka <jh@suse.cz>
474 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
475 (cgraph_only_called_directly_p): ... this one; bring offline.
476 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
477 varpool_used_from_object_file_p): Drop names from the declaratoin.
478 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
479 collect_callers_of_node): New.
480 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
481 (cgraph_edge_recursive_p): Use cgraph_function_node.
482 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
483 (cgraph_node_cannot_be_local_p_1): Break out from ...
484 (cgraph_node_can_be_local_p): ... here; walk aliases.
485 (cgraph_for_node_thunks_and_aliases): New function.
486 (cgraph_for_node_and_aliases): New function.
487 (cgraph_make_node_local_1): Break out from ...
488 (cgraph_make_node_local) ... here; use
489 cgraph_for_node_thunks_and_aliases.
490 (cgraph_set_nothrow_flag_1): Break out from ...
491 (cgraph_set_nothrow_flag) ... here;
492 use cgraph_for_node_thunks_and_aliases.
493 (cgraph_set_const_flag_1): Break out from ...
494 (cgraph_set_const_flag) ... here;
495 use cgraph_for_node_thunks_and_aliases.
496 (cgraph_set_pure_flag_1): Break out from ...
497 (cgraph_set_pure_flag) ... here;
498 use cgraph_for_node_thunks_and_aliases.
499 (cgraph_propagate_frequency_1): Break out from ...
500 (cgraph_propagate_frequency) ... here; use
501 cgraph_for_node_thunks_and_aliases.
502 (cgraph_used_from_object_file_p): Do not care about aliases.
503 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
505 (collect_callers_of_node_1, collect_callers_of_node): New functions.
507 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
509 PR rtl-optimization/49154
510 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
511 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
512 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
513 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
514 * config/cris/cris.h (cris_register_move_cost): Remove
515 !TARGET_V32 code. Tweak comments.
517 2011-06-09 Jan Hubicka <jh@suse.cz>
519 * cgraphbuild.c (record_eh_tables): Mark personality function as having
522 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
524 PR rtl-optimization/49154
525 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
526 is a matching slot in the hashtable, assign it to classes_ptr.
528 PR rtl-optimization/49154
529 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
531 * doc/tm.texi: Regenerate.
533 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
536 * config/sh/sh.md (UNSPEC_CHKADD): New.
537 (chk_guard_add): New define_insn_and_split.
538 (symGOT_load): Use chk_guard_add instead of blockage.
540 2011-06-09 Kai Tietz <ktietz@redhat.com>
542 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
544 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
546 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
548 2011-06-09 Wei Guozhi <carrot@google.com>
551 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
552 (peephole2 for conditional move): Generate 16 bit instructions.
554 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
556 * config/i386/i386.md (*movdi_internal_rex64): Merge
557 alternatives 6 and 8.
559 2011-06-09 David Li <davidxl@google.com>
561 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
562 * passes.c (passr_eq): New function.
563 (create_pass_tab): New function.
564 (pass_traverse): New function.
565 (dump_one_pass): New function.
566 (dump_pass_list): New function.
567 (dump_passes): New function.
569 2011-06-09 David Li <davidxl@google.com>
571 * tree-complex.c (tree_lower_complex): Gate cleanup.
572 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
573 (execute_optimize_stdarg): Ditto.
574 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
575 (execute_cleanup_eh_1): Ditto.
576 (execute_cleanup_eh): Ditto.
577 * gcse.c (gate_rtl_pre): Ditto.
578 (execute_rtl_pre): Ditto.
579 * except.c (finish_eh_generation): Ditto.
580 (convert_to_eh_region_ranges): Ditto.
581 * cprop.c (one_cprop_pass): Ditto.
583 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
586 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
589 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
591 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
592 (HAVE_ENABLE_EXECUTE_STACK): Define.
593 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
594 (HAVE_ENABLE_EXECUTE_STACK): Define.
595 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
596 (HAVE_ENABLE_EXECUTE_STACK): Define.
597 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
598 (ENABLE_EXECUTE_STACK): Remove.
599 (HAVE_ENABLE_EXECUTE_STACK): Define.
600 [IN_LIBGCC2]: Don't include <windows.h>.
601 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
602 (HAVE_ENABLE_EXECUTE_STACK): Define.
603 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
604 (HAVE_ENABLE_EXECUTE_STACK): Define.
605 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
606 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
607 (HAVE_ENABLE_EXECUTE_STACK): Define.
608 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
609 (HAVE_ENABLE_EXECUTE_STACK): Define.
610 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
611 (HAVE_ENABLE_EXECUTE_STACK): Define.
612 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
613 (HAVE_ENABLE_EXECUTE_STACK): Define.
614 * config/alpha/alpha.c (alpha_trampoline_init): Test
615 HAVE_ENABLE_EXECUTE_STACK.
616 * config/i386/i386.c (ix86_trampoline_init): Likewise.
617 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
618 (sparc64_initialize_trampoline): Likewise.
619 * libgcc2.c [L_enable_execute_stack]: Remove.
620 * system.h (ENABLE_EXECUTE_STACK): Poison.
621 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
622 * doc/tm.texi: Regenerate.
623 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
625 2011-06-09 Jakub Jelinek <jakub@redhat.com>
628 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
629 variable. After resetting and rescanning insn continue with previous
632 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
634 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
635 (gcc_cv_ld_hidden): Likewise.
636 * configure: Regenerate.
637 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
638 (ix86_stack_protect_fail): Mark unused.
639 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
640 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
641 [TARGET_MACHO]: Don't define.
642 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
643 (TARGET_STACK_PROTECT_FAIL): Likewise.
644 (rs6000_stack_protect_fail): Mark unused.
645 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
646 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
648 2011-06-08 Andi Kleen <ak@linux.intel.com>
650 * varasm.c (get_section): Print location of other conflict
651 for section conflicts.
653 2011-06-08 Andi Kleen <ak@linux.intel.com>
655 * config/i386/driver-i386.c (host_detect_local_cpu):
656 Add model 0x2d Intel CPU.
658 2011-06-08 Andi Kleen <ak@linux.intel.com>
660 * reginfo.c (global_regs_decl): Add.
661 (globalize_reg): Add decl parameter. Compute location. Pass location
662 to warnings and add inform. Store decl in global_regs_decl.
663 * rtl.h (globalize_reg): Update prototype.
664 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
666 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
668 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
670 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
673 * config/sh/predicates.md (general_movsrc_operand): Check
674 mode for memory with indexed address for QI and HImode.
675 (general_movdst_operand): Likewise.
677 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
679 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
681 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
683 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
684 (num_ssa_operands): Likewise.
685 (op_iter_init_phiuse): Forward-declare.
686 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
688 2011-06-08 Nick Clifton <nickc@redhat.com>
690 * doc/invoke.texi (ARM Options): Update description of
693 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
695 * config/i386/driver-i386.c (host_detect_local_cpu): Support
696 unknown Intel family 0x6 CPUs.
698 2011-06-08 Martin Jambor <mjambor@suse.cz>
700 * tree-sra.c (mark_rw_status): Removed.
701 (analyze_access_subtree): New parameter parent instead of
702 mark_read and mark_write, propagate from that.
704 2011-06-08 Julian Brown <julian@codesourcery.com>
706 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
707 for double-precision helper functions in hard-float mode if only
708 single-precision arithmetic is supported in hardware.
710 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
712 PR rtl-optimization/49303
713 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
714 code_motion_path_driver returned 0 or 1.
715 (sel_region_finish): Clear h_d_i_d.
717 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
719 * config/sh/sh.c (prepare_move_operands): Set pic register
720 appropriately for global and local dynamic tls models even
721 if flag_pic is unset.
723 2011-06-07 Jason Merrill <jason@redhat.com>
725 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
727 2011-06-07 Xinliang David Li <davidxl@google.com>
728 * passes.c (enable_disable_pass): Handle assembler name.
729 (is_pass_explicitly_enabled_or_disabled): Ditto.
731 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
733 PR tree-optimization/48497
734 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
736 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
738 PR tree-optimization/46728
739 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
740 to use gimple_val_nonnegative_real_p.
741 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
742 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
744 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
746 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
748 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
750 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
753 2011-06-07 Richard Guenther <rguenther@suse.de>
755 * stor-layout.c (initialize_sizetypes): Initialize all
756 sizetypes based on target definitions.
757 (set_sizetype): Remove.
758 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
759 * tree.h (set_sizetype): Remove.
761 2011-06-07 Nick Clifton <nickc@redhat.com>
763 * config.gcc: Unify V850 architecture options and add support for
764 newer V850 architectures.
765 * config/v850/t-v850e: Delete.
767 2011-06-07 Richard Guenther <rguenther@suse.de>
769 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
770 Call set_sizetype from here.
772 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
774 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
775 (*maddhisi4tb, *maddhisi4tt): New define_insns.
777 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
778 Andrew Stubbs <ams@codesourcery.com>
780 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
782 * doc/md.texi (Canonicalization of Instructions): Document widening
783 multiply canonicalization.
785 2011-06-07 Jakub Jelinek <jakub@redhat.com>
787 PR gcov-profile/49299
788 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
790 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
792 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
794 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
795 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
796 vect_recog_pow_pattern): Likewise.
797 (vect_pattern_recog_1): Remove declaration.
798 (widened_name_p): Remove declaration. Add new argument to specify
799 whether to check that both types are either signed or unsigned.
800 (vect_recog_widen_mult_pattern): Update documentation. Handle
801 unsigned patterns and multiplication by constants.
802 (vect_pattern_recog_1): Update vect_recog_func references. Use
803 statement information from the statement returned from pattern
805 (vect_pattern_recog): Update vect_recog_func reference.
806 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
807 multiplication by a constant use the type of the other operand.
809 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
811 PR rtl-optimization/49145
812 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
814 2011-06-06 Jakub Jelinek <jakub@redhat.com>
817 * dwarf2out.c (native_encode_initializer): Decrement count in each
821 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
825 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
826 if stmt folded into nothing.
827 * tree-inline.c (fold_marked_statements): If a builtin at the end of
828 a bb folded into nothing, just update cgraph edges and move to next bb.
829 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
830 to be NULL. Don't compute count and frequency if new_call is NULL.
832 2011-06-04 Diego Novillo <dnovillo@google.com>
834 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
835 (cgraph.o): Likewise.
836 (cgraphunit.o): Likewise.
837 * cgraphunit.c: Include lto-streamer.h
838 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
840 * lto-streamer-in.c (unpack_value_fields): Call
841 streamer_hooks.unpack_value_fields if set.
842 (lto_materialize_tree): For unhandled nodes, first try to
843 call lto_streamer_hooks.alloc_tree, if it exists.
844 (lto_input_ts_decl_common_tree_pointers): Move reading of
845 DECL_INITIAL to lto_streamer_read_tree.
846 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
847 (lto_streamer_read_tree): New.
848 (lto_reader_init): Rename from lto_init_reader.
849 Move initialization code to lto/lto.c.
850 * lto-streamer-out.c (pack_value_fields): Call
851 streamer_hooks.pack_value_fields if set.
852 (lto_output_tree_ref): For tree nodes that are not normally indexable,
853 call streamer_hooks.indexable_with_decls_p before giving up.
854 (lto_output_ts_decl_common_tree_pointers): Move handling
855 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
856 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
857 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
858 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
859 (lto_streamer_write_tree): New.
860 (lto_output): Call lto_streamer_init directly.
861 (lto_writer_init): Remove.
862 * lto-streamer.c (streamer_hooks): New.
863 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
864 instead of lto_preload_common_nodes.
865 (lto_is_streamable): Move from lto-streamer.h
866 (lto_streamer_hooks_init): New.
867 (streamer_hooks): New.
868 (streamer_hooks_init): New.
869 * lto-streamer.h (struct output_block): Forward declare.
870 (struct lto_input_block): Likewise.
871 (struct data_in): Likewise.
872 (struct bitpack_d): Likewise.
873 (struct streamer_hooks): Declare.
874 (streamer_hooks): Declare.
875 (lto_streamer_hooks_init): Declare.
876 (lto_streamer_write_tree): Declare.
877 (lto_streamer_read_tree): Declare.
878 (streamer_hooks_init): Declare.
879 (lto_is_streamable): Move to lto-streamer.c
881 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
883 * longlong.h (smul_ppmm): The resulting register pair contains the
884 higher order word first.
886 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
888 PR tree-optimization/46728
889 * builtins.c (powi_table): Remove.
890 (powi_lookup_cost): Remove.
892 (expand_powi_1): Remove.
893 (expand_powi): Remove.
894 (expand_builtin_pow_root): Remove.
895 (expand_builtin_pow): Remove.
896 (expand_builtin_powi): Eliminate handling of constant exponent.
897 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
899 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
901 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
903 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
905 * dce.c (reset_unmarked_insns_debug_uses): New.
906 (delete_unmarked_insns): Skip debug insns.
907 (prescan_insns_for_dce): Likewise.
908 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
909 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
910 active reg can be found.
911 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
912 (convert_regs_1): Use it.
914 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
916 * tree-pretty-print.c (dump_function_header): Add flags.
917 Don't dump decl_uid with nouid.
918 * tree-pretty-print.h (dump_function_header): Adjust.
919 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
920 * passes.c (pass_init_dump_file): Pass dump_flags on.
921 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
923 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
926 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
928 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
930 PR tree-optimization/49243
931 * calls.c (setjmp_call_p): Also check if fndecl has the
932 returns_twice attribute.
934 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
936 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
939 2011-06-06 Richard Henderson <rth@redhat.com>
940 Georg-Johann Lay <avr@gjlay.de>
943 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
945 * config/avr/avr.md ("insv"): New insn expander.
946 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
947 "*insv.not.io", "*insv.reg"): New insns.
949 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
952 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
953 to nonimmediate_operand from memory_operand for the operand that is to
954 be forced to memory by the expander. Lose the constraints.
956 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
958 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
959 EH return when delayed branches are disabled.
961 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
963 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
964 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
966 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
967 Simplify MODE_V1DF and MODE_V2SF handling.
968 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
969 Simplify MODE_SF handling.
971 2011-06-04 Jan Hubicka <jh@suse.cz>
973 PR tree-optimization/48893
974 PR tree-optimization/49091
975 PR tree-optimization/49179
976 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
979 2011-06-04 Jan Hubicka <jh@suse.cz>
982 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
985 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
987 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
989 2011-06-04 Jakub Jelinek <jakub@redhat.com>
992 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
993 to be strictly smaller than 1 << shiftcount.
995 2011-06-04 Jan Hubicka <jh@suse.cz>
997 PR tree-optimize/48929
998 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1001 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1004 * calls.c (emit_call_1): Prefer the __builtin declaration of
1007 2011-06-03 Diego Novillo <dnovillo@google.com>
1009 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1010 (lto_input_tree_pointers): Likewise.
1011 * lto-streamer-out.c (pack_value_fields): Likewise.
1012 (lto_output_tree_pointers): Likewise.
1013 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1014 and OPTIMIZATION_NODE.
1016 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1018 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1019 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1020 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1021 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1022 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1023 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1024 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1025 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1026 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1027 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1028 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1029 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1030 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1031 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1032 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1033 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1034 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1035 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1036 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1037 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1038 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1039 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1040 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1041 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1042 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1043 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1044 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1045 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1046 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1047 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1048 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1049 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1050 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1051 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1052 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1053 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1054 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1055 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1056 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1057 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1058 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1059 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1060 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1061 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1062 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1063 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1064 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1065 * system.h (MD_UNWIND_SUPPORT): Poison.
1066 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1067 * doc/tm.texi: Regenerate.
1068 * unwind-dw2.c: Include md-unwind-support.h instead of
1070 * config/ia64/unwind-ia64.c: Likewise.
1071 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1073 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1075 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1077 2011-06-03 Richard Henderson <rth@redhat.com>
1078 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1080 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1081 (sigill_hdlr): Correct insn, insn size.
1082 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1084 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1086 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1088 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1089 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1090 * config/mips/t-iris: Remove.
1091 * config/mips/t-irix6: New file.
1092 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1094 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1096 * Makefile.in (LIB2ADDEHDEP): Remove.
1097 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1098 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1099 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1100 * config/t-darwin (LIB2ADDEHDEP): Remove.
1101 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1102 * config/t-linux (LIB2ADDEHDEP): Remove.
1104 2011-06-03 Diego Novillo <dnovillo@google.com>
1106 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1107 (lto_register_var_decl_in_symtab): Likewise.
1108 (lto_register_function_decl_in_symtab): Likewise.
1109 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1110 logic to uniquify_nodes.
1112 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1114 * config/alpha/t-osf5: Remove.
1115 * config/alpha/t-osf-pthread: Remove.
1116 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1117 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1119 2011-06-03 Julian Brown <julian@codesourcery.com>
1121 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1122 (strongarm1110): Use strongarm tuning.
1123 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1124 * config/arm/arm.c (arm_strongarm_tune): New.
1125 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1126 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1127 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1128 setting, using previous defaults or 1 for Cortex-A5.
1129 (arm_option_override): Set max_insns_skipped from current tuning.
1131 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1133 * doc/install.texi (Options specification): Document --with-specs.
1135 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1137 * config/arm/neon.md (orndi3_neon): Actually split it.
1139 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1141 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1142 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1144 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1147 * target.def (delay_sched2, delay_vartrack): New.
1148 * doc/tm.texi.in: Update.
1149 * doc/tm.texi: Rebuild.
1150 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1151 * var-tracking.c (gate_handle_var_tracking): Likewise.
1152 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1153 (bfin_flag_var_tracking): Drop.
1154 (output_file_start): Don't save and override flag_var_tracking.
1155 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1156 (bfin_reorg): Test original variables.
1157 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1158 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1159 (ia64_flag_var_tracking): Drop.
1160 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1161 (ia64_file_start): Don't save and override flag_var_tracking.
1162 (ia64_override_options_after_change): Ditto
1163 flag_schedule_insns_after_reload.
1164 (ia64_reorg): Test original variables.
1165 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1166 (picochip_flag_var_tracking): Drop.
1167 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1168 (picochip_option_override): Don't save and override
1169 flag_schedule_insns_after_reload.
1170 (picochip_asm_file_start): Ditto flag_var_tracking.
1171 (picochip_reorg): Test original variables.
1172 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1173 (TARGET_DELAY_VARTRACK): Define.
1174 (spu_var_tracking): New.
1175 (spu_machine_dependent_reorg): Call it.
1176 (asm_file_start): Don't save and override flag_var_tracking.
1178 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1181 * config/sh/predicates.md (general_movsrc_operand): Return 0
1182 for memory and memory subreg of which address is an invalid
1183 indexed address for QI and HImode.
1184 (general_movdst_operand): Likewise.
1186 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1188 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1189 edges only, when there is a non-local label in the function.
1190 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1192 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1194 * config/i386/constraints.md (Y3): New register constraint.
1195 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1196 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1197 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1198 *sse2_interleave_lowv2df.
1200 2011-06-02 Julian Brown <julian@codesourcery.com>
1202 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1203 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1204 (arm_cortex_a5_tune): New.
1206 2011-06-02 Julian Brown <julian@codesourcery.com>
1208 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1209 * config/arm/arm.c (arm_default_branch_cost): New.
1210 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1211 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1212 (arm_fa726_tune): Set branch_cost field using
1213 arm_default_branch_cost.
1214 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1215 current_tune structure.
1216 * dojump.c (tm_p.h): Include file.
1218 2011-06-02 Julian Brown <julian@codesourcery.com>
1220 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1222 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1223 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1224 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1226 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1227 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1228 (arm_fa726te_tune): Add prefer_constant_pool setting.
1229 (arm_v6t2_tune, arm_cortex_tune): New.
1230 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1231 prefer_constant_pool setting.
1233 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1235 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1237 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1238 (*movdf_internal) <case 6,7,8>: Ditto.
1240 * config/i386/constraints.md (Y4): New register constraint.
1241 * config/i386/sse.md (vec_set<mode>_0): Merge with
1242 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1243 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1244 *vec_extractv2di_1_sse.
1245 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1246 and *vec_concatv2di_rex64_sse.
1248 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1251 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1252 of cgraph_local_info for null before attempting to use it.
1254 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1256 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1257 (current_function_dynamic_alloc_count): Delete.
1258 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1259 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1260 (expand_builtin_update_setjmp_buf): Remove dead code.
1261 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1262 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1264 * function.c (instantiate_virtual_regs): Likewise.
1265 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1266 for a block with a single abnormal incoming edge.
1267 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1268 (SETJMP_VIA_SAVE_AREA): Delete.
1269 * config/sparc/sparc-protos.h (load_got_register): Declare.
1270 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1271 (load_got_register): Make global.
1272 (sparc_frame_pointer_required): Add 'static'.
1273 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1274 (sparc_builtin_setjmp_frame_value): New function.
1275 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1276 (save_stack_nonlocal): New expander.
1277 (restore_stack_nonlocal): Likewise.
1278 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1279 (nonlocal_goto_internal): New insn.
1280 (goto_handler_and_restore): Delete.
1281 (builtin_setjmp_setup): Likewise.
1282 (do_builtin_setjmp_setup): Likewise.
1284 (builtin_setjmp_receiver): New expander.
1286 2011-06-01 David Li <davidxl@google.com>
1289 * tree-pretty-print.c (dump_function_header): Format cleanup.
1291 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1294 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1295 needed when original operands are used for msw_skip comparison.
1297 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1300 * var-tracking.c (add_uses, add_stores): Don't call
1301 cselib_subst_to_values on ENTRY_VALUE.
1303 2011-06-01 Diego Novillo <dnovillo@google.com>
1305 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1306 output_record_start with LTO_null instead of output_zero.
1307 (lto_output_ts_binfo_tree_pointers): Likewise.
1308 (lto_output_tree): Likewise.
1309 (output_eh_try_list): Likewise.
1310 (output_eh_region): Likewise.
1311 (output_eh_lp): Likewise.
1312 (output_eh_regions): Likewise.
1313 (output_bb): Likewise.
1314 (output_function): Likewise.
1315 (output_unreferenced_globals): Likewise.
1316 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1317 instead of NUM_TREE_CODES.
1318 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1319 (lto_output_int_in_range): Change << to >> when shifting VAL.
1321 2011-06-01 Diego Novillo <dnovillo@google.com>
1323 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1324 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1326 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1329 * optabs.h (valid_multiword_target_p): Declare.
1330 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1331 doing multi-word operations.
1332 * optabs.c (expand_binop): Likewise.
1333 (expand_doubleword_bswap): Likewise.
1334 (expand_absneg_bit): Likewise.
1335 (expand_unop): Likewise.
1336 (expand_copysign_bit): Likewise.
1337 (multiword_target_p): New function.
1339 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1341 PR rtl-optimization/48830
1342 PR rtl-optimization/48808
1343 PR rtl-optimization/48792
1344 * reload.c (push_reload): Check contains_reg_of_mode.
1345 * reload1.c (strip_paradoxical_subreg): New function.
1346 (gen_reload_chain_without_interm_reg_p): Use it to handle
1347 paradoxical subregs.
1348 (emit_output_reload_insns, gen_reload): Likewise.
1350 2011-06-01 David Li <davidxl@google.com>
1352 * predict.c : Change pass name
1355 * tree-profile.c: Ditto.
1358 2011-06-01 David Li <davidxl@google.com>
1360 * tree-pretty-print.c (dump_function_header): New function.
1361 * final.c (rest_of_clean_state): Use header dumper.
1362 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1363 * passes.c (pass_init_dump_file): Use header dumper.
1365 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1367 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1368 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1369 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1371 (mem_loc_descriptor): Use them.
1373 * var-tracking.c (create_entry_value): New function.
1374 (vt_add_function_parameter): Use it.
1376 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1378 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1379 Include <signal.h>, <ucontext.h>.
1380 (sigill_caught): Define.
1381 (sigill_hdlr): New function.
1382 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1383 insns can be executed.
1384 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1385 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1387 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1389 * config/t-slibgcc-darwin: Move to ...
1390 * config/t-slibgcc-dummy: ... this. Clarify comments.
1391 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1392 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1393 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1394 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1395 Remove i386/t-crtstuff from tmake_file.
1396 (i[34567]86-*-solaris2*): Remove t-svr4,
1397 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1399 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1400 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1401 sparc/t-crtfm from tmake_file.
1402 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1403 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1405 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1406 * config/i386/t-nwld (SHLIB_LINK): Remove.
1407 * config/i386/t-rtems-i386: Rename to ...
1408 * config/i386/t-rtems: ... this.
1409 ($(T)crti.o, $(T)crtn.o): Remove.
1410 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1411 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1412 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1413 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1414 EXTRA_MULTILIB_PARTS): Remove.
1415 * config/sparc/t-sol2-64: Likewise.
1416 * config/sparc/t-sol2: Remove.
1417 * config/sparc/t-crtin: Remove.
1418 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1419 * config/i386/gmon-sol2.c: Remove.
1420 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1421 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1422 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1423 * config/i386/sol2-gc1.asm: Remove.
1424 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1425 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1426 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1427 * config/t-slibgcc-sld: Remove.
1429 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1431 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1432 base_type_for_mode with op_mode instead of mode.
1434 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1436 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1438 * config/arm/arm-tune.md: Regenerate.
1439 * config/arm/arm-tables.opt: Regenerate.
1440 * config/arm/arm.c (FL_DIV): Rename...
1441 (FL_THUMB_DIV): ... to this.
1442 (FL_ARM_DIV): Define.
1443 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1444 (arm_arch_hwdiv): Remove.
1445 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1446 (arm_issue_rate): Add cortexr5.
1447 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1448 __ARM_ARCH_EXT_IDIV__.
1449 (TARGET_IDIV): Define.
1450 (arm_arch_hwdiv): Remove.
1451 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1452 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1453 (divsi3, udivsi3): New patterns.
1454 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1455 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1457 2011-06-01 Martin Jambor <mjambor@suse.cz>
1459 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1460 * ipa-utils.c (searchc): Set scc_no.
1462 2011-06-01 Martin Jambor <mjambor@suse.cz>
1464 * ipa-utils.c (searchc_env): New field allow_overwritable.
1465 (searchc): do not ignore edges to overwritable nodes if indicated
1466 by env->allow_overwritable.
1467 (ipa_reduced_postorder): Set env.allow_overwritable.
1469 2011-06-01 Richard Guenther <rguenther@suse.de>
1471 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1473 * lto-streamer.c (lto_record_common_node): Take node pointer,
1474 do not register types.
1475 (lto_preload_common_nodes): Explicitly skip preloading nodes
1476 that differ between frontends.
1478 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1480 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1483 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1485 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1486 parameter value for dump. Dump cost on outermost call only.
1487 (rs6000_memory_move_cost): Dump cost on outermost call only.
1489 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1491 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1492 DW_OP_GNU_convert ops.
1494 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1495 cselib_preserve_constants.
1496 (cselib_lookup_1): If cselib_preserve_constants,
1497 a new VALUE is being created for REG and there is a VALUE for the
1498 same register in wider mode, add another loc with lowpart SUBREG of
1500 (cselib_subst_to_values): Handle ENTRY_VALUE.
1501 * var-tracking.c (replace_expr_with_values): Return NULL for
1503 * dwarf2out.c (convert_descriptor_to_signed): New function.
1504 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1505 instead of two shifts.
1506 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1507 the right mode if needed.
1508 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1509 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1510 convert_descriptor_to_signed.
1511 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1512 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1515 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1517 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1519 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1520 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1521 (SWI248x): New mode iterator, rename from X87MODEI.
1522 (X87MODEI): Remove mode iterator.
1523 (X87MODEI12): Ditto.
1524 (SSEMODEI24): Ditto.
1526 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1528 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1529 * doc/invoke.texi: Document max-vartrack-expr-depth.
1530 * var-tracking.c (EXPR_DEPTH): New.
1531 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1533 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1535 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1536 * config/i386/sse.md: Add n to negated FMA pattern names.
1538 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1540 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1542 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1544 * gengtype-state.c (read_state_params_structs): Initialize previous.
1546 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1548 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1549 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1551 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1553 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1554 registers. Penalize F*r->o alternative to prevent partial memory
1555 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1556 CONST_DOUBLE immediates when optimizing function for size. Do not move
1557 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1558 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1559 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1560 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1562 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1564 (fp_register_operand splitters): Use fp_register_operand
1565 constraint. Do not use FP_REG_P in insn condition.
1566 (any_fp_register_operand splitters): Use any_fp_register_operand
1567 constraint. Do not use ANY_FP_REG_P in insn condition.
1569 2011-05-31 Jan Hubicka <jh@suse.cz>
1571 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1572 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1573 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1574 (lto_output_edge): Use output_enum and var_len_unsigned.
1575 (lto_output_varpool_node): Likewise.
1576 (input_overwrite_node): Do not take resolution parameter;
1577 extract it from a bitpack.
1578 (input_node): Do not read resolution; use input_enum and
1580 (input_varpool_node): Likewise.
1581 (input_edge): Likewise.
1582 (input_cgraph_1): Likewise.
1584 2011-05-31 Richard Guenther <rguenther@suse.de>
1586 * gimple.c (gimple_register_canonical_type): Do not register
1587 any types via gimple_register_type.
1589 2011-05-31 Jan Hubicka <jh@suse.cz>
1591 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1594 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1596 PR rtl-optimization/49235
1597 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1598 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1600 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1602 PR tree-optimization/49093
1603 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1606 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1609 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1610 for concrete functions containing the code of cloned functions.
1612 2011-05-31 Richard Guenther <rguenther@suse.de>
1614 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1616 (forward_propagate_into_comparison_1): ... this.
1617 (forward_propagate_comparison): Rename to ...
1618 (forward_propagate_into_comparison): ... this. Split out
1619 real forward propagation code to ...
1620 (forward_propagate_comparison): ... this.
1621 (forward_propagate_into_gimple_cond): Remove looping.
1622 (forward_propagate_into_cond): Likewise.
1623 (simplify_not_neg_expr): Return whether we have done something.
1624 (simplify_gimple_switch): Likewise.
1625 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1626 (ssa_forward_propagate_and_combine): ... this. Re-structure
1627 to do a forward forward-propagation walk on BBs and a backward
1628 stmt combining walk on BBs. Consistently re-scan changed statements.
1629 (pass_forwprop): Adjust.
1631 2011-05-30 Ian Lance Taylor <iant@google.com>
1633 * godump.c (go_format_type): Correct length of name added to
1634 obstack for anonymous field.
1636 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1639 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1640 part of the second operand is 0.
1642 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1644 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1645 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1646 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1647 (*movdf_internal_rex64): Do not penalize F->r alternative.
1648 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1649 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1650 when optimizing function for size. Do not move CONST_DOUBLEs
1651 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1652 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1653 SUBREGs. Do not check for MEM_P operands in the insn condition,
1654 check for ANY_FP_REGNO_P instead.
1655 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1656 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1658 * config/i386/i386.c (ix86_option_override_internal): Do not
1659 set TARGET_INTEGER_DFMODE_MOVES here.
1661 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1664 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1666 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1668 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1669 DW_TAG_rvalue_reference_type even for
1670 -gdwarf-4 -fno-debug-types-section.
1672 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1674 PR tree-optimization/46728
1675 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1676 (build_and_insert_binop): New.
1677 (gimple_expand_builtin_pow): Reorder args for
1678 build_and_insert_call; use build_and_insert_binop; add more
1679 optimizations for fractional exponents.
1681 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1686 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1688 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1690 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1691 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1692 TS_BASE instead of TS_COMMON.
1693 * varasm.c (assemble_name): Remove assert.
1695 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1697 * config.gcc: Keep obselete list sorted.
1699 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1700 Eric Botcazou <ebotcazou@adacore.com>
1702 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1703 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1704 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1705 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1706 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1708 2011-05-30 Richard Guenther <rguenther@suse.de>
1710 * gimple.c (gimple_types_compatible_p_1): Compare record
1711 and union type members properly.
1713 2011-05-30 Richard Guenther <rguenther@suse.de>
1715 PR tree-optimization/49210
1716 * ipa-split.c (split_function): Care for the case where the call
1717 result is not trivially convertible to the result holding variable.
1719 2011-05-30 Richard Guenther <rguenther@suse.de>
1721 PR tree-optimization/49218
1722 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1725 2011-05-30 Richard Guenther <rguenther@suse.de>
1727 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1728 New function split out from ...
1729 (forward_propagate_into_gimple_cond): ... here. Adjust.
1730 (forward_propagate_into_cond): Likewise.
1731 (forward_propagate_comparison): Also propagate into
1732 comparisons on assignment RHS. Change return value to
1733 behave similar to forward_propagate_into_cond.
1734 (tree_ssa_forward_propagate_single_use_vars): Handle
1735 strict-overflow warnings properly for forward_propagate_comparison.
1737 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1739 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1741 * configure: Regenerate.
1743 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1745 PR tree-optimization/49199
1746 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1747 non-reduction operands are either defined in the loop or by induction.
1749 2011-05-29 Xinliang David Li <davidxl@google.com>
1751 * opts-global.c (handle_common_deferred_options): Handle new options.
1752 * passes.c (register_one_dump_file): Call register_pass_name.
1753 (execute_one_pass): Check explicit enable/disable flag.
1754 (passr_hash): New function.
1756 (register_pass_name): Ditto.
1757 (get_pass_by_name): Ditto.
1760 (enable_pass): Ditto.
1761 (disable_pass): Ditto.
1762 (is_pass_explicitly_enabled_or_disabled): Ditto.
1764 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1766 * config/i386/i386.md (*movoi_internal_avx): Use
1767 standard_sse_constant_opcode for alternative 0.
1768 (*movti_internal_sse): Ditto.
1769 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1771 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1773 (*movsi_internal): Ditto.
1774 (*movdi_internal): Ditto. Add ssecvt type moves.
1776 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1779 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1781 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1783 PR rtl-optimization/49095
1784 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1785 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1787 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1790 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1791 recurse_p argument. Only follow register copies if it is set,
1792 and prevent mips_find_pic_call_symbol from recursing.
1793 (mips_find_pic_call_symbol): Add a recurse_p argument.
1794 Pass it to mips_pic_call_symbol_from_set.
1795 (mips_annotate_pic_calls): Update accordingly.
1797 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1799 * emit-rtl.c (try_split): Use a loop to search for
1800 NOTE_INSN_CALL_ARG_LOCATIONs.
1802 2011-05-29 Richard Guenther <rguenther@suse.de>
1804 PR tree-optimization/49217
1805 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1807 2011-05-28 Jan Hubicka <jh@suse.cz>
1809 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1811 (string_slot_free): Remove
1812 (create_output_block): Initialize obstack.
1813 (destroy_output_block): Free obstack.
1814 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1815 the string unless it needs to be added into the hash.
1816 (lto_output_string_with_length): Add persistent attribute;
1817 handle NULL strings.
1818 (lto_output_string): Add PERSISTENT parameter.
1819 (output_string_cst, output_identifier): Simplify.
1820 (lto_output_location_bitpack): Update.
1821 (lto_output_builtin_tree): Update.
1822 * lto-streamer.h (struct output_block): Add obstack.
1823 (lto_output_string, lto_output_string_with_length): Remove
1824 declarations; functions are static now.
1826 2011-05-28 Jan Hubicka <jh@suse.cz>
1828 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1829 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1830 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1831 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1832 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1833 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1834 unpack_ts_decl_with_vis_value_fields,
1835 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1836 lto_get_builtin_tree): Use enum and variable length i/o.
1837 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1838 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1840 (bp_pack_enum, bp_unpack_enum): New macros.
1842 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1844 * genrecog.c: Remove redundant forward declarations.
1846 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1848 * config.gcc: Deprecate mips*-*-openbsd*.
1850 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1853 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1856 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1859 * gengtype.c (vec_prefix_type): New function.
1860 (note_def_vec): Use vec_prefix_type and change the length
1861 attribute to be based on the prefix.
1862 * vec.c: Include coretypes.h before vec.h.
1863 (struct vec_prefix): Remove.
1864 (vec_gc_p_reserve): Change the offsetof to sizeof.
1865 (vec_gc_p_reserve_exact): Likewise.
1866 (vec_heap_p_reserve): Likewise.
1867 (vec_heap_p_reserve_exact): Likewise.
1868 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1869 (vec_stack_p_reserve): Change the offsetof to sizeof.
1870 (vec_stack_p_reserve_exact): Likewise.
1871 * vec.h (struct vec_prefix): New struct definition.
1872 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1873 (VEC_T_GTY(T,B)): Likewise.
1874 (DEF_VEC_FUNC_P(T)): Use prefix field.
1875 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1876 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1878 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1880 PR tree-optimization/46728
1881 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1882 (powi_as_mults): Add gimple_set_location.
1883 (build_and_insert_call): New.
1884 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1885 0.5, 0.25, 0.75, 1./3., or 1./6.
1887 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1889 * doc/contrib.texi: Update copyright years.
1890 (Contributors): Add Zdenek Sojka.
1892 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1894 * c-decl.c (c_push_function_context): Copy the current statement
1896 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1897 (finish_struct): Call building_stmt_list_p instead of checking
1899 * c-parser.c (c_parser_postfix_expression): Likewise.
1900 * c-typeck.c (c_end_compound_stmt): Likewise.
1901 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1902 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1903 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1904 (free_stmt_list): Likewise.
1905 * tree.h (struct tree_statement_list): Include typed_tree instead
1907 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1908 as TS_TYPED instead of TS_COMMON.
1910 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1911 Uros Bizjak <ubizjak@gmail.com>
1913 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1914 (HAVE_AS_IX86_TLSGDPTL): Define.
1915 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1916 (HAVE_AS_IX86_TLSLDMPLT): Define.
1917 * configure: Regenerate.
1918 * config.in: Regenerate.
1919 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1920 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1921 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1922 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1923 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1925 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1927 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1929 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1931 (INSN_COND, INSN_REVERSE_COND): New macros.
1932 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1934 (sched_get_condition_with_rev): Cache the results, and look them up
1936 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1937 are clobbered by the current insn.
1938 * target.def (exposed_pipline): New sched data hook.
1939 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1940 * doc/tm.texi: Regenerate.
1942 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1944 PR tree-optimization/49170
1945 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1948 2011-05-27 Richard Guenther <rguenther@suse.de>
1951 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1954 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1956 * haifa-sched.c (sched_scan_info): Remove.
1957 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1959 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1961 (sched_scan): Remove.
1962 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1963 static. All callers changed.
1964 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1965 static. All callers changed.
1966 (sched_init_luids): Remove all arguments except the first. All
1967 callers changed. Don't use sched_scan.
1968 (haifa_init_h_i_d): Likewise.
1969 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1970 manually rather than using sched_init_luids. Likewise with
1971 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1972 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1973 rather than sched_init_luids with NULL args.
1974 * sel-sched-ir.c (new_insns): Remove variable.
1975 (sched_scan): New static function, previously in haifa-sched.c. Remove
1976 all arguments but the first two; all callers changed.
1977 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1978 rather than sched_init_luids.
1979 (sel_init_bbs): Remove second argument. All callers changed.
1980 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1981 with NULL arguments.
1982 (create_insn_rtx_from_pattern): Likewise.
1983 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1984 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1985 (sched_init_insn_luid, sched_extend_luids): Declare.
1986 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1989 2011-05-27 Richard Guenther <rguenther@suse.de>
1992 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1993 A CMP B ? (T) true : (T) false for non-integral types T again.
1995 2011-05-27 Jan Hubicka <jh@suse.cz>
1997 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1998 so 0 means NULL string.
1999 (lto_output_string_with_length): ... here.
2000 (lto_output_string, output_string_cst, output_identifier): Update
2001 handling of NULL strings.
2002 (lto_output_location_bitpack): New function.
2003 (lto_output_location): Use it.
2004 (lto_output_tree_ref): Use output_record_start.
2005 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2007 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2009 (input_string_internal): ... here;
2010 (input_string_cst, input_identifier, lto_input_string): Update handling
2012 (lto_input_location_bitpack): New function
2013 (lto_input_location): Use it.
2014 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2016 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2017 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2018 (bp_pack_value): Sanity check the value range.
2019 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2021 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2024 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2026 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2027 call_arg_location instructions down the floor.
2029 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2031 PR rtl-optimization/49154
2032 * ira.c (setup_pressure_classes): Process class without sublcasses
2033 as a candidate for pressure classes.
2035 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2037 PR rtl-optimization/48575
2038 * genrecog.c (position_type): New enum.
2039 (position): New structure.
2040 (decision): Use position structure instead of a string.
2041 (root_pos, peep2_insn_pos_list): New variables.
2042 (next_position, compare_positions): New functions.
2043 (new_decision): Use position structures instead of strings.
2044 (maybe_both_true): Likewise.
2045 (change_state): Likewise.
2046 (write_tree): Likewise.
2047 (make_insn_sequence): Likewise.
2049 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2051 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2052 TS_BASE instead of TS_COMMON.
2053 (find_decls_types_r): Check for TS_TYPED structure before looking at
2055 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2057 (BLOCK_CHAIN): Use new chain field.
2059 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2061 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2062 moves expensive on Power7 also.
2064 2011-05-26 Richard Guenther <rguenther@suse.de>
2066 * fold-const.c (fold_unary_loc): Remove bogus code.
2068 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2070 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2072 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2073 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2074 TS_BASE instead of TS_COMMON.
2075 * varasm.c (assemble_name): Remove assert.
2077 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2079 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2081 * libgcc-std.ver: Delete file.
2083 2011-05-26 Richard Guenther <rguenther@suse.de>
2085 PR tree-optimization/48702
2086 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2087 only when we know the base address is within bounds.
2088 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2089 assume the base address of TARGET_MEM_REFs is in bounds.
2091 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2094 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2095 declaration in TARGET_SOLARIS.
2097 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2099 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2100 The instruction is then expanded explicitly.
2101 (supported_compare): Callable instruction.
2102 (compare): Likewise.
2104 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2107 * gimplify.c (shortcut_cond_r): Don't special case
2108 COND_EXPRs if they have void type on one of their arms.
2110 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2112 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2113 to reduce duplication, and to achieve a slightly more logical order
2116 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2118 PR tree-optimization/49161
2119 * tree-vrp.c (struct case_info): New type.
2120 (compare_case_labels): Sort case_info structs instead of
2121 trees, and not primarily by CASE_LABEL uids but by
2122 label_for_block indexes.
2123 (find_switch_asserts): Put case labels into struct case_info
2124 array instead of TREE_VEC, adjust sorting, compare label_for_block
2125 values instead of CASE_LABELs.
2127 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2129 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2130 ("orndi3_neon"): Likewise.
2131 ("bic<mode>3_neon"): Likewise.
2133 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2135 PR tree-optimization/49038
2136 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2137 Ensure at least one epilogue iteration if required by data
2139 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2140 to mark loops that require peeling for gaps.
2141 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2142 (vect_get_known_peeling_cost): Take peeling for gaps into
2144 (vect_transform_loop): Generate epilogue if required by data
2146 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2147 loop as requiring an epilogue if there are gaps in the end of
2150 2011-05-25 Ian Lance Taylor <iant@google.com>
2152 * godump.c (go_format_type): Output the first field with a usable
2155 2011-05-25 Ian Lance Taylor <iant@google.com>
2157 * godump.c (go_format_type): Check for invalid type names, pointer
2158 target types, and struct field types.
2160 2011-05-25 Jason Merrill <jason@redhat.com>
2162 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2164 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2166 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2168 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2170 * config/i386/i386.md (*movqi_extv_1)): Put back
2171 "register_operand" check in "type" calculation.
2172 (*movqi_extzv_2): Likewise.
2174 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2176 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2178 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2181 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2182 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2183 __divxc3, __divtc3): Wrap definitions in #ifndef.
2185 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2188 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2189 "register_operand" check and replace q_regs_operand with
2190 QIreg_operand in "type" calculation.
2191 (*movqi_extv_1): Likewise.
2192 (*movqi_extzv_2_rex64): Likewise.
2193 (*movqi_extzv_2): Likewise.
2195 * config/i386/predicates.md (QIreg_operand): New.
2197 2011-05-25 Richard Guenther <rguenther@suse.de>
2199 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2200 type-based offset disambiguation, streamline MEM_REF and
2201 TARGET_MEM_REF handling.
2203 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2205 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2206 (bdesc_special_args): Add pause intrinsic.
2208 * config/i386/i386.md (UNSPEC_PAUSE): New.
2211 * config/i386/ia32intrin.h (__pause): Likewise.
2213 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2216 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2218 PR tree-optimization/46728
2219 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2220 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2222 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2224 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2225 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2226 instead of TS_COMMON.
2228 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2230 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2231 LIBGCC2_GNU_PREFIX is defined.
2233 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2234 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2235 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2236 __clz_tab): Define using __N.
2237 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2238 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2239 * target.def (libfunc_gnu_prefix): New hook.
2240 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2241 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2242 * doc/tm.texi: Regenerate.
2243 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2244 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2246 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2247 (init_optabs): Likewise for the bswap libfuncs.
2248 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2250 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2251 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2252 * libgcc-std.ver: Remove.
2253 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2254 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2256 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2257 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2258 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2259 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2260 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2261 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2262 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2263 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2264 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2265 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2267 2011-05-25 Jan Hubicka <jh@suse.cz>
2269 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2270 (lto_output_tree): Use output_record_start.
2271 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2272 (lto_get_pickled_tree): Use input_record_start.
2273 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2274 (lto_value_range_error): New function.
2275 * lto-streamer.h (lto_value_range_error): Declare.
2276 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2277 (lto_output_enum, lto_input_enum): New macros.
2279 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2281 * common.opt (flag_stack_usage_info): New variable.
2282 (-Wstack-usage): New option.
2283 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2284 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2285 <OPT_fstack_usage>: Likewise.
2286 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2287 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2288 of flag_stack_usage.
2289 (emit_library_call_value_1): Likewise.
2290 * explow.c (allocate_dynamic_stack_space): Likewise.
2291 * function.c (instantiate_virtual_regs ): Likewise.
2292 (prepare_function_start): Likewise.
2293 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2294 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2295 * config/arm/arm.c (arm_expand_prologue): Likewise.
2296 (thumb1_expand_prologue): Likewise.
2297 * config/avr/avr.c (expand_prologue): Likewise.
2298 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2299 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2300 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2301 * config/mips/mips.c (mips_expand_prologue): Likewise.
2302 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2303 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2304 * config/s390/s390.c (s390_emit_prologue): Likewise.
2305 * config/sh/sh.c (sh_expand_prologue): Likewise.
2306 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2307 * config/spu/spu.c (spu_expand_prologue): Likewise.
2309 2011-05-25 Richard Guenther <rguenther@suse.de>
2311 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2312 (gimple_canonical_types_compatible_p): Likewise.
2314 2011-05-25 Jan Hubicka <jh@suse.cz>
2317 * ipa.c (function_and_variable_visibility): Only add to same
2318 comdat group list if DECL_ONE_ONLY.
2320 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2322 PR rtl-optimization/49014
2323 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2325 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2328 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2330 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2332 PR rtl-optimization/48757
2333 * ira-build.c (loop_with_eh_edge_p): Rename to
2334 loop_with_complex_edge_p, check edges on complexity, make function
2336 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2339 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2341 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2342 force flag_ira_share_save_slots to 0.
2344 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2346 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2347 (vt_initialize): Set PROLOGUE_BB unconditionally.
2348 Add block comment about CFA_BASE_RTX machinery.
2349 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2350 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2352 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2355 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2356 parsing of syntax error in ObjC instance variable lists. In
2357 particular, avoid an infinite loop if there is a stray ']'.
2358 Updated error message.
2360 2011-05-24 Ian Lance Taylor <iant@google.com>
2362 * godump.c (go_define): Don't accept a string immediately after
2365 2011-05-24 Ian Lance Taylor <iant@google.com>
2367 * godump.c (struct godump_container): Add invalid_hash field.
2368 (go_format_type): Return false if type is found in invalid_hash.
2369 (go_output_typedef): Add invalid type to invalid_hash.
2370 (go_finish): Create and delete invalid_hash.
2372 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2374 PR tree-optimization/46728
2375 * tree-ssa-math-opts.c (powi_table): New.
2376 (powi_lookup_cost): New.
2378 (powi_as_mults_1): New.
2379 (powi_as_mults): New.
2380 (gimple_expand_builtin_powi): New.
2381 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2382 (gate_cse_sincos): Remove sincos/cexp restriction.
2384 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2387 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2389 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2390 * mips-tdump.c: Likewise.
2392 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2395 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2396 add -mno-XXX. Handle FMA.
2398 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2400 PR rtl-optimization/48633
2401 * ira-build.c (loop_with_eh_edge_p): New function.
2402 (mark_loops_for_removal): Use it.
2404 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2406 PR rtl-optimization/48971
2407 * ira.c (setup_pressure_classes): Don't check register move cost
2408 for classes with one registers. Don't add pressure class if there
2409 is a pressure class with the same available hard registers.
2410 Check contains_reg_of_mode. Fix a typo in collecting
2411 temp_hard_regset. Ignore hard registers not belonging to a class.
2413 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2416 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2418 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2419 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2421 PR gcov-profile/48845
2422 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2424 2011-05-24 Richard Guenther <rguenther@suse.de>
2426 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2427 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2428 (gimple_types_compatible_p_1): Adjust.
2429 (iterative_hash_canonical_type): Do not bother about complete vs.
2431 (gimple_canonical_types_compatible_p): Likewise.
2433 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2435 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2437 2011-05-24 Richard Guenther <rguenther@suse.de>
2440 * gimple.c (gimple_register_canonical_type): Revert
2442 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2443 does not for a tree for the case where it matters. Cache
2444 pointer-type alias-sets.
2446 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2448 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2449 (OBJS): Remove options.o, opts-common.o and prefix.o.
2450 (OBJS-libcommon-target): New.
2451 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2452 (BACKEND): Include libcommon-target.a.
2453 (MOSTLYCLEANFILES): Include libcommon-target.a.
2454 (libcommon-target.a): New.
2455 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2458 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2460 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2461 parts of output shared with the driver.
2462 * optc-gen.awk: Don't generate parts of output not shared with the
2464 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2465 * doc/options.texi (SourcerInclude): Mention options-save.c.
2466 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2467 (OBJS): Add options-save.o.
2468 (options-save.c, options-save.o): New.
2469 (options.o): Update dependencies.
2470 (gcc-options.o): Remove.
2471 (mostlyclean): Remove options-save.c.
2473 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2476 * dbxout.c: Include cgraph.h.
2477 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2478 and without value expr, return NULL if no varpool node exists for
2479 it or if it is not needed.
2480 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2483 * c-decl.c (start_decl): Convert expr to void_type_node.
2485 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2487 PR rtl-optimization/48826
2488 * emit-rtl.c (try_split): When splitting a call that is followed
2489 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2491 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2493 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2494 parameters passed in memory prefer using DECL_INCOMING_RTL over
2495 the pseudos it will be copied into.
2497 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2500 * config/i386/i386.c (ix86_option_override_internal): Save the
2501 initial options after checking vzeroupper.
2503 2011-05-23 David Li <davidxl@google.com>
2505 PR tree-optimization/48988
2506 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2507 Initialize has_valid_pred for each pred chain.
2509 2011-05-23 Richard Guenther <rguenther@suse.de>
2511 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2512 (iterative_hash_gimple_type): Always hash type names.
2514 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2516 * c-typeck.c (build_function_call_vec): Tweak call to
2517 check_function_arguments.
2519 2011-05-23 Richard Guenther <rguenther@suse.de>
2521 PR tree-optimization/49115
2522 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2523 is not necessarily carried out, do not claim it kills the ref.
2524 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2526 2011-05-23 Richard Guenther <rguenther@suse.de>
2529 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2530 what pointer types we accept for folding.
2532 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2534 * gthr-gnat.c: Remove.
2535 * gthr-gnat.h: Remove.
2536 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2537 * config/t-freebsd (LIB2ADDEH): Likewise.
2538 * config/t-linux (LIB2ADDEH): Likewise.
2539 * config/t-sol2 (LIB2ADDEH): Likewise.
2540 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2541 * configure.ac (target_thread_file): Remove gnat handling.
2542 * configure: Regenerate.
2543 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2545 2011-05-23 Tristan Gingold <gingold@adacore.com>
2546 Eric Botcazou <ebotcazou@adacore.com>
2548 * gcov.c (create_file_names): If no object directory is specified,
2549 keep the directory of the file.
2551 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2553 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2554 * configure: Regenerate.
2556 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2559 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2560 failed and the comparison has a single bit signed type, use
2561 constm1_rtx instead of const1_rtx for true value.
2562 (do_store_flag): If ops->type is single bit signed type, disable
2563 signel bit test optimization and pass -1 instead of 1 as last
2564 parameter to emit_store_flag_force.
2566 2011-05-23 Tom de Vries <tom@codesourcery.com>
2569 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2571 (infer_loop_bounds_from_undefined): Use new function.
2573 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2575 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2576 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2577 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2579 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2581 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2583 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2584 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2587 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2589 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2591 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2593 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2594 UNSPEC_MOVE_PIC pattern.
2596 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2598 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2599 (sparc-*-rtems*): Likewise.
2600 (sparc64-*-elf*): Likewise.
2601 (sparc64-*-rtems*): Likewise.
2602 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2603 * config/sparc/t-crtin: New file.
2604 * config/sparc/t-sol2 (crti.o): Delete rule.
2606 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2607 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2608 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2609 (ENDFILE_SPEC): Add crtn.o.
2611 2011-05-22 Tom de Vries <tom@codesourcery.com>
2614 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2615 CODE_CONTAINS_STRUCT (TS_COMMON).
2617 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2620 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2621 only after deciding which mode to use.
2623 2011-05-22 Tom de Vries <tom@codesourcery.com>
2626 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2627 for call to get_shiftadd_cost.
2629 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2632 * config/i386/cpuid.h (bit_MMXEXT): New define.
2634 2011-05-22 Nick Clifton <nickc@redhat.com>
2636 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2637 initialisation of non-existant args[2] element. Use args[] array
2638 not arg[] array to pass arguments to build_function_type_list.
2640 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2642 PR tree-optimization/49087
2643 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2645 2011-05-21 Jason Merrill <jason@redhat.com>
2648 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2649 static storage duration.
2651 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2653 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2656 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2658 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2659 false if there are call-saved registers here...
2660 (sparc_can_use_return_insn_p): ...but here instead.
2661 (save_or_restore_regs): Fix thinko.
2662 (sparc_expand_prologue): Use current_function_is_leaf.
2663 (sparc_frame_pointer_required): Likewise.
2665 2011-05-21 Nick Clifton <nickc@redhat.com>
2668 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2670 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2672 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2673 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2675 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2677 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2678 * optc-gen.awk: Move common code to opt-read.awk.
2679 * opth-gen.awk: Likewise.
2680 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2682 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2684 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2686 2011-05-20 Tom de Vries <tom@codesourcery.com>
2689 * tree-ssa-loop-ivopts.c: Include expmed.h.
2690 (get_shiftadd_cost): New function.
2691 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2693 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2696 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2697 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2699 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2701 * Makefile.in: Update comment referring to $(OBJS-common).
2703 2011-05-20 Ian Lance Taylor <iant@google.com>
2705 * godump.c (go_output_typedef): Put enum constants in the macro
2706 hash table to avoid duplicate Go const definitions.
2708 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2710 * Makefile.in (LIBDEPS): Add libcommon.a.
2712 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2713 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2714 pretty-print.o and version.o.
2715 (OBJS-libcommon): New.
2716 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2717 (BACKEND): Add libcommon.a.
2718 (MOSTLYCLEANFILES): Likewise.
2720 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2721 (cpp$(exeext)): Likewise.
2722 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2723 pretty-print.o and input.o.
2724 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2725 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2727 (mips-tfile): Don't explicitly use version.o.
2728 (mips-tdump): Likewise.
2729 (gcov.o): Depend on $(DIAGNOSTIC_H).
2730 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2731 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2732 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2733 * gcov-dump.c: Include intl.h and diagnostic.h.
2734 (main): Initialize diagnostics.
2735 * gcov.c: Include diagnostic.h.
2737 (main): Initialize diagnostics.
2738 * lto-wrapper.c: Include diagnostic.h.
2739 (main): Initialize diagnostics.
2741 2011-05-20 Michael Matz <matz@suse.de>
2743 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2745 2011-05-20 Michael Matz <matz@suse.de>
2746 Richard Guenther <rguenther@suse.de>
2748 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2749 use lto_streamer_cache_append directly instead of returning a VEC.
2750 (preload_common_node): Remove.
2751 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2753 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2755 2011-05-20 Richard Guenther <rguenther@suse.de>
2757 PR tree-optimization/49079
2758 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2759 MEM_REFs correctly for the trailing array access detection.
2760 Special case constants the same way as decls for overall size
2763 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2765 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2768 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2770 PR tree-optimization/49073
2771 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2772 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2773 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2775 2011-05-20 Richard Guenther <rguenther@suse.de>
2778 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2779 of pointer types the same way the middle-end does.
2781 2011-05-20 Richard Guenther <rguenther@suse.de>
2783 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2784 or pointer-to chains. Delay all fixup to uniquify_nodes.
2786 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2788 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2789 (fma4_fmaddsub): Likewise
2791 2011-05-19 Jan Hubicka <jh@suse.cz>
2793 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2794 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2795 (type_pair_cache): New static var.
2796 (lookup_type_pair): Use fixed sized custom hash; make inline.
2797 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2798 calls of lookup_type_pair.
2799 (print_gimple_types_stats): Remove cache stats.
2800 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2803 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2805 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2806 when TARGET_RDRND is active.
2807 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2808 Generate dummy SImode target register when target is NULL.
2810 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2812 * config/arm/arm-fpus.def: New.
2813 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2815 * config/arm/arm-tables.opt: Regenerate.
2816 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2817 (arm_option_override): Don't decode FPU name to string here.
2818 * config/arm/arm.opt (mfpu=): Use Enum.
2819 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2820 Update dependencies.
2822 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2824 * collect2.c: Include diagnostic.h.
2825 (fatal_perror, fatal, error, fancy_abort): Remove.
2826 (main): Set progname. Call xmalloc_set_program_name and
2827 diagnostic_initialize.
2828 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2829 scan_libraries, resolve_lib_name): Call fatal_error instead of
2830 fatal and fatal_perror.
2831 * collect2.h (error, fatal, fatal_perror): Don't declare.
2832 * tlink.c: Include diagnostic-core.h.
2833 (recompile_files): Call fatal_error instead of fatal_perror.
2834 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2835 pretty-print.o and input.o.
2836 (collect2.o, tlink.o): Update dependencies.
2838 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2840 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2842 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2845 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2846 COMDAT group syntax, both SPARC and x86 variants.
2847 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2848 * configure: Regenerate.
2849 * config/sol2.h (TARGET_SOLARIS): Define.
2850 (PUSHSECTION_FORMAT): Remove.
2851 (SECTION_NAME_FORMAT): Define.
2852 * config/sol2.c: Include hashtab.h.
2853 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2854 expansion, using SECTION_NAME_FORMAT.
2855 (solaris_comdat_htab): New variable.
2856 (struct comdat_entry): Define.
2857 (comdat_hash): New function.
2858 (comdat_eq): New function.
2859 (solaris_elf_asm_comdat_section): New function.
2860 (solaris_define_comdat_signature): New function.
2861 (solaris_code_end): New function.
2862 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2863 (solaris_code_end): Declare.
2864 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2865 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2867 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2868 Remove ATTRIBUTE_UNUSED.
2869 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2870 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2871 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2872 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2873 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2874 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2875 (PUSHSECTION_FORMAT): Remove.
2876 (SECTION_NAME_FORMAT): Redefine.
2878 2011-05-19 Kai Tietz <ktietz@redhat.com>
2880 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2881 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2882 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2884 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2885 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2887 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2889 2011-05-19 Richard Guenther <rguenther@suse.de>
2892 * tree-object-size.c (addr_object_size): If the pointed-to
2893 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2895 2011-05-19 Richard Guenther <rguenther@suse.de>
2897 * gimple.c (gimple_types_compatible_p_1): Compare names of
2898 the types themselves.
2899 (iterative_hash_gimple_type): And hash them that way.
2900 (gimple_register_type_1): If we register a main variant properly
2901 initialize the leader to ourselves.
2903 2011-05-19 Tom de Vries <tom@codesourcery.com>
2906 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2907 get_loop_invariant_expr_id.
2908 (get_loop_invariant_expr_id): Use get_expr_id.
2909 (parm_decl_cost): New function.
2910 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2911 Improve bound cost estimation. Use different inv_expr_id for elim and
2914 2011-05-19 Tom de Vries <tom@codesourcery.com>
2917 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2918 cost_base.cost == 0.
2920 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2923 * config/i386/sse.md
2924 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2927 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2929 PR tree-optimization/49039
2930 * tree-vrp.c (extract_range_from_binary_expr): For
2931 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2932 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2934 2011-05-18 Tom de Vries <tom@codesourcery.com>
2937 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2939 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2941 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2942 (*tls_global_dynamic_64): Ditto.
2943 (*tls_local_dynamic_base_32_gnu): Ditto.
2944 (*tls_local_dynamic_base_64): Ditto.
2945 (tls_initial_exec_64_sun): Ditto.
2947 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2949 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2950 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2952 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2953 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2954 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2955 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2956 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2957 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2958 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2960 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2962 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2963 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2964 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2965 target_thread_pointer, arm_structure_size_boundary, struct
2966 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2967 struct abi_name, arm_all_abis): Remove.
2968 (arm_option_override) Don't process most enumerated option values here.
2969 Don't process target_fpe_name here. Work with integer not string for
2970 structure size boundary; use separate diagnostics for each case.
2971 * config/arm/arm.h (enum float_abi_type, enum
2972 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2974 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2975 arm_structure_size_boundary): Remove.
2976 * config/arm/arm.opt (mabi=): Use Enum and Init.
2977 (arm_abi_type): New Enum and EnumValue entries.
2978 (mfloat-abi=): Use Enum and Init.
2979 (float_abi_type): New Enum and EnumValue entries.
2980 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2981 (mfp16-format=): Use Enum and Init.
2982 (arm_fp16_format_type): New Enum and EnumValue entries.
2983 (mstructure-size-boundary=): Use UInteger and Init.
2984 (mtp=): Use Enum and Init.
2985 (arm_tp_type): New Enum and EnumValue entries.
2987 2011-05-18 Richard Guenther <rguenther@suse.de>
2989 PR tree-optimization/49018
2990 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2991 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2992 gimple_has_side_effects.
2994 2011-05-18 Richard Guenther <rguenther@suse.de>
2996 * gimple.c (gimple_register_type_1): New function, split out from ...
2997 (gimple_register_type): ... here. Avoid infinite recursion.
2999 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3001 PR tree-optimization/41881
3002 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3003 reduction_chains along with a macro for its access.
3004 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3005 (destroy_loop_vec_info): Free reduction chains.
3006 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3007 (vect_is_slp_reduction): New function.
3008 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3009 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3010 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3011 definition types for reduction chains.
3012 (vect_supported_load_permutation_p): Don't allow permutations for
3014 (vect_analyze_slp_instance): Support reduction chains.
3015 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3016 (vect_get_constant_vectors): Handle reduction chains.
3017 (vect_schedule_slp_instance): Mark the first statement of the
3018 reduction chain as reduction.
3020 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3022 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3023 names for group elements access.
3024 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3025 reduction chains as well. Remove data reference and interleaving
3026 related words from the fields names.
3027 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3029 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3030 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3031 vect_update_interleaving_chain, vect_same_range_drs,
3032 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3033 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3034 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3035 vect_analyze_group_access, vect_analyze_data_ref_access,
3036 vect_create_data_ref_ptr, vect_transform_strided_load,
3037 vect_record_strided_load_vectors): Likewise.
3038 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3039 vect_model_load_cost, vectorizable_store, vectorizable_load,
3040 vect_remove_stores, new_stmt_vec_info): Likewise.
3041 * tree-vect-slp.c (vect_build_slp_tree,
3042 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3044 2011-05-18 Richard Guenther <rguenther@suse.de>
3047 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3048 operand verification.
3049 (verify_gimple_assign_binary): Likewise.
3050 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3051 to non-1-precision BOOLEAN_TYPEs.
3053 2011-05-18 Tom de Vries <tom@codesourcery.com>
3056 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3058 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3060 PR tree-optimization/49000
3061 * tree-ssa.c (execute_update_addresses_taken): Call
3062 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3063 be rewritten and decl has been marked for renaming, reset
3066 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3068 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3069 enum_opts_set when testing if attributes have set -mfpmath=.
3071 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3073 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3075 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3077 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3079 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3080 id.transform_lang_insert_block with NULL.
3082 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3084 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3085 (output_fp_compare): Change args 3 and 4 to bool.
3086 (ix86_expand_call): Change arg 6 to bool.
3087 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3088 (ix86_attr_length_vex_default): Change arg 3 to bool.
3089 * config/i386/i386.md: Update all uses.
3090 * config/i386/i386.c: Ditto.
3091 (ix86_flags_dependent): Change return type to bool.
3093 2011-05-17 Richard Guenther <rguenther@suse.de>
3095 * gimple.c (type_hash_pair_compare): Fix comparison.
3097 2011-05-17 Richard Guenther <rguenther@suse.de>
3099 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3100 case some more, fix final hash value of the non-singleton case.
3102 2011-05-17 Richard Guenther <rguenther@suse.de>
3106 2011-05-16 Richard Guenther <rguenther@suse.de>
3108 * gimple.c (gimple_types_compatible_p_1): Use names of the
3109 type itself, not its main variant.
3110 (iterative_hash_gimple_type): Likewise.
3112 2011-05-17 Richard Guenther <rguenther@suse.de>
3114 * gimple.c (gimple_register_canonical_type): Use the main-variant
3115 leader for computing the canonical type.
3117 2011-05-17 Nick Clifton <nickc@redhat.com>
3119 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3122 * config/rx/rx.md: Add peephole to remove redundant extensions
3124 (bitset_in_memory): Use rx_restricted_mem_operand.
3125 (bitinvert_in_memory): Likewise.
3126 (bitclr_in_memory): Likewise.
3128 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3129 Nick Clifton <nickc@redhat.com>
3131 * config/rx/rx.md: Add peepholes to match a register move followed
3132 by a comparison of the moved register. Replace these with an
3133 addition of zero that does both actions in one instruction.
3135 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3138 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3139 predicate to allow CONST_INT.
3140 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3142 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3144 * opts-common.c (opt_enum_arg_to_value): New.
3145 * opts.h (opt_enum_arg_to_value): Declare.
3146 * config/i386/i386.opt (fpmath): Remove.
3147 (mfpmath=): Use Enum, Init and Save.
3148 (fpmath_unit): New Enum and EnumValue entries.
3149 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3150 name for function fpmath state.
3151 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3152 * config/i386/i386.c: Include diagnostic.h.
3153 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3154 (ix86_target_string): Take enum fpmath_unit value instead of string.
3155 (ix86_debug_options): Update call to ix86_target_string.
3156 (ix86_option_override_internal): Don't process fpmath strings here.
3157 (x86_function_specific_save, ix86_function_specific_restore):
3158 Don't handle fpmath state specially.
3159 (ix86_function_specific_print): Pass fpmath state to
3160 ix86_target_string instead of printing in this function.
3161 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3162 Handle enum attributes.
3163 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3164 (ix86_valid_target_attribute_tree): Update option_strings
3165 handling. Handle fpmath as enum option.
3166 (ix86_can_inline_p): Update field names for function fpmath state.
3167 (ix86_expand_builtin): Update call to ix86_target_string.
3168 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3169 (ix86_fpmath): Remove.
3170 * config/i386/t-i386 (i386.o): Update dependencies.
3172 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3174 PR preprocessor/48677
3175 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3176 from decoded_options[0], not from itself.
3178 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3180 * config/i386/constraints.md (z): New constraint.
3181 * config/i386/i386.c (c): New mode attribute.
3182 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3183 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3184 constraint for operand 0.
3185 (*call_vzeroupper): Ditto.
3186 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3187 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3188 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3189 Use "lzm" constraint for operand 0.
3190 (*call_pop_vzeroupper): Ditto.
3191 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3192 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3193 constraint for operand 0.
3194 (*sibcall_vzeroupper): Ditto.
3195 (*sibcall_rex64_ms_sysv): Ditto.
3196 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3197 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3198 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3199 (*sibcall_pop_vzeroupper): Ditto.
3200 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3201 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3202 mode iterator. Use "<c>zm" constraint for operand 1.
3203 (*call_value_vzeroupper): Ditto.
3204 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3206 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3207 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3208 *call_value_pop_1. Use "lzm" constraint for operand 1.
3209 (*call_value_pop_vzeroupper): Ditto.
3210 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3211 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3212 mode iterator. Use "Uz" constraint for operand 1.
3213 (*sibcall_value_vzeroupper): Ditto.
3214 (*sibcall_value_rex64_ms_sysv): Ditto.
3215 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3216 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3217 constraint for operand 1.
3218 (*sibcall_value_pop_vzeroupper): Ditto.
3219 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3220 and "z" constraint for operand 2.
3221 (*tls_global_dynamic_32_gnu): Ditto.
3222 (*tls_local_dynamic_base_32_gnu): Ditto.
3223 (*tls_local_dynamic_base_64): Ditto.
3224 (*tls_local_dynamic_32_once): Ditto.
3225 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3227 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3229 2011-05-16 Richard Guenther <rguenther@suse.de>
3231 * gimple.c (gimple_types_compatible_p_1): Use names of the
3232 type itself, not its main variant.
3233 (iterative_hash_gimple_type): Likewise.
3235 2011-05-16 Richard Guenther <rguenther@suse.de>
3237 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3238 always visit pointer target and function result and argument types.
3240 2011-05-16 Jason Merrill <jason@redhat.com>
3243 * tree-inline.c (copy_statement_list): Put back recursion.
3245 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3249 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3250 * config/avr/avr.md ("*ior<mode>qi.byte0",
3251 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3253 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3256 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3257 register is needed for a function argument.
3259 2011-05-16 Richard Guenther <rguenther@suse.de>
3261 * gimple.c (struct type_hash_pair): New type.
3262 (type_hash_pair_compare): New function.
3263 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3265 2011-05-16 Revital Eres <revital.eres@linaro.org>
3267 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3269 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3271 * config/i386/i386.md (floating point move splitters): Fix
3272 usage of standard_80387_constant_p.
3273 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3275 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3277 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3279 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3281 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3282 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3283 (tree_ssa_lim_finalize): Likewise.
3285 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3287 * config/i386/constraint.md (Yd, Yx): New register constraints.
3288 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3289 Yd conditional register constraint.
3290 (*movtf_internal): Use standard_sse_constant_opcode.
3291 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3292 Yx conditional register constraint.
3293 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3294 Yd conditional register constraint. Use standard_sse_constant_p to
3295 check for valid SSE constants and call standard_sse_constant_opcode to
3297 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3298 constants and call standard_sse_constant_opcode to output SSE insn.
3299 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3300 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3301 optimize_size is set.
3302 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3304 2011-05-14 Tobias Burnus <burnus@net-b.de>
3306 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3308 2011-05-13 Martin Jambor <mjambor@suse.cz>
3310 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3311 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3312 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3313 (evaluate_conditions_for_ipcp_clone): Removed.
3314 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3315 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3316 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3318 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3320 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3321 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3322 lieu of MAY_HAVE_DEBUG_STMTS.
3323 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3324 debug statements if !MAY_HAVE_DEBUG_STMTS.
3326 2011-05-13 Martin Thuresson <martint@google.com>
3328 PR gcov-profile/47793
3329 * libgcov.c (gcov_exit): Support relative profile paths.
3330 * doc/invoke.texi (-fprofile-dir): Update for above change.
3332 2011-05-13 Richard Guenther <rguenther@suse.de>
3334 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3335 type-pair caching, do not compare hashes.
3337 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3340 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3341 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3343 2011-05-13 Kai Tietz <ktietz@redhat.com>
3345 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3346 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3347 compatible type for TRUTH_NOT_EXPR.
3349 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3351 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3352 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3353 can_create_pseudo_p ().
3355 2011-05-13 Richard Guenther <rguenther@suse.de>
3358 * gimple.c (iterative_hash_gimple_type): Revert change in
3359 pointer target and function result and argument hashing.
3361 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3363 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3364 (*movxf_internal_nointeger): Ditto.
3365 (*movdf_internal_rex64): Ditto.
3366 (*movdf_internal): Ditto.
3367 (*movdf_internal_nointeger): Ditto.
3368 (*movsf_internal): Ditto.
3369 (sincos splitters): Use can_create_pseudo ().
3371 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3373 * config/i386/i386-opts.h: New.
3374 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3375 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3376 ix86_section_threshold): Remove.
3377 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3378 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3380 (ix86_option_override_internal): Don't decode strings for options
3381 other than -march=, -mtune= and -mfpmath=. Don't allow for
3382 __attribute__ uses in remaining diagnostics for options with
3383 string arguments. Don't check for integer arguments being negative.
3384 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3385 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3386 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3387 ix86_branch_cost, ix86_section_threshold): Remove.
3388 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3390 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3392 (masm=): Use Enum and Init.
3393 (asm_dialect): New Enum and EnumValue entries.
3394 (mbranch-cost=): Use UInteger.
3395 (mlarge-data-threshold=): Use UInteger and Init.
3396 (mcmodel=): Use Enum and Init.
3397 (cmodel): New Enum and EnumValue entries.
3398 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3399 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3400 mregparm=): Use UInteger.
3401 (mstringop-strategy=): Use Enum and Init.
3402 (stringop_alg): New Enum and EnumValue entries.
3403 (mtls-dialect=): Use Enum and Init.
3404 (tls_dialect): New Enum and EnumValue entries.
3405 (mabi=): Use Enum and Init.
3406 (calling_abi): New Enum and EnumValue entries.
3407 (mveclibabi=): Use Enum and Init.
3408 (ix86_veclibabi): New Enum and EnumValue entries.
3410 2011-05-13 Nick Clifton <nickc@redhat.com>
3412 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3413 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3415 2011-05-13 Kai Tietz <ktietz@redhat.com>
3418 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3419 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3420 (gimple_boolify): Check for cast for boolean_type_node instead for
3423 2011-05-13 Richard Guenther <rguenther@suse.de>
3425 PR tree-optimization/48172
3426 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3427 multiplying by number of iterations for equal step.
3428 (vect_create_cond_for_alias_checks): Likewise.
3430 2011-05-13 Andreas Schwab <schwab@redhat.com>
3432 * configure.ac: Use AS_HELP_STRING throughout.
3433 * configure: Regenerate.
3435 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3437 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3438 (ix86_emit_restore_regs_using_mov): Likewise.
3439 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3441 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3443 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3444 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3445 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3446 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3447 RTX_OK_FOR_OLO10_P): ...here.
3448 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3451 2011-05-12 Kai Tietz <ktietz@redhat.com>
3453 * gimplify.c (gimple_boolify): Re-boolify expression
3454 arguments even if expression type is of kind BOOLEAN_TYPE.
3455 (gimplify_boolean_expr): Removed.
3456 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3457 and XOR. Additional take care that we keep expression's type.
3458 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3459 of TRUTH_AND|OR|XOR_EXPR.
3461 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3463 PR tree-optimization/48975
3464 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3465 on all bbs here and free and clear ifc_bbs at the end.
3467 2011-05-12 Richard Guenther <rguenther@suse.de>
3469 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3470 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3471 until after simple checks.
3472 (gimple_types_compatible_p): Likewise.
3473 (iterative_hash_gimple_type): Always hash pointer targets
3474 and function return and argument types.
3475 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3476 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3477 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3478 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3479 completely in the simple compare section.
3480 (gimple_register_canonical_type): Query the cache again after
3483 2011-05-12 Richard Guenther <rguenther@suse.de>
3485 PR tree-optimization/48172
3486 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3487 the number of iterations from the segment size calculation.
3488 (vect_create_cond_for_alias_checks): Adjust.
3490 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3493 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3494 if validate_subreg fails.
3496 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3498 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3499 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3502 2011-05-12 DJ Delorie <dj@redhat.com>
3504 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3505 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3506 created builtin into rx_builtins array.
3507 (rx_builtin_decl): New function.
3508 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3510 2011-05-12 DJ Delorie <dj@redhat.com>
3511 Nick Clifton <nickc@redhat.com>
3513 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3514 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3515 (rx_is_legitimate_address): Add pre-decrement and post-increment
3516 addressing in HImode and QImode. Fix test for out of range
3518 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3519 (rx_align_for_label): Test label before extracting its usage count.
3520 (rx_adjust_insn_lengths): Fix selection of insn codes.
3521 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3523 2011-05-11 Jason Merrill <jason@redhat.com>
3525 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3527 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3529 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3530 reindent the subsequent block.
3532 2011-05-11 Satoru Takabayashi <satorux@google.com>
3533 Paul Pluzhnikov <ppluzhnikov@google.com>
3535 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3536 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3537 * config.in: Add LINKER_HASH_STYLE.
3538 * configure.ac: Add --with-linker-hash-style.
3539 * configure: Regenerate.
3541 2011-05-11 Richard Guenther <rguenther@suse.de>
3544 * gimple.c (iterative_hash_canonical_type): Fix typo.
3546 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3548 * config/i386/i386.c (legitimize_tls_address)
3549 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3550 expanders directly for TARGET_GNU2_TLS. Determine pic and
3551 __tls_get_addr symbol reference here. Update call to
3552 gen_tls_global_dynamic_{32,64} for added arguments.
3553 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3554 expanders directly for TARGET_GNU2_TLS. Determine
3555 __tls_get_addr symbol reference here. Update call to
3556 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3557 unique UNSPEC REG_EQUIV to libcall block.
3558 (ix86_tls_get_addr): Declare static.
3559 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3560 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3561 Do not determine pic and __tls_get_addr symbol reference here. Do not
3562 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3563 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3564 (tls_global_dynamic_64): Add operand 2. Do not determine
3565 __tls_get_addr symbol reference here. Do not call
3566 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3567 (tls_local_dynamic_base64): Ditto for operand 1.
3569 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3571 * function.c (expand_function_start): Initialize stack_check_probe_note
3572 only if the generic stack checking mechanism is used.
3574 2011-05-11 Richard Guenther <rguenther@suse.de>
3576 PR tree-optimization/15256
3577 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3578 (A & B) | C, combine (A op CST1) op CST2.
3579 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3580 visit assigns that have uses.
3582 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3584 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3585 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3586 (unpack_ts_type_common_value_fields): ...this. Update comment.
3587 (unpack_value_fields): Adjust for renaming.
3588 (lto_input_ts_type_tree_pointers): Split into...
3589 (lto_input_ts_type_common_tree_pointer): ...this and...
3590 (lto_input_ts_type_non_common_tree_pointers): ...this.
3591 (lto_input_tree_pointers): Adjust for above split.
3592 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3593 (pack_ts_type_common_value_fields): ...this. Update comment.
3594 (lto_output_ts_type_tree_pointers): Split into...
3595 (lto_output_ts_type_common_tree_pointers): ...this and...
3596 (lto_output_ts_type_non_common_tree_pointers): ...this.
3597 (lto_output_tree_pointers): Adjust for above split.
3598 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3599 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3600 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3601 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3603 (struct tree_type): Split into...
3604 (struct tree_type_common: ...this and...
3605 (struct tree_type_with_lang_specific): ...this and...
3606 (struct tree_type_non_common): ...this. Adjust accessor macros
3608 (TYPE_VALUES_RAW): Define.
3609 (union tree_node): Update for above changes.
3610 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3612 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3613 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3614 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3615 * treestructu.def (TS_TYPE): Remove.
3616 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3619 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3622 * tree-ssa.c (reset_debug_uses): New function.
3623 * tree-flow.h (reset_debug_uses): New prototype.
3624 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3625 * tree-loop-distribution.c (generate_loops_for_partition): Call
3626 reset_debug_uses on the stmts that will be removed. Keep around
3627 all debug stmts, don't count them as bits in partition bitmap.
3628 (generate_builtin): Don't count debug stmts or labels as bits in
3631 2011-05-11 Richard Guenther <rguenther@suse.de>
3633 * gimple.c (gimple_type_hash_1): Merge with ...
3634 (gimple_type_hash): ... this.
3635 (gtc_visit): Remove mode parameter and simplify accordingly.
3636 (gimple_types_compatible_p_1): Likewise.
3637 (gimple_types_compatible_p): Likewise.
3638 (iterative_hash_gimple_type): Likewise.
3640 (gimple_type_eq): Adjust.
3642 2011-05-11 Revital Eres <revital.eres@linaro.org>
3644 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3645 enters the branch create an anti edge in the opposite direction
3646 to prevent the creation of reg-moves.
3647 * modulo-sched.c: Adjust comment to reflect the fact we are
3648 scheduling closing branch.
3649 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3650 (stage_count): New field in struct partial_schedule.
3651 (calculate_stage_count): New function.
3652 (normalize_sched_times): Rename to reset_sched_times and handle
3653 incrementing the sched time of the nodes by a constant value
3654 passed as parameter.
3655 (duplicate_insns_of_cycles): Skip closing branch.
3656 (sms_schedule_by_order): Schedule closing branch.
3657 (ps_insn_find_column): Handle closing branch.
3658 (sms_schedule): Call reset_sched_times and adjust the code to
3659 support scheduling of the closing branch.
3660 (ps_insert_empty_row): Update calls to normalize_sched_times
3661 and rotate_partial_schedule functions.
3663 2011-05-11 Richard Guenther <rguenther@suse.de>
3666 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3668 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3670 * opts.c (finish_options): Move warning settings from process_options.
3671 * toplev.c (process_options): Move warning settings to finish_options.
3673 2011-05-11 Richard Guenther <rguenther@suse.de>
3675 PR tree-optimization/18041
3676 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3677 (simplify_bitwise_binary): ... this. Handle operand conversions
3678 by applying them to the result instead.
3679 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3681 2011-05-11 Richard Guenther <rguenther@suse.de>
3683 * gimple.c (gimple_canonical_types_compatible_p): Split out
3684 from gimple_types_compatible_p and friends. Do not recurse
3685 to pointed-to types.
3686 (gimple_canonical_type_eq): Use it.
3687 (iterative_hash_canonical_type): Split out from
3688 iterative_hash_gimple_type and friends. Do not recurse
3689 to pointed-to types.
3690 (gimple_canonical_type_hash): Use it, allocate the hash here.
3692 2011-05-11 Revital Eres <revital.eres@linaro.org>
3694 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3697 2011-05-11 Revital Eres <revital.eres@linaro.org>
3699 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3700 instead of PREV_INSN.
3702 2011-05-11 Revital Eres <revital.eres@linaro.org>
3704 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3705 * loop-doloop.c (doloop_condition_get): Likewise.
3706 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3708 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3710 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3712 * tree.def (CASE_LABEL_EXPR): Add an operand.
3713 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3715 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3717 * c-decl.c (c_override_global_bindings_to_false): Remove.
3718 (global_bindings_p): Don't check
3719 c_override_global_bindings_to_false.
3720 * c-tree.h (c_override_global_bindings_to_false): Remove.
3721 * c-typeck.c (composite_type): Don't set
3722 c_override_global_bindings_to_false.
3724 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3726 PR target/48857, 48495
3727 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3729 (VSX_MOVE_MODE): Ditto.
3730 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3731 VSX vector types. Add V2DImode.
3732 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3733 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3734 (MODES_TIEABLE_P): Ditto.
3736 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3737 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3739 (init_cumulative_args): Ditto.
3740 (rs6000_function_arg_boundary): Ditto.
3741 (rs6000_function_arg_advance_1): Ditto.
3742 (rs6000_function_arg): Ditto.
3743 (rs6000_function_ok_for_sibcall): Ditto.
3744 (emit_frame_save): Ditto.
3745 (rs6000_function_value): Ditto.
3746 (rs6000_libcall_value): Ditto.
3748 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3750 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3751 i386/darwin-lib.h to $libgcc_tm_file.
3752 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3754 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3756 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3758 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3760 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3761 * config/rs6000/rs6000-tables.opt: New file (generated).
3762 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3763 rs6000/rs6000-tables.opt to extra_options.
3764 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3765 * config/rs6000/rs6000.c (rs6000_select): Remove.
3766 (processor_target_table): Move contents to rs6000-cpus.def.
3767 (darwin_rs6000_override_options): Check
3768 global_options_set.x_rs6000_cpu_index instead of
3769 rs6000_select[1].string.
3770 (rs6000_option_override_internal): Likewise.
3771 (rs6000_handle_option): Don't assert that global structures are in
3772 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3773 (rs6000_default_cpu): New variable.
3774 (rs6000_file_start): Set it instead of local default_cpu. Check
3775 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3776 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3777 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3778 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3779 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3780 rs6000_select): Remove.
3781 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3783 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3784 * config/rs6000/t-rs6000
3785 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3786 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3787 global_options_set.x_rs6000_cpu_index instead of
3788 rs6000_select[1].string.
3789 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3790 global_options_set.x_rs6000_cpu_index instead of
3791 rs6000_select[1].string.
3793 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3795 * config.gcc (libgcc_tm_file): Define instead of including files
3796 from ../../libgcc/config/ in tm_file.
3797 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3798 * configure: Regenerate.
3799 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3800 libgcc_tm.h, cs-libgcc_tm.h): New.
3801 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3802 (clean): Remove libgcc_tm.h.
3803 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3804 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3805 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3807 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3810 * config/avr/avr.c (avr_ret_register): Return unsigned int
3812 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3813 it to avr_libcall_value.
3814 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3816 (avr_expand_binop_builtin): Ditto.
3817 (avr_expand_unop_builtin): Ditto.
3819 2011-05-10 DJ Delorie <dj@redhat.com>
3821 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3822 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3823 * config/rx/rx.c (rx_align_for_label): Add label and
3824 uses_threshold parameters. Do not align when the label is not
3826 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3828 2011-05-10 Richard Guenther <rguenther@suse.de>
3830 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3831 a series of conversions and apply foldings similar to what
3833 (tree_ssa_forward_propagate_single_use_vars): Call it.
3835 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3837 PR tree-optimization/48611
3838 PR tree-optimization/48794
3839 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3840 referenced from RESX or EH_DISPATCH arguments.
3843 * dfp.c (decimal_to_decnumber): Handle conversion from
3844 dconst{1,2,m1,half}.
3846 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3848 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3849 for !flag_prefer_avx128.
3850 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3852 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3854 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3855 (fold_ternary_loc): Use expr_location_or.
3857 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3860 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3861 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3862 Pmode and mem_mode is not VOIDmode.
3864 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3866 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3867 TYPE_QUAL_RESTRICT): Convert to enum.
3869 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3871 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3872 (const_pow2_1_to_8_operand): Ditto.
3873 (const_pow2_1_to_128_operand): Ditto.
3874 (const_pow2_1_to_32768_operand): Ditto.
3875 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3876 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3877 in insn constraint to check integer value of operand 3.
3878 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3880 (PINSR_MODE): New mode iterator.
3881 (sse2p4_1): New mode attribute.
3882 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3883 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3884 iterator. Use const_int_operand instead of
3885 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3886 exact_log2 in insn constraint to check integer value of operand 3.
3888 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3890 * config/i386/sse.md (blendbits): Remove mode attribute.
3891 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3892 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3893 Check integer value of operand 3 in insn constraint.
3895 2011-05-09 Richard Guenther <rguenther@suse.de>
3897 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3899 (lto_symtab_merge): Likewise. Do not register types here.
3900 (lto_symtab_merge_decls_2): Likewise.
3901 (lto_symtab_merge_decls_1): Likewise.
3902 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3903 * gimple.c (enum gtc_mode): Declare.
3904 (gimple_types_compatible_p): Make static.
3906 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3908 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3909 temporary register to match Pmode.
3911 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3913 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3914 and *vec_concatv4si_1_avx.
3916 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3918 PR rtl-optimization/48927
3919 * ira-conflicts.c (commutative_constraint_p): Use
3920 recog_data.alternative_enabled_p to disable alternatives where
3921 "enabled" attribute is false.
3922 (get_dup_num): Ditto.
3923 * ira-lives.c (single_reg_class): Ditto.
3924 (ira_implicitly_set_insn_hard_regs): Ditto.
3926 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3928 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3929 (dataflow_set_preserve_mem_locs): Likewise.
3931 2011-05-09 Philipp Thomas <pth@suse.de>
3933 * config/mep/mep.c (mep_validate_vliw): Syntax description
3934 should not be translated.
3936 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3938 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3939 * config/mips/mips-tables.opt: New file (generated).
3940 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3941 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3942 MIPS_ARCH_OPTION_NATIVE): Define.
3943 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3945 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3946 mips_parse_cpu): Remove.
3947 (mips_cpu_info_from_opt, mips_default_arch): New.
3948 (mips_handle_option): Don't assert that global structures are in
3949 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3950 (mips_option_override): Use new variables and functions to set
3951 state of these options. Use strcmp to check for individual CPU names.
3952 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3954 * config/mips/mips.opt (march=): Use ToLower and Enum.
3955 (mips): Use ToLower, Enum and Var.
3956 (mtune=): Use ToLower and Enum.
3957 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3959 2011-05-08 Jan Hubicka <jh@suse.cz>
3961 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3962 Arrange type pairs to be UID ordered.
3963 (gimple_lookup_type_leader): Make inline.
3965 2011-05-09 Nick Clifton <nickc@redhat.com>
3968 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3972 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3975 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3977 * combine.c (simplify_comparison): Abstract out parts into...
3978 (simplify_compare_const): ... new function.
3979 (try_combine): Generalize parallel arithmetic/compare combining
3980 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3982 2011-05-08 Jan Hubicka <jh@suse.cz>
3984 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3985 (cgraph_create_virtual_clone): Call hooks once virtual clone
3987 * cgraph.h (cgraph_clone_node): Update prototype.
3988 * ipa-cp.c (ipcp_estimate_growth): Use
3989 estimate_ipcp_clone_size_and_time.
3990 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3991 * lto-cgraph.c (input_node): Update.
3992 * ipa-inline.c (recursive_inlining): Update.
3993 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3994 (evaluate_conditions_for_known_args): Break out from ...
3995 (evaluate_conditions_for_edge): ... here.
3996 (evaluate_conditions_for_ipcp_clone): New function.
3997 (inline_node_duplication_hook): Update clone summary based
3999 (estimate_callee_size_and_time): Rename to ...
4000 (estimate_node_size_and_time): take NODE instead of EDGE;
4001 take POSSIBLE_TRUTHS as argument.
4002 (estimate_callee_size_and_time): Update.
4003 (estimate_ipcp_clone_size_and_time): New function.
4004 (do_estimate_edge_time): Update.
4006 2011-05-08 Richard Guenther <rguenther@suse.de>
4010 * expmed.c (expand_shift_1): Compute adjusted constant shift
4013 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4015 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4017 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4019 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4021 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4023 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4025 2011-05-07 Jan Hubicka <jh@suse.cz>
4027 * ipa-inline-transform.c (inline_call): Account when program size
4029 * ipa-inline.c (relative_time_benefit): New function.
4030 (edge_badness): Reorganize to be power 2 based; fix thinko when
4031 computing badness for negative growth; update comments to match
4032 reality; better dumps.
4034 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4036 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4037 type to bool and adjust comment.
4038 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4039 (fold_mathfn_compare): Remove calls to global_bindings_p.
4040 (fold_inf_compare): Likewise.
4041 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4042 * c-tree.h (global_bindings_p): Adjust prototype.
4043 * c-decl.c (global_bindings_p): Return bool and simplify.
4045 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4047 PR tree-optimization/48837
4048 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4049 when accumulator transformation is performed.
4051 2011-05-06 Jan Hubicka <jh@suse.cz>
4053 * i386.h (ix86_tune_indices): Add
4054 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4055 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4056 * i386.c (initial_ix86_tune_features): Add
4057 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4058 (software_prefetching_beneficial_p): Remove predicate.
4059 (ix86_option_override_internal): Use new macro.
4061 2011-05-06 Jan Hubicka <jh@suse.cz>
4063 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4065 2011-05-06 Jan Hubicka <jh@suse.cz>
4067 * cgraph.c (cgraph_add_thunk): Create real function node instead
4068 of alias node; finalize it and mark needed/reachale; arrange visibility
4069 to be right and add it into the corresponding same comdat group list.
4070 (dump_cgraph_node): Dump thunks.
4071 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4072 cgraph_function_with_gimple_body_p,
4073 cgraph_first_function_with_gimple_body,
4074 cgraph_next_function_with_gimple_body): New functions.
4075 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4077 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4078 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4079 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4080 devirtualization when optimizing.
4081 (verify_cgraph_node): Verify thunks.
4082 (cgraph_analyze_function): Analyze thunks.
4083 (cgraph_mark_functions_to_output): Output thunks only in combination
4084 with function they are assigned to.
4085 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4086 alias into normal node.
4087 (assemble_thunks): New functoin.
4088 (cgraph_expand_function): Use it.
4089 * lto-cgraph.c (lto_output_node): Stream thunks.
4090 (input_overwrite_node): Stream in thunks.
4091 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4092 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4093 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4094 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4095 (inline_analyze_function): Do not care about thunk jump functions.
4096 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4097 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4098 cgraph_function_with_gimple_body_p.
4099 * passes.c (do_per_function_toporder): Use
4100 cgraph_function_with_gimple_body_p.
4101 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4102 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4103 (function_called_by_processed_nodes_p): Likewise.
4105 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4107 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4108 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4110 (mabi=): Replace with separate entries for mabi=altivec,
4111 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4112 mabi=ieeelongdouble and mabi=ibmlongdouble.
4113 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4114 check for -mabi=spe without SPE ABI support here.
4115 (rs6000_handle_option): Replace OPT_mabi_ handling with
4116 OPT_mabi_altivec and OPT_mabi_spe handling.
4118 2011-05-06 Cary Coutant <ccoutant@google.com>
4120 * dwarf2out.c (contains_subprogram_definition): New function.
4121 (should_move_die_to_comdat): Call it.
4123 2011-05-06 Jeff Law <law@redhat.com>
4125 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4126 remove_ctrl_stmt_and_useless_edges.
4127 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4128 (fixup_template_block, thread_single_edge): Likewise.
4129 (mark_threaded_blocks): Use THREAD_TARGET.
4131 2011-05-06 Alan Modra <amodra@gmail.com>
4134 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4135 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4137 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4139 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4140 constraint modifier to "r".
4142 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4144 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4145 fall through for OPT_mcmodel_.
4147 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4149 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4151 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4153 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4156 * config/arm/arm.opt (marm): Document it.
4157 (mthumb): Reject negative variant.
4159 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4162 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4163 Fix typo in "ccvt" variable name.
4165 2011-05-06 Tristan Gingold <gingold@adacore.com>
4168 * config/vms/vms-ar.c (main): Remove cwd variable.
4170 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4173 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4175 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4177 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4178 * gimplify.c (gimplify_switch_expr): Likewise.
4179 * omp-low.c (expand_omp_sections): Likewise.
4180 * tree-eh.c (lower_try_finally_switch): Likewise.
4181 (lower_eh_dispatch): Likewise.
4182 * tree.h (build_case_label): Declare.
4183 * tree.c (build_case_label): Define.
4185 2011-05-05 Jason Merrill <jason@redhat.com>
4188 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4189 (copy_statement_list): Don't recurse.
4190 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4193 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4195 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4196 through from -mfpu= handling.
4197 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4199 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4201 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4204 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4206 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4208 (hppa[12]*-*-hpux11*): Ditto.
4209 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4210 * config/ia64/hpux-unix2003.h: New.
4211 * config/pa/pa-hpux1131.opt: New.
4212 * config/pa/pa-hpux1131.h: New.
4213 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4214 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4215 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4217 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4220 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4221 instead of mode as 3rd argument to recursive call.
4222 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4223 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4225 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4226 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4227 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4228 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4230 2011-05-05 Julian Brown <julian@codesourcery.com>
4232 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4233 parenthesis in D-register case.
4235 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4237 * opt-functions.awk (var_type_struct): Handle Enum options.
4238 * optc-gen.awk: Don't check range of variables of character type.
4239 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4240 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4241 rs6000_sdata_name, rs6000_explicit_options): Remove.
4242 (rs6000_option_override_internal): Check for -malign-power here.
4243 Use global_options_set instead of rs6000_explicit_options.
4244 (rs6000_parse_fpu_option): Remove.
4245 (rs6000_handle_option): Access variables via opts and opts_set
4246 pointers. Use error_at and warning_at. Add fall-through
4247 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4248 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4249 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4250 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4251 here. Don't use rs6000_parse_fpu_option.
4252 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4253 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4254 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4256 (mspe): Use Var and Save.
4257 (mtraceback=): Use Enum and Var.
4258 (rs6000_traceback_type): New Enum and EnumValue entries.
4259 (mfloat-gprs=): Use Enum, Var and Save.
4260 (rs6000_float_gprs): New Enum and EnumValue entries.
4261 (mlong-double-): use Var and Save.
4262 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4263 (malign-): Use Enum and Var.
4264 (rs6000_alignment_flags): New Enum and EnumValue entries.
4266 (fpu_type_t): New Enum and EnumValue entries.
4267 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4268 global_options_set instead of rs6000_explicit_options.
4269 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4270 global_options_set instead of rs6000_explicit_options.
4271 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4272 global_options_set instead of rs6000_explicit_options.
4273 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4274 global_options_set instead of rs6000_explicit_options.
4275 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4276 global_options_set instead of rs6000_explicit_options.
4277 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4278 global_options_set instead of rs6000_explicit_options.
4279 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4281 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4282 global_options_set instead of rs6000_explicit_options.
4283 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4284 (rs6000_cmodel): New Enum and EnumValue entries.
4285 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4286 global_options_set instead of rs6000_explicit_options.
4287 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4288 (mtls-size=): Use Enum and Var.
4289 (rs6000_tls_size): New Enum and EnumValue entries.
4291 2011-05-05 Michael Matz <matz@suse.de>
4293 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4294 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4295 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4296 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4297 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4298 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4299 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4300 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4301 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4302 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4303 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4304 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4305 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4306 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4307 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4308 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4310 2011-05-05 Richard Guenther <rguenther@suse.de>
4312 * expmed.c (expand_variable_shift): Rename to ...
4313 (expand_shift_1): ... this. Take an expanded shift amount.
4314 For rotates recurse directly not building trees for the shift amount.
4315 (expand_variable_shift): Wrap around expand_shift_1.
4316 (expand_shift): Adjust.
4318 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4320 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4322 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4324 * tree.h (get_pending_sizes): Remove prototype.
4325 (put_pending_size): Likewise.
4326 (put_pending_sizes): Likewise.
4327 * stor-layout.c (pending_sizes): Delete.
4328 (get_pending_sizes): Likewise.
4329 (put_pending_size): Likewise.
4330 (put_pending_sizes): Likewise.
4331 (variable_size): Do not call put_pending_size and tidy up.
4332 * function.h (struct function): Remove dont_save_pending_sizes_p.
4333 * lto-streamer-in.c (input_function): Do not stream it.
4334 * lto-streamer-out.c (output_function): Likewise.
4335 * tree-inline.c (initialize_cfun): Do not copy it.
4336 * c-decl.c (store_parm_decls): Do not set it.
4337 * omp-low.c (create_task_copyfn): Likewise.
4338 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4340 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4342 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4344 (*movdf_internal): Ditto.
4345 (*movdf_internal_nointeger): Ditto.
4346 (*movsf_internal): Ditto.
4348 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4350 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4351 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4352 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4353 (c_variable_size): Remove.
4354 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4355 call put_pending_sizes.
4356 (get_parm_info): Add parameter expr. Use it to set
4357 arg_info->pending_sizes.
4358 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4360 * c-parser.c (c_parser_parms_declarator): Update call to
4361 c_parser_parms_list_declarator.
4362 (c_parser_parms_list_declarator): Take parameter expr. Update
4363 call to push_parm_decl. Update recursive call. Don't call
4364 get_pending_sizes. Update calls to get_parm_info.
4365 (c_parser_objc_method_definition): Update calls to
4366 c_parser_objc_method_decl and objc_start_method_definition.
4367 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4368 (c_parser_objc_method_decl): Add parameter expr. Update call to
4370 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4371 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4372 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4374 2011-05-05 Michael Hope <michael.hope@linaro.org>
4377 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4380 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4382 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4383 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4384 (spu_output_mi_thunk): New function.
4386 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4388 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4389 targetm.asm_out.print_operand.
4390 * config/sol2.c: Include target.h.
4392 2011-05-04 Jan Hubicka <jh@suse.cz>
4394 * ipa-inline.c (reset_edge_caches): New function.
4395 (update_caller_keys): Add check_inlinablity_for; do not
4396 reset edge caches; remove now unnecesary loop.
4397 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4398 (update_all_callee_keys): Likewise.
4399 (inline_small_functions): Sanity check cache; update code
4402 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4404 PR rtl-optimization/47612
4405 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4406 as the last insn of the sequence to be moved.
4408 2011-05-04 Tobias Burnus <burnus@net-b.de>
4411 * doc/invoke.texi (Ofast): Document that it
4412 enables Fortran's -fno-protect-parens.
4414 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4416 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4418 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4420 * stor-layout.c (variable_size): Do not issue errors.
4422 2011-05-04 Richard Guenther <rguenther@suse.de>
4424 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4425 for array-ref indices.
4426 (tree_coverage_counter_addr): Likewise.
4427 (build_fn_info_type): Use size_int for index types.
4428 (build_gcov_info): Likewise.
4430 2011-05-04 Richard Guenther <rguenther@suse.de>
4432 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4434 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4435 for constructor indices.
4436 (push_init_level): Likewise.
4438 2011-05-04 Richard Guenther <rguenther@suse.de>
4440 * explow.c (promote_mode): Move variable declarations before code.
4442 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4444 * tree.h (build_function_type_array): Declare.
4445 (build_varargs_function_type_array): Declare.
4446 (build_function_type_vec, build_varargs_function_type_vec): Define.
4447 * tree.c (build_function_type_array_1): New function.
4448 (build_function_type_array): New function.
4449 (build_varargs_function_type_array): New function.
4451 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4453 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4454 before setting STMT_VINFO_TYPE.
4456 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4458 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4459 instead of spu_pass_by_reference.
4461 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4463 * calls.c (emit_library_call_value_1): Invoke
4464 promote_function_mode hook on libcall arguments.
4465 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4466 argument being NULL.
4467 * targhooks.c (default_promote_function_mode): Lisewise.
4468 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4469 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4471 * doc/tm.texi: Document that TYPE argument might be NULL.
4473 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4475 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4477 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4480 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4482 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4484 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4485 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4487 * mips-tfile.c: ... here.
4488 Don't include coretypes.h, tm.h, filenames.h.
4489 (saber_stop): Remove definition and all calls.
4490 [__SABER__]: Remove.
4491 (__LINE__): Remove default.
4492 (Size_t, Ptrdiff_t): Remove definitions.
4493 Replace by size_t, ptrdiff_t.
4494 [!MIPS_DEBUGGING_INFO]: Remove.
4495 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4496 (progname): Add const.
4498 Replace all uses by static.
4499 (ALIGN_SYMTABLE_OFFSET): Remove default.
4500 * mips-tdump.c: Don't include coretypes.h, tm.h.
4501 Remove !MIPS_IS_STAB guard.
4502 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4503 $(TM_H), filenames.h dependencies.
4504 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4506 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4509 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4510 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4512 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4515 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4516 account and save/restore RETS.
4517 (PROFILE_BEFORE_PROLOGUE): Define.
4518 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4519 the push insn to use predecrement.
4521 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4524 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4526 2011-05-04 Nick Clifton <nickc@redhat.com>
4528 * config/mn10300/mn10300.c: Include cfgloop.h.
4530 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4531 Lcc or a FLcc insn into the instruction stream.
4532 (mn10300_block_contains_call): New function. Returns true if the
4533 given basic block contains a CALL insn.
4534 (mn10300_loop_contains_call_insn): New function. Returns true if
4535 the given loop contains a CALL insn.
4536 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4537 to use the SETLB and Lcc or FLcc insns.
4538 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4539 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4540 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4541 disable the SETLB optimization.
4542 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4543 __SETLB__ or __NO_SETLB__.
4544 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4545 (movsf_internal): Handle MDR register.
4546 (cmpsi): Make visible.
4547 (setlb): New pattern.
4549 (FLcc): New pattern.
4551 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4554 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4555 for reg<->xmm moves.
4556 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4557 (vec_concatv2di_rex64_sse): Ditto.
4558 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4559 (*vec_extractv2di_1_rex64): Ditto.
4562 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4564 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4566 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4568 2011-05-04 Richard Guenther <rguenther@suse.de>
4570 * tree.h (int_const_binop): Remove notrunc argument.
4571 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4572 create integer constants that are properly truncated.
4573 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4574 (const_binop): Remove zero notrunc argument to int_const_binop.
4575 (size_binop_loc): Likewise.
4576 (fold_div_compare): Likewise.
4577 (maybe_canonicalize_comparison_1): Likewise.
4578 (fold_comparison): Likewise.
4579 (fold_binary_loc): Likewise.
4580 (multiple_of_p): Likewise.
4581 * expr.c (store_constructor): Likewise.
4582 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4583 (maybe_fold_stmt_addition): Likewise.
4584 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4585 * stor-layout.c (layout_type): Likewise.
4586 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4587 * tree-sra.c (build_ref_for_offset): Likewise.
4588 (build_user_friendly_ref_for_offset): Likewise.
4589 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4590 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4591 * tree-ssa-loop-niter.c (inverse): Likewise.
4592 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4593 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4594 * tree-switch-conversion.c (check_range): Likewise.
4595 (build_constructors): Likewise.
4596 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4597 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4598 (extract_range_from_assert): Likewise.
4599 (vrp_int_const_binop): Likewise.
4600 (extract_range_from_binary_expr): Likewise.
4601 (extract_range_from_unary_expr): Likewise.
4602 (check_array_ref): Likewise.
4603 (find_case_label_range): Likewise.
4604 (simplify_div_or_mod_using_ranges): Likewise.
4605 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4606 comparing case labels for merging.
4608 2011-05-03 Mark Wielaard <mjw@redhat.com>
4610 * dwarf2out.c (debug_str_hash_forced): Removed.
4611 (gen_label_for_indirect_string): Removed.
4612 (get_debug_string_label): Removed.
4613 (AT_string_form): Generate label directly.
4614 (output_indirect_string): Test indirect_string_node for
4615 DW_FORM_strp instead of checking label and refcount.
4616 (prune_indirect_string): Removed.
4617 (prune_unused_types): Don't check debug_str_hash_forced or
4618 call prune_indirect_string.
4620 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4623 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4625 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4629 * combine.c (try_combine): Skip debug insns at m_split tests.
4631 2011-04-26 Mark Wielaard <mjw@redhat.com>
4634 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4635 when info_section_emitted.
4637 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4639 * config/mips/mips-opts.h: New.
4640 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4642 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4643 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4644 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4646 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4648 (mips_abi, mips_code_readable): Don't declare.
4649 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4650 (mabi=): Use Enum and Var.
4651 (mips_abi): New Enum and EnumValue entries.
4652 (mcode-readable=): Use Enum and Var.
4653 (mips_code_readable_setting): New Enum and EnumValue entries.
4654 (mr10k-cache-barrier=): Use Enum and Var.
4655 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4657 2011-05-03 Jan Hubicka <jh@suse.cz>
4659 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4660 replace hash by pointer map.
4661 (cgraph_node_set_element_def, cgraph_node_set_element,
4662 const_cgraph_node_set_element, varpool_node_set_element_def,
4663 varpool_node_set_element, const_varpool_node_set_element): Remove.
4664 (free_cgraph_node_set, free_varpool_node_set): New function.
4665 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4666 * tree-emutls.c: Free varpool node set.
4667 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4668 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4669 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4670 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4671 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4672 Move here from ipa.c; implement using pointer_map
4673 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4674 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4675 debug_cgraph_node_set, varpool_node_set_new,
4676 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4677 dump_varpool_node_set, debug_varpool_node_set):
4678 Move to ipa-uitls.c.
4679 * passes.c (ipa_write_summaries): Update.
4681 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4683 From Mike Frysinger:
4684 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4685 bf542/bf544/bf547/bf548/bf549.
4687 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4689 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4691 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4694 * config/bfin/bfin.md (MOVCC): New mode_macro.
4695 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4696 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4697 comments from generated assembly.
4699 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4702 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4703 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4704 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4705 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4706 * config/bfin/lib1funcs.asm (___muldi3): New function.
4708 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4710 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4711 build_function_type_list instead of build_function_type.
4712 Rearrange initialization of `args' to do so.
4714 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4716 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4717 instead of build_function_type.
4719 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4721 * config/rs6000/rs6000.c (spe_init_builtins): Call
4722 build_function_type_list instead of build_function_type.
4723 (paired_init_builtins, altivec_init_builtins): Likewise.
4724 (builtin_function_type): Likewise.
4726 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4728 * config/sh/sh.c (sh_media_init_builtins): Call
4729 build_function_type_list instead of build_function_type.
4731 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4733 * config/sparc/sparc.c (sparc_file_end): Call
4734 build_function_type_list instead of build_function_type.
4736 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4738 * config/alpha/alpha.c (alpha_init_builtins): Call
4739 build_function_type_list instead of build_function_type.
4741 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4743 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4744 build_function_type_list instead of build_function_type.
4746 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4748 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4749 build_function_type_list instead of build_function_type.
4750 Delete `endlink' variable.
4752 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4754 * config/avr/avr.c (avr_init_builtins): Call
4755 build_function_type_list instead of build_function_type.
4757 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4759 * config/picochip/picochip.c (picochip_init_builtins): Call
4760 build_function_type_list instead of build_function_type.
4761 Delete `endlink' variable.
4763 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4765 * config/bfin/bfin.c (bfin_init_builtins): Call
4766 build_function_type_list instead of build_function_type.
4768 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4771 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4772 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4774 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4777 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4778 libbffastfp overrides libgcc when -mfast-fp.
4780 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4782 Originally from Bernd Schmidt
4783 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4784 * config/bfin/bfin.c (override_options): Test it and error if
4787 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4789 Originally From Bernd Schmidt
4790 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4793 2011-05-03 Jeff Law <law@redhat.com>
4795 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4796 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4797 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4798 than accessing AUX field directly. Free the AUX field before
4800 (thread_block, thread_through_loop_header): Likewise.
4801 (thread_single_edge, mark_threaded_blocks): Likewise.
4802 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4803 (register_jump_thread): Do not attempt to thread to a NULL edge.
4805 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4807 * function.c (init_function_start): Call decide_function_section.
4808 * varasm.c (decide_function_section): New function.
4809 (assemble_start_function): When not using
4810 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4811 or first_function_block_is_cold.
4812 * rtl.h (decide_function_section): Declare.
4814 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4815 Jakub Jelinek <jakub@redhat.com>
4818 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4819 only succeed if req_mode is the same as set_mode.
4821 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4823 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4824 * genemit.c (gen_exp): Handle RETURN.
4825 * emit-rtl.c (verify_rtx_sharing): Likewise.
4826 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4827 * rtl.c (copy_rtx): RETURN is shared.
4828 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4830 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4831 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4832 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4833 * config/cris/cris.c (cris_expand_return): Likewise.
4834 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4835 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4836 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4837 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4838 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4840 * config/v850/v850.c (expand_epilogue): Likewise.
4841 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4842 * config/arm/arm.md (epilogue): Likewise.
4843 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4844 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4845 variable to ret_reg.
4847 2011-05-03 Richard Guenther <rguenther@suse.de>
4850 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4851 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4852 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4854 2011-05-03 Richard Guenther <rguenther@suse.de>
4856 * c-decl.c (grokdeclarator): Instead of looking at
4857 TREE_OVERFLOW check if the constant fits in the index type.
4859 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4861 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4862 (vec_store_lanes<mode><mode>): Likewise.
4864 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4866 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4867 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4868 convert_optab_index values.
4869 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4870 * genopinit.c (optabs): Initialize the new optabs.
4871 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4872 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4873 (expand_STORE_LANES): New functions.
4874 * tree.h (build_array_type_nelts): Declare.
4875 * tree.c (build_array_type_nelts): New function.
4876 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4877 (vect_model_load_cost): Likewise.
4878 (vect_store_lanes_supported, vect_load_lanes_supported)
4879 (vect_record_strided_load_vectors): Declare.
4880 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4881 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4882 (vect_transform_strided_load): Split out statement recording into...
4883 (vect_record_strided_load_vectors): ...this new function.
4884 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4885 (write_vector_array, create_array_ref): New functions.
4886 (vect_model_store_cost): Add store_lanes_p argument.
4887 (vect_model_load_cost): Add load_lanes_p argument.
4888 (vectorizable_store): Try to use store-lanes functions for
4890 (vectorizable_load): Likewise load-lanes and loads.
4891 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4892 to vect_model_store_cost.
4893 (vect_build_slp_tree): Likewise vect_model_load_cost.
4895 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4897 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4898 * hooks.c (hook_bool_mode_uhwi_false): New function.
4899 * target.def (array_mode_supported_p): New hook.
4900 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4901 * doc/tm.texi: Regenerate.
4902 * stor-layout.c (mode_for_array): New function.
4903 (layout_type): Use it.
4904 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4905 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4907 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4910 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4911 for -fstack-check if the size to allocate is negative.
4913 2011-05-02 Lawrence Crowl <crowl@google.com>
4915 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4916 (timevar_cond_start): New for starting a timer only when it is not
4918 (timevar_cond_stop): New for stopping a timer when it was not already
4921 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4922 (timevar_cond_start): New as above.
4923 (timevar_cond_stop): New as above.
4925 * timevar.def: Add start/stop timers for compiler phases,
4926 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4927 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4928 and TV_PHASE_FINALIZE.
4929 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4930 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4931 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4932 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4933 Make unused TV_OVERLOAD into a start/stop timer.
4935 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4936 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4937 to indicate that they are start/stop timers.
4939 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4940 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4941 Move initialization to do_compile.
4942 (do_compile): Add initialization from above.
4943 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4945 * c-decl.c (c_write_global_declarations): Add start/stop of
4946 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4948 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4949 or TV_PARSE_INLINE, as appropriate.
4950 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4951 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4953 2011-05-02 Jason Merrill <jason@redhat.com>
4956 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4958 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4961 * c-decl.c (finish_decl): Only create a composite if the types are
4964 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4966 * config/fr30/fr30-protos.h (Mmode): Don't define.
4967 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4968 definition where used.
4969 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4970 define. Expand definitions where used.
4971 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4972 Expand definitions where used.
4973 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4974 rx_function_arg, rx_function_arg_advance,
4975 rx_function_arg_boundary): Expand definitions of those macros.
4976 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4977 definition where used.
4979 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4981 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4983 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4984 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4985 with *movv2sf_internal_rex64_avx.
4986 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4987 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4988 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4989 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4990 "vex" in "prefix" attribute calculation.
4991 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4993 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4996 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4997 inputs match the output.
4999 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5002 * config/m68k/m68k.c (m68k_expand_prologue): Set
5003 current_function_static_stack_size.
5005 2011-05-02 Jan Hubicka <jh@suse.cz>
5007 * lto-streamer.c (lto_streamer_cache_insert_1,
5008 lto_streamer_cache_lookup, lto_streamer_cache_create,
5009 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5010 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5012 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5014 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5015 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5016 config/m68k/t-opts: New files.
5017 * config/m68k/m68k-tables.opt: New file (generated).
5018 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5019 extra_options and m68k/t-opts to tmake_file.
5020 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5021 (all_isas): Initialize using m68k-isas.def.
5022 (all_microarchs): Initialize using m68k-microarchs.def.
5023 (m68k_find_selection): Remove.
5024 (m68k_handle_option): Don't assert that global structures are in
5025 use. Use error_at. Access variables via opts pointer. Don't
5026 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5027 directly for -m68020-40 and -m68020-60.
5028 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5029 m68k_tune_entry here.
5030 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5032 (m68k_library_id_string): Remove declaration.
5033 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5034 (m68k_library_id_string): New Variable.
5035 (march=, mcpu=, mtune=): Use Enum and Var.
5037 2011-05-02 Richard Guenther <rguenther@suse.de>
5039 * varasm.c (output_constructor_regular_field): Compute zero-based
5040 index with double-ints. Make sure to ICE instead of producing
5042 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5043 in asserts. Properly use a signed type.
5045 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5047 * config/i386/sse.md (V): New mode iterator.
5048 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5050 (V_256): Rename from AVX256MODE.
5051 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5052 condition to all users.
5054 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5055 condition to all users.
5056 (VF_128): Make V4SF mode unconditional.
5057 (VF_256): Rename from AVX256MODEF2P.
5058 (VI4F_128): Rename from SSEMODE4S.
5059 (VI8F_128): Rename from SSEMODE2D.
5060 (VI4F_256): Rename from AVX256MODE8P.
5061 (VI8F_256): Rename from AVX256MODE4P.
5062 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5063 (ssescalarmodesuffix): Remove SF and DF modes.
5064 (SSEMODE124): Remove.
5065 (SSEMODE1248): Ditto.
5066 (SSEMODEF2P): Ditto.
5067 (AVXMODEF2P): Ditto.
5068 (AVXMODEFDP): Ditto.
5069 (AVXMODEFSP): Ditto.
5070 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5072 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5074 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5075 xop_pcmov_<mode>256. Use V mode iterator.
5077 Adjust RTX patterns globally for renamed mode attributes.
5079 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5081 * haifa-sched.c (sched_emit_insn): Emit insn before first
5082 non-scheduled insn. Inform back-end about new insn. Add
5083 new insn to scheduled_insns list.
5085 2011-05-02 Richard Guenther <rguenther@suse.de>
5087 PR tree-optimization/48822
5088 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5089 (process_scc): Indicate which iteration we start.
5091 2011-05-02 Jan Hubicka <jh@suse.cz>
5093 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5094 (lto_section_overrun): New.
5095 * lto-section-out.c (append_block): Rename to ...
5096 (lto_append_block): ... this one; export.
5097 (lto_output_1_stream): Move lto lto-streamer.h
5098 (lto_output_data_stream): Update.
5099 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5100 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5103 2011-05-02 Richard Guenther <rguenther@suse.de>
5105 * tree.c (tree_code_counts): New global array.
5106 (record_node_allocation_statistics): Count individual tree codes.
5107 (dump_tree_statistics): Dump individual code stats.
5109 2011-05-01 Jan Hubicka <jh@suse.cz>
5111 * ipa-inline.c (caller_growth_limits): Fix thinko when
5112 looking for largest stack frame.
5113 * ipa-inline.h (dump_inline_summary): Declare.
5114 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5116 (dump_inline_summary): Export.
5117 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5119 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5121 * reginfo.c (memory_move_cost): Change rclass argument type form
5122 'enum reg_class' to reg_class_t.
5123 * reload.h (memory_move_cost): Update prototype.
5124 * postreload.c reload_cse_simplify_set): Change type dclass var to
5126 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5128 (ira_allocate_and_set_costs): Change aclass argument type form
5129 'enum reg_class' to reg_class_t.
5130 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5131 Change aclass argument type to reg_class_t.
5132 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5134 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5135 memory_move_cost call.
5137 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5138 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5139 Change type tmp var to reg_class_t.
5141 2011-04-30 Jan Hubicka <jh@suse.cz>
5143 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5144 inlining into function with flatten attribute.
5145 (want_inline_small_function_p): Be more realistic about inlining
5146 cold calls where callee size grows.
5148 2011-04-30 Jan Hubicka <jh@suse.cz>
5150 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5153 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5155 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5156 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5157 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5158 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5159 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5160 (print_operand): Rename to...
5161 (sparc_print_operand): ...this. Make static. Adjust
5162 sparc_print_operand function call.
5163 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5166 2011-04-30 Jan Hubicka <jh@suse.cz>
5169 * ipa-inline.c (early_inliner): Disable when doing late
5170 addition of function.
5172 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5174 * dwarf2out.c (get_address_mode): New inline.
5175 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5176 if not dwarf_strict emit
5177 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5178 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5179 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5180 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5181 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5182 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5183 mem_loc_descriptor callers.
5184 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5185 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5186 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5187 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5188 (base_types): New variable.
5189 (get_base_type_offset, calc_base_type_die_sizes,
5190 base_type_for_mode, mark_base_types, base_type_cmp,
5191 move_marked_base_types): New functions.
5192 (calc_die_sizes): Assert that die_offset is 0 or equal to
5194 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5195 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5196 callers. If not dwarf_strict, call mem_loc_descriptor even for
5197 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5198 (gen_subprogram_die): Don't give up on call site parameters
5199 with non-integral or large integral modes. Adjust
5200 mem_loc_descriptor callers.
5201 (prune_unused_types): Call prune_unused_types_mark on base_types
5203 (resolve_addr): Call mark_base_types.
5204 (dwarf2out_finish): Call move_marked_base_types.
5206 PR tree-optimization/48809
5207 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5209 (gen_inbound_check): Don't compute index_expr - range_min in utype
5210 again, instead reuse SSA_NAME initialized in build_arrays.
5211 Remove two useless gsi_for_stmt calls.
5213 2011-04-29 Jeff Law <law@redhat.com>
5215 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5217 2011-04-29 Martin Jambor <mjambor@suse.cz>
5219 * cgraph.h (cgraph_postorder): Remove declaration.
5220 * ipa-utils.h (ipa_free_postorder_info): Declare.
5221 (ipa_reverse_postorder): Likewise.
5222 * cgraphunit.c: Include ipa-utils.h.
5223 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5224 * ipa-inline.c: Include ipa-utils.h.
5225 (ipa_inline): Update call to ipa_reverse_postorder.
5226 * ipa-pure-const.c (propagate_pure_const): Update call to
5227 ipa_reduced_postorder and ipa_print_order. Call
5228 ipa_free_postorder_info to clean up.
5229 (propagate_nothrow): Likewise.
5230 * ipa-reference.c (propagate): Removed a useless call to
5231 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5232 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5233 * ipa.c: Include ipa-utils.h.
5234 (ipa_profile): Update call to ipa_reverse_postorder.
5235 (cgraph_postorder): Moved to...
5236 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5237 (ipa_utils_print_order): Renamed to ipa_print_order.
5238 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5240 (ipa_free_postorder_info): New function.
5241 * passes.c: Include ipa-utils.h.
5242 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5243 (ipa_write_summaries): Likewise.
5244 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5245 (cgraphunit.o): Likewise.
5247 (ipa-inline.o): Likewise.
5249 2011-04-29 Jan Hubicka <jh@suse.cz>
5251 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5252 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5253 * ipa-inline.h (clause_t): Turn into unsigned int.
5254 * ipa-inline-analysis.c (add_clause): Do more simplification.
5255 (and_predicates): Shortcut more cases.
5256 (predicates_equal_p): Move forward; check that clauses are properly
5258 (or_predicates): Shortcut more cases.
5259 (edge_execution_predicate): Rewrite as...
5260 (set_cond_stmt_execution_predicate): ... this function; handle
5261 __builtin_constant_p.
5262 (set_switch_stmt_execution_predicate): New .
5263 (compute_bb_predicates): New.
5264 (will_be_nonconstant_predicate): Update TODO.
5265 (estimate_function_body_sizes): Use compute_bb_predicates
5266 and free them later, always try to estimate if stmt is constant.
5267 (estimate_time_after_inlining, estimate_size_after_inlining):
5268 Gracefully handle optimized out edges.
5269 (read_predicate): Fix off by one error.
5271 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5273 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5275 2011-04-27 Xinliang David Li <davidxl@google.com>
5277 * tree-profile.c (init_ic_make_global_vars): Set
5278 tls attribute on ic vars.
5279 * coverage.c (coverage_end_function): Initialize
5280 function_list with zero.
5282 2011-04-29 Richard Guenther <rguenther@suse.de>
5284 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5285 for the type of the result.
5286 (fold_builtin_isascii): Likewise.
5287 (fold_builtin_toascii): Use integer_type_node where appropriate.
5288 (fold_builtin_logb): Likewise.
5289 (fold_builtin_frexp): Likewise.
5290 (fold_builtin_strstr): Likewise.
5291 (fold_builtin_strpbrk): Likewise.
5292 (fold_builtin_fputs): Likewise.
5293 (fold_builtin_sprintf): Likewise.
5294 (fold_builtin_snprintf): Likewise.
5295 (fold_builtin_printf): Likewise.
5296 (do_mpfr_remquo): Use a proper type for the assigned constant.
5297 (do_mpfr_lgamma_r): Likewise.
5298 * dwarf2out.c (resolve_one_addr): Use size_int.
5299 * except.c (init_eh): Likewise.
5300 (assign_filter_values): Use integer_type_node for filter values.
5301 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5303 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5304 for EH region numbers.
5305 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5306 for the shift amount.
5308 2011-04-29 Richard Guenther <rguenther@suse.de>
5310 * expr.h (expand_shift): Rename to ...
5311 (expand_variable_shift): ... this.
5312 (expand_shift): Take a constant shift amount.
5313 * expmed.c (expand_shift): Rename to ...
5314 (expand_variable_shift): ... this.
5315 (expand_shift): New wrapper around expand_variable_shift.
5316 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5317 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5318 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5319 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5320 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5321 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5322 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5323 emit_store_flag_1, emit_store_flag): Likewise.
5324 * builtins.c (expand_builtin_signbit): Likewise.
5325 * calls.c (load_register_parameters): Likewise.
5326 * function.c (assign_parm_setup_block): Likewise.
5327 * lower-subreg.c (resolve_shift_zext): Likewise.
5328 * optabs.c (widen_bswap, expand_abs_nojump,
5329 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5330 * spu/spu.c (spu_expand_extv): Likewise.
5331 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5333 2011-04-29 Richard Guenther <rguenther@suse.de>
5335 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5336 for the remapped region number.
5337 * predict.c (build_predict_expr): Use integer_type_node for the
5339 * fold-const.c (fold_binary_loc): Use integer_type_node for
5340 the shift amount. Use a proper type for the PLUS_EXPR operand.
5342 2011-04-29 Michael Matz <matz@suse.de>
5344 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5345 other trees that just builtins.
5346 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5348 2011-04-29 Richard Guenther <rguenther@suse.de>
5350 * tree-nested.c (get_trampoline_type): Use size_int.
5351 (get_nl_goto_field): Likewise.
5352 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5354 (lower_eh_constructs_2): Likewise.
5355 (lower_resx): Likewise.
5356 (lower_eh_dispatch): Likewise.
5357 * tree-mudflap.c (mf_build_string): Use size_int.
5358 (mudflap_register_call): Use integer_type_node for the flag.
5359 (mudflap_enqueue_constant): Use size_int.
5360 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5361 instead of rebuilding it.
5363 2011-04-29 Richard Guenther <rguenther@suse.de>
5365 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5366 Handle OBJ_TYPE_REF.
5367 (find_func_aliases_for_call): Use it more consistently.
5369 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5371 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5372 (rank_for_schedule): Use it.
5373 (schedule_block): Set it.
5375 2011-04-28 David Li <davidxl@google.com>
5377 * tree.c (crc32_string): Use crc32_byte.
5378 (crc32_byte): New function.
5379 * tree.h (crc32_byte): New function.
5380 * gcov.c (read_graph_file): Handle new cfg_cksum.
5381 (read_count_file): Ditto.
5382 * profile.c (instrument_values): Ditto.
5383 (get_exec_counts): Ditto.
5384 (read_profile_edge_counts): Ditto.
5385 (compute_branch_probabilities): Ditto.
5386 (compute_value_histograms): Ditto.
5387 (branch_prob): Ditto.
5388 (end_branch_prob): Ditto.
5389 * coverage.c (read_counts_file): Ditto.
5390 (get_coverage_counts): Ditto.
5391 (tree_coverage_counter_addr): Ditto.
5392 (coverage_checksum_string): Ditto.
5393 (coverage_begin_output): Ditto.
5394 (coverage_end_function): Ditto.
5395 (build_fn_info_type): Ditto.
5396 (build_fn_info_value): Ditto.
5397 * libgcov.c (gcov_exit): Ditto.
5398 * gcov-dump.c (tag_function): Ditto.
5399 (compute_checksum): Remove.
5401 2011-04-29 Alan Modra <amodra@gmail.com>
5403 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5404 unspec plus offset. Tidy macho code.
5406 2011-04-29 Martin Jambor <mjambor@suse.cz>
5408 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5409 node instead of a decl. Update all callers.
5410 * cgraph.h: Update declaration.
5412 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5414 PR tree-optimization/48765
5415 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5416 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5417 to indicate if loop aware SLP is being used. Scan the statements
5418 and update the vectorization factor according to the type of
5419 vectorization before statement analysis.
5420 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5421 pass it to vect_analyze_loop_operations.
5422 (vectorizable_reduction): Set number of copies to 1 in case of pure
5424 * tree-vect-stmts.c (vectorizable_conversion,
5425 vectorizable_assignment, vectorizable_shift,
5426 vectorizable_operation, vectorizable_type_demotion,
5427 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5429 (vectorizable_condition): Move the check that it is not SLP
5430 vectorization before the number of copies check.
5431 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5432 to vectorize the loop using SLP.
5434 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5437 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5440 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5442 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5443 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5444 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5445 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5446 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5448 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5449 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5450 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5451 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5452 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5453 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5455 * config/i386/linux.h (REG_NAME): Don't define.
5456 * config/i386/linux64.h (REG_NAME): Don't define.
5457 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5458 Undefine before defining.
5460 2011-04-28 Jan Hubicka <jh@suse.cz>
5462 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5463 nonconstant_names array.
5464 (estimate_function_body_sizes): Build nonconstant_names array; handle
5465 BUILT_IN_CONSTANT_P.
5467 2011-04-28 Richard Guenther <rguenther@suse.de>
5471 2011-04-28 Richard Guenther <rguenther@suse.de>
5473 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5474 as late as possible.
5476 2011-04-28 Richard Guenther <rguenther@suse.de>
5478 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5479 (debug_constraint): Do it here.
5480 (dump_constraints): And here.
5481 (rewrite_constraints): And here.
5482 (dump_constraint_edge): Remove.
5483 (dump_constraint_graph): Rewrite to produce DOT output.
5484 (solve_constraints): Build succ graph as late as possible.
5485 Dump constraint graphs before and after solving.
5487 2011-04-28 Richard Guenther <rguenther@suse.de>
5489 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5490 New function split out from ...
5491 (find_func_aliases): ... here. Call it.
5492 (find_func_aliases_for_call): Likewise.
5494 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5496 * internal-fn.h (internal_fn_name_array): Declare.
5497 (internal_fn_flags_array): Likewise.
5499 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5501 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5502 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5504 (ssemodefsuffix): Remove.
5505 (ssevecmodesuffix): New mode attribute.
5506 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5507 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5508 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5509 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5510 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5511 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5512 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5513 ssemodesuffix mode attribute.
5514 (float splitters): Use ssevecmodesuffix mode attribute.
5515 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5516 (sseinsmode): Rename from avxvecmode.
5517 (avxsizesuffix): Rename from avxmodesuffix.
5518 (sseintvecmode): Rename from avxpermvecmode.
5519 (ssedoublevecmode): Rename from ssedoublesizemode.
5520 (ssehalfvecmode): Rename from avxhalfvecmode.
5521 (ssescalarmode): Rename from avxscalarmode.
5522 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5523 templates for ssemodesuffix mode attribute.
5524 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5527 Adjust RTX patterns globally for renamed mode attributes.
5529 2011-04-27 Jan Hubcika <jh@suse.cz>
5531 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5532 * ipa-inline-analysis.c: Include alloc-pool.h.
5533 (edge_predicate_pool): New.
5534 (trye_predicate_p): New function
5535 (false_predicate_p): New function.
5536 (add_clause): Sanity check that false clauses are "optimized";
5537 never add clauses to predicate that is already known to be false.
5538 (and_predicate): Use flase_predicate_p.
5539 (evaulate_predicate): Rename to ...
5540 (evaluate_predicate): ... this one; update all callers; assert
5541 that false is not listed among possible truths.
5542 (dump_predicate): Use true_predicate_p.
5543 (account_size_time): Use false_predicate_p.
5544 (evaulate_conditions_for_edge): Rename to ...
5545 (evaluate_conditions_for_edge) ... this one.
5546 (edge_set_predicate): New function.
5547 (inline_edge_duplication_hook): Duplicate edge predicates.
5548 (inline_edge_removal_hook): Free edge predicates.
5549 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5550 (dump_inline_summary): Update.
5551 (estimate_function_body_sizes): Set edge predicates.
5552 (estimate_calls_size_and_time): Handle predicates.
5553 (estimate_callee_size_and_time): Update.
5554 (remap_predicate): Add toplev_predicate; update comment.
5555 (remap_edge_predicates): New function.
5556 (inline_merge_summary): Compute toplev predicate; update.
5557 (read_predicate): New function.
5558 (read_inline_edge_summary): Use it.
5559 (inline_read_section): Likewise.
5560 (write_predicate): New function.
5561 (write_inline_edge_summary): Use it.
5562 (inline_write_summary): Likewise.
5563 (inline_free_summary): Free alloc pool and edge summary vec.
5565 2011-04-27 Richard Guenther <rguenther@suse.de>
5567 * tree-ssa-structalias.c (changed_count): Remove.
5568 (changed): Use a bitmap.
5569 (unify_nodes): Adjust.
5570 (do_sd_constraint): Likewise.
5571 (do_ds_constraint): Likewise.
5572 (do_complex_constraint): Likewise.
5573 (solve_graph): Likewise.
5575 2011-04-27 Jan Hubicka <jh@suse.cz>
5577 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5579 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5581 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5582 (avx_vperm2f128_*_operand): Ditto.
5583 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5584 Use avx_vpermilp_parallel in insn condition.
5585 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5586 Use avx_vperm2f128_parallel in insn condition.
5588 2011-04-27 Richard Guenther <rguenther@suse.de>
5590 * Makefile.in (tree-ssa-structalias.o): Remove
5591 gt-tree-ssa-structalias.h dependency.
5592 (GTFILES): Remove tree-ssa-structalias.c.
5593 * tree.c (allocate_decl_uid): New function.
5594 (make_node_stat): Use it.
5595 (copy_node_stat): Likewise.
5596 * tree.h (allocate_decl_uid): Declare.
5597 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5598 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5599 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5600 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5601 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5602 (struct heapvar_map): Likewise.
5603 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5604 heapvar_insert): Likewise.
5605 (make_heapvar_for): Rename to ...
5606 (make_heapvar): ... this. Simplify.
5607 (fake_var_decl_obstack): New global var.
5608 (build_fake_var_decl): New function.
5609 (make_constraint_from_heapvar): Adjust.
5610 (handle_lhs_call): Likewise.
5611 (create_function_info_for): Likewise.
5612 (intra_create_variable_infos): Likewise.
5613 (init_alias_vars): Allocate fake_var_decl_obstack.
5614 (init_alias_heapvars, delete_alias_heapvars): Remove.
5615 (compute_points_to_sets): Do not call init_alias_heapvars.
5616 (ipa_pta_execute): Likewise.
5617 (delete_points_to_sets): Free fake_var_decl_obstack.
5619 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5621 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5622 (si_from_UTItype, si_to_UTItype): New functions.
5623 (__udivmodti4): Use them to implement type-punning.
5624 * config/spu/multi3.c (union qword_TItype): New data type.
5625 (si_from_TItype, si_to_TItype): New functions.
5626 (__multi3): Use them to implement type-punning.
5628 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5630 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5632 2011-04-27 Jan Hubicka <jh@suse.cz>
5634 * ipa-prop.c (function_insertion_hook_holder): New holder.
5635 (ipa_add_new_function): New function.
5636 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5637 Register/deregister holder.
5639 2011-04-27 Richard Guenther <rguenther@suse.de>
5641 PR tree-optimization/48772
5642 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5644 2011-04-27 Richard Guenther <rguenther@suse.de>
5646 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5647 TARGET_MEM_REF handling.
5649 2011-04-27 Nick Clifton <nickc@redhat.com>
5651 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5652 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5653 (REG_CLASS_NAMES): Likewise.
5654 (REG_CLASS_CONTENTS): Likewise.
5655 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5656 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5657 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5658 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5659 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5660 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5661 duplicate register classes.
5662 (frv_class_likely_spilled_p): Likewise.
5663 (frv_register_move_cost): Likewise.
5665 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5666 end of the regno_reg_class array.
5668 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5671 * c-typeck.c (build_binary_op): Don't wrap arguments if
5672 int_operands is true.
5674 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5677 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5678 targetm.calls.must_pass_in_stack for void type.
5680 2011-04-26 Jan Hubicka <jh@suse.cz>
5682 * cgraphbuild.c (build_cgraph_edges): Update call
5683 of cgraph_create_edge and cgraph_create_indirect_edge.
5684 * cgraph.c (cgraph_create_edge_including_clones,
5685 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5686 cgraph_update_edges_for_call_stmt_node): Do not take nest
5687 argument; do not initialize call_stmt_size/time.
5688 (dump_cgraph_node): Do not dump nest.
5689 (cgraph_clone_edge): Do not take loop_nest argument;
5690 do not propagate it; do not clone call_stmt_size/time.
5691 (cgraph_clone_node): Likewise.
5692 (cgraph_create_virtual_clone): Update.
5693 * cgraph.h (struct cgraph_edge): Remove
5694 call_stmt_size/call_stmt_time/loop_nest.
5695 (cgraph_create_edge, cgraph_create_indirect_edge,
5696 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5698 * tree-emutls.c (gen_emutls_addr): Update.
5699 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5700 loop_nest; handle indirect calls, too.
5701 (clone_inlined_nodes): Do not care about updating inline summaries.
5702 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5703 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5704 stream call_stmt_size/call_stmt_time/loop_nest.
5705 * ipa-inline.c (edge_badness): Update.
5706 (ipa_inline): dump summaries after inlining.
5707 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5709 (inline_edge_summary): New function.
5710 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5711 (inline_edge_removal_hook): Handle edge summaries.
5712 (inline_edge_duplication_hook): New hook.
5713 (inline_summary_alloc): Alloc hooks.
5714 (initialize_growth_caches): Do not register removal hooks.
5715 (free_growth_caches); Do not free removal hook.
5716 (dump_inline_edge_summary): New function.
5717 (dump_inline_summary): Use it.
5718 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5719 (inline_update_callee_summaries): New function.
5720 (inline_merge_summary): Use it.
5721 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5722 (read_inline_edge_summary): New function.
5723 (inline_read_section): Use it.
5724 (write_inline_edge_summary): New function.
5725 (inline_write_summary): Use it.
5726 (inline_free_summary): Free edge new holders.
5727 * tree-inline.c (copy_bb): Update.
5729 2011-04-26 Jason Merrill <jason@redhat.com>
5731 * tree-eh.c (lower_try_finally_switch): Create the label along with
5732 the CASE_LABEL_EXPR.
5734 2011-04-26 David S. Miller <davem@davemloft.net>
5735 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5737 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5738 * configure: Regenerate.
5740 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5743 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5745 (VEC_reduc): New code iterator and splitters for vector reduction.
5746 (VEC_reduc_name): Ditto.
5747 (VEC_reduc_rtx): Ditto.
5748 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5749 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5751 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5752 support for extracting SF on VSX.
5754 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5755 generating xscvspdp.
5756 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5757 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5758 double add, minimum, maximum vector reduction.
5759 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5760 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5761 optimize double vector reduction.
5762 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5764 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5766 * config/fr30/fr30.h (inhibit_libc): Don't define.
5767 * config/m32r/m32r-protos.h: Correct comment.
5768 * config/v850/v850.h (GHS_default_section_names,
5769 GHS_current_section_names): Use tree, not union tree_node *.
5771 2011-04-26 Xinliang David Li <davidxl@google.com>
5773 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5774 * c-family/c-opts.c (c_common_handle_option): Set
5775 warn_maybe_uninitialized.
5776 * opts.c (common_handle_option): Ditto.
5777 * common.opt: New option.
5778 * tree-ssa.c (warn_uninit): Add one more parameter.
5779 (warn_uninitialized_var): Pass warning code.
5780 * tree-flow.h: Interface change.
5782 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5784 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5785 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5786 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5788 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5790 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5791 * config/mips/mips.opt (mmips-tfile): Remove.
5793 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5794 mips-tdump reference to ...
5795 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5796 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5797 reference by Tru64 UNIX.
5799 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5802 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5803 is error_mark_node, set value to NULL.
5805 PR tree-optimization/48734
5806 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5807 if return value from maybe_fold_*_comparsions isn't something
5808 the code is prepared to handle.
5810 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5812 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5814 (ext_QIreg_nomode_operands): Remove.
5815 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5819 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5821 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5823 2011-04-26 Richard Guenther <rguenther@suse.de>
5825 * c-typeck.c (build_unary_op): Do not expand array-refs via
5826 pointer arithmetic. Only adjust qualifiers for function types.
5828 2011-04-26 Richard Guenther <rguenther@suse.de>
5831 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5832 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5833 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5834 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5836 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5838 * doc/extend.texi: Document __underlying_type.
5840 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5842 * config/rs6000/titan.md (automata_option "progress"): Remove.
5844 2011-04-25 Jeff Law <law@redhat.com>
5846 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5848 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5850 * system.h (ENUM_BITFIELD): Remove.
5852 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5853 Eric Botcazou <ebotcazou@adacore.com>
5855 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5856 for STORE_FLAG_VALUE==-1 case.
5858 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5861 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5862 LEGITIMATE_PIC_OPERAND_P.
5864 2011-04-24 Jan Hubicka <jh@suse.cz>
5866 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5868 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5869 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5870 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5871 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5872 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5873 Sanity check predicate length.
5874 (remap_predicate): Likewise; sanity check jump functions.
5875 (inline_read_section, inline_write_summary): Sanity check
5878 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5881 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5882 __is_literal_type, and __is_trivial; update throughout about
5883 possibly cv-qualified void types.
5885 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5887 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5888 testsuite and make it version agnostic.
5890 2011-04-22 Jan Hubicka <jh@suse.cz>
5892 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5894 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5897 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5898 to VOID_TYPE even around MODIFY_EXPR.
5900 2011-04-22 Mike Stump <mikestump@comcast.net>
5902 * gensupport.c (read_md_rtx): Fix typo in comment.
5903 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5906 2011-04-22 Jan Hubicka <jh@suse.cz>
5908 * gengtype.c (open_base_files): Add ipa-inline.h include.
5909 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5910 ipa-prop.c; update all uses.
5911 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5912 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5913 merge summary of inlined function into former caller.
5914 * ipa-inline.c (max_benefit): Remove.
5915 (edge_badness): Compensate for removal of benefits.
5916 (update_caller_keys): Use
5917 reset_node_growth_cache/reset_edge_growth_cache.
5918 (update_callee_keys): Likewise.
5919 (update_all_callee_keys): Likewise.
5920 (inline_small_functions): Do not collect max_benefit; do not reset
5921 estimated_growth; call free_growth_caches and initialize_growth_caches.
5922 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5923 struct size_time_entry): New structures.
5924 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5925 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5926 and estimated_growth.
5927 (edge_growth_cache_entry): New structure.
5928 (node_growth_cache, edge_growth_cache): New global vars.
5929 (estimate_growth): Turn into inline.
5930 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5931 initialize_growth_caches, free_growth_caches): Declare.
5932 (estimate_edge_growth): Rewrite.
5933 (estimate_edge_time): Implement as inline cache lookup.
5934 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5936 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5937 (NUM_CONDITIONS): New constant.
5938 (predicate_conditions): New enum.
5939 (IS_NOT_CONSTANT): New constant.
5940 (edge_removal_hook_holder): New var.
5941 (node_growth_cache, edge_growth_cache): New global vars.
5942 (true_predicate, single_cond_predicate, false_predicate,
5943 not_inlined_predicate, add_condition, add_clause, and_predicates,
5944 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5945 dump_clause, dump_predicate, account_size_time,
5946 evaulate_conditions_for_edge): New functions.
5947 (inline_summary_alloc): Move to heap.
5948 (inline_node_removal_hook): Clear condition and entry vectors.
5949 (inline_edge_removal_hook): New function.
5950 (initialize_growth_caches, free_growth_caches): New function.
5951 (dump_inline_summary): Update.
5952 (edge_execution_predicate): New function.
5953 (will_be_nonconstant_predicate): New function.
5954 (estimate_function_body_sizes): Compute BB and constantness predicates.
5955 (compute_inline_parameters): Do not clear estimated_growth.
5956 (estimate_edge_size_and_time): New function.
5957 (estimate_calls_size_and_time): New function.
5958 (estimate_callee_size_and_time): New function.
5959 (remap_predicate): New function.
5960 (inline_merge_summary): New function.
5961 (do_estimate_edge_time): New function based on...
5962 (estimate_edge_time): ... this one.
5963 (do_estimate_edge_growth): New function.
5964 (do_estimate_growth): New function based on....
5965 (estimate_growth): ... this one.
5966 (inline_analyze_function): Analyze after deciding on jump functions.
5967 (inline_read_section): New function.
5968 (inline_read_summary): Use it.
5969 (inline_write_summary): Write all the new data.
5970 * ipa-prop.c (ipa_get_param_decl_index): Export.
5971 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5972 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5974 (ipa_get_lattice): Move here from ipa-cp.c
5975 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5976 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5977 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5978 cgraph_edge_inlinable_p): Remove.
5979 * cgraphunit.c: Include ipainline.h
5980 (cgraph_process_new_functions): Update call of
5981 compute_inline_parameters.
5983 2011-04-22 Richard Guenther <rguenther@suse.de>
5985 * tree.c (build_int_cst): Properly create canonicalized integer
5987 (build_int_cst_type): Remove scary comments.
5989 2011-04-22 Xinliang David Li <davidxl@google.com>
5991 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5992 by default when -Wno-error is not specified.
5993 * opts-global.c (decode_options): Remove call to
5994 control_warning_options.
5996 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5998 PR tree-optimization/48717
5999 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6000 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6002 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6004 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6005 definition where used.
6007 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6010 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6011 TREE_STATIC variables declared inside of some OpenMP construct.
6013 2011-04-22 Martin Jambor <mjambor@suse.cz>
6016 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6018 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6021 * c-typeck.c (pop_init_level): Do not warn about initializing
6024 2011-04-22 Alan Modra <amodra@gmail.com>
6026 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6027 when returning call_cookie.
6028 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6029 pointers, to functions with no more vector args than the current
6030 function, and some non-local calls for ABI_V4.
6031 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6032 sibcall_nonlocal_aix64): Combine to ..
6033 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6034 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6035 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6036 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6037 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6039 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6040 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6041 sibcall_value_symbolic_64): Delete.
6043 2011-04-21 Xinliang David Li <davidxl@google.com>
6045 * cgraph.h: Remove pid.
6046 * cgraph.c: Remove pid.
6047 * value-prof.c (init_node_map): New function.
6048 (del_node_map): New function.
6049 (find_func_by_funcdef_no): New function.
6050 (gimple_ic_transform): Call new function.
6051 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6052 * function.c (get_last_funcdef_no): New function.
6053 * function.h (get_last_funcdef_no): New function.
6054 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6055 to libgcov function.
6056 (tree-profiling): Call node map init and delete function.
6058 2011-04-21 Ian Lance Taylor <iant@google.com>
6060 * godump.c (go_format_type): Use exported Go name for anonymous
6063 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6065 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6066 Call builtin_function_type_list instead of builtin_function_type.
6067 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6069 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6071 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6072 build_function_type_list instead of build_function_type.
6073 Delete variable `endlink'.
6075 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6077 * config/s390/s390.c (s390_init_builtins): Call
6078 build_function_type_list instead of build_function_type.
6080 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6082 * config/ia64/ia64.c (ia64_init_builtins): Call
6083 build_function_type_list instead of builtin_function_type.
6085 2011-04-21 Easwaran Raman <eraman@google.com>
6087 * cfgexpand.c (stack_var): Remove OFFSET...
6088 (add_stack_var): ...and its reference here...
6089 (expand_stack_vars): ...and here.
6090 (stack_var_cmp): Sort by descending order of size.
6091 (partition_stack_vars): Change heuristic.
6092 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6093 (dump_stack_var_partition): Add newline after each partition.
6095 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6096 Jeff Law <law@redhat.com>
6098 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6099 * gengtype.c (matching_file_name_substitute): Likewise.
6101 2011-04-21 Richard Guenther <rguenther@suse.de>
6104 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6106 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6108 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6110 2011-04-21 Richard Guenther <rguenther@suse.de>
6112 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6115 2011-04-21 Richard Guenther <rguenther@suse.de>
6117 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6118 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6119 Use DECL_P, not SSA_VAR_P.
6120 (ptr_derefs_may_alias_p): Likewise.
6121 (ptr_deref_may_alias_ref_p_1): Likewise.
6122 (decl_refs_may_alias_p): Likewise.
6123 (refs_may_alias_p_1): Likewise.
6124 (ref_maybe_used_by_call_p_1): Likewise.
6125 (call_may_clobber_ref_p_1): Likewise.
6126 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6127 are either MEM_REF or TARGET_MEM_REF.
6128 (indirect_refs_may_alias_p): Likewise.
6129 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6130 for MEM_EXPR of indirect calls.
6132 2011-04-21 Tristan Gingold <gingold@adacore.com>
6134 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6135 (dst_file_info_struct): Remove flen field.
6136 (lookup_filename): Remove code that set flen field.
6138 2011-04-21 Tristan Gingold <gingold@adacore.com>
6140 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6142 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6145 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6146 vec_extract and vec_concat for non-SSE4_1 targets.
6148 2011-04-21 Richard Guenther <rguenther@suse.de>
6150 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6153 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6155 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6157 (FILE): Don't undefine.
6159 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6161 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6163 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6165 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6166 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6167 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6169 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6170 definitions where used.
6171 * config/microblaze/microblaze.h (struct microblaze_args): Use
6172 rtx, not struct rtx_def *.
6173 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6175 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6176 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6177 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6178 not struct rtx_def *.
6179 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6181 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6183 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6185 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6187 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6188 operand_equal_p to compare DR_BASE_ADDRESSes.
6189 (vect_check_interleaving): Likewise.
6191 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6194 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6195 for all Neon struct constants.
6197 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6199 * target.def (legitimate_constant_p): New hook.
6200 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6201 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6202 * doc/tm.texi: Regenerate.
6203 * hooks.h (hook_bool_mode_rtx_true): Declare.
6204 * hooks.c (hook_bool_mode_rtx_true): Define.
6205 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6206 * calls.c (precompute_register_parameters): Replace uses of
6207 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6208 (emit_library_call_value_1): Likewise.
6209 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6210 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6211 * ira-costs.c (scan_one_insn): Likewise.
6212 * recog.c (general_operand, immediate_operand): Likewise.
6213 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6214 * reload1.c (init_eliminable_invariants): Likewise.
6216 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6218 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6219 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6221 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6222 * config/alpha/predicates.md (input_operand): Update call to
6223 alpha_legitimate_constant_p.
6225 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6226 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6227 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6228 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6229 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6230 (arm_legitimate_constant_p): New functions.
6231 (arm_cannot_force_const_mem): Make static.
6233 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6235 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6236 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6237 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6238 instead of bfin_legitimate_constant_p.
6239 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6240 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6242 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6244 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6246 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6247 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6248 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6249 (frv_legitimate_constant_p): Make static. Add a mode argument.
6251 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6252 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6253 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6255 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6256 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6257 * config/i386/i386.c (legitimate_constant_p): Rename to...
6258 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6260 (ix86_cannot_force_const_mem): Update accordingly.
6261 (ix86_legitimate_address_p): Likewise.
6262 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6263 * config/i386/i386.md: Update commentary.
6265 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6266 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6267 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6268 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6270 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6272 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6273 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6274 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6275 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6277 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6278 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6279 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6281 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6282 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6283 (m32r_legitimate_constant_p): New function.
6285 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6286 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6287 LEGITIMATE_CONSTANT_P.
6288 (LEGITIMATE_CONSTANT_P): Delete.
6289 * config/m68k/m68k.c (m68k_expand_prologue): Call
6290 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6291 (m68k_legitimate_constant_p): New function.
6292 * config/m68k/m68k.md: Update comments.
6294 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6295 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6296 (mcore_legitimate_constant_p): New function.
6298 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6299 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6300 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6301 Add a mode argument.
6302 (mep_legitimate_address): Update accordingly.
6303 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6305 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6307 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6308 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6309 static. Check OP's mode for VOIDmode.
6310 (microblaze_legitimate_constant_p): New function.
6311 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6313 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6314 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6315 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6316 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6317 * config/mips/predicates.md: Update comments.
6319 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6320 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6321 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6322 (mmix_legitimate_constant_p): Make static, return a bool, and take
6324 (mmix_print_operand_address): Update accordingly.
6326 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6328 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6329 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6330 static. Add a mode argument.
6331 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6333 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6335 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6336 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6337 (pa_legitimate_constant_p): New function.
6339 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6341 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6342 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6343 (pdp11_legitimate_constant_p): New function.
6345 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6346 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6347 (rs6000_legitimate_constant_p): New function.
6349 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6350 (rx_legitimate_constant_p): ...this.
6351 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6352 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6353 (rx_legitimate_constant_p): ...this.
6354 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6355 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6357 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6358 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6359 * config/s390/s390.c (legitimate_constant_p): Rename to...
6360 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6361 and add a mode argument.
6362 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6364 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6366 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6367 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6368 (sh_legitimate_constant_p): New function.
6370 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6371 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6372 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6373 (legitimate_constant_p): Rename to...
6374 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6376 (constant_address_p): Update accordingly.
6378 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6379 argument and return a bool.
6380 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6381 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6382 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6383 (spu_rtx_costs): Update accordingly.
6384 * config/spu/predicates.md (vec_imm_operand): Likewise.
6386 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6388 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6389 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6390 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6392 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6393 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6394 * config/vax/vax.c (legitimate_constant_p): Likewise.
6396 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6397 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6398 (xtensa_legitimate_constant_p): New function.
6400 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6402 * target.def (cannot_force_const_mem): Add a mode argument.
6403 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6404 * doc/tm.texi: Regenerate.
6405 * hooks.h (hook_bool_mode_rtx_false): Declare.
6406 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6407 (hook_bool_mode_const_rtx_true): Likewise.
6408 (hook_bool_mode_rtx_false): New function.
6409 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6410 to be non-VOID. Update call to cannot_force_const_mem.
6411 (find_reloads): Update accordingly.
6412 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6413 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6415 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6416 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6417 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6418 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6419 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6420 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6421 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6422 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6423 (m68k_cannot_force_const_mem): ...this new function.
6424 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6426 (mips_const_insns, mips_legitimize_const_move): Update calls.
6427 (mips_secondary_reload_class): Likewise.
6428 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6429 (pa_cannot_force_const_mem): ...this new function.
6430 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6431 (rs6000_cannot_force_const_mem): ...this new function.
6432 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6434 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6435 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6437 (xtensa_cannot_force_const_mem): ...this new function.
6439 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6441 * config/mips/mips.c (mips16_build_function_stub): Call
6442 build_function_type_list instead of build_function_type.
6443 (mips16_build_call_stub): Likewise.
6445 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6447 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6448 instead of build_function_type.
6450 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6452 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6453 instead of build_function_type.
6455 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6458 * config/i386/i386.md (insv): Change operand 0 constraint to
6459 "register_operand". Change operand 1 and 2 constraint to
6460 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6461 * config/i386/sse.md (sse4_1_pinsrb): Export.
6462 (sse2_pinsrw): Ditto.
6463 (sse4_1_pinsrd): Ditto.
6464 (sse4_1_pinsrq): Ditto.
6465 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6466 * config/i386/i386.c (ix86_expand_pinsr): New.
6468 2011-04-20 Easwaran Raman <eraman@google.com>
6470 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6471 containing union type only with -fstrict-aliasing.
6473 2011-04-20 Jim Meyering <meyering@redhat.com>
6475 Remove useless if-before-free tests.
6476 * calls.c (expand_call, save_area): Likewise.
6477 * cfgcleanup.c (try_forward_edges): Likewise.
6478 * collect2.c (collect_execute): Likewise.
6479 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6480 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6481 * coverage.c (coverage_checksum_string): Likewise.
6482 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6483 * cselib.c (cselib_init): Likewise.
6484 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6485 (df_set_clean_cfg): Likewise.
6486 * function.c (free_after_compilation): Likewise.
6487 * gcc.c (do_spec_1, main): Likewise.
6488 * gcov.c (create_file_names): Likewise.
6489 * gensupport.c (identify_predicable_attribute): Likewise.
6490 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6491 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6492 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6493 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6494 * ipa-pure-const.c (local_pure_const): Likewise.
6495 * ipa-reference.c (propagate): Likewise.
6496 * ira-costs.c (free_ira_costs): Likewise.
6497 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6498 * matrix-reorg.c (mat_free): Likewise.
6499 * prefix.c (get_key_value): Likewise.
6500 * profile.c (compute_value_histograms): Likewise.
6501 * reload1.c (free_reg_equiv): Likewise.
6502 * sched-deps.c (free_deps): Likewise.
6503 * sel-sched-ir.c (fence_clear): Likewise.
6504 * sese.c (set_rename, if_region_set_false_region): Likewise.
6505 * tree-data-ref.c (free_rdg): Likewise.
6506 * tree-eh.c (lower_try_finally): Likewise.
6507 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6508 * tree-ssa-live.c (delete_var_map): Likewise.
6509 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6510 * tree-ssa-pre.c (phi_trans_add): Likewise.
6512 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6514 PR tree-optimization/48611
6515 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6516 beyond ERT_MUST_NOT_THROW region.
6518 2011-04-20 Catherine Moore <clm@codesourcery.com>
6520 * config/mips/mips.opt (mfix-24k): New.
6521 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6522 * config/mips/mips.md (length): Increase by 4 for stores if
6524 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6525 all noreorder if fixing 24K errata.
6526 * doc/invoke.texi: Document mfix-24k.
6528 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6530 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6531 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6533 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6535 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6536 (const_ok_for_op): ... to here.
6538 2011-04-20 Kai Tietz <ktietz@redhat.com>
6540 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6541 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6543 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6545 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6547 2011-04-20 Richard Guenther <rguenther@suse.de>
6549 PR tree-optimization/47892
6550 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6553 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6555 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6557 2011-04-20 Tristan Gingold <gingold@adacore.com>
6559 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6561 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6565 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6566 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6567 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6568 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6569 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6571 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6574 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6575 (avr_asm_named_section, avr_asm_output_aligned_common,
6576 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6577 New functions to update...
6578 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6579 (avr_asm_init_sections): Overwrite section callbacks for
6580 data_section, bss_section.
6581 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6583 (avr_file_end): ...here.
6585 2011-04-20 Richard Guenther <rguenther@suse.de>
6588 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6589 objects and types here. Adjust for their offset before comparing.
6591 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6593 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6596 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6598 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6599 (GIMPLE_H): Include $(INTERNAL_FN_H).
6600 (OBJS-common): Add internal-fn.o.
6601 (internal-fn.o): New rule.
6602 * internal-fn.def: New file.
6603 * internal-fn.h: Likewise.
6604 * internal-fn.c: Likewise.
6605 * gimple.h: Include internal-fn.h.
6606 (GF_CALL_INTERNAL): New gf_mask.
6607 (gimple_statement_call): Put fntype into a union with a new
6609 (gimple_build_call_internal): Declare.
6610 (gimple_build_call_internal_vec): Likewise.
6611 (gimple_call_same_target_p): Likewise.
6612 (gimple_call_internal_p): New function.
6613 (gimple_call_internal_fn): Likewise.
6614 (gimple_call_fntype): Return null for internal calls.
6615 (gimple_call_set_fntype): Assert that the function is not internal.
6616 (gimple_call_set_fn): Likewise.
6617 (gimple_call_set_fndecl): Likewise.
6618 (gimple_call_set_internal_fn): New function.
6619 (gimple_call_addr_fndecl): Handle null functions.
6620 (gimple_call_return_type): Likewise null types.
6621 * gimple.c (gimple_build_call_internal_1): New function.
6622 (gimple_build_call_internal): Likewise.
6623 (gimple_build_call_internal_vec): Likewise.
6624 (gimple_call_same_target_p): Likewise.
6625 (gimple_call_flags): Handle calls to internal functions.
6626 (gimple_call_fnspec): New function.
6627 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6628 (gimple_has_side_effects): Handle null functions.
6629 (gimple_rhs_has_side_effects): Likewise.
6630 (gimple_call_copy_skip_args): Handle calls to internal functions.
6631 * cfgexpand.c (expand_call_stmt): Likewise.
6632 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6633 * gimple-fold.c (gimple_fold_call): Handle null functions.
6634 (gimple_fold_stmt_to_constant_1): Don't fold
6635 calls to internal functions.
6636 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6638 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6639 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6640 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6641 (do_warn_unused_result): Likewise.
6642 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6643 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6644 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6645 the target of a call.
6646 (initialize_hash_element): Update accordingly.
6647 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6648 (iterative_hash_hashable_expr): Handle calls to internal functions.
6649 (print_expr_hash_elt): Likewise.
6650 * tree-ssa-pre.c (can_value_number_call): Likewise.
6651 (eliminate): Handle null functions.
6652 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6653 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6654 (find_func_aliases): Likewise.
6655 * value-prof.c (gimple_ic_transform): Likewise.
6656 (gimple_indirect_call_to_profile): Likewise.
6657 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6658 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6660 2011-04-19 Jan Hubicka <jh@suse.cz>
6662 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6663 * ipa-inline.c (inline_small_functions): Compute summaries first,
6664 populate heap later.
6666 2011-04-19 Jan Hubicka <jh@suse.cz>
6668 * cgraph.h (save_inline_function_body): Remove.
6669 * ipa-inline-transform.c: New file, broke out of...
6670 * ipa-inline.c: ... this one; Update toplevel comment.
6671 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6673 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6674 (cgraph_mark_inline_edge): Rename to inline_call; move to
6675 ipa-inline-transform.c.
6676 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6677 move to ipa-inline-transform.c
6678 (recursive_inlining, inline_small_functions, flatten_function,
6679 ipa_inline, inline_always_inline_functions,
6680 early_inline_small_functions): Update.
6681 (inline_transform): Move to ipa-inline-transform.c.
6682 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6684 * Makefile.in (ipa-inline-transform.o): New file.
6685 * cgraphunit.c (save_inline_function_body): Move to
6686 ipa-inline-transform.c
6688 2011-04-19 DJ Delorie <dj@redhat.com>
6690 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6691 registers if we already know there aren't any.
6692 (m32c_emit_epilogue): Don't emit a barrier here.
6693 (m32c_emit_eh_epilogue): Likewise.
6694 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6695 operands at expand time.
6696 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6698 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6699 duplicates. Provide aliases instead.
6700 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6701 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6704 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6706 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6707 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6708 (general_or_i64_p, sparc_register_move_cost): New function.
6710 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6712 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6713 Add lynx, mipssde. Sort table.
6715 2011-04-19 Xinliang David Li <davidxl@google.com>
6717 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6720 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6723 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6724 is a SUBREG with non-MODE_INT mode inside of it.
6726 2011-04-19 Martin Jambor <mjambor@suse.cz>
6728 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6729 also according to actual contants.
6730 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6731 (gimple_fold_call): Use it.
6732 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6734 2011-04-19 Martin Jambor <mjambor@suse.cz>
6736 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6737 non-pointer assignments.
6739 2011-04-19 Martin Jambor <mjambor@suse.cz>
6741 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6742 account anc_offset and otr_type from the indirect edge info.
6743 * ipa-prop.c (get_ancestor_addr_info): New function.
6744 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6745 get_ancestor_addr_info, call it.
6746 (ipa_note_param_call): Do not initialize information about polymorphic
6747 calls, return the indirect call graph edge. Remove the last
6748 parameter, adjust all callers.
6749 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6750 parameters. Initialize polymorphic information in the indirect edge.
6752 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6755 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6756 the types if they have different enumeration identifiers.
6758 2011-04-19 Jan Hubicka <jh@suse.cz>
6760 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6761 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6762 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6763 (optimize_function_for_size_p) ... here.
6765 2011-04-19 Richard Guenther <rguenther@suse.de>
6768 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6771 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6773 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6774 if DECL_NO_INLINE_WARNING_P is set on the function.
6776 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6779 * reload1.c (inc_for_reload): Return void. All callers changed.
6780 (emit_input_reload_insns): Don't try to delete previous output
6781 reloads to a register, or record spill_reg_store for autoincs.
6783 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6785 * gengtype.h: Updated copyright year.
6786 (struct input_file_st): Add inpisplugin field.
6787 (type_fileloc): New function.
6789 (write_typed_struct_alloc_def): Add gcc_assert.
6790 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6791 (write_typed_alloc_defns): Don't output for plugin files.
6792 (input_file_by_name): Clear inpisplugin field.
6793 (main): Set inpisplugin field for plugin files.
6795 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6797 * gengtype-state.c (string_eq): New.
6798 (read_state): Use string_eq instead of strcmp when creating the
6801 2011-04-19 Wei Guozhi <carrot@google.com>
6804 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6805 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6807 * config/arm/constraints.md (Uu): New constraint.
6808 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6810 2011-04-19 Tristan Gingold <gingold@adacore.com>
6812 * config.gcc (-*-*-*vms): Added.
6813 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6815 * config/vms/vms-ld.c: New file.
6816 * config/vms/vms-ar.c: New file.
6817 * config/vms/t-vmsnative: New file.
6819 2011-04-18 Xinliang David Li <davidxl@google.com>
6821 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6823 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6826 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6827 if TREE_TYPE (v) is non-NULL.
6829 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6830 gimple_get_virt_mehtod_for_binfo.
6831 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6832 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6834 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6836 2011-04-18 Michael Matz <matz@suse.de>
6837 Steve Ellcey <sje@cup.hp.com>
6839 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6840 use its mode as source mode if it isn't VOIDmode.
6842 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6844 * doc/passes.texi: Fill crossref nodes.
6846 2011-04-18 Jim Meyering <meyering@redhat.com>
6848 Fix doubled-word typos in comments and strings
6849 * config/alpha/vms-unwind.h: s/for for/for/
6850 * config/arm/unwind-arm.h: Likewise.
6851 * config/microblaze/microblaze.c: Likewise.
6852 * config/sh/constraints.md: s/in in/in/
6853 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6855 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6857 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6858 (AVX_FLOAT_MODE_P): Ditto.
6859 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6860 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6861 (AVX_VEC_FLOAT_MODE_P): Ditto.
6862 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6863 (UNSPEC_MASKSTORE): Ditto.
6864 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6865 Merge from <sse>_movmsk<ssemodesuffix> and
6866 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6867 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6869 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6870 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6871 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6873 2011-04-18 Jan Hubicka <jh@suse.cz>
6875 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6877 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6878 (want_inline_function_called_once_p): Break out the logic from
6880 (edge_badness): Ensure that profile is not misupdated.
6881 (lookup_recursive_calls): Prioritize by call frequencies.
6882 (inline_small_functions): Move program size estimates here;
6883 actually process whole queue even when unit growth has been
6884 met. (to properly compute inline_failed reasons and for the
6885 case unit size decrease.) Revisit comments on recursive inlining.
6886 (ipa_inline): Remove unit summary code; first inline hot calls
6887 of functions called once, cold calls next.
6888 (order, nnodes): Remove unused variables.
6889 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6890 (GTFILES): Remove ipa-inline.c
6891 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6893 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6895 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6897 2011-04-18 Jie Zhang <jie@codesourcery.com>
6898 Richard Earnshaw <rearnsha@arm.com>
6900 * arm.c (neon_builtin_type_bits): Remove.
6901 (typedef enum neon_builtin_mode): New.
6902 (T_MAX): Don't define.
6903 (typedef enum neon_builtin_datum): Remove bits, codes[],
6904 num_vars and base_fcode. Add mode, code and fcode.
6905 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6906 VAR10): Change accordingly.
6907 (neon_builtin_data[]): Change accordingly
6908 (arm_init_neon_builtins): Change accordingly.
6909 (neon_builtin_compare): Remove.
6910 (locate_neon_builtin_icode): Remove.
6911 (arm_expand_neon_builtin): Change accordingly.
6913 * arm.h (enum arm_builtins): Move to ...
6914 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6916 * arm.c (arm_builtin_decl): Declare.
6917 (TARGET_BUILTIN_DECL): Define.
6918 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6919 (arm_builtin_decls[]): New.
6920 (arm_init_neon_builtins): Store builtin declarations in
6921 arm_builtin_decls[].
6922 (arm_init_tls_builtins): Likewise.
6923 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6924 (arm_builtin_decl): New.
6926 2011-04-18 Richard Guenther <rguenther@suse.de>
6928 * tree.c (upper_bound_in_type): Build properly canonicalized
6930 (lower_bound_in_type): Likewise.
6932 2011-04-18 Richard Guenther <rguenther@suse.de>
6934 * gimple.h (gimple_call_addr_fndecl): New function.
6935 (gimple_call_fndecl): Use it.
6936 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6938 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6939 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6941 2011-04-18 Richard Guenther <rguenther@suse.de>
6944 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6946 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6949 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6950 DECL_IN_CONSTANT_POOL without RTL.
6952 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6953 Ira Rosen <ira.rosen@linaro.org>
6956 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6957 to match neon_vzip/vuzp/vtrn_internal.
6958 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6959 outputs explicitly dependent on both inputs.
6960 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6962 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6964 PR tree-optimization/48616
6965 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6966 whether the shift is by scalar or vector based on whether all SLP
6967 scalar stmts have the same rhs.
6969 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6971 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6974 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6977 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6980 2011-04-17 Jan Hubicka <jh@suse.cz>
6982 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6983 * cgrpahunit.c (cgraph_finalize_function): Do not set
6984 finalized_by_frontend.
6985 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6986 finalized_by_frontend.
6988 2011-04-17 Jan Hubicka <jh@suse.cz>
6990 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6991 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6992 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6993 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6995 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6997 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6999 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7002 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7003 is non-null before accessing it.
7004 (input_cgraph): Remove trailing spaces.
7006 2011-04-17 Revital Eres <revital.eres@linaro.org>
7008 * params.def (sms-min-sc): New param flag.
7009 * modulo-sched.c (sms_schedule): Use it.
7010 * doc/invoke.texi (sms-min-sc): Document it.
7012 2011-04-17 Jan Hubicka <jh@suse.cz>
7014 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7015 present, also set gimple_call_set_cannot_inline.
7016 * ipa-inline.c: Update toplevel comment.
7018 (cgraph_clone_inlined_nodes): Fix linebreaks.
7019 (cgraph_check_inline_limits): Restructure to ...
7020 (caller_growth_limits): ... this one; be more tolerant
7021 on growth in nested inline chains; add explanatory comment;
7022 fix stack accounting thinko introduced by previous patch.
7023 (cgraph_default_inline_p): Remove.
7024 (report_inline_failed_reason): New function.
7025 (can_inline_edge_p): New function.
7026 (can_early_inline_edge_p): New function.
7027 (leaf_node_p): Move upwards in file.
7028 (want_early_inline_function_p): New function.
7029 (want_inline_small_function_p): New function.
7030 (want_inline_self_recursive_call_p): New function.
7031 (cgraph_edge_badness): Rename to ...
7032 (edge_badness) ... this one; fix linebreaks.
7033 (update_edge_key): Update call of edge_baddness; add
7034 detailed dump about queue updates.
7035 (update_caller_keys): Use can_inline_edge_p and
7036 want_inline_small_function_p.
7037 (cgraph_decide_recursive_inlining): Rename to...
7038 (recursive_inlining): Use can_inline_edge_p and
7039 want_inline_self_recursive_call_p; simplify and remove no longer
7041 (cgraph_set_inline_failed): Remove.
7042 (add_new_edges_to_heap): Use can_inline_edge_p and
7043 want_inline_small_function_p.
7044 (cgraph_decide_inlining_of_small_functions): Rename to ...
7045 (inline_small_functions): ... this one; cleanup; use
7046 can/want predicates; cleanup debug ouput; work edges till fibheap
7047 is exhausted and do not stop once unit growth is reached; remove
7048 later loop processing remaining edges.
7049 (cgraph_flatten): Rename to ...
7050 (flatten_function): ... this one; use can_inline_edge_p
7051 and can_early_inline_edge_p predicates.
7052 (cgraph_decide_inlining): Rename to ...
7053 (ipa_inline): ... this one; remove unreachable nodes before
7054 inlining functions called once; simplify the pass.
7055 (cgraph_perform_always_inlining): Rename to ...
7056 (inline_always_inline_functions): ... this one; use
7057 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7058 (cgraph_decide_inlining_incrementally): Rename to ...
7059 (early_inline_small_functions): ... this one; simplify
7060 using new predicates; cleanup; make dumps prettier.
7061 (cgraph_early_inlining): Rename to ...
7062 (early_inliner): newer inline regular functions into always-inlines;
7063 fix updating of call stmt summaries.
7064 (pass_early_inline): Update for new names.
7065 (inline_transform): Fix formating.
7066 (gate_cgraph_decide_inlining): Rename to ...
7067 (pass_ipa_inline): ... this one.
7068 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7069 * ipa-inline-analysis.c (dump_inline_summary): Update.
7070 (compute_inline_parameters): Do not compute disregard_inline_limits;
7071 look for mismatching arguments.
7072 (estimate_growth): Fix handlig of non-trivial self recursion.
7073 (inline_read_summary): Do not read info->disregard_inline_limits.
7074 (inline_write_summary): Do not write info->disregard_inline_limits.
7075 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7076 and move all checks into can_inline_edge_p predicate; re-enable code
7077 comparing optimization levels.
7078 (expand_call_inline): Do not test inline_forbidden_into_p.
7079 * Makefile.in (ipa-inline.o): Update arguments.
7081 2011-04-17 Revital Eres <revital.eres@linaro.org>
7083 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7085 2011-04-17 Revital Eres <revital.eres@linaro.org>
7087 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7089 2011-04-17 Michael Matz <matz@suse.de>
7091 PR tree-optimization/48622
7093 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7094 in same order as they're written.
7096 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7098 * config/pa/predicates.md: Reorganize and simplify predicates.
7099 Eliminate duplicate code checks.
7100 (arith_operand): Rename to arith14_operand
7101 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7102 * config/pa/pa.md: Use renamed operands.
7103 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7104 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7105 arith11_operand, adddi3_operand, indexed_memory_operand,
7106 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7107 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7108 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7109 move_dest_operand, move_src_operand, prefetch_cc_operand,
7110 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7111 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7112 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7113 div_operand, int5_operand, movb_comparison_operator,
7114 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7115 arith_double_operand, ireg_operand, lhs_lshift_operand,
7116 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7117 integer_store_memory_operand): Likewise.
7118 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7119 (integer_store_memory_operand, read_only_operand,
7120 function_label_operand, borx_reg_operand,
7121 non_hard_reg_operand): Likewise.
7122 (eq_neq_comparison_operator): Delete unused operator.
7123 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7124 function_label_operand.
7125 (emit_move_sequence): Likewise.
7127 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7129 * config/i386/sse.md (sseunpackmode): New mode attribute.
7130 (ssepackmode): Ditto.
7131 (vec_pack_trunc_<mode>): Macroize expander from
7132 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7133 (vec_unpacks_lo_<mode>): Macroize expander from
7134 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7135 (vec_unpacks_hi_<mode>): Macroize expander from
7136 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7137 (vec_unpacku_lo_<mode>): Macroize expander from
7138 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7139 (vec_unpacku_hi_<mode>): Macroize expander from
7140 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7141 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7142 ix86_expand_sse4_unpack.
7143 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7145 2011-04-16 Jan Hubicka <jh@suse.cz>
7147 * cgraphbuild.c: Include ipa-inline.h.
7148 (reset_inline_failed): Use initialize_inline_failed.
7149 * cgraph.c: Include ipa-inline.h.
7150 (cgraph_create_node_1): Do not initialize estimated_growth.
7151 (initialize_inline_failed): More to ipa-inline-analysis.c
7152 (dump_cgraph_node): Do not dump inline flags.
7153 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7154 and disregard_inline_limits flags.
7155 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7156 time, size, estimated_growth.
7157 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7159 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7160 DECL_DISREGARD_INLINE_LIMITS.
7161 (cgraph_analyze_function): Do not initialize
7162 node->local.disregard_inline_limits.
7163 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7164 inlinable, versionable and disregard_inline_limits.
7165 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7166 cgraph_check_inline_limits, cgraph_default_inline_p,
7167 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7168 add_new_edges_to_heap): Update.
7169 (cgraph_decide_inlining_of_small_function): Update; set
7170 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7171 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7172 cgraph_decide_inlining_incrementally): Update.
7173 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7174 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7175 time, size and estimated_growth parameters.
7176 (estimate_edge_growth): Update.
7177 (initialize_inline_failed): Declare.
7178 * ipa-split.c: Include ipa-inline.h
7179 (execute_split_functions): Update.
7180 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7181 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7182 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7183 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7184 estimated_growth to INT_MIN.
7185 (inline_node_duplication_hook): Likewise.
7186 (dump_inline_summary): Dump new fields.
7187 (compute_inline_parameters): Update.
7188 (estimate_edge_time, estimate_time_after_inlining,
7189 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7190 inline_write_summary):
7191 (initialize_inline_failed): Move here from cgraph.c.
7192 * tree-sra.c: Include ipa-inline.h.
7193 (ipa_sra_preliminary_function_checks): Update.
7194 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7197 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7199 * config/i386/sse.md (V16): New mode iterator.
7201 (AVXMODEQI, AVXMODEDI): Remove.
7202 (sse2, sse3): New mode attribute.
7203 (mov<mode>): Use V16 mode iterator.
7204 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7205 (push<mode>1): Use V16 mode iterator.
7206 (movmisalign<mode>): Ditto.
7207 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7208 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7209 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7210 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7211 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7212 avx_movdqu<avxmodesuffix>.
7213 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7214 *avx_movdqu<avxmodesuffix>.
7215 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7216 avx_lddqu<avxmodesuffix>.
7217 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7218 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7219 avx_movnt<AVXMODEDI:mode>.
7220 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7221 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7223 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7226 * haifa-sched.c (prune_ready_list, schedule_block): Use
7227 sched_pressure_p rather than flag_sched_pressure.
7229 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7231 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7232 cgraph_get_node instead of cgraph_get_create_node.
7234 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7236 * cfgexpand.c (expand_debug_expr): Use
7237 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7239 2011-04-15 Michael Matz <matz@suse.de>
7241 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7242 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7243 * function.c (gimplify_parameters): Ditto.
7244 * gimplify.c (gimplify_vla_decl): Ditto.
7246 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7247 (gimple_call_set_alloca_for_var): New inline function.
7248 (gimple_call_alloca_for_var_p): Ditto.
7249 * gimple.c (gimple_build_call_from_tree): Remember
7250 CALL_ALLOCA_FOR_VAR_P state.
7251 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7253 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7254 calls if they were for VLA objects.
7256 2011-04-15 Martin Jambor <mjambor@suse.cz>
7258 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7261 2011-04-15 Martin Jambor <mjambor@suse.cz>
7264 * tree-emutls.c (lower_emutls_function_body): Call
7265 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7268 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7270 * c-decl.c (detect_field_duplicates): Call
7271 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7273 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7275 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7276 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7277 * ipa-pure-const.c (check_stmt): Call it.
7278 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7280 2011-04-15 Richard Guenther <rguenther@suse.de>
7282 PR tree-optimization/48290
7283 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7284 Properly decide inhibiting propagation based on the valueized
7285 operand. Do loop-closed SSA form preserving here ...
7286 (init_copy_prop): ... not here.
7288 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7291 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7292 (*ieee_smax<mode>3): Likewise.
7294 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7296 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7297 Replace match_operand with match_dup for the third operand in
7300 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7302 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7303 to track processing of conditionals. Update all callers.
7304 (try_combine, simplify_if_then_else): Update.
7306 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7308 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7311 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7313 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7314 instead of match_operand for operand 3.
7316 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7318 * recog.h (insn_operand_data): Add an "allows_mem" field.
7319 * genoutput.c (output_operand_data): Initialize it.
7320 * optabs.c (maybe_legitimize_operand_same_code): New function.
7321 (maybe_legitimize_operand): Use it when matching the original
7324 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7326 * gimplify.c: Fix issues in comments throughout.
7327 (voidify_wrapper_expr): Fix long line.
7328 (build_stack_save_restore): Likewise.
7329 (gimplify_loop_expr): Likewise.
7330 (gimplify_compound_lval): Likewise.
7331 (gimplify_init_ctor_eval): Likewise.
7332 (gimplify_modify_expr_rhs): Likewise.
7333 (omp_notice_threadprivate_variable): Likewise.
7335 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7337 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7338 original one if this is not a builtin function.
7340 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7343 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7344 offset it as needed based on top 2 bits in operands[3], change
7345 MEM mode to SFmode and mask those 2 bits away from operands[3].
7347 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7349 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7350 change from objc_declare_protocols() to objc_declare_protocol().
7352 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7354 * config/i386/sse.md (sse4_1): New mode attribute.
7355 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7356 avx_blend<ssemodesuffix><avxmodesuffix> and
7357 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7358 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7359 avx_blendv<ssemodesuffix><avxmodesuffix> and
7360 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7361 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7362 avx_dp<ssemodesuffix><avxmodesuffix> and
7363 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7364 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7365 (sse4_1_packusdw): Merge with *avx_packusdw.
7366 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7367 (sse4_1_pblendw): Merge with *avx_pblendw.
7368 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7369 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7370 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7372 (sse4_1_round<ssescalarmodesuffix>): Merge with
7373 *avx_round<ssescalarmodesuffix>.
7374 (aesenc): Merge with *avx_aesenc.
7375 (aesenclast): Merge with *avx_aesenclast.
7376 (aesdec): Merge with *avx_aesdec.
7377 (aesdeclast): Merge with *avx_aesdeclast.
7378 (pclmulqdq): Merge with *pclmulqdq.
7379 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7381 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7383 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7386 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7387 (align_local_variable): This. Update DECL_ALIGN.
7388 (add_stack_var): Updated.
7389 (expand_one_stack_var): Likewise.
7391 2011-04-14 Richard Guenther <rguenther@suse.de>
7393 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7395 (dse_initialize_block_local_data, dse_leave_block,
7396 record_voperand_set, get_stmt_uid): Likewise.
7397 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7398 (dse_optimize_stmt): Remove voperand set handling code.
7399 Simplify and improve to handle any kind of killing stmt.
7400 (dse_record_phi): Remove.
7401 (dse_enter_block): Simplify.
7402 (tree_ssa_dse): Likewise.
7403 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7405 2011-04-14 Jan Hubicka <jh@suse.cz>
7407 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7408 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7409 (cgraph_local_info): Remove inline_summary.
7410 * ipa-cp.c: Include ipa-inline.h.
7411 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7412 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7414 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7415 (input_overwrite_node): Do not set inline summary.
7416 (input_node): Do not stream inline summary.
7417 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7418 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7419 growth; we do not have inline parameters computed for that anyway.
7420 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7421 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7422 (inline_summary_t): New type and VECtor.
7423 (debug_inline_summary, dump_inline_summaries): Declare.
7424 (inline_summary): Use VOCtor.
7425 (estimate_edge_growth): Kill hack computing call stmt size directly.
7426 * lto-section-in.c (lto_section_name): Add inline section.
7427 * ipa-inline-analysis.c: Include lto-streamer.h
7428 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7429 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7430 (inline_summary_vec): Define.
7431 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7432 dump_inline_summaries): New functions.
7433 (estimate_function_body_sizes): Properly compute size/time of outgoing
7435 (compute_inline_parameters): Alloc inline_summary; do not compute
7436 size/time of incomming calls.
7437 (estimate_edge_time): Avoid missing time summary hack.
7438 (inline_read_summary): Read inline summary info.
7439 (inline_write_summary): Write inline summary info.
7440 (inline_free_summary): Free all hooks and inline summary vector.
7441 * lto-streamer.h: Add LTO_section_inline_summary section.
7442 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7443 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7445 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7447 * tree-vectorizer.h (vect_strided_store_supported): Add a
7448 HOST_WIDE_INT argument.
7449 (vect_strided_load_supported): Likewise.
7450 (vect_permute_store_chain): Return void.
7451 (vect_transform_strided_load): Likewise.
7452 (vect_permute_load_chain): Delete.
7453 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7454 count argument. Check that the count is a power of two.
7455 (vect_strided_load_supported): Likewise.
7456 (vect_permute_store_chain): Return void. Update after above changes.
7457 Assert that the access is supported.
7458 (vect_permute_load_chain): Likewise.
7459 (vect_transform_strided_load): Return void.
7460 * tree-vect-stmts.c (vectorizable_store): Update calls after
7461 above interface changes.
7462 (vectorizable_load): Likewise.
7463 (vect_analyze_stmt): Don't check for strided powers of two here.
7465 2011-04-14 Richard Guenther <rguenther@suse.de>
7467 PR tree-optimization/48590
7468 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7469 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7470 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7471 BUILT_IN_STACK_SAVE.
7472 * tree-ssa-dce.c (propagate_necessity): Handle
7473 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7475 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7477 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7480 2011-04-14 Richard Guenther <rguenther@suse.de>
7482 * tree.h (get_object_alignment_1): Declare.
7483 * builtins.c (get_object_alignment_1): Split out worker from ...
7484 (get_object_alignment): ... here.
7485 * fold-const.c (get_pointer_modulus_and_residue): Use
7486 get_object_alignment_1.
7488 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7490 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7492 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7493 parameter. Generalise code to handle arrays as well as vectors.
7494 (vect_setup_realignment): Update accordingly.
7495 * tree-vect-stmts.c (vectorizable_store): Likewise.
7496 (vectorizable_load): Likewise.
7498 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7500 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7501 within the per-copy loop.
7503 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7505 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7508 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7510 * doc/options.texi (Negative): Explicitly mention that the
7511 Negative chain must be circular.
7513 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7515 * function.h (block_chainon): Declare.
7516 * function.c (block_chainon): Define.
7518 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7519 Eric Weddington <eric.weddington@atmel.com>
7520 Georg-Johann Lay <avr@gjlay.de>
7522 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7524 (avr_init_builtins, avr_expand_builtin,
7525 avr_expand_delay_cycles, avr_expand_unop_builtin,
7526 avr_expand_binop_builtin ): New functions.
7527 (avr_builtin_id): New enum
7528 (struct avr_builtin_description): New struct
7529 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7530 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7532 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7533 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7534 UNSPECV_DELAY_CYCLES): new enumeration values
7535 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7536 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7537 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7538 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7539 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7540 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7541 "fmulsu"): New insns
7543 * config/avr/avr-c.c: fix line endings
7544 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7545 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7546 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7547 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7548 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7550 * doc/extend.texi (AVR Built-in Functions): New node
7551 (Target Builtins): Add documentation of AVR
7554 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7557 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7558 alone. Error if non-const data has attribute progmem.
7560 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7562 * tree.h (struct tree_constructor): Include tree_typed instead of
7564 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7565 TS_TYPED instead of TS_COMMON.
7567 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7569 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7570 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7571 (sse2_psadbw): Merge with *avx_psadbw.
7572 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7573 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7574 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7575 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7576 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7577 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7578 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7579 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7580 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7581 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7582 (ssse3_palignrti): Merge with *avx_palignrti.
7584 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7586 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7587 * tree-ssanames.c (fini_ssanames): VEC_free it.
7588 (make_ssa_name_fn): Update for VECness of free_ssanames.
7589 (release_ssa_name, release_dead_ssa_names): Likewise.
7590 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7592 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7593 TS_TYPED instead of TS_COMMON.
7595 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7597 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7598 statistics_counter_event.
7599 * tree-ssa-copyrename.c (stats): Define.
7600 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7601 statistics_counter_event.
7602 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7603 (bswap_stats, widen_mul_stats): Define.
7604 (insert_reciprocals): Increment rdivs_inserted.
7605 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7606 rfuncs_inserted. Add calls to statistics_counter_event.
7607 (execute_cse_sincos_1): Increment inserted.
7608 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7609 statistics_counter_event.
7610 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7611 of bswap_stats. Add calls to statistics_counter_event.
7612 (convert_mult_to_widen): Increment widen_mults_inserted.
7613 (convert_plusminus_to_widen): Increment maccs_inserted.
7614 (convert_mult_to_fma): Increment fmas_inserted.
7615 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7616 calls to statistics_counter_event.
7618 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7620 PR rtl-optimization/48455
7621 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7622 `temp_costs->mem_cost'.
7624 2011-04-13 Jan Hubicka <jh@suse.cz>
7626 * ipa-inline.h: New file.
7627 * ipa-inline-analysis.c: New file. Broken out of ...
7628 * ipa-inline.c: ... this file; update toplevel comment;
7629 include ipa-inline.h
7630 (inline_summary): Move to ipa-inline.h
7631 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7632 ipa-inline-analysis.c.
7633 (cgraph_estimate_time_after_inlining): Rename to
7634 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7635 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7636 to estimate_edge_growth.
7637 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7638 rename to estimate_size_after_inlining.
7639 (cgraph_mark_inline_edge): Update for new naming convention.
7640 (cgraph_check_inline_limits): Likewise.
7641 (cgraph_edge_badness): Likewise.
7642 (cgraph_decide_recursive_inlining): Likewise.
7643 (cgraph_decide_inlining_of_small_functions): Likewise.
7644 (cgraph_decide_inlining_incrementally): Likewise.
7645 (cgraph_estimate_growth): Rename to estimate_growth; move to
7646 ipa-inline-analysis.c.
7647 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7648 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7649 (compute_inline_parameters): Likewise.
7650 (compute_inline_parameters_for_current): Likewise.
7651 (pass_inline_parameters): Likewise.
7652 (inline_indirect_intraprocedural_analysis): Likewise.
7653 (analyze_function): Rename to inline_analyze_function; likewise.
7654 (add_new_function): Move to ipa-inline-analysis.c.
7655 (inline_generate_summary): Likewise.
7656 (inline_read_summary): Likewise.
7657 (inline_write_summary): Likewise.
7658 * Makefile.in (ipa-inline-analysis.c): New file.
7660 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7662 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7663 * configure: Regenerate.
7665 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7667 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7668 instead of tree_common.
7669 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7671 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7672 TS_TYPED rather than TS_COMMON.
7673 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7675 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7678 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7679 r20 around calls of __tablejump_elpm__
7681 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7684 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7686 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7688 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7690 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7691 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7692 (cfi_vec): New typedef.
7693 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7694 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7695 (cie_cfi_vec): New static variable.
7696 (cie_cfi_head): Delete.
7697 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7698 declaration changed. Use vector rather than list operations.
7699 (new_cfi): Don't initialize the dw_cfi_next field.
7700 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7701 rather than list operations.
7702 (lookup_cfa): Use vector rather than list operations.
7703 (output_cfis): New argument upto. Accept a cfi_vec rather than
7704 a dw_cfi_ref list head as argument. All callers changed.
7705 Iterate over the vector using upto as a maximum index.
7706 (output_all_cfis): New static function.
7707 (output_fde): Use vector rather than list operations. Use the
7708 new upto argument for output_cfis rather than manipulating a
7710 (dwarf2out_begin_prologue): Change initializations to match
7712 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7713 from the vector length rather than searching for the end of a list.
7714 Use output_all_cfis.
7715 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7717 2011-04-13 Nick Clifton <nickc@redhat.com>
7719 * config/rx/rx.md (movmemsi): Do not use this pattern when
7720 volatile pointers are involved.
7722 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7724 * config/i386/sse.md (pinsrbits): Remove.
7725 (sse2_packsswb): Merge with *avx_packsswb.
7726 (sse2_packssdw): Merge with *avx_packssdw.
7727 (sse2_packuswb): Merge with *avx_packuswb.
7728 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7729 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7730 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7731 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7732 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7733 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7734 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7735 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7736 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7737 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7738 (sse2_loadld): Merge with *avx_loadld.
7739 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7740 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7741 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7742 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7743 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7745 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7747 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7749 * print-tree.c (print_node): Likewise.
7750 * tree-inline.c (copy_tree_r): Likewise.
7751 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7752 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7753 instead of TS_COMMON.
7754 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7755 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7756 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7757 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7758 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7760 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7762 (TREE_CHAIN): Check for a TS_COMMON structure.
7763 (TREE_TYPE): Check for a TS_TYPED structure.
7765 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7767 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7768 cgraph_get_create_node instead of cgraph_node.
7770 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7772 * c-parser.c (c_parser_initelt): Updated call to
7773 objc_build_message_expr.
7774 (c_parser_postfix_expression): Likewise.
7776 2011-04-12 Kai Tietz <ktietz@redhat.com>
7778 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7779 MASK_MS_BITFIELD_LAYOUT bit.
7781 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7783 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7784 assert it is always true.
7785 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7788 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7790 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7791 compiling Objective-C to be more efficient.
7793 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7795 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7798 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7800 * recog.h, genoutput.c, optabs.c: Revert last patch.
7802 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7805 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7807 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7809 * recog.h (insn_operand_data): Add an "allows_mem" field.
7810 * genoutput.c (output_operand_data): Initialize it.
7811 * optabs.c (maybe_legitimize_operand_same_code): New function.
7812 (maybe_legitimize_operand): Use it when matching the original
7815 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7817 * genpreds.c (process_define_predicate): Move most processing
7818 to gensupport.c. Continue to validate the expression.
7819 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7820 (process_define_predicate): Move processing to gensupport.c.
7821 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7822 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7823 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7825 (valid_predicate_name_p): New function, split out from old
7826 genpreds.c:process_define_predicate.
7827 (process_define_predicate): New function, combining code from
7828 old genpreds.c and genrecog.c functions.
7829 (process_rtx): Call it for DEFINE_PREDICATE and
7830 DEFINE_SPECIAL_PREDICATE.
7832 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7834 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7835 size of a '%A' memory reference.
7836 (T_DREG, T_QREG): New neon_builtin_type_bits.
7837 (arm_init_neon_builtins): Assert that the load and store operands
7838 are neon_struct_operands.
7839 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7840 (NEON_ARG_MEMORY): New builtin_arg.
7841 (neon_dereference_pointer): New function.
7842 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7843 Handle NEON_ARG_MEMORY.
7844 (arm_expand_neon_builtin): Update after above interface changes.
7845 Use NEON_ARG_MEMORY for loads and stores.
7846 * config/arm/predicates.md (neon_struct_operand): New predicate.
7847 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7848 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7849 (V_four_elem): Tweak formatting.
7850 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7851 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7852 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7853 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7854 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7855 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7856 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7857 Use %A in the output template.
7858 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7859 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7860 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7861 the width of the memory access. Remove post-increment.
7862 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7864 2011-04-12 Nick Clifton <nickc@redhat.com>
7866 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7867 instruction for interrupt handlers if the target is the basic V850
7869 (expand_epilogue): Likewise.
7871 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7873 PR rtl-optimization/48549
7874 * combine.c (propagate_for_debug): Also stop after BB_END of
7875 this_basic_block. Process LAST and just stop processing after it.
7876 (combine_instructions): If last_combined_insn has been deleted,
7877 set last_combined_insn to its PREV_INSN.
7879 2011-04-12 Richard Guenther <rguenther@suse.de>
7881 PR tree-optimization/46076
7882 * gimple.h (struct gimple_statement_call): Add fntype field.
7883 (gimple_call_fntype): Adjust.
7884 (gimple_call_set_fntype): New function.
7885 * gimple.c (gimple_build_call_1): Set the call function type.
7886 * gimplify.c (gimplify_call_expr): Preserve the function
7887 type the frontend used for the call.
7888 (gimplify_modify_expr): Likewise.
7889 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7891 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7893 * tree-ssa.c (useless_type_conversion_p): Function pointer
7894 conversions are useless.
7896 2011-04-12 Martin Jambor <mjambor@suse.cz>
7898 * cgraph.h (cgraph_node): Remove function declaration.
7899 (cgraph_create_node): Declare.
7900 (cgraph_get_create_node): Likewise.
7901 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7902 Updated all callers.
7903 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7904 the decl does not already exist. Call cgraph_get_create_node instead
7906 (cgraph_get_create_node): New function.
7907 (cgraph_same_body_alias): Update comment.
7908 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7909 assert it does not return NULL.
7910 (cgraph_update_edges_for_call_stmt): Likewise.
7911 (cgraph_clone_edge): Likewise.
7912 (cgraph_create_virtual_clone): Likewise.
7913 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7914 instead of cgraph_node.
7915 (cgraph_add_new_function): Call cgraph_create_node or
7916 cgraph_get_create_node instead of cgraph_node.
7917 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7918 instead of cgraph_node.
7919 (record_eh_tables): Likewise.
7920 (mark_address): Likewise.
7921 (mark_load): Likewise.
7922 (build_cgraph_edges): Call cgraph_get_create_node instead
7924 (rebuild_cgraph_edges): Likewise.
7925 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7926 instead of cgraph_node.
7927 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7929 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7930 cgraph_create_node instead of cgraph_node.
7931 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7933 * lto-cgraph.c (input_node): Likewise.
7934 * lto-streamer-in.c (input_function): Likewise.
7935 * varasm.c (mark_decl_referenced): Likewise.
7936 (assemble_alias): Likewise.
7938 2011-04-12 Martin Jambor <mjambor@suse.cz>
7940 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7941 instead of cgraph_node and assert it does not return NULL.
7942 * lto-streamer-in.c (lto_read_body): Likewise.
7943 * omp-low.c (new_omp_context): Likewise.
7944 (create_task_copyfn): Likewise.
7945 * tree-emutls.c (lower_emutls_function_body): Likewise.
7946 * matrix-reorg.c (transform_allocation_sites): Likewise.
7948 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7951 * c-typeck.c (build_asm_expr): Error out on attempts to use
7952 void type outputs or inputs for constraints that allow reg or
7955 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7956 Richard Earnshaw <rearnsha@arm.com>
7959 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7960 to use sign-magnitude offsets. Reject unsupported unaligned
7961 cases. Add detailed description in comments.
7962 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7963 condition from TARGET_32BIT to TARGET_ARM.
7965 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7967 * tree.h (struct typed_tree): New.
7968 (struct tree_common): Include it instead of tree_base.
7969 (TREE_TYPE): Update for new location of type field.
7970 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7971 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7972 (union tree_node): Add typed field.
7973 * treestruct.def (TS_TYPED): New.
7974 * lto-streamer.c (check_handled_ts_structures): Handle it.
7975 * tree.c (MARK_TS_TYPED): New macro.
7976 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7978 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7980 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7981 (force_nonfallthru): Do not alter the loop nest if no basic block
7984 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7986 * config/i386/sse.md (VI): New mode iterator.
7988 (AVX256MODEI): Ditto.
7989 (AVXMODEF4P): Ditto.
7990 (avxvecpsmode): Ditto.
7991 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7992 (sse2_andnot<mode>3): New expander.
7993 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7994 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7995 (<any_logic:code><mode>3): Use VI mode iterator.
7996 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7997 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7998 (*andnottf3): Handle AVX three-operand constraints.
7999 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8001 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8002 Robert Millan <rmh@gnu.org>
8004 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8005 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8006 GNU_USER_DYNAMIC_LINKER64): Define.
8007 (REG_NAME): Don't undefine.
8008 (MD_UNWIND_SUPPORT): Undefine.
8009 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8010 (REG_NAME): Don't undefine.
8011 (MD_UNWIND_SUPPORT): Undefine.
8012 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8014 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8016 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8017 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8019 2011-04-11 Xinliang David Li <davidxl@google.com>
8021 * value-profile.c (check_ic_target): New function.
8022 (gimple_ic_transform): Sanity check indirect call target.
8023 * gimple-low.c (gimple_check_call_args): Interface change.
8024 (gimple_check_call_matching_types): New function.
8025 * tree-inline.c (tree_can_inline_p): Call new function.
8027 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8029 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8030 tree-pretty-print.h & realmpfr.h.
8032 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8035 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8036 (setup_allocno_and_important_classes): Ditto.
8038 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8040 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8041 GNU_USER_DYNAMIC_LINKER.
8042 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8043 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8044 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8045 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8046 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8047 GNU_USER_TARGET_OS_CPP_BUILTINS.
8048 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8049 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8050 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8051 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8052 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8053 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8054 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8055 GNU_USER_TARGET_OS_CPP_BUILTINS.
8056 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8057 GNU_USER_DYNAMIC_LINKER.
8058 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8059 GNU_USER_TARGET_OS_CPP_BUILTINS.
8060 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8061 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8062 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8064 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8065 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8066 GNU_USER_DYNAMIC_LINKER64): Remove.
8067 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8068 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8069 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8070 GNU_USER_DYNAMIC_LINKER.
8071 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8072 GNU_USER_TARGET_OS_CPP_BUILTINS.
8073 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8074 GNU_USER_TARGET_OS_CPP_BUILTINS.
8075 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8076 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8077 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8078 GNU_USER_TARGET_OS_CPP_BUILTINS.
8079 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8080 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8081 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8082 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8083 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8084 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8085 GNU_USER_DYNAMIC_LINKER.
8086 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8087 GNU_USER_TARGET_OS_CPP_BUILTINS.
8088 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8089 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8090 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8091 GNU_USER_DYNAMIC_LINKER.
8092 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8093 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8094 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8095 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8096 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8097 GNU_USER_DYNAMIC_LINKER.
8098 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8099 GNU_USER_DYNAMIC_LINKERN32.
8100 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8101 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8102 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8103 GNU_USER_DYNAMIC_LINKER32.
8104 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8105 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8106 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8107 GNU_USER_DYNAMIC_LINKER.
8108 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8109 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8110 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8111 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8112 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8113 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8114 GNU_USER_DYNAMIC_LINKER32.
8115 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8116 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8117 GNU_USER_DYNAMIC_LINKER.
8118 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8119 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8120 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8121 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8122 GNU_USER_DYNAMIC_LINKER64.
8123 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8124 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8125 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8126 GNU_USER_DYNAMIC_LINKER.
8127 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8128 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8129 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8130 GNU_USER_DYNAMIC_LINKER.
8131 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8132 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8133 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8134 GNU_USER_DYNAMIC_LINKER32.
8135 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8136 GNU_USER_DYNAMIC_LINKER64.
8137 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8138 GNU_USER_DYNAMIC_LINKER64.
8139 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8140 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8141 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8142 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8143 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8145 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8147 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8148 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8149 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8150 GNU_USER_DYNAMIC_LINKER.
8151 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8152 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8153 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8154 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8155 GNU_USER_DYNAMIC_LINKER64.
8156 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8157 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8158 GNU_USER_LINK_EMULATION.
8159 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8160 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8161 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8162 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8163 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8164 CPP_SPEC, CC1_SPEC): Remove.
8165 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8166 (GNU_USER_DYNAMIC_LINKER): Define.
8167 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8168 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8169 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8170 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8171 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8172 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8173 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8174 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8175 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8176 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8177 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8178 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8179 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8180 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8181 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8182 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8183 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8184 GNU_USER_DYNAMIC_LINKER.
8185 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8186 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8187 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8188 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8189 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8190 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8191 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8192 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8193 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8194 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8196 2011-04-11 Kai Tietz <ktietz@redhat.com>
8200 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8201 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8203 (ix86_is_msabi_thiscall): Removed.
8204 (ix86_is_type_thiscall): Likewise.
8205 (ix86_get_callcvt): New function.
8206 (ix86_comp_type_attributes): Simplify check.
8207 (ix86_function_regparm): Use ix86_get_callcvt for calling
8208 convention attribute checks.
8209 (ix86_return_pops_args): Likewise.
8210 (ix86_static_chain): Likewise.
8211 (x86_this_parameter): Likewise.
8212 (x86_output_mi_thunk): Likewise.
8213 (ix86_function_type_abi): Optimize check for types without attributes.
8214 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8215 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8216 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8218 (IX86_BASE_CALLCVT): Helper macro.
8219 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8220 Use ix86_get_callcvt for calling convention attribute checks and avoid
8221 symbol-decoration for stdcall in TARGET_RTD case.
8222 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8224 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8227 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8229 * config/i386/sse.md (VI_128): New mode iterator.
8230 (VI12_128): Rename from SSEMODE12.
8231 (VI14_128): Rename from SSEMODE14.
8232 (VI124_128): New mode iterator.
8233 (VI24_128): Rename from SSEMODE248.
8234 (VI248_128): Rename from SSEMODE248.
8235 (SSEMODE124C8): Remove.
8236 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8237 (*sse2_<plusminus_insn><mode>3): Merge with
8238 *avx_<plusminus_insn><mode>3.
8239 (*mulv8hi3): Merge with *avx_mulv8hi3.
8240 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8241 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8242 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8243 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8244 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8245 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8246 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8247 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8248 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8249 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8250 (*<smaxmin:code>v8hi3): Ditto.
8251 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8252 (*<smaxmin:code>v16qi3): Ditto.
8253 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8254 (*sse2_eq<mode>3): Ditto.
8255 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8256 (*sse2_gt<mode>3): Ditto.
8257 (vcondv2di): Split out of vcond<mode>.
8258 (vconduv2di): Split out of vcondu<mode>.
8260 2011-04-11 Richard Guenther <rguenther@suse.de>
8262 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8263 before calling tree_low_cst.
8265 2011-04-11 Richard Guenther <rguenther@suse.de>
8267 * stor-layout.c (layout_type): Compute all array index size operations
8268 in the original type.
8269 (initialize_sizetypes): Add comment.
8270 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8272 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8274 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8276 2011-04-11 Martin Jambor <mjambor@suse.cz>
8278 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8279 of cgraph_node, handle NULL return value.
8280 (cgraph_global_info): Likewise.
8281 (cgraph_rtl_info): Likewise.
8282 * tree-inline.c (estimate_num_insns): Likewise.
8283 * gimplify.c (unshare_body): Likewise.
8284 (unvisit_body): Likewise.
8285 (gimplify_body): Likewise.
8286 * predict.c (optimize_function_for_size_p): Likewise.
8287 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8288 (call_may_clobber_ref_p_1): Likewise.
8289 * varasm.c (function_section_1): Likewise.
8290 (assemble_start_function): Likewise.
8292 2011-04-11 Martin Jambor <mjambor@suse.cz>
8294 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8296 * final.c (rest_of_clean_state): Likewise.
8297 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8298 * passes.c (pass_init_dump_file): Likewise.
8299 (execute_all_ipa_transforms): Likewise.
8300 (function_called_by_processed_nodes_p): Likewise.
8301 * predict.c (maybe_hot_frequency_p): Likewise.
8302 (probably_never_executed_bb_p): Likewise.
8303 (compute_function_frequency): Likewise.
8304 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8305 (unnest_nesting_tree_1): Likewise.
8306 (lower_nested_functions): Likewise.
8307 * tree-optimize.c (execute_fixup_cfg): Likewise.
8308 (tree_rest_of_compilation): Likewise.
8309 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8310 * tree-sra.c (ipa_early_sra): Likewise.
8311 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8312 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8313 * ipa.c (record_cdtor_fn): Likewise.
8314 * ipa-inline.c (cgraph_early_inlining): Likewise.
8315 (compute_inline_parameters_for_current): Likewise.
8316 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8317 * ipa-pure-const.c (local_pure_const): Likewise.
8318 * ipa-split.c (split_function): Likewise.
8319 (execute_split_functions): Likewise.
8320 * cgraphbuild.c (build_cgraph_edges): Likewise.
8321 (rebuild_cgraph_edges): Likewise.
8322 (cgraph_rebuild_references): Likewise.
8323 (remove_cgraph_callee_edges): Likewise.
8324 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8325 (verify_cgraph_node): Likewise.
8326 (cgraph_analyze_functions): Likewise.
8327 (cgraph_preserve_function_body_p): Likewise.
8328 (save_inline_function_body): Likewise.
8329 (save_inline_function_body): Likewise.
8330 * tree-inline.c (copy_bb): Likewise.
8331 (optimize_inline_calls): Likewise.
8333 2011-04-11 Martin Jambor <mjambor@suse.cz>
8335 PR tree-optimization/48195
8336 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8337 ipa_check_create_edge_args.
8338 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8339 ipa_check_create_edge_args.
8340 * ipa-inline.c (inline_generate_summary): Do not call
8341 ipa_check_create_node_params and ipa_check_create_edge_args.
8342 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8343 ipa_check_create_edge_args.
8345 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8347 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8349 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8350 * function.c (record_hard_reg_sets): Likewise.
8351 * ira.c (compute_regs_asm_clobbered): Likewise.
8352 * sched-deps.c (sched_analyze_1): Likewise.
8353 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8355 2011-04-09 Xinliang David Li <davidxl@google.com>
8357 PR tree-optimization/PR48484
8358 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8359 has_valid_pred lazily
8361 2011-04-09 Duncan Sands <baldrick@free.fr>
8363 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8365 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8367 * combine.c (combine_validate_cost): Adjust comments. Set registered
8368 cost of I0 to zero at the end, if any.
8370 2011-04-08 Xinliang David Li <davidxl@google.com>
8372 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8373 to insane profile data.
8375 2011-04-08 Xinliang David Li <davidxl@google.com>
8377 * ipa-cp.c (ipcp_update_profiling): Correct
8378 negative scale factor due to insane profile data.
8380 2011-04-08 Xinliang David Li <davidxl@google.com>
8382 * final.c (dump_basic_block_info): New function.
8383 (final): Dump basic block.
8384 (final_scan_insn): Remove old dump.
8386 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8389 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8392 2011-04-08 Michael Matz <matz@suse.de>
8395 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8397 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8398 * rtl.h (rebuild_jump_labels_chain): Declare.
8399 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8400 insns inserted on edges.
8402 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8404 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8405 * config/arm/arm-arches.def: New.
8406 * config/arm/arm-opts.h: New.
8407 * config/arm/genopt.sh: New.
8408 * config/arm/arm-tables.opt: New (generated).
8409 * config/arm/arm.c (arm_handle_option, arm_target_help,
8410 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8411 (all_architectures): Get most table contents from arm-arches.def.
8412 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8413 arm_selected_tune here.
8414 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8415 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8416 (march=, mcpu=, mtune=): Use Enum and Var.
8417 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8418 (arm.o): Update dependencies.
8420 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8422 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8424 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8425 (write_typed_alloc_defns): Likewise.
8426 (main): Calls write_typed_alloc_defns with output_header.
8428 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8431 * ira-color.c (setup_profitable_hard_regs): Add comments.
8432 Don't take prohibited hard regs into account.
8433 (setup_conflict_profitable_regs): Rename to
8434 get_conflict_profitable_regs.
8435 (check_hard_reg_p): Check prohibited hard regs.
8437 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8439 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8440 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8441 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8443 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8446 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8447 move from floating point to shift amount register.
8448 (emit_move_sequence): Remove secondary reload support for floating
8449 point to shift amount amount register copies.
8450 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8451 amount register copies.
8452 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8453 register, return false if mode isn't a scalar integer mode.
8454 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8456 2011-04-08 Richard Guenther <rguenther@suse.de>
8458 * gimple.c (gimple_call_flags): Remove kludge.
8460 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8462 * sel-sched.c (sel_region_init): Move call to
8463 sel_setup_region_sched_flags after setup_current_loop_nest.
8465 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8467 PR rtl-optimization/48272
8468 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8469 init_insn_reg_pressure_info. Adjust a caller.
8470 * sched-int.h (init_insn_reg_pressure_info): Declare.
8471 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8472 when sched-pressure is enabled.
8474 2011-04-08 Richard Guenther <rguenther@suse.de>
8476 * gimple.c (gimple_set_modified): Do not queue calls to
8477 MODIFIED_NORETURN_CALLS here ...
8478 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8480 2011-04-08 Richard Guenther <rguenther@suse.de>
8483 * toplev.c (lang_dependent_init): Do not open asm_out_file
8484 in WPA mode, nor perform debug machinery initialization.
8485 (finalize): Do not unlink asm_out_file in WPA mode.
8487 2011-04-08 Richard Guenther <rguenther@suse.de>
8489 * gimple.h (gimple_call_fntype): New function.
8490 (gimple_call_return_type): Use it.
8491 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8492 * gimple-low.c (gimple_check_call_args): Likewise.
8493 * gimple.c (gimple_call_flags): Likewise.
8494 (gimple_call_arg_flags): Likewise.
8495 (gimple_call_return_flags): Likewise.
8496 * tree-cfg.c (verify_gimple_call): Likewise.
8497 (do_warn_unused_result): Likewise.
8498 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8499 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8501 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8503 PR rtl-optimization/48235
8504 * sel-sched.c (code_motion_process_successors): Recompute the last
8505 insn in basic block if control flow changed.
8506 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8507 Update condition for ilist_remove.
8509 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8511 PR rtl-optimization/48302
8512 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8513 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8514 it to record added preheader blocks.
8515 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8516 on to sel_add_loop_preheaders.
8517 (sel_region_init): Move call to setup_current_loop_nest after
8520 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8523 * cfgloop.h (loop_has_exit_edges): New helper.
8524 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8526 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8527 that have no exit edges.
8529 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8531 PR rtl-optimization/48442
8532 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8533 all callers. Adjust assert.
8535 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8537 PR tree-optimization/48377
8538 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8539 is_packed to true even for types with smaller TYPE_ALIGN than
8542 2011-04-08 Richard Guenther <rguenther@suse.de>
8545 * doc/tm.texi: Re-generate.
8547 2011-04-08 Wei Guozhi <carrot@google.com>
8550 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8551 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8552 * config/arm/arm.md (*push_multi): Change the length computation to
8555 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8557 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8558 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8559 * doc/tm.texi: Regenerate.
8560 * system.h (ASM_OUTPUT_BSS): Poison.
8561 * varasm.c (asm_output_bss): Remove function.
8562 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8564 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8565 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8566 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8567 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8569 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8571 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8573 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8575 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8577 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8580 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8582 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8583 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8584 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8586 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8587 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8588 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8589 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8590 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8591 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8592 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8593 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8594 options. Don't map other m68k options manually. Don't handle
8595 old-style options as canonical.
8596 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8597 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8599 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8601 * basic-block.h (force_nonfallthru): Move to...
8602 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8603 (force_nonfallthru): ...here.
8604 * cfghooks.c (force_nonfallthru): New function.
8605 * cfgrtl.c (force_nonfallthru): Rename into...
8606 (rtl_force_nonfallthru): ...this.
8607 (commit_one_edge_insertion): Do not set AUX field.
8608 (commit_edge_insertions): Do not discover new basic blocks.
8609 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8610 (cfg_layout_rtl_cfg_hooks): Likewise.
8611 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8612 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8613 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8615 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8617 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8620 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8622 * config/i386/sse.md: Update copyright year.
8623 (avxcvtvecmode): Remove.
8624 (sse_movhlps): Merge with *avx_movhlps.
8625 (sse_movlhps): Merge with *avx_movlhps.
8626 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8627 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8628 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8629 (sse_loadhps): Merge with *avx_loadhps.
8630 (sse_storelps): Merge with *avx_storelps.
8631 (sse_loadlps): Merge with *avx_loadlps.
8632 (sse_movss): Merge with *avx_movss.
8633 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8634 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8635 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8636 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8637 (vec_set<mode>_0): Ditto.
8638 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8639 (sse4_1_insertps): Merge with *avx_insertps.
8640 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8641 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8642 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8643 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8644 (sse2_storehpd): Merge with *avx_storehpd.
8645 (sse2_loadhpd): Merge with *avx_loadhpd.
8646 (sse2_loadlpd): Merge with *avx_loadlpd.
8647 (sse2_movsd): Merge with *avx_movsd.
8648 (*vec_concatv2df): Merge with *vec_concatv2df.
8650 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8653 * combine.c (combine_instructions): Add last_combined_insn,
8654 update it if insn is after it, pass it to all try_combine calls.
8655 (try_combine): Add last_combined_insn parameter, pass it instead of
8656 i3 to propagate_for_debug.
8658 2011-04-07 Nick Clifton <nickc@redhat.com>
8660 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8661 to handle MDR <-> data register transfers.
8662 (movhi_internal): Likewise.
8664 2011-04-07 Alan Modra <amodra@gmail.com>
8666 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8667 previous stack info.
8669 2011-04-07 Tom de Vries <tom@codesourcery.com>
8672 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8673 flow_find_cross_jump. Swap variables to implement backward replacement.
8674 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8676 2011-04-07 Tom de Vries <tom@codesourcery.com>
8679 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8680 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8682 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8683 src1 or src2. Redirect edges to the last basic block. Update
8684 frequency and count on multiple basic blocks in case of fallthru.
8686 2011-04-07 Tom de Vries <tom@codesourcery.com>
8689 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8691 (old_insns_match_p): Change return type. Replace return false/true
8692 with return dir_none/dir_both. Use can_replace_by.
8693 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8694 direction from dir_p. Register replacement direction in dir, last_dir
8695 and afterlast_dir. Handle new return type of old_insns_match_p using
8696 merge_dir. Return replacement direction in dir_p.
8697 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8698 return type of old_insns_match_p.
8699 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8700 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8701 flow_find_cross_jump.
8702 * basic-block.h (enum replace_direction): New type.
8703 (flow_find_cross_jump): Add parameter to declaration.
8705 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8707 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8708 (AVXMODEDCVTPS2DQ): Ditto.
8709 (VEC_FLOAT_MODE): Ditto.
8710 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8711 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8712 (<any_logic:code><mode>3): Use VF mode iterator.
8713 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8714 Use VF mode iterator.
8715 (copysign<mode>3): Use VF mode iterator.
8716 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8717 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8718 (*<any_logic:code><MODEF:mode>3): Merge with
8719 *avx_<any_logic:code><MODEF:mode>3.
8720 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8721 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8722 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8723 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8724 (sse2_cvtdq2ps): Use %v modifier.
8725 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8726 (avx_cvtps2dq<avxmodesuffix>): Remove.
8727 (sse2_cvtps2dq): Use %v modifier.
8728 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8729 (avx_cvttps2dq<avxmodesuffix>): Remove.
8730 (sse2_cvttps2dq): Use %v modifier.
8731 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8732 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8733 (sse2_cvtsd2siq): Fix insn template.
8734 (sse2_cvtsd2siq_2): Ditto.
8735 (sse2_cvttsd2siq): Ditto.
8736 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8737 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8739 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8741 * gcov-io.c: Use GCC Runtime Library Exception.
8743 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8746 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8747 as base_reg whatever register reg has been eliminated to, instead
8748 of hardcoding STACK_POINTER_REGNUM.
8750 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8752 * doc/tm.texi.in: Document C target hooks as separate from general
8754 * doc/tm.texi: Regenerate.
8755 * genhooks.c (struct hook_desc): Add docname field.
8756 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8758 (hook_array): Include c-target.def.
8759 (emit_documentation): Use docname field in output.
8760 (emit_init_macros): Take docname argument. Only emit definitions
8761 for hooks matching docname.
8762 (main): Expect additional arguments in all cases. Pass argument
8763 to emit_init_macros.
8764 * target.def: Move initial macro definitions and comments to
8765 target-hooks-macros.h.
8766 (gcc_targetcm): Move to c-family/c-target.def.
8767 * target.h (targetcm): Move declaration to c-family/c-target.h.
8768 * targhooks.c (default_handle_c_option): Move to
8770 * targhooks.h (default_handle_c_option): Move declaration to
8771 c-family/c-common.h.
8772 * target-hooks-macros.h: New file.
8773 * config.gcc (target_has_targetcm): Define and use to add to
8774 c_target_objs and cxx_target_objs.
8775 * config/default-c.c: New file.
8776 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8777 of target.h and target-def.h.
8778 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8779 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8780 darwin_check_cfstring_format_arg): Make static.
8781 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8782 TARGET_STRING_OBJECT_REF_TYPE_P,
8783 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8784 * config/darwin-protos.h (darwin_objc_construct_string,
8785 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8787 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8788 TARGET_STRING_OBJECT_REF_TYPE_P,
8789 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8790 * config/t-darwin (darwin-c.o): Update dependencies.
8791 * system.h (TARGET_HAS_TARGETCM): Poison.
8792 * Makefile.in (TARGET_H): Update.
8793 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8794 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8795 (default-c.o): New target.
8796 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8797 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8798 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8800 (build/genhooks.o): Update dependencies.
8802 2011-04-06 Richard Guenther <rguenther@suse.de>
8804 * ipa-inline.c (enum inlining_mode): Remove.
8805 (cgraph_flatten): Use some other token.
8806 (cgraph_edge_early_inlinable_p): New function, split out from ...
8807 (cgraph_perform_always_inlining): New function, split out from ...
8808 (cgraph_decide_inlining_incrementally): ... here.
8809 (cgraph_mark_inline_edge): Adjust.
8810 (cgraph_early_inlining): Re-structure.
8811 (pass_early_inline): Require SSA form.
8813 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8814 Julian Brown <julian@codesourcery.com>
8815 Mark Shinwell <shinwell@codesourcery.com>
8817 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8818 LO_REGS only for Thumb-1.
8819 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8820 be used in short instructions when optimising for size on Thumb-2.
8822 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8824 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8825 associated with user returns to be preserved.
8827 2011-04-06 Tristan Gingold <gingold@adacore.com>
8829 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8830 symbol_queue_size, DBXOUT_DECR_NESTING,
8831 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8832 if XCOFF_DEBUGGING_INFO.
8834 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8836 * config/i386/i386.md (attribute isa): New.
8837 (attribute enabled): New.
8838 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8839 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8840 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8841 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8842 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8843 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8844 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8845 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8847 * config/i386/sse.md (VF): New mode iterator.
8851 (SSEMODEF4): Remove.
8852 (attribute sse): Handle V8SF and V4DF modes.
8853 (<absneg:code><mode>2): Use VF mode iterator.
8854 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8856 (<plusminus_insn><mode>3): Use VF mode iterator.
8857 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8858 Use VF mode iterator.
8859 (<sse>_vm<plusminus_insn><mode>3): Merge with
8860 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8861 (mul<mode>3): Use VF mode iterator.
8862 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8863 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8865 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8866 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8867 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8868 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8870 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8871 Use VF1 mode iterator.
8872 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8873 (sqrt<VF2:mode>2): New expander.
8874 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8875 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8876 and sqrtv2df2. Use VF mode iterator.
8877 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8879 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8880 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8881 Use VF1 mode iterator.
8882 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8883 (<smaxmin:code><mode>3): Use VF mode iterator.
8884 (*<smaxmin:code><mode>3_finite): Merge with
8885 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8886 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8887 (<sse>_vm<smaxmin:code><mode>2): Merge with
8888 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8889 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8891 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8893 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8894 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8895 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8896 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8897 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8899 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8900 Use VF_128 mode iterator.
8901 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8903 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8904 VF_128 mode iterator.
8905 (vcond<mode>): Use VF mode iterator.
8906 * config/i386/predicates.md (sse_comparison_operator): Merge with
8907 avx_comparison_float_operator. Do not declare as special_predicate.
8908 * config/i386/i386.c (struct builtin_description): Update for renamed
8910 (ix86_expand_args_builtin): Ditto.
8911 (ix86_expand_sse_compare_mask): Ditto.
8913 2011-04-06 Richard Guenther <rguenther@suse.de>
8915 * tree-inline.c (estimate_num_insns): For calls simply account
8916 for all passed arguments and a used return value.
8918 2011-04-06 Richard Guenther <rguenther@suse.de>
8920 PR tree-optimization/47663
8921 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8922 call_stmt_time fields.
8923 (cgraph_edge_inlinable_p): Declare.
8924 (cgraph_edge_recursive_p): New inline function.
8925 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8926 (cgraph_clone_edge): Copy it.
8927 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8928 Account for call stmt time.
8929 (cgraph_estimate_time_after_inlining): Take edge argument.
8930 (cgraph_estimate_edge_growth): Account call stmt size.
8931 (cgraph_estimate_size_after_inlining): Take edge argument.
8932 (cgraph_mark_inline_edge): Adjust.
8933 (cgraph_check_inline_limits): Likewise.
8934 (cgraph_recursive_inlining_p): Remove.
8935 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8936 (cgraph_decide_recursive_inlining): Take edge argument and
8938 (cgraph_decide_inlining_of_small_functions): Do not avoid
8939 diags for recursive inlining here.
8940 (cgraph_flatten): Adjust.
8941 (cgraph_decide_inlining_incrementally): Likewise.
8942 (estimate_function_body_sizes): Remove call cost handling.
8943 (compute_inline_parameters): Initialize caller edge call costs.
8944 (cgraph_estimate_edge_growth): New function.
8945 (cgraph_estimate_growth): Use it.
8946 (cgraph_edge_badness): Likewise.
8947 (cgraph_check_inline_limits): Take an edge argument.
8948 (cgraph_decide_inlining_of_small_functions): Adjust.
8949 (cgraph_decide_inlining): Likewise.
8950 * tree-inline.c (estimate_num_insns): Only account for call
8951 return value if it is used.
8952 (expand_call_inline): Avoid diagnostics on recursive inline
8954 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8955 (input_edge): Input edge call costs.
8957 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8959 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8961 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8963 * doc/invoke.texi (Spec Files): Fix typo.
8965 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8967 * profile.c (branch_prob): Move declaration of local variable. Remove
8968 obsolete ??? comment. Expand the location explicitly instead of using
8969 the LOCATION_FILE and LOCATION_LINE macros.
8971 2011-04-06 Wei Guozhi <carrot@google.com>
8974 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8975 (arm_cond_branch): Likewise.
8976 (arm_cond_branch_reversed): Likewise.
8977 (arm_jump): Likewise.
8978 (push_multi): Likewise.
8979 * config/arm/constraints.md (Py): New constraint.
8981 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8984 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8986 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8987 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8988 #ifdef DBX_DEBUGGING_INFO.
8990 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8993 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8994 if old and new states differ.
8996 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8998 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8999 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9000 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9001 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9002 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9004 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9005 ColdFire options to -mcpu= options.
9007 2011-04-05 Jeff Law <law@redhat.com>
9009 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9010 check if BB is a successor of LOOP->header and return
9011 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9013 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9015 * cprop.c (struct reg_use): Remove.
9016 (reg_use_table): Make an array of RTX.
9017 (find_used_regs, constprop_register, local_cprop_pass,
9018 bypass_block): Simplify users of reg_use_table.
9019 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9020 on one of the uses found by find_used_regs.
9022 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9025 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9028 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9030 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9032 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9034 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9037 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9039 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9041 * combine.c: Include obstack.h.
9042 (struct insn_link): Define.
9043 (uid_log_links): Adjust type.
9044 (FOR_EACH_LOG_LINK): New macro.
9045 (insn_link_obstack): Declare.
9046 (alloc_insn_link): Define.
9047 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9048 type of link variables.
9049 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9050 (try_combine, record_promoted_values, distribute_notes): Likewise.
9051 (distribute_links): Likewise. Tweak prototype.
9052 (clear_log_links): Delete.
9053 (adjust_for_new_dest): Call alloc_insn_link.
9054 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9056 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9058 * gcse.c (modify_mem_list): Convert to an array of VECs.
9059 (canon_modify_mem_list, compute_transp): Tweak formatting.
9060 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9061 (load_killed_in_block_p): Likewise.
9062 (record_last_mem_set_info): Likewise.
9063 (clear_modify_mem_tables): Likewise.
9065 2011-04-05 Tom de Vries <tom@codesourcery.com>
9068 * function.c (emit_use_return_register_into_block): Only define if
9071 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9073 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9075 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9077 * config/rx/rx-opts.h: New.
9078 * config/rx/rx.c (rx_cpu_type): Remove.
9079 (rx_handle_option): Don't assert that global structures are in
9080 use. Access variables via opts pointer. Defer most handling of
9081 OPT_mint_register_. Use error_at.
9082 (rx_option_override): Handle deferred OPT_mint_register_ here.
9083 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9084 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9085 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9086 (rx_cpu_types): New Enum and EnumValue entries.
9087 (mint-register=): Use Defer and use Var accordingly.
9089 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9091 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9092 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9093 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9095 (debug_free_queue, debug_nesting, symbol_queue_index):
9097 * dbxout.c: ...to here. Make static.
9099 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9101 * gcse.c (modify_pair): Define. Define a VEC of it.
9102 (canon_modify_mem_list): Convert to an array of VECs.
9103 (free_insn_expr_list_list): Delete.
9104 (clear_modify_mem_tables): Call VEC_free instead.
9105 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9106 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9107 (canon_list_insert, compute_transp): Likewise.
9109 2011-04-05 Tom de Vries <tom@codesourcery.com>
9112 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9115 2011-04-05 Tom de Vries <tom@codesourcery.com>
9118 * function.c (emit_use_return_register_into_block): New function.
9119 (thread_prologue_and_epilogue_insns): Use
9120 emit_use_return_register_into_block.
9122 2011-04-05 Tom de Vries <tom@codesourcery.com>
9125 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9128 2011-04-05 Tom de Vries <tom@codesourcery.com>
9130 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9132 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9134 * config/arm/arm.md (define_constants for unspec): Replace with
9136 (define_constants for unspecv): Replace with define_c_enum.
9137 * config/arm/neon.md (define_constants for unspec): Replace with
9140 2011-04-04 Richard Henderson <rth@redhat.com>
9143 * dwarf2out.c (output_line_info): Always emit line info from
9144 at least one section.
9145 (dwarf2out_init): Create text_section_line_info here ...
9146 (set_cur_line_info_table): ... not here.
9148 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9151 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9154 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9156 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9158 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9159 (expr_equiv_p): Remove.
9160 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9161 (hash_scan_set): Update call to insert_set_in_table.
9162 (dump_hash_table): Dump <dest, src> pair.
9163 (lookup_set): Simplify. Lookup <dest, src> pair.
9164 (compute_transp): Remove, fold heavily simplified code into...
9165 (compute_local_properties): ...here. Expect COMP and TRANSP
9167 (find_avail_set): Take set directly from struct expr.
9168 (find_bypass-set): Likewise.
9169 (bypass_block): Likewise.
9170 (cprop_insn): Likewise. Remove redundant INSN_P test.
9172 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9173 checks on form of COND from find_implicit_sets to here.
9174 (find_implicit_sets): Cleanup control flow. Split critical edges
9175 if it exposes implicit sets. Allocate/resize implicit_sets as
9177 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9178 changed something. Run df_analyze after find_implicit_sets if any
9179 edges were split. Do not allocate implicit_sets here.
9181 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9182 (gcse_obstack): Renamed to cprop_obstack.
9183 (GNEW, GNEWVEC, GNEWVAR): Remove.
9185 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9186 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9187 (gcse_alloc): Likewise, and rename to cprop_alloc.
9188 (alloc_gcse_men, free_gcse_mem): Remove.
9189 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9190 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9191 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9193 * cprop.c (oprs_not_set_p): Remove.
9194 (mark_set, mark_clobber): Remove.
9195 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9196 (reg_not_set_p): New function.
9197 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9198 (cprop_insn): Likewise.
9199 (cprop_jump): Use FOR_EACH_EDGE.
9201 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9204 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9205 (rank_for_schedule): Use scheduled_insns vector instead of
9206 last_scheduled_insn.
9207 (ok_for_early_queue_removal): Likewise.
9208 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9210 (choose_ready): Likewise.
9211 (commit_schedule): Use VEC_iterate.
9212 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9213 a dbg_cnt, use it and ensure the first insn is in the ready list.
9214 (haifa_sched_init): Allocate scheduled_insns.
9215 (sched_extend_ready_list): Don't allocate it; reserve space.
9216 (haifa_sched_finish): Free it.
9218 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9220 * optc-gen.awk: Always remove type from Variable entry before
9221 recording in var_seen.
9223 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9225 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9226 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9227 call to tidy_fallthru_edges.
9229 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9231 * doc/options.texi (ToLower): Document.
9232 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9233 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9234 * opts.h (cl_option): Add cl_tolower field.
9235 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9236 arguments with lowercase strings.
9237 * config/rx/rx.opt (mcpu=): Add ToLower.
9238 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9241 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9243 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9245 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9247 * config/vax/vax.c: Include reload.h.
9249 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9251 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9252 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9253 (sparc_preferred_reload_class): New function.
9255 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9258 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9259 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9261 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9263 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9264 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9266 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9268 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9269 (ASM_OUTPUT_ALIGNED_BSS): Define.
9271 2011-04-03 Michael Matz <matz@suse.de>
9273 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9274 and next_slot members.
9275 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9276 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9277 (lto_streamer_cache_append): Declare.
9278 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9279 unsigned index, remove offset parameter, ensure that we append
9280 or update existing entries.
9281 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9282 parameter, update next_slot for append.
9283 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9285 (lto_streamer_cache_insert_at): Likewise.
9286 (lto_streamer_cache_append): New function.
9287 (lto_streamer_cache_lookup): Use unsigned index.
9288 (lto_streamer_cache_get): Likewise.
9289 (lto_record_common_node): Don't test tree_node_can_be_shared.
9290 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9291 (lto_streamer_cache_delete): Don't free offsets member.
9292 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9293 (lto_output_string_with_length): Use lto_output_data_stream.
9294 (lto_output_tree_header): Remove ix parameter, don't write it.
9295 (lto_output_builtin_tree): Likewise.
9296 (lto_write_tree): Adjust callers to above, don't track and write
9297 offset, write unsigned index.
9298 (output_unreferenced_globals): Don't emit all global vars.
9299 (write_global_references): Use unsigned indices.
9300 (lto_output_decl_state_refs): Likewise.
9301 (write_symbol): Likewise.
9302 * lto-streamer-in.c (lto_input_chain): Move earlier.
9303 (input_function): Use unsigned index.
9304 (input_alias_pairs): Don't read and then ignore all global vars.
9305 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9306 don't pass it back, use lto_streamer_cache_append.
9307 (lto_register_var_decl_in_symtab): Use unsigned index.
9308 (lto_register_function_decl_in_symtab): Likewise.
9309 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9311 (lto_get_builtin_tree): Don't read index, use
9312 lto_streamer_cache_append.
9313 (lto_read_tree): Adjust call to lto_materialize_tree.
9315 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9316 don't use function calls in arguments to MIN.
9318 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9321 * gimple.c (gimple_type_leader_entry): Mark deletable.
9323 2011-04-03 Alan Modra <amodra@gmail.com>
9325 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9327 2011-04-03 Michael Matz <matz@suse.de>
9329 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9331 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9333 2011-04-03 Michael Matz <matz@suse.de>
9335 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9336 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9337 without function context.
9338 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9339 current_function_decl and cfun.
9341 2011-04-03 Michael Matz <matz@suse.de>
9343 * tree.c (decl_init_priority_insert): Don't create entry for
9345 (decl_fini_priority_insert): Ditto.
9346 (fields_compatible_p, find_compatible_field): Remove.
9347 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9348 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9350 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9352 * combine.c (try_combine): Remove useless local variable.
9354 2011-04-03 Richard Guenther <rguenther@suse.de>
9355 Ira Rosen <ira.rosen@linaro.org>
9357 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9358 non-variable offsets and compare the remaining bases of the two
9359 accesses instead of looking for exact same data-ref.
9361 2011-04-02 Kai Tietz <ktietz@redhat.com>
9364 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9366 * i386.c (ix86_is_msabi_thiscall): New helper function.
9367 (ix86_is_type_thiscall): New helper function.
9368 (ix86_comp_type_attributes): Handle thiscall for method-functions
9370 (init_cumulative_args): Likewise.
9371 (find_drap_reg): Likewise.
9372 (ix86_static_chain): Likewise.
9373 (x86_this_parameter): Likewise.
9374 (x86_output_mi_thunk): Likewise.
9376 2011-04-01 Olivier Hainque <hainque@adacore.com>
9377 Nicolas Setton <setton@adacore.com>
9378 Eric Botcazou <ebotcazou@adacore.com>
9380 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9381 (add_gnat_descriptive_type_attribute): New function.
9382 (gen_array_type_die): Call it.
9383 (gen_enumeration_type_die): Likewise.
9384 (gen_struct_or_union_type_die): Likewise.
9385 (modified_type_die): Likewise.
9386 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9387 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9388 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9390 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9393 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9394 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9397 2011-03-17 Richard Guenther <rguenther@suse.de>
9400 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9401 origin for decls in other ltrans units.
9402 (input_varpool_node): Likewise.
9404 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9407 * expr.c (expand_assignment): Handle all possibilities
9408 if TO_RTX is CONCAT.
9409 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9410 (store_split_bit_field): If SUBREG_REG (op0) or
9411 op0 itself has smaller mode than word, return it
9412 for offset 0 and const0_rtx for out-of-bounds stores.
9413 If word is const0_rtx, skip it.
9415 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9417 * config/h8300/h8300.c (print_operand_address): Rename to...
9418 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9419 Call h8300_print_operand and h8300_print_operand_address instead of
9420 print_operand and print_operand_address. Declare.
9421 (print_operand): Renake to...
9422 (h8300_print_operand): ...this. Make static. Adjust comments.
9423 Call h8300_print_operand instead of print_operand. Declare.
9424 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9425 (h8300_register_move_cost): Likewise.
9426 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9427 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9428 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9429 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9430 * config/h8300/h8300-protos.h (print_operand): Delete.
9431 (print_operand_address): Delete.
9433 2011-04-01 Richard Henderson <rth@redhat.com>
9436 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9437 in strict mode before dwarf4. Re-order tests to early out
9438 before switching sections.
9440 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9442 * config/h8300/constraints.md: New file.
9443 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9444 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9445 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9446 * config/h8300/predicates.md (bit_operand): Likewise.
9447 (incdec_operand): Use satisfies_constraint_M and
9448 satisfies_constraint_O. Don't use C code block.
9449 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9450 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9451 (compute_mov_length): Use satisfies_constraint_G.
9452 (fix_bit_operand): Use satisfies_constraint_U.
9453 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9454 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9455 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9456 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9457 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9458 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9459 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9460 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9461 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9462 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9463 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9464 (EXTRA_MEMORY_CONSTRAINT): Delete.
9466 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9467 Michael Meissner <meissner@linux.vnet.ibm.com>
9470 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9471 operands, as per the specifications.
9473 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9474 (vec_extract_evenv4sf): Ditto.
9475 (vec_extract_evenv8hi): Ditto.
9476 (vec_extract_evenv16qi): Ditto.
9477 (vec_extract_oddv4si): Ditto.
9479 2011-03-31 Mark Wielaard <mjw@redhat.com>
9481 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9482 high_pc attribute if the CU has no associated code. Only output
9483 DW_AT_entry_pc for CU if not generating strict dwarf and
9486 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9488 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9489 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9491 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9492 * final.c (final_start_function): Call the new function rather
9493 than using a NULL argument for dwarf2out_frame_debug.
9495 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9496 that contains the prologue.
9498 * haifa-sched.c (queue_insn): New arg REASON. All callers
9499 changed. Print it in debugging output.
9501 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9503 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9504 Split most of the code into...
9505 (begin_move_insn): ... here. New function.
9506 (ebb_sched_info): Add a pointer to it.
9507 * haifa-sched.c (scheduled_insns): New static variable.
9508 (sched_extend_ready_list): Allocate it.
9509 (schedule_block): Use it to record the order of scheduled insns.
9510 Perform RTL changes to move insns only after all scheduling
9511 decisions have been made.
9512 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9513 begin_move_insn field.
9514 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9515 * sched-int.h (struct haifa_sched_info): Remove second argument
9516 from begin_schedule_ready hook. Add new member begin_move_insn.
9517 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9518 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9520 * haifa-sched.c (prune_ready_list): New function, broken out of
9522 (schedule_block): Use it.
9524 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9526 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9528 2011-04-01 Kai Tietz <ktietz@redhat.com>
9530 * config.gcc (*-*-mingw*): Allow as option the
9531 posix threading model.
9532 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9533 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9535 (CPP_SPEC): Add pthread/no-pthread handling.
9536 (LIB_SPEC): Likewise.
9537 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9538 (LIB_SPEC): Likewise.
9539 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9540 flag to pass -pthread option for shared libgcc build.
9541 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9542 for shared libgcc build.
9543 * config/i386/t-mingw-pthread: New file.
9544 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9545 New define to enable use of library pthread by default.
9546 * config/i386/mingw.opt (pthread): New driver option.
9547 (no-pthread): New driver option.
9548 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9549 * config/i386/mingw-w64.opt: Likewise.
9551 2011-04-01 Gary Funck <gary@intrepid.com>
9553 * c-decl.c (grokdeclarator): Fix formatting.
9555 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9557 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9558 instead of n_operands.
9559 (set_storage_via_setmem): Likewise.
9560 * optabs.c (maybe_gen_insn): Likewise.
9561 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9562 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9563 (mips_expand_builtin_direct): Likewise.
9564 * config/spu/spu.c (expand_builtin_args): Likewise.
9566 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9568 * recog.h (insn_data_d): Add n_generator_args.
9569 * genoutput.c (data): Likewise.
9570 (output_insn_data): Print it.
9571 (max_opno, num_dups): Delete.
9572 (scan_operands): Just fill in "d->operand[...]".
9573 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9575 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9577 * gensupport.h (pattern_stats): New structure.
9578 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9579 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9580 (max_operand_1, max_operand_vec): Delete.
9581 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9583 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9585 * emit-rtl.c (emit_pattern_after_setloc): New function.
9586 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9587 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9588 (emit_pattern_after): New function.
9589 (emit_insn_after, emit_jump_insn_after): Call it.
9590 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9591 (emit_pattern_before_setloc): New function.
9592 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9593 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9595 (emit_pattern_before): New function.
9596 (emit_insn_before, emit_jump_insn_before): Call it.
9597 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9599 2011-03-31 Richard Henderson <rth@redhat.com>
9601 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9602 (dw_separate_line_info_entry): Remove.
9603 (enum dw_line_info_opcode): New.
9604 (dw_line_info_entry): Use it.
9605 (dw_line_info_table, dw_line_info_table_p): New.
9606 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9607 (line_info_table, line_info_label_num): Remove.
9608 (line_info_table_in_use): Remove.
9609 (separate_line_info_table): Remove.
9610 (separate_line_info_table_allocated): Remove.
9611 (separate_line_info_table_in_use): Remove.
9612 (LINE_INFO_TABLE_INCREMENT): Remove.
9613 (line_info_label_num): New.
9614 (cur_line_info_table): New.
9615 (text_section_line_info, cold_text_section_line_info): New.
9616 (separate_line_info): New.
9617 (SEPARATE_LINE_CODE_LABEL): Remove.
9618 (print_dwarf_line_table): Remove.
9619 (debug_dwarf): Don't dump it.
9620 (output_one_line_info_table): New.
9621 (output_line_info): Use it.
9622 (new_line_info_table): New.
9623 (set_cur_line_info_table): New.
9624 (dwarf2out_switch_text_section): Use it.
9625 (dwarf2out_begin_function): Likewise.
9626 (push_dw_line_info_entry): New.
9627 (dwarf2out_source_line): Rewrite for new line info tables.
9628 (dwarf2out_init): Remove dead initailizations.
9630 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9632 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9634 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9635 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9636 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9637 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9638 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9639 * opt-functions.awk (flag_init, switch_bit_fields): New.
9640 (switch_flags): Don't handle flags moved to bit-fields. Don't
9641 generate CL_MISSING_OK or CL_SAVE.
9642 * optc-gen.awk: Update to generate bit-field output as well as
9644 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9645 bit-field instead of CL_REJECT_DRIVER flag.
9646 * opts-common.c (generate_canonical_option,
9647 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9648 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9649 instead of CL_REJECT_NEGATIVE flag.
9650 * toplev.c (print_switch_values): Use cl_report bit-field instead
9653 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9655 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9656 a zero minimum index only if it is redundant.
9658 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9660 PR rtl-optimization/48381
9661 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9662 instead of ira_class_hard_reg_index for calculating conflicting
9665 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9667 * cprop.c: Clean up hash table building.
9668 (reg_avail_info): Remove.
9669 (oprs_available_p): Remove.
9670 (record_last_reg_set_info): Remove.
9671 (record_last_set_info): Remove.
9672 (reg_available_p): New function.
9673 (gcse_constant_p): Do not treat unfolded conditions as constants.
9674 (make_set_regs_unavailable): New function.
9675 (hash_scan_set): Simplify with new reg_available_p.
9676 (compute_hash_table_work): Traverse insns stream only once.
9677 Do not compute reg_avail_info. Traverse insns in reverse order.
9678 Record implicit sets after recording explicit sets from the block.
9680 2011-03-31 Michael Matz <matz@suse.de>
9682 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9684 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9686 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9687 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9688 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9689 (h8300_mode_dependent_address_p): New function.
9690 (h8300_get_index): Make static.
9692 2011-03-31 Jeff Law <law@redhat.com>
9694 * reload1.c (elimination_effects): Fix typo in recent change.
9696 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9697 typo potentially leading to null pointer dereference.
9699 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9700 (setup_save_areas): Corresponding changes to avoid useless
9703 * jump.c (reversed_comparison_code_parts): Avoid successive return
9704 statements when REVERSE_CONDITION is defined.
9706 * expr.c (expand_assignment): Avoid useless assignments.
9707 (expand_expr_real_1): Likewise.
9708 (expand_expr_real_2): Avoid useless statements.
9710 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9712 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9714 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9717 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9719 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9722 * doc/tm.texi.in (TARGET_VERSION): Remove.
9723 * doc/tm.texi: Regenerate.
9724 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9725 * collect2.c (main): Don't use TARGET_VERSION.
9726 * mips-tdump.c (main): Don't use TARGET_VERSION.
9727 * mips-tfile.c (main): Don't use TARGET_VERSION.
9728 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9729 * config/rs6000/vxworksae.h: Remove.
9730 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9731 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9732 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9733 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9734 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9735 * config/arm/arm.h (TARGET_VERSION): Remove.
9736 * config/arm/coff.h (TARGET_VERSION): Remove.
9737 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9738 * config/arm/elf.h (TARGET_VERSION): Remove.
9739 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9740 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9741 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9742 * config/arm/pe.h (TARGET_VERSION): Remove.
9743 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9744 * config/arm/semi.h (TARGET_VERSION): Remove.
9745 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9746 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9747 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9748 * config/avr/avr.h (TARGET_VERSION): Remove.
9749 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9750 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9751 * config/frv/frv.h (TARGET_VERSION): Remove.
9752 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9753 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9754 * config/i386/darwin.h (TARGET_VERSION): Remove.
9755 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9756 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9757 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9758 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9759 * config/i386/gnu.h (TARGET_VERSION): Remove.
9760 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9761 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9762 * config/i386/linux.h (TARGET_VERSION): Remove.
9763 * config/i386/linux64.h (TARGET_VERSION): Remove.
9764 * config/i386/lynx.h (TARGET_VERSION): Remove.
9765 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9766 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9767 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9768 * config/i386/netware.h (TARGET_VERSION): Remove.
9769 * config/i386/nto.h (TARGET_VERSION): Remove.
9770 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9771 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9772 * config/ia64/elf.h (TARGET_VERSION): Remove.
9773 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9774 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9775 * config/ia64/linux.h (TARGET_VERSION): Remove.
9776 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9777 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9778 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9779 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9780 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9781 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9782 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9783 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9784 * config/m68k/linux.h (TARGET_VERSION): Remove.
9785 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9786 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9787 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9788 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9789 * config/mep/mep.h (TARGET_VERSION): Remove.
9790 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9791 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9792 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9793 * config/mips/linux.h (TARGET_VERSION): Remove.
9794 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9795 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9796 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9797 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9798 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9799 * config/pa/pa.h (TARGET_VERSION): Remove.
9800 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9801 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9802 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9803 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9804 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9805 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9806 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9807 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9808 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9809 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9810 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9811 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9812 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9813 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9814 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9815 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9816 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9817 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9818 * config/s390/linux.h (TARGET_VERSION): Remove.
9819 * config/s390/s390.h (TARGET_VERSION): Remove.
9820 * config/s390/tpf.h (TARGET_VERSION): Remove.
9821 * config/score/score.h (TARGET_VERSION): Remove.
9822 * config/sh/linux.h (TARGET_VERSION): Remove.
9823 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9824 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9825 * config/sh/sh.h (TARGET_VERSION): Remove.
9826 * config/sh/sh64.h (TARGET_VERSION): Remove.
9827 * config/sh/superh.h (TARGET_VERSION): Remove.
9828 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9829 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9830 * config/sparc/linux.h (TARGET_VERSION): Remove.
9831 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9832 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9833 TARGET_NAME32, TARGET_NAME): Remove.
9834 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9835 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9836 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9837 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9838 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9839 * config/spu/spu.h (TARGET_VERSION): Remove.
9840 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9841 * config/v850/v850.h (TARGET_VERSION): Remove.
9842 * config/vax/linux.h (TARGET_VERSION): Remove.
9843 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9844 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9845 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9847 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9850 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9851 frame-related from frame-unrelated adjustments to the stack pointer.
9853 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9855 * common.opt (fdebug-types-section): Move earlier.
9856 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9858 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9860 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9863 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9865 * tree.h (CASE_CHAIN): Define.
9866 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9867 (gimple_redirect_edge_and_branch): Likewise.
9869 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9872 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9875 2011-03-30 Jeff Law <law@redhat.com>
9877 * PR bootstrap/48371
9878 * reload1.c (reload): Fix botch in last change.
9880 * reload.h (struct reload): Fix typo introduced in last change.
9882 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9884 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9885 Undocumented. Remove help text.
9886 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9889 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9891 * doc/options.texi (NegativeAlias): Document.
9892 (Alias): Mention NegativeAlias.
9893 * opt-functions.awk: Handle NegativeAlias.
9894 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9895 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9896 * opts.h (CL_NEGATIVE_ALIAS): Define.
9897 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9898 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9900 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9902 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9903 mno-spe and mno-isel instead of mspe=no and -misel=no.
9905 2011-03-29 Mark Wielaard <mjw@redhat.com>
9907 * common.opt (fdebug-types-section): New flag.
9908 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9909 * dwarf2out.c (use_debug_types): New define.
9910 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9911 (print_die): Guard output of type unit signatures using
9913 (build_abbrev_table): Replace assert of dwarf_version >= 4
9914 with assert on use_debug_types.
9915 (size_of_die): Likewise.
9916 (unmark_dies): Likewise.
9917 (value_format): Decide AT_ref_external form on use_debug_types.
9918 (output_die): Replace dwarf_version version check guard with
9919 use_debug_types where appropriate.
9920 (modified_type_die): Likewise.
9921 (gen_reference_type_die): Likewise.
9922 (dwarf2out_start_source_file): Likewise.
9923 (dwarf2out_end_source_file): Likewise.
9924 (prune_unused_types_walk_attribs): Likewise.
9925 (dwarf2out_finish): Likewise.
9927 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9929 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9931 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9933 PR rtl-optimization/48332
9934 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9935 mode of input operand N and modeN to its actual mode.
9937 2011-03-30 Jeff Law <law@redhat.com>
9939 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9940 define accessor macro.
9941 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9942 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9943 (reg_equiv_init): Likewise.
9944 (reg_equivs_size): New variable.
9945 (reg_equiv_init_size): Remove.
9946 (allocate_initial_values): Move prototype to here from....
9947 * integrate.h (allocate_initial_values): Remove prototype.
9948 * integrate.c: Include reload.h.
9949 (allocate_initial_values): Corresponding changes.
9950 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9951 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9952 (update_equiv_regs): Corresponding changes.
9953 (ira): Corresponding changes.
9954 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9955 (push_secondary_reload): Corresponding changes.
9956 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9957 (make_memloc, find_reloads_address): Corresponding changes.
9958 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9959 (find_reloads_address_1): Corresponding changes.
9960 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9961 (refers_to_regno_for_reload_p): Corresponding changes.
9962 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9963 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9964 * reload1.c: Include ggc.h.
9965 (grow_reg_equivs): New function.
9966 (replace_pseudos_in, reload): Corresponding changes.
9967 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9968 (eliminate_regs_1, elimination_effects): Corresponding changes.
9969 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9970 (delete_output_reload): Likewise.
9971 * caller-save.c (mark_referenced_regs): Corresponding changes.
9972 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9973 * frv/predicates.md (frv_load_operand): Corresponding changes.
9974 * microblaze/microblaze.c (double_memory_operand): Corresponding
9976 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9977 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9978 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9979 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9980 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9982 * pa/pa.c (emit_move_sequence): Corresponding changes.
9983 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9985 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9988 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9989 structure modes. Don't check neon_vector_mem_operand for
9990 vector or structure modes.
9992 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9993 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9996 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9997 operand 1 and reshuffle the operands to match.
9998 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10000 2011-03-30 Christian Schüler <cschueler@gmx.de>
10003 * config/c.opt (F): Added 'Driver' to -F option.
10006 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10008 * config/darwin.opt: Added '-arch' option.
10010 2011-03-30 Nick Clifton <nickc@redhat.com>
10012 * config/rx/rx.md: Add peepholes and patterns to combine
10013 extending loads and simple arithmetic instructions.
10014 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10015 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10016 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10017 modes to use pre-decrement and post-increment addressing.
10018 (rx_is_restricted_memory_address): Add range checking of REG+INT
10020 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10021 (rx_memory_move_cost): Adjust cost of stores.
10022 (rx_adjust_insn_length): New function.
10024 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10027 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10028 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10029 matching arg00/arg01 types.
10031 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10033 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10034 last_location to UNKNOWN_LOCATION.
10036 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10039 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10042 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10043 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10046 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10047 Init(PROCESSOR_V7).
10048 (sparc_cpu): Likewise.
10049 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10052 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10055 PR middle-end/48342
10056 PR rtl-optimization/48345
10057 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10058 hard regs for given mode from profitable regs when doing secondary
10061 2011-03-29 Jeff Law <law@redhat.com>
10064 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10065 do_not_duplicate field.
10066 (lookup_redirection_data): Corresponding changes.
10067 (create_duplicates): Always create a template block.
10068 (redirect_edges): Remove code which reused the original block
10069 when it was going to become unreachable code.
10070 (thread_block): Don't set do_not_duplicate field.
10072 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10074 * lto-opts.c (register_user_option_p, lto_register_user_option):
10075 Make type argument unsigned.
10076 * lto-streamer.h (lto_register_user_option): Make type argument
10078 * opth-gen.awk: Make CL_* macros unsigned.
10079 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10080 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10081 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10082 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10083 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10084 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10085 (find_opt): Make lang_mask argument unsigned.
10087 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10089 PR rtl-optimization/48331
10090 PR rtl-optimization/48334
10091 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10092 for any used algorithm.
10094 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10096 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10099 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10101 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10102 (alpha_option_override): Don't set alpha_sr_alias_set.
10103 (emit_frame_store_1): Use gen_frame_mem rather than calling
10105 (alpha_expand_epilogue): Ditto.
10107 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10109 PR tree-optimization/48290
10110 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10111 vectorization, check that relevant phis in the basic block after
10112 the inner loop are really inner loop's exit phis.
10114 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10117 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10118 (cached_dw_loc_list_def): New structure.
10119 (cached_dw_loc_list): New typedef.
10120 (cached_dw_loc_list_table): New variable.
10121 (cached_dw_loc_list_table_hash): New function.
10122 (cached_dw_loc_list_table_eq): Likewise.
10123 (add_location_or_const_value_attribute): Take a bool cache_p.
10124 Cache the list when the parameter is true.
10125 (gen_formal_parameter_die): Update caller.
10126 (gen_variable_die): Likewise.
10127 (dwarf2out_finish): Likewise.
10128 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10129 while generating debug info for the decl.
10130 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10131 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10132 (resolve_addr): Cache the result of resolving a chain of
10135 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10137 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10138 conflict object hard regset nodes have intersecting hard reg sets.
10140 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10141 after regstat_init_n_sets_and_refs.
10143 * ira.c: Add more comments at the top.
10144 (setup_stack_reg_pressure_class, setup_pressure_classes):
10145 Add comments how we compute the register pressure classes.
10146 (setup_allocno_and_important_classes): Add more comments.
10147 (setup_class_translate_array, reorder_important_classes)
10148 (setup_reg_class_relations): Add comments.
10150 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10153 * ira-color.c: Add 2011 to the Copyright line.
10154 (assign_hard_reg): Add more comments.
10155 (improve_allocation): Ditto.
10157 * ira-costs.c: Add 2011 to the Copyright line.
10158 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10160 (setup_regno_cost_classes_by_mode): Ditto.
10162 Initial patches from ira-improv branch:
10164 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10166 * ira-build.c (ira_create_object): Remove initialization of
10167 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10168 (ira_create_allocno): Remove initialization of
10169 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10170 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10171 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10172 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10173 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10174 Initialize ALLOCNO_ADD_DATA.
10175 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10176 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10178 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10179 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10181 * ira.c (ira_reallocate): Remove.
10182 (setup_pressure_classes): Call
10183 ira_init_register_move_cost_if_necessary. Use
10184 ira_register_move_cost instead of ira_get_register_move_cost.
10185 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10186 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10188 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10189 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10190 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10191 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10192 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10193 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10195 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10196 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10197 (struct allocno_color_data): New.
10198 (allocno_color_data_t): New typedef.
10199 (allocno_color_data): New definition.
10200 (ALLOCNO_COLOR_DATA): New macro.
10201 (struct object_color_data): New.
10202 (object_color_data_t): New typedef.
10203 (object_color_data): New definition.
10204 (OBJECT_COLOR_DATA): New macro.
10205 (update_copy_costs, calculate_allocno_spill_cost): Call
10206 ira_init_register_move_cost_if_necessary. Use
10207 ira_register_move_cost instead of ira_get_register_move_cost.
10208 (move_spill_restore, update_curr_costs): Ditto.
10209 (allocno_spill_priority): Make it inline.
10210 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10211 (struct coalesce_data, coalesce_data_t): New.
10212 (allocno_coalesce_data): New definition.
10213 (ALLOCNO_COALESCE_DATA): New macro.
10214 (merge_allocnos, coalesced_allocno_conflict_p): Use
10215 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10216 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10217 (coalesce_allocnos): Ditto.
10218 (setup_coalesced_allocno_costs_and_nums): Ditto.
10219 (collect_spilled_coalesced_allocnos): Ditto.
10220 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10221 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10222 (coalesce_spill_slots): Ditto.
10223 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10224 free allocno_coalesce_data.
10226 * ira-conflicts.c: Fix formatting.
10227 (process_regs_for_copy): Call
10228 ira_init_register_move_cost_if_necessary. Use
10229 ira_register_move_cost instead of ira_get_register_move_cost.
10230 (build_object_conflicts): Optimize.
10232 * ira-costs.c (record_reg_classes): Optimize. Call
10233 ira_init_register_move_cost_if_necessary. Use
10234 ira_register_move_cost, ira_may_move_in_cost, and
10235 ira_may_move_out_cost instead of ira_get_register_move_cost and
10236 ira_get_may_move_cost.
10237 (record_address_regs): Ditto.
10238 (scan_one_insn): Optimize.
10239 (find_costs_and_classes): Optimize.
10240 (process_bb_node_for_hard_reg_moves): Call
10241 ira_init_register_move_cost_if_necessary. Use
10242 ira_register_move_cost instead of ira_get_register_move_cost.
10244 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10245 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10246 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10247 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10249 (ira_initiate_emit_data, ira_finish_emit_data)
10250 (create_new_allocno): New functions.
10251 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10252 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10253 Use ira_register_move_cost instead of ira_get_register_move_cost.
10255 * ira-int.h: Fix some comments.
10256 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10257 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10258 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10259 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10261 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10262 bitfield after mode. Make hard_regno a short int. Make
10263 hard_regno short. Remove first_coalesced_allocno and
10264 next_coalesced_allocno. Move mem_optimized_dest_p,
10265 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10266 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10267 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10268 temp, colorable_p. Add new member add_data.
10269 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10270 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10271 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10272 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10273 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10274 (ALLOCNO_ADD_DATA): New macro.
10275 (ira_emit_data_t): New typedef.
10276 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10277 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10278 from struct ira_allocno.
10279 (ALLOCNO_EMIT_DATA): New macro.
10280 (ira_allocno_emit_data, allocno_emit_reg): New.
10281 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10282 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10283 (OBJECT_ADD_DATA): New macro.
10284 (ira_reallocate): Remove.
10285 (ira_initiate_emit_data, ira_finish_emit_data): New.
10286 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10287 (ira_init_register_move_cost_if_necessary): New.
10288 (ira_object_conflict_iter_next): Merge into
10289 ira_object_conflict_iter_cond.
10290 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10292 * ira-live.c (process_single_reg_class_operands): Call
10293 ira_init_register_move_cost_if_necessary. Use
10294 ira_register_move_cost instead of ira_get_register_move_cost.
10296 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10298 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10300 * ira-costs.c: Fix formatting.
10301 (cost_classes, cost_classes_num): Remove.
10302 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10303 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10304 (cost_classes_del, cost_classes_htab): New.
10305 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10306 (initiate_regno_cost_classes, setup_cost_classes): New.
10307 (setup_regno_cost_classes_by_aclass): New.
10308 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10309 (record_reg_classes): Use regno_cost_classes instead of
10310 cost_classes. Move checking opposite operand up.
10311 (record_address_regs): Use regno_cost_classes
10312 instead of cost_classes.
10313 (scan_one_insn): Ditto. Use always general register.
10314 (print_allocno_costs): Use regno_cost_classes instead of
10316 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10317 (find_costs_and_classes): Set up cost classes for each registers.
10318 Use also their mode for this. Use regno_cost_classes instead of
10320 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10322 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10323 (ira_costs, ira_set_pseudo_classes): Call
10324 initiate_regno_cost_classes and finish_regno_cost_classes.
10326 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10328 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10330 * target.def (ira_cover_classes): Remove.
10332 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10334 * doc/tm.texi.in: Ditto.
10336 * ira-conflicts.c: Remove mentioning cover classes from the file.
10337 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10338 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10340 * targhooks.c (default_ira_cover_classes): Remove.
10342 * targhooks.h (default_ira_cover_classes): Ditto.
10344 * haifa-sched.c: Remove mentioning cover classes from the file.
10345 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10346 ira_pressure_classes and ira_pressure_classes_num instead of
10347 ira_reg_class_cover_size and ira_reg_class_cover. Use
10348 sched_regno_pressure_class instead of sched_regno_cover_class.
10349 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10350 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10352 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10353 classes from the file.
10354 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10355 (struct object_hard_regs, struct object_hard_regs_node): New.
10356 (struct ira_object): New members profitable_hard_regs,
10357 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10358 (struct ira_allocno): Rename cover_class to aclass. Rename
10359 cover_class_cost and updated_cover_class_cost to class_cost and
10360 updated_class_cost. Remove splay_removed_p and
10361 left_conflict_size. Add new members colorable_p.
10362 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10363 (ALLOCNO_COLORABLE_P): New macro.
10364 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10365 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10366 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10367 (OBJECT_...): Rename parameter C to O.
10368 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10369 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10370 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10371 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10372 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10373 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10374 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10375 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10376 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10377 x_ira_reg_class_subunion.
10378 (ira_max_memory_move_cost, ira_max_register_move_cost)
10379 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10380 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10381 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10382 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10383 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10384 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10385 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10386 (ira_tune_allocno_costs_and_cover_classes): Rename to
10387 ira_tune_allocno_costs.
10388 (ira_debug_hard_regs_forest): New.
10389 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10390 (ira_object_conflict_iter_next): Fix comments.
10391 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10392 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10393 cover_class to aclass.
10394 (ira_allocate_and_accumulate_costs): Ditto.
10395 (ira_allocate_and_set_or_copy_costs): Ditto.
10397 * opts.c (decode_options): Remove ira_cover_class check.
10399 * ira-color.c: Remove mentioning cover classes from the file. Use
10400 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10401 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10402 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10403 (splay-tree.h): Remove include.
10404 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10405 before copy_freq_compare_func.
10406 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10407 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10409 (hard_regs_roots, hard_regs_node_vec): Ditto.
10410 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10411 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10412 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10413 (create_new_object_hard_regs_node): Ditto.
10414 (add_new_object_hard_regs_node_to_forest): Ditto.
10415 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10416 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10418 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10419 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10420 (remove_unused_object_hard_regs_nodes): Ditto.
10421 (enumerate_object_hard_regs_nodes): Ditto.
10422 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10423 (object_hard_regs_subnode_t): Ditto.
10424 (struct object_hard_regs_subnode): Ditto.
10425 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10426 (setup_object_hard_regs_subnode_index): Ditto.
10427 (get_object_hard_regs_subnodes_num): Ditto.
10428 (form_object_hard_regs_nodes_forest): Ditto.
10429 (finish_object_hard_regs_nodes_tree): Ditto.
10430 (finish_object_hard_regs_nodes_forest): Ditto.
10431 (allocnos_have_intersected_live_ranges_p): Rename to
10432 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10433 (pseudos_have_intersected_live_ranges_p): Rename to
10434 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10435 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10436 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10437 (update_copy_costs): Remove assert. Skip cost update if the hard
10438 reg does not belong the class.
10439 (assign_hard_reg): Process only profitable hard regs.
10440 (uncolorable_allocnos_num): Make it scalar.
10441 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10442 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10443 and ira_reg_class_max_nregs.
10444 (bucket_allocno_compare_func): Check frequency first.
10445 (sort_bucket): Add compare function as a parameter.
10446 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10447 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10448 (push_allocno_to_stack): Rewrite for checking new allocno
10450 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10451 (push_only_colorable): Pass new parameter to sort_bucket.
10452 (push_allocno_to_spill): Remove.
10453 (allocno_spill_priority_compare): Make it inline and rewrite.
10454 (splay_tree_allocate, splay_tree_free): Remove.
10455 (allocno_spill_sort_compare): New function.
10456 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10457 build and use splay tree. Choose first allocno in uncolorable
10458 allocno bucket to spill. Remove setting spill cost.
10459 (all_conflicting_hard_regs): Remove.
10460 (setup_allocno_available_regs_num): Check only profitable hard
10461 regs. Print info about hard regs nodes.
10462 (setup_allocno_left_conflicts_size): Remove.
10463 (put_allocno_into_bucket): Don't call
10464 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10465 (improve_allocation): New.
10466 (color_allocnos): Call setup_profitable_hard_regs,
10467 form_object_hard_regs_nodes_forest, improve_allocation,
10468 finish_object_hard_regs_nodes_forest. Setup spill cost.
10469 (print_loop_title): Use pressure classes.
10470 (color_allocnso): Ditto.
10471 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10472 and allocnos_for_spilling.
10473 (ira_sort_regnos_for_alter_reg): Don't setup members
10474 {first,next}_coalesced_allocno.
10475 (color): Remove allocating and freeing removed_splay_allocno_vec.
10476 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10477 prohibited_class_mode_regs.
10479 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10481 (update_allocno_pressure_excess_length): Use pressure classes.
10482 (inc_register_pressure, dec_register_pressure): Check for pressure
10484 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10485 pressure class. Use ira_reg_class_nregs instead of
10486 ira_reg_class_max_nregs.
10487 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10488 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10489 (single_reg_class): Use ira_reg_class_nregs instead of
10490 ira_reg_class_max_nregs.
10491 (process_bb_node_lives): Use pressure classes.
10493 * ira-emit.c: Remove mentioning cover classes from the file. Use
10494 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10495 (change_loop): Use pressure classes.
10496 (modify_move_list): Call ira_set_allocno_class instead of
10497 ira_set_allocno_cover_class.
10499 * ira-build.c: Remove mentioning cover classes from the file. Use
10500 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10501 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10502 ALLOCNO_UPDATED_CLASS_COST instead of
10503 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10504 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10505 (ira_create_allocno): Remove initialization of
10506 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10507 ALLOCNO_COLORABLE_P.
10508 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10509 Update conflict regs for the objects.
10510 (create_cap_allocno): Remove assert. Don't propagate
10511 ALLOCNO_AVAILABLE_REGS_NUM.
10512 (ira_free_allocno_costs): New function.
10513 (finish_allocno): Change a part of code into call of
10514 ira_free_allocno_costs.
10515 (low_pressure_loop_node_p): Use pressure classes.
10516 (object_range_compare_func): Don't compare classes.
10517 (setup_min_max_conflict_allocno_ids): Ditto.
10519 * loop-invariant.c: Remove mentioning cover classes from the file.
10520 Use ira_pressure_classes and ira_pressure_classes_num instead of
10521 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10522 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10523 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10524 Use reg_allocno_class instead of reg_cover_class.
10525 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10526 STACK_REG_COVER_CLASS.
10527 (get_regno_cover_class): Rename to get_regno_pressure_class.
10528 (move_loop_invariants): Initialize and finalize regstat.
10530 * ira.c: Remove mentioning cover classes from the file. Add
10531 comments about coloring without cover classes. Use ALLOCNO_CLASS
10532 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10533 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10534 setup_class_subset_and_memory_move_costs.
10535 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10536 (setup_cover_and_important_classes): Rename to
10537 setup_allocno_and_important_classes.
10538 (setup_class_translate_array): New.
10539 (setup_class_translate): Call it for allocno and pressure classes.
10540 (cover_class_order): Rename to allocno_class_order.
10541 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10542 of ira_class_translate.
10543 (reorder_important_classes): Set up ira_important_class_nums.
10544 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10545 (print_class_cover): Rename to print_classes. Add parameter.
10546 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10547 Print pressure classes too.
10548 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10549 setup_reg_subclasses.
10550 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10551 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10552 (setup_prohibited_class_mode_regs): Use
10553 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10554 (clarify_prohibited_class_mode_regs): New function.
10555 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10556 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10557 (ira_init_once): Initialize them.
10558 (free_register_move_costs): Process them.
10559 (ira_init): Move calls of find_reg_classes and
10560 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10561 Call clarify_prohibited_class_mode_regs.
10562 (ira_no_alloc_reg): Remove.
10563 (too_high_register_pressure_p): Use pressure classes.
10565 * sched-deps.c: Remove mentioning cover classes from the file.
10566 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10567 ira_pressure_classes and ira_pressure_classes_num instead of
10568 ira_reg_class_cover_size and ira_reg_class_cover.
10569 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10570 sched_regno_pressure_class instead of sched_regno_cover_class.
10571 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10572 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10574 * ira.h: Add 2010 to Copyright.
10575 (ira_no_alloc_reg): Remove external.
10576 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10577 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10578 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10579 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10580 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10581 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10582 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10583 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10584 x_ira_no_alloc_regs.
10585 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10586 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10587 ira_allocno_classes_num and ira_allocno_classes.
10588 (ira_class_translate): Rename to ira_allocno_class_translate.
10589 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10590 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10591 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10592 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10593 (ira_no_alloc_regs): New.
10595 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10596 classes from the file. Use ALLOCNO_CLASS instead of
10597 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10598 ALLOCNO_COVER_CLASS_COST.
10599 (regno_cover_class): Rename to regno_aclass.
10600 (record_reg_classes): Use ira_reg_class_subunion instead of
10601 ira_reg_class_union.
10602 (record_address_regs): Check overflow.
10603 (scan_one_insn): Ditto.
10604 (print_allocno_costs): Print total mem cost fore regional allocation.
10605 (print_pseudo_costs): Use REG_N_REFS.
10606 (find_costs_and_classes): Use classes intersected with them on the
10607 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10608 ira_reg_class_union. Use ira_allocno_class_translate and
10609 regno_aclass instead of ira_class_translate and regno_cover_class.
10610 Modify code for finding regno_aclass. Setup preferred classes for
10612 (setup_allocno_cover_class_and_costs): Rename to
10613 setup_allocno_class_and_costs. Use regno_aclass instead of
10614 regno_cover_class. Use ira_set_allocno_class instead of
10615 ira_set_allocno_cover_class.
10616 (init_costs, finish_costs): Use regno_aclass instead of
10618 (ira_costs): Use setup_allocno_class_and_costs instead of
10619 setup_allocno_cover_class_and_costs.
10620 (ira_tune_allocno_costs_and_cover_classes): Rename to
10621 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10622 by processing objects. Use ira_reg_class_max_nregs instead of
10623 ira_reg_class_nregs.
10625 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10627 * sched-int.h: Remove mentioning cover classes from the file.
10628 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10630 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10631 classes from the file.
10632 (struct reg_pref): Rename coverclass into allocnoclass.
10633 (reg_cover_class): Rename to reg_allocno_class.
10635 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10637 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10639 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10641 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10643 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10645 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10647 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10649 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10651 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10653 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10655 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10656 (i386_ira_cover_classes): Ditto.
10658 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10660 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10662 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10664 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10666 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10668 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10670 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10671 (mips_ira_cover_classes): Ditto.
10673 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10675 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10677 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10679 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10681 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10683 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10684 (IRA_COVER_CLASSES_VSX): Ditto.
10686 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10687 (rs6000_ira_cover_classes): Ditto.
10689 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10691 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10693 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10695 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10697 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10699 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10701 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10703 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10705 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10707 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10709 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10712 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10713 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10714 dw_fde_unlikely_section_end_label, cold_in_std_section,
10715 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10716 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10718 (output_fde): Use dw_fde_second_{begin,end} if second is
10719 true, otherwise dw_fde_{begin,end}.
10720 (output_call_frame_info): Test dw_fde_second_begin != NULL
10721 instead of dw_fde_switched_sections.
10722 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10723 fields, initialize new fields. Initialize in_std_section
10724 unconditionally from the first partition.
10725 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10726 dw_fde_second_begin is non-NULL.
10727 (dwarf2out_switch_text_section): Stop initializing removed
10728 dw_fde_struct fields, initialize new fields, initialize
10729 also dw_fde_end here. Set dw_fde_switch_cfi even when
10730 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10731 (struct var_loc_list_def): Add last_before_switch field.
10732 (arange_table, arange_table_allocated, arange_table_in_use,
10733 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10734 (size_of_aranges): Count !in_std_section and !second_in_std_section
10735 hunks in fdes, instead of looking at arange_table_in_use.
10736 (output_aranges): Add aranges_length argument, don't call
10737 size_of_aranges here. Instead of using aranges_table*
10738 emit ranges for fdes when !in_std_section resp.
10739 !second_in_std_section.
10740 (dw_loc_list): Break ranges crossing section switch.
10741 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10742 use dw_fde_second_end instead of dw_fde_end as end of last range.
10743 (gen_subprogram_die): Don't call add_arange. Use
10744 dw_fde_{begin,end} for first partition and if switched
10745 section dw_fde_second_{begin,end} for the second.
10746 (var_location_switch_text_section_1,
10747 var_location_switch_text_section): New functions.
10748 (dwarf2out_begin_function): Initialize cold_text_section even
10749 when function_section () isn't text_section.
10750 (prune_unused_types): Don't walk arange_table.
10751 (dwarf2out_finish): Don't needlessly test
10752 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10753 If info_section_emitted, call size_of_aranges and if it indicates
10754 non-empty .debug_aranges, call output_aranges with the computed
10755 size. Stop using removed dw_fde_struct fields, use
10756 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10760 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10761 create ENTRY_VALUE if incoming or address of incoming's MEM
10763 * dwarf2out.c (mem_loc_descriptor): Don't emit
10764 DW_OP_GNU_entry_value of DW_OP_fbreg.
10765 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10766 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10767 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10768 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10770 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10771 is a REG_P or MEM_P with REG_P address, compute hash directly
10772 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10773 (preserve_only_constants): Don't clear VALUES forwaring
10774 ENTRY_VALUE to some other VALUE.
10776 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10778 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10779 instead of GEN_INT.
10781 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10783 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10784 block before expanding the statement.
10785 (expand_gimple_stmt_1): Likewise. Set them here...
10786 (expand_gimple_stmt): ...and not here. Tidy.
10787 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10790 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10792 * Makefile.in: New rule for cprop.o.
10793 * gcse.c: Move constant/copy propagation to cprop.c.
10794 (compute_local_properties): Only handle expression tables.
10795 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10796 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10797 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10798 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10799 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10800 compute_cprop_data, find_used_regs, try_replace_reg,
10801 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10802 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10803 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10804 find_bypass_set, reg_killed_on_edge, bypass_block,
10805 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10806 execute_rtl_cprop, pass_rtl_cprop): Move to...
10807 * cprop.c: ...here. New file, constant/copy propagation for RTL
10808 moved from gcse.c to here with minor cleanups in duplicated code.
10810 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10812 * config/i386/i386.c (flag_opts): Fix a typo in
10813 -mavx256-split-unaligned-store.
10815 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10817 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10818 LIBCALL_VALUE): Remove macros.
10819 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10820 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10821 (h8300_function_value, h8300_libcall_value,
10822 h8300_function_value_regno_p): New functions.
10824 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10826 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10828 2011-03-28 Jeff Law <law@redhat.com>
10830 * tree-ssa-threadupdate.c (redirect_edges): Call
10831 create_edge_and_update_destination_phis as needed.
10832 (create_edge_and_update_destination_phis): Accept new BB argument.
10833 All callers updated.
10834 (thread_block): Do not update the profile when threading around
10835 intermediate blocks.
10836 (thread_single_edge): Likewise.
10837 (determine_bb_domination_status): If BB is not a successor of the
10838 loop header, return NONDOMINATING.
10839 (register_jump_thread): Note when we register a jump thread around
10840 an intermediate block.
10841 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10842 (thread_across_edge): Use it.
10844 2011-03-28 Tristan Gingold <gingold@adacore.com>
10846 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10847 when for_return is 2.
10849 2011-03-28 Jeff Law <law@redhat.com>
10851 * var-tracking.c (canonicalize_values_mark): Delete unused
10853 (canonicalize_values_star, set_variable_part): Likewise.
10854 (clobber_variable_part, delete_variable_part): Likewise.
10856 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10858 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10860 2011-03-28 Martin Jambor <mjambor@suse.cz>
10862 * tree-inline.c (expand_call_inline): Do not check that destination
10864 (optimize_inline_calls): Assert that destination node is analyzed.
10865 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10866 not call tree_lowering_passes.
10867 * cgraph.h (cgraph_analyze_function): Declare.
10868 * cgraphunit.c (cgraph_analyze_function): Make public.
10870 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10872 * config/sparc/sparc-opts.h: New.
10873 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10874 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10875 (sparc_option_override): Store processor_type enumeration rather
10876 than string in cpu_default. Remove name and enumeration from
10877 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10878 without using sparc_select. Use target_flags_explicit instead of
10880 * config/sparc/sparc.h (enum processor_type): Move to
10882 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10883 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10884 HeaderInclude entry.
10885 (mcpu=, mtune=): Use Var and Enum.
10886 (sparc_processor_type): New Enum and EnumValue entries.
10888 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10889 Iain Sandoe <iains@gcc.gnu.org>
10892 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10894 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10896 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10897 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10898 Insert new statements at it in lieu of STMT.
10899 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10900 * tree-vect-stmts.c (vectorizable_store): Likewise.
10901 (vectorizable_load): Likewise.
10903 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10905 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10910 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10912 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10913 unaligned 256bit load/store.
10914 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10915 (*avx_movdqu<avxmodesuffix>): Likewise.
10917 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10920 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10921 * config/pa/pa.md (iordi3): Use new predicate in expander.
10922 (iorsi3): Likewise.
10924 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10926 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10927 FUNCTION_VALUE_REGNO_P): Remove macros.
10928 * config/mips/mips-protos.h (mips_function_value): Remove.
10929 * config/mips/mips.c (mips_function_value): Rename to...
10930 (mips_function_value_1): ... this. Make static. Handle receiving
10931 the function type in 'fn_decl_or_type' argument.
10932 (mips_function_value, mips_libcall_value,
10933 mips_function_value_regno_p): New function.
10934 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10935 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10937 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10939 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10940 and -mavx256-split-unaligned-store.
10941 (ix86_option_override_internal): Split 32-byte AVX unaligned
10942 load/store by default.
10943 (ix86_avx256_split_vector_move_misalign): New.
10944 (ix86_expand_vector_move_misalign): Use it.
10946 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10947 -mavx256-split-unaligned-store.
10949 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10950 256bit load/store. Generate unaligned store on misaligned memory
10952 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10954 (*avx_movdqu<avxmodesuffix>): Likewise.
10956 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10957 -mavx256-split-unaligned-store.
10959 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10962 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10965 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10967 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10968 opno arguments with an expand_operand. Use create_input_operand.
10969 (mips_prepare_builtin_target): Delete.
10970 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10972 (mips_expand_builtin_direct): Use create_output_operand and
10973 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10974 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10975 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10977 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10979 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10981 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10983 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10985 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10986 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10987 basic blocks and call commit_edge_insertions directly.
10988 (fixup_abnormal_edges): Move from here to...
10989 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10990 on the edges and return whether some have actually been inserted.
10991 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10994 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10996 PR rtl-optimization/48144
10997 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10998 (merge_expr_data): ... here.
10999 (av_set_intersect): Rename to av_set_code_motion_filter.
11000 Update all callers. Call merge_history_vect when an expression
11001 is found in both sets.
11002 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11004 2011-03-26 Alan Modra <amodra@gmail.com>
11006 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11007 cmodel medium addresses.
11008 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11009 64-bit gpr loads and stores.
11010 (rs6000_secondary_reload_ppc64): New function.
11011 * config/rs6000/rs6000-protos.h: Declare it.
11012 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11014 2011-03-26 Alan Modra <amodra@gmail.com>
11017 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11018 GNU Go in traceback table.
11020 2011-03-25 Richard Henderson <rth@redhat.com>
11022 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11023 if there are exactly 6 operands.
11024 (set_storage_via_setmem): Similarly.
11026 2011-03-25 Kai Tietz <ktietz@redhat.com>
11028 * collect2.c (write_c_file_stat): Handle backslash
11029 as right-hand directory separator.
11030 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11031 checking just for slash.
11032 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11033 instead of checking for trailing slash.
11034 * gcc.c (record_temp_file): Use filename_cmp instead
11036 (do_spec_1): Likewise.
11037 (replace_outfile_spec_function): Likewise.
11038 (is_directory): Use filename_ncmp instead of strncmp.
11039 (print_multilib_info): Likewise.
11040 * gcov.c (find_source): Use filename_cmp instead
11042 (make_gcov_file_name): Fix order of slash/backslash
11044 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11045 (add_standard_paths): Likewise.
11046 * mips-tfile.c (saber_stop): Handle backslash.
11047 * prefix.c (update_path): Use filename_ncmp instead of
11049 * profile.c (output_location): Use filename_cmp instead
11051 * read-md.c (handle_toplevel_file): Handle backslash.
11052 * tlink.c (frob_extension): Likewise.
11053 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11055 * tree-dump.c (dequeue_and_dump): Handle backslash.
11056 * tree.c (get_file_function_name): Likewise.
11057 * gengtype.c (read_input_list): Likewise.
11058 (get_file_realbasename): Likewise.
11059 (get_output_file_with_visibility): Use filename_cmp
11062 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11064 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11067 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11069 * fold-const.c (expr_location_or): New function.
11070 (fold_truth_not_expr): Call it.
11072 2011-03-25 Jeff Law <law@redhat.com>
11074 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11076 * c-family/c-common.c (def_fn_type): Likewise.
11077 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11078 * emit-rtl.c (gen_rtvec): Likewise.
11079 * lto/lto-lang.c (def_fn_type): Likewise.
11081 2011-03-25 Richard Guenther <rguenther@suse.de>
11083 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11084 also generate copies.
11085 (fini_copy_prop): Handle constant values properly.
11087 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11089 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11090 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11091 (hash_loc_operands, compare_loc_operands): Handle
11092 DW_OP_GNU_entry_value.
11094 2011-03-25 Kai Tietz <ktietz@redhat.com>
11096 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11097 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11098 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11099 comment and use macro TARGET_64BIT_MS_ABI instead.
11100 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11101 and change default behavior for 32-bit MS_ABI.
11102 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11103 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11105 (ix86_cfun_abi): Likewise.
11106 (ix86_maybe_switch_abi): Adjust comment.
11107 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11108 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11109 instead of checking for SYSV_ABI.
11110 (ix86_nsaved_sseregs): Likewise.
11111 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11113 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11114 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11115 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11116 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11117 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11119 2011-03-25 Richard Guenther <rguenther@suse.de>
11121 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11122 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11123 (verify_gimple): Remove.
11124 * tree-cfg.c (verify_gimple_call): Merge verification
11126 (verify_gimple_phi): Merge verification from verify_stmts.
11127 (verify_gimple_label): New function.
11128 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11129 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11130 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11131 (verify_stmts): Rename to verify_gimple_in_cfg.
11132 (verify_gimple_in_cfg): New function.
11133 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11134 * tree-ssa.c (verify_ssa): Likewise.
11135 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11137 2011-03-25 Richard Guenther <rguenther@suse.de>
11139 * passes.c (init_optimization_passes): Add FRE pass after
11142 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11143 Andrew Stubbs <ams@codesourcery.com>
11145 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11147 (arm_movdi_vfp_cortexa8): New pattern.
11148 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11149 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11150 instructions when tuning for Cortex-A8. Set attribute "arch".
11151 * config/arm/arm.md: Move include arm-tune.md up a bit.
11152 (define_attr "arch"): Add "onlya8" and "nota8" values.
11153 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11155 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11159 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11161 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11162 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11163 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11164 * passes.c (init_optimization_passes): Move
11165 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11167 2011-03-25 Kai Tietz <ktietz@redhat.com>
11169 * c-typeck.c (comptypes_internal): Replace target
11170 hook call of comp_type_attributes by version in tree.c file.
11171 * gimple.c (gimple_types_compatible_p_1): Likewise.
11172 * tree-ssa.c (useless_type_conversion_p): Likewise.
11173 * tree.c (build_type_attribute_qual_variant): Likewise.
11174 (attribute_value_equal): New static helper function.
11175 (comp_type_attributes): New function.
11176 (merge_attributes): Use attribute_value_equal for comparison.
11177 (attribute_list_contained): Likewise.
11178 * tree.h (comp_type_attributes): New prototype.
11180 2011-03-25 Richard Guenther <rguenther@suse.de>
11182 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11183 of complex types at -O0.
11184 (verify_gimple_assign_binary): Likewise.
11185 (verify_gimple_assign_ternary): Likewise.
11187 2011-03-24 Mark Wielaard <mjw@redhat.com>
11189 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11190 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11192 2011-03-24 Mark Wielaard <mjw@redhat.com>
11195 * dwarf2out.c (output_abbrev_section): Only write table when
11196 abbrev_die_table_in_use > 1.
11198 2011-02-24 Richard Henderson <rth@redhat.com>
11200 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11201 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11202 (alpha_expand_unaligned_load_words): Use extql.
11203 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11204 (emit_insxl): Handle all modes for consistency.
11206 2011-02-24 Richard Henderson <rth@redhat.com>
11208 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11209 (alpha_expand_unaligned_load): Likewise.
11210 (alpha_expand_unaligned_store): Likewise.
11211 (alpha_expand_unaligned_load_words): Likewise.
11212 (alpha_expand_unaligned_store_words): Likewise.
11213 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11214 (alpha_split_lock_test_and_set_12): Likewise.
11215 (print_operand, alpha_fold_builtin_extxx): Likewise.
11216 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11217 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11218 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11219 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11220 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11221 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11222 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11223 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11224 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11225 (extwl, extll, extql): Similarly.
11226 (inswh, inslh, insqh): Similarly.
11227 (mskbl, mskwl, mskll, mskql): Similarly.
11228 (mskwh, msklh, mskqh): Similarly.
11230 2011-02-24 Richard Henderson <rth@redhat.com>
11232 * config/alpha/alpha.md (attribute isa): Add er, ner.
11233 (attribute enabled): Handle them.
11234 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11236 2011-02-24 Richard Henderson <rth@redhat.com>
11238 * config/alpha/alpha.md (attribute isa): Add vms.
11239 (attribute enabled): Handle it.
11240 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11241 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11242 (*movtf): Rename from *movtf_internal for consistency.
11243 (*movsi): Merge with *movsi_nt_vms.
11244 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11245 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11246 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11247 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11249 2011-02-24 Richard Henderson <rth@redhat.com>
11251 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11252 (extendqisi2, extendhisi2): Likewise.
11253 (extendqidi2): Simplify BWX/non-BWX expansions.
11254 (extendhidi2): Similarly.
11256 2011-02-24 Richard Henderson <rth@redhat.com>
11258 * config/alpha/alpha.md (attribute isa): New.
11259 (attribute enabled): New.
11260 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11261 (zero_extendqisi2, zero_extendqidi2): Similarly.
11262 (zero_extendhisi2, zero_extendhidi2): Similarly.
11263 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11265 2011-02-24 Richard Henderson <rth@redhat.com>
11267 * config/alpha/predicates.md (input_operand): Revert last change;
11268 update comment to mention 32-bit VMS rather than Windows.
11270 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11272 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11273 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11274 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11275 * passes.c (init_optimization_passes): Move
11276 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11278 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11280 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11282 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11284 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11287 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11290 * simplify-rtx.c (simplify_const_unary_operation): Call
11291 real_convert when changing mode class with FLOAT_EXTEND.
11293 2011-03-24 Nick Clifton <nickc@redhat.com>
11295 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11296 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11297 * config/rx/rx.c (rx_option_override): Set align_jumps,
11298 align_loops and align_labels if not set by the user.
11299 (rx_align_for_label): New function.
11300 (rx_max_skip_for_label): New function.
11301 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11302 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11303 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11304 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11305 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11307 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11309 PR rtl-optimization/48263
11310 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11311 and original commutative_p handling. Use maybe_gen_insn.
11313 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11315 * reload.c (find_reloads_subreg_address): Add address_reloaded
11316 parameter and return true there if the full address has been
11318 (find_reloads_toplev): Pass address_reloaded flag.
11319 (find_reloads_address_1): Don't use address_reloaded parameter.
11321 2011-03-24 Jeff Law <law@redhat.com>
11323 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11324 unused variable "ann".
11325 (remove_unused_locals): Likewise.
11327 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11330 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11333 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11335 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11336 for invalid symbolic addresses.
11337 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11340 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11342 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11343 the argument in calls to fold_truth_not_expr.
11345 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11347 * tree.c (record_node_allocation_statistics): New function.
11348 (make_node_stat, copy_node_stat, build_string): Call it.
11349 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11350 (build1_stat, build_omp_clause): Likewise.
11352 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11354 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11357 2011-03-24 Richard Guenther <rguenther@suse.de>
11359 PR tree-optimization/48271
11360 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11361 blocks that still exist.
11363 2011-03-24 Richard Guenther <rguenther@suse.de>
11365 PR tree-optimization/48270
11366 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11367 not free datarefs before ddrs.
11369 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11371 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11372 from the address built for a reference with variable offset.
11374 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11377 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11378 alternatives that can be handled with movq or movabsq insn.
11379 (*movdf_internal): Disable for !TARGET_64BIT.
11380 (*movdf_internal_nointeger): Ditto.
11381 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11383 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11385 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11386 (FUNCTION_ARG_ADVANCE): Likewise.
11387 * tm.texi.in: Change references to them to hook references.
11388 * tm.texi: Regenerate.
11389 * targhooks.c (default_function_arg): Eliminate check for target macro.
11390 (default_function_incoming_arg): Likewise.
11391 (default_function_arg_advance): Likewise.
11392 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11393 (function_arg_advance): Likewise.
11394 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11396 2011-03-24 Richard Guenther <rguenther@suse.de>
11398 PR middle-end/48269
11399 * tree-object-size.c (addr_object_size): Do not double-account
11400 for MEM_REF offsets.
11402 2011-03-24 Diego Novillo <dnovillo@google.com>
11404 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11405 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11406 (lto_input_data_block): Move from lto-opts.c. Make extern.
11408 (lto_input_string): Rename from input_string. Make extern.
11410 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11411 output_string_with_length.
11412 Output 0 to indicate a non-NULL string. Update all callers to
11414 (lto_output_string): Rename from output_string. Make extern.
11416 (lto_output_decl_state_streams): Make extern.
11417 (lto_output_decl_state_refs): Make extern.
11418 * lto-streamer.h (lto_input_string): Declare.
11419 (lto_input_data_block): Declare.
11420 (lto_output_string): Declare.
11421 (lto_output_string_with_length): Declare.
11422 (lto_output_decl_state_streams): Declare.
11423 (lto_output_decl_state_refs): Declare.
11425 2011-03-24 Richard Guenther <rguenther@suse.de>
11427 PR tree-optimization/46562
11428 * tree.c (build_invariant_address): New function.
11429 * tree.h (build_invariant_address): Declare.
11430 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11431 a renamed function moved ...
11432 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11433 Take valueization callback parameter.
11434 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11435 * gimple-fold.h: New file.
11436 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11437 (ccp_fold, fold_const_aggregate_ref,
11438 fold_ctor_reference, fold_nonarray_ctor_reference,
11439 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11440 get_base_constructor): Move ...
11441 * gimple-fold.c: ... here.
11442 (gimple_fold_stmt_to_constant_1): New function
11443 split out from ccp_fold. Take a valueization callback parameter.
11444 Valueize all operands.
11445 (gimple_fold_stmt_to_constant): New wrapper function.
11446 (fold_const_aggregate_ref_1): New function split out from
11447 fold_const_aggregate_ref. Take a valueization callback parameter.
11448 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11449 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11450 invariant POINTER_PLUS_EXPRs to invariant form.
11451 (vn_valueize): New function.
11452 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11453 * tree-vrp.c (vrp_valueize): New function.
11454 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11455 to fold statements to constants.
11456 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11457 function declarations.
11458 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11459 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11461 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11463 * config/h8300/predicates.md (jump_address_operand): Fix register
11466 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11468 * doc/invoke.texi (max-stores-to-sink): Document.
11469 * params.h (MAX_STORES_TO_SINK): Define.
11470 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11471 if either vectorization or if-conversion is disabled.
11472 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11473 tree-vect-data-refs.c vect_equal_offsets.
11474 (dr_equal_offsets_p): New function.
11475 (find_data_references_in_bb): Remove static.
11476 * tree-data-ref.h (find_data_references_in_bb): Declare.
11477 (dr_equal_offsets_p): Likewise.
11478 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11479 (vect_drs_dependent_in_basic_block): Update calls to
11480 vect_equal_offsets.
11481 (vect_check_interleaving): Likewise.
11482 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11483 (cond_if_else_store_replacement): Rename to...
11484 (cond_if_else_store_replacement_1): ... this. Change arguments and
11486 (cond_if_else_store_replacement): New function.
11487 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11488 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11490 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11493 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11494 to subtract lower bound instead of GEN_INT().
11496 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11501 * doc/extend.texi (Alignment): Move section to match order in TOC.
11502 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11503 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11505 2011-03-23 Jeff Law <law@redhat.com>
11507 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11508 before removing the edge.
11510 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11511 it may have been freed by redirect_branch_edge or
11512 redirect_edge_succ_nodup.
11514 2011-03-23 Richard Guenther <rguenther@suse.de>
11516 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11517 (check_va_list_escapes): Likewise.
11518 (check_all_va_list_escapes): Likewise.
11520 2011-03-23 Richard Guenther <rguenther@suse.de>
11522 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11523 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11524 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11525 (alias.o): Likewise.
11526 (ipa-type-escape.o): Remove.
11527 (ipa-struct-reorg.o): Likewise.
11528 (GTFILES): Remove ipa-struct-reorg.c.
11529 * alias.c: Do not include ipa-type-escape.h.
11530 * tree-ssa-alias.c: Likewise.
11531 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11532 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11533 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11534 and ipa-type-escape passes.
11535 * tree-pass.h (pass_ipa_type_escape): Remove.
11536 (pass_ipa_struct_reorg): Likewise.
11537 * ipa-struct-reorg.h: Remove.
11538 * ipa-struct-reorg.c: Likewise.
11539 * ipa-type-escape.h: Likewise.
11540 * ipa-type-escape.c: Likewise.
11541 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11542 (--param struct-reorg-cold-struct-ratio): Likewise.
11543 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11544 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11545 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11547 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11549 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11550 cpu attribute value.
11551 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11552 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11553 * config/s390/s390.c (processor_flags_table): New constant array.
11554 (s390_handle_arch_option): Remove.
11555 (s390_handle_option): Remove s390_handle_arch_option invocations
11556 and OPT_mwarn_framesize_ handling.
11557 (s390_option_override): Remove s390_handle_arch_option invocation.
11558 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11560 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11561 * config/s390/s390.opt (s390_tune, s390_arch)
11562 (march=): Replace s390_arch_option enum and values with
11563 processor_type. Set variable name to s390_arch. Set
11564 initialization value.
11565 (mtune=): Replace s390_arch_option with processor_type. Set
11566 variable name to s390_tune. Set initialization value.
11568 2011-03-23 Julian Brown <julian@codesourcery.com>
11570 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11571 accesses which are not naturally aligned.
11573 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11576 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11578 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11580 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11581 parameter from "int" to "enum insn_code".
11582 (expand_operand_type): New enum.
11583 (expand_operand): New structure.
11584 (create_expand_operand): New function.
11585 (create_fixed_operand, create_output_operand): Likewise
11586 (create_input_operand, create_convert_operand_to): Likewise.
11587 (create_convert_operand_from, create_address_operand): Likewise.
11588 (create_integer_operand): Likewise.
11589 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11590 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11591 (expand_insn, expand_jump_insn): Likewise.
11592 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11593 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11594 (expand_movstr, expand_builtin___clear_cache): Likewise.
11595 (expand_builtin_lock_release): Likewise.
11596 * explow.c (allocate_dynamic_stack_space): Likewise.
11597 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11598 and use the default handling in that case.
11599 * expmed.c (check_predicate_volatile_ok): Delete.
11600 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11601 (emit_cstore): Likewise.
11602 * expr.c (emit_block_move_via_movmem): Likewise.
11603 (set_storage_via_setmem, expand_assignment): Likewise.
11604 (emit_storent_insn, try_casesi): Likewise.
11605 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11606 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11607 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11608 (expand_twoval_unop, expand_twoval_binop): Likewise.
11609 (expand_unop_direct, emit_indirect_jump): Likewise.
11610 (emit_conditional_move, vector_compare_rtx): Likewise.
11611 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11612 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11613 (expand_sync_lock_test_and_set): Likewise.
11614 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11615 (emit_unop_insn): Likewise.
11616 (expand_copysign_absneg): Change icode to an insn_code.
11617 (create_convert_operand_from_type): New function.
11618 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11619 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11620 (expand_insn, expand_jump_insn): Likewise.
11621 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11622 than const_int_operand for operand 2.
11624 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11626 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11629 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11631 * emit-rtl.c (emit_pattern_before_noloc): New function.
11632 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11633 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11634 (emit_pattern_after_noloc): New function.
11635 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11636 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11638 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11640 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11641 (__ffsDI2): Likewise.
11643 2011-03-22 Richard Henderson <rth@redhat.com>
11645 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11646 of !TARGET_ABI_OPEN_VMS.
11647 (alpha_trampoline_init, alpha_start_function): Likewise.
11648 (alpha_expand_epilogue, alpha_file_start): Likewise.
11649 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11650 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11651 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11652 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11653 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11655 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11657 * config/s390/s390-opts.h: New.
11658 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11659 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11660 s390_stack_guard): Remove.
11661 (s390_handle_arch_option): Return void. Take enum
11662 s390_arch_option value instead of string and searching array.
11663 (s390_handle_option): Don't assert that global structures are in
11664 use. Access variables via opts pointer. Use error_at. Don't use
11665 sscanf for -mstack-guard= or -mstack-size=. Update call to
11666 s390_handle_arch_option.
11667 (s390_option_override): Update call to s390_handle_arch_option.
11668 (s390_emit_prologue): Use %d format for s390_stack_size in
11669 diagnostic. Use %wd for HOST_WIDE_INT.
11670 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11671 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11672 * config/s390/s390.opt (config/s390/s390-opts.h): New
11673 HeaderInclude entry.
11674 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11675 s390_arch_flags, s390_warn_framesize): New Variable entries.
11676 (s390_arch_option): New Enum and EnumValue entries.
11677 (march=): Use Enum instead of Var.
11678 (mstack-guard=, mstack-size=): Use UInteger and Var.
11679 (mtune=): Use Enum.
11681 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11683 * config/score/score.c (score_handle_option): Don't assert that
11684 global structures are in use. Access target_flags via opts
11685 pointer. Use value of -march= option to determine target_flags
11687 * config/score/score.opt (march=): Use Enum.
11688 (score_arch): New Enum and EnumValue entries.
11690 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11692 * config/mep/mep.c (option_mtiny_specified): Remove.
11693 (mep_option_override): Move register handling for -mivc2 from
11694 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11695 instead of option_mtiny_specified.
11696 (mep_handle_option): Access target_flags via opts pointer. Don't
11697 assert that global structures are in use. Defer part of -mivc2
11698 handling and move it to mep_option_override.
11699 * config/mep/mep.opt (IVC2): New Mask entry.
11700 (mivc2): Use Var and Defer instead of Mask.
11702 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11704 * config/v850/v850-opts.h: New.
11705 * config/v850/v850.c (small_memory): Replace with
11706 small_memory_physical_max array. Make that array static const.
11707 (v850_handle_memory_option): Take integer value of argument. Take
11708 gcc_options pointer, option text and location. Return void.
11709 Update for changes to small memory structures.
11710 (v850_handle_option): Access target_flags via opts pointer. Don't
11711 assert that global structures are in use. Update calls to
11712 v850_handle_memory_option.
11713 (v850_encode_data_area): Update references to small memory settings.
11714 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11715 (enum small_memory_type): Move to v850-opts.h.
11716 * config/v850/v850.opt (config/v850/v850-opts.h): New
11717 HeaderInclude entry.
11718 (small_memory_max): New Variable entry.
11719 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11720 (mtda, mzda): Likewise.
11722 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11724 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11725 pointer. Don't assert that global structures are in use.
11727 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11729 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11730 via opts pointer. Don't assert that global structures are in use.
11732 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11734 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11735 (munix=93): Use Var.
11736 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11737 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11738 * config/pa/pa-opts.h: New.
11739 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11740 (pa_handle_option): Don't assert that global structures are in
11741 use. Access target_flags via opts pointer. Don't handle
11742 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11744 (pa_option_override): Handle deferred OPT_mfixed_range_.
11746 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11748 * config/mn10300/mn10300-opts.h: New.
11749 * config/mn10300/mn10300.c (mn10300_processor,
11750 mn10300_tune_string): Remove.
11751 (mn10300_handle_option): Don't assert that global structures are
11752 in use. Access mn10300_processor via opts pointer. Don't handle
11754 * config/mn10300/mn10300.h (enum processor_type): Move to
11756 (mn10300_processor): Remove.
11757 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11758 HeaderInclude entry.
11759 (mn10300_processor): New Variable entry.
11762 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11764 * config/microblaze/microblaze.c: Don't include opts.h.
11765 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11766 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11767 (mno-clearbss): Use Var and Warn.
11769 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11771 * config/m32r/m32r-opts.h: New.
11772 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11773 (m32r_handle_option): Don't assert that global structures are in
11774 use. Access target_flags and m32r_cache_flush_func via opts
11775 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11776 OPT_mno_flush_trap here.
11777 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11778 include of m32r-opts.h.
11779 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11780 HeaderInclude entry.
11781 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11782 (mmodel=): Use Enum and Var.
11783 (m32r_model): New Enum and EnumValue entries.
11784 (mno-flush-trap): Use Var.
11785 (msdata=): Use Enum and Var.
11786 (m32r_sdata): New Enum and EnumValue entries.
11788 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11790 * config/m32c/m32c.c: Don't include opts.h.
11791 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11792 m32c_handle_option): Remove.
11793 (m32c_option_override): Check global_options_set.x_target_memregs
11794 instead of target_memregs_set.
11795 * config/m32c/m32c.h (target_memregs): Remove.
11796 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11799 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11801 * config/iq2000/iq2000-opts.h: New.
11802 * config/iq2000/iq2000.c: Don't include opts.h.
11803 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11804 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11805 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11806 HeaderInclude entry.
11807 (iq2000_tune): New Variable entry.
11808 (march=): Add comment. Use Enum.
11809 (iq2000_arch): New Enum and EnumValue entries.
11810 (mcpu=): Use Enum and Var.
11811 (iq2000_tune): New Enum and EnumValue entries.
11813 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11815 * config/ia64/ia64-opts.h: New.
11816 * config/ia64/ia64.c (ia64_tune): Remove.
11817 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11818 here. Use error_at.
11819 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11820 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11821 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11822 HeaderInclude entry.
11823 (ia64_tune): New Variable entry.
11824 (mfixed-range=): Use Defer and Var.
11825 (mtune=): Use Enum and Var.
11826 (ia64_tune): New Enum and EnumValue entries.
11828 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11830 * config/frv/frv-opts.h: New.
11831 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11833 (frv_cpu_type): Remove.
11834 * config/frv/frv.c: Don't include opts.h.
11835 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11836 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11837 (frv_cpu_type): New Variable entry.
11838 (frv_cpu): New Enum and EnumValue entries.
11840 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11842 * config/cris/cris.c (cris_handle_option): Access target_flags via
11843 opts pointer. Don't assert that global structures are in use.
11844 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11845 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11847 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11849 * config/bfin/bfin-opts.h: New.
11850 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11851 bfin_si_revision, bfin_workarounds): Remove.
11852 (bfin_cpus): Make static const.
11853 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11854 not bfin_lib_id_given.
11855 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11856 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11857 pointer. Use error_at. Don't assert that global structures are in use.
11858 * config/bfin/bfin.h: Include bfin-opts.h.
11859 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11860 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11861 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11862 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11865 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11867 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11868 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11869 or -msoft-float here.
11870 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11871 -msoft-float and -mhard-float.
11872 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11873 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11875 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11877 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11878 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11880 (LIBGCC_SPEC): Don't handle -msoft-float.
11881 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11883 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11885 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11886 -mfloat-abi=*, not -msoft-float and -mhard-float.
11887 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11889 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11890 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11891 mhard-float and msoft-float.
11892 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11893 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11894 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11895 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11897 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11898 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11900 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11902 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11905 2011-03-22 Richard Henderson <rth@redhat.com>
11907 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11908 TARGET_ABI_WINDOWS_NT.
11909 (alpha_output_function_end_prologue): Likewise.
11910 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11911 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11912 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11913 (trap, *movsi_nt_vms): Likewise.
11914 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11915 (*tablejump_osf_nt_internal): Remove.
11916 * config/alpha/predicates.md (input_operand): Only test Pmode.
11918 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11920 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11921 via opts pointer. Use error_at. Don't assert that global
11922 structures are in use.
11924 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11926 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11927 (ix86_handle_option): Access ix86_isa_flags and
11928 ix86_isa_flags_explicit via opts pointer. Don't assert that
11929 global structures are in use.
11930 (ix86_function_specific_save, ix86_function_specific_restore):
11931 Update ix86_isa_flags_explicit field name.
11932 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11933 (ix86_isa_flags_explicit): Rename TargetSave entry to
11934 x_ix86_isa_flags_explicit.
11936 2011-03-22 Richard Henderson <rth@redhat.com>
11938 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11939 (alpha_option_override, direct_return): Likewise.
11940 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11941 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11942 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11943 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11944 (alpha_expand_epilogue, alpha_end_function): Likewise.
11945 (alpha_init_libfuncs): Likewise.
11946 (struct machine_function): Remove unicosmk members.
11947 (print_operand) ['t']: Remove.
11948 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11949 unicosmk_output_module_name, unicosmk_output_common,
11950 current_section_align, unicosmk_output_text_section_asm_op,
11951 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11952 unicosmk_section_type_flags, unicosmk_unique_section,
11953 unicosmk_asm_named_section, unicosmk_insert_attributes,
11954 unicosmk_output_align, unicosmk_defer_case_vector,
11955 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11956 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11957 unicosmk_output_ssib, unicosmk_add_call_info_word,
11958 unicosmk_extern_head, unicosmk_output_default_externs,
11959 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11960 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11961 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11962 * config/alpha/alpha-protos.h: Update.
11963 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11964 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11965 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11966 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11967 (*mulsi_se, mulvsi3): Likewise.
11968 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11969 (*divmodsi_internal, call, call_value, realign): Likewise.
11970 (moddi3, umoddi3): Likewise; remove duplicate expander.
11971 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11972 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11973 (*movdi_nofix): Remove r/U alternative.
11974 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11975 * config/alpha/constraints.md ("U"): Remove.
11976 * config/alpha/predicates.md (call_operand"): Don't test
11977 TARGET_ABI_UNICOSMK.
11979 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11981 * target.def (handle_option): Take gcc_options and
11982 cl_decoded_option pointers and location_t.
11983 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11984 * doc/tm.texi: Regenerate.
11985 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11986 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11987 * lto-opts.c (lto_reissue_options): Generate option structure for
11988 targetm.handle_option call.
11989 * opts.c (target_handle_option): Update call to
11990 targetm.handle_option. Remove assertions about values now passed
11992 * targhooks.c (default_target_handle_option): New.
11993 * targhooks.h (default_target_handle_option): Declare.
11994 * config/alpha/alpha.c: Include opts.h.
11995 (alpha_handle_option): Update to new hook interface.
11996 * config/arm/arm.c: Include opts.h.
11997 (arm_handle_option): Update to new hook interface.
11998 * config/arm/t-arm (arm.o): Update dependencies.
11999 * config/bfin/bfin.c: Include opts.h.
12000 (bfin_handle_option): Update to new hook interface.
12001 * config/cris/cris.c: Include opts.h.
12002 (cris_handle_option): Update to new hook interface.
12003 * config/frv/frv.c: Include opts.h.
12004 (frv_handle_option): Update to new hook interface.
12005 * config/i386/i386.c: Include opts.h.
12006 (ix86_handle_option): Update to new hook interface.
12007 (ix86_valid_target_attribute_inner_p): Generate option structure
12008 for call to ix86_handle_option.
12009 * config/i386/t-i386 (i386.o): Update dependencies.
12010 * config/ia64/ia64.c: Include opts.h.
12011 (ia64_handle_option): Update to new hook interface.
12012 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12013 * config/iq2000/iq2000.c: Include opts.h.
12014 (iq2000_handle_option): Update to new hook interface.
12015 * config/m32c/m32c.c: Include opts.h.
12016 (m32c_handle_option): Update to new hook interface.
12017 * config/m32r/m32r.c: Include opts.h.
12018 (m32r_handle_option): Update to new hook interface.
12019 * config/m68k/m68k.c: Include opts.h.
12020 (m68k_handle_option): Update to new hook interface.
12021 * config/mep/mep.c: Include opts.h.
12022 (mep_handle_option): Update to new hook interface.
12023 * config/microblaze/microblaze.c: Include opts.h.
12024 (microblaze_handle_option): Update to new hook interface.
12025 * config/mips/mips.c: Include opts.h.
12026 (mips_handle_option): Update to new hook interface.
12027 * config/mn10300/mn10300.c: Include opts.h.
12028 (mn10300_handle_option): Update to new hook interface.
12029 * config/pa/pa.c: Include opts.h.
12030 (pa_handle_option): Update to new hook interface.
12031 * config/pdp11/pdp11.c: Include opts.h.
12032 (pdp11_handle_option): Update to new hook interface.
12033 * config/rs6000/rs6000.c: Include opts.h.
12034 (rs6000_handle_option): Update to new hook interface.
12035 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12036 * config/rx/rx.c: Include opts.h.
12037 (rx_handle_option): Update to new hook interface.
12038 * config/s390/s390.c: Include opts.h.
12039 (s390_handle_option): Update to new hook interface.
12040 * config/score/score.c: Include opts.h.
12041 (score_handle_option): Update to new hook interface.
12042 * config/sh/sh.c: Include opts.h.
12043 (sh_handle_option): Update to new hook interface.
12044 * config/sparc/sparc.c: Include opts.h.
12045 (sparc_handle_option): Update to new hook interface.
12046 * config/v850/v850.c: Include opts.h.
12047 (v850_handle_option): Update to new hook interface.
12049 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12051 * gcc.c (driver_unknown_option_callback): Only permit and save
12052 unknown -Wno- options.
12053 (driver_wrong_lang_callback): Save options directly instead of via
12054 driver_unknown_option_callback.
12056 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12058 * combine.c (simplify_set): Try harder to find the best CC mode when
12059 simplifying a nested COMPARE on the RHS.
12061 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12063 * config/alpha/gnu.h: Remove.
12064 * config/arc: Remove directory.
12065 * config/arm/netbsd.h: Remove.
12066 * config/arm/t-pe: Remove.
12067 * config/crx: Remove directory.
12068 * config/i386/netbsd.h: Remove.
12069 * config/m68hc11: Remove directory.
12070 * config/m68k/uclinux-oldabi.h: Remove.
12071 * config/mcore/mcore-pe.h: Remove.
12072 * config/mcore/t-mcore-pe: Remove.
12073 * config/netbsd-aout.h: Remove.
12074 * config/rs6000/gnu.h: Remove.
12075 * config/sh/sh-symbian.h: Remove.
12076 * config/sh/symbian-base.c: Remove.
12077 * config/sh/symbian-c.c: Remove.
12078 * config/sh/symbian-cxx.c: Remove.
12079 * config/sh/symbian-post.h: Remove.
12080 * config/sh/symbian-pre.h: Remove.
12081 * config/sh/t-symbian: Remove.
12082 * config/svr3.h: Remove.
12083 * config/vax/netbsd.h: Remove.
12084 * config.build: Don't handle i[34567]86-*-pe.
12085 * config.gcc: Remove handling of deprecations for most deprecated
12087 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12088 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12089 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12090 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12091 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12092 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12094 * config.host: Don't handle i[34567]86-*-pe.
12095 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12096 (ASM_SPEC32): Don't handle -mcall-gnu.
12097 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12099 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12100 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12101 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12102 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12103 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12104 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12105 conditional on SYMBIAN.
12106 * configure.ac: Don't handle powerpc*-*-gnu*.
12107 * configure: Regenerate.
12108 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12109 * doc/install-old.texi (m6811, m6812): Don't mention.
12110 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12111 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12112 (m68k-uclinuxoldabi): Don't mention.
12113 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12115 (-mcall-gnu): Remove.
12116 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12117 families): Remove constraint documentation.
12119 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12121 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12122 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12123 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12125 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12128 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12129 vector when peeking at the next token for vector, don't expand the
12132 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12134 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12135 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12136 * config/avr/avr.c (init_cumulative_args)
12137 (avr_function_arg_advance): Use it.
12138 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12140 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12141 (avr_function_ok_for_sibcall): ...this new function.
12142 (avr_lookup_function_attribute1): New static Function.
12143 (avr_naked_function_p, interrupt_function_p)
12144 (signal_function_p, avr_OS_task_function_p)
12145 (avr_OS_main_function_p): Use it.
12146 * config/avr/avr.md ("sibcall", "sibcall_value")
12147 ("sibcall_epilogue"): New expander.
12148 ("*call_insn", "*call_value_insn"): New insn.
12149 ("call_insn", "call_value_insn"): Remove
12150 ("call", "call_value", "epilogue"): Change expander to handle
12153 2011-03-21 Nick Clifton <nickc@redhat.com>
12155 * doc/invoke.texi (Overall Options): Move closing brace to end of
12157 (Optimization Options): Add missing @gol.
12158 (Directory Options): Likewise.
12159 (i386 and x86-64 Options): Likewise.
12160 (RS6000 and PowerPC Options): Likewise.
12161 (i386 and x86-64 Windows Options): Likewise.
12162 (V850 Options): Add text missing from descriptions.
12164 2011-03-22 Richard Henderson <rth@redhat.com>
12166 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12167 (avr_incoming_return_addr_rtx): New.
12168 (emit_push_byte): New.
12169 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12170 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12171 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12172 (emit_pop_byte): New.
12173 (expand_epilogue): Use it. Pop frame pointer by bytes.
12174 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12175 (INCOMING_RETURN_ADDR_RTX): New.
12176 (INCOMING_FRAME_SP_OFFSET): New.
12177 (ARG_POINTER_CFA_OFFSET): New.
12178 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12179 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12182 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12184 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12186 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12187 (FUNCTION_ARG_ADVANCE): Likewise.
12188 * tm.texi.in: Change references to them to hook references.
12189 * tm.texi: Regenerate.
12190 * targhooks.c (default_function_arg): Eliminate check for target
12192 (default_function_incoming_arg): Likewise.
12193 (default_function_arg_advance): Likewise.
12194 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12195 (function_arg_advance): Likewise.
12196 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12198 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12200 * tree.c (build_call_1): New function.
12201 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12203 2011-03-22 Richard Guenther <rguenther@suse.de>
12205 PR tree-optimization/48228
12206 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12207 for single-arg PHIs.
12209 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12211 PR rtl-optimization/48143
12212 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12213 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12214 sse2_cvtps2pd): Likewise.
12216 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12218 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12220 2011-03-22 Richard Guenther <rguenther@suse.de>
12222 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12223 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12224 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12225 and REALIGN_LOAD_EXPR.
12226 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12227 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12228 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12229 DOT_PROD_EXPR case ...
12230 (expand_expr_real_2): ... here.
12231 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12232 and REALIGN_LOAD_EXPR.
12233 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12234 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12235 (vect_create_epilog_for_reduction): Likewise.
12236 (vectorizable_reduction): Likewise.
12237 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12238 * tree-vect-stmts.c (vectorizable_load): Likewise.
12240 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12242 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12244 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12246 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12247 handling for PLTOFF/GOTOFF.
12249 2011-03-22 Nick Clifton <nickc@redhat.com>
12251 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12252 trailing backslash from the end of the macro definition.
12254 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12256 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12259 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12261 * expr.h (prepare_operand): Move to...
12262 * optabs.h (prepare_operand): ...here and change the insn code
12263 parameter from "int" to "enum insn_code".
12264 (insn_operand_matches): Declare.
12265 * expr.c (init_expr_target): Use insn_operand_matches.
12266 (compress_float_constant): Likewise.
12267 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12268 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12269 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12270 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12272 (gen_cond_trap): Likewise.
12273 (prepare_operand): Likewise. Change icode to an insn_code.
12274 (insn_operand_matches): New function.
12275 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12276 * reload1.c (gen_reload): Likewise.
12277 * targhooks.c (default_secondary_reload): Likewise.
12279 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12281 * config/alpha/alpha.md (unspec): New define_c_enum.
12284 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12287 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12288 between a call and its CALL_ARG_LOCATION note.
12290 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12292 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12294 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12298 * c-common.c (shorten_compare): If primopN is first sign-extended
12299 to opN and then zero-extended to result type, set primopN to opN.
12301 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12303 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12304 for barrier handlers.
12306 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12308 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12309 UNSPEC constants to be in the unspec enumeration, and redefine
12310 all UNSPECV constants to be in the unspecv enumeration, so that
12311 dumps print which unspec/unspec_volatile this is.
12312 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12313 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12314 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12315 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12316 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12318 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12319 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12320 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12321 * config/rs6000/sync.md (isync, lwsync): Ditto.
12323 2011-03-21 Richard Guenther <rguenther@suse.de>
12325 * params.def (lto-min-partition): Fix typo.
12327 2011-03-21 Richard Guenther <rguenther@suse.de>
12330 * c-decl.c (grokdeclarator): Drop to the main variant only
12331 for array types. Drop flag_gen_aux_info check.
12333 2011-03-21 Richard Guenther <rguenther@suse.de>
12335 PR translation/47911
12336 * params.def (lto-partitions): Fix typo.
12337 (lto-min-partition): Fix wording.
12339 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12341 * config/rs6000/t-freebsd: Remove duplication from file.
12343 2011-03-21 Richard Guenther <rguenther@suse.de>
12345 PR middle-end/47661
12346 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12348 2011-03-21 Richard Guenther <rguenther@suse.de>
12351 * params.def (lto-partitions): Require at least 1 partition.
12353 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12355 * gthr-solaris.h: Remove.
12356 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12357 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12358 (LIB_SPEC): Likewise.
12359 * config/sol2.opt (threads): Remove.
12360 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12361 (sparc*-*-solaris2*): Likewise.
12362 * configure.ac (enable_threads): Enable solaris support.
12363 * configure: Regenerate.
12364 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12365 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12368 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12370 * config.gcc: Obsolete *-*-solaris2.8*.
12371 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12373 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12376 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12377 reference. Solaris 8 perl works.
12379 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12382 * doc/install.texi (Prerequisites): Move jar etc. up.
12383 Explain support library version requirements.
12385 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12388 * doc/install.texi (Prerequisites): Move Perl to build
12389 requirements. Always necessary on Solaris 2 with Sun ld.
12391 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12393 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12395 (Specific, i?86-*-solaris2.[89]): Likewise.
12396 (Specific, i?86-*-solaris2.10): Likewise.
12397 (Specific, mips-sgi-irix6): Likewise.
12398 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12399 Update for binutils 2.21.
12401 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12403 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12404 Allow -fuse-linker-plugin for non-default plugin linker.
12405 * configure: Regenerate.
12407 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12410 * gengtype.c (files_rules): Added rule for cp/parser.h.
12412 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12415 * config/s390/s390.c (s390_delegitimize_address): Don't call
12416 lowpart_subreg if orig_x has BLKmode.
12418 2011-03-21 Kai Tietz <ktietz@redhat.com>
12421 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12422 * tree.h (attribute_spec): Add new member affects_type_identity.
12423 * attribs.c (empty_attribute_table): Adjust attribute_spec
12425 * config/alpha/alpha.c: Likewise.
12426 * config/arc/arc.c: Likewise.
12427 * config/arm/arm.c: Likewise.
12428 * config/avr/avr.c: Likewise.
12429 * config/bfin/bfin.c: Likewise.
12430 * config/crx/crx.c: Likewise.
12431 * config/darwin.h: Likewise.
12432 * config/h8300/h8300.c: Likewise.
12433 * config/i386/cygming.h: Likewise.
12434 * config/i386/i386.c: Likewise.
12435 * config/ia64/ia64.c: Likewise.
12436 * config/m32c/m32c.c: Likewise.
12437 * config/m32r/m32r.c: Likewise.
12438 * config/m68hc11/m68hc11.c: Likewise.
12439 * config/m68k/m68k.c: Likewise.
12440 * config/mcore/mcore.c: Likewise.
12441 * config/mep/mep.c: Likewise.
12442 * config/microblaze/microblaze.c: Likewise.
12443 * config/mips/mips.c: Likewise.
12444 * config/rs6000/rs6000.c: Likewise.
12445 * config/rx/rx.c: Likewise.
12446 * config/sh/sh.c: Likewise.
12447 * config/sol2.h: Likewise.
12448 * config/sparc/sparc.c: Likewise.
12449 * config/spu/spu.c: Likewise.
12450 * config/stormy16/stormy16.c: Likewise.
12451 * config/v850/v850.c: Likewise.
12453 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12455 * simplify-rtx.c (simplify_binary_operation_1): Handle
12456 (xor (and A B) C) case when B and C are both constants.
12458 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12460 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12462 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12465 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12467 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12469 PR rtl-optimization/48156
12470 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12471 assume df and df_lr are not NULL.
12473 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12476 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12477 between a call and its CALL_ARG_LOCATION note.
12479 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12482 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12483 between a call and its corresponding CALL_ARG_LOCATION note.
12485 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12487 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12488 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12489 * haifa-sched.c (setup_ref_regs): Ditto.
12490 * caller-save.c (add_used_regs_1): Ditto.
12491 * dse.c (look_for_hardregs): Ditto.
12492 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12493 * sched-rgn.c (check_live_1): Ditto.
12495 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12497 * c-decl.c (diagnose_mismatched_decls): Give an error for
12498 redefining a typedef with variably modified type.
12500 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12502 * c-decl.c (grokfield): Don't allow typedefs for structures or
12503 unions with no tag by default.
12504 * doc/extend.texi (Unnamed Fields): Update.
12506 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12508 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12509 Rewrite using indirect functions.
12510 (lwp_slwpcb): Ditto.
12511 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12512 (avx_vinsertf128<mode>): Ditto.
12514 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12516 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12519 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12521 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12522 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12524 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12526 PR rtl-optimization/48170
12527 * gcse.c (hoist_code): Remove bogus asserts.
12529 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12531 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12532 computation for prologue/epilogue.
12534 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12536 * Makefile.in (check-consistency): Remove.
12538 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12541 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12542 arange_table_in_use is 0, but either text_section_used or
12543 cold_text_section_used is true. Don't call it if
12544 !info_section_emitted.
12546 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12548 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12549 FUNCTION_VALUE_REGNO_P): Remove.
12550 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12552 * config/avr/avr.c (avr_ret_register): Make static inline.
12553 (avr_function_value_regno_p): New function.
12554 (avr_libcall_value): Make static. Add 'func' argument.
12555 (avr_function_value): Make static. Rename 'func' argument to
12556 'fn_decl_or_type', forward it to avr_libcall_value. Call
12557 avr_ret_register function instead of RET_REGISTER macro.
12558 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12560 2011-03-18 Jason Merrill <jason@redhat.com>
12563 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12565 2011-03-18 Richard Guenther <rguenther@suse.de>
12567 * doc/install.texi (--enable-gold): Remove.
12568 (--with-plugin-ld): Document.
12569 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12571 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12573 PR middle-end/47790
12574 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12575 again after expansion changes.
12577 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12579 * combine.c (try_combine): Do simplification only call of
12580 subst() on i2 even when i1 is present. Update comments.
12582 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12584 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12585 and UNSPEC_PCREL_SYMOFF.
12587 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12589 * config/s390/s390.md: Use define_c_enum for the unspec constant
12592 2011-03-18 Richard Henderson <rth@redhat.com>
12593 Jakub Jelinek <jakub@redhat.com>
12596 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12597 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12599 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12601 PR middle-end/47725
12602 * combine.c (cant_combine_insn_p): Don't check zero/sign
12603 extended hard registers.
12605 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12607 PR middle-end/47725
12608 * combine.c (cant_combine_insn_p): Check zero/sign extended
12611 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12613 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12614 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12615 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12616 Change return type to bool.
12617 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12619 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12622 * var-tracking.c (prepare_call_arguments): If CALL target
12623 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12624 pc instead of looking it up using cselib_lookup and use
12625 Pmode for it if x has VOIDmode.
12626 * dwarf2out.c (gen_subprogram_die): If also both first and
12627 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12630 * function.c (assign_parms): For data.passed_pointer parms
12631 use MEM of data.entry_parm instead of data.entry_parm itself
12632 as DECL_INCOMING_RTL.
12633 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12634 also when passed and declared mode is the same, DECL_RTL
12635 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12638 2011-03-16 Jeff Law <law@redhat.com>
12640 PR rtl-optimization/37273
12641 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12642 handle them like argument loads from stack slots. Do not double
12643 count memory for memory constants and argument loads from stack slots.
12645 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12648 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12650 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12653 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12655 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12658 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12660 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12661 Clear call_arg_locations and call_arg_loc_last always.
12663 PR middle-end/48152
12664 * var-tracking.c (prepare_call_arguments): If argument needs to be
12665 passed by reference, adjust argtype and mode.
12667 2011-03-17 Richard Guenther <rguenther@suse.de>
12669 PR middle-end/48134
12670 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12671 a value make sure to fold the statement.
12673 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12676 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12677 return condition with !cfun->calls_alloca.
12679 2011-03-17 Richard Guenther <rguenther@suse.de>
12682 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12683 origin for decls in other ltrans units.
12684 (input_varpool_node): Likewise.
12686 2011-03-17 Richard Guenther <rguenther@suse.de>
12688 PR middle-end/48165
12689 * tree-object-size.c (compute_object_offset): Properly return
12690 the offset operand of MEM_REFs as sizetype.
12692 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12694 PR rtl-optimization/48141
12695 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12696 * dse.c: Include params.h.
12697 (active_local_stores_len): New variable.
12698 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12700 (record_store, check_mem_read_rtx): Decrease it when removing
12702 (scan_insn): Likewise. Increase it when adding to chain, if it
12703 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12704 set active_local_stores to NULL before the addition.
12705 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12707 PR rtl-optimization/48141
12708 * dse.c (record_store): If no positions are needed in an insn
12709 that cannot be deleted, at least unchain it from active_local_stores.
12711 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12714 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12715 (lookup_type_die_strip_naming_typedef): ... here.
12716 (get_context_die): Use it.
12717 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12718 the anonymous struct named by the naming typedef.
12720 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12723 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12724 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12726 2011-03-16 Jeff Law <law@redhat.com>
12728 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12729 check for operands of conditional. Allow type to be a pointer.
12731 2011-03-16 Richard Guenther <rguenther@suse.de>
12733 PR tree-optimization/48149
12734 * fold-const.c (fold_binary_loc): Fold
12735 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12737 2011-03-16 Richard Guenther <rguenther@suse.de>
12739 PR tree-optimization/26134
12740 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12741 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12742 (non_rewritable_mem_ref_base): Handle complex type component
12743 accesses, constrain offsets for vector and complex extracts
12746 2011-03-16 Richard Guenther <rguenther@suse.de>
12748 PR tree-optimization/48146
12749 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12750 operands avoiding the need for renaming.
12752 2011-03-16 Richard Guenther <rguenther@suse.de>
12754 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12755 constant folding. Move MEM_REF canonicalization first.
12756 Rely on fold_const_aggregate_ref for initializer folding.
12757 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12759 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12761 PR middle-end/48136
12762 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12763 arg0/arg1 or their arguments are always fold converted to matching
12766 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12769 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12772 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12773 Handle in-tree gold.
12774 (ld_vers): Extract binutils version for gold.
12775 (gcc_cv_ld_hidden): Handle gold here.
12776 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12777 * configure: Regenerate.
12778 * config.in: Regenerate.
12779 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12780 -fuse-linker-plugin otherwise.
12781 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12782 (LINK_COMMAND_SPEC): Use it.
12783 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12785 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12787 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12788 * calls.c: Remove debug.h include.
12789 (emit_call_1): Don't call virtual_call_token debug hook.
12790 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12791 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12792 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12793 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12794 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12795 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12796 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12797 dwarf2out_virtual_call): Remove.
12798 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12799 copy_call_info and virtual_call hooks.
12800 (dwarf2out_init): Don't initialize vcall_insn_table,
12801 debug_dcall_section and debug_vcall_section.
12802 (prune_unused_types): Don't mark nodes from dcall_table.
12803 (dwarf2out_finish): Don't output dcall or vcall tables.
12804 * final.c (final_scan_insn): Don't call direct_call or
12805 virtual_call debug hooks.
12806 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12807 virtual_call_token, copy_call_info and virtual_call hooks.
12808 (debug_nothing_uid): Remove prototype.
12809 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12810 copy_call_info and virtual_call hooks.
12811 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12812 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12813 * debug.c (do_nothing_debug_hooks): Likewise.
12814 (debug_nothing_uid): Remove.
12815 * doc/invoke.texi (-fenable-icf-debug): Remove.
12816 * common.opt (-fenable-icf-debug): Likewise.
12818 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12819 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12820 call's MEM. Handle functions returning aggregate through a hidden
12821 first pointer. For virtual calls add clobbered pc to call arguments
12823 * dwarf2out.c (gen_subprogram_die): Emit
12824 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12828 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12829 * rtl.h (ENTRY_VALUE_EXP): Define.
12830 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12831 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12832 * print-rtl.c (print_rtx): Likewise.
12833 * gengtype.c (adjust_field_rtx_def): Likewise.
12834 * var-tracking.c (vt_add_function_parameter): Adjust
12835 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12836 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12837 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12838 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12839 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12841 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12842 Call var_location debug hook even on CALL_INSNs.
12843 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12844 * rtl.def (ENTRY_VALUE): New.
12845 * dwarf2out.c: Include cfglayout.h.
12846 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12847 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12848 (struct call_arg_loc_node): New type.
12849 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12850 tail_call_site_count): New variables.
12851 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12852 DW_TAG_GNU_call_site_parameter.
12853 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12854 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12855 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12856 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12857 and DW_AT_GNU_all_source_call_sites.
12858 (mem_loc_descriptor): Handle ENTRY_VALUE.
12859 (add_src_coords_attributes): Don't add enything if
12860 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12861 (dwarf2out_abstract_function): Save and clear call_arg_location,
12862 call_site_count and tail_call_site_count around dwarf2out_decl call.
12863 (gen_call_site_die): New function.
12864 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12865 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12866 (dwarf2out_function_decl): Clear call_arg_locations,
12867 call_arg_loc_last, set call_site_count and tail_call_site_count
12868 to -1 and free block_map.
12869 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12870 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12871 followed by any real instructions.
12872 (dwarf2out_begin_function): Set call_site_count and
12873 tail_call_site_count to 0.
12874 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12875 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12876 attempt to force a DIE for it and worst case remove the attribute.
12877 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12878 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12880 * var-tracking.c: Include tm_p.h.
12881 (vt_stack_adjustments): For calls call note_register_arguments.
12882 (argument_reg_set): New variable.
12883 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12884 ensure the VALUE is resolved.
12885 (call_arguments): New variable.
12886 (prepare_call_arguments): New function.
12887 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12888 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12889 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12890 always use the best expression.
12891 (vt_expand_loc): Add ignore_cur_loc argument.
12892 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12893 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12894 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12895 note for all calls.
12896 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12897 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12898 argument. Don't call cselib_preserve_only_values and
12899 cselib_reset_table.
12900 (note_register_arguments): New function.
12901 (vt_initialize): Compute argument_reg_set. Call
12902 vt_add_function_parameters before processing basic blocks instead of
12903 afterwards. For calls call prepare_call_arguments before calling
12904 cselib_process_insn.
12905 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12906 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12907 (var-tracking.o): Depend on $(TM_P_H).
12908 * cfglayout.h (insn_scope): New prototype.
12909 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12910 * cfglayout.c (insn_scope): No longer static.
12911 * insn-notes.def (CALL_ARG_LOCATION): New.
12912 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12913 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12914 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12915 nothing for DECL_EXTERNAL BLOCK_VARS.
12917 2011-03-16 Alan Modra <amodra@gmail.com>
12920 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12921 create invalid offset address for vsx splat insn.
12922 * config/rs6000/predicates.md (splat_input_operand): New.
12923 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12925 2011-03-15 Xinliang David Li <davidxl@google.com>
12928 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12929 (normalize_preds): New function.
12930 (is_use_properly_guarded): Normalize def predicates.
12932 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12935 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12936 in the output template.
12938 2011-03-15 Richard Guenther <rguenther@suse.de>
12940 PR middle-end/47650
12941 * tree-pretty-print.c (dump_function_declaration): Properly
12942 dump unprototyped and varargs function types.
12944 2011-03-15 Richard Guenther <rguenther@suse.de>
12946 PR tree-optimization/13954
12947 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12950 2011-03-15 Richard Guenther <rguenther@suse.de>
12952 PR tree-optimization/48037
12953 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12954 selects into BIT_FIELD_REFs.
12955 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12958 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12960 PR tree-optimization/48129
12961 * builtins.c (fold_builtin_snprintf): Convert to type of
12962 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12963 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12965 2011-03-15 Richard Guenther <rguenther@suse.de>
12967 PR tree-optimization/41490
12968 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12969 value but with VUSE.
12970 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12972 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12973 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12974 * tree-tailcall.c (find_tail_calls): Ignore returns.
12976 2011-03-15 Richard Guenther <rguenther@suse.de>
12978 PR middle-end/48031
12979 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12980 or variable-indexed array accesses when in gimple form.
12982 2011-03-15 Richard Guenther <rguenther@suse.de>
12984 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12986 2011-03-15 Alan Modra <amodra@gmail.com>
12989 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12990 presume symbol_refs without a symbol_ref_decl are suitably
12991 aligned, nor other trees we may see here. Handle anchor symbols.
12992 (legitimate_constant_pool_address_p): Comment. Add mode param.
12993 Check cmodel=medium addresses. Adjust all calls.
12994 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12995 creating cmodel=medium optimized access to locals.
12996 * config/rs6000/constraints.md (R): Pass QImode to
12997 legitimate_constant_pool_address_p.
12998 * config/rs6000/predicates.md (input_operand): Pass mode to
12999 legitimate_constant_pool_address_p.
13000 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13003 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13006 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13007 64-bit constants being loaded into registers other than GPRs such
13008 as loading 0 into a VSX register.
13010 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13012 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13014 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13016 PR middle-end/47917
13017 * builtins.c (fold_builtin_snprintf): New function.
13018 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13019 (fold_builtin_4): Likewise.
13021 PR middle-end/38878
13022 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13023 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13024 and C - X == X also strip nops from +/-/p+ operand.
13025 When optimizing -X == C, fold C to arg0's type.
13028 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13029 emit it as add_AT_int instead of add_AT_unsigned.
13031 2011-03-14 Tom Tromey <tromey@redhat.com>
13033 * unwind-dw2.c: Include sys/sdt.h if it exists.
13034 (_Unwind_DebugHook): Use STAP_PROBE2.
13035 * config.in, configure: Rebuild.
13036 * configure.ac: Check for sys/sdt.h.
13038 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13040 * config/i386/i386.md (ROUND_FLOOR): New constant.
13041 (ROUND_CEIL): Ditto.
13042 (ROUND_TRUNC): Ditto.
13043 (ROUND_MXCSR): Ditto.
13044 (ROUND_NO_EXC): Ditto.
13045 (rint<mode>2): Use new defines instead of numerical constants.
13046 (floor<mode>2): Ditto.
13047 (ceil<mode>2): Ditto.
13048 (btrunc<mode>2): Ditto.
13049 * config/i386/i386-builtin-types.def: Define ROUND function type
13051 * config/i386/i386.c (enum ix86_builtins): Add
13052 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13053 (struct builtin_description): Add
13054 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13055 (ix86_expand_sse_round): New static function.
13056 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13058 (ix86_builtin_vectorized_function): Handle
13059 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13061 2011-03-14 Tom Tromey <tromey@redhat.com>
13063 * c-parser.c (c_parser_asm_string_literal): Clear
13064 warn_overlength_strings.
13066 2011-03-14 Tom Tromey <tromey@redhat.com>
13068 * c-parser.c (disable_extension_diagnostics): Save
13069 warn_overlength_strings.
13070 (restore_extension_diagnostics): Restore warn_overlength_strings.
13072 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13074 * BASE-VER: Change to 4.7.0.
13076 2011-03-14 Richard Guenther <rguenther@suse.de>
13078 PR middle-end/48098
13079 * tree.c (build_vector_from_val): Adjust assert to requirements
13082 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13085 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13087 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13089 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13090 terms of target_flags_explicit. Adjust copyright year.
13092 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13093 * config/rs6000/t-freebsd: New file. Add override for
13096 2011-03-13 Chris Demetriou <cgd@google.com>
13098 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13099 (-fno-diagnostics-show-option): this, to reflect current default.
13100 (-Werror=): Update text about -fno-diagnostics-show-option.
13102 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13105 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13106 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13107 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13108 mode is not V2DImode or V2DFmode.
13109 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13110 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13111 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13113 (movdi_internal64): Likewise.
13115 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13117 PR tree-optimization/47127
13118 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13120 (set_cloog_options): Same.
13121 (scop_to_clast): Same.
13122 (print_clast_stmt): Do not call cloog_state_malloc and
13124 (print_generated_program): Same.
13126 * graphite-clast-to-gimple.h (cloog_state): Declared.
13127 (scop_to_clast): Adjust declaration.
13128 * graphite.c (cloog_state): Defined here.
13129 (graphite_initialize): Call cloog_state_malloc.
13130 (graphite_finalize): Call cloog_state_free.
13132 2011-03-11 Jason Merrill <jason@redhat.com>
13134 * attribs.c (lookup_attribute_spec): Take const_tree.
13137 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13139 * config/sparc/sparc.c (sparc_option_override): Use
13140 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13142 2011-03-11 Richard Guenther <rguenther@suse.de>
13144 PR tree-optimization/48067
13145 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13146 multiplication result will be only used once on the target
13149 2011-03-11 Richard Guenther <rguenther@suse.de>
13151 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13153 2011-03-11 Richard Guenther <rguenther@suse.de>
13156 * tree.c (find_decls_types_r): Do not walk types only reachable
13157 from IDENTIFIER_NODEs.
13159 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13161 PR middle-end/48044
13162 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13163 all vnode->force_output nodes as needed.
13165 2011-03-11 Jason Merrill <jason@redhat.com>
13168 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13169 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13171 2011-03-11 Martin Jambor <mjambor@suse.cz>
13173 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13176 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13178 PR tree-optimization/48063
13179 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13180 inline functions called once if !tree_can_inline_p (node->callers).
13182 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13184 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13186 * config/score/score3.c: Delete.
13187 * config/score/score3.h: Delete.
13188 * config/score/mul-div.S: Delete.
13189 * config/score/sfp-machine.h: Add new file.
13190 * config/score/constraints.md: Add new file.
13191 * config/score/t-score-softfp: Add new file.
13192 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13193 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13194 (score7_extra_constraint): Delete.
13195 (score7_option_override): Remove unused code.
13196 * config/score/score.c: Remove score3 and score5 define and code.
13197 * config/score/score.h: Remove score3 and score5 define and code.
13198 * config/score/score.md: Remove score3 template and unusual insn.
13199 * config/score/score.opt: Remove score3 and score5 options.
13201 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13203 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13204 when _HPUX_SOURCE is defined.
13205 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13207 2011-03-10 Jason Merrill <jason@redhat.com>
13210 * stor-layout.c (layout_type): Don't set structural equality
13211 on arrays of incomplete type.
13212 * tree.c (type_hash_eq): Handle comparing them properly.
13214 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13217 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13218 result mode matches original rtl mode.
13220 2011-03-10 Nick Clifton <nickc@redhat.com>
13222 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13223 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13225 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13227 PR rtl-optimization/47866
13228 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13229 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13230 if target wasn't scalar.
13231 * function.c (assign_stack_temp_for_type): Assert that neither
13232 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13233 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13235 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13237 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13239 * config/s390/s390-protos.h (s390_label_align): New prototype.
13240 * config/s390/s390.c (s390_label_align): New function.
13241 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13243 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13246 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13247 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13248 (output_vec_const_move): Ditto.
13250 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13252 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13253 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13254 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13255 Change 'rclass' argument and result type to reg_class_t.
13256 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13258 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13260 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13261 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13262 (TARGET_MEMORY_MOVE_COST): Define.
13263 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13265 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13268 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13271 PR tree-optimization/48022
13272 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13275 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13278 * var-tracking.c (find_use_val): Return NULL for
13279 cui->sets && cui->store_p BLKmode MEMs.
13281 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13283 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13285 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13286 xstormy16_print_operand_address): Remove.
13287 * config/stormy16/stormy16.c (xstormy16_print_operand,
13288 xstormy16_print_operand_address): Make static.
13289 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13291 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13294 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13295 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13298 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13301 * cfgloopmanip.c (fix_bb_placements): Return immediately
13302 if FROM is BASE_LOOP's header.
13304 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13306 * gimplify.c (gimplify_function_tree): Fix building calls
13307 to __builtin_return_address.
13309 2011-03-07 Alan Modra <amodra@gmail.com>
13311 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13312 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13313 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13314 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13316 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13317 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13318 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13319 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13320 * config/rs6000/rs6000.c
13321 (rs6000_elf_end_indicate_exec_stack): Rename to..
13322 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13323 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13324 (rs6000_file_start): ..here.
13325 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13326 file scope variables.
13327 (call_ABI_of_interest): New function.
13328 (init_cumulative_args): Set above vars when function return value
13329 is a float, vector, or small struct.
13330 (rs6000_function_arg_advance_1): Likewise for function args.
13331 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13332 references float args.
13334 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13336 * doc/cfg.texi: Remove "See" before @ref.
13337 * doc/invoke.texi: Likewise.
13339 2011-03-05 Jason Merrill <jason@redhat.com>
13341 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13343 2011-03-05 Anthony Green <green@moxielogic.com>
13345 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13347 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13349 PR rtl-optimization/47899
13350 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13351 to flow_loop_nested_p when moving the loop upward.
13353 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13356 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13358 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13360 PR tree-optimization/47967
13361 * ipa-cp.c (build_const_val): Return NULL instead of creating
13362 VIEW_CONVERT_EXPR for mismatching sizes.
13363 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13364 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13365 give up on versioning.
13367 2011-03-05 Alan Modra <amodra@gmail.com>
13370 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13371 full cmodel medium/large lo_sum + high addresses.
13373 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13375 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13376 pool references in UNSPEC_LTREL_OFFSET.
13378 2011-03-04 Jan Hubicka <jh@suse.cz>
13381 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13382 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13383 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13385 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13386 cgraph_add_thunk): Add node pointers.
13387 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13388 associated to right node.
13389 (input_node): Update use of cgraph_same_body_alias
13390 and cgraph_add_thunk.
13392 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13394 * config/i386/i386.opt (mprefer-avx128): New flag.
13395 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13396 modes when the flag -mprefer-avx128 is on.
13398 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13400 * dwarf2out.c (compare_loc_operands): Fix address handling.
13402 2011-03-04 Alan Modra <amodra@gmail.com>
13404 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13406 2011-03-04 Richard Guenther <rguenther@suse.de>
13408 PR middle-end/47968
13409 * expmed.c (extract_bit_field_1): Prefer vector modes that
13410 vec_extract patterns can handle.
13412 2011-03-04 Richard Guenther <rguenther@suse.de>
13414 PR middle-end/47975
13415 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13417 2011-03-04 Richard Henderson <rth@redhat.com>
13419 * explow.c (emit_stack_save): Remove 'after' parameter.
13420 (emit_stack_restore): Likewise.
13421 * expr.h: Update to match.
13422 * builtins.c, calls.c, stmt.c: Likewise.
13423 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13424 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13425 * function.c (expand_function_end): Insert the emit_stack_save
13426 sequence before parm_birth_insn instead of after.
13428 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13430 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13431 (ssse3_pmaddubsw128): Ditto.
13432 (ssse3_pmaddubsw): Ditto.
13434 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13436 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13438 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13441 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13442 on TYPE_SIZE_UNIT if it is a DECL.
13445 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13446 first operand is not is_gimple_mem_ref_addr, try to fold it.
13447 If the operand still isn't is_gimple_mem_ref_addr, clear
13450 2011-03-03 Richard Guenther <rguenther@suse.de>
13452 PR middle-end/47283
13453 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13455 (refs_may_alias_p_1): For release branches return true if
13456 we are confused by our input.
13458 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13460 * config/s390/s390.c (s390_function_value): Rename to ...
13461 (s390_function_and_libcall_value): ... this.
13462 (s390_function_value): New function.
13463 (s390_libcall_value): New function.
13464 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13465 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13466 target macro definitions.
13467 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13469 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13471 * config/i386/freebsd64.h (CC1_SPEC): Define.
13472 * config/i386/linux64.h (CC1_SPEC): Define.
13473 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13475 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13477 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13479 * config/stormy16/stormy16.c: Include reload.h.
13480 (xstormy16_memory_move_cost): New function.
13481 (TARGET_MEMORY_MOVE_COST): Define.
13483 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13485 PR rtl-optimization/47925
13486 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13487 with side effects. Remove the more-specific check for volatile asms.
13489 2011-03-02 Alan Modra <amodra@gmail.com>
13492 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13493 toc relative addresses for valid offsets.
13495 2011-03-01 Richard Guenther <rguenther@suse.de>
13497 PR tree-optimization/47890
13498 * tree-vect-loop.c (get_initial_def_for_induction): Set
13499 related stmt properly.
13501 2011-03-01 Richard Guenther <rguenther@suse.de>
13504 * lto-streamer.c (lto_record_common_node): Also register
13505 the canonical type.
13507 2011-03-01 Richard Guenther <rguenther@suse.de>
13510 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13511 Do not stream DECL_ABSTRACT_ORIGIN.
13512 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13513 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13514 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13515 Do not stream DECL_ABSTRACT_ORIGIN.
13516 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13517 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13519 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13521 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13522 FUNCTION_VALUE_REGNO_P): Remove.
13523 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13524 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13525 Add 'outgoing' argument.
13526 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13528 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13529 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13531 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13534 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13535 (lookup_filename): Likewise.
13536 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13538 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13539 Jakub Jelinek <jakub@redhat.com>
13541 PR middle-end/47893
13542 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13543 (assign_stack_local_1): Change last argument type to int.
13544 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13545 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13546 don't record padding space into frame_space_list nor use those areas.
13547 (assign_stack_local): Adjust caller.
13548 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13549 of assign_stack_local, pass 0 as last argument.
13550 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13553 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13556 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13557 Use target address_mode and pointer_mode hooks instead of hardcoded
13558 Pmode and ptr_mode. Handle some simple cases of extending if
13559 POINTERS_EXTEND_UNSIGNED < 0.
13560 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13561 Call convert_debug_memory_address.
13562 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13563 convert_debug_memory_address.
13565 PR middle-end/46790
13566 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13567 * configure: Regenerated.
13568 * config.in: Regenerated.
13569 * varasm.c (default_function_section): Return NULL
13570 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13572 2011-02-28 Martin Jambor <mjambor@suse.cz>
13574 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13575 the description to match the printed values.
13577 2011-02-28 Richard Guenther <rguenther@suse.de>
13579 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13580 of the copied scope tree.
13582 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13584 * doc/extend.texi (Function Attributes): Avoid deeply (and
13585 wrongly) nested tables.
13587 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13589 PR middle-end/47903
13590 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13591 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13592 r isn't op0 nor op1.
13594 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13596 * config/avr/avr.md: Remove magic comment for emacs.
13598 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13601 * config/avr/avr.c (avr_option_override): Use error on bad options.
13602 (avr_help): New function.
13603 (TARGET_HELP): Define.
13605 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13608 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13609 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13611 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13613 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13614 (ARM Options): Ditto.
13615 (i386 and x86-64 Options): Ditto.
13616 (RX Options): Ditto.
13617 (SPARC Options): Ditto.
13619 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13621 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13622 FreeBSD 6 and later. Generally use cpu generic.
13624 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13626 * doc/cpp.texi: Update copyright years.
13628 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13631 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13633 2011-02-25 Jon Beniston <jon@beniston.com>
13636 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13637 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13638 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13639 (lm32_block_move_inline): Add type cast to remove warning.
13640 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13641 (gen_int_relational): Move declarations to start of function.
13643 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13645 PR tree-optimization/45470
13646 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13647 can throw internally only.
13648 * tree-vect-stmts.c (vectorizable_call): Likewise.
13650 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13652 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13653 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13654 * config/stormy16/stormy16-protos.h
13655 (xstormy16_preferred_reload_class): Remove.
13656 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13657 static. Change 'rclass' argument and return type to reg_class_t.
13658 (TARGET_PREFERRED_RELOAD_CLASS,
13659 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13661 2011-02-24 Richard Guenther <rguenther@suse.de>
13663 * lto-streamer-in.c (input_bb): Do not find referenced vars
13664 in debug statements.
13666 2011-02-23 Jason Merrill <jason@redhat.com>
13668 * common.opt (fabi-version): Document v5 and v6.
13670 2011-02-23 Richard Guenther <rguenther@suse.de>
13672 PR tree-optimization/47849
13673 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13675 2011-02-23 Jie Zhang <jie@codesourcery.com>
13677 * opts-common.c (decode_cmdline_option): Print empty string
13678 argument as "" in decoded->orig_option_with_args_text.
13679 * gcc.c (execute): Print empty string argument as ""
13680 in the verbose output.
13681 (do_spec_1): Keep empty string argument.
13683 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13685 * config.gcc: Declare score-* and crx-* obsolete.
13687 2011-02-23 Jie Zhang <jie@codesourcery.com>
13689 PR rtl-optimization/47763
13690 * web.c (web_main): Ignore naked clobber when replacing register.
13692 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13694 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13697 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13700 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13702 2011-02-22 Mike Stump <mikestump@comcast.net>
13704 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13706 * configure: Regenerate.
13708 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13710 PR rtl-optimization/46002
13711 * ira-color.c (update_copy_costs): Change class intersection
13712 test to reg_class_contents[] test of 'hard_regno'.
13714 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13716 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13717 than Driver option.
13718 * config/hpux11.opt (mt): Likewise.
13719 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13720 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13721 * config/vax/elf.opt (mno-asm-pic): Likewise.
13722 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13724 2011-02-21 Mike Stump <mikestump@comcast.net>
13727 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13728 tree so we can get save the type.
13729 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13730 for CFString instead of trying to use past the end of the builtins.
13731 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13732 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13733 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13734 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13735 Rename to darwin_builtin_cfstring.
13736 (darwin_init_cfstring_builtins): Return the built type.
13738 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13741 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13742 (_mm256_insert_epi64): Use _mm_insert_epi64.
13744 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13746 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13747 * config/stormy16/stormy16-protos.h
13748 (xstormy16_mode_dependent_address_p): Remove.
13749 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13750 Make static. Change return type to bool. Change argument type to
13751 const_rtx. Remove dead code.
13752 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13754 2011-02-21 Richard Guenther <rguenther@suse.de>
13757 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13758 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13759 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13761 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13762 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13764 2011-02-20 Richard Guenther <rguenther@suse.de>
13767 * tree.c (free_lang_data_in_decl): Clean builtins from
13768 the TU decl BLOCK_VARS.
13770 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13774 * haifa-sched.c (fix_tick_ready): Skip tick computation
13777 2011-02-19 Richard Guenther <rguenther@suse.de>
13780 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13781 Remove lazy BLOCK_VARS streaming.
13782 (lto_input_ts_block_tree_pointers): Likewise.
13783 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13785 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13787 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13789 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13791 * config/i386/biarch32.h, config/i386/mach.h,
13792 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13794 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13797 * config/i386/i386.md (peephole2 for shift and plus): Use
13798 operands[1] original mode in the first insn.
13800 2011-02-18 Mike Stump <mikestump@comcast.net>
13802 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13804 2011-02-18 Jan Hubicka <jh@suse.cz>
13806 PR middle-end/47788
13807 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13808 to zero when the function is not inlinable at all.
13810 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13812 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13813 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13814 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13815 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13816 * config/pa/t-pa64: Likewise.
13817 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13819 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13822 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13824 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13827 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13829 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13831 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13832 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13833 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13834 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13835 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13836 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13837 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13838 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13839 m32r_legitimate_address_p): New functions.
13840 * config/m32r/constraints.md (constraint "S"): Don't use
13841 STORE_PREINC_PREDEC_P.
13842 (constraint "U"): Don't use LOAD_POSTINC_P.
13844 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13846 PR rtl-optimization/46178
13847 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13848 compute ira_hard_regno_cover_class[].
13850 2011-02-18 Richard Guenther <rguenther@suse.de>
13853 * lto-streamer.h (lto_global_var_decls): Declare.
13854 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13855 statics for global var processing.
13857 2011-02-18 Richard Guenther <rguenther@suse.de>
13859 PR tree-optimization/47737
13860 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13861 edge dominance check.
13863 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13866 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13867 avoid invalid rtx sharing.
13869 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13871 * doc/cpp.texi (Obsolete Features): Add background on the
13872 origin of assertions.
13874 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13876 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13878 * config/darwin.c (output_objc_section_asm_op): Added support for
13880 (is_objc_metadata): New.
13881 (darwin_objc2_section): New.
13882 (darwin_objc1_section): New.
13883 (machopic_select_section): Added support for ABI v1 and v2.
13884 (darwin_emit_objc_zeroed): New.
13885 (darwin_output_aligned_bss): Detect objc metadata and treat it
13887 (darwin_asm_output_aligned_decl_common): Same.
13888 (darwin_asm_output_aligned_decl_local): Same.
13889 * config/darwin-sections.def: Updated for ABI v1 and v2.
13890 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13891 compiling Objective-C code for the NeXT runtime, default to using
13892 ABI version 0 for 32-bit, and version 2 for 64-bit.
13894 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13896 * common.opt (optimize_fast): New Variable.
13897 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13898 instead of local variable ofast.
13900 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13902 * doc/invoke.texi (fobjc-abi-version): Documented.
13903 (fobjc-nilcheck): Documented.
13904 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13907 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13910 * common.opt (export-dynamic): New Driver option.
13911 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13913 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13915 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13917 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13918 Jan Hubicka <jh@suse.cz>
13922 * cfgexpand.c (account_used_vars_for_block): Remove.
13923 (estimated_stack_frame_size): Use referenced vars.
13924 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13925 that were referenced in the original function. Test src_fn
13926 rather than cfun. Drop redundant get_var_ann.
13927 (setup_one_parameter): Drop redundant get_var_ann.
13928 (declare_return_variable): Likewise.
13929 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13930 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13931 * ipa-inline.c (compute_inline_parameters): Do not compute
13932 disregard_inline_limits here.
13933 (compute_inlinable_for_current, pass_inlinable): New.
13934 (pass_inline_parameters): Require PROP_referenced_vars.
13935 * cgraphunit.c (cgraph_process_new_functions): Don't run
13936 compute_inline_parameters explicitly unless function is in SSA form.
13937 (cgraph_analyze_function): Set .disregard_inline_limits.
13938 * tree-sra.c (convert_callers): Compute inliner parameters
13939 only for functions already in SSA form.
13941 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13943 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13944 -mlittle-endian-data.
13946 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13948 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13949 -mno-fpu, not -fpu and -no-fpu.
13950 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13951 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13953 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13956 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13957 input reload with PLUS RTX.
13959 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13961 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13962 of InverseVar(MDMX).
13964 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13966 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13969 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13971 * config/mn10300/mn10300.opt (mno-crt0): New.
13973 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13975 * config/m68k/uclinux.opt (static-libc): New Driver option.
13977 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13979 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13981 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13983 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13984 %{muser-extend-enabled}.
13986 2011-02-16 Richard Guenther <rguenther@suse.de>
13988 PR tree-optimization/47738
13989 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13990 the TODO from tree_predictive_commoning.
13992 2011-02-15 Jeff Law <law@redhat.com>
13995 2011-01-25 Jeff Law <law@redhat.com>
13997 PR rtl-optimization/37273
13998 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13999 handle them like argument loads from stack slots. Do not double
14000 count memory for memory constants and argument loads from stack slots.
14002 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14004 PR middle-end/47725
14005 * combine.c (cant_combine_insn_p): Revert the last change.
14007 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14010 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14011 mode for vector constants. Remove code that checks for TImode.
14013 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14017 * cgraph.h (compute_inline_parameters): Return void.
14018 * ipa-inline.c (compute_inline_parameters): Adjust.
14020 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14024 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14026 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14027 * ipa-inline.c (compute_inline_parameters): Adjust.
14029 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14033 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14034 Adjust all users. Pass FN to...
14035 * tree-flow-inline.h (first_referenced_var): ... this. Add
14037 * ipa-struct-reorg.c: Adjust.
14038 * tree-dfa.c: Adjust.
14039 * tree-into-ssa.c: Adjust.
14040 * tree-sra.c: Adjust.
14041 * tree-ssa-alias.c: Adjust.
14042 * tree-ssa-live.c: Adjust.
14043 * tree-ssa.c: Adjust.
14044 * tree-ssanames.c: Adjust.
14045 * tree-tailcall.c: Adjust.
14047 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14051 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14052 Adjust all callers.
14053 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14054 * tree-flow-inline.h: Adjust.
14055 * gimple-pretty-print.c: Adjust.
14056 * tree-into-ssa.c: Adjust.
14057 * tree-ssa.c: Adjust.
14058 * cfgexpand.c: Adjust.
14060 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14062 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14063 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14064 (EXTRA_CONSTRAINT): Delete.
14065 * config/iq2000/constraints.md: New file.
14066 * config/iq2000/iq2000.md: Include it.
14067 (define_insn ""): Delete.
14068 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14069 unsupported constraint letters from patterns.
14070 (call_value, call_value_internal1): Likewise.
14071 (call_value_multiple_internal1): Likewise.
14073 2011-02-15 Nick Clifton <nickc@redhat.com>
14075 * config/mn10300/mn10300.c: Include tm-constrs.h.
14076 (struct liw_data): New data structure describing an LIW candidate
14078 (extract_bundle): Use struct liw_data. Allow small integer
14079 operands for some instructions.
14080 (check_liw_constraints): Use struct liw_data. Remove swapped
14081 parameter. Add comments describing the checks. Fix bug when
14082 assigning the source of liw1 to the source of liw2.
14083 (liw_candidate): Delete. Code moved into extract_bundle.
14084 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14086 * config/mn10300/predicates.md (liw_operand): New predicate.
14087 Allows registers and small integer constants.
14088 * config/mn10300/constraints.md (O): New constraint. Accetps
14089 integers in the range -8 to +7 inclusive.
14090 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14091 for moving a small integer into a register. Give this alternative
14093 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14094 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14095 using the J,K,L and M constraints,
14096 (liw): Remove SI mode on second operands to allow for HI and QI
14098 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14101 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14103 PR middle-end/47725
14104 * combine.c (cant_combine_insn_p): Check zero/sign extended
14107 2011-02-15 Richard Guenther <rguenther@suse.de>
14109 PR tree-optimization/47743
14110 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14111 for a non-type-compatible VN lookup bail out.
14113 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14115 * config/fr30/constraints.md: New file.
14116 * config/fr30/fr30.md: Include it.
14117 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14118 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14119 (EXTRA_CONSTRAINT): Delete.
14121 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14123 * config/frv/constraints.md: New file.
14124 * config/frv/predicates.md: Include it.
14125 * config/frv/frv.c (reg_class_from_letter): Delete.
14126 (frv_option_override): Don't initialize it.
14127 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14128 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14129 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14130 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14131 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14132 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14133 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14134 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14135 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14136 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14137 (REG_CLASS_FROM_CONSTRAINT): Delete.
14139 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14141 PR middle-end/47581
14142 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14143 if frame size is 0 in a leaf function.
14145 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14148 * config/alpha/host-osf.c: New file.
14149 * config/alpha/x-osf: New file.
14150 * config.host (alpha*-dec-osf*): Use it.
14152 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14154 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14155 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14156 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14157 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14159 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14161 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14163 * config/stormy16/constraints.md: New file.
14164 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14165 Use satisfies_constraint_Q and satisfies_constraint_R.
14166 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14168 (xstormy16_legitiamte_address_p): Declare.
14169 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14170 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14171 (EXTRA_CONSTRAINT): Delete.
14172 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14174 (xstormy16_extra_constraint_p): Delete.
14176 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14178 PR tree-optimization/46494
14179 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14180 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14181 (pass_rtl_loop_done): Add TODO_verify_flow.
14182 * fwprop.c (pass_rtl_fwprop): Likewise.
14183 * modulo-sched.c (pass_sms): Likewise.
14184 * tree-ssa-dom.c (pass_dominator): Likewise.
14185 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14186 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14187 (pass_tree_loop_done): Likewise.
14188 * tree-ssa-pre.c (execute_pre): Likewise.
14189 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14190 * tree-ssa-sink.c (pass_sink_code): Likewise.
14191 * tree-vrp.c (pass_vrp): Likewise.
14193 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14195 * config/v850/constraints.md: New file.
14196 * config/v850/v850.md: Include it.
14197 * config/v850/predicates.md (reg_or_0_operand): Use
14198 satisfies_constraint_G.
14199 (special_symbolref_operand): Use satisfies_constraint_K.
14200 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14201 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14202 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14203 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14204 (EXTRA_CONSTRAINT): Delete.
14205 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14206 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14207 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14209 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14212 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14215 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14217 * config/mcore/constraints.md: New file.
14218 * config/mcore/mcore.md: Include it.
14219 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14220 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14221 (REG_CLASS_FROM_LETTER): Delete.
14222 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14223 insn_const_int_ok_for_constraint.
14224 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14225 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14226 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14227 (EXTRA_CONSTRAINT): Delete.
14229 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14232 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14233 (IS_SIGHANDLER): Define.
14234 (sparc64_is_sighandler): New function, split off from
14235 sparc64_fallback_frame_state.
14236 (sparc_is_sighandler): New function, split off from
14237 sparc_fallback_frame_state.
14238 (sparc64_fallback_frame_state): Merge with ...
14239 (sparc_fallback_frame_state): ... this into ...
14240 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14241 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14242 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14243 stack instead of hardcoded offsets.
14245 2011-02-14 Andriy Gapon <avg@freebsd.org>
14248 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14250 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14252 * configure: Regenerate.
14254 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14257 * gcc.c (asm_options): Correct spec matching --target-help.
14259 2011-02-12 Martin Jambor <mjambor@suse.cz>
14261 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14262 to gimple call error.
14264 2011-02-12 Mike Stump <mikestump@comcast.net>
14266 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14267 comments in backslash regions.
14269 2011-02-12 Mike Stump <mikestump@comcast.net>
14270 Jakub Jelinek <jakub@redhat.com>
14271 Iain Sandoe <iains@gcc.gnu.org>
14274 * dwarf2out.c (output_cfa_loc): When required, apply the
14275 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14276 (output_loc_sequence): Likewise.
14277 (output_loc_operands_raw): Likewise.
14278 (output_loc_sequence_raw): Likewise.
14279 (output_cfa_loc): Likewise.
14280 (output_loc_list): Suppress register number adjustment when
14281 calling output_loc_sequence()
14282 (output_die): Likewise.
14284 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14286 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14288 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14289 xtensa_memory_move_cost): New functions.
14290 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14292 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14295 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14296 in the current directory.
14297 * configure: Rebuilt.
14299 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14301 * config/darwin.c (darwin_override_options): Add a hunk missed
14302 from the commit of r168571. Trim comment line lengths and
14303 correct indents of the preceding block.
14305 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14307 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14310 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14312 * common.opt (nostartfiles): New Driver option.
14314 2011-02-11 Xinliang David Li <davidxl@google.com>
14316 PR tree-optimization/47707
14317 * tree-chrec.c (convert_affine_scev): Keep type precision.
14319 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14321 PR tree-optimization/47420
14322 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14324 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14326 PR rtl-optimization/47614
14327 * rtl.h (check_for_inc_dec): Declare.
14328 * dse.c (check_for_inc_dec): Externalize...
14329 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14330 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14332 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14335 * gcc.c (main): Do not compile inputs if there were errors in
14337 * opts-common.c (read_cmdline_option): Check for wrong language
14338 after other error checks.
14340 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14342 * cgraph.c: Fix comment typos.
14343 * cgraph.h: Likewise.
14344 * cgraphunit.c: Likewise.
14345 * ipa-cp.c: Likewise.
14346 * ipa-inline.c: Likewise.
14347 * ipa-prop.c: Likewise.
14348 * ipa-pure-const.c: Likewise.
14349 * ipa-ref.c: Likewise.
14350 * ipa-reference.c: Likewise.
14352 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14355 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14357 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14360 * doc/sourcebuild.texi (Require Support): Document
14361 dg-require-ascii-locale.
14363 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14365 * doc/lto.texi (Write summary): Fix missing parentheses.
14367 2011-02-10 DJ Delorie <dj@redhat.com>
14369 * config/m32c/m32c.c (m32c_option_override): Disable
14370 -fcombine-stack-adjustments until flag value tracking and compare
14371 optimization can be rewritten.
14373 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14375 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14377 (PROCESSOR_DEFAULT64): Likewise.
14379 2011-02-10 Richard Henderson <rth@redhat.com>
14381 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14382 change from 2011-02-03.
14383 * config/rx/rx.c (flags_from_code): Likewise.
14384 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14385 is valid, n/pz otherwise.
14386 (rx_select_cc_mode): Return CCmode if Y is not zero.
14388 2011-02-10 Richard Guenther <rguenther@suse.de>
14390 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14392 2011-02-10 Richard Guenther <rguenther@suse.de>
14394 PR tree-optimization/47677
14395 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14397 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14400 * combine.c (make_compound_operation): Only change shifts into
14401 multiplication for SCALAR_INT_MODE_P.
14403 2011-02-10 Jie Zhang <jie@codesourcery.com>
14407 2011-02-05 Jie Zhang <jie@codesourcery.com>
14409 * web.c (entry_register): Don't clobber the number of the
14410 first uninitialized reference in used[].
14412 2011-02-09 Richard Guenther <rguenther@suse.de>
14414 PR tree-optimization/47664
14415 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14418 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14422 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14424 (PROCESSOR_DEFAULT64): Same.
14425 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14427 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14429 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14431 2011-02-09 Martin Jambor <mjambor@suse.cz>
14433 PR middle-end/45505
14434 * tree-sra.c (struct access): New flags grp_scalar_read and
14435 grp_scalar_write. Changed description of assignment read and write
14437 (dump_access): Dump new flags, reorder all of them.
14438 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14439 to detect multiple scalar reads.
14440 (analyze_access_subtree): Use the new scalar read write flags instead
14441 of the old flags. Adjusted comments.
14443 2011-02-08 DJ Delorie <dj@redhat.com>
14446 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14449 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14451 * config/m68k/uclinux.opt: New.
14452 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14454 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14456 * config/cris/elf.opt (sim): New Driver option.
14458 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14460 * config/xtensa/elf.opt: New.
14461 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14463 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14465 * config/vax/elf.opt: New.
14466 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14468 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14470 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14472 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14474 * config/gnu-user.opt: New.
14475 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14476 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14477 *-*-uclinux*): Use gnu-user.opt.
14479 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14481 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14482 * config/i386/gnu.h (CPP_SPEC): Likewise.
14484 2011-02-08 Ian Lance Taylor <iant@google.com>
14486 * common.opt (fcx-limited-range): Add SetByCombined flag.
14487 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14488 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14489 (fassociative-math, freciprocal-math): Likewise.
14490 (funsafe-math-optimizations): Likewise.
14491 * opth-gen.awk: Handle SetByCombined.
14492 * optc-gen.awk: Likewise.
14493 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14494 (set_unsafe_math_optimizations_flags): Likewise.
14495 * doc/options.texi (Option properties): Document SetByCombined.
14497 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14499 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14500 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14501 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14502 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14503 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14505 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14507 PR tree-optimization/46834
14508 PR tree-optimization/46994
14509 PR tree-optimization/46995
14510 * graphite-sese-to-poly.c (used_outside_reduction): New.
14511 (detect_commutative_reduction): Call used_outside_reduction.
14512 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14513 translate_scalar_reduction_to_array only when at least one
14514 loop-phi/close-phi tuple has been detected.
14516 2011-02-08 Richard Guenther <rguenther@suse.de>
14518 PR middle-end/47639
14519 * tree-vect-generic.c (expand_vector_operations_1): Update
14521 (expand_vector_operations): ... not here. Cleanup EH info
14522 and the CFG if required.
14524 2011-02-08 Richard Guenther <rguenther@suse.de>
14526 PR tree-optimization/47641
14527 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14528 require type compatibility.
14530 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14532 * gimple-low.c (lower_function_body): Don't remove the location of
14533 the return statement here.
14534 (lower_gimple_return): Do it here instead but only if the return
14535 statement is actually used twice.
14537 2011-02-08 Richard Guenther <rguenther@suse.de>
14539 PR tree-optimization/47632
14540 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14541 unused up_to_stmt parameter, return whether cfg-cleanup is
14542 necessary, remove EH info properly.
14543 (forward_propagate_into_gimple_cond): Adjust caller.
14544 (forward_propagate_into_cond): Likewise.
14545 (forward_propagate_comparison): Likewise.
14546 (tree_ssa_forward_propagate_single_use_vars): Make
14547 forward_propagate_comparison case similar to the two others.
14549 2011-02-08 Nick Clifton <nickc@redhat.com>
14551 * config/mn10300/mn10300.opt (mliw): New command line option.
14552 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14553 (liw_bundling): New automaton.
14554 (liw): New attribute.
14555 (liw_op): New attribute.
14556 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14557 (movsi_internal): Add LIW attributes.
14558 (andsi3): Likewise.
14559 (iorsi3): Likewise.
14560 (xorsi3): Likewise.
14561 (addsi3): Separate register and immediate alternatives.
14562 Add LIW attributes.
14563 (subsi3): Likewise.
14565 (aslsi3): Likewise.
14566 (lshrsi3): Likewise.
14567 (ashrsi3): Likewise.
14568 (liw): New pattern.
14569 * config/mn10300/mn10300.c (liw_op_names): New
14570 (mn10300_print_operand): Handle 'W' operand descriptor.
14571 (extract_bundle): New function.
14572 (check_liw_constraints): New function.
14573 (liw_candidate): New function.
14574 (mn10300_bundle_liw): New function.
14575 (mn10300_reorg): New function.
14576 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14577 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14578 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14579 __LIW__ or __NO_LIW__.
14580 * doc/invoke.texi: Describe the -mliw command line option.
14582 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14584 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14585 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14586 pthread_mutex_unlock): Remove.
14587 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14588 * config/pa/t-pa64: Likewise.
14589 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14590 shared libc if not linking against libpthread.
14591 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14593 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14596 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14597 on 10.6 and later to ensure that we always use the unwinder from
14598 the system. Only add -no_compact_unwind when tarteting darwin
14601 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14604 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14605 (vec_interleave_lowv2sf): Ditto.
14606 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14607 (vec_extract_oddv2sf): Ditto.
14609 2011-02-07 Mike Stump <mikestump@comcast.net>
14612 Add __ieee_divdc3 entry point.
14613 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14615 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14616 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14617 * config/darwin.c (darwin_rename_builtins): Add.
14618 * config/darwin-protos.h (darwin_rename_builtins): Add.
14620 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14623 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14626 2011-02-07 Mike Stump <mikestump@comcast.net>
14628 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14630 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14633 * config/avr/libgcc.S (exit): Move .endfunc
14635 2011-02-07 Richard Guenther <rguenther@suse.de>
14637 PR tree-optimization/47615
14638 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14639 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14640 (run_scc_vn): Initialize it.
14641 (visit_reference_op_load): Use it.
14642 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14644 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14646 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14647 DImode trapping arithmetic libfuncs.
14649 2011-02-07 Richard Guenther <rguenther@suse.de>
14651 PR tree-optimization/47621
14652 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14654 (execute_update_addresses_taken): ... here. Make it more
14655 conservative in what we accept.
14657 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14659 * config/sparc/freebsd.h (ASM_SPEC): Define.
14660 * config/sparc/vxworks.h (ASM_SPEC): Define.
14662 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14664 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14666 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14668 * doc/invoke.texi: Remove reference to compiler internals from
14669 user documentation.
14671 * reg-notes.def: Remove REG_VALUE_PROFILE.
14672 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14674 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14676 PR middle-end/47610
14677 * varasm.c (default_section_type_flags): If decl is NULL,
14678 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14680 2011-02-05 Jie Zhang <jie@codesourcery.com>
14683 * web.c (entry_register): Don't clobber the number of the
14684 first uninitialized reference in used[].
14686 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14688 PR tree-optimization/46194
14689 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14690 (build_classic_dist_vector_1): Do not represent classic distance
14691 vectors when the access functions are variating in different loops.
14693 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14695 * config/mips/iris6.opt: New.
14696 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14698 2011-02-04 Richard Henderson <rth@redhat.com>
14699 Steve Ellcey <sje@cup.hp.com>
14702 * config/ia64/predicates.md (mux1_brcst_element): New.
14703 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14704 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14705 (ia64_unpack_sign): New.
14706 (ia64_expand_unpack): Rewrite using new routines.
14707 (ia64_expand_widen_sum): Ditto.
14708 (ia64_expand_dot_prod_v8qi): Ditto.
14709 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14710 routines, add endian check.
14711 (pmpy2_even): Rename from pmpy2_r, add endian check.
14712 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14713 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14714 (vec_widen_smult_hi_v4hi): Ditto.
14715 (vec_widen_umult_lo_v4hi): Ditto.
14716 (vec_widen_umult_hi_v4hi): Ditto.
14717 (mulv2si3): Change endian checks.
14718 (sdot_prodv4hi): Rewrite with new calls.
14719 (udot_prodv4hi): New.
14720 (vec_pack_ssat_v4hi): Add endian check.
14721 (vec_pack_usat_v4hi): Ditto.
14722 (vec_pack_ssat_v2si): Ditto.
14723 (max1_even): Rename from max1_r, add endian check.
14724 (max1_odd): Rename from max1_l, add endian check.
14725 (*mux1_rev): Format change.
14726 (*mux1_mix): Ditto.
14727 (*mux1_shuf): Ditto.
14728 (*mux1_alt): Ditto.
14729 (*mux1_brcst_v8qi): Use new predicate.
14730 (vec_extract_evenv8qi): Remove endian check.
14731 (vec_extract_oddv8qi): Ditto.
14732 (vec_interleave_lowv4hi): Format change.
14733 (vec_interleave_highv4hi): Ditto.
14734 (mix2_even): Rename from mix2_r, add endian check.
14735 (mix2_odd): Rename from mux2_l, add endian check.
14736 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14737 (vec_extract_evenodd_helper): Format change.
14738 (vec_extract_evenv4hi): Remove endian check.
14739 (vec_extract_oddv4hi): Remove endian check.
14740 (vec_interleave_lowv2si): Format change.
14741 (vec_interleave_highv2si): Format change.
14742 (vec_initv2si): Remove endian check.
14743 (vecinit_v2si): Add endian check.
14744 (reduc_splus_v2sf): Add endian check.
14745 (reduc_smax_v2sf): Ditto.
14746 (reduc_smin_v2sf): Ditto.
14747 (vec_initv2sf): Remove endian check.
14748 (fpack): Add endian check.
14749 (fswap): Add endian check.
14750 (vec_interleave_highv2sf): Add endian check.
14751 (vec_interleave_lowv2sf): Add endian check.
14752 (fmix_lr): Add endian check.
14753 (vec_setv2sf): Format change.
14754 (*vec_extractv2sf_0_be): Use shift to extract operand.
14755 (*vec_extractv2sf_1_be): New.
14756 (vec_pack_trunc_v4hi): Add endian check.
14757 (vec_pack_trunc_v2si): Format change.
14759 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14761 PR inline-asm/23200
14762 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14763 do bb, locus and block comparison and disallow loads if it is not set.
14764 (stmt_is_replaceable_p): New function.
14765 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14767 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14768 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14770 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14772 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14774 * config/rs6000/xilinx.opt: New.
14775 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14777 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14779 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14781 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14783 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14784 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14785 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14786 secondary_reload_info, xtensa_secondary_reload): Remove.
14787 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14788 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14789 (xtensa_preferred_reload_class): Make static. Change return and
14790 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14791 Use CONST_DOUBLE_P predicate.
14792 (xtensa_preferred_output_reload_class): New function.
14793 (xtensa_secondary_reload): Make static.
14795 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14797 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14798 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14799 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14801 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14803 PR middle-end/31490
14804 * output.h (SECTION_RELRO): Define.
14805 (SECTION_MACH_DEP): Adjust.
14806 (get_variable_section): New prototype.
14807 * varpool.c (varpool_finalize_named_section_flags): New function.
14808 (varpool_assemble_pending_decls): Call it.
14809 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14810 * cgraphunit.c (cgraph_output_in_order): Call
14811 varpool_finalize_named_section_flags.
14812 * varasm.c (get_section): Allow section flags conflicts between
14813 relro and read-only sections if the section hasn't been declared yet.
14814 Set SECTION_OVERRIDE after diagnosing section type conflict.
14815 (get_variable_section): No longer static.
14816 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14817 readonly sections that need relocations.
14818 (decl_readonly_section_1): New function.
14819 (decl_readonly_section): Use it.
14822 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14823 Steve Ellcey <sje@cup.hp.com>
14825 PR middle-end/31490
14826 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14827 if section attribute used.
14829 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14831 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14832 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14833 (darwin_init_sections): Remove assertion.
14835 2011-02-03 Nick Clifton <nickc@redhat.com>
14837 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14839 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14840 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14841 instead of "n" and "pz".
14842 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14845 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14848 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14849 fma, expand FMA_EXPR as fma{,f,l} call.
14852 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14853 copy them into a unsigned char variable and pass address of it to
14854 lto_output_data_stream.
14857 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14858 around backend_init_target and lang_dependent_init_target calls.
14859 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14860 (verify_cgraph_node): Don't call set_cfun here. Use
14861 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14862 Set error_found for incorrectly represented calls to thunks.
14864 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14867 PR rtl-optimization/43494
14868 * rtl.h (for_each_inc_dec_fn): New type.
14869 (for_each_inc_dec): Declare.
14870 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14871 (for_each_inc_dec_find_inc_dec): New fn.
14872 (for_each_inc_dec_find_mem): New fn.
14873 (for_each_inc_dec): New fn.
14874 * dse.c (struct insn_size): Remove.
14875 (replace_inc_dec, replace_inc_dec_mem): Remove.
14876 (emit_inc_dec_insn_before): New fn.
14877 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14878 (canon_address): Pass mem modes to cselib_lookup.
14879 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14880 (cselib_lookup_from_insn): Likewise.
14881 (cselib_subst_to_values): Likewise.
14882 * cselib.c (find_slot_memmode): New var.
14883 (cselib_find_slot): New fn. Use it instead of
14884 htab_find_slot_with_hash everywhere.
14885 (entry_and_rtx_equal_p): Use find_slot_memmode.
14886 (autoinc_split): New fn.
14887 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14888 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14889 Deal with autoinc. Special-case recursion into MEMs.
14890 (cselib_hash_rtx): Likewise.
14891 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14892 address and MEM modes.
14893 (cselib_subst_to_values): Add memmode, pass it on.
14895 (cselib_lookup): Add memmode argument, pass it on.
14896 (cselib_lookup_from_insn): Add memmode.
14897 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14898 (struct cselib_record_autoinc_data): New.
14899 (cselib_record_autoinc_cb): New fn.
14900 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14901 mode to cselib_lookup. Reset autoinced REGs here instead of...
14902 (cselib_process_insn): ... here.
14903 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14905 (add_uses): Likewise, also to cselib_subst_to_values.
14906 (add_stores): Likewise.
14907 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14908 cselib_subst_to_values.
14909 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14910 * gcse.c (do_local_cprop): Adjusted.
14911 * postreload.c (reload_cse_simplify_set): Adjusted.
14912 (reload_cse_simplify_operands): Adjusted.
14913 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14915 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14917 PR tree-optimization/45122
14918 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14919 unsafe assumptions when there's more than one loop exit.
14921 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14924 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14925 Document using vector double with the load/store builtins, and
14926 that the load/store builtins always use Altivec instructions.
14928 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14929 to use altivec memory instructions, even on VSX.
14930 (vector_altivec_store_<mode>): Ditto.
14932 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14935 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14936 V2DF, V2DI support to load/store overloaded builtins.
14938 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14939 altivec load/store builtins for V2DF/V2DI types.
14941 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14942 set avoid indexed addresses on power6 if -maltivec.
14943 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14944 vector_altivec_load/vector_altivec_store builtins.
14945 (altivec_expand_st_builtin): Ditto.
14946 (altivec_expand_builtin): Add VSX memory builtins.
14947 (rs6000_init_builtins): Add V2DI types to internal types.
14948 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14949 load/store builtins.
14950 (rs6000_address_for_altivec): Insure memory address is appropriate
14953 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14954 vec_vsx_ld and vec_vsx_st.
14955 (vsx_store_<mode>): Ditto.
14957 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14958 variables to hold long long types for VSX vector memory builtins.
14959 (RS6000_BTI_unsigned_long_long): Ditto.
14960 (long_long_integer_type_internal_node): Ditti.
14961 (long_long_unsigned_type_internal_node): Ditti.
14963 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14964 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14965 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14967 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14969 (vec_vsx_st): Ditto.
14971 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14973 * config/pa/pa-hpux10.opt: New.
14974 * config/hpux11.opt (pthread): New Driver option.
14975 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14976 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14978 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14980 * config/ia64/vms.opt: New.
14981 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14983 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14986 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14987 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14988 generator functions.
14989 (vsx_floatuns<VSi><mode>2): Ditto.
14990 (vsx_fix_trunc<mode><VSi>2): Ditto.
14991 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14993 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14995 * config/i386/djgpp.opt (posix): New Driver option.
14997 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14999 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15000 Move to the unsupported targets list.
15002 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15004 PR rtl-optimization/47525
15005 * df-scan.c: Update copyright years.
15006 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15007 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15009 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15011 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15012 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15013 (ASM_OUTPUT_ASCII): Remove.
15014 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15016 2011-02-02 Jeff Law <law@redhat.com>
15018 PR middle-end/47543
15019 * reload.c (find_reloads_address): Handle reg+d address where both
15020 components are invalid by reloading the entire address.
15022 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15023 Richard Guenther <rguenther@suse.de>
15025 PR tree-optimization/40979
15027 * passes.c (init_optimization_passes): After LIM call copy_prop
15028 and DCE to clean up.
15029 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15031 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15033 PR tree-optimization/47576
15034 PR tree-optimization/47555
15035 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15036 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15037 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15038 * tree-scalar-evolution.c (follow_ssa_edge): Use
15039 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15041 2011-02-02 Richard Guenther <rguenther@suse.de>
15043 PR tree-optimization/47566
15044 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15046 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15050 * tree-inline.c (declare_return_variable): Remove unused caller
15055 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15056 * cfgexpand.c (account_used_vars_for_block): Use them.
15057 * tree-nrv.c (tree_nrv): Likewise.
15058 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15059 (dump_scope_block): Likewise.
15060 (remove_unused_locals): Likewise.
15064 * tree-inline.c (declare_return_variable): Add result decl to
15065 local decls only once.
15066 * gimple-low.c (record_vars_into): Mark newly-created variables
15069 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15075 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15077 (no_real_insns_p, schedule_block, set_priorities): Drop special
15078 treatment of boundary debug insns.
15079 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15080 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15081 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15082 (BOUNDARY_DEBUG_INSN_P): Likewise.
15083 (SCHEDULE_DEBUG_INSN_P): Likewise.
15084 * sched-rgn.c (init_ready_list): Drop special treatment of
15085 boundary debug insns.
15086 * final.c (rest_of_clean_state): Clear notes' BB.
15088 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15090 * config/openbsd.opt (assert=): New Driver option.
15092 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15094 * config/i386/nto.opt: New.
15095 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15097 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15099 * config/i386/netware.opt: New.
15100 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15102 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15104 * config/interix.opt (posix): New Driver option.
15106 2011-02-01 DJ Delorie <dj@redhat.com>
15108 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15110 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15113 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15115 PR tree-optimization/47561
15116 * toplev.c (process_options): Print the Graphite flags. Add
15117 flag_loop_flatten to the list of options requiring Graphite.
15119 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15121 * config/i386/cygming.opt (posix): New Driver option.
15123 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15125 * config/arm/vxworks.opt: New.
15126 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15128 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15130 * config/alpha/elf.opt: New.
15131 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15132 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15134 2011-02-01 Richard Guenther <rguenther@suse.de>
15136 PR tree-optimization/47559
15137 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15138 store-motion on references that can throw.
15140 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15142 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15143 * tree-pass.h (TDF_CSELIB): New macro.
15144 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15145 cselib_lookup): Check for it rather than for TDF_DETAILS.
15147 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15150 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15151 is HOST_BIT_BUCKET.
15153 * opts.c (finish_options): Don't add x_aux_base_name if it is
15156 2011-02-01 Richard Guenther <rguenther@suse.de>
15158 PR tree-optimization/47555
15160 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15162 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15164 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15167 * config/lm32/t-lm32: Add multilib for all CPU options.
15169 2011-02-01 Richard Guenther <rguenther@suse.de>
15171 PR tree-optimization/47541
15172 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15173 sure to have a field at offset zero.
15175 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15177 * config/arc/arc.opt (EB, EL): New Driver options.
15179 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15181 * config/alpha/osf5.opt: New.
15182 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15184 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15186 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15188 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15190 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15191 -floop-interchange.
15192 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15193 is an alias of -floop-interchange and that it requires the
15194 Graphite infrastructure.
15195 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15196 flag_loop_interchange based on the value of flag_tree_loop_linear.
15198 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15199 Richard Guenther <rguenther@suse.de>
15201 PR tree-optimization/47538
15202 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15203 type instead of r1type, except for comparisons. For right
15204 shifts and comparisons punt if there are mismatches in
15205 sizetype vs. non-sizetype types.
15207 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15209 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15212 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15214 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15216 * configure: Regenerate.
15218 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15220 * configure.ac (gcc_cv_ld_static_option): Define.
15221 (gcc_cv_ld_dynamic_option): Define.
15222 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15224 (HAVE_LD_STATIC_DYNAMIC): Update message.
15225 (LD_STATIC_OPTION): Define.
15226 (LD_DYNAMIC_OPTION): Define.
15227 * configure: Regenerate.
15228 * config.in: Regenerate.
15229 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15230 HAVE_LD_STATIC_DYNAMIC]: Use them.
15232 2011-01-31 Nick Clifton <nickc@redhat.com>
15234 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15235 registers inside interrupt handlers if the handler is not a leaf
15238 2011-01-31 Nick Clifton <nickc@redhat.com>
15240 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15241 reg_renumber returning an INVALID_REGNUM.
15243 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15246 * doc/install.texi: Document host options discarded when cross
15247 configuring target libraries.
15249 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15252 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15255 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15257 (no_real_insns_p, schedule_block, set_priorities): Drop special
15258 treatment of boundary debug insns.
15259 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15260 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15261 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15262 (BOUNDARY_DEBUG_INSN_P): Likewise.
15263 (SCHEDULE_DEBUG_INSN_P): Likewise.
15264 * sched-rgn.c (init_ready_list): Drop special treatment of
15265 boundary debug insns.
15266 * final.c (rest_of_clean-state): Clear notes' BB.
15268 2011-01-31 Alan Modra <amodra@gmail.com>
15270 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15271 toc relative expressions as we do in print_operand_address.
15273 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15275 * doc/extend.texi: Follow spelling conventions.
15276 * doc/invoke.texi: Fix a typo.
15278 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15280 * config/hpux11.opt: New.
15281 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15282 ia64*-*-hpux*): Use hpux11.opt.
15284 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15286 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15289 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15291 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15294 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15296 * doc/install.texi (Binaries): Remove outdated reference for
15297 Motorola 68HC11/68HC12 downloads.
15299 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15301 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15304 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15307 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15310 2011-01-28 Ahmad Sharif <asharif@google.com>
15312 * value-prof.c (check_counter): Corrected error message.
15314 2011-01-29 Jie Zhang <jie@codesourcery.com>
15316 * config/arm/arm.c (arm_legitimize_reload_address): New.
15317 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15318 arm_legitimize_reload_address.
15319 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15321 2011-01-28 Ian Lance Taylor <iant@google.com>
15323 * godump.c (go_define): Ignore macros whose definitions include
15324 two adjacent operands.
15326 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15329 * varasm.c (force_const_mem): Store copy of x in desc->constant
15330 instead of x itself.
15331 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15332 itself into REG_EQUAL note.
15334 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15336 * config/freebsd.opt (posix, rdynamic): New Driver options.
15338 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15340 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15341 -Bstatic/-Bdynamic.
15342 * configure: Regenerate.
15344 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15346 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15347 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15349 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15351 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15352 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15353 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15354 (s390_preferred_reload_class): Make static. Change return and
15355 'rclass' argument type to reg_class_t.
15357 2011-01-27 Jan Hubicka <jh@suse.cz>
15359 PR middle-end/46949
15360 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15361 (process_function_and_variable_attributes): Check defined weakrefs.
15363 2011-01-27 Martin Jambor <mjambor@suse.cz>
15365 PR tree-optimization/47228
15366 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15367 build_ref_for_offset.
15369 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15371 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15373 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15375 PR rtl-optimization/46856
15376 * postreload.c (reload_combine_recognize_const_pattern): Do not
15377 separate cc0 setter and user on cc0 targets.
15379 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15382 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15383 passed a VOID_TYPE expression, immediately emit an error and
15384 return error_mark_node.
15386 2011-01-26 Jeff Law <law@redhat.com>
15388 PR rtl-optimization/47464
15389 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15390 rather than may_trap_p as needed.
15392 2011-01-26 DJ Delorie <dj@redhat.com>
15394 PR rtl-optimization/46878
15395 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15396 setter/user dependency as well.
15398 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15400 PR rtl-optimization/44469
15401 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15402 after removing trivially dead basic blocks.
15404 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15406 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15407 * config/frv/frv.h (LINK_SPEC): Likewise.
15408 * config/i386/netware.h (LINK_SPEC): Likewise.
15409 * config/m68k/linux.h (ASM_SPEC): Likewise.
15410 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15411 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15412 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15413 * config/sparc/linux.h (ASM_SPEC): Likewise.
15414 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15415 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15417 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15419 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15420 * config/frv/frv.h (ASM_SPEC): Likewise.
15421 * config/m68k/linux.h (ASM_SPEC): Likewise.
15422 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15423 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15424 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15425 * config/sparc/linux.h (ASM_SPEC): Likewise.
15426 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15427 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15429 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15431 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15432 * config/frv/frv.h (LINK_SPEC): Likewise.
15433 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15435 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15437 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15438 * config/frv/frv.h (ASM_SPEC): Likewise.
15439 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15440 * config/m68k/linux.h (ASM_SPEC): Likewise.
15441 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15442 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15443 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15444 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15445 * config/sparc/linux.h (ASM_SPEC): Likewise.
15446 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15447 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15448 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15450 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15453 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15455 (vec_extract_evenodd_help): Ditto.
15456 (vec_extract_evenv4hi): Ditto.
15457 (vec_extract_oddv4hi): Ditto.
15458 (vec_interleave_lowv2si): Ditto.
15459 (vec_interleave_highv2si): Ditto.
15460 (vec_extract_evenv2si): Ditto.
15461 (vec_extract_oddv2si: Ditto.
15462 (vec_pack_trunc_v2si): Ditto.
15464 2011-01-22 Jan Hubicka <jh@suse.cz>
15467 * cgraph.h (cgraph_local_info): New field can_change_signature.
15468 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15469 signature can change.
15470 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15472 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15473 (cgraph_function_versioning): We can not change signature of functions
15474 that don't allow that.
15475 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15476 (lto_input_node): Likewise.
15477 * ipa-inline.c (compute_inline_parameters): Compute
15478 local.can_change_signature.
15479 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15480 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15481 functions that can not change signature.
15482 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15483 init_cumulative_args): Do not use local calling conventions
15484 for functions that can not change signature.
15486 2011-01-22 Jan Hubicka <jh@suse.cz>
15488 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15490 2011-01-26 Richard Guenther <rguenther@suse.de>
15492 PR tree-optimization/47190
15493 * cgraphunit.c (process_common_attributes): New function.
15494 (process_function_and_variable_attributes): Use it.
15496 2011-01-26 Richard Guenther <rguenther@suse.de>
15499 * cgraphbuild.c (record_eh_tables): Record reference to personality
15502 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15505 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15506 non-debug insns from moving up.
15508 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15511 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15512 t-dlldir{,-x} fragment for build and add it to tmake_file.
15513 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15514 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15515 * config/i386/t-dlldir: New file.
15516 (SHLIB_DLLDIR): Define.
15517 * config/i386/t-dlldir-x: New file.
15518 (SHLIB_DLLDIR): Define.
15519 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15520 (SHLIB_INSTALL): Use it.
15522 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15525 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15526 lower bound of the allowed Thumb-2 coprocessor load/store
15527 index range to -256. Add explaining comment.
15529 2011-01-25 Ian Lance Taylor <iant@google.com>
15531 * godump.c (go_define): Improve lexing of macro expansion to only
15532 accept expressions which match Go spec.
15534 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15537 * tree.c (handle_dll_attribute): Handle it.
15538 * doc/extend.texi (@item dllexport): Mention it.
15539 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15541 2011-01-25 Ian Lance Taylor <iant@google.com>
15543 PR tree-optimization/26854
15544 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15545 (decl_jump_unsafe): Move higher in file, with no other change.
15546 (bind): Set has_jump_unsafe_decl if appropriate.
15547 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15548 (check_earlier_gotos): Likewise.
15549 (c_check_switch_jump_warnings): Likewise.
15551 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15553 * doc/invoke.texi (Warning Options): Add missing hyphen.
15554 (-fprofile-dir): Minor grammatical fixes.
15555 (-fbranch-probabilities): Likewise.
15557 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15561 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15563 (no_real_insns_p, schedule_block, set_priorities): Drop special
15564 treatment of boundary debug insns.
15565 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15566 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15567 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15568 (BOUNDARY_DEBUG_INSN_P): Likewise.
15569 (SCHEDULE_DEBUG_INSN_P): Likewise.
15570 * sched-rgn.c (init_ready_list): Drop special treatment of
15571 boundary debug insns.
15572 * final.c (rest_of_clean-state): Clear notes' BB.
15574 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15576 * Makefile.in (LAMBDA_H): Removed.
15577 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15578 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15579 lambda-trans.o, and tree-loop-linear.o.
15580 (lto-symtab.o): Remove dependence on LAMBDA_H.
15581 (tree-loop-linear.o): Remove rule.
15582 (lambda-mat.o): Same.
15583 (lambda-trans.o): Same.
15584 (lambda-code.o): Same.
15585 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15586 (tree-vect-slp.o): Same.
15587 * hwint.h (gcd): Moved here.
15588 (least_common_multiple): Same.
15589 * lambda-code.c: Removed.
15590 * lambda-mat.c: Removed.
15591 * lambda-trans.c: Removed.
15592 * lambda.h: Removed.
15593 * tree-loop-linear.c: Removed.
15594 * lto-symtab.c: Do not include lambda.h.
15595 * omega.c (gcd): Removed.
15596 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15597 * tree-data-ref.c (print_lambda_vector): Moved here.
15598 (lambda_vector_copy): Same.
15599 (lambda_matrix_copy): Same.
15600 (lambda_matrix_id): Same.
15601 (lambda_vector_first_nz): Same.
15602 (lambda_matrix_row_add): Same.
15603 (lambda_matrix_row_exchange): Same.
15604 (lambda_vector_mult_const): Same.
15605 (lambda_vector_negate): Same.
15606 (lambda_matrix_row_negate): Same.
15607 (lambda_vector_equal): Same.
15608 (lambda_matrix_right_hermite): Same.
15609 * tree-data-ref.h: Do not include lambda.h.
15610 (lambda_vector): Moved here.
15611 (lambda_matrix): Same.
15612 (dependence_level): Same.
15613 (lambda_transform_legal_p): Removed declaration.
15614 (lambda_collect_parameters): Same.
15615 (lambda_compute_access_matrices): Same.
15616 (lambda_vector_gcd): Same.
15617 (lambda_vector_new): Same.
15618 (lambda_vector_clear): Same.
15619 (lambda_vector_lexico_pos): Same.
15620 (lambda_vector_zerop): Same.
15621 (lambda_matrix_new): Same.
15622 * tree-flow.h (least_common_multiple): Removed declaration.
15623 * tree-parloops.c (lambda_trans_matrix): Moved here.
15624 (LTM_MATRIX): Same.
15625 (LTM_ROWSIZE): Same.
15626 (LTM_COLSIZE): Same.
15627 (LTM_DENOMINATOR): Same.
15628 (lambda_trans_matrix_new): Same.
15629 (lambda_matrix_vector_mult): Same.
15630 (lambda_transform_legal_p): Same.
15631 * tree-pass.h (pass_linear_transform): Removed declaration.
15632 * tree-ssa-loop.c (tree_linear_transform): Removed.
15633 (gate_tree_linear_transform): Removed.
15634 (pass_linear_transform): Removed.
15635 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15636 flag_loop_interchange.
15638 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15640 PR tree-optimization/47265
15641 PR tree-optimization/47443
15642 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15643 if name still has some uses.
15645 2011-01-25 Martin Jambor <mjambor@suse.cz>
15647 PR tree-optimization/47382
15648 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15649 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15651 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15653 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15654 sjlj_except_unwind_info.
15656 2011-01-25 Richard Guenther <rguenther@suse.de>
15658 PR tree-optimization/47426
15659 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15660 visible functions results escape.
15662 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15665 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15666 (arm_get_frame_offsets): Use it.
15668 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15669 Jakub Jelinek <jakub@redhat.com>
15671 PR tree-optimization/47271
15672 * tree-if-conv.c (bb_postdominates_preds): New.
15673 (if_convertible_bb_p): Call bb_postdominates_preds.
15674 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15675 (predicate_scalar_phi): Call bb_postdominates_preds.
15677 2011-01-25 Nick Clifton <nickc@redhat.com>
15679 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15680 * config/rx/rx.c (rx_function_value): Likewise.
15681 (rx_promote_function_mode): Likewise.
15682 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15683 in order to make it legitimate.
15684 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15685 make sure that the first operand is the same as the result register.
15686 (addsi3_unspec): Delete.
15687 (subdi3): Do not accept immediate operands.
15688 (subdi3_internal): Likewise.
15690 2011-01-25 Jeff Law <law@redhat.com>
15692 PR rtl-optimization/37273
15693 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15694 handle them like argument loads from stack slots. Do not double
15695 count memory for memory constants and argument loads from stack slots.
15697 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15699 PR tree-optimization/47427
15700 PR tree-optimization/47428
15701 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15702 coalesce if the new root var would be TREE_READONLY.
15704 2011-01-25 Richard Guenther <rguenther@suse.de>
15706 PR middle-end/47414
15707 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15708 correct type for TBAA.
15710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15712 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15713 (close_phi_written_to_memory): Call for_each_index with
15714 dr_indices_valid_in_loop.
15716 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15718 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15719 when it is initialized.
15721 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15723 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15724 call to graphite_find_data_references_in_stmt.
15725 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15726 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15727 call to graphite_find_data_references_in_stmt.
15728 (analyze_drs_in_stmts): Same.
15729 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15730 in which the scalar analysis of indices is performed.
15731 (create_data_ref): Same. Update call to dr_analyze_indices.
15732 (find_data_references_in_stmt): Update call to create_data_ref.
15733 (graphite_find_data_references_in_stmt): Same.
15734 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15736 (create_data_ref): Same.
15737 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15738 call to create_data_ref.
15740 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15742 * graphite-sese-to-poly.c (build_poly_scop): Move
15743 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15745 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15747 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15748 VAR_DECL, PARM_DECL, and RESULT_DECL.
15750 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15752 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15753 in a reduction PBB.
15754 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15755 that have already been marked as PBB_IS_REDUCTION.
15757 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15759 * graphite-scop-detection.c (same_close_phi_node): New.
15760 (remove_duplicate_close_phi): New.
15761 (make_close_phi_nodes_unique): New.
15762 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15764 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15766 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15767 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15768 of both data references to be the same.
15770 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15772 * graphite-dependences.c (build_lexicographical_constraint): Remove
15773 the gdim parameter.
15774 (build_lexicographical_constraint): Adjust call to
15775 ppl_powerset_is_empty.
15776 (dependence_polyhedron): Same.
15777 (graphite_legal_transform_dr): Same.
15778 (graphite_carried_dependence_level_k): Same.
15779 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15781 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15783 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15785 * graphite-sese-to-poly.c
15786 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15787 (close_phi_written_to_memory): New.
15788 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15791 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15793 * doc/install.texi: Update the expected version number of PPL to 0.11.
15794 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15795 #if PPL_VERSION_MINOR < 11.
15797 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15799 * graphite-dependences.c: Include graphite-cloog-util.h.
15800 (new_poly_ddr): Inlined into dependence_polyhedron.
15801 (free_poly_ddr): Moved close by new_poly_ddr.
15802 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15803 Early return NULL when ppl_powerset_is_empty returns true.
15804 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15805 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15806 (graphite_legal_transform_dr): Call new_poly_ddr.
15807 (graphite_carried_dependence_level_k): Same.
15808 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15809 (dot_transformed_deps_stmt_1): Removed.
15810 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15811 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15812 (dot_deps_1): Call dot_deps_2.
15813 * Makefile.in (graphite-dependences.o): Add missing dependence on
15814 graphite-cloog-util.h.
15816 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15818 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15819 (build_lexicographical_constraint): Same.
15820 (dependence_polyhedron_1): Same.
15821 (graphite_legal_transform_dr): Same.
15822 (graphite_carried_dependence_level_k): Same.
15823 * graphite-ppl.c (ppl_powerset_is_empty): New.
15824 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15825 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15827 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15829 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15830 the "a followed by b" relation and document it.
15832 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15834 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15835 iteration when the bag of constraints is empty.
15837 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15839 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15841 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15843 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15844 nest and two loop depths as parameters.
15845 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15846 lst_perfect_nestify.
15848 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15850 * graphite-dependences.c (print_pddr): Call
15851 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15853 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15855 * graphite-ppl.c (debug_gmp_value): New.
15856 * graphite-ppl.h (debug_gmp_value): Declared.
15858 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15860 * doc/install.texi: Document availability of cloog-0.16.
15862 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15864 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15865 invalid postdominance info.
15867 2011-01-24 Jan Hubicka <jh@suse.cz>
15870 * doc/extend.texi (weak pragma): Drop claim that it must
15871 appear before definition.
15872 * varasm.c (merge_weak, declare_weak): Only sanity check
15873 that DECL is not output at a time it is declared weak.
15875 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15877 * machmode.def: Fixed comments.
15879 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15881 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15883 2011-01-24 Paul Koning <ni1d@arrl.net>
15885 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15888 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15891 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15892 (block_info): Add scanned and prev.
15893 (move_or_delete_vzeroupper_2): Return if the basic block
15894 has been scanned and the upper 128bit state is unchanged
15895 from the last scan.
15896 (move_or_delete_vzeroupper_1): Return true if the exit
15898 (move_or_delete_vzeroupper): Visit basic blocks using the
15899 work-list based algorithm based on vt_find_locations in
15902 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15904 2011-01-24 Nick Clifton <nickc@redhat.com>
15906 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15907 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15908 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15909 then define __v850e1__.
15910 * doc/invoke.texi: Document -mv850es.
15912 2011-01-24 Richard Henderson <rth@redhat.com>
15914 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15915 compound unordered comparisons.
15916 * config/rx/rx.c (rx_split_fp_compare): Remove.
15917 * config/rx/rx-protos.h: Update.
15918 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15919 (cbranchsf4): Don't call rx_split_fp_compare.
15920 (*cbranchsf4): Use rx_split_cbranch.
15921 (*cmpsf): Don't accept "i" constraint.
15922 (*conditional_branch): Only valid after reload.
15923 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15925 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15928 * config/rs6000/altivec.md (vector constant splitters): Add
15929 support for creating vector single precision constants if -mvsx is
15930 used and we would create the constant using Altivec primitives.
15932 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15933 Richard Sandiford <rdsandiford@googlemail.com>
15935 PR rtl-optimization/47166
15936 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15937 mechanism for PRE_MODIFY and POST_MODIFY.
15938 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15941 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15943 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15945 2011-01-22 Jan Hubicka <jh@suse.cz>
15948 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15950 2011-01-22 Jan Hubicka <jh@suse.cz>
15952 PR tree-optimization/43884
15954 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15955 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15957 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15959 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15960 * config/s390/s390.c (s390_register_move_cost,
15961 s390_memory_move_cost): New.
15962 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15964 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15966 PR middle-end/47401
15967 * except.c (sjlj_assign_call_site_values): Move setting the
15968 crtl->uses_eh_lsda flag to ...
15969 (sjlj_mark_call_sites): ... here.
15970 (sjlj_emit_function_enter): Support NULL dispatch label.
15971 (sjlj_build_landing_pads): In a function with no landing pads
15972 that still has must-not-throw regions, generate code to register
15973 a personality function with empty LSDA.
15975 2011-01-21 Richard Henderson <rth@redhat.com>
15977 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15979 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15981 * compare-elim.c: New file.
15982 * Makefile.in (OBJS-common): Add it.
15983 (compare-elim.o): New.
15984 * common.opt (fcompare-elim): New.
15985 * opts.c (default_options_table): Add OPT_fcompare_elim.
15986 * tree-pass.h (pass_compare_elim_after_reload): New.
15987 * passes.c (init_optimization_passes): Add it.
15988 * recog.h: Protect against re-inclusion.
15989 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15990 * doc/invoke.texi (-fcompare-elim): Document it.
15991 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15992 * doc/tm.texi: Rebuild.
15994 2011-01-22 Nick Clifton <nickc@redhat.com>
15996 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15997 rx_split_fp_compare.
15999 2011-01-22 Nick Clifton <nickc@redhat.com>
16001 * config/rx/rx.md (UNSPEC_CONST): New.
16002 (deallocate_and_return): Wrap the amount popped off the stack in
16003 an UNSPEC_CONST in order to stop it being rejected by
16004 -mmax-constant-size.
16005 (pop_and_return): Add a "(return)" rtx.
16006 (call): Drop the immediate operand.
16007 (call_internal): Likewise.
16008 (call_value): Likewise.
16009 (call_value_internal): Likewise.
16010 (sibcall_internal): Likewise.
16011 (sibcall_value_internal): Likewise.
16012 (sibcall): Likewise. Generate an explicit call using
16014 (sibcall_value): Likewise.
16015 (mov<>): FAIL if a constant operand is not legitimate.
16016 (addsi3_unpsec): New pattern.
16018 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16019 (ok_for_max_constant): New function.
16020 (gen_safe_add): New function.
16021 (rx_expand_prologue): Use gen_safe_add.
16022 (rx_expand_epilogue): Likewise.
16023 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16026 2011-01-21 Jeff Law <law@redhat.com>
16028 PR tree-optimization/47053
16029 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16030 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16031 statements are deleted.
16032 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16033 is nonempty, then purge dead edges and cleanup the CFG.
16035 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16038 Temporarily revert:
16039 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16041 * tree-dfa.c (create_var_ann): Mark variable as used.
16043 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16045 PR middle-end/45566
16046 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16047 notes from other section in hot/cold partitioning even if
16048 last_action is -3. Increment call_site_base.
16050 PR rtl-optimization/47366
16051 * fwprop.c (forward_propagate_into): Return bool. If
16052 any changes are made, -fnon-call-exceptions is used and
16053 REG_EH_REGION note is present, call purge_dead_edges
16054 and return true if it purged anything.
16055 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16056 any EH edges were purged.
16058 2011-01-21 Jeff Law <law@redhat.com>
16060 PR rtl-optimization/41619
16061 * caller-save.c (setup_save_areas): Break out code to determine
16062 which hard regs are live across calls by examining the reload chains
16063 so that it is always used.
16064 Eliminate code which checked REG_N_CALLS_CROSSED.
16066 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16068 PR tree-optimization/47355
16069 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16070 NOP has non-debug uses beyond PHIs in new_bb.
16072 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16075 * cfgexpand.c (account_used_vars_for_block): Only account vars
16076 that are annotated as used.
16077 (estimated_stack_frame_size): Don't set TREE_USED.
16078 * tree-dfa.c (create_var_ann): Mark variable as used.
16080 2011-01-21 Richard Guenther <rguenther@suse.de>
16082 PR middle-end/47395
16083 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16085 2011-01-21 Richard Guenther <rguenther@suse.de>
16087 PR tree-optimization/47365
16088 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16089 (vn_reference_lookup_pieces): Adjust.
16090 (vn_reference_lookup): Likewise.
16091 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16092 (vn_reference_lookup_3): Only look through kills if in
16093 VN_WALKREWRITE mode.
16094 (vn_reference_lookup_pieces): Adjust.
16095 (vn_reference_lookup): Likewise.
16096 (visit_reference_op_load): Likewise.
16097 (visit_reference_op_store): Likewise.
16098 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16099 (compute_avail): Likewise.
16100 (eliminate): Likewise.
16102 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16104 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16105 DECL_IGNORED_P non-reg vars if they are used.
16107 PR tree-optimization/47391
16108 * varpool.c (const_value_known_p): Return false if
16111 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16114 * config/i386/i386.c (ix86_local_alignment): Handle
16115 case for va_list_type_node is nil.
16116 (ix86_canonical_va_list_type): Likewise.
16118 2011-01-21 Alan Modra <amodra@gmail.com>
16120 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16121 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16123 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16125 * config/arm/arm.md (define_attr type): Rename f_load
16126 and f_store to f_fpa_load and f_fpa_store. Update.
16127 (write_conflict): Deal with rename fallout.
16128 (*push_fp_multi): Likewise.
16129 * config/arm/fpa.md (f_load): Use f_fpa_load.
16130 (f_store): Use f_fpa_store.
16131 (*movsf_fpa): Likewise.
16132 (*movdf_fpa): Likewise.
16133 (*movxf_fpa): Likewise.
16134 (*thumb2_movsf_fpa): Likewise.
16135 (*thumb2_movdf_fpa): Likewise.
16136 (*thumb2_movxf_fpa): Likewise.
16137 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16138 f_loadd and f_stored.
16139 (*thumb2_movdi_vfp): Likewise.
16140 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16141 (*thumb2_movsi_vfp): Likewise.
16142 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16143 Use f_loads instead of f_load.
16144 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16146 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16148 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16149 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16150 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16151 (xtensa_mode_dependent_address_p): New function.
16152 (constantpool_address_p): Make static. Change return type to bool.
16153 Change argument type to const_rtx. Use CONST_INT_P predicate.
16155 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16158 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16160 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16163 * cfgexpand.c (expand_debug_expr): Instead of generating
16164 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16167 2011-01-20 Richard Guenther <rguenther@suse.de>
16169 PR middle-end/47370
16170 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16171 the pointer operand of MEM_REFs.
16173 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16175 PR tree-optimization/46130
16176 * ipa-split.c (consider_split): If return_bb contains non-virtual
16177 PHIs other than for retval or if split_function would not adjust it,
16180 2011-01-20 Richard Guenther <rguenther@suse.de>
16182 PR tree-optimization/47167
16183 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16184 Revert previous change, only avoid enumeral type changes.
16186 2011-01-19 Mike Stump <mikestump@comcast.net>
16188 * doc/tm.texi.in (BRANCH_COST): Englishify.
16189 * doc/tm.texi (BRANCH_COST): Likewise.
16191 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16194 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16195 (gen_scheduled_generic_parms_dies): New functions.
16196 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16197 generation for the end of CU compilation.
16198 (dwarf2out_finish): Generate template parameters DIEs here.
16200 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16203 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16204 debug bind stmt on merge edges.
16206 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16210 * function.c (instantiate_expr): Instantiate incoming rtl of
16211 implicit arguments, and recurse on VALUE_EXPRs.
16212 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16213 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16215 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16217 * c-parser.c (c_parser_for_statement): Initialize
16218 collection_expression.
16220 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16222 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16224 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16226 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16227 (LINK_SHLIB_SPEC): Don't use %(link_path).
16228 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16230 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16232 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16233 (NO_SHARED_LIB_SUPPORT): Remove.
16234 (LINK_SHLIB_SPEC): Remove one conditional definition.
16236 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16238 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16240 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16241 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16242 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16243 %{call_shared} and conditionals on these options not being passed.
16244 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16247 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16249 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16252 * ipa-split.c: Spelling fixes.
16254 2011-01-19 Richard Henderson <rth@redhat.com>
16256 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16257 (*mulsi3): Likewise.
16259 * longlong.h [__mn10300__] (count_leading_zeros): New.
16260 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16261 [__mn10300__] (add_ssaaaa, subddmmss): New.
16262 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16263 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16265 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16267 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16269 2011-01-19 Richard Henderson <rth@redhat.com>
16271 * config/mn10300/mn10300.md (addsi3_flags): New.
16272 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16273 (subsi3_flags, subc_internal, subdi3): New.
16274 (subdi3_internal, *subdi3_degenerate): New.
16275 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16277 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16278 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16279 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16280 * config/mn10300/mn10300-protos.h: Update.
16281 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16282 (return_ret): Likewise. Rename from return_internal_regs.
16283 (return_internal): Remove.
16285 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16286 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16287 (mn10300_legitimate_constant_p): Likewise.
16288 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16289 (mn10300_frame_size): New.
16290 (mn10300_expand_prologue): Use it.
16291 (mn10300_expand_epilogue): Likewise.
16292 (mn10300_initial_offset): Likewise.
16293 * config/mn10300/mn10300-protos.h: Update.
16294 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16295 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16296 (prologue, epilogue, return_internal): Tidy output code.
16297 (mn10300_store_multiple_operation, return): Likewise.
16298 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16299 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16300 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16301 (load_pic, am33_load_pic): New.
16302 (mn10300_load_pic0, mn10300_load_pic1): New.
16304 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16305 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16306 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16307 (cc_flags_for_mode, cc_flags_for_code): New.
16308 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16309 overflow flag is not valid. Validate that the flags we need
16310 for the comparison are valid.
16311 (mn10300_output_cmp): Remove.
16312 (mn10300_output_add): New.
16313 (mn10300_select_cc_mode): Use cc_flags_for_code.
16314 (mn10300_split_cbranch): New.
16315 (mn10300_match_ccmode): New.
16316 (mn10300_split_and_operand_count): New.
16317 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16319 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16320 (addsi3): ... here. Use mn10300_output_add.
16321 (*addsi3_flags): New.
16322 (*am33_subsi3, *mn10300_subsi3): Merge...
16323 (subsi3): ... here. Use attribute isa.
16324 (*subsi3_flags): New.
16325 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16327 (*am33_andsi3, *mn10300_andsi3): Merge...
16328 (andsi3): ... here.
16329 (*andsi3_flags): New.
16330 (andsi3 splitters): New.
16331 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16332 (iorsi3): ... here.
16333 (*iorsi3_flags): New.
16334 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16335 (xorsi3): ... here.
16336 (*xorsi3_flags): New.
16337 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16338 (one_cmplsi2): ... here.
16339 (*one_cmplsi2_flags): New.
16340 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16341 instead of "dax" in constraints. Use mn10300_split_cbranch.
16342 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16343 use matching constraints to eliminate a self-comparison.
16344 (*integer_conditional_branch): Rename from integer_conditional_branch.
16345 Use int_mode_flags to match CC_REG.
16346 (*cbranchsi4_btst, *btstsi): New.
16347 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16348 mn10300_split_cbranch.
16349 (*am33_cmpsf): Rename from am33_cmpsf.
16350 (*float_conditional_branch): Rename from float_conditional_branch.
16351 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16352 (zero_extendqisi2): ... here.
16353 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16354 (zero_extendhisi2): ... here.
16355 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16356 (extendqisi2): ... here.
16357 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16358 (extendhisi2): ... here.
16359 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16360 (ashlsi3): ... here.
16361 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16362 (lshrsi3): ... here.
16363 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16364 (ashrsi3): ... here.
16365 (consecutive add peephole): Remove.
16366 * config/mn10300/predicates.md (label_ref_operand): New.
16367 (int_mode_flags): New.
16368 (CCZN_comparison_operator): New.
16370 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16371 (throughput_42_latency_43): New reservation.
16372 (mulsidi3, umulsidi3): New expanders.
16373 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16374 the MDR register to allocation; separately allocate the low and
16375 high parts of the DImode result.
16376 (umulsidi3_internal): Similarly.
16377 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16378 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16379 (udivsi3, umodsi3): Remove.
16380 (udivmodsi4, divmodsi4): New expanders.
16381 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16382 (*divmodsi4): Simiarly.
16383 (ext_internal): New.
16385 * config/mn10300/constraints.md ("z"): New constraint.
16386 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16387 (FIXED_REGISTERS): Don't fix MDR.
16388 (CALL_USED_REGSITERS): Reformat nicely.
16389 (REG_ALLOC_ORDER): Add MDR.
16390 (enum regclass): Add MDR_REGS.
16391 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16392 (IRA_COVER_CLASSES): Add MDR_REGS.
16393 (REGNO_REG_CLASS): Handle MDR_REG.
16394 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16395 (mn10300_register_move_cost): Likewise.
16396 * config/mn10300/mn10300.md (MDR_REG): New.
16397 (*movsi_internal): Handle moves to/from MDR_REGS.
16399 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16401 (mn10300_secondary_reload): Tidy combination reload classes.
16402 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16403 addresses for AM33. Allow symbolic offsets for reg+imm.
16404 (mn10300_regno_in_class_p): New.
16405 (mn10300_legitimize_reload_address): New.
16406 * config/mn10300/mn10300.h (enum reg_class): Remove
16407 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16408 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16409 SP_OR_GENERAL_REGS.
16410 (REG_CLASS_NAMES): Update to match.
16411 (REG_CLASS_CONTENTS): Likewise.
16412 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16413 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16414 (REGNO_IN_RANGE_P): Remove.
16415 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16416 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16417 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16418 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16419 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16420 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16421 (REGNO_GENERAL_P): New.
16422 (HAVE_POST_MODIFY_DISP): New.
16423 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16424 (LEGITIMIZE_RELOAD_ADDRESS): New.
16425 * config/mn10300/mn10300-protos.h: Update.
16427 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16428 DATA_REGS for AM33 stack-pointer destination.
16429 (mn10300_preferred_output_reload_class): Likewise.
16430 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16431 into a form appropriate for ...
16432 (TARGET_SECONDARY_RELOAD): New.
16433 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16434 * config/mn10300/mn10300-protos.h: Update.
16435 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16436 reload_insi; use the "A" constraint for the scratch; handle AM33
16437 moves of sp to non-address registers.
16439 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16440 (*movqi_internal): ... here.
16441 (*am33_movhi, *mn10300_movhi): Merge into...
16442 (*movhi_internal): ... here.
16443 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16444 as the source/destination of moves from/to SP.
16445 (movsf): Only allow for AM33-2.
16446 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16447 any integer constant constraint. Only allow for AM33-2. Tidy
16448 all of the alternative outputs.
16449 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16450 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16452 (udivsi3, umodsi3): New patterns for MN103 only.
16454 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16456 * doc/tm.texi.in: Spell out that a lack of register class unions
16458 * doc/tm.texi: Regenerate.
16460 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16462 PR rtl-optimization/47337
16463 * dce.c (check_argument_store): New function.
16464 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16466 PR tree-optimization/47290
16467 * tree-eh.c (infinite_empty_loop_p): New function.
16468 (cleanup_empty_eh): Use it.
16470 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16473 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16474 (a64_expand_widen_sum): Ditto.
16475 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16476 (vec_extract_evenodd_help): Ditto.
16477 (vec_extract_evenv4hi): Ditto.
16478 (vec_extract_oddv4hi): Ditto.
16479 (vec_extract_evenv2si): Ditto.
16480 (vec_extract_oddv2si): Ditto.
16481 (vec_extract_evenv2sf): Ditto.
16482 (vec_extract_oddv2sf): Ditto.
16483 (vec_pack_trunc_v4hi: Ditto.
16484 (vec_pack_trunc_v2si): Ditto.
16485 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16486 (vec_interleave_highv8qi): Ditto.
16488 (vec_extract_oddv8qi): Ditto.
16489 (vec_interleave_lowv4hi): Ditto.
16490 (vec_interleave_highv4hi): Ditto.
16491 (vec_interleave_lowv2si): Ditto.
16492 (vec_interleave_highv2si): Ditto.
16494 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16496 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16497 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16498 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16499 (pa_c_mode_for_suffix): New.
16500 (TARGET_EXPAND_BUILTIN): Define.
16501 (TARGET_C_MODE_FOR_SUFFIX): Define.
16502 (pa_builtins): Define.
16503 (pa_init_builtins): Register __float128 type and init new support
16505 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16506 * config/pa/quadlib.c (_U_Qfcopysign): New.
16508 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16510 PR middle-end/46894
16511 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16512 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16515 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16517 PR tree-optimization/47179
16518 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16519 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16521 2011-01-18 Richard Guenther <rguenther@suse.de>
16523 PR rtl-optimization/47216
16524 * emit-rtl.c: Include tree-flow.h.
16525 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16526 of replicating it with different semantics.
16527 * Makefile.in (emit-rtl.o): Adjust.
16529 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16531 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16532 (cortex_a9_dp): Handle neon types correctly.
16534 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16536 PR rtl-optimization/47299
16537 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16538 subtarget. Use normal multiplication if both operands are constants.
16539 * expmed.c (expand_widening_mult): Don't try to optimize constant
16540 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16543 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16545 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16546 spacing after 'e.g.', typos, comma, hyphenation.
16548 2011-01-17 Richard Henderson <rth@redhat.com>
16550 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16551 (rx_restricted_mem_operand): New.
16552 (rx_shift_operand): Use register_operand.
16553 (rx_source_operand, rx_compare_operand): Likewise.
16554 * config/rx/rx.md (addsi3_flags): New expander.
16555 (adddi3): Rewrite as expander.
16556 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16557 (subsi3_flags): New expander.
16558 (subdi3): Rewrite as expander.
16559 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16561 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16562 (rx_init_builtins): Remove sat builtin.
16563 (rx_expand_builtin): Likewise.
16564 * config/rx/rx.md (ssaddsi3): New.
16565 (*sat): Rename from sat. Represent the CC_REG input.
16567 * config/rx/predicates.md (rshift_operator): New.
16568 * config/rx/rx.c (rx_expand_insv): Remove.
16569 * config/rx/rx-protos.h: Update.
16570 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16571 operand to the canonical position.
16572 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16573 (*bitclr, *bitclr_in_memory): Similarly.
16574 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16575 (insv): Retain the zero_extract in the expansion.
16577 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16578 (bswaphi2, bitinvert, revw): Likewise.
16580 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16581 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16582 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16583 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16584 (bitset, bitset_in_memory): Likewise.
16585 (bitinvert, bitinvert_in_memory): Likewise.
16586 (bitclr, bitclr_in_memory): Likewise.
16587 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16588 (rx_strend, rx_cmpstrn): Likewise.
16589 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16590 (bitop peep2 patterns): Remove.
16592 * config/rx/rx.c (rx_match_ccmode): New.
16593 * config/rx/rx-protos.h: Update.
16594 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16595 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16596 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16597 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16598 (fix_truncsfsi2, floatsisf2): Likewise.
16599 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16600 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16601 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16602 (*subsi3_flags, *xorsi3_flags): New.
16604 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16606 * config/rx/rx.c (rx_print_operand): Remove workaround for
16607 unsplit comparison operations.
16609 * config/rx/rx.md (movsicc): Split after reload.
16610 (*movsicc): Merge *movsieq and *movsine via match_operator.
16611 (*stcc): New pattern.
16613 * config/rx/rx.c (rx_float_compare_mode): Remove.
16614 * config/rx/rx.h (rx_float_compare_mode): Remove.
16615 * config/rx/rx.md (cstoresi4): Split after reload.
16616 (*sccc): New pattern.
16618 * config/rx/predicates.md (label_ref_operand): New.
16619 (rx_z_comparison_operator): New.
16620 (rx_zs_comparison_operator): New.
16621 (rx_fp_comparison_operator): New.
16622 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16623 Validate that the flags are set properly for the comparison.
16624 (rx_gen_cond_branch_template): Remove.
16625 (rx_cc_modes_compatible): Remove.
16626 (mode_from_flags): New.
16627 (flags_from_code): Rename from flags_needed_for_conditional.
16628 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16629 (rx_select_cc_mode): Likewise.
16630 (rx_split_fp_compare): New.
16631 (rx_split_cbranch): New.
16632 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16633 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16634 (*cbranchsf4): Similarly.
16635 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16636 match_operator and rx_split_cbranch.
16637 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16638 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16639 (*cmpsi): Rename from cmpsi.
16640 (*tstsi): Rename from tstsi.
16641 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16642 (*conditional_branch): Rename from conditional_branch.
16643 (*reveresed_conditional_branch): Remove.
16644 (b<code>): Remove expander.
16645 * config/rx/rx-protos.h: Update.
16647 * config/rx/rx.c (rx_compare_redundant): Remove.
16648 * config/rx/rx.md (cmpsi): Don't use it.
16649 * config/rx/rx-protos.h: Update.
16651 * config/rx/rx-modes.def (CC_F): New mode.
16652 * config/rx/rx.c (rx_select_cc_mode): New.
16653 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16654 * config/rx/rx-protos.h: Update.
16656 2011-01-17 Richard Henderson <rth@redhat.com>
16658 * except.c (dump_eh_tree): Fix stray ; after for statement.
16660 2011-01-17 Richard Guenther <rguenther@suse.de>
16662 PR tree-optimization/47313
16663 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16664 handling before copying the body. Properly deal with
16665 by-reference result in SSA form.
16667 2011-01-17 Ian Lance Taylor <iant@google.com>
16670 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16671 (struct_value_alias_set): Don't define.
16672 (sparc_option_override): Don't set sparc_sr_alias_set and
16673 struct_value_alias_set.
16674 (save_or_restore_regs): Use gen_frame_mem rather than calling
16676 (sparc_struct_value_rtx): Likewise.
16678 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16681 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16682 (_mm_maskstore_pd): Likewise.
16683 (_mm_maskload_ps): Likewise.
16684 (_mm_maskstore_ps): Likewise.
16685 (_mm256_maskload_pd): Change mask to __m256i.
16686 (_mm256_maskstore_pd): Likewise.
16687 (_mm256_maskload_ps): Likewise.
16688 (_mm256_maskstore_ps): Likewise.
16690 * config/i386/i386-builtin-types.def: Updated.
16691 (ix86_expand_special_args_builtin): Likewise.
16693 * config/i386/i386.c (bdesc_special_args): Update
16694 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16695 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16696 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16697 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16699 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16700 Use <avxpermvecmode> on mask register.
16701 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16703 2011-01-17 Olivier Hainque <hainque@adacore.com>
16704 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16705 Eric Botcazou <ebotcazou@adacore.com>
16708 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16709 if <= USHRT_MAX in 32-bit mode.
16711 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16713 * doc/install.texi (Configuration, Specific): Wrap long
16714 lines in examples. Allow line wrapping in long options
16715 and URLs where beneficial for PDF output.
16717 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16719 * config/mips/mips.c (mips_classify_symbol): Don't return
16720 SYMBOL_PC_RELATIVE for nonlocal labels.
16722 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16724 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16726 2011-01-15 Jan Hubicka <jh@suse.cz>
16728 PR tree-optimization/47276
16729 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16730 declarations as needed.
16732 2011-01-15 Martin Jambor <mjambor@suse.cz>
16734 * common.opt (fdevirtualize): New flag.
16735 * doc/invoke.texi (Option Summary): Document it.
16736 * opts.c (default_options_table): Add devirtualize flag.
16737 * ipa-prop.c (detect_type_change): Return immediately if
16738 devirtualize flag is not set.
16739 (detect_type_change_ssa): Likewise.
16740 (compute_known_type_jump_func): Likewise.
16741 (ipa_analyze_virtual_call_uses): Likewise.
16743 2011-01-14 Martin Jambor <mjambor@suse.cz>
16745 PR tree-optimization/45934
16746 PR tree-optimization/46302
16747 * ipa-prop.c (type_change_info): New type.
16748 (stmt_may_be_vtbl_ptr_store): New function.
16749 (check_stmt_for_type_change): Likewise.
16750 (detect_type_change): Likewise.
16751 (detect_type_change_ssa): Likewise.
16752 (compute_complex_assign_jump_func): Check for dynamic type change.
16753 (compute_complex_ancestor_jump_func): Likewise.
16754 (compute_known_type_jump_func): Likewise.
16755 (compute_scalar_jump_functions): Likewise.
16756 (ipa_analyze_virtual_call_uses): Likewise.
16757 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16759 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16761 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16762 * config/i386/i386.opt (msse5): New Alias.
16764 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16766 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16767 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16768 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16769 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16771 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16773 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16775 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16776 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16777 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16778 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16780 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16782 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16784 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16786 2011-01-14 Mike Stump <mikestump@comcast.net>
16788 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16789 * config/fr30/fr30.md: Likweise
16790 (movsi_push): Likewise.
16791 (movsi_pop): Likewise.
16792 (enter_func): Likewise.
16793 * config/moxie/moxie.md (movsi_push): Likewise.
16794 (movsi_pop): Likewise.
16796 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16798 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16799 %{no_archive} %{exact_version}.
16800 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16801 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16802 %{no_archive} %{exact_version}.
16803 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16804 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16805 * config/mips/vxworks.h: Likewise.
16807 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16809 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16811 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16813 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16814 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16816 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16818 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16821 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16823 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16825 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16826 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16828 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16829 Don't handle -shlib.
16831 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16833 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16834 (CC1_SPEC): Don't handle -profile.
16836 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16838 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16839 * config/mips/mips.h (CC1_SPEC): Likewise.
16841 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16843 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16844 * config/mips/mips.h (CC1_SPEC): Likewise.
16846 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16848 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16849 * config/m32r/linux.h (LINK_SPEC): Likewise.
16850 * config/mips/linux.h (LINK_SPEC): Likewise.
16851 * config/mips/linux64.h (LINK_SPEC): Likewise.
16852 * config/sparc/linux.h (LINK_SPEC): Likewise.
16853 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16854 LINK_SPEC): Likewise.
16855 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16857 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16859 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16861 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16863 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16865 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16866 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16868 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16870 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16872 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16874 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16875 supports -Bstatic/-Bdynamic.
16876 * configure: Regenerate.
16878 2011-01-14 Jan Hubicka <jh@suse.cz>
16879 Jack Howarth <howarth@bromo.med.uc.edu>
16882 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16883 when checking debug_info_level. Test write_symbols instead of
16884 debug_hooks->var_location when setting flag_var_tracking_uninit.
16886 2011-01-14 Richard Guenther <rguenther@suse.de>
16888 PR tree-optimization/47179
16889 * target.def (ref_may_alias_errno): New target hook.
16890 * targhooks.h (default_ref_may_alias_errno): Declare.
16891 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16892 (default_ref_may_alias_errno): New function.
16893 * target.h (struct ao_ref_s): Declare.
16894 * tree-ssa-alias.c: Include target.h.
16895 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16896 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16897 (targhooks.o): Likewise.
16898 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16899 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16901 2011-01-14 Richard Guenther <rguenther@suse.de>
16903 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16905 2011-01-14 Richard Guenther <rguenther@suse.de>
16907 PR tree-optimization/47280
16908 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16909 return CFG changes.
16910 (tree_ssa_forward_propagate_single_use_vars): Deal with
16911 CFG changes from associate_plusminus.
16913 2011-01-14 Richard Guenther <rguenther@suse.de>
16915 PR middle-end/47281
16917 2011-01-11 Richard Guenther <rguenther@suse.de>
16919 PR tree-optimization/46076
16920 * tree-ssa.c (useless_type_conversion_p): Conversions from
16921 unprototyped to empty argument list function types are useless.
16923 2011-01-14 Richard Guenther <rguenther@suse.de>
16925 PR tree-optimization/47286
16926 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16928 2011-01-14 Martin Jambor <mjambor@suse.cz>
16930 PR middle-end/46823
16931 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16933 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16935 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16936 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16937 * config/xtensa/xtensa.c (xtensa_libcall_value,
16938 xtensa_function_value_regno_p): New functions.
16939 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16941 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16944 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16946 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16947 New function prototype.
16948 * config/i386/winnt.c (i386_pe_assemble_visibility):
16949 Warn only if attribute was specified by user.
16951 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16954 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16956 (floatunsdidf2_fcfidu): Ditto.
16958 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16960 * config/s390/s390.c (print_operand_address): Replace 'error' with
16961 'output_operand_lossage'.
16962 (print_operand): Likewise.
16964 2011-01-13 Jeff Law <law@redhat.com>
16966 PR rtl-optimization/39077
16967 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16968 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16969 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16970 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16971 * gcse.c (prune_insertions_deletions): New function.
16972 (compute_pre_data): Use it.
16974 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16977 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16979 (prune_unused_types_mark): Use it.
16981 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16983 PR rtl-optimization/45352
16984 * sel-sched.c: Update copyright years.
16985 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16986 in the advancing loop when we have issued issue_rate insns.
16988 2011-01-12 Richard Henderson <rth@redhat.com>
16990 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16991 (TARGET_MD_ASM_CLOBBERS): New.
16993 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16994 (TARGET_DELEGITIMIZE_ADDRESS): New.
16996 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16997 (clzsi2, *bsch): New patterns.
16999 * config/mn10300/mn10300.md (INT): New mode iterator.
17000 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17002 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17003 flag_split_wide_types.
17005 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17006 (mn10300_trampoline_init): Rewrite without a template, an immediate
17007 load and a direct branch.
17008 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17010 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17012 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17013 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17014 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17015 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17017 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17020 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17023 2011-01-12 Jan Hubicka <jh@suse.cz>
17026 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17027 (PLUGIN_COND_CLOSE): New macro.
17028 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17030 2011-01-12 Richard Guenther <rguenther@suse.de>
17033 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17034 register variables in a MEM_REF.
17036 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17038 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17039 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17040 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17041 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17042 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17043 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17044 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17045 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17046 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17047 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17048 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17049 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17050 * config/gnu-user.h: New. Copied from linux.h.
17051 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17052 GNU_USER_TARGET_STARTFILE_SPEC.
17053 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17054 GNU_USER_TARGET_ENDFILE_SPEC.
17055 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17056 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17057 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17058 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17059 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17060 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17061 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17062 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17063 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17064 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17065 * config/arm/linux-eabi.h (CC1_SPEC): Use
17066 GNU_USER_TARGET_CC1_SPEC.
17067 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17068 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17069 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17070 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17071 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17072 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17073 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17074 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17076 2011-01-12 Richard Guenther <rguenther@suse.de>
17079 * doc/invoke.texi (ffast-math): Document it is turned on
17082 2011-01-12 Jan Hubicka <jh@suse.cz>
17084 PR tree-optimization/47233
17085 * opts.c (common_handle_option): Disable ipa-reference with profile
17088 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17090 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17093 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17095 * c-parser.c (c_lex_one_token): Updated and reindented some
17096 comments. No changes in code.
17098 2011-01-11 Ian Lance Taylor <iant@google.com>
17100 * godump.c (go_output_var): Don't output the variable if there is
17101 already a type with the same name.
17103 2011-01-11 Ian Lance Taylor <iant@google.com>
17105 * godump.c (go_format_type): Don't generate float80.
17107 2011-01-11 Richard Henderson <rth@redhat.com>
17109 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17110 declaration. Rewrite for both speed and size.
17111 (mn10300_address_cost_1): Remove.
17112 (mn10300_register_move_cost): New.
17113 (mn10300_memory_move_cost): New.
17114 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17115 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17116 extensions, shifts, BSWAP, CLZ.
17117 (mn10300_wide_const_load_uses_clr): Remove.
17118 (TARGET_REGISTER_MOVE_COST): New.
17119 (TARGET_MEMORY_MOVE_COST): New.
17120 * config/mn10300/mn10300-protos.h: Update.
17121 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17123 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17124 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17125 * config/mn10300/mn10300-protos.h: Update.
17126 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17127 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17128 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17129 (*test_int_bitfield, *test_byte_bitfield): Remove.
17130 (*bit_test, *subreg_bit_test): Remove.
17131 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17133 * config/mn10300/constraints.md ("c"): Rename from "A".
17134 ("A", "D"): New constraint letters.
17135 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17136 (fmssf4, fnmasf4, fnmssf4): Likewise.
17138 * config/mn10300/mn10300.md (isa): New attribute.
17139 (enabled): New attribute.
17141 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17142 (abssf2, negsf2): Define only for hardware fp.
17143 (sqrtsf2): Reformat.
17144 (addsf3, subsf3, mulsf3): Merge expander and insn.
17146 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17147 (DEBUGGER_AUTO_OFFSET): Remove.
17148 (DEBUGGER_ARG_OFFSET): Remove.
17150 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17151 Emit register stores with the same offsets as the hardware.
17152 (mn10300_store_multiple_operation): Don't check that the register
17153 save offsets are monotonic.
17154 * config/mn10300/mn10300-protos.h: Update.
17156 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17158 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17159 in terms of the value on the stack, not the MDR register.
17161 2011-01-11 Jan Hubicka <jh@suse.cz>
17165 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17166 (symbol_alias_set_destroy, symbol_alias_set_contains,
17167 propagate_aliases_backward): Declare.
17168 * lto-streamer-out.c (struct sets): New sturcture.
17169 (trivally_defined_alias): New function.
17170 (output_alias_pair_p): Rewrite.
17171 (output_unreferenced_globals): Fix output of alias pairs.
17172 (produce_symtab): Likewise.
17173 * ipa.c (function_and_variable_visibility): Set weak alias destination
17175 * varasm.c (symbol_alias_set_t): Remove.
17176 (symbol_alias_set_destroy): Export.
17177 (propagate_aliases_forward, propagate_aliases_backward): New functions
17179 (compute_visible_aliases): ... this one; remove.
17180 (trivially_visible_alias): New
17181 (trivially_defined_alias): New.
17182 (remove_unreachable_alias_pairs): Rewrite.
17183 (finish_aliases_1): Reorganize code checking if alias is defined.
17184 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17187 2011-01-11 Richard Guenther <rguenther@suse.de>
17189 PR tree-optimization/46076
17190 * tree-ssa.c (useless_type_conversion_p): Conversions from
17191 unprototyped to empty argument list function types are useless.
17193 2011-01-11 Richard Guenther <rguenther@suse.de>
17195 PR middle-end/45235
17196 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17197 volatile MEMs as MEM_READONLY_P.
17199 2011-01-11 Richard Guenther <rguenther@suse.de>
17201 PR tree-optimization/47239
17202 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17204 2011-01-11 Jeff Law <law@redhat.com>
17206 PR tree-optimization/47086
17207 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17208 IVs from statements that might throw.
17210 2011-01-10 Jan Hubicka <jh@suse.cz>
17213 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17215 2011-01-10 Jan Hubicka <jh@suse.cz>
17218 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17219 when correcting profile.
17221 2011-01-10 Jan Hubicka <jh@suse.cz>
17224 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17225 DECL_FINI_PRIORITY.
17226 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17227 Restore DECL_FINI_PRIORITY.
17229 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17231 * doc/gimple.texi: Fix quoting of multi-word return values in
17232 @deftypefn statements. Ensure presence of return value. Wrap
17233 overlong @deftypefn lines.
17234 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17235 descriptions of removed functions.
17236 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17237 of multi-word return value in @deftypefn statement.
17239 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17241 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17242 (Conditional Expressions, Logical Operators)
17243 (Statement and operand traversals): Do not indent smallexample
17244 code. Fix duplicate function argument in example.
17246 2011-01-10 Jeff Law <law@redhat.com>
17248 PR tree-optimization/47141
17249 * ipa-split.c (split_function): Handle case where we are
17250 returning a value and the return block has a virtual operand phi.
17252 2011-01-10 Jan Hubicka <jh@suse.cz>
17254 PR tree-optimization/47234
17255 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17256 (pass_feedback_split_functions): Declare.
17257 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17259 * ipa-split.c (gate_split_functions): Update comments; disable
17260 split-functions for profile_arc_flag and branch_probabilities.
17261 (gate_feedback_split_functions): New function.
17262 (execute_feedback_split_functions): New function.
17263 (pass_feedback_split_functions): New global var.
17265 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17268 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17269 calling gimple_call_set_cannot_inline.
17271 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17273 * config/darwin-sections.def: Remove unused section.
17275 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17278 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17280 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17283 * c-parser.c (c_parser_declaration_or_fndef): Improved
17286 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17288 * config/i386/winnt.c (i386_pe_start_function): Make sure
17289 to switch back to function's section.
17291 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17295 * plugin.c: Move include of dlfcn.h from here...
17296 * system.h: ... to here.
17298 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17300 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17302 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17303 two extra empty pages in PDF output.
17305 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17308 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17309 for error recovery purposes behave as if it was not specified so
17310 that the default type is usd.
17312 2011-01-07 Jan Hubicka <jh@suse.cz>
17314 PR tree-optmization/46469
17315 * ipa.c (function_and_variable_visibility): Clear needed flags on
17316 nodes with external decls; handle weakrefs merging correctly.
17318 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17320 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17323 2011-01-07 Jan Hubicka <jh@suse.cz>
17325 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17326 and no longer claim that gold is required for linker plugin.
17327 * configure: Regenerate.
17328 * gcc.c (PLUGIN_COND): New macro.
17329 (LINK_COMMAND_SPEC): Use it.
17330 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17331 * config.in (HAVE_LTO_PLUGIN): New.
17332 * configure.ac (--with-lto-plugin): New parameter; autodetect
17335 2011-01-07 Jan Hubicka <jh@suse.cz>
17337 PR tree-optimization/46367
17338 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17339 when we can update original.
17340 (cgraph_mark_inline_edge): Sanity check.
17341 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17343 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17345 * config/spu/spu.h (ASM_COMMENT_START): Define.
17347 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17350 * gcc.c (%>S): New.
17351 (SWITCH_KEEP_FOR_GCC): Likewise.
17352 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17353 (do_spec_1): Handle "%>".
17355 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17357 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17360 * config/i386/i386.c (ix86_delegitimize_address): If
17361 simplify_gen_subreg fails, return orig_x.
17364 * value-prof.c (gimple_stringop_fixed_value): Handle
17365 lhs of the call properly.
17367 2011-01-07 Jan Hubicka <jh@suse.cz>
17370 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17372 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17374 * target.def (function_switched_text_sections): New hook.
17375 * doc/tm.texi: Regenerated.
17376 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17377 * final.c (default_function_switched_text_sections): New.
17378 (final_scan_insn): Call function_switched_text_sections when a
17379 mid-function section change occurs.
17380 * output.h (default_function_switched_text_sections): Declare.
17381 * config/darwin-protos.h (darwin_function_switched_text_sections):
17383 * config/darwin.c (darwin_function_switched_text_sections): New.
17384 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17386 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17388 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17389 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17390 the secondary code fragment when outputting for DWARF == 2.
17392 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17394 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17395 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17397 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17398 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17400 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17403 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17404 when it is not empty.
17406 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17409 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17410 (case ${target}): Add btver1.
17411 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17412 -march=native recognize btver1 processors.
17413 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17414 btver1 def_and_undef
17415 * config/i386/i386.c (struct processor_costs btver1_cost): New
17417 (m_BTVER1): New definition.
17418 (m_AMD_MULTIPLE): Includes m_BTVER1.
17419 (initial_ix86_tune_features): Add btver1 tune.
17420 (processor_target_table): Add btver1 entry.
17421 (static const char *const cpu_names): Add btver1 entry.
17422 (software_prefetching_beneficial_p): Add btver1.
17423 (ix86_option_override_internal): Add btver1 instruction sets.
17424 (ix86_issue_rate): Add btver1.
17425 (ix86_adjust_cost): Add btver1.
17426 * config/i386/i386.h (TARGET_BTVER1): New definition.
17427 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17428 (enum processor_type): Add PROCESSOR_BTVER1.
17429 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17431 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17434 * config/i386/i386.c (legitimize_tls_address)
17435 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17436 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17437 (tls_initial_exec_64_sun): New pattern.
17439 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17441 * doc/invoke.texi (Overall Options): Improve wording and markup
17442 of the description of -wrapper.
17444 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17446 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17447 rdynamic, threads): New Driver options.
17449 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17452 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17453 if coming from .tdata.
17454 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17456 2011-01-06 Jan Hubicka <jh@suse.cz>
17459 * collect2.c (main): Do not enable LTOmode when plugin is active.
17461 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17464 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17465 --version output if supported.
17466 * configure: Regenerate.
17468 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17470 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17473 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17476 * c-convert.c (convert): When converting a complex expression
17477 other than COMPLEX_EXPR to a different complex type, ensure
17478 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17479 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17480 when converting COMPLEX_TYPE.
17482 2011-01-06 Ira Rosen <irar@il.ibm.com>
17484 PR tree-optimization/47139
17485 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17486 only the last reduction value is used outside the loop. Update
17489 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17491 * config/rtems.opt: New.
17492 * config.gcc (*-*-rtems*): Use rtems.opt.
17494 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17496 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17497 processors do not support 3DNow instructions.
17499 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17501 * config/spu/spu.c (spu_option_override): Set parameter
17502 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17504 2011-01-05 Jan Hubicka <jh@suse.cz>
17506 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17507 at the command line.
17509 2011-01-05 Martin Jambor <mjambor@suse.cz>
17512 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17513 deltas on streamed outgoing edges.
17514 (output_node_opt_summary): Output info for outgoing edges only when
17515 the node is in new parameter set.
17516 (output_cgraph_opt_summary): New parameter set, passed to the two
17517 aforementioned functions. Update its forward declaration and its
17520 2011-01-05 Tom Tromey <tromey@redhat.com>
17522 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17523 operator to c_finish_omp_atomic.
17524 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17525 (build_unary_op): Update.
17526 (build_modify_expr): Update.
17527 (build_asm_expr): Update.
17529 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17531 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17532 newly inserted insns.
17533 (pad_bb): Likewise.
17534 (spu_emit_branch_hint): Likewise.
17535 (insert_hbrp_for_ilb_runout): Likewise.
17536 (spu_machine_dependent_reorg): Call df_finish_pass after
17537 schedule_insns returns.
17539 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17541 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17543 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17545 PR tree-optimization/47005
17546 * tree-sra.c (struct access): Add 'non_addressable' bit.
17547 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17548 (decide_one_param_reduction): Return 0 if the parameter is passed by
17549 reference and one of the accesses in the group is non_addressable.
17551 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17553 PR tree-optimization/47056
17554 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17555 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17556 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17558 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17560 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17561 initializer. Skip view conversions from aggregate types.
17563 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17566 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17568 2011-01-04 Philipp Thomas <pth@suse.de>
17570 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17573 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17575 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17576 on empty epilogue sequences.
17578 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17580 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17581 non-static): New Driver options.
17583 2011-01-04 Jie Zhang <jie@codesourcery.com>
17586 * gcc.c (default_compilers[]): Set combinable field to 0
17587 for all assembly languages.
17589 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17591 * config/mips/loongson3a.md: New file.
17592 * config/mips/mips.md: Include loongson3a.md.
17593 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17596 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17598 PR middle-end/47017
17599 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17600 instead of convert_memory_address_addr_space on the base expression.
17602 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17604 * config/spu/spu.c (spu_option_override): Update error text
17605 for bad -march= / -mtune= values.
17607 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17609 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17610 if branch-hint optimization will be performed.
17612 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17614 PR tree-optimization/47148
17615 * ipa-split.c (split_function): Convert arguments to
17616 DECL_ARG_TYPE if possible.
17618 PR tree-optimization/47155
17619 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17620 when computing uns.
17622 PR rtl-optimization/47157
17623 * combine.c (try_combine): If undobuf.other_insn becomes
17624 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17625 and set *new_direct_jump_p too.
17627 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17629 PR tree-optimization/47021
17630 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17632 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17634 * gcc.c (process_command): Update copyright notice dates.
17635 * gcov.c (print_version): Likewise.
17636 * gcov-dump.c (print_version): Likewise.
17637 * mips-tfile.c (main): Likewise.
17638 * mips-tdump.c (main): Likewise.
17640 2011-01-03 Martin Jambor <mjambor@suse.cz>
17642 PR tree-optimization/46801
17643 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17644 aggregate fields start at byte boundary instead of the bit-field flag.
17646 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17649 * gcc.c (main): Revert revision 168407.
17651 2011-01-03 Martin Jambor <mjambor@suse.cz>
17653 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17655 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17657 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17658 vector optab to expand vector/scalar shift, update gimple to vector.
17660 2011-01-03 Martin Jambor <mjambor@suse.cz>
17662 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17665 2011-01-03 Martin Jambor <mjambor@suse.cz>
17667 PR tree-optimization/46984
17668 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17670 (cgraph_create_indirect_edge): Fixed line length.
17671 (cgraph_indirect_call_info): Declare.
17672 (cgraph_make_edge_direct) Update declaration.
17673 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17674 (cgraph_create_indirect_edge): Use it.
17675 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17677 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17678 the new thunk_delta representation.
17679 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17681 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17682 (ipa_read_indirect_edge_info): Likewise.
17683 * lto-cgraph.c (output_edge_opt_summary): New function.
17684 (output_node_opt_summary): Call it on all outgoing edges.
17685 (input_edge_opt_summary): New function.
17686 (input_node_opt_summary): Call it on all outgoing edges.
17688 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17691 * gcc.c (main): Don't check have_o when settting combine_inputs.
17693 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17695 * regrename.c: Add general comment describing the pass.
17696 (struct du_head): Remove 'length' field.
17697 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17698 (regrename_optimize): Do not sort chains. Rework comments, add others.
17699 Force renaming to the preferred class (if any) in the first pass and do
17700 not consider registers that belong to it in the second pass.
17701 (create_new_chain): Do not set 'length' field.
17702 (scan_rtx_reg): Likewise.
17704 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17706 PR tree-optimization/47140
17707 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17708 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17709 to bit_value_binop.
17711 PR rtl-optimization/47028
17712 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17713 parm_birth_insn instead of at the beginning of first bb.
17715 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17717 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17718 Remove the word "see" before "@pxref".
17719 * doc/rtl.texi: Remove the word "see" before "@pxref".
17721 2011-01-01 Jan Hubicka <jh@suse.cz>
17723 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17726 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17729 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17732 Copyright (C) 2011 Free Software Foundation, Inc.
17734 Copying and distribution of this file, with or without modification,
17735 are permitted in any medium without royalty provided the copyright
17736 notice and this notice are preserved.