1 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
4 condition to disallow non-identical memory locations.
5 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
6 preference to bit manipulation instructions.
7 * gcc.dg/h8300-bit-insn-ice2.2: New testcase.
9 2011-06-13 Jan Hubicka <jh@suse.cz>
11 * cgraph.c (cgraph_for_node_thunks_and_aliases,
12 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
13 (nonremovable_p): New function.
14 (cgraph_can_remove_if_no_direct_calls_p): New function.
15 (used_from_object_file_p): New functoin.
16 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for references
18 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
19 * ipa-inline.c (check_caller_edge): New function.
20 (want_inline_function_called_once_p): Use it; accept aliases called once, too.
21 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
23 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26 * config/arm/neon.md (vec_pack_trunc): Set the lengths
27 correctly for the case with Quad vectors.
29 2011-06-13 Jakub Jelinek <jakub@redhat.com>
30 Ira Rosen <ira.rosen@linaro.org>
32 PR tree-optimization/49352
33 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
34 all, make sure loop_use_stmt after the loop is a def stmt of a used
35 SSA_NAME that is the only one defined inside of the loop. Don't
36 check for COND_EXPR and GIMPLE_BINARY_RHS.
37 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
38 check_reduction is true.
40 2011-06-11 Jan Hubicka <jh@suse.cz>
43 * ipa.c (cgraph_externally_visible_p): Check resolution info.
45 2011-06-11 Jan Hubicka <jh@suse.cz>
48 * ipa-inline-transform.c: Include tree-pass.h
49 (inline_transform): Set TODO_update_ssa_only_virtuals.
50 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
52 2011-06-11 Jan Hubicka <jh@suse.cz>
55 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
58 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
60 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
61 Take number of iterations to peel into account for equally frequent
64 2011-06-11 Jan Hubicka <jh@suse.cz>
66 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
69 2011-06-11 Jan Hubicka <jh@suse.cz>
71 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying args.
72 (ipa_update_after_lto_read): Likewise.
73 (ipa_write_node_info): Do not sream call_with_var_arguments.
74 (ipa_read_node_info): Likewise.
76 2011-06-11 Jan Hubicka <jh@suse.cz>
78 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
80 2011-06-11 Jan Hubicka <jh@suse.cz>
82 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
83 (lto_symtab_resolve_can_prevail_p): Likewise.
84 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
85 * cgraph.c (same_body_aliases_done): New global var.
86 (cgraph_same_body_alias_1): Rename to ...
87 (cgraph_create_function_alias): ... this one; reorg to new
89 (cgraph_same_body_alias): Use cgraph_create_function_alias;
90 record references when asked to.
91 (cgraph_add_thunk): Fix formating.
92 (cgraph_get_node): Kill same body alias code.
93 (cgraph_node_for_asm): Likewise.
94 (cgraph_remove_same_body_alias): Remove.
95 (cgraph_remove_node): Kill same body alias code.
96 (cgraph_mark_address_taken_node): Mark also the aliased function
97 as having address taken.
98 (dump_cgraph_node): Dump same body aliases.
99 (cgraph_for_node_thunks_and_aliases): Update for new alias
101 (cgraph_for_node_and_aliases): Likewise.
102 * cgraph.h (same_body): Kll pointer.
103 (same_body_alias): Update comment.
104 (same_body_aliases_done): Declare.
105 (cgraph_remove_same_body_alias): Remove declaration.
106 (cgraph_create_function_alias): Declare.
107 (cgraph_process_same_body_aliases): Declare.
108 (cgraph_function_with_gimple_body_p): Check for alias.
109 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
110 (cgraph_alias_aliased_node): New function.
111 (cgraph_function_node): Update for new aliases.
112 (cgraph_function_or_thunk_node): Likewise.
113 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
114 (inline_call): Remove dead aliases.
115 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler name
116 hack for same body aliases.
117 (clone_of_p): Look through aliases.
118 (verify_cgraph_node): Verify aliases.
119 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
120 (cgraph_process_same_body_aliases): New function.
121 (process_function_and_variable_attributes): Disable weakref warning on
123 (cgraph_analyze_functions): Handle aliases.
124 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
125 (assemble_thunks): Rename to ...
126 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
127 (cgraph_expand_function): Remove alias output code.
128 (cgraph_output_in_order): Skip aliases.
129 (cgraph_preserve_function_body_p): Aliases don't need preserving.
130 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
131 (ipa_record_reference): Do not assert on alias references.
132 (ipa_ref_has_aliases_p): New function.
133 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
134 (ipa_ref_has_aliases_p): Declare.
135 * lto-cgraph.c (lto_output_node): Handle aliases.
136 (input_node): Likewise.
137 * lto-streamer-out.c (lto_output): Skip aliases.
138 (produce_symtab): Kill same_body_alias code.
139 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
140 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
141 * ipa-inline.c (update_caller_keys): Walk aliases.
142 (inline_small_functions): Fix thinko in previous patch.
143 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
144 (function_and_variable_visibility): Do not walk same body aliases.
145 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
146 (ipa_pta_execute): Use it.
148 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
150 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
151 (*vec_dupv2df): Rename from vec_dupv2df.
152 (vec_dupv2df): New expander.
154 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
156 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
158 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
160 * config/i386/i386.md: Use default value in "isa" attribute.
161 * config/i386/sse.md: Ditto.
162 * config/i386/mmx.md: Ditto.
164 2011-06-10 Wei Guozhi <carrot@google.com>
167 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
168 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
169 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
171 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
173 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
174 (arm_legitimate_ldrd_p): New prototype.
175 (arm_output_ldrd): New prototype.
176 * config/arm/arm.c (arm_check_ldrd_operands): New function.
177 (arm_legitimate_ldrd_p): New function.
178 (arm_output_ldrd): New function.
180 2011-06-10 David Li <davidxl@google.com>
182 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
183 * passes.c (passr_eq): New function.
184 (create_pass_tab): New function.
185 (pass_traverse): New function.
186 (dump_one_pass): New function.
187 (dump_pass_list): New function.
188 (dump_passes): New function.
190 2011-06-10 Jan Hubicka <jh@suse.cz>
192 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
193 setting the nothrow flag.
194 * ipa-reference.c (propagate): Skip aliases.
195 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
196 (propagate_nothrow): Skip aliases; do not update cgraph.
197 (local_pure_const): Do not update cgraph.
198 * tree-profile.c (tree_profiling): Do fixup_cfg.
200 2011-06-10 Jan Hubicka <jh@suse.cz>
202 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
203 (cgraph_local_node_p): ... here; handle aliases.
204 (has_addr_references_p): Break out from ...;
205 (cgraph_remove_unreachable_nodes) ... here.
207 2011-06-10 Jan Hubicka <jh@suse.cz>
209 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
210 * common.opt (flag_inline_functions_called_once): Do not
213 2011-06-10 Jan Hubicka <jh@suse.cz>
215 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
216 (ipcp_initialize_node_lattices): Do not deal with aliases;
217 Do not try to propagate through thunks.
218 (ipcp_change_tops_to_bottom): Do not deal with aliases.
220 2011-06-10 Jan Hubicka <jh@suse.cz>
222 * ipa-prop.c (ipa_write_node_info): Stream jump functions
224 (ipa_read_node_info): Likewise.
226 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
229 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
230 (build_and_insert_call): Likewise.
231 (build_and_insert_ref): New.
232 (gimple_expand_builtin_pow): Minor cleanup.
233 (gimple_expand_builtin_cabs): New.
234 (execute_cse_sincos): Add case for BUILT_IN_CABS.
236 2011-06-10 Jan Hubicka <jh@suse.cz>
238 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
239 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
240 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
241 (ipcp_propagate_stage): Skip aliases when propagating.
242 (ipcp_need_redirect_p): Skip aliases.
243 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
244 collect_callers_of_node.
245 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
247 (ipa_compute_jump_functions): Look through aliases.
249 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
251 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
253 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
255 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
257 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
259 2011-06-10 Jan Hubicka <jh@suse.cz>
261 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
262 Update call of gimple_get_virt_method_for_binfo.
263 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
264 refuse_thunks parameter.
265 (gimple_fold_call): Update.
266 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
268 2011-06-10 Jan Hubicka <jh@suse.cz>
270 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
271 (not_all_callers_have_enough_arguments_p): ... this one; turn into
272 worker for cgraph_for_node_and_aliases.
273 (convert_callers_for_node): Break out from ...
274 (convert_callers): ... here.
275 (modify_function): Use collect_callers_of_node.
276 (ipa_early_sra): Use cgraph_for_node_and_aliases.
278 2011-06-10 Richard Guenther <rguenther@suse.de>
280 PR tree-optimization/49361
281 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
282 when not already in gimple form.
284 2011-06-10 Richard Guenther <rguenther@suse.de>
287 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
288 FOR_EACH_PHI_OR_STMT_USE.
290 2011-06-10 Jan Hubicka <jh@suse.cz>
292 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
293 (clone_inlined_nodes): ... here.
294 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
295 to real destination prior inlining.
296 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
297 can_early_inline_edge_p, want_early_inline_function_p,
298 want_early_inline_function_p, want_inline_small_function_p,
299 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
300 edge_badness, update_all_callee_keys, lookup_recursive_calls,
301 add_new_edges_to_heap, inline_small_functions, flatten_function,
302 inline_always_inline_functions, early_inline_small_functions): Use
303 cgraph_function_or_thunk_node.
304 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
305 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
306 (do_estimate_edge_growth_1): Break out from ...
307 (do_estimate_growth) ... here; walk aliases.
308 (inline_generate_summary): Skip aliases.
310 2011-06-10 Richard Guenther <rguenther@suse.de>
312 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
313 forward when combining, visit inserted stmts when a stmt was changed.
315 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
317 * tree.h (error_operand_p): Add.
318 * dbxout.c (dbxout_type_fields): Use the latter.
319 * c-decl.c (add_stmt): Likewise.
320 * gimplify.c (omp_add_variable, omp_notice_variable,
321 gimplify_scan_omp_clauses): Likewise.
323 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
325 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
326 when a value is actually passed in regs.
328 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
329 Laurent Rougé <laurent.rouge@menta.fr>
331 * doc/invoke.texi (SPARC options): Add -mflat.
332 * config/sparc/sparc.opt: Likewise.
333 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
334 (sparc_flat_expand_prologue): Declare.
335 (sparc_flat_expand_epilogue): Likewise.
336 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
337 (CPP_ENDIAN_SPEC): Replace with...
338 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
339 (CPP_SPEC): Adjust to above change.
340 (EXTRA_SPECS): Likewise.
341 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
342 (INCOMING_REGNO): Likewise.
343 (OUTGOING_REGNO): Likewise.
344 (LOCAL_REGNO): Likewise.
345 (SETUP_FRAME_ADDRESSES): Likewise.
346 (FIXED_REGISTERS): Set 0 for %fp.
347 (CALL_USED_REGISTERS): Likewise.
348 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
349 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
350 (RETURN_ADDR_REGNUM): Define.
351 (RETURN_ADDR_RTX): Use it.
352 (INCOMING_RETURN_ADDR_REGNUM): Define.
353 (INCOMING_RETURN_ADDR_RTX): Use it.
354 (DWARF_FRAME_RETURN_COLUMN): Likewise.
355 (EH_RETURN_REGNUM): Define.
356 (EH_RETURN_STACKADJ_RTX): Use it.
357 (EH_RETURN_HANDLER_RTX): Delete.
358 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
359 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
361 (struct machine_function): Add frame_size, apparent_frame_size,
362 frame_base_reg, frame_base_offset, n_global_fp_regs and
363 save_local_in_regs_p fields.
364 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
365 sparc_frame_base_offset, sparc_n_global_fp_regs,
366 sparc_save_local_in_regs_p): New macros.
367 (sparc_option_override): Error out if -fcall-saved-REG is specified
369 (eligible_for_restore_insn): Fix formatting.
370 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
371 (eligible_for_sibcall_delay): Likewise.
372 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
373 (sparc_legitimate_address_p): Adjust to above change.
374 (save_global_or_fp_reg_p): New predicate.
375 (return_addr_reg_needed_p): Likewise.
376 (save_local_or_in_reg_p): Likewise.
377 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
378 (SORR_SAVE, SORR_RESTORE): Delete.
379 (sorr_pred_t): New typedef.
380 (sorr_act_t): New enum.
381 (save_or_restore_regs): Rename to...
382 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
383 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
384 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
385 mechanism. Add CFI information for double-word saves in 32-bit mode.
386 (emit_adjust_base_to_offset): New function extracted from...
387 (emit_save_or_restore_regs): ...this. Rename the rest to...
388 (emit_save_or_restore_regs_global_fp_regs): ...this.
389 (emit_save_or_restore_regs_local_in_regs): New function.
390 (gen_create_flat_frame_[123]): New functions.
391 (sparc_expand_prologue): Use SIZE local variable. Adjust.
392 (sparc_flat_expand_prologue): New function.
393 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
394 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
395 (sparc_flat_expand_epilogue): New function.
396 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
397 (output_return): Likewise.
398 (output_sibcall): Likewise.
399 (sparc_output_mi_thunk): Likewise.
400 (sparc_frame_pointer_required): Likewise.
401 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
402 function optimization.
403 * config/sparc/sparc.md (flat): New attribute.
404 (prologue): Add TARGET_FLAT handling.
405 (save_register_window): Disable if TARGET_FLAT.
406 (create_flat_frame_[123]): New patterns.
407 (epilogue): Add TARGET_FLAT handling.
408 (sibcall_epilogue): Likewise.
409 (eh_return): New expander.
410 (eh_return_internal): New insn and splitter.
411 (return_internal): Add TARGET_FLAT handling.
412 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
413 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
414 (nonlocal_goto): Add TARGET_FLAT handling.
415 * config/sparc/t-elf: Add -mflat multilib.
416 * config/sparc/t-leon: Likewise.
418 2011-06-10 Jan Hubicka <jh@suse.cz>
420 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
421 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
422 (self_recursive_p): Use cgraph_function_node.
423 (propagate_pure_const): Likewise.
424 (propagate_nothrow): Likewise.
425 * ipa-reference.c (ipa_reference_get_not_read_global): Use
426 cgraph_function_node.
427 (propagate_bits): Likewise.
428 (propagate): Likewise.
430 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
431 Richard Earnshaw <rearnsha@arm.com>
433 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
434 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
435 (*thumb2_movdi_vfp): Delete.
436 (*arm_movdi_vfp_cortexa8): Delete.
437 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
438 (*movdi_vfp_cortexa8): Likewise.
440 2011-06-10 Richard Guenther <rguenther@suse.de>
442 * stor-layout.c (initialize_sizetypes): Give names to all
445 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
447 PR tree-optimization/49318
448 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
449 irrelevant pattern statements.
451 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
453 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
456 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
459 2011-06-09 Jan Hubicka <jh@suse.cz>
461 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
462 do not recompute reachable flag.
463 (cgraph_finalize_function, cgraph_analyze_functions): Set
464 redefined_extern_inline here.
466 2011-06-09 Jan Hubicka <jh@suse.cz>
468 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
469 (cgraph_only_called_directly_p): ... this one; bring offline.
470 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
471 varpool_used_from_object_file_p): Drop names from the declaratoin.
472 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
473 collect_callers_of_node): New.
474 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
475 (cgraph_edge_recursive_p): Use cgraph_function_node.
476 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
477 (cgraph_node_cannot_be_local_p_1): Break out from ...
478 (cgraph_node_can_be_local_p): ... here; walk aliases.
479 (cgraph_for_node_thunks_and_aliases): New function.
480 (cgraph_for_node_and_aliases): New function.
481 (cgraph_make_node_local_1): Break out from ...
482 (cgraph_make_node_local) ... here; use
483 cgraph_for_node_thunks_and_aliases.
484 (cgraph_set_nothrow_flag_1): Break out from ...
485 (cgraph_set_nothrow_flag) ... here;
486 use cgraph_for_node_thunks_and_aliases.
487 (cgraph_set_const_flag_1): Break out from ...
488 (cgraph_set_const_flag) ... here;
489 use cgraph_for_node_thunks_and_aliases.
490 (cgraph_set_pure_flag_1): Break out from ...
491 (cgraph_set_pure_flag) ... here;
492 use cgraph_for_node_thunks_and_aliases.
493 (cgraph_propagate_frequency_1): Break out from ...
494 (cgraph_propagate_frequency) ... here; use
495 cgraph_for_node_thunks_and_aliases.
496 (cgraph_used_from_object_file_p): Do not care about aliases.
497 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
499 (collect_callers_of_node_1, collect_callers_of_node): New functions.
501 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
503 PR rtl-optimization/49154
504 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
505 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
506 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
507 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
508 * config/cris/cris.h (cris_register_move_cost): Remove
509 !TARGET_V32 code. Tweak comments.
511 2011-06-09 Jan Hubicka <jh@suse.cz>
513 * cgraphbuild.c (record_eh_tables): Mark personality function as having
516 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
518 PR rtl-optimization/49154
519 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
520 is a matching slot in the hashtable, assign it to classes_ptr.
522 PR rtl-optimization/49154
523 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
525 * doc/tm.texi: Regenerate.
527 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
530 * config/sh/sh.md (UNSPEC_CHKADD): New.
531 (chk_guard_add): New define_insn_and_split.
532 (symGOT_load): Use chk_guard_add instead of blockage.
534 2011-06-09 Kai Tietz <ktietz@redhat.com>
536 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
538 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
540 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
542 2011-06-09 Wei Guozhi <carrot@google.com>
545 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
546 (peephole2 for conditional move): Generate 16 bit instructions.
548 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
550 * config/i386/i386.md (*movdi_internal_rex64): Merge
551 alternatives 6 and 8.
553 2011-06-09 David Li <davidxl@google.com>
555 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
556 * passes.c (passr_eq): New function.
557 (create_pass_tab): New function.
558 (pass_traverse): New function.
559 (dump_one_pass): New function.
560 (dump_pass_list): New function.
561 (dump_passes): New function.
563 2011-06-09 David Li <davidxl@google.com>
565 * tree-complex.c (tree_lower_complex): Gate cleanup.
566 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
567 (execute_optimize_stdarg): Ditto.
568 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
569 (execute_cleanup_eh_1): Ditto.
570 (execute_cleanup_eh): Ditto.
571 * gcse.c (gate_rtl_pre): Ditto.
572 (execute_rtl_pre): Ditto.
573 * except.c (finish_eh_generation): Ditto.
574 (convert_to_eh_region_ranges): Ditto.
575 * cprop.c (one_cprop_pass): Ditto.
577 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
580 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
583 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
585 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
586 (HAVE_ENABLE_EXECUTE_STACK): Define.
587 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
588 (HAVE_ENABLE_EXECUTE_STACK): Define.
589 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
590 (HAVE_ENABLE_EXECUTE_STACK): Define.
591 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
592 (ENABLE_EXECUTE_STACK): Remove.
593 (HAVE_ENABLE_EXECUTE_STACK): Define.
594 [IN_LIBGCC2]: Don't include <windows.h>.
595 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
596 (HAVE_ENABLE_EXECUTE_STACK): Define.
597 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
598 (HAVE_ENABLE_EXECUTE_STACK): Define.
599 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
600 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
601 (HAVE_ENABLE_EXECUTE_STACK): Define.
602 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
603 (HAVE_ENABLE_EXECUTE_STACK): Define.
604 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
605 (HAVE_ENABLE_EXECUTE_STACK): Define.
606 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
607 (HAVE_ENABLE_EXECUTE_STACK): Define.
608 * config/alpha/alpha.c (alpha_trampoline_init): Test
609 HAVE_ENABLE_EXECUTE_STACK.
610 * config/i386/i386.c (ix86_trampoline_init): Likewise.
611 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
612 (sparc64_initialize_trampoline): Likewise.
613 * libgcc2.c [L_enable_execute_stack]: Remove.
614 * system.h (ENABLE_EXECUTE_STACK): Poison.
615 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
616 * doc/tm.texi: Regenerate.
617 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
619 2011-06-09 Jakub Jelinek <jakub@redhat.com>
622 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
623 variable. After resetting and rescanning insn continue with previous
626 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
628 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
629 (gcc_cv_ld_hidden): Likewise.
630 * configure: Regenerate.
631 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
632 (ix86_stack_protect_fail): Mark unused.
633 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
634 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
635 [TARGET_MACHO]: Don't define.
636 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
637 (TARGET_STACK_PROTECT_FAIL): Likewise.
638 (rs6000_stack_protect_fail): Mark unused.
639 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
640 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
642 2011-06-08 Andi Kleen <ak@linux.intel.com>
644 * varasm.c (get_section): Print location of other conflict
645 for section conflicts.
647 2011-06-08 Andi Kleen <ak@linux.intel.com>
649 * config/i386/driver-i386.c (host_detect_local_cpu):
650 Add model 0x2d Intel CPU.
652 2011-06-08 Andi Kleen <ak@linux.intel.com>
654 * reginfo.c (global_regs_decl): Add.
655 (globalize_reg): Add decl parameter. Compute location. Pass location
656 to warnings and add inform. Store decl in global_regs_decl.
657 * rtl.h (globalize_reg): Update prototype.
658 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
660 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
662 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
664 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
667 * config/sh/predicates.md (general_movsrc_operand): Check
668 mode for memory with indexed address for QI and HImode.
669 (general_movdst_operand): Likewise.
671 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
673 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
675 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
677 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
678 (num_ssa_operands): Likewise.
679 (op_iter_init_phiuse): Forward-declare.
680 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
682 2011-06-08 Nick Clifton <nickc@redhat.com>
684 * doc/invoke.texi (ARM Options): Update description of
687 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
689 * config/i386/driver-i386.c (host_detect_local_cpu): Support
690 unknown Intel family 0x6 CPUs.
692 2011-06-08 Martin Jambor <mjambor@suse.cz>
694 * tree-sra.c (mark_rw_status): Removed.
695 (analyze_access_subtree): New parameter parent instead of
696 mark_read and mark_write, propagate from that.
698 2011-06-08 Julian Brown <julian@codesourcery.com>
700 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
701 for double-precision helper functions in hard-float mode if only
702 single-precision arithmetic is supported in hardware.
704 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
706 PR rtl-optimization/49303
707 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
708 code_motion_path_driver returned 0 or 1.
709 (sel_region_finish): Clear h_d_i_d.
711 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
713 * config/sh/sh.c (prepare_move_operands): Set pic register
714 appropriately for global and local dynamic tls models even
715 if flag_pic is unset.
717 2011-06-07 Jason Merrill <jason@redhat.com>
719 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
721 2011-06-07 Xinliang David Li <davidxl@google.com>
722 * passes.c (enable_disable_pass): Handle assembler name.
723 (is_pass_explicitly_enabled_or_disabled): Ditto.
725 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
727 PR tree-optimization/48497
728 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
730 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
732 PR tree-optimization/46728
733 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
734 to use gimple_val_nonnegative_real_p.
735 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
736 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
738 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
740 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
742 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
744 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
747 2011-06-07 Richard Guenther <rguenther@suse.de>
749 * stor-layout.c (initialize_sizetypes): Initialize all
750 sizetypes based on target definitions.
751 (set_sizetype): Remove.
752 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
753 * tree.h (set_sizetype): Remove.
755 2011-06-07 Nick Clifton <nickc@redhat.com>
757 * config.gcc: Unify V850 architecture options and add support for
758 newer V850 architectures.
759 * config/v850/t-v850e: Delete.
761 2011-06-07 Richard Guenther <rguenther@suse.de>
763 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
764 Call set_sizetype from here.
766 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
768 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
769 (*maddhisi4tb, *maddhisi4tt): New define_insns.
771 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
772 Andrew Stubbs <ams@codesourcery.com>
774 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
776 * doc/md.texi (Canonicalization of Instructions): Document widening
777 multiply canonicalization.
779 2011-06-07 Jakub Jelinek <jakub@redhat.com>
781 PR gcov-profile/49299
782 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
784 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
786 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
788 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
789 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
790 vect_recog_pow_pattern): Likewise.
791 (vect_pattern_recog_1): Remove declaration.
792 (widened_name_p): Remove declaration. Add new argument to specify
793 whether to check that both types are either signed or unsigned.
794 (vect_recog_widen_mult_pattern): Update documentation. Handle
795 unsigned patterns and multiplication by constants.
796 (vect_pattern_recog_1): Update vect_recog_func references. Use
797 statement information from the statement returned from pattern
799 (vect_pattern_recog): Update vect_recog_func reference.
800 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
801 multiplication by a constant use the type of the other operand.
803 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
805 PR rtl-optimization/49145
806 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
808 2011-06-06 Jakub Jelinek <jakub@redhat.com>
811 * dwarf2out.c (native_encode_initializer): Decrement count in each
815 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
819 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
820 if stmt folded into nothing.
821 * tree-inline.c (fold_marked_statements): If a builtin at the end of
822 a bb folded into nothing, just update cgraph edges and move to next bb.
823 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
824 to be NULL. Don't compute count and frequency if new_call is NULL.
826 2011-06-04 Diego Novillo <dnovillo@google.com>
828 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
829 (cgraph.o): Likewise.
830 (cgraphunit.o): Likewise.
831 * cgraphunit.c: Include lto-streamer.h
832 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
834 * lto-streamer-in.c (unpack_value_fields): Call
835 streamer_hooks.unpack_value_fields if set.
836 (lto_materialize_tree): For unhandled nodes, first try to
837 call lto_streamer_hooks.alloc_tree, if it exists.
838 (lto_input_ts_decl_common_tree_pointers): Move reading of
839 DECL_INITIAL to lto_streamer_read_tree.
840 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
841 (lto_streamer_read_tree): New.
842 (lto_reader_init): Rename from lto_init_reader.
843 Move initialization code to lto/lto.c.
844 * lto-streamer-out.c (pack_value_fields): Call
845 streamer_hooks.pack_value_fields if set.
846 (lto_output_tree_ref): For tree nodes that are not normally indexable,
847 call streamer_hooks.indexable_with_decls_p before giving up.
848 (lto_output_ts_decl_common_tree_pointers): Move handling
849 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
850 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
851 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
852 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
853 (lto_streamer_write_tree): New.
854 (lto_output): Call lto_streamer_init directly.
855 (lto_writer_init): Remove.
856 * lto-streamer.c (streamer_hooks): New.
857 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
858 instead of lto_preload_common_nodes.
859 (lto_is_streamable): Move from lto-streamer.h
860 (lto_streamer_hooks_init): New.
861 (streamer_hooks): New.
862 (streamer_hooks_init): New.
863 * lto-streamer.h (struct output_block): Forward declare.
864 (struct lto_input_block): Likewise.
865 (struct data_in): Likewise.
866 (struct bitpack_d): Likewise.
867 (struct streamer_hooks): Declare.
868 (streamer_hooks): Declare.
869 (lto_streamer_hooks_init): Declare.
870 (lto_streamer_write_tree): Declare.
871 (lto_streamer_read_tree): Declare.
872 (streamer_hooks_init): Declare.
873 (lto_is_streamable): Move to lto-streamer.c
875 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
877 * longlong.h (smul_ppmm): The resulting register pair contains the
878 higher order word first.
880 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
882 PR tree-optimization/46728
883 * builtins.c (powi_table): Remove.
884 (powi_lookup_cost): Remove.
886 (expand_powi_1): Remove.
887 (expand_powi): Remove.
888 (expand_builtin_pow_root): Remove.
889 (expand_builtin_pow): Remove.
890 (expand_builtin_powi): Eliminate handling of constant exponent.
891 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
893 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
895 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
897 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
899 * dce.c (reset_unmarked_insns_debug_uses): New.
900 (delete_unmarked_insns): Skip debug insns.
901 (prescan_insns_for_dce): Likewise.
902 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
903 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
904 active reg can be found.
905 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
906 (convert_regs_1): Use it.
908 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
910 * tree-pretty-print.c (dump_function_header): Add flags.
911 Don't dump decl_uid with nouid.
912 * tree-pretty-print.h (dump_function_header): Adjust.
913 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
914 * passes.c (pass_init_dump_file): Pass dump_flags on.
915 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
917 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
920 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
922 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
924 PR tree-optimization/49243
925 * calls.c (setjmp_call_p): Also check if fndecl has the
926 returns_twice attribute.
928 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
930 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
933 2011-06-06 Richard Henderson <rth@redhat.com>
934 Georg-Johann Lay <avr@gjlay.de>
937 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
939 * config/avr/avr.md ("insv"): New insn expander.
940 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
941 "*insv.not.io", "*insv.reg"): New insns.
943 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
946 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
947 to nonimmediate_operand from memory_operand for the operand that is to
948 be forced to memory by the expander. Lose the constraints.
950 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
952 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
953 EH return when delayed branches are disabled.
955 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
957 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
958 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
960 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
961 Simplify MODE_V1DF and MODE_V2SF handling.
962 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
963 Simplify MODE_SF handling.
965 2011-06-04 Jan Hubicka <jh@suse.cz>
967 PR tree-optimization/48893
968 PR tree-optimization/49091
969 PR tree-optimization/49179
970 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
973 2011-06-04 Jan Hubicka <jh@suse.cz>
976 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
979 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
981 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
983 2011-06-04 Jakub Jelinek <jakub@redhat.com>
986 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
987 to be strictly smaller than 1 << shiftcount.
989 2011-06-04 Jan Hubicka <jh@suse.cz>
991 PR tree-optimize/48929
992 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
995 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
998 * calls.c (emit_call_1): Prefer the __builtin declaration of
1001 2011-06-03 Diego Novillo <dnovillo@google.com>
1003 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1004 (lto_input_tree_pointers): Likewise.
1005 * lto-streamer-out.c (pack_value_fields): Likewise.
1006 (lto_output_tree_pointers): Likewise.
1007 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1008 and OPTIMIZATION_NODE.
1010 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1012 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1013 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1014 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1015 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1016 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1017 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1018 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1019 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1020 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1021 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1022 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1023 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1024 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1025 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1026 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1027 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1028 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1029 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1030 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1031 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1032 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1033 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1034 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1035 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1036 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1037 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1038 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1039 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1040 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1041 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1042 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1043 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1044 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1045 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1046 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1047 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1048 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1049 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1050 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1051 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1052 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1053 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1054 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1055 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1056 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1057 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1058 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1059 * system.h (MD_UNWIND_SUPPORT): Poison.
1060 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1061 * doc/tm.texi: Regenerate.
1062 * unwind-dw2.c: Include md-unwind-support.h instead of
1064 * config/ia64/unwind-ia64.c: Likewise.
1065 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1067 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1069 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1071 2011-06-03 Richard Henderson <rth@redhat.com>
1072 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1074 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1075 (sigill_hdlr): Correct insn, insn size.
1076 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1078 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1080 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1082 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1083 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1084 * config/mips/t-iris: Remove.
1085 * config/mips/t-irix6: New file.
1086 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1088 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1090 * Makefile.in (LIB2ADDEHDEP): Remove.
1091 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1092 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1093 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1094 * config/t-darwin (LIB2ADDEHDEP): Remove.
1095 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1096 * config/t-linux (LIB2ADDEHDEP): Remove.
1098 2011-06-03 Diego Novillo <dnovillo@google.com>
1100 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1101 (lto_register_var_decl_in_symtab): Likewise.
1102 (lto_register_function_decl_in_symtab): Likewise.
1103 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1104 logic to uniquify_nodes.
1106 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1108 * config/alpha/t-osf5: Remove.
1109 * config/alpha/t-osf-pthread: Remove.
1110 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1111 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1113 2011-06-03 Julian Brown <julian@codesourcery.com>
1115 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1116 (strongarm1110): Use strongarm tuning.
1117 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1118 * config/arm/arm.c (arm_strongarm_tune): New.
1119 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1120 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1121 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1122 setting, using previous defaults or 1 for Cortex-A5.
1123 (arm_option_override): Set max_insns_skipped from current tuning.
1125 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1127 * doc/install.texi (Options specification): Document --with-specs.
1129 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1131 * config/arm/neon.md (orndi3_neon): Actually split it.
1133 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1135 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1136 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1138 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1141 * target.def (delay_sched2, delay_vartrack): New.
1142 * doc/tm.texi.in: Update.
1143 * doc/tm.texi: Rebuild.
1144 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1145 * var-tracking.c (gate_handle_var_tracking): Likewise.
1146 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1147 (bfin_flag_var_tracking): Drop.
1148 (output_file_start): Don't save and override flag_var_tracking.
1149 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1150 (bfin_reorg): Test original variables.
1151 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1152 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1153 (ia64_flag_var_tracking): Drop.
1154 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1155 (ia64_file_start): Don't save and override flag_var_tracking.
1156 (ia64_override_options_after_change): Ditto
1157 flag_schedule_insns_after_reload.
1158 (ia64_reorg): Test original variables.
1159 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1160 (picochip_flag_var_tracking): Drop.
1161 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1162 (picochip_option_override): Don't save and override
1163 flag_schedule_insns_after_reload.
1164 (picochip_asm_file_start): Ditto flag_var_tracking.
1165 (picochip_reorg): Test original variables.
1166 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1167 (TARGET_DELAY_VARTRACK): Define.
1168 (spu_var_tracking): New.
1169 (spu_machine_dependent_reorg): Call it.
1170 (asm_file_start): Don't save and override flag_var_tracking.
1172 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1175 * config/sh/predicates.md (general_movsrc_operand): Return 0
1176 for memory and memory subreg of which address is an invalid
1177 indexed address for QI and HImode.
1178 (general_movdst_operand): Likewise.
1180 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1182 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1183 edges only, when there is a non-local label in the function.
1184 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1186 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1188 * config/i386/constraints.md (Y3): New register constraint.
1189 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1190 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1191 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1192 *sse2_interleave_lowv2df.
1194 2011-06-02 Julian Brown <julian@codesourcery.com>
1196 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1197 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1198 (arm_cortex_a5_tune): New.
1200 2011-06-02 Julian Brown <julian@codesourcery.com>
1202 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1203 * config/arm/arm.c (arm_default_branch_cost): New.
1204 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1205 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1206 (arm_fa726_tune): Set branch_cost field using
1207 arm_default_branch_cost.
1208 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1209 current_tune structure.
1210 * dojump.c (tm_p.h): Include file.
1212 2011-06-02 Julian Brown <julian@codesourcery.com>
1214 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1216 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1217 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1218 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1220 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1221 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1222 (arm_fa726te_tune): Add prefer_constant_pool setting.
1223 (arm_v6t2_tune, arm_cortex_tune): New.
1224 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1225 prefer_constant_pool setting.
1227 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1229 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1231 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1232 (*movdf_internal) <case 6,7,8>: Ditto.
1234 * config/i386/constraints.md (Y4): New register constraint.
1235 * config/i386/sse.md (vec_set<mode>_0): Merge with
1236 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1237 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1238 *vec_extractv2di_1_sse.
1239 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1240 and *vec_concatv2di_rex64_sse.
1242 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1245 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1246 of cgraph_local_info for null before attempting to use it.
1248 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1250 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1251 (current_function_dynamic_alloc_count): Delete.
1252 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1253 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1254 (expand_builtin_update_setjmp_buf): Remove dead code.
1255 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1256 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1258 * function.c (instantiate_virtual_regs): Likewise.
1259 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1260 for a block with a single abnormal incoming edge.
1261 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1262 (SETJMP_VIA_SAVE_AREA): Delete.
1263 * config/sparc/sparc-protos.h (load_got_register): Declare.
1264 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1265 (load_got_register): Make global.
1266 (sparc_frame_pointer_required): Add 'static'.
1267 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1268 (sparc_builtin_setjmp_frame_value): New function.
1269 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1270 (save_stack_nonlocal): New expander.
1271 (restore_stack_nonlocal): Likewise.
1272 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1273 (nonlocal_goto_internal): New insn.
1274 (goto_handler_and_restore): Delete.
1275 (builtin_setjmp_setup): Likewise.
1276 (do_builtin_setjmp_setup): Likewise.
1278 (builtin_setjmp_receiver): New expander.
1280 2011-06-01 David Li <davidxl@google.com>
1283 * tree-pretty-print.c (dump_function_header): Format cleanup.
1285 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1288 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1289 needed when original operands are used for msw_skip comparison.
1291 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1294 * var-tracking.c (add_uses, add_stores): Don't call
1295 cselib_subst_to_values on ENTRY_VALUE.
1297 2011-06-01 Diego Novillo <dnovillo@google.com>
1299 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1300 output_record_start with LTO_null instead of output_zero.
1301 (lto_output_ts_binfo_tree_pointers): Likewise.
1302 (lto_output_tree): Likewise.
1303 (output_eh_try_list): Likewise.
1304 (output_eh_region): Likewise.
1305 (output_eh_lp): Likewise.
1306 (output_eh_regions): Likewise.
1307 (output_bb): Likewise.
1308 (output_function): Likewise.
1309 (output_unreferenced_globals): Likewise.
1310 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1311 instead of NUM_TREE_CODES.
1312 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1313 (lto_output_int_in_range): Change << to >> when shifting VAL.
1315 2011-06-01 Diego Novillo <dnovillo@google.com>
1317 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1318 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1320 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1323 * optabs.h (valid_multiword_target_p): Declare.
1324 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1325 doing multi-word operations.
1326 * optabs.c (expand_binop): Likewise.
1327 (expand_doubleword_bswap): Likewise.
1328 (expand_absneg_bit): Likewise.
1329 (expand_unop): Likewise.
1330 (expand_copysign_bit): Likewise.
1331 (multiword_target_p): New function.
1333 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1335 PR rtl-optimization/48830
1336 PR rtl-optimization/48808
1337 PR rtl-optimization/48792
1338 * reload.c (push_reload): Check contains_reg_of_mode.
1339 * reload1.c (strip_paradoxical_subreg): New function.
1340 (gen_reload_chain_without_interm_reg_p): Use it to handle
1341 paradoxical subregs.
1342 (emit_output_reload_insns, gen_reload): Likewise.
1344 2011-06-01 David Li <davidxl@google.com>
1346 * predict.c : Change pass name
1349 * tree-profile.c: Ditto.
1352 2011-06-01 David Li <davidxl@google.com>
1354 * tree-pretty-print.c (dump_function_header): New function.
1355 * final.c (rest_of_clean_state): Use header dumper.
1356 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1357 * passes.c (pass_init_dump_file): Use header dumper.
1359 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1361 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1362 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1363 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1365 (mem_loc_descriptor): Use them.
1367 * var-tracking.c (create_entry_value): New function.
1368 (vt_add_function_parameter): Use it.
1370 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1372 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1373 Include <signal.h>, <ucontext.h>.
1374 (sigill_caught): Define.
1375 (sigill_hdlr): New function.
1376 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1377 insns can be executed.
1378 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1379 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1381 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1383 * config/t-slibgcc-darwin: Move to ...
1384 * config/t-slibgcc-dummy: ... this. Clarify comments.
1385 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1386 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1387 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1388 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1389 Remove i386/t-crtstuff from tmake_file.
1390 (i[34567]86-*-solaris2*): Remove t-svr4,
1391 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1393 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1394 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1395 sparc/t-crtfm from tmake_file.
1396 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1397 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1399 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1400 * config/i386/t-nwld (SHLIB_LINK): Remove.
1401 * config/i386/t-rtems-i386: Rename to ...
1402 * config/i386/t-rtems: ... this.
1403 ($(T)crti.o, $(T)crtn.o): Remove.
1404 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1405 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1406 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1407 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1408 EXTRA_MULTILIB_PARTS): Remove.
1409 * config/sparc/t-sol2-64: Likewise.
1410 * config/sparc/t-sol2: Remove.
1411 * config/sparc/t-crtin: Remove.
1412 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1413 * config/i386/gmon-sol2.c: Remove.
1414 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1415 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1416 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1417 * config/i386/sol2-gc1.asm: Remove.
1418 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1419 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1420 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1421 * config/t-slibgcc-sld: Remove.
1423 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1425 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1426 base_type_for_mode with op_mode instead of mode.
1428 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1430 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1432 * config/arm/arm-tune.md: Regenerate.
1433 * config/arm/arm-tables.opt: Regenerate.
1434 * config/arm/arm.c (FL_DIV): Rename...
1435 (FL_THUMB_DIV): ... to this.
1436 (FL_ARM_DIV): Define.
1437 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1438 (arm_arch_hwdiv): Remove.
1439 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1440 (arm_issue_rate): Add cortexr5.
1441 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1442 __ARM_ARCH_EXT_IDIV__.
1443 (TARGET_IDIV): Define.
1444 (arm_arch_hwdiv): Remove.
1445 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1446 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1447 (divsi3, udivsi3): New patterns.
1448 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1449 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1451 2011-06-01 Martin Jambor <mjambor@suse.cz>
1453 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1454 * ipa-utils.c (searchc): Set scc_no.
1456 2011-06-01 Martin Jambor <mjambor@suse.cz>
1458 * ipa-utils.c (searchc_env): New field allow_overwritable.
1459 (searchc): do not ignore edges to overwritable nodes if indicated
1460 by env->allow_overwritable.
1461 (ipa_reduced_postorder): Set env.allow_overwritable.
1463 2011-06-01 Richard Guenther <rguenther@suse.de>
1465 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1467 * lto-streamer.c (lto_record_common_node): Take node pointer,
1468 do not register types.
1469 (lto_preload_common_nodes): Explicitly skip preloading nodes
1470 that differ between frontends.
1472 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1474 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1477 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1479 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1480 parameter value for dump. Dump cost on outermost call only.
1481 (rs6000_memory_move_cost): Dump cost on outermost call only.
1483 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1485 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1486 DW_OP_GNU_convert ops.
1488 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1489 cselib_preserve_constants.
1490 (cselib_lookup_1): If cselib_preserve_constants,
1491 a new VALUE is being created for REG and there is a VALUE for the
1492 same register in wider mode, add another loc with lowpart SUBREG of
1494 (cselib_subst_to_values): Handle ENTRY_VALUE.
1495 * var-tracking.c (replace_expr_with_values): Return NULL for
1497 * dwarf2out.c (convert_descriptor_to_signed): New function.
1498 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1499 instead of two shifts.
1500 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1501 the right mode if needed.
1502 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1503 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1504 convert_descriptor_to_signed.
1505 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1506 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1509 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1511 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1513 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1514 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1515 (SWI248x): New mode iterator, rename from X87MODEI.
1516 (X87MODEI): Remove mode iterator.
1517 (X87MODEI12): Ditto.
1518 (SSEMODEI24): Ditto.
1520 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1522 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1523 * doc/invoke.texi: Document max-vartrack-expr-depth.
1524 * var-tracking.c (EXPR_DEPTH): New.
1525 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1527 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1529 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1530 * config/i386/sse.md: Add n to negated FMA pattern names.
1532 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1534 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1536 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1538 * gengtype-state.c (read_state_params_structs): Initialize previous.
1540 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1542 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1543 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1545 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1547 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1548 registers. Penalize F*r->o alternative to prevent partial memory
1549 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1550 CONST_DOUBLE immediates when optimizing function for size. Do not move
1551 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1552 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1553 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1554 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1556 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1558 (fp_register_operand splitters): Use fp_register_operand
1559 constraint. Do not use FP_REG_P in insn condition.
1560 (any_fp_register_operand splitters): Use any_fp_register_operand
1561 constraint. Do not use ANY_FP_REG_P in insn condition.
1563 2011-05-31 Jan Hubicka <jh@suse.cz>
1565 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1566 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1567 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1568 (lto_output_edge): Use output_enum and var_len_unsigned.
1569 (lto_output_varpool_node): Likewise.
1570 (input_overwrite_node): Do not take resolution parameter;
1571 extract it from a bitpack.
1572 (input_node): Do not read resolution; use input_enum and
1574 (input_varpool_node): Likewise.
1575 (input_edge): Likewise.
1576 (input_cgraph_1): Likewise.
1578 2011-05-31 Richard Guenther <rguenther@suse.de>
1580 * gimple.c (gimple_register_canonical_type): Do not register
1581 any types via gimple_register_type.
1583 2011-05-31 Jan Hubicka <jh@suse.cz>
1585 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1588 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1590 PR rtl-optimization/49235
1591 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1592 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1594 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1596 PR tree-optimization/49093
1597 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1600 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1603 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1604 for concrete functions containing the code of cloned functions.
1606 2011-05-31 Richard Guenther <rguenther@suse.de>
1608 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1610 (forward_propagate_into_comparison_1): ... this.
1611 (forward_propagate_comparison): Rename to ...
1612 (forward_propagate_into_comparison): ... this. Split out
1613 real forward propagation code to ...
1614 (forward_propagate_comparison): ... this.
1615 (forward_propagate_into_gimple_cond): Remove looping.
1616 (forward_propagate_into_cond): Likewise.
1617 (simplify_not_neg_expr): Return whether we have done something.
1618 (simplify_gimple_switch): Likewise.
1619 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1620 (ssa_forward_propagate_and_combine): ... this. Re-structure
1621 to do a forward forward-propagation walk on BBs and a backward
1622 stmt combining walk on BBs. Consistently re-scan changed statements.
1623 (pass_forwprop): Adjust.
1625 2011-05-30 Ian Lance Taylor <iant@google.com>
1627 * godump.c (go_format_type): Correct length of name added to
1628 obstack for anonymous field.
1630 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1633 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1634 part of the second operand is 0.
1636 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1638 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1639 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1640 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1641 (*movdf_internal_rex64): Do not penalize F->r alternative.
1642 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1643 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1644 when optimizing function for size. Do not move CONST_DOUBLEs
1645 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1646 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1647 SUBREGs. Do not check for MEM_P operands in the insn condition,
1648 check for ANY_FP_REGNO_P instead.
1649 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1650 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1652 * config/i386/i386.c (ix86_option_override_internal): Do not
1653 set TARGET_INTEGER_DFMODE_MOVES here.
1655 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1658 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1660 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1662 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1663 DW_TAG_rvalue_reference_type even for
1664 -gdwarf-4 -fno-debug-types-section.
1666 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1668 PR tree-optimization/46728
1669 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1670 (build_and_insert_binop): New.
1671 (gimple_expand_builtin_pow): Reorder args for
1672 build_and_insert_call; use build_and_insert_binop; add more
1673 optimizations for fractional exponents.
1675 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1680 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1682 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1684 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1685 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1686 TS_BASE instead of TS_COMMON.
1687 * varasm.c (assemble_name): Remove assert.
1689 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1691 * config.gcc: Keep obselete list sorted.
1693 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1694 Eric Botcazou <ebotcazou@adacore.com>
1696 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1697 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1698 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1699 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1700 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1702 2011-05-30 Richard Guenther <rguenther@suse.de>
1704 * gimple.c (gimple_types_compatible_p_1): Compare record
1705 and union type members properly.
1707 2011-05-30 Richard Guenther <rguenther@suse.de>
1709 PR tree-optimization/49210
1710 * ipa-split.c (split_function): Care for the case where the call
1711 result is not trivially convertible to the result holding variable.
1713 2011-05-30 Richard Guenther <rguenther@suse.de>
1715 PR tree-optimization/49218
1716 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1719 2011-05-30 Richard Guenther <rguenther@suse.de>
1721 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1722 New function split out from ...
1723 (forward_propagate_into_gimple_cond): ... here. Adjust.
1724 (forward_propagate_into_cond): Likewise.
1725 (forward_propagate_comparison): Also propagate into
1726 comparisons on assignment RHS. Change return value to
1727 behave similar to forward_propagate_into_cond.
1728 (tree_ssa_forward_propagate_single_use_vars): Handle
1729 strict-overflow warnings properly for forward_propagate_comparison.
1731 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1733 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1735 * configure: Regenerate.
1737 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1739 PR tree-optimization/49199
1740 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1741 non-reduction operands are either defined in the loop or by induction.
1743 2011-05-29 Xinliang David Li <davidxl@google.com>
1745 * opts-global.c (handle_common_deferred_options): Handle new options.
1746 * passes.c (register_one_dump_file): Call register_pass_name.
1747 (execute_one_pass): Check explicit enable/disable flag.
1748 (passr_hash): New function.
1750 (register_pass_name): Ditto.
1751 (get_pass_by_name): Ditto.
1754 (enable_pass): Ditto.
1755 (disable_pass): Ditto.
1756 (is_pass_explicitly_enabled_or_disabled): Ditto.
1758 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1760 * config/i386/i386.md (*movoi_internal_avx): Use
1761 standard_sse_constant_opcode for alternative 0.
1762 (*movti_internal_sse): Ditto.
1763 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1765 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1767 (*movsi_internal): Ditto.
1768 (*movdi_internal): Ditto. Add ssecvt type moves.
1770 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1773 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1775 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1777 PR rtl-optimization/49095
1778 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1779 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1781 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1784 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1785 recurse_p argument. Only follow register copies if it is set,
1786 and prevent mips_find_pic_call_symbol from recursing.
1787 (mips_find_pic_call_symbol): Add a recurse_p argument.
1788 Pass it to mips_pic_call_symbol_from_set.
1789 (mips_annotate_pic_calls): Update accordingly.
1791 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1793 * emit-rtl.c (try_split): Use a loop to search for
1794 NOTE_INSN_CALL_ARG_LOCATIONs.
1796 2011-05-29 Richard Guenther <rguenther@suse.de>
1798 PR tree-optimization/49217
1799 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1801 2011-05-28 Jan Hubicka <jh@suse.cz>
1803 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1805 (string_slot_free): Remove
1806 (create_output_block): Initialize obstack.
1807 (destroy_output_block): Free obstack.
1808 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1809 the string unless it needs to be added into the hash.
1810 (lto_output_string_with_length): Add persistent attribute;
1811 handle NULL strings.
1812 (lto_output_string): Add PERSISTENT parameter.
1813 (output_string_cst, output_identifier): Simplify.
1814 (lto_output_location_bitpack): Update.
1815 (lto_output_builtin_tree): Update.
1816 * lto-streamer.h (struct output_block): Add obstack.
1817 (lto_output_string, lto_output_string_with_length): Remove
1818 declarations; functions are static now.
1820 2011-05-28 Jan Hubicka <jh@suse.cz>
1822 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1823 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1824 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1825 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1826 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1827 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1828 unpack_ts_decl_with_vis_value_fields,
1829 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1830 lto_get_builtin_tree): Use enum and variable length i/o.
1831 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1832 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1834 (bp_pack_enum, bp_unpack_enum): New macros.
1836 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1838 * genrecog.c: Remove redundant forward declarations.
1840 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1842 * config.gcc: Deprecate mips*-*-openbsd*.
1844 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1847 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1850 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1853 * gengtype.c (vec_prefix_type): New function.
1854 (note_def_vec): Use vec_prefix_type and change the length
1855 attribute to be based on the prefix.
1856 * vec.c: Include coretypes.h before vec.h.
1857 (struct vec_prefix): Remove.
1858 (vec_gc_p_reserve): Change the offsetof to sizeof.
1859 (vec_gc_p_reserve_exact): Likewise.
1860 (vec_heap_p_reserve): Likewise.
1861 (vec_heap_p_reserve_exact): Likewise.
1862 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1863 (vec_stack_p_reserve): Change the offsetof to sizeof.
1864 (vec_stack_p_reserve_exact): Likewise.
1865 * vec.h (struct vec_prefix): New struct definition.
1866 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1867 (VEC_T_GTY(T,B)): Likewise.
1868 (DEF_VEC_FUNC_P(T)): Use prefix field.
1869 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1870 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1872 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1874 PR tree-optimization/46728
1875 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1876 (powi_as_mults): Add gimple_set_location.
1877 (build_and_insert_call): New.
1878 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1879 0.5, 0.25, 0.75, 1./3., or 1./6.
1881 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1883 * doc/contrib.texi: Update copyright years.
1884 (Contributors): Add Zdenek Sojka.
1886 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1888 * c-decl.c (c_push_function_context): Copy the current statement
1890 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1891 (finish_struct): Call building_stmt_list_p instead of checking
1893 * c-parser.c (c_parser_postfix_expression): Likewise.
1894 * c-typeck.c (c_end_compound_stmt): Likewise.
1895 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1896 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1897 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1898 (free_stmt_list): Likewise.
1899 * tree.h (struct tree_statement_list): Include typed_tree instead
1901 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1902 as TS_TYPED instead of TS_COMMON.
1904 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1905 Uros Bizjak <ubizjak@gmail.com>
1907 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1908 (HAVE_AS_IX86_TLSGDPTL): Define.
1909 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1910 (HAVE_AS_IX86_TLSLDMPLT): Define.
1911 * configure: Regenerate.
1912 * config.in: Regenerate.
1913 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1914 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1915 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1916 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1917 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1919 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1921 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1923 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1925 (INSN_COND, INSN_REVERSE_COND): New macros.
1926 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1928 (sched_get_condition_with_rev): Cache the results, and look them up
1930 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1931 are clobbered by the current insn.
1932 * target.def (exposed_pipline): New sched data hook.
1933 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1934 * doc/tm.texi: Regenerate.
1936 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1938 PR tree-optimization/49170
1939 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1942 2011-05-27 Richard Guenther <rguenther@suse.de>
1945 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1948 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1950 * haifa-sched.c (sched_scan_info): Remove.
1951 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1953 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1955 (sched_scan): Remove.
1956 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1957 static. All callers changed.
1958 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1959 static. All callers changed.
1960 (sched_init_luids): Remove all arguments except the first. All
1961 callers changed. Don't use sched_scan.
1962 (haifa_init_h_i_d): Likewise.
1963 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1964 manually rather than using sched_init_luids. Likewise with
1965 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1966 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1967 rather than sched_init_luids with NULL args.
1968 * sel-sched-ir.c (new_insns): Remove variable.
1969 (sched_scan): New static function, previously in haifa-sched.c. Remove
1970 all arguments but the first two; all callers changed.
1971 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1972 rather than sched_init_luids.
1973 (sel_init_bbs): Remove second argument. All callers changed.
1974 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1975 with NULL arguments.
1976 (create_insn_rtx_from_pattern): Likewise.
1977 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1978 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1979 (sched_init_insn_luid, sched_extend_luids): Declare.
1980 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1983 2011-05-27 Richard Guenther <rguenther@suse.de>
1986 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1987 A CMP B ? (T) true : (T) false for non-integral types T again.
1989 2011-05-27 Jan Hubicka <jh@suse.cz>
1991 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1992 so 0 means NULL string.
1993 (lto_output_string_with_length): ... here.
1994 (lto_output_string, output_string_cst, output_identifier): Update
1995 handling of NULL strings.
1996 (lto_output_location_bitpack): New function.
1997 (lto_output_location): Use it.
1998 (lto_output_tree_ref): Use output_record_start.
1999 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2001 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2003 (input_string_internal): ... here;
2004 (input_string_cst, input_identifier, lto_input_string): Update handling
2006 (lto_input_location_bitpack): New function
2007 (lto_input_location): Use it.
2008 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2010 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2011 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2012 (bp_pack_value): Sanity check the value range.
2013 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2015 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2018 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2020 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2021 call_arg_location instructions down the floor.
2023 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2025 PR rtl-optimization/49154
2026 * ira.c (setup_pressure_classes): Process class without sublcasses
2027 as a candidate for pressure classes.
2029 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2031 PR rtl-optimization/48575
2032 * genrecog.c (position_type): New enum.
2033 (position): New structure.
2034 (decision): Use position structure instead of a string.
2035 (root_pos, peep2_insn_pos_list): New variables.
2036 (next_position, compare_positions): New functions.
2037 (new_decision): Use position structures instead of strings.
2038 (maybe_both_true): Likewise.
2039 (change_state): Likewise.
2040 (write_tree): Likewise.
2041 (make_insn_sequence): Likewise.
2043 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2045 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2046 TS_BASE instead of TS_COMMON.
2047 (find_decls_types_r): Check for TS_TYPED structure before looking at
2049 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2051 (BLOCK_CHAIN): Use new chain field.
2053 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2055 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2056 moves expensive on Power7 also.
2058 2011-05-26 Richard Guenther <rguenther@suse.de>
2060 * fold-const.c (fold_unary_loc): Remove bogus code.
2062 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2064 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2066 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2067 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2068 TS_BASE instead of TS_COMMON.
2069 * varasm.c (assemble_name): Remove assert.
2071 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2073 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2075 * libgcc-std.ver: Delete file.
2077 2011-05-26 Richard Guenther <rguenther@suse.de>
2079 PR tree-optimization/48702
2080 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2081 only when we know the base address is within bounds.
2082 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2083 assume the base address of TARGET_MEM_REFs is in bounds.
2085 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2088 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2089 declaration in TARGET_SOLARIS.
2091 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2093 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2094 The instruction is then expanded explicitly.
2095 (supported_compare): Callable instruction.
2096 (compare): Likewise.
2098 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2101 * gimplify.c (shortcut_cond_r): Don't special case
2102 COND_EXPRs if they have void type on one of their arms.
2104 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2106 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2107 to reduce duplication, and to achieve a slightly more logical order
2110 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2112 PR tree-optimization/49161
2113 * tree-vrp.c (struct case_info): New type.
2114 (compare_case_labels): Sort case_info structs instead of
2115 trees, and not primarily by CASE_LABEL uids but by
2116 label_for_block indexes.
2117 (find_switch_asserts): Put case labels into struct case_info
2118 array instead of TREE_VEC, adjust sorting, compare label_for_block
2119 values instead of CASE_LABELs.
2121 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2123 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2124 ("orndi3_neon"): Likewise.
2125 ("bic<mode>3_neon"): Likewise.
2127 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2129 PR tree-optimization/49038
2130 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2131 Ensure at least one epilogue iteration if required by data
2133 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2134 to mark loops that require peeling for gaps.
2135 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2136 (vect_get_known_peeling_cost): Take peeling for gaps into
2138 (vect_transform_loop): Generate epilogue if required by data
2140 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2141 loop as requiring an epilogue if there are gaps in the end of
2144 2011-05-25 Ian Lance Taylor <iant@google.com>
2146 * godump.c (go_format_type): Output the first field with a usable
2149 2011-05-25 Ian Lance Taylor <iant@google.com>
2151 * godump.c (go_format_type): Check for invalid type names, pointer
2152 target types, and struct field types.
2154 2011-05-25 Jason Merrill <jason@redhat.com>
2156 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2158 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2160 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2162 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2164 * config/i386/i386.md (*movqi_extv_1)): Put back
2165 "register_operand" check in "type" calculation.
2166 (*movqi_extzv_2): Likewise.
2168 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2170 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2172 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2175 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2176 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2177 __divxc3, __divtc3): Wrap definitions in #ifndef.
2179 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2182 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2183 "register_operand" check and replace q_regs_operand with
2184 QIreg_operand in "type" calculation.
2185 (*movqi_extv_1): Likewise.
2186 (*movqi_extzv_2_rex64): Likewise.
2187 (*movqi_extzv_2): Likewise.
2189 * config/i386/predicates.md (QIreg_operand): New.
2191 2011-05-25 Richard Guenther <rguenther@suse.de>
2193 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2194 type-based offset disambiguation, streamline MEM_REF and
2195 TARGET_MEM_REF handling.
2197 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2199 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2200 (bdesc_special_args): Add pause intrinsic.
2202 * config/i386/i386.md (UNSPEC_PAUSE): New.
2205 * config/i386/ia32intrin.h (__pause): Likewise.
2207 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2210 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2212 PR tree-optimization/46728
2213 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2214 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2216 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2218 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2219 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2220 instead of TS_COMMON.
2222 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2224 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2225 LIBGCC2_GNU_PREFIX is defined.
2227 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2228 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2229 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2230 __clz_tab): Define using __N.
2231 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2232 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2233 * target.def (libfunc_gnu_prefix): New hook.
2234 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2235 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2236 * doc/tm.texi: Regenerate.
2237 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2238 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2240 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2241 (init_optabs): Likewise for the bswap libfuncs.
2242 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2244 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2245 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2246 * libgcc-std.ver: Remove.
2247 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2248 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2250 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2251 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2252 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2253 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2254 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2255 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2256 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2257 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2258 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2259 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2261 2011-05-25 Jan Hubicka <jh@suse.cz>
2263 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2264 (lto_output_tree): Use output_record_start.
2265 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2266 (lto_get_pickled_tree): Use input_record_start.
2267 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2268 (lto_value_range_error): New function.
2269 * lto-streamer.h (lto_value_range_error): Declare.
2270 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2271 (lto_output_enum, lto_input_enum): New macros.
2273 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2275 * common.opt (flag_stack_usage_info): New variable.
2276 (-Wstack-usage): New option.
2277 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2278 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2279 <OPT_fstack_usage>: Likewise.
2280 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2281 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2282 of flag_stack_usage.
2283 (emit_library_call_value_1): Likewise.
2284 * explow.c (allocate_dynamic_stack_space): Likewise.
2285 * function.c (instantiate_virtual_regs ): Likewise.
2286 (prepare_function_start): Likewise.
2287 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2288 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2289 * config/arm/arm.c (arm_expand_prologue): Likewise.
2290 (thumb1_expand_prologue): Likewise.
2291 * config/avr/avr.c (expand_prologue): Likewise.
2292 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2293 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2294 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2295 * config/mips/mips.c (mips_expand_prologue): Likewise.
2296 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2297 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2298 * config/s390/s390.c (s390_emit_prologue): Likewise.
2299 * config/sh/sh.c (sh_expand_prologue): Likewise.
2300 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2301 * config/spu/spu.c (spu_expand_prologue): Likewise.
2303 2011-05-25 Richard Guenther <rguenther@suse.de>
2305 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2306 (gimple_canonical_types_compatible_p): Likewise.
2308 2011-05-25 Jan Hubicka <jh@suse.cz>
2311 * ipa.c (function_and_variable_visibility): Only add to same
2312 comdat group list if DECL_ONE_ONLY.
2314 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2316 PR rtl-optimization/49014
2317 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2319 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2322 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2324 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2326 PR rtl-optimization/48757
2327 * ira-build.c (loop_with_eh_edge_p): Rename to
2328 loop_with_complex_edge_p, check edges on complexity, make function
2330 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2333 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2335 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2336 force flag_ira_share_save_slots to 0.
2338 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2340 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2341 (vt_initialize): Set PROLOGUE_BB unconditionally.
2342 Add block comment about CFA_BASE_RTX machinery.
2343 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2344 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2346 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2349 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2350 parsing of syntax error in ObjC instance variable lists. In
2351 particular, avoid an infinite loop if there is a stray ']'.
2352 Updated error message.
2354 2011-05-24 Ian Lance Taylor <iant@google.com>
2356 * godump.c (go_define): Don't accept a string immediately after
2359 2011-05-24 Ian Lance Taylor <iant@google.com>
2361 * godump.c (struct godump_container): Add invalid_hash field.
2362 (go_format_type): Return false if type is found in invalid_hash.
2363 (go_output_typedef): Add invalid type to invalid_hash.
2364 (go_finish): Create and delete invalid_hash.
2366 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2368 PR tree-optimization/46728
2369 * tree-ssa-math-opts.c (powi_table): New.
2370 (powi_lookup_cost): New.
2372 (powi_as_mults_1): New.
2373 (powi_as_mults): New.
2374 (gimple_expand_builtin_powi): New.
2375 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2376 (gate_cse_sincos): Remove sincos/cexp restriction.
2378 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2381 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2383 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2384 * mips-tdump.c: Likewise.
2386 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2389 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2390 add -mno-XXX. Handle FMA.
2392 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2394 PR rtl-optimization/48633
2395 * ira-build.c (loop_with_eh_edge_p): New function.
2396 (mark_loops_for_removal): Use it.
2398 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2400 PR rtl-optimization/48971
2401 * ira.c (setup_pressure_classes): Don't check register move cost
2402 for classes with one registers. Don't add pressure class if there
2403 is a pressure class with the same available hard registers.
2404 Check contains_reg_of_mode. Fix a typo in collecting
2405 temp_hard_regset. Ignore hard registers not belonging to a class.
2407 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2410 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2412 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2413 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2415 PR gcov-profile/48845
2416 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2418 2011-05-24 Richard Guenther <rguenther@suse.de>
2420 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2421 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2422 (gimple_types_compatible_p_1): Adjust.
2423 (iterative_hash_canonical_type): Do not bother about complete vs.
2425 (gimple_canonical_types_compatible_p): Likewise.
2427 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2429 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2431 2011-05-24 Richard Guenther <rguenther@suse.de>
2434 * gimple.c (gimple_register_canonical_type): Revert
2436 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2437 does not for a tree for the case where it matters. Cache
2438 pointer-type alias-sets.
2440 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2442 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2443 (OBJS): Remove options.o, opts-common.o and prefix.o.
2444 (OBJS-libcommon-target): New.
2445 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2446 (BACKEND): Include libcommon-target.a.
2447 (MOSTLYCLEANFILES): Include libcommon-target.a.
2448 (libcommon-target.a): New.
2449 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2452 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2454 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2455 parts of output shared with the driver.
2456 * optc-gen.awk: Don't generate parts of output not shared with the
2458 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2459 * doc/options.texi (SourcerInclude): Mention options-save.c.
2460 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2461 (OBJS): Add options-save.o.
2462 (options-save.c, options-save.o): New.
2463 (options.o): Update dependencies.
2464 (gcc-options.o): Remove.
2465 (mostlyclean): Remove options-save.c.
2467 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2470 * dbxout.c: Include cgraph.h.
2471 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2472 and without value expr, return NULL if no varpool node exists for
2473 it or if it is not needed.
2474 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2477 * c-decl.c (start_decl): Convert expr to void_type_node.
2479 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2481 PR rtl-optimization/48826
2482 * emit-rtl.c (try_split): When splitting a call that is followed
2483 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2485 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2487 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2488 parameters passed in memory prefer using DECL_INCOMING_RTL over
2489 the pseudos it will be copied into.
2491 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2494 * config/i386/i386.c (ix86_option_override_internal): Save the
2495 initial options after checking vzeroupper.
2497 2011-05-23 David Li <davidxl@google.com>
2499 PR tree-optimization/48988
2500 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2501 Initialize has_valid_pred for each pred chain.
2503 2011-05-23 Richard Guenther <rguenther@suse.de>
2505 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2506 (iterative_hash_gimple_type): Always hash type names.
2508 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2510 * c-typeck.c (build_function_call_vec): Tweak call to
2511 check_function_arguments.
2513 2011-05-23 Richard Guenther <rguenther@suse.de>
2515 PR tree-optimization/49115
2516 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2517 is not necessarily carried out, do not claim it kills the ref.
2518 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2520 2011-05-23 Richard Guenther <rguenther@suse.de>
2523 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2524 what pointer types we accept for folding.
2526 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2528 * gthr-gnat.c: Remove.
2529 * gthr-gnat.h: Remove.
2530 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2531 * config/t-freebsd (LIB2ADDEH): Likewise.
2532 * config/t-linux (LIB2ADDEH): Likewise.
2533 * config/t-sol2 (LIB2ADDEH): Likewise.
2534 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2535 * configure.ac (target_thread_file): Remove gnat handling.
2536 * configure: Regenerate.
2537 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2539 2011-05-23 Tristan Gingold <gingold@adacore.com>
2540 Eric Botcazou <ebotcazou@adacore.com>
2542 * gcov.c (create_file_names): If no object directory is specified,
2543 keep the directory of the file.
2545 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2547 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2548 * configure: Regenerate.
2550 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2553 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2554 failed and the comparison has a single bit signed type, use
2555 constm1_rtx instead of const1_rtx for true value.
2556 (do_store_flag): If ops->type is single bit signed type, disable
2557 signel bit test optimization and pass -1 instead of 1 as last
2558 parameter to emit_store_flag_force.
2560 2011-05-23 Tom de Vries <tom@codesourcery.com>
2563 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2565 (infer_loop_bounds_from_undefined): Use new function.
2567 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2569 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2570 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2571 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2573 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2575 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2577 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2578 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2581 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2583 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2585 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2587 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2588 UNSPEC_MOVE_PIC pattern.
2590 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2592 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2593 (sparc-*-rtems*): Likewise.
2594 (sparc64-*-elf*): Likewise.
2595 (sparc64-*-rtems*): Likewise.
2596 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2597 * config/sparc/t-crtin: New file.
2598 * config/sparc/t-sol2 (crti.o): Delete rule.
2600 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2601 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2602 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2603 (ENDFILE_SPEC): Add crtn.o.
2605 2011-05-22 Tom de Vries <tom@codesourcery.com>
2608 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2609 CODE_CONTAINS_STRUCT (TS_COMMON).
2611 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2614 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2615 only after deciding which mode to use.
2617 2011-05-22 Tom de Vries <tom@codesourcery.com>
2620 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2621 for call to get_shiftadd_cost.
2623 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2626 * config/i386/cpuid.h (bit_MMXEXT): New define.
2628 2011-05-22 Nick Clifton <nickc@redhat.com>
2630 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2631 initialisation of non-existant args[2] element. Use args[] array
2632 not arg[] array to pass arguments to build_function_type_list.
2634 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2636 PR tree-optimization/49087
2637 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2639 2011-05-21 Jason Merrill <jason@redhat.com>
2642 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2643 static storage duration.
2645 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2647 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2650 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2652 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2653 false if there are call-saved registers here...
2654 (sparc_can_use_return_insn_p): ...but here instead.
2655 (save_or_restore_regs): Fix thinko.
2656 (sparc_expand_prologue): Use current_function_is_leaf.
2657 (sparc_frame_pointer_required): Likewise.
2659 2011-05-21 Nick Clifton <nickc@redhat.com>
2662 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2664 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2666 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2667 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2669 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2671 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2672 * optc-gen.awk: Move common code to opt-read.awk.
2673 * opth-gen.awk: Likewise.
2674 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2676 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2678 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2680 2011-05-20 Tom de Vries <tom@codesourcery.com>
2683 * tree-ssa-loop-ivopts.c: Include expmed.h.
2684 (get_shiftadd_cost): New function.
2685 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2687 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2690 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2691 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2693 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2695 * Makefile.in: Update comment referring to $(OBJS-common).
2697 2011-05-20 Ian Lance Taylor <iant@google.com>
2699 * godump.c (go_output_typedef): Put enum constants in the macro
2700 hash table to avoid duplicate Go const definitions.
2702 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2704 * Makefile.in (LIBDEPS): Add libcommon.a.
2706 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2707 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2708 pretty-print.o and version.o.
2709 (OBJS-libcommon): New.
2710 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2711 (BACKEND): Add libcommon.a.
2712 (MOSTLYCLEANFILES): Likewise.
2714 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2715 (cpp$(exeext)): Likewise.
2716 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2717 pretty-print.o and input.o.
2718 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2719 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2721 (mips-tfile): Don't explicitly use version.o.
2722 (mips-tdump): Likewise.
2723 (gcov.o): Depend on $(DIAGNOSTIC_H).
2724 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2725 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2726 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2727 * gcov-dump.c: Include intl.h and diagnostic.h.
2728 (main): Initialize diagnostics.
2729 * gcov.c: Include diagnostic.h.
2731 (main): Initialize diagnostics.
2732 * lto-wrapper.c: Include diagnostic.h.
2733 (main): Initialize diagnostics.
2735 2011-05-20 Michael Matz <matz@suse.de>
2737 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2739 2011-05-20 Michael Matz <matz@suse.de>
2740 Richard Guenther <rguenther@suse.de>
2742 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2743 use lto_streamer_cache_append directly instead of returning a VEC.
2744 (preload_common_node): Remove.
2745 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2747 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2749 2011-05-20 Richard Guenther <rguenther@suse.de>
2751 PR tree-optimization/49079
2752 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2753 MEM_REFs correctly for the trailing array access detection.
2754 Special case constants the same way as decls for overall size
2757 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2759 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2762 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2764 PR tree-optimization/49073
2765 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2766 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2767 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2769 2011-05-20 Richard Guenther <rguenther@suse.de>
2772 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2773 of pointer types the same way the middle-end does.
2775 2011-05-20 Richard Guenther <rguenther@suse.de>
2777 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2778 or pointer-to chains. Delay all fixup to uniquify_nodes.
2780 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2782 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2783 (fma4_fmaddsub): Likewise
2785 2011-05-19 Jan Hubicka <jh@suse.cz>
2787 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2788 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2789 (type_pair_cache): New static var.
2790 (lookup_type_pair): Use fixed sized custom hash; make inline.
2791 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2792 calls of lookup_type_pair.
2793 (print_gimple_types_stats): Remove cache stats.
2794 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2797 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2799 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2800 when TARGET_RDRND is active.
2801 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2802 Generate dummy SImode target register when target is NULL.
2804 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2806 * config/arm/arm-fpus.def: New.
2807 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2809 * config/arm/arm-tables.opt: Regenerate.
2810 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2811 (arm_option_override): Don't decode FPU name to string here.
2812 * config/arm/arm.opt (mfpu=): Use Enum.
2813 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2814 Update dependencies.
2816 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2818 * collect2.c: Include diagnostic.h.
2819 (fatal_perror, fatal, error, fancy_abort): Remove.
2820 (main): Set progname. Call xmalloc_set_program_name and
2821 diagnostic_initialize.
2822 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2823 scan_libraries, resolve_lib_name): Call fatal_error instead of
2824 fatal and fatal_perror.
2825 * collect2.h (error, fatal, fatal_perror): Don't declare.
2826 * tlink.c: Include diagnostic-core.h.
2827 (recompile_files): Call fatal_error instead of fatal_perror.
2828 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2829 pretty-print.o and input.o.
2830 (collect2.o, tlink.o): Update dependencies.
2832 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2834 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2836 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2839 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2840 COMDAT group syntax, both SPARC and x86 variants.
2841 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2842 * configure: Regenerate.
2843 * config/sol2.h (TARGET_SOLARIS): Define.
2844 (PUSHSECTION_FORMAT): Remove.
2845 (SECTION_NAME_FORMAT): Define.
2846 * config/sol2.c: Include hashtab.h.
2847 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2848 expansion, using SECTION_NAME_FORMAT.
2849 (solaris_comdat_htab): New variable.
2850 (struct comdat_entry): Define.
2851 (comdat_hash): New function.
2852 (comdat_eq): New function.
2853 (solaris_elf_asm_comdat_section): New function.
2854 (solaris_define_comdat_signature): New function.
2855 (solaris_code_end): New function.
2856 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2857 (solaris_code_end): Declare.
2858 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2859 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2861 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2862 Remove ATTRIBUTE_UNUSED.
2863 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2864 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2865 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2866 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2867 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2868 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2869 (PUSHSECTION_FORMAT): Remove.
2870 (SECTION_NAME_FORMAT): Redefine.
2872 2011-05-19 Kai Tietz <ktietz@redhat.com>
2874 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2875 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2876 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2878 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2879 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2881 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2883 2011-05-19 Richard Guenther <rguenther@suse.de>
2886 * tree-object-size.c (addr_object_size): If the pointed-to
2887 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2889 2011-05-19 Richard Guenther <rguenther@suse.de>
2891 * gimple.c (gimple_types_compatible_p_1): Compare names of
2892 the types themselves.
2893 (iterative_hash_gimple_type): And hash them that way.
2894 (gimple_register_type_1): If we register a main variant properly
2895 initialize the leader to ourselves.
2897 2011-05-19 Tom de Vries <tom@codesourcery.com>
2900 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2901 get_loop_invariant_expr_id.
2902 (get_loop_invariant_expr_id): Use get_expr_id.
2903 (parm_decl_cost): New function.
2904 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2905 Improve bound cost estimation. Use different inv_expr_id for elim and
2908 2011-05-19 Tom de Vries <tom@codesourcery.com>
2911 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2912 cost_base.cost == 0.
2914 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2917 * config/i386/sse.md
2918 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2921 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2923 PR tree-optimization/49039
2924 * tree-vrp.c (extract_range_from_binary_expr): For
2925 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2926 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2928 2011-05-18 Tom de Vries <tom@codesourcery.com>
2931 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2933 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2935 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2936 (*tls_global_dynamic_64): Ditto.
2937 (*tls_local_dynamic_base_32_gnu): Ditto.
2938 (*tls_local_dynamic_base_64): Ditto.
2939 (tls_initial_exec_64_sun): Ditto.
2941 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2943 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2944 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2946 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2947 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2948 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2949 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2950 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2951 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2952 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2954 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2956 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2957 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2958 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2959 target_thread_pointer, arm_structure_size_boundary, struct
2960 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2961 struct abi_name, arm_all_abis): Remove.
2962 (arm_option_override) Don't process most enumerated option values here.
2963 Don't process target_fpe_name here. Work with integer not string for
2964 structure size boundary; use separate diagnostics for each case.
2965 * config/arm/arm.h (enum float_abi_type, enum
2966 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2968 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2969 arm_structure_size_boundary): Remove.
2970 * config/arm/arm.opt (mabi=): Use Enum and Init.
2971 (arm_abi_type): New Enum and EnumValue entries.
2972 (mfloat-abi=): Use Enum and Init.
2973 (float_abi_type): New Enum and EnumValue entries.
2974 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2975 (mfp16-format=): Use Enum and Init.
2976 (arm_fp16_format_type): New Enum and EnumValue entries.
2977 (mstructure-size-boundary=): Use UInteger and Init.
2978 (mtp=): Use Enum and Init.
2979 (arm_tp_type): New Enum and EnumValue entries.
2981 2011-05-18 Richard Guenther <rguenther@suse.de>
2983 PR tree-optimization/49018
2984 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2985 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2986 gimple_has_side_effects.
2988 2011-05-18 Richard Guenther <rguenther@suse.de>
2990 * gimple.c (gimple_register_type_1): New function, split out from ...
2991 (gimple_register_type): ... here. Avoid infinite recursion.
2993 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2995 PR tree-optimization/41881
2996 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2997 reduction_chains along with a macro for its access.
2998 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2999 (destroy_loop_vec_info): Free reduction chains.
3000 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3001 (vect_is_slp_reduction): New function.
3002 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3003 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3004 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3005 definition types for reduction chains.
3006 (vect_supported_load_permutation_p): Don't allow permutations for
3008 (vect_analyze_slp_instance): Support reduction chains.
3009 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3010 (vect_get_constant_vectors): Handle reduction chains.
3011 (vect_schedule_slp_instance): Mark the first statement of the
3012 reduction chain as reduction.
3014 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3016 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3017 names for group elements access.
3018 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3019 reduction chains as well. Remove data reference and interleaving
3020 related words from the fields names.
3021 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3023 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3024 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3025 vect_update_interleaving_chain, vect_same_range_drs,
3026 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3027 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3028 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3029 vect_analyze_group_access, vect_analyze_data_ref_access,
3030 vect_create_data_ref_ptr, vect_transform_strided_load,
3031 vect_record_strided_load_vectors): Likewise.
3032 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3033 vect_model_load_cost, vectorizable_store, vectorizable_load,
3034 vect_remove_stores, new_stmt_vec_info): Likewise.
3035 * tree-vect-slp.c (vect_build_slp_tree,
3036 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3038 2011-05-18 Richard Guenther <rguenther@suse.de>
3041 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3042 operand verification.
3043 (verify_gimple_assign_binary): Likewise.
3044 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3045 to non-1-precision BOOLEAN_TYPEs.
3047 2011-05-18 Tom de Vries <tom@codesourcery.com>
3050 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3052 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3054 PR tree-optimization/49000
3055 * tree-ssa.c (execute_update_addresses_taken): Call
3056 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3057 be rewritten and decl has been marked for renaming, reset
3060 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3062 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3063 enum_opts_set when testing if attributes have set -mfpmath=.
3065 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3067 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3069 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3071 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3073 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3074 id.transform_lang_insert_block with NULL.
3076 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3078 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3079 (output_fp_compare): Change args 3 and 4 to bool.
3080 (ix86_expand_call): Change arg 6 to bool.
3081 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3082 (ix86_attr_length_vex_default): Change arg 3 to bool.
3083 * config/i386/i386.md: Update all uses.
3084 * config/i386/i386.c: Ditto.
3085 (ix86_flags_dependent): Change return type to bool.
3087 2011-05-17 Richard Guenther <rguenther@suse.de>
3089 * gimple.c (type_hash_pair_compare): Fix comparison.
3091 2011-05-17 Richard Guenther <rguenther@suse.de>
3093 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3094 case some more, fix final hash value of the non-singleton case.
3096 2011-05-17 Richard Guenther <rguenther@suse.de>
3100 2011-05-16 Richard Guenther <rguenther@suse.de>
3102 * gimple.c (gimple_types_compatible_p_1): Use names of the
3103 type itself, not its main variant.
3104 (iterative_hash_gimple_type): Likewise.
3106 2011-05-17 Richard Guenther <rguenther@suse.de>
3108 * gimple.c (gimple_register_canonical_type): Use the main-variant
3109 leader for computing the canonical type.
3111 2011-05-17 Nick Clifton <nickc@redhat.com>
3113 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3116 * config/rx/rx.md: Add peephole to remove redundant extensions
3118 (bitset_in_memory): Use rx_restricted_mem_operand.
3119 (bitinvert_in_memory): Likewise.
3120 (bitclr_in_memory): Likewise.
3122 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3123 Nick Clifton <nickc@redhat.com>
3125 * config/rx/rx.md: Add peepholes to match a register move followed
3126 by a comparison of the moved register. Replace these with an
3127 addition of zero that does both actions in one instruction.
3129 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3132 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3133 predicate to allow CONST_INT.
3134 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3136 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3138 * opts-common.c (opt_enum_arg_to_value): New.
3139 * opts.h (opt_enum_arg_to_value): Declare.
3140 * config/i386/i386.opt (fpmath): Remove.
3141 (mfpmath=): Use Enum, Init and Save.
3142 (fpmath_unit): New Enum and EnumValue entries.
3143 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3144 name for function fpmath state.
3145 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3146 * config/i386/i386.c: Include diagnostic.h.
3147 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3148 (ix86_target_string): Take enum fpmath_unit value instead of string.
3149 (ix86_debug_options): Update call to ix86_target_string.
3150 (ix86_option_override_internal): Don't process fpmath strings here.
3151 (x86_function_specific_save, ix86_function_specific_restore):
3152 Don't handle fpmath state specially.
3153 (ix86_function_specific_print): Pass fpmath state to
3154 ix86_target_string instead of printing in this function.
3155 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3156 Handle enum attributes.
3157 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3158 (ix86_valid_target_attribute_tree): Update option_strings
3159 handling. Handle fpmath as enum option.
3160 (ix86_can_inline_p): Update field names for function fpmath state.
3161 (ix86_expand_builtin): Update call to ix86_target_string.
3162 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3163 (ix86_fpmath): Remove.
3164 * config/i386/t-i386 (i386.o): Update dependencies.
3166 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3168 PR preprocessor/48677
3169 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3170 from decoded_options[0], not from itself.
3172 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3174 * config/i386/constraints.md (z): New constraint.
3175 * config/i386/i386.c (c): New mode attribute.
3176 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3177 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3178 constraint for operand 0.
3179 (*call_vzeroupper): Ditto.
3180 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3181 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3182 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3183 Use "lzm" constraint for operand 0.
3184 (*call_pop_vzeroupper): Ditto.
3185 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3186 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3187 constraint for operand 0.
3188 (*sibcall_vzeroupper): Ditto.
3189 (*sibcall_rex64_ms_sysv): Ditto.
3190 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3191 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3192 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3193 (*sibcall_pop_vzeroupper): Ditto.
3194 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3195 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3196 mode iterator. Use "<c>zm" constraint for operand 1.
3197 (*call_value_vzeroupper): Ditto.
3198 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3200 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3201 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3202 *call_value_pop_1. Use "lzm" constraint for operand 1.
3203 (*call_value_pop_vzeroupper): Ditto.
3204 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3205 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3206 mode iterator. Use "Uz" constraint for operand 1.
3207 (*sibcall_value_vzeroupper): Ditto.
3208 (*sibcall_value_rex64_ms_sysv): Ditto.
3209 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3210 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3211 constraint for operand 1.
3212 (*sibcall_value_pop_vzeroupper): Ditto.
3213 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3214 and "z" constraint for operand 2.
3215 (*tls_global_dynamic_32_gnu): Ditto.
3216 (*tls_local_dynamic_base_32_gnu): Ditto.
3217 (*tls_local_dynamic_base_64): Ditto.
3218 (*tls_local_dynamic_32_once): Ditto.
3219 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3221 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3223 2011-05-16 Richard Guenther <rguenther@suse.de>
3225 * gimple.c (gimple_types_compatible_p_1): Use names of the
3226 type itself, not its main variant.
3227 (iterative_hash_gimple_type): Likewise.
3229 2011-05-16 Richard Guenther <rguenther@suse.de>
3231 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3232 always visit pointer target and function result and argument types.
3234 2011-05-16 Jason Merrill <jason@redhat.com>
3237 * tree-inline.c (copy_statement_list): Put back recursion.
3239 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3243 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3244 * config/avr/avr.md ("*ior<mode>qi.byte0",
3245 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3247 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3250 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3251 register is needed for a function argument.
3253 2011-05-16 Richard Guenther <rguenther@suse.de>
3255 * gimple.c (struct type_hash_pair): New type.
3256 (type_hash_pair_compare): New function.
3257 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3259 2011-05-16 Revital Eres <revital.eres@linaro.org>
3261 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3263 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3265 * config/i386/i386.md (floating point move splitters): Fix
3266 usage of standard_80387_constant_p.
3267 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3269 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3271 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3273 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3275 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3276 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3277 (tree_ssa_lim_finalize): Likewise.
3279 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3281 * config/i386/constraint.md (Yd, Yx): New register constraints.
3282 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3283 Yd conditional register constraint.
3284 (*movtf_internal): Use standard_sse_constant_opcode.
3285 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3286 Yx conditional register constraint.
3287 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3288 Yd conditional register constraint. Use standard_sse_constant_p to
3289 check for valid SSE constants and call standard_sse_constant_opcode to
3291 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3292 constants and call standard_sse_constant_opcode to output SSE insn.
3293 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3294 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3295 optimize_size is set.
3296 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3298 2011-05-14 Tobias Burnus <burnus@net-b.de>
3300 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3302 2011-05-13 Martin Jambor <mjambor@suse.cz>
3304 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3305 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3306 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3307 (evaluate_conditions_for_ipcp_clone): Removed.
3308 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3309 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3310 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3312 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3314 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3315 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3316 lieu of MAY_HAVE_DEBUG_STMTS.
3317 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3318 debug statements if !MAY_HAVE_DEBUG_STMTS.
3320 2011-05-13 Martin Thuresson <martint@google.com>
3322 PR gcov-profile/47793
3323 * libgcov.c (gcov_exit): Support relative profile paths.
3324 * doc/invoke.texi (-fprofile-dir): Update for above change.
3326 2011-05-13 Richard Guenther <rguenther@suse.de>
3328 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3329 type-pair caching, do not compare hashes.
3331 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3334 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3335 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3337 2011-05-13 Kai Tietz <ktietz@redhat.com>
3339 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3340 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3341 compatible type for TRUTH_NOT_EXPR.
3343 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3345 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3346 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3347 can_create_pseudo_p ().
3349 2011-05-13 Richard Guenther <rguenther@suse.de>
3352 * gimple.c (iterative_hash_gimple_type): Revert change in
3353 pointer target and function result and argument hashing.
3355 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3357 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3358 (*movxf_internal_nointeger): Ditto.
3359 (*movdf_internal_rex64): Ditto.
3360 (*movdf_internal): Ditto.
3361 (*movdf_internal_nointeger): Ditto.
3362 (*movsf_internal): Ditto.
3363 (sincos splitters): Use can_create_pseudo ().
3365 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3367 * config/i386/i386-opts.h: New.
3368 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3369 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3370 ix86_section_threshold): Remove.
3371 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3372 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3374 (ix86_option_override_internal): Don't decode strings for options
3375 other than -march=, -mtune= and -mfpmath=. Don't allow for
3376 __attribute__ uses in remaining diagnostics for options with
3377 string arguments. Don't check for integer arguments being negative.
3378 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3379 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3380 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3381 ix86_branch_cost, ix86_section_threshold): Remove.
3382 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3384 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3386 (masm=): Use Enum and Init.
3387 (asm_dialect): New Enum and EnumValue entries.
3388 (mbranch-cost=): Use UInteger.
3389 (mlarge-data-threshold=): Use UInteger and Init.
3390 (mcmodel=): Use Enum and Init.
3391 (cmodel): New Enum and EnumValue entries.
3392 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3393 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3394 mregparm=): Use UInteger.
3395 (mstringop-strategy=): Use Enum and Init.
3396 (stringop_alg): New Enum and EnumValue entries.
3397 (mtls-dialect=): Use Enum and Init.
3398 (tls_dialect): New Enum and EnumValue entries.
3399 (mabi=): Use Enum and Init.
3400 (calling_abi): New Enum and EnumValue entries.
3401 (mveclibabi=): Use Enum and Init.
3402 (ix86_veclibabi): New Enum and EnumValue entries.
3404 2011-05-13 Nick Clifton <nickc@redhat.com>
3406 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3407 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3409 2011-05-13 Kai Tietz <ktietz@redhat.com>
3412 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3413 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3414 (gimple_boolify): Check for cast for boolean_type_node instead for
3417 2011-05-13 Richard Guenther <rguenther@suse.de>
3419 PR tree-optimization/48172
3420 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3421 multiplying by number of iterations for equal step.
3422 (vect_create_cond_for_alias_checks): Likewise.
3424 2011-05-13 Andreas Schwab <schwab@redhat.com>
3426 * configure.ac: Use AS_HELP_STRING throughout.
3427 * configure: Regenerate.
3429 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3431 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3432 (ix86_emit_restore_regs_using_mov): Likewise.
3433 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3435 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3437 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3438 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3439 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3440 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3441 RTX_OK_FOR_OLO10_P): ...here.
3442 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3445 2011-05-12 Kai Tietz <ktietz@redhat.com>
3447 * gimplify.c (gimple_boolify): Re-boolify expression
3448 arguments even if expression type is of kind BOOLEAN_TYPE.
3449 (gimplify_boolean_expr): Removed.
3450 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3451 and XOR. Additional take care that we keep expression's type.
3452 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3453 of TRUTH_AND|OR|XOR_EXPR.
3455 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3457 PR tree-optimization/48975
3458 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3459 on all bbs here and free and clear ifc_bbs at the end.
3461 2011-05-12 Richard Guenther <rguenther@suse.de>
3463 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3464 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3465 until after simple checks.
3466 (gimple_types_compatible_p): Likewise.
3467 (iterative_hash_gimple_type): Always hash pointer targets
3468 and function return and argument types.
3469 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3470 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3471 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3472 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3473 completely in the simple compare section.
3474 (gimple_register_canonical_type): Query the cache again after
3477 2011-05-12 Richard Guenther <rguenther@suse.de>
3479 PR tree-optimization/48172
3480 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3481 the number of iterations from the segment size calculation.
3482 (vect_create_cond_for_alias_checks): Adjust.
3484 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3487 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3488 if validate_subreg fails.
3490 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3492 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3493 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3496 2011-05-12 DJ Delorie <dj@redhat.com>
3498 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3499 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3500 created builtin into rx_builtins array.
3501 (rx_builtin_decl): New function.
3502 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3504 2011-05-12 DJ Delorie <dj@redhat.com>
3505 Nick Clifton <nickc@redhat.com>
3507 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3508 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3509 (rx_is_legitimate_address): Add pre-decrement and post-increment
3510 addressing in HImode and QImode. Fix test for out of range
3512 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3513 (rx_align_for_label): Test label before extracting its usage count.
3514 (rx_adjust_insn_lengths): Fix selection of insn codes.
3515 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3517 2011-05-11 Jason Merrill <jason@redhat.com>
3519 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3521 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3523 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3524 reindent the subsequent block.
3526 2011-05-11 Satoru Takabayashi <satorux@google.com>
3527 Paul Pluzhnikov <ppluzhnikov@google.com>
3529 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3530 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3531 * config.in: Add LINKER_HASH_STYLE.
3532 * configure.ac: Add --with-linker-hash-style.
3533 * configure: Regenerate.
3535 2011-05-11 Richard Guenther <rguenther@suse.de>
3538 * gimple.c (iterative_hash_canonical_type): Fix typo.
3540 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3542 * config/i386/i386.c (legitimize_tls_address)
3543 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3544 expanders directly for TARGET_GNU2_TLS. Determine pic and
3545 __tls_get_addr symbol reference here. Update call to
3546 gen_tls_global_dynamic_{32,64} for added arguments.
3547 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3548 expanders directly for TARGET_GNU2_TLS. Determine
3549 __tls_get_addr symbol reference here. Update call to
3550 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3551 unique UNSPEC REG_EQUIV to libcall block.
3552 (ix86_tls_get_addr): Declare static.
3553 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3554 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3555 Do not determine pic and __tls_get_addr symbol reference here. Do not
3556 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3557 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3558 (tls_global_dynamic_64): Add operand 2. Do not determine
3559 __tls_get_addr symbol reference here. Do not call
3560 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3561 (tls_local_dynamic_base64): Ditto for operand 1.
3563 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3565 * function.c (expand_function_start): Initialize stack_check_probe_note
3566 only if the generic stack checking mechanism is used.
3568 2011-05-11 Richard Guenther <rguenther@suse.de>
3570 PR tree-optimization/15256
3571 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3572 (A & B) | C, combine (A op CST1) op CST2.
3573 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3574 visit assigns that have uses.
3576 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3578 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3579 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3580 (unpack_ts_type_common_value_fields): ...this. Update comment.
3581 (unpack_value_fields): Adjust for renaming.
3582 (lto_input_ts_type_tree_pointers): Split into...
3583 (lto_input_ts_type_common_tree_pointer): ...this and...
3584 (lto_input_ts_type_non_common_tree_pointers): ...this.
3585 (lto_input_tree_pointers): Adjust for above split.
3586 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3587 (pack_ts_type_common_value_fields): ...this. Update comment.
3588 (lto_output_ts_type_tree_pointers): Split into...
3589 (lto_output_ts_type_common_tree_pointers): ...this and...
3590 (lto_output_ts_type_non_common_tree_pointers): ...this.
3591 (lto_output_tree_pointers): Adjust for above split.
3592 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3593 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3594 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3595 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3597 (struct tree_type): Split into...
3598 (struct tree_type_common: ...this and...
3599 (struct tree_type_with_lang_specific): ...this and...
3600 (struct tree_type_non_common): ...this. Adjust accessor macros
3602 (TYPE_VALUES_RAW): Define.
3603 (union tree_node): Update for above changes.
3604 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3606 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3607 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3608 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3609 * treestructu.def (TS_TYPE): Remove.
3610 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3613 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3616 * tree-ssa.c (reset_debug_uses): New function.
3617 * tree-flow.h (reset_debug_uses): New prototype.
3618 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3619 * tree-loop-distribution.c (generate_loops_for_partition): Call
3620 reset_debug_uses on the stmts that will be removed. Keep around
3621 all debug stmts, don't count them as bits in partition bitmap.
3622 (generate_builtin): Don't count debug stmts or labels as bits in
3625 2011-05-11 Richard Guenther <rguenther@suse.de>
3627 * gimple.c (gimple_type_hash_1): Merge with ...
3628 (gimple_type_hash): ... this.
3629 (gtc_visit): Remove mode parameter and simplify accordingly.
3630 (gimple_types_compatible_p_1): Likewise.
3631 (gimple_types_compatible_p): Likewise.
3632 (iterative_hash_gimple_type): Likewise.
3634 (gimple_type_eq): Adjust.
3636 2011-05-11 Revital Eres <revital.eres@linaro.org>
3638 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3639 enters the branch create an anti edge in the opposite direction
3640 to prevent the creation of reg-moves.
3641 * modulo-sched.c: Adjust comment to reflect the fact we are
3642 scheduling closing branch.
3643 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3644 (stage_count): New field in struct partial_schedule.
3645 (calculate_stage_count): New function.
3646 (normalize_sched_times): Rename to reset_sched_times and handle
3647 incrementing the sched time of the nodes by a constant value
3648 passed as parameter.
3649 (duplicate_insns_of_cycles): Skip closing branch.
3650 (sms_schedule_by_order): Schedule closing branch.
3651 (ps_insn_find_column): Handle closing branch.
3652 (sms_schedule): Call reset_sched_times and adjust the code to
3653 support scheduling of the closing branch.
3654 (ps_insert_empty_row): Update calls to normalize_sched_times
3655 and rotate_partial_schedule functions.
3657 2011-05-11 Richard Guenther <rguenther@suse.de>
3660 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3662 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3664 * opts.c (finish_options): Move warning settings from process_options.
3665 * toplev.c (process_options): Move warning settings to finish_options.
3667 2011-05-11 Richard Guenther <rguenther@suse.de>
3669 PR tree-optimization/18041
3670 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3671 (simplify_bitwise_binary): ... this. Handle operand conversions
3672 by applying them to the result instead.
3673 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3675 2011-05-11 Richard Guenther <rguenther@suse.de>
3677 * gimple.c (gimple_canonical_types_compatible_p): Split out
3678 from gimple_types_compatible_p and friends. Do not recurse
3679 to pointed-to types.
3680 (gimple_canonical_type_eq): Use it.
3681 (iterative_hash_canonical_type): Split out from
3682 iterative_hash_gimple_type and friends. Do not recurse
3683 to pointed-to types.
3684 (gimple_canonical_type_hash): Use it, allocate the hash here.
3686 2011-05-11 Revital Eres <revital.eres@linaro.org>
3688 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3691 2011-05-11 Revital Eres <revital.eres@linaro.org>
3693 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3694 instead of PREV_INSN.
3696 2011-05-11 Revital Eres <revital.eres@linaro.org>
3698 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3699 * loop-doloop.c (doloop_condition_get): Likewise.
3700 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3702 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3704 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3706 * tree.def (CASE_LABEL_EXPR): Add an operand.
3707 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3709 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3711 * c-decl.c (c_override_global_bindings_to_false): Remove.
3712 (global_bindings_p): Don't check
3713 c_override_global_bindings_to_false.
3714 * c-tree.h (c_override_global_bindings_to_false): Remove.
3715 * c-typeck.c (composite_type): Don't set
3716 c_override_global_bindings_to_false.
3718 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3720 PR target/48857, 48495
3721 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3723 (VSX_MOVE_MODE): Ditto.
3724 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3725 VSX vector types. Add V2DImode.
3726 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3727 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3728 (MODES_TIEABLE_P): Ditto.
3730 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3731 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3733 (init_cumulative_args): Ditto.
3734 (rs6000_function_arg_boundary): Ditto.
3735 (rs6000_function_arg_advance_1): Ditto.
3736 (rs6000_function_arg): Ditto.
3737 (rs6000_function_ok_for_sibcall): Ditto.
3738 (emit_frame_save): Ditto.
3739 (rs6000_function_value): Ditto.
3740 (rs6000_libcall_value): Ditto.
3742 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3744 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3745 i386/darwin-lib.h to $libgcc_tm_file.
3746 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3748 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3750 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3752 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3754 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3755 * config/rs6000/rs6000-tables.opt: New file (generated).
3756 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3757 rs6000/rs6000-tables.opt to extra_options.
3758 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3759 * config/rs6000/rs6000.c (rs6000_select): Remove.
3760 (processor_target_table): Move contents to rs6000-cpus.def.
3761 (darwin_rs6000_override_options): Check
3762 global_options_set.x_rs6000_cpu_index instead of
3763 rs6000_select[1].string.
3764 (rs6000_option_override_internal): Likewise.
3765 (rs6000_handle_option): Don't assert that global structures are in
3766 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3767 (rs6000_default_cpu): New variable.
3768 (rs6000_file_start): Set it instead of local default_cpu. Check
3769 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3770 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3771 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3772 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3773 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3774 rs6000_select): Remove.
3775 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3777 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3778 * config/rs6000/t-rs6000
3779 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3780 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3781 global_options_set.x_rs6000_cpu_index instead of
3782 rs6000_select[1].string.
3783 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3784 global_options_set.x_rs6000_cpu_index instead of
3785 rs6000_select[1].string.
3787 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3789 * config.gcc (libgcc_tm_file): Define instead of including files
3790 from ../../libgcc/config/ in tm_file.
3791 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3792 * configure: Regenerate.
3793 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3794 libgcc_tm.h, cs-libgcc_tm.h): New.
3795 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3796 (clean): Remove libgcc_tm.h.
3797 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3798 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3799 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3801 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3804 * config/avr/avr.c (avr_ret_register): Return unsigned int
3806 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3807 it to avr_libcall_value.
3808 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3810 (avr_expand_binop_builtin): Ditto.
3811 (avr_expand_unop_builtin): Ditto.
3813 2011-05-10 DJ Delorie <dj@redhat.com>
3815 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3816 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3817 * config/rx/rx.c (rx_align_for_label): Add label and
3818 uses_threshold parameters. Do not align when the label is not
3820 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3822 2011-05-10 Richard Guenther <rguenther@suse.de>
3824 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3825 a series of conversions and apply foldings similar to what
3827 (tree_ssa_forward_propagate_single_use_vars): Call it.
3829 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3831 PR tree-optimization/48611
3832 PR tree-optimization/48794
3833 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3834 referenced from RESX or EH_DISPATCH arguments.
3837 * dfp.c (decimal_to_decnumber): Handle conversion from
3838 dconst{1,2,m1,half}.
3840 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3842 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3843 for !flag_prefer_avx128.
3844 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3846 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3848 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3849 (fold_ternary_loc): Use expr_location_or.
3851 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3854 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3855 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3856 Pmode and mem_mode is not VOIDmode.
3858 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3860 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3861 TYPE_QUAL_RESTRICT): Convert to enum.
3863 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3865 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3866 (const_pow2_1_to_8_operand): Ditto.
3867 (const_pow2_1_to_128_operand): Ditto.
3868 (const_pow2_1_to_32768_operand): Ditto.
3869 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3870 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3871 in insn constraint to check integer value of operand 3.
3872 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3874 (PINSR_MODE): New mode iterator.
3875 (sse2p4_1): New mode attribute.
3876 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3877 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3878 iterator. Use const_int_operand instead of
3879 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3880 exact_log2 in insn constraint to check integer value of operand 3.
3882 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3884 * config/i386/sse.md (blendbits): Remove mode attribute.
3885 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3886 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3887 Check integer value of operand 3 in insn constraint.
3889 2011-05-09 Richard Guenther <rguenther@suse.de>
3891 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3893 (lto_symtab_merge): Likewise. Do not register types here.
3894 (lto_symtab_merge_decls_2): Likewise.
3895 (lto_symtab_merge_decls_1): Likewise.
3896 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3897 * gimple.c (enum gtc_mode): Declare.
3898 (gimple_types_compatible_p): Make static.
3900 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3902 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3903 temporary register to match Pmode.
3905 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3907 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3908 and *vec_concatv4si_1_avx.
3910 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3912 PR rtl-optimization/48927
3913 * ira-conflicts.c (commutative_constraint_p): Use
3914 recog_data.alternative_enabled_p to disable alternatives where
3915 "enabled" attribute is false.
3916 (get_dup_num): Ditto.
3917 * ira-lives.c (single_reg_class): Ditto.
3918 (ira_implicitly_set_insn_hard_regs): Ditto.
3920 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3922 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3923 (dataflow_set_preserve_mem_locs): Likewise.
3925 2011-05-09 Philipp Thomas <pth@suse.de>
3927 * config/mep/mep.c (mep_validate_vliw): Syntax description
3928 should not be translated.
3930 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3932 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3933 * config/mips/mips-tables.opt: New file (generated).
3934 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3935 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3936 MIPS_ARCH_OPTION_NATIVE): Define.
3937 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3939 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3940 mips_parse_cpu): Remove.
3941 (mips_cpu_info_from_opt, mips_default_arch): New.
3942 (mips_handle_option): Don't assert that global structures are in
3943 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3944 (mips_option_override): Use new variables and functions to set
3945 state of these options. Use strcmp to check for individual CPU names.
3946 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3948 * config/mips/mips.opt (march=): Use ToLower and Enum.
3949 (mips): Use ToLower, Enum and Var.
3950 (mtune=): Use ToLower and Enum.
3951 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3953 2011-05-08 Jan Hubicka <jh@suse.cz>
3955 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3956 Arrange type pairs to be UID ordered.
3957 (gimple_lookup_type_leader): Make inline.
3959 2011-05-09 Nick Clifton <nickc@redhat.com>
3962 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3966 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3969 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3971 * combine.c (simplify_comparison): Abstract out parts into...
3972 (simplify_compare_const): ... new function.
3973 (try_combine): Generalize parallel arithmetic/compare combining
3974 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3976 2011-05-08 Jan Hubicka <jh@suse.cz>
3978 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3979 (cgraph_create_virtual_clone): Call hooks once virtual clone
3981 * cgraph.h (cgraph_clone_node): Update prototype.
3982 * ipa-cp.c (ipcp_estimate_growth): Use
3983 estimate_ipcp_clone_size_and_time.
3984 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3985 * lto-cgraph.c (input_node): Update.
3986 * ipa-inline.c (recursive_inlining): Update.
3987 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3988 (evaluate_conditions_for_known_args): Break out from ...
3989 (evaluate_conditions_for_edge): ... here.
3990 (evaluate_conditions_for_ipcp_clone): New function.
3991 (inline_node_duplication_hook): Update clone summary based
3993 (estimate_callee_size_and_time): Rename to ...
3994 (estimate_node_size_and_time): take NODE instead of EDGE;
3995 take POSSIBLE_TRUTHS as argument.
3996 (estimate_callee_size_and_time): Update.
3997 (estimate_ipcp_clone_size_and_time): New function.
3998 (do_estimate_edge_time): Update.
4000 2011-05-08 Richard Guenther <rguenther@suse.de>
4004 * expmed.c (expand_shift_1): Compute adjusted constant shift
4007 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4009 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4011 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4013 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4015 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4017 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4019 2011-05-07 Jan Hubicka <jh@suse.cz>
4021 * ipa-inline-transform.c (inline_call): Account when program size
4023 * ipa-inline.c (relative_time_benefit): New function.
4024 (edge_badness): Reorganize to be power 2 based; fix thinko when
4025 computing badness for negative growth; update comments to match
4026 reality; better dumps.
4028 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4030 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4031 type to bool and adjust comment.
4032 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4033 (fold_mathfn_compare): Remove calls to global_bindings_p.
4034 (fold_inf_compare): Likewise.
4035 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4036 * c-tree.h (global_bindings_p): Adjust prototype.
4037 * c-decl.c (global_bindings_p): Return bool and simplify.
4039 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4041 PR tree-optimization/48837
4042 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4043 when accumulator transformation is performed.
4045 2011-05-06 Jan Hubicka <jh@suse.cz>
4047 * i386.h (ix86_tune_indices): Add
4048 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4049 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4050 * i386.c (initial_ix86_tune_features): Add
4051 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4052 (software_prefetching_beneficial_p): Remove predicate.
4053 (ix86_option_override_internal): Use new macro.
4055 2011-05-06 Jan Hubicka <jh@suse.cz>
4057 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4059 2011-05-06 Jan Hubicka <jh@suse.cz>
4061 * cgraph.c (cgraph_add_thunk): Create real function node instead
4062 of alias node; finalize it and mark needed/reachale; arrange visibility
4063 to be right and add it into the corresponding same comdat group list.
4064 (dump_cgraph_node): Dump thunks.
4065 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4066 cgraph_function_with_gimple_body_p,
4067 cgraph_first_function_with_gimple_body,
4068 cgraph_next_function_with_gimple_body): New functions.
4069 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4071 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4072 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4073 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4074 devirtualization when optimizing.
4075 (verify_cgraph_node): Verify thunks.
4076 (cgraph_analyze_function): Analyze thunks.
4077 (cgraph_mark_functions_to_output): Output thunks only in combination
4078 with function they are assigned to.
4079 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4080 alias into normal node.
4081 (assemble_thunks): New functoin.
4082 (cgraph_expand_function): Use it.
4083 * lto-cgraph.c (lto_output_node): Stream thunks.
4084 (input_overwrite_node): Stream in thunks.
4085 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4086 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4087 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4088 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4089 (inline_analyze_function): Do not care about thunk jump functions.
4090 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4091 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4092 cgraph_function_with_gimple_body_p.
4093 * passes.c (do_per_function_toporder): Use
4094 cgraph_function_with_gimple_body_p.
4095 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4096 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4097 (function_called_by_processed_nodes_p): Likewise.
4099 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4101 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4102 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4104 (mabi=): Replace with separate entries for mabi=altivec,
4105 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4106 mabi=ieeelongdouble and mabi=ibmlongdouble.
4107 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4108 check for -mabi=spe without SPE ABI support here.
4109 (rs6000_handle_option): Replace OPT_mabi_ handling with
4110 OPT_mabi_altivec and OPT_mabi_spe handling.
4112 2011-05-06 Cary Coutant <ccoutant@google.com>
4114 * dwarf2out.c (contains_subprogram_definition): New function.
4115 (should_move_die_to_comdat): Call it.
4117 2011-05-06 Jeff Law <law@redhat.com>
4119 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4120 remove_ctrl_stmt_and_useless_edges.
4121 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4122 (fixup_template_block, thread_single_edge): Likewise.
4123 (mark_threaded_blocks): Use THREAD_TARGET.
4125 2011-05-06 Alan Modra <amodra@gmail.com>
4128 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4129 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4131 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4133 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4134 constraint modifier to "r".
4136 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4138 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4139 fall through for OPT_mcmodel_.
4141 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4143 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4145 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4147 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4150 * config/arm/arm.opt (marm): Document it.
4151 (mthumb): Reject negative variant.
4153 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4156 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4157 Fix typo in "ccvt" variable name.
4159 2011-05-06 Tristan Gingold <gingold@adacore.com>
4162 * config/vms/vms-ar.c (main): Remove cwd variable.
4164 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4167 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4169 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4171 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4172 * gimplify.c (gimplify_switch_expr): Likewise.
4173 * omp-low.c (expand_omp_sections): Likewise.
4174 * tree-eh.c (lower_try_finally_switch): Likewise.
4175 (lower_eh_dispatch): Likewise.
4176 * tree.h (build_case_label): Declare.
4177 * tree.c (build_case_label): Define.
4179 2011-05-05 Jason Merrill <jason@redhat.com>
4182 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4183 (copy_statement_list): Don't recurse.
4184 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4187 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4189 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4190 through from -mfpu= handling.
4191 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4193 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4195 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4198 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4200 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4202 (hppa[12]*-*-hpux11*): Ditto.
4203 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4204 * config/ia64/hpux-unix2003.h: New.
4205 * config/pa/pa-hpux1131.opt: New.
4206 * config/pa/pa-hpux1131.h: New.
4207 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4208 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4209 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4211 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4214 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4215 instead of mode as 3rd argument to recursive call.
4216 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4217 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4219 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4220 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4221 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4222 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4224 2011-05-05 Julian Brown <julian@codesourcery.com>
4226 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4227 parenthesis in D-register case.
4229 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4231 * opt-functions.awk (var_type_struct): Handle Enum options.
4232 * optc-gen.awk: Don't check range of variables of character type.
4233 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4234 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4235 rs6000_sdata_name, rs6000_explicit_options): Remove.
4236 (rs6000_option_override_internal): Check for -malign-power here.
4237 Use global_options_set instead of rs6000_explicit_options.
4238 (rs6000_parse_fpu_option): Remove.
4239 (rs6000_handle_option): Access variables via opts and opts_set
4240 pointers. Use error_at and warning_at. Add fall-through
4241 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4242 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4243 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4244 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4245 here. Don't use rs6000_parse_fpu_option.
4246 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4247 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4248 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4250 (mspe): Use Var and Save.
4251 (mtraceback=): Use Enum and Var.
4252 (rs6000_traceback_type): New Enum and EnumValue entries.
4253 (mfloat-gprs=): Use Enum, Var and Save.
4254 (rs6000_float_gprs): New Enum and EnumValue entries.
4255 (mlong-double-): use Var and Save.
4256 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4257 (malign-): Use Enum and Var.
4258 (rs6000_alignment_flags): New Enum and EnumValue entries.
4260 (fpu_type_t): New Enum and EnumValue entries.
4261 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4262 global_options_set instead of rs6000_explicit_options.
4263 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4264 global_options_set instead of rs6000_explicit_options.
4265 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4266 global_options_set instead of rs6000_explicit_options.
4267 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4268 global_options_set instead of rs6000_explicit_options.
4269 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4270 global_options_set instead of rs6000_explicit_options.
4271 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4272 global_options_set instead of rs6000_explicit_options.
4273 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4275 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4276 global_options_set instead of rs6000_explicit_options.
4277 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4278 (rs6000_cmodel): New Enum and EnumValue entries.
4279 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4280 global_options_set instead of rs6000_explicit_options.
4281 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4282 (mtls-size=): Use Enum and Var.
4283 (rs6000_tls_size): New Enum and EnumValue entries.
4285 2011-05-05 Michael Matz <matz@suse.de>
4287 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4288 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4289 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4290 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4291 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4292 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4293 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4294 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4295 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4296 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4297 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4298 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4299 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4300 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4301 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4302 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4304 2011-05-05 Richard Guenther <rguenther@suse.de>
4306 * expmed.c (expand_variable_shift): Rename to ...
4307 (expand_shift_1): ... this. Take an expanded shift amount.
4308 For rotates recurse directly not building trees for the shift amount.
4309 (expand_variable_shift): Wrap around expand_shift_1.
4310 (expand_shift): Adjust.
4312 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4314 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4316 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4318 * tree.h (get_pending_sizes): Remove prototype.
4319 (put_pending_size): Likewise.
4320 (put_pending_sizes): Likewise.
4321 * stor-layout.c (pending_sizes): Delete.
4322 (get_pending_sizes): Likewise.
4323 (put_pending_size): Likewise.
4324 (put_pending_sizes): Likewise.
4325 (variable_size): Do not call put_pending_size and tidy up.
4326 * function.h (struct function): Remove dont_save_pending_sizes_p.
4327 * lto-streamer-in.c (input_function): Do not stream it.
4328 * lto-streamer-out.c (output_function): Likewise.
4329 * tree-inline.c (initialize_cfun): Do not copy it.
4330 * c-decl.c (store_parm_decls): Do not set it.
4331 * omp-low.c (create_task_copyfn): Likewise.
4332 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4334 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4336 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4338 (*movdf_internal): Ditto.
4339 (*movdf_internal_nointeger): Ditto.
4340 (*movsf_internal): Ditto.
4342 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4344 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4345 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4346 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4347 (c_variable_size): Remove.
4348 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4349 call put_pending_sizes.
4350 (get_parm_info): Add parameter expr. Use it to set
4351 arg_info->pending_sizes.
4352 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4354 * c-parser.c (c_parser_parms_declarator): Update call to
4355 c_parser_parms_list_declarator.
4356 (c_parser_parms_list_declarator): Take parameter expr. Update
4357 call to push_parm_decl. Update recursive call. Don't call
4358 get_pending_sizes. Update calls to get_parm_info.
4359 (c_parser_objc_method_definition): Update calls to
4360 c_parser_objc_method_decl and objc_start_method_definition.
4361 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4362 (c_parser_objc_method_decl): Add parameter expr. Update call to
4364 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4365 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4366 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4368 2011-05-05 Michael Hope <michael.hope@linaro.org>
4371 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4374 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4376 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4377 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4378 (spu_output_mi_thunk): New function.
4380 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4382 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4383 targetm.asm_out.print_operand.
4384 * config/sol2.c: Include target.h.
4386 2011-05-04 Jan Hubicka <jh@suse.cz>
4388 * ipa-inline.c (reset_edge_caches): New function.
4389 (update_caller_keys): Add check_inlinablity_for; do not
4390 reset edge caches; remove now unnecesary loop.
4391 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4392 (update_all_callee_keys): Likewise.
4393 (inline_small_functions): Sanity check cache; update code
4396 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4398 PR rtl-optimization/47612
4399 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4400 as the last insn of the sequence to be moved.
4402 2011-05-04 Tobias Burnus <burnus@net-b.de>
4405 * doc/invoke.texi (Ofast): Document that it
4406 enables Fortran's -fno-protect-parens.
4408 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4410 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4412 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4414 * stor-layout.c (variable_size): Do not issue errors.
4416 2011-05-04 Richard Guenther <rguenther@suse.de>
4418 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4419 for array-ref indices.
4420 (tree_coverage_counter_addr): Likewise.
4421 (build_fn_info_type): Use size_int for index types.
4422 (build_gcov_info): Likewise.
4424 2011-05-04 Richard Guenther <rguenther@suse.de>
4426 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4428 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4429 for constructor indices.
4430 (push_init_level): Likewise.
4432 2011-05-04 Richard Guenther <rguenther@suse.de>
4434 * explow.c (promote_mode): Move variable declarations before code.
4436 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4438 * tree.h (build_function_type_array): Declare.
4439 (build_varargs_function_type_array): Declare.
4440 (build_function_type_vec, build_varargs_function_type_vec): Define.
4441 * tree.c (build_function_type_array_1): New function.
4442 (build_function_type_array): New function.
4443 (build_varargs_function_type_array): New function.
4445 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4447 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4448 before setting STMT_VINFO_TYPE.
4450 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4452 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4453 instead of spu_pass_by_reference.
4455 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4457 * calls.c (emit_library_call_value_1): Invoke
4458 promote_function_mode hook on libcall arguments.
4459 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4460 argument being NULL.
4461 * targhooks.c (default_promote_function_mode): Lisewise.
4462 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4463 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4465 * doc/tm.texi: Document that TYPE argument might be NULL.
4467 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4469 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4471 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4474 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4476 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4478 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4479 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4481 * mips-tfile.c: ... here.
4482 Don't include coretypes.h, tm.h, filenames.h.
4483 (saber_stop): Remove definition and all calls.
4484 [__SABER__]: Remove.
4485 (__LINE__): Remove default.
4486 (Size_t, Ptrdiff_t): Remove definitions.
4487 Replace by size_t, ptrdiff_t.
4488 [!MIPS_DEBUGGING_INFO]: Remove.
4489 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4490 (progname): Add const.
4492 Replace all uses by static.
4493 (ALIGN_SYMTABLE_OFFSET): Remove default.
4494 * mips-tdump.c: Don't include coretypes.h, tm.h.
4495 Remove !MIPS_IS_STAB guard.
4496 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4497 $(TM_H), filenames.h dependencies.
4498 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4500 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4503 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4504 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4506 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4509 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4510 account and save/restore RETS.
4511 (PROFILE_BEFORE_PROLOGUE): Define.
4512 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4513 the push insn to use predecrement.
4515 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4518 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4520 2011-05-04 Nick Clifton <nickc@redhat.com>
4522 * config/mn10300/mn10300.c: Include cfgloop.h.
4524 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4525 Lcc or a FLcc insn into the instruction stream.
4526 (mn10300_block_contains_call): New function. Returns true if the
4527 given basic block contains a CALL insn.
4528 (mn10300_loop_contains_call_insn): New function. Returns true if
4529 the given loop contains a CALL insn.
4530 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4531 to use the SETLB and Lcc or FLcc insns.
4532 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4533 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4534 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4535 disable the SETLB optimization.
4536 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4537 __SETLB__ or __NO_SETLB__.
4538 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4539 (movsf_internal): Handle MDR register.
4540 (cmpsi): Make visible.
4541 (setlb): New pattern.
4543 (FLcc): New pattern.
4545 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4548 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4549 for reg<->xmm moves.
4550 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4551 (vec_concatv2di_rex64_sse): Ditto.
4552 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4553 (*vec_extractv2di_1_rex64): Ditto.
4556 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4558 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4560 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4562 2011-05-04 Richard Guenther <rguenther@suse.de>
4564 * tree.h (int_const_binop): Remove notrunc argument.
4565 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4566 create integer constants that are properly truncated.
4567 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4568 (const_binop): Remove zero notrunc argument to int_const_binop.
4569 (size_binop_loc): Likewise.
4570 (fold_div_compare): Likewise.
4571 (maybe_canonicalize_comparison_1): Likewise.
4572 (fold_comparison): Likewise.
4573 (fold_binary_loc): Likewise.
4574 (multiple_of_p): Likewise.
4575 * expr.c (store_constructor): Likewise.
4576 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4577 (maybe_fold_stmt_addition): Likewise.
4578 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4579 * stor-layout.c (layout_type): Likewise.
4580 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4581 * tree-sra.c (build_ref_for_offset): Likewise.
4582 (build_user_friendly_ref_for_offset): Likewise.
4583 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4584 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4585 * tree-ssa-loop-niter.c (inverse): Likewise.
4586 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4587 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4588 * tree-switch-conversion.c (check_range): Likewise.
4589 (build_constructors): Likewise.
4590 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4591 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4592 (extract_range_from_assert): Likewise.
4593 (vrp_int_const_binop): Likewise.
4594 (extract_range_from_binary_expr): Likewise.
4595 (extract_range_from_unary_expr): Likewise.
4596 (check_array_ref): Likewise.
4597 (find_case_label_range): Likewise.
4598 (simplify_div_or_mod_using_ranges): Likewise.
4599 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4600 comparing case labels for merging.
4602 2011-05-03 Mark Wielaard <mjw@redhat.com>
4604 * dwarf2out.c (debug_str_hash_forced): Removed.
4605 (gen_label_for_indirect_string): Removed.
4606 (get_debug_string_label): Removed.
4607 (AT_string_form): Generate label directly.
4608 (output_indirect_string): Test indirect_string_node for
4609 DW_FORM_strp instead of checking label and refcount.
4610 (prune_indirect_string): Removed.
4611 (prune_unused_types): Don't check debug_str_hash_forced or
4612 call prune_indirect_string.
4614 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4617 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4619 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4623 * combine.c (try_combine): Skip debug insns at m_split tests.
4625 2011-04-26 Mark Wielaard <mjw@redhat.com>
4628 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4629 when info_section_emitted.
4631 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4633 * config/mips/mips-opts.h: New.
4634 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4636 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4637 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4638 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4640 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4642 (mips_abi, mips_code_readable): Don't declare.
4643 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4644 (mabi=): Use Enum and Var.
4645 (mips_abi): New Enum and EnumValue entries.
4646 (mcode-readable=): Use Enum and Var.
4647 (mips_code_readable_setting): New Enum and EnumValue entries.
4648 (mr10k-cache-barrier=): Use Enum and Var.
4649 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4651 2011-05-03 Jan Hubicka <jh@suse.cz>
4653 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4654 replace hash by pointer map.
4655 (cgraph_node_set_element_def, cgraph_node_set_element,
4656 const_cgraph_node_set_element, varpool_node_set_element_def,
4657 varpool_node_set_element, const_varpool_node_set_element): Remove.
4658 (free_cgraph_node_set, free_varpool_node_set): New function.
4659 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4660 * tree-emutls.c: Free varpool node set.
4661 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4662 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4663 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4664 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4665 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4666 Move here from ipa.c; implement using pointer_map
4667 * ipa.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, varpool_node_set_new,
4670 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4671 dump_varpool_node_set, debug_varpool_node_set):
4672 Move to ipa-uitls.c.
4673 * passes.c (ipa_write_summaries): Update.
4675 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4677 From Mike Frysinger:
4678 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4679 bf542/bf544/bf547/bf548/bf549.
4681 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4683 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4685 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4688 * config/bfin/bfin.md (MOVCC): New mode_macro.
4689 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4690 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4691 comments from generated assembly.
4693 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4696 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4697 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4698 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4699 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4700 * config/bfin/lib1funcs.asm (___muldi3): New function.
4702 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4704 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4705 build_function_type_list instead of build_function_type.
4706 Rearrange initialization of `args' to do so.
4708 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4710 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4711 instead of build_function_type.
4713 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4715 * config/rs6000/rs6000.c (spe_init_builtins): Call
4716 build_function_type_list instead of build_function_type.
4717 (paired_init_builtins, altivec_init_builtins): Likewise.
4718 (builtin_function_type): Likewise.
4720 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4722 * config/sh/sh.c (sh_media_init_builtins): Call
4723 build_function_type_list instead of build_function_type.
4725 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4727 * config/sparc/sparc.c (sparc_file_end): Call
4728 build_function_type_list instead of build_function_type.
4730 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4732 * config/alpha/alpha.c (alpha_init_builtins): Call
4733 build_function_type_list instead of build_function_type.
4735 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4737 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4738 build_function_type_list instead of build_function_type.
4740 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4742 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4743 build_function_type_list instead of build_function_type.
4744 Delete `endlink' variable.
4746 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4748 * config/avr/avr.c (avr_init_builtins): Call
4749 build_function_type_list instead of build_function_type.
4751 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4753 * config/picochip/picochip.c (picochip_init_builtins): Call
4754 build_function_type_list instead of build_function_type.
4755 Delete `endlink' variable.
4757 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4759 * config/bfin/bfin.c (bfin_init_builtins): Call
4760 build_function_type_list instead of build_function_type.
4762 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4765 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4766 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4768 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4771 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4772 libbffastfp overrides libgcc when -mfast-fp.
4774 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4776 Originally from Bernd Schmidt
4777 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4778 * config/bfin/bfin.c (override_options): Test it and error if
4781 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4783 Originally From Bernd Schmidt
4784 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4787 2011-05-03 Jeff Law <law@redhat.com>
4789 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4790 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4791 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4792 than accessing AUX field directly. Free the AUX field before
4794 (thread_block, thread_through_loop_header): Likewise.
4795 (thread_single_edge, mark_threaded_blocks): Likewise.
4796 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4797 (register_jump_thread): Do not attempt to thread to a NULL edge.
4799 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4801 * function.c (init_function_start): Call decide_function_section.
4802 * varasm.c (decide_function_section): New function.
4803 (assemble_start_function): When not using
4804 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4805 or first_function_block_is_cold.
4806 * rtl.h (decide_function_section): Declare.
4808 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4809 Jakub Jelinek <jakub@redhat.com>
4812 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4813 only succeed if req_mode is the same as set_mode.
4815 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4817 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4818 * genemit.c (gen_exp): Handle RETURN.
4819 * emit-rtl.c (verify_rtx_sharing): Likewise.
4820 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4821 * rtl.c (copy_rtx): RETURN is shared.
4822 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4824 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4825 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4826 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4827 * config/cris/cris.c (cris_expand_return): Likewise.
4828 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4829 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4830 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4831 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4832 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4834 * config/v850/v850.c (expand_epilogue): Likewise.
4835 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4836 * config/arm/arm.md (epilogue): Likewise.
4837 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4838 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4839 variable to ret_reg.
4841 2011-05-03 Richard Guenther <rguenther@suse.de>
4844 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4845 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4846 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4848 2011-05-03 Richard Guenther <rguenther@suse.de>
4850 * c-decl.c (grokdeclarator): Instead of looking at
4851 TREE_OVERFLOW check if the constant fits in the index type.
4853 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4855 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4856 (vec_store_lanes<mode><mode>): Likewise.
4858 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4860 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4861 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4862 convert_optab_index values.
4863 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4864 * genopinit.c (optabs): Initialize the new optabs.
4865 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4866 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4867 (expand_STORE_LANES): New functions.
4868 * tree.h (build_array_type_nelts): Declare.
4869 * tree.c (build_array_type_nelts): New function.
4870 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4871 (vect_model_load_cost): Likewise.
4872 (vect_store_lanes_supported, vect_load_lanes_supported)
4873 (vect_record_strided_load_vectors): Declare.
4874 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4875 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4876 (vect_transform_strided_load): Split out statement recording into...
4877 (vect_record_strided_load_vectors): ...this new function.
4878 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4879 (write_vector_array, create_array_ref): New functions.
4880 (vect_model_store_cost): Add store_lanes_p argument.
4881 (vect_model_load_cost): Add load_lanes_p argument.
4882 (vectorizable_store): Try to use store-lanes functions for
4884 (vectorizable_load): Likewise load-lanes and loads.
4885 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4886 to vect_model_store_cost.
4887 (vect_build_slp_tree): Likewise vect_model_load_cost.
4889 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4891 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4892 * hooks.c (hook_bool_mode_uhwi_false): New function.
4893 * target.def (array_mode_supported_p): New hook.
4894 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4895 * doc/tm.texi: Regenerate.
4896 * stor-layout.c (mode_for_array): New function.
4897 (layout_type): Use it.
4898 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4899 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4901 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4904 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4905 for -fstack-check if the size to allocate is negative.
4907 2011-05-02 Lawrence Crowl <crowl@google.com>
4909 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4910 (timevar_cond_start): New for starting a timer only when it is not
4912 (timevar_cond_stop): New for stopping a timer when it was not already
4915 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4916 (timevar_cond_start): New as above.
4917 (timevar_cond_stop): New as above.
4919 * timevar.def: Add start/stop timers for compiler phases,
4920 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4921 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4922 and TV_PHASE_FINALIZE.
4923 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4924 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4925 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4926 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4927 Make unused TV_OVERLOAD into a start/stop timer.
4929 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4930 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4931 to indicate that they are start/stop timers.
4933 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4934 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4935 Move initialization to do_compile.
4936 (do_compile): Add initialization from above.
4937 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4939 * c-decl.c (c_write_global_declarations): Add start/stop of
4940 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4942 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4943 or TV_PARSE_INLINE, as appropriate.
4944 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4945 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4947 2011-05-02 Jason Merrill <jason@redhat.com>
4950 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4952 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4955 * c-decl.c (finish_decl): Only create a composite if the types are
4958 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4960 * config/fr30/fr30-protos.h (Mmode): Don't define.
4961 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4962 definition where used.
4963 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4964 define. Expand definitions where used.
4965 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4966 Expand definitions where used.
4967 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4968 rx_function_arg, rx_function_arg_advance,
4969 rx_function_arg_boundary): Expand definitions of those macros.
4970 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4971 definition where used.
4973 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4975 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4977 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4978 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4979 with *movv2sf_internal_rex64_avx.
4980 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4981 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4982 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4983 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4984 "vex" in "prefix" attribute calculation.
4985 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4987 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4990 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4991 inputs match the output.
4993 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4996 * config/m68k/m68k.c (m68k_expand_prologue): Set
4997 current_function_static_stack_size.
4999 2011-05-02 Jan Hubicka <jh@suse.cz>
5001 * lto-streamer.c (lto_streamer_cache_insert_1,
5002 lto_streamer_cache_lookup, lto_streamer_cache_create,
5003 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5004 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5006 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5008 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5009 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5010 config/m68k/t-opts: New files.
5011 * config/m68k/m68k-tables.opt: New file (generated).
5012 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5013 extra_options and m68k/t-opts to tmake_file.
5014 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5015 (all_isas): Initialize using m68k-isas.def.
5016 (all_microarchs): Initialize using m68k-microarchs.def.
5017 (m68k_find_selection): Remove.
5018 (m68k_handle_option): Don't assert that global structures are in
5019 use. Use error_at. Access variables via opts pointer. Don't
5020 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5021 directly for -m68020-40 and -m68020-60.
5022 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5023 m68k_tune_entry here.
5024 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5026 (m68k_library_id_string): Remove declaration.
5027 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5028 (m68k_library_id_string): New Variable.
5029 (march=, mcpu=, mtune=): Use Enum and Var.
5031 2011-05-02 Richard Guenther <rguenther@suse.de>
5033 * varasm.c (output_constructor_regular_field): Compute zero-based
5034 index with double-ints. Make sure to ICE instead of producing
5036 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5037 in asserts. Properly use a signed type.
5039 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5041 * config/i386/sse.md (V): New mode iterator.
5042 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5044 (V_256): Rename from AVX256MODE.
5045 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5046 condition to all users.
5048 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5049 condition to all users.
5050 (VF_128): Make V4SF mode unconditional.
5051 (VF_256): Rename from AVX256MODEF2P.
5052 (VI4F_128): Rename from SSEMODE4S.
5053 (VI8F_128): Rename from SSEMODE2D.
5054 (VI4F_256): Rename from AVX256MODE8P.
5055 (VI8F_256): Rename from AVX256MODE4P.
5056 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5057 (ssescalarmodesuffix): Remove SF and DF modes.
5058 (SSEMODE124): Remove.
5059 (SSEMODE1248): Ditto.
5060 (SSEMODEF2P): Ditto.
5061 (AVXMODEF2P): Ditto.
5062 (AVXMODEFDP): Ditto.
5063 (AVXMODEFSP): Ditto.
5064 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5066 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5068 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5069 xop_pcmov_<mode>256. Use V mode iterator.
5071 Adjust RTX patterns globally for renamed mode attributes.
5073 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5075 * haifa-sched.c (sched_emit_insn): Emit insn before first
5076 non-scheduled insn. Inform back-end about new insn. Add
5077 new insn to scheduled_insns list.
5079 2011-05-02 Richard Guenther <rguenther@suse.de>
5081 PR tree-optimization/48822
5082 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5083 (process_scc): Indicate which iteration we start.
5085 2011-05-02 Jan Hubicka <jh@suse.cz>
5087 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5088 (lto_section_overrun): New.
5089 * lto-section-out.c (append_block): Rename to ...
5090 (lto_append_block): ... this one; export.
5091 (lto_output_1_stream): Move lto lto-streamer.h
5092 (lto_output_data_stream): Update.
5093 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5094 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5097 2011-05-02 Richard Guenther <rguenther@suse.de>
5099 * tree.c (tree_code_counts): New global array.
5100 (record_node_allocation_statistics): Count individual tree codes.
5101 (dump_tree_statistics): Dump individual code stats.
5103 2011-05-01 Jan Hubicka <jh@suse.cz>
5105 * ipa-inline.c (caller_growth_limits): Fix thinko when
5106 looking for largest stack frame.
5107 * ipa-inline.h (dump_inline_summary): Declare.
5108 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5110 (dump_inline_summary): Export.
5111 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5113 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5115 * reginfo.c (memory_move_cost): Change rclass argument type form
5116 'enum reg_class' to reg_class_t.
5117 * reload.h (memory_move_cost): Update prototype.
5118 * postreload.c reload_cse_simplify_set): Change type dclass var to
5120 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5122 (ira_allocate_and_set_costs): Change aclass argument type form
5123 'enum reg_class' to reg_class_t.
5124 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5125 Change aclass argument type to reg_class_t.
5126 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5128 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5129 memory_move_cost call.
5131 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5132 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5133 Change type tmp var to reg_class_t.
5135 2011-04-30 Jan Hubicka <jh@suse.cz>
5137 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5138 inlining into function with flatten attribute.
5139 (want_inline_small_function_p): Be more realistic about inlining
5140 cold calls where callee size grows.
5142 2011-04-30 Jan Hubicka <jh@suse.cz>
5144 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5147 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5149 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5150 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5151 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5152 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5153 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5154 (print_operand): Rename to...
5155 (sparc_print_operand): ...this. Make static. Adjust
5156 sparc_print_operand function call.
5157 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5160 2011-04-30 Jan Hubicka <jh@suse.cz>
5163 * ipa-inline.c (early_inliner): Disable when doing late
5164 addition of function.
5166 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5168 * dwarf2out.c (get_address_mode): New inline.
5169 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5170 if not dwarf_strict emit
5171 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5172 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5173 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5174 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5175 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5176 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5177 mem_loc_descriptor callers.
5178 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5179 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5180 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5181 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5182 (base_types): New variable.
5183 (get_base_type_offset, calc_base_type_die_sizes,
5184 base_type_for_mode, mark_base_types, base_type_cmp,
5185 move_marked_base_types): New functions.
5186 (calc_die_sizes): Assert that die_offset is 0 or equal to
5188 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5189 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5190 callers. If not dwarf_strict, call mem_loc_descriptor even for
5191 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5192 (gen_subprogram_die): Don't give up on call site parameters
5193 with non-integral or large integral modes. Adjust
5194 mem_loc_descriptor callers.
5195 (prune_unused_types): Call prune_unused_types_mark on base_types
5197 (resolve_addr): Call mark_base_types.
5198 (dwarf2out_finish): Call move_marked_base_types.
5200 PR tree-optimization/48809
5201 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5203 (gen_inbound_check): Don't compute index_expr - range_min in utype
5204 again, instead reuse SSA_NAME initialized in build_arrays.
5205 Remove two useless gsi_for_stmt calls.
5207 2011-04-29 Jeff Law <law@redhat.com>
5209 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5211 2011-04-29 Martin Jambor <mjambor@suse.cz>
5213 * cgraph.h (cgraph_postorder): Remove declaration.
5214 * ipa-utils.h (ipa_free_postorder_info): Declare.
5215 (ipa_reverse_postorder): Likewise.
5216 * cgraphunit.c: Include ipa-utils.h.
5217 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5218 * ipa-inline.c: Include ipa-utils.h.
5219 (ipa_inline): Update call to ipa_reverse_postorder.
5220 * ipa-pure-const.c (propagate_pure_const): Update call to
5221 ipa_reduced_postorder and ipa_print_order. Call
5222 ipa_free_postorder_info to clean up.
5223 (propagate_nothrow): Likewise.
5224 * ipa-reference.c (propagate): Removed a useless call to
5225 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5226 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5227 * ipa.c: Include ipa-utils.h.
5228 (ipa_profile): Update call to ipa_reverse_postorder.
5229 (cgraph_postorder): Moved to...
5230 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5231 (ipa_utils_print_order): Renamed to ipa_print_order.
5232 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5234 (ipa_free_postorder_info): New function.
5235 * passes.c: Include ipa-utils.h.
5236 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5237 (ipa_write_summaries): Likewise.
5238 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5239 (cgraphunit.o): Likewise.
5241 (ipa-inline.o): Likewise.
5243 2011-04-29 Jan Hubicka <jh@suse.cz>
5245 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5246 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5247 * ipa-inline.h (clause_t): Turn into unsigned int.
5248 * ipa-inline-analysis.c (add_clause): Do more simplification.
5249 (and_predicates): Shortcut more cases.
5250 (predicates_equal_p): Move forward; check that clauses are properly
5252 (or_predicates): Shortcut more cases.
5253 (edge_execution_predicate): Rewrite as...
5254 (set_cond_stmt_execution_predicate): ... this function; handle
5255 __builtin_constant_p.
5256 (set_switch_stmt_execution_predicate): New .
5257 (compute_bb_predicates): New.
5258 (will_be_nonconstant_predicate): Update TODO.
5259 (estimate_function_body_sizes): Use compute_bb_predicates
5260 and free them later, always try to estimate if stmt is constant.
5261 (estimate_time_after_inlining, estimate_size_after_inlining):
5262 Gracefully handle optimized out edges.
5263 (read_predicate): Fix off by one error.
5265 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5267 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5269 2011-04-27 Xinliang David Li <davidxl@google.com>
5271 * tree-profile.c (init_ic_make_global_vars): Set
5272 tls attribute on ic vars.
5273 * coverage.c (coverage_end_function): Initialize
5274 function_list with zero.
5276 2011-04-29 Richard Guenther <rguenther@suse.de>
5278 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5279 for the type of the result.
5280 (fold_builtin_isascii): Likewise.
5281 (fold_builtin_toascii): Use integer_type_node where appropriate.
5282 (fold_builtin_logb): Likewise.
5283 (fold_builtin_frexp): Likewise.
5284 (fold_builtin_strstr): Likewise.
5285 (fold_builtin_strpbrk): Likewise.
5286 (fold_builtin_fputs): Likewise.
5287 (fold_builtin_sprintf): Likewise.
5288 (fold_builtin_snprintf): Likewise.
5289 (fold_builtin_printf): Likewise.
5290 (do_mpfr_remquo): Use a proper type for the assigned constant.
5291 (do_mpfr_lgamma_r): Likewise.
5292 * dwarf2out.c (resolve_one_addr): Use size_int.
5293 * except.c (init_eh): Likewise.
5294 (assign_filter_values): Use integer_type_node for filter values.
5295 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5297 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5298 for EH region numbers.
5299 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5300 for the shift amount.
5302 2011-04-29 Richard Guenther <rguenther@suse.de>
5304 * expr.h (expand_shift): Rename to ...
5305 (expand_variable_shift): ... this.
5306 (expand_shift): Take a constant shift amount.
5307 * expmed.c (expand_shift): Rename to ...
5308 (expand_variable_shift): ... this.
5309 (expand_shift): New wrapper around expand_variable_shift.
5310 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5311 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5312 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5313 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5314 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5315 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5316 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5317 emit_store_flag_1, emit_store_flag): Likewise.
5318 * builtins.c (expand_builtin_signbit): Likewise.
5319 * calls.c (load_register_parameters): Likewise.
5320 * function.c (assign_parm_setup_block): Likewise.
5321 * lower-subreg.c (resolve_shift_zext): Likewise.
5322 * optabs.c (widen_bswap, expand_abs_nojump,
5323 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5324 * spu/spu.c (spu_expand_extv): Likewise.
5325 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5327 2011-04-29 Richard Guenther <rguenther@suse.de>
5329 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5330 for the remapped region number.
5331 * predict.c (build_predict_expr): Use integer_type_node for the
5333 * fold-const.c (fold_binary_loc): Use integer_type_node for
5334 the shift amount. Use a proper type for the PLUS_EXPR operand.
5336 2011-04-29 Michael Matz <matz@suse.de>
5338 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5339 other trees that just builtins.
5340 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5342 2011-04-29 Richard Guenther <rguenther@suse.de>
5344 * tree-nested.c (get_trampoline_type): Use size_int.
5345 (get_nl_goto_field): Likewise.
5346 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5348 (lower_eh_constructs_2): Likewise.
5349 (lower_resx): Likewise.
5350 (lower_eh_dispatch): Likewise.
5351 * tree-mudflap.c (mf_build_string): Use size_int.
5352 (mudflap_register_call): Use integer_type_node for the flag.
5353 (mudflap_enqueue_constant): Use size_int.
5354 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5355 instead of rebuilding it.
5357 2011-04-29 Richard Guenther <rguenther@suse.de>
5359 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5360 Handle OBJ_TYPE_REF.
5361 (find_func_aliases_for_call): Use it more consistently.
5363 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5365 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5366 (rank_for_schedule): Use it.
5367 (schedule_block): Set it.
5369 2011-04-28 David Li <davidxl@google.com>
5371 * tree.c (crc32_string): Use crc32_byte.
5372 (crc32_byte): New function.
5373 * tree.h (crc32_byte): New function.
5374 * gcov.c (read_graph_file): Handle new cfg_cksum.
5375 (read_count_file): Ditto.
5376 * profile.c (instrument_values): Ditto.
5377 (get_exec_counts): Ditto.
5378 (read_profile_edge_counts): Ditto.
5379 (compute_branch_probabilities): Ditto.
5380 (compute_value_histograms): Ditto.
5381 (branch_prob): Ditto.
5382 (end_branch_prob): Ditto.
5383 * coverage.c (read_counts_file): Ditto.
5384 (get_coverage_counts): Ditto.
5385 (tree_coverage_counter_addr): Ditto.
5386 (coverage_checksum_string): Ditto.
5387 (coverage_begin_output): Ditto.
5388 (coverage_end_function): Ditto.
5389 (build_fn_info_type): Ditto.
5390 (build_fn_info_value): Ditto.
5391 * libgcov.c (gcov_exit): Ditto.
5392 * gcov-dump.c (tag_function): Ditto.
5393 (compute_checksum): Remove.
5395 2011-04-29 Alan Modra <amodra@gmail.com>
5397 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5398 unspec plus offset. Tidy macho code.
5400 2011-04-29 Martin Jambor <mjambor@suse.cz>
5402 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5403 node instead of a decl. Update all callers.
5404 * cgraph.h: Update declaration.
5406 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5408 PR tree-optimization/48765
5409 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5410 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5411 to indicate if loop aware SLP is being used. Scan the statements
5412 and update the vectorization factor according to the type of
5413 vectorization before statement analysis.
5414 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5415 pass it to vect_analyze_loop_operations.
5416 (vectorizable_reduction): Set number of copies to 1 in case of pure
5418 * tree-vect-stmts.c (vectorizable_conversion,
5419 vectorizable_assignment, vectorizable_shift,
5420 vectorizable_operation, vectorizable_type_demotion,
5421 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5423 (vectorizable_condition): Move the check that it is not SLP
5424 vectorization before the number of copies check.
5425 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5426 to vectorize the loop using SLP.
5428 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5431 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5434 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5436 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5437 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5438 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5439 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5440 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5442 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5443 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5444 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5445 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5446 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5447 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5449 * config/i386/linux.h (REG_NAME): Don't define.
5450 * config/i386/linux64.h (REG_NAME): Don't define.
5451 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5452 Undefine before defining.
5454 2011-04-28 Jan Hubicka <jh@suse.cz>
5456 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5457 nonconstant_names array.
5458 (estimate_function_body_sizes): Build nonconstant_names array; handle
5459 BUILT_IN_CONSTANT_P.
5461 2011-04-28 Richard Guenther <rguenther@suse.de>
5465 2011-04-28 Richard Guenther <rguenther@suse.de>
5467 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5468 as late as possible.
5470 2011-04-28 Richard Guenther <rguenther@suse.de>
5472 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5473 (debug_constraint): Do it here.
5474 (dump_constraints): And here.
5475 (rewrite_constraints): And here.
5476 (dump_constraint_edge): Remove.
5477 (dump_constraint_graph): Rewrite to produce DOT output.
5478 (solve_constraints): Build succ graph as late as possible.
5479 Dump constraint graphs before and after solving.
5481 2011-04-28 Richard Guenther <rguenther@suse.de>
5483 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5484 New function split out from ...
5485 (find_func_aliases): ... here. Call it.
5486 (find_func_aliases_for_call): Likewise.
5488 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5490 * internal-fn.h (internal_fn_name_array): Declare.
5491 (internal_fn_flags_array): Likewise.
5493 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5495 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5496 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5498 (ssemodefsuffix): Remove.
5499 (ssevecmodesuffix): New mode attribute.
5500 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5501 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5502 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5503 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5504 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5505 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5506 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5507 ssemodesuffix mode attribute.
5508 (float splitters): Use ssevecmodesuffix mode attribute.
5509 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5510 (sseinsmode): Rename from avxvecmode.
5511 (avxsizesuffix): Rename from avxmodesuffix.
5512 (sseintvecmode): Rename from avxpermvecmode.
5513 (ssedoublevecmode): Rename from ssedoublesizemode.
5514 (ssehalfvecmode): Rename from avxhalfvecmode.
5515 (ssescalarmode): Rename from avxscalarmode.
5516 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5517 templates for ssemodesuffix mode attribute.
5518 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5521 Adjust RTX patterns globally for renamed mode attributes.
5523 2011-04-27 Jan Hubcika <jh@suse.cz>
5525 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5526 * ipa-inline-analysis.c: Include alloc-pool.h.
5527 (edge_predicate_pool): New.
5528 (trye_predicate_p): New function
5529 (false_predicate_p): New function.
5530 (add_clause): Sanity check that false clauses are "optimized";
5531 never add clauses to predicate that is already known to be false.
5532 (and_predicate): Use flase_predicate_p.
5533 (evaulate_predicate): Rename to ...
5534 (evaluate_predicate): ... this one; update all callers; assert
5535 that false is not listed among possible truths.
5536 (dump_predicate): Use true_predicate_p.
5537 (account_size_time): Use false_predicate_p.
5538 (evaulate_conditions_for_edge): Rename to ...
5539 (evaluate_conditions_for_edge) ... this one.
5540 (edge_set_predicate): New function.
5541 (inline_edge_duplication_hook): Duplicate edge predicates.
5542 (inline_edge_removal_hook): Free edge predicates.
5543 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5544 (dump_inline_summary): Update.
5545 (estimate_function_body_sizes): Set edge predicates.
5546 (estimate_calls_size_and_time): Handle predicates.
5547 (estimate_callee_size_and_time): Update.
5548 (remap_predicate): Add toplev_predicate; update comment.
5549 (remap_edge_predicates): New function.
5550 (inline_merge_summary): Compute toplev predicate; update.
5551 (read_predicate): New function.
5552 (read_inline_edge_summary): Use it.
5553 (inline_read_section): Likewise.
5554 (write_predicate): New function.
5555 (write_inline_edge_summary): Use it.
5556 (inline_write_summary): Likewise.
5557 (inline_free_summary): Free alloc pool and edge summary vec.
5559 2011-04-27 Richard Guenther <rguenther@suse.de>
5561 * tree-ssa-structalias.c (changed_count): Remove.
5562 (changed): Use a bitmap.
5563 (unify_nodes): Adjust.
5564 (do_sd_constraint): Likewise.
5565 (do_ds_constraint): Likewise.
5566 (do_complex_constraint): Likewise.
5567 (solve_graph): Likewise.
5569 2011-04-27 Jan Hubicka <jh@suse.cz>
5571 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5573 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5575 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5576 (avx_vperm2f128_*_operand): Ditto.
5577 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5578 Use avx_vpermilp_parallel in insn condition.
5579 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5580 Use avx_vperm2f128_parallel in insn condition.
5582 2011-04-27 Richard Guenther <rguenther@suse.de>
5584 * Makefile.in (tree-ssa-structalias.o): Remove
5585 gt-tree-ssa-structalias.h dependency.
5586 (GTFILES): Remove tree-ssa-structalias.c.
5587 * tree.c (allocate_decl_uid): New function.
5588 (make_node_stat): Use it.
5589 (copy_node_stat): Likewise.
5590 * tree.h (allocate_decl_uid): Declare.
5591 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5592 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5593 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5594 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5595 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5596 (struct heapvar_map): Likewise.
5597 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5598 heapvar_insert): Likewise.
5599 (make_heapvar_for): Rename to ...
5600 (make_heapvar): ... this. Simplify.
5601 (fake_var_decl_obstack): New global var.
5602 (build_fake_var_decl): New function.
5603 (make_constraint_from_heapvar): Adjust.
5604 (handle_lhs_call): Likewise.
5605 (create_function_info_for): Likewise.
5606 (intra_create_variable_infos): Likewise.
5607 (init_alias_vars): Allocate fake_var_decl_obstack.
5608 (init_alias_heapvars, delete_alias_heapvars): Remove.
5609 (compute_points_to_sets): Do not call init_alias_heapvars.
5610 (ipa_pta_execute): Likewise.
5611 (delete_points_to_sets): Free fake_var_decl_obstack.
5613 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5615 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5616 (si_from_UTItype, si_to_UTItype): New functions.
5617 (__udivmodti4): Use them to implement type-punning.
5618 * config/spu/multi3.c (union qword_TItype): New data type.
5619 (si_from_TItype, si_to_TItype): New functions.
5620 (__multi3): Use them to implement type-punning.
5622 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5624 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5626 2011-04-27 Jan Hubicka <jh@suse.cz>
5628 * ipa-prop.c (function_insertion_hook_holder): New holder.
5629 (ipa_add_new_function): New function.
5630 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5631 Register/deregister holder.
5633 2011-04-27 Richard Guenther <rguenther@suse.de>
5635 PR tree-optimization/48772
5636 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5638 2011-04-27 Richard Guenther <rguenther@suse.de>
5640 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5641 TARGET_MEM_REF handling.
5643 2011-04-27 Nick Clifton <nickc@redhat.com>
5645 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5646 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5647 (REG_CLASS_NAMES): Likewise.
5648 (REG_CLASS_CONTENTS): Likewise.
5649 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5650 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5651 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5652 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5653 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5654 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5655 duplicate register classes.
5656 (frv_class_likely_spilled_p): Likewise.
5657 (frv_register_move_cost): Likewise.
5659 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5660 end of the regno_reg_class array.
5662 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5665 * c-typeck.c (build_binary_op): Don't wrap arguments if
5666 int_operands is true.
5668 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5671 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5672 targetm.calls.must_pass_in_stack for void type.
5674 2011-04-26 Jan Hubicka <jh@suse.cz>
5676 * cgraphbuild.c (build_cgraph_edges): Update call
5677 of cgraph_create_edge and cgraph_create_indirect_edge.
5678 * cgraph.c (cgraph_create_edge_including_clones,
5679 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5680 cgraph_update_edges_for_call_stmt_node): Do not take nest
5681 argument; do not initialize call_stmt_size/time.
5682 (dump_cgraph_node): Do not dump nest.
5683 (cgraph_clone_edge): Do not take loop_nest argument;
5684 do not propagate it; do not clone call_stmt_size/time.
5685 (cgraph_clone_node): Likewise.
5686 (cgraph_create_virtual_clone): Update.
5687 * cgraph.h (struct cgraph_edge): Remove
5688 call_stmt_size/call_stmt_time/loop_nest.
5689 (cgraph_create_edge, cgraph_create_indirect_edge,
5690 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5692 * tree-emutls.c (gen_emutls_addr): Update.
5693 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5694 loop_nest; handle indirect calls, too.
5695 (clone_inlined_nodes): Do not care about updating inline summaries.
5696 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5697 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5698 stream call_stmt_size/call_stmt_time/loop_nest.
5699 * ipa-inline.c (edge_badness): Update.
5700 (ipa_inline): dump summaries after inlining.
5701 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5703 (inline_edge_summary): New function.
5704 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5705 (inline_edge_removal_hook): Handle edge summaries.
5706 (inline_edge_duplication_hook): New hook.
5707 (inline_summary_alloc): Alloc hooks.
5708 (initialize_growth_caches): Do not register removal hooks.
5709 (free_growth_caches); Do not free removal hook.
5710 (dump_inline_edge_summary): New function.
5711 (dump_inline_summary): Use it.
5712 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5713 (inline_update_callee_summaries): New function.
5714 (inline_merge_summary): Use it.
5715 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5716 (read_inline_edge_summary): New function.
5717 (inline_read_section): Use it.
5718 (write_inline_edge_summary): New function.
5719 (inline_write_summary): Use it.
5720 (inline_free_summary): Free edge new holders.
5721 * tree-inline.c (copy_bb): Update.
5723 2011-04-26 Jason Merrill <jason@redhat.com>
5725 * tree-eh.c (lower_try_finally_switch): Create the label along with
5726 the CASE_LABEL_EXPR.
5728 2011-04-26 David S. Miller <davem@davemloft.net>
5729 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5731 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5732 * configure: Regenerate.
5734 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5737 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5739 (VEC_reduc): New code iterator and splitters for vector reduction.
5740 (VEC_reduc_name): Ditto.
5741 (VEC_reduc_rtx): Ditto.
5742 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5743 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5745 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5746 support for extracting SF on VSX.
5748 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5749 generating xscvspdp.
5750 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5751 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5752 double add, minimum, maximum vector reduction.
5753 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5754 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5755 optimize double vector reduction.
5756 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5758 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5760 * config/fr30/fr30.h (inhibit_libc): Don't define.
5761 * config/m32r/m32r-protos.h: Correct comment.
5762 * config/v850/v850.h (GHS_default_section_names,
5763 GHS_current_section_names): Use tree, not union tree_node *.
5765 2011-04-26 Xinliang David Li <davidxl@google.com>
5767 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5768 * c-family/c-opts.c (c_common_handle_option): Set
5769 warn_maybe_uninitialized.
5770 * opts.c (common_handle_option): Ditto.
5771 * common.opt: New option.
5772 * tree-ssa.c (warn_uninit): Add one more parameter.
5773 (warn_uninitialized_var): Pass warning code.
5774 * tree-flow.h: Interface change.
5776 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5778 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5779 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5780 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5782 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5784 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5785 * config/mips/mips.opt (mmips-tfile): Remove.
5787 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5788 mips-tdump reference to ...
5789 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5790 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5791 reference by Tru64 UNIX.
5793 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5796 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5797 is error_mark_node, set value to NULL.
5799 PR tree-optimization/48734
5800 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5801 if return value from maybe_fold_*_comparsions isn't something
5802 the code is prepared to handle.
5804 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5806 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5808 (ext_QIreg_nomode_operands): Remove.
5809 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5813 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5815 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5817 2011-04-26 Richard Guenther <rguenther@suse.de>
5819 * c-typeck.c (build_unary_op): Do not expand array-refs via
5820 pointer arithmetic. Only adjust qualifiers for function types.
5822 2011-04-26 Richard Guenther <rguenther@suse.de>
5825 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5826 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5827 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5828 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5830 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5832 * doc/extend.texi: Document __underlying_type.
5834 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5836 * config/rs6000/titan.md (automata_option "progress"): Remove.
5838 2011-04-25 Jeff Law <law@redhat.com>
5840 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5842 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5844 * system.h (ENUM_BITFIELD): Remove.
5846 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5847 Eric Botcazou <ebotcazou@adacore.com>
5849 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5850 for STORE_FLAG_VALUE==-1 case.
5852 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5855 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5856 LEGITIMATE_PIC_OPERAND_P.
5858 2011-04-24 Jan Hubicka <jh@suse.cz>
5860 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5862 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5863 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5864 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5865 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5866 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5867 Sanity check predicate length.
5868 (remap_predicate): Likewise; sanity check jump functions.
5869 (inline_read_section, inline_write_summary): Sanity check
5872 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5875 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5876 __is_literal_type, and __is_trivial; update throughout about
5877 possibly cv-qualified void types.
5879 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5881 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5882 testsuite and make it version agnostic.
5884 2011-04-22 Jan Hubicka <jh@suse.cz>
5886 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5888 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5891 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5892 to VOID_TYPE even around MODIFY_EXPR.
5894 2011-04-22 Mike Stump <mikestump@comcast.net>
5896 * gensupport.c (read_md_rtx): Fix typo in comment.
5897 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5900 2011-04-22 Jan Hubicka <jh@suse.cz>
5902 * gengtype.c (open_base_files): Add ipa-inline.h include.
5903 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5904 ipa-prop.c; update all uses.
5905 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5906 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5907 merge summary of inlined function into former caller.
5908 * ipa-inline.c (max_benefit): Remove.
5909 (edge_badness): Compensate for removal of benefits.
5910 (update_caller_keys): Use
5911 reset_node_growth_cache/reset_edge_growth_cache.
5912 (update_callee_keys): Likewise.
5913 (update_all_callee_keys): Likewise.
5914 (inline_small_functions): Do not collect max_benefit; do not reset
5915 estimated_growth; call free_growth_caches and initialize_growth_caches.
5916 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5917 struct size_time_entry): New structures.
5918 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5919 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5920 and estimated_growth.
5921 (edge_growth_cache_entry): New structure.
5922 (node_growth_cache, edge_growth_cache): New global vars.
5923 (estimate_growth): Turn into inline.
5924 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5925 initialize_growth_caches, free_growth_caches): Declare.
5926 (estimate_edge_growth): Rewrite.
5927 (estimate_edge_time): Implement as inline cache lookup.
5928 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5930 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5931 (NUM_CONDITIONS): New constant.
5932 (predicate_conditions): New enum.
5933 (IS_NOT_CONSTANT): New constant.
5934 (edge_removal_hook_holder): New var.
5935 (node_growth_cache, edge_growth_cache): New global vars.
5936 (true_predicate, single_cond_predicate, false_predicate,
5937 not_inlined_predicate, add_condition, add_clause, and_predicates,
5938 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5939 dump_clause, dump_predicate, account_size_time,
5940 evaulate_conditions_for_edge): New functions.
5941 (inline_summary_alloc): Move to heap.
5942 (inline_node_removal_hook): Clear condition and entry vectors.
5943 (inline_edge_removal_hook): New function.
5944 (initialize_growth_caches, free_growth_caches): New function.
5945 (dump_inline_summary): Update.
5946 (edge_execution_predicate): New function.
5947 (will_be_nonconstant_predicate): New function.
5948 (estimate_function_body_sizes): Compute BB and constantness predicates.
5949 (compute_inline_parameters): Do not clear estimated_growth.
5950 (estimate_edge_size_and_time): New function.
5951 (estimate_calls_size_and_time): New function.
5952 (estimate_callee_size_and_time): New function.
5953 (remap_predicate): New function.
5954 (inline_merge_summary): New function.
5955 (do_estimate_edge_time): New function based on...
5956 (estimate_edge_time): ... this one.
5957 (do_estimate_edge_growth): New function.
5958 (do_estimate_growth): New function based on....
5959 (estimate_growth): ... this one.
5960 (inline_analyze_function): Analyze after deciding on jump functions.
5961 (inline_read_section): New function.
5962 (inline_read_summary): Use it.
5963 (inline_write_summary): Write all the new data.
5964 * ipa-prop.c (ipa_get_param_decl_index): Export.
5965 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5966 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5968 (ipa_get_lattice): Move here from ipa-cp.c
5969 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5970 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5971 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5972 cgraph_edge_inlinable_p): Remove.
5973 * cgraphunit.c: Include ipainline.h
5974 (cgraph_process_new_functions): Update call of
5975 compute_inline_parameters.
5977 2011-04-22 Richard Guenther <rguenther@suse.de>
5979 * tree.c (build_int_cst): Properly create canonicalized integer
5981 (build_int_cst_type): Remove scary comments.
5983 2011-04-22 Xinliang David Li <davidxl@google.com>
5985 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5986 by default when -Wno-error is not specified.
5987 * opts-global.c (decode_options): Remove call to
5988 control_warning_options.
5990 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5992 PR tree-optimization/48717
5993 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5994 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5996 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5998 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5999 definition where used.
6001 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6004 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6005 TREE_STATIC variables declared inside of some OpenMP construct.
6007 2011-04-22 Martin Jambor <mjambor@suse.cz>
6010 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6012 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6015 * c-typeck.c (pop_init_level): Do not warn about initializing
6018 2011-04-22 Alan Modra <amodra@gmail.com>
6020 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6021 when returning call_cookie.
6022 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6023 pointers, to functions with no more vector args than the current
6024 function, and some non-local calls for ABI_V4.
6025 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6026 sibcall_nonlocal_aix64): Combine to ..
6027 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6028 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6029 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6030 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6031 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6033 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6034 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6035 sibcall_value_symbolic_64): Delete.
6037 2011-04-21 Xinliang David Li <davidxl@google.com>
6039 * cgraph.h: Remove pid.
6040 * cgraph.c: Remove pid.
6041 * value-prof.c (init_node_map): New function.
6042 (del_node_map): New function.
6043 (find_func_by_funcdef_no): New function.
6044 (gimple_ic_transform): Call new function.
6045 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6046 * function.c (get_last_funcdef_no): New function.
6047 * function.h (get_last_funcdef_no): New function.
6048 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6049 to libgcov function.
6050 (tree-profiling): Call node map init and delete function.
6052 2011-04-21 Ian Lance Taylor <iant@google.com>
6054 * godump.c (go_format_type): Use exported Go name for anonymous
6057 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6059 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6060 Call builtin_function_type_list instead of builtin_function_type.
6061 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6063 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6065 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6066 build_function_type_list instead of build_function_type.
6067 Delete variable `endlink'.
6069 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6071 * config/s390/s390.c (s390_init_builtins): Call
6072 build_function_type_list instead of build_function_type.
6074 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6076 * config/ia64/ia64.c (ia64_init_builtins): Call
6077 build_function_type_list instead of builtin_function_type.
6079 2011-04-21 Easwaran Raman <eraman@google.com>
6081 * cfgexpand.c (stack_var): Remove OFFSET...
6082 (add_stack_var): ...and its reference here...
6083 (expand_stack_vars): ...and here.
6084 (stack_var_cmp): Sort by descending order of size.
6085 (partition_stack_vars): Change heuristic.
6086 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6087 (dump_stack_var_partition): Add newline after each partition.
6089 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6090 Jeff Law <law@redhat.com>
6092 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6093 * gengtype.c (matching_file_name_substitute): Likewise.
6095 2011-04-21 Richard Guenther <rguenther@suse.de>
6098 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6100 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6102 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6104 2011-04-21 Richard Guenther <rguenther@suse.de>
6106 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6109 2011-04-21 Richard Guenther <rguenther@suse.de>
6111 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6112 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6113 Use DECL_P, not SSA_VAR_P.
6114 (ptr_derefs_may_alias_p): Likewise.
6115 (ptr_deref_may_alias_ref_p_1): Likewise.
6116 (decl_refs_may_alias_p): Likewise.
6117 (refs_may_alias_p_1): Likewise.
6118 (ref_maybe_used_by_call_p_1): Likewise.
6119 (call_may_clobber_ref_p_1): Likewise.
6120 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6121 are either MEM_REF or TARGET_MEM_REF.
6122 (indirect_refs_may_alias_p): Likewise.
6123 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6124 for MEM_EXPR of indirect calls.
6126 2011-04-21 Tristan Gingold <gingold@adacore.com>
6128 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6129 (dst_file_info_struct): Remove flen field.
6130 (lookup_filename): Remove code that set flen field.
6132 2011-04-21 Tristan Gingold <gingold@adacore.com>
6134 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6136 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6139 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6140 vec_extract and vec_concat for non-SSE4_1 targets.
6142 2011-04-21 Richard Guenther <rguenther@suse.de>
6144 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6147 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6149 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6151 (FILE): Don't undefine.
6153 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6155 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6157 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6159 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6160 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6161 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6163 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6164 definitions where used.
6165 * config/microblaze/microblaze.h (struct microblaze_args): Use
6166 rtx, not struct rtx_def *.
6167 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6169 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6170 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6171 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6172 not struct rtx_def *.
6173 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6175 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6177 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6179 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6181 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6182 operand_equal_p to compare DR_BASE_ADDRESSes.
6183 (vect_check_interleaving): Likewise.
6185 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6188 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6189 for all Neon struct constants.
6191 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6193 * target.def (legitimate_constant_p): New hook.
6194 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6195 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6196 * doc/tm.texi: Regenerate.
6197 * hooks.h (hook_bool_mode_rtx_true): Declare.
6198 * hooks.c (hook_bool_mode_rtx_true): Define.
6199 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6200 * calls.c (precompute_register_parameters): Replace uses of
6201 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6202 (emit_library_call_value_1): Likewise.
6203 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6204 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6205 * ira-costs.c (scan_one_insn): Likewise.
6206 * recog.c (general_operand, immediate_operand): Likewise.
6207 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6208 * reload1.c (init_eliminable_invariants): Likewise.
6210 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6212 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6213 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6215 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6216 * config/alpha/predicates.md (input_operand): Update call to
6217 alpha_legitimate_constant_p.
6219 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6220 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6221 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6222 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6223 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6224 (arm_legitimate_constant_p): New functions.
6225 (arm_cannot_force_const_mem): Make static.
6227 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6229 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6230 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6231 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6232 instead of bfin_legitimate_constant_p.
6233 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6234 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6236 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6238 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6240 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6241 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6242 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6243 (frv_legitimate_constant_p): Make static. Add a mode argument.
6245 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6246 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6247 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6249 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6250 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6251 * config/i386/i386.c (legitimate_constant_p): Rename to...
6252 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6254 (ix86_cannot_force_const_mem): Update accordingly.
6255 (ix86_legitimate_address_p): Likewise.
6256 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6257 * config/i386/i386.md: Update commentary.
6259 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6260 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6261 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6262 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6264 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6266 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6267 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6268 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6269 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6271 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6272 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6273 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6275 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6276 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6277 (m32r_legitimate_constant_p): New function.
6279 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6280 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6281 LEGITIMATE_CONSTANT_P.
6282 (LEGITIMATE_CONSTANT_P): Delete.
6283 * config/m68k/m68k.c (m68k_expand_prologue): Call
6284 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6285 (m68k_legitimate_constant_p): New function.
6286 * config/m68k/m68k.md: Update comments.
6288 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6289 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6290 (mcore_legitimate_constant_p): New function.
6292 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6293 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6294 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6295 Add a mode argument.
6296 (mep_legitimate_address): Update accordingly.
6297 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6299 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6301 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6302 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6303 static. Check OP's mode for VOIDmode.
6304 (microblaze_legitimate_constant_p): New function.
6305 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6307 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6308 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6309 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6310 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6311 * config/mips/predicates.md: Update comments.
6313 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6314 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6315 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6316 (mmix_legitimate_constant_p): Make static, return a bool, and take
6318 (mmix_print_operand_address): Update accordingly.
6320 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6322 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6323 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6324 static. Add a mode argument.
6325 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6327 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6329 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6330 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6331 (pa_legitimate_constant_p): New function.
6333 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6335 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6336 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6337 (pdp11_legitimate_constant_p): New function.
6339 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6340 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6341 (rs6000_legitimate_constant_p): New function.
6343 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6344 (rx_legitimate_constant_p): ...this.
6345 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6346 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6347 (rx_legitimate_constant_p): ...this.
6348 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6349 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6351 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6352 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6353 * config/s390/s390.c (legitimate_constant_p): Rename to...
6354 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6355 and add a mode argument.
6356 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6358 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6360 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6361 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6362 (sh_legitimate_constant_p): New function.
6364 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6365 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6366 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6367 (legitimate_constant_p): Rename to...
6368 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6370 (constant_address_p): Update accordingly.
6372 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6373 argument and return a bool.
6374 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6375 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6376 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6377 (spu_rtx_costs): Update accordingly.
6378 * config/spu/predicates.md (vec_imm_operand): Likewise.
6380 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6382 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6383 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6384 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6386 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6387 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6388 * config/vax/vax.c (legitimate_constant_p): Likewise.
6390 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6391 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6392 (xtensa_legitimate_constant_p): New function.
6394 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6396 * target.def (cannot_force_const_mem): Add a mode argument.
6397 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6398 * doc/tm.texi: Regenerate.
6399 * hooks.h (hook_bool_mode_rtx_false): Declare.
6400 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6401 (hook_bool_mode_const_rtx_true): Likewise.
6402 (hook_bool_mode_rtx_false): New function.
6403 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6404 to be non-VOID. Update call to cannot_force_const_mem.
6405 (find_reloads): Update accordingly.
6406 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6407 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6409 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6410 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6411 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6412 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6413 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6414 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6415 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6416 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6417 (m68k_cannot_force_const_mem): ...this new function.
6418 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6420 (mips_const_insns, mips_legitimize_const_move): Update calls.
6421 (mips_secondary_reload_class): Likewise.
6422 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6423 (pa_cannot_force_const_mem): ...this new function.
6424 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6425 (rs6000_cannot_force_const_mem): ...this new function.
6426 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6428 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6429 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6431 (xtensa_cannot_force_const_mem): ...this new function.
6433 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6435 * config/mips/mips.c (mips16_build_function_stub): Call
6436 build_function_type_list instead of build_function_type.
6437 (mips16_build_call_stub): Likewise.
6439 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6441 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6442 instead of build_function_type.
6444 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6446 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6447 instead of build_function_type.
6449 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6452 * config/i386/i386.md (insv): Change operand 0 constraint to
6453 "register_operand". Change operand 1 and 2 constraint to
6454 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6455 * config/i386/sse.md (sse4_1_pinsrb): Export.
6456 (sse2_pinsrw): Ditto.
6457 (sse4_1_pinsrd): Ditto.
6458 (sse4_1_pinsrq): Ditto.
6459 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6460 * config/i386/i386.c (ix86_expand_pinsr): New.
6462 2011-04-20 Easwaran Raman <eraman@google.com>
6464 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6465 containing union type only with -fstrict-aliasing.
6467 2011-04-20 Jim Meyering <meyering@redhat.com>
6469 Remove useless if-before-free tests.
6470 * calls.c (expand_call, save_area): Likewise.
6471 * cfgcleanup.c (try_forward_edges): Likewise.
6472 * collect2.c (collect_execute): Likewise.
6473 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6474 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6475 * coverage.c (coverage_checksum_string): Likewise.
6476 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6477 * cselib.c (cselib_init): Likewise.
6478 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6479 (df_set_clean_cfg): Likewise.
6480 * function.c (free_after_compilation): Likewise.
6481 * gcc.c (do_spec_1, main): Likewise.
6482 * gcov.c (create_file_names): Likewise.
6483 * gensupport.c (identify_predicable_attribute): Likewise.
6484 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6485 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6486 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6487 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6488 * ipa-pure-const.c (local_pure_const): Likewise.
6489 * ipa-reference.c (propagate): Likewise.
6490 * ira-costs.c (free_ira_costs): Likewise.
6491 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6492 * matrix-reorg.c (mat_free): Likewise.
6493 * prefix.c (get_key_value): Likewise.
6494 * profile.c (compute_value_histograms): Likewise.
6495 * reload1.c (free_reg_equiv): Likewise.
6496 * sched-deps.c (free_deps): Likewise.
6497 * sel-sched-ir.c (fence_clear): Likewise.
6498 * sese.c (set_rename, if_region_set_false_region): Likewise.
6499 * tree-data-ref.c (free_rdg): Likewise.
6500 * tree-eh.c (lower_try_finally): Likewise.
6501 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6502 * tree-ssa-live.c (delete_var_map): Likewise.
6503 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6504 * tree-ssa-pre.c (phi_trans_add): Likewise.
6506 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6508 PR tree-optimization/48611
6509 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6510 beyond ERT_MUST_NOT_THROW region.
6512 2011-04-20 Catherine Moore <clm@codesourcery.com>
6514 * config/mips/mips.opt (mfix-24k): New.
6515 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6516 * config/mips/mips.md (length): Increase by 4 for stores if
6518 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6519 all noreorder if fixing 24K errata.
6520 * doc/invoke.texi: Document mfix-24k.
6522 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6524 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6525 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6527 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6529 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6530 (const_ok_for_op): ... to here.
6532 2011-04-20 Kai Tietz <ktietz@redhat.com>
6534 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6535 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6537 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6539 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6541 2011-04-20 Richard Guenther <rguenther@suse.de>
6543 PR tree-optimization/47892
6544 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6547 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6549 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6551 2011-04-20 Tristan Gingold <gingold@adacore.com>
6553 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6555 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6559 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6560 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6561 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6562 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6563 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6565 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6568 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6569 (avr_asm_named_section, avr_asm_output_aligned_common,
6570 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6571 New functions to update...
6572 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6573 (avr_asm_init_sections): Overwrite section callbacks for
6574 data_section, bss_section.
6575 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6577 (avr_file_end): ...here.
6579 2011-04-20 Richard Guenther <rguenther@suse.de>
6582 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6583 objects and types here. Adjust for their offset before comparing.
6585 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6587 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6590 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6592 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6593 (GIMPLE_H): Include $(INTERNAL_FN_H).
6594 (OBJS-common): Add internal-fn.o.
6595 (internal-fn.o): New rule.
6596 * internal-fn.def: New file.
6597 * internal-fn.h: Likewise.
6598 * internal-fn.c: Likewise.
6599 * gimple.h: Include internal-fn.h.
6600 (GF_CALL_INTERNAL): New gf_mask.
6601 (gimple_statement_call): Put fntype into a union with a new
6603 (gimple_build_call_internal): Declare.
6604 (gimple_build_call_internal_vec): Likewise.
6605 (gimple_call_same_target_p): Likewise.
6606 (gimple_call_internal_p): New function.
6607 (gimple_call_internal_fn): Likewise.
6608 (gimple_call_fntype): Return null for internal calls.
6609 (gimple_call_set_fntype): Assert that the function is not internal.
6610 (gimple_call_set_fn): Likewise.
6611 (gimple_call_set_fndecl): Likewise.
6612 (gimple_call_set_internal_fn): New function.
6613 (gimple_call_addr_fndecl): Handle null functions.
6614 (gimple_call_return_type): Likewise null types.
6615 * gimple.c (gimple_build_call_internal_1): New function.
6616 (gimple_build_call_internal): Likewise.
6617 (gimple_build_call_internal_vec): Likewise.
6618 (gimple_call_same_target_p): Likewise.
6619 (gimple_call_flags): Handle calls to internal functions.
6620 (gimple_call_fnspec): New function.
6621 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6622 (gimple_has_side_effects): Handle null functions.
6623 (gimple_rhs_has_side_effects): Likewise.
6624 (gimple_call_copy_skip_args): Handle calls to internal functions.
6625 * cfgexpand.c (expand_call_stmt): Likewise.
6626 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6627 * gimple-fold.c (gimple_fold_call): Handle null functions.
6628 (gimple_fold_stmt_to_constant_1): Don't fold
6629 calls to internal functions.
6630 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6632 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6633 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6634 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6635 (do_warn_unused_result): Likewise.
6636 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6637 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6638 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6639 the target of a call.
6640 (initialize_hash_element): Update accordingly.
6641 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6642 (iterative_hash_hashable_expr): Handle calls to internal functions.
6643 (print_expr_hash_elt): Likewise.
6644 * tree-ssa-pre.c (can_value_number_call): Likewise.
6645 (eliminate): Handle null functions.
6646 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6647 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6648 (find_func_aliases): Likewise.
6649 * value-prof.c (gimple_ic_transform): Likewise.
6650 (gimple_indirect_call_to_profile): Likewise.
6651 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6652 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6654 2011-04-19 Jan Hubicka <jh@suse.cz>
6656 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6657 * ipa-inline.c (inline_small_functions): Compute summaries first,
6658 populate heap later.
6660 2011-04-19 Jan Hubicka <jh@suse.cz>
6662 * cgraph.h (save_inline_function_body): Remove.
6663 * ipa-inline-transform.c: New file, broke out of...
6664 * ipa-inline.c: ... this one; Update toplevel comment.
6665 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6667 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6668 (cgraph_mark_inline_edge): Rename to inline_call; move to
6669 ipa-inline-transform.c.
6670 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6671 move to ipa-inline-transform.c
6672 (recursive_inlining, inline_small_functions, flatten_function,
6673 ipa_inline, inline_always_inline_functions,
6674 early_inline_small_functions): Update.
6675 (inline_transform): Move to ipa-inline-transform.c.
6676 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6678 * Makefile.in (ipa-inline-transform.o): New file.
6679 * cgraphunit.c (save_inline_function_body): Move to
6680 ipa-inline-transform.c
6682 2011-04-19 DJ Delorie <dj@redhat.com>
6684 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6685 registers if we already know there aren't any.
6686 (m32c_emit_epilogue): Don't emit a barrier here.
6687 (m32c_emit_eh_epilogue): Likewise.
6688 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6689 operands at expand time.
6690 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6692 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6693 duplicates. Provide aliases instead.
6694 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6695 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6698 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6700 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6701 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6702 (general_or_i64_p, sparc_register_move_cost): New function.
6704 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6706 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6707 Add lynx, mipssde. Sort table.
6709 2011-04-19 Xinliang David Li <davidxl@google.com>
6711 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6714 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6717 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6718 is a SUBREG with non-MODE_INT mode inside of it.
6720 2011-04-19 Martin Jambor <mjambor@suse.cz>
6722 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6723 also according to actual contants.
6724 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6725 (gimple_fold_call): Use it.
6726 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6728 2011-04-19 Martin Jambor <mjambor@suse.cz>
6730 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6731 non-pointer assignments.
6733 2011-04-19 Martin Jambor <mjambor@suse.cz>
6735 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6736 account anc_offset and otr_type from the indirect edge info.
6737 * ipa-prop.c (get_ancestor_addr_info): New function.
6738 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6739 get_ancestor_addr_info, call it.
6740 (ipa_note_param_call): Do not initialize information about polymorphic
6741 calls, return the indirect call graph edge. Remove the last
6742 parameter, adjust all callers.
6743 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6744 parameters. Initialize polymorphic information in the indirect edge.
6746 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6749 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6750 the types if they have different enumeration identifiers.
6752 2011-04-19 Jan Hubicka <jh@suse.cz>
6754 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6755 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6756 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6757 (optimize_function_for_size_p) ... here.
6759 2011-04-19 Richard Guenther <rguenther@suse.de>
6762 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6765 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6767 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6768 if DECL_NO_INLINE_WARNING_P is set on the function.
6770 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6773 * reload1.c (inc_for_reload): Return void. All callers changed.
6774 (emit_input_reload_insns): Don't try to delete previous output
6775 reloads to a register, or record spill_reg_store for autoincs.
6777 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6779 * gengtype.h: Updated copyright year.
6780 (struct input_file_st): Add inpisplugin field.
6781 (type_fileloc): New function.
6783 (write_typed_struct_alloc_def): Add gcc_assert.
6784 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6785 (write_typed_alloc_defns): Don't output for plugin files.
6786 (input_file_by_name): Clear inpisplugin field.
6787 (main): Set inpisplugin field for plugin files.
6789 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6791 * gengtype-state.c (string_eq): New.
6792 (read_state): Use string_eq instead of strcmp when creating the
6795 2011-04-19 Wei Guozhi <carrot@google.com>
6798 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6799 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6801 * config/arm/constraints.md (Uu): New constraint.
6802 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6804 2011-04-19 Tristan Gingold <gingold@adacore.com>
6806 * config.gcc (-*-*-*vms): Added.
6807 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6809 * config/vms/vms-ld.c: New file.
6810 * config/vms/vms-ar.c: New file.
6811 * config/vms/t-vmsnative: New file.
6813 2011-04-18 Xinliang David Li <davidxl@google.com>
6815 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6817 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6820 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6821 if TREE_TYPE (v) is non-NULL.
6823 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6824 gimple_get_virt_mehtod_for_binfo.
6825 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6826 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6828 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6830 2011-04-18 Michael Matz <matz@suse.de>
6831 Steve Ellcey <sje@cup.hp.com>
6833 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6834 use its mode as source mode if it isn't VOIDmode.
6836 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6838 * doc/passes.texi: Fill crossref nodes.
6840 2011-04-18 Jim Meyering <meyering@redhat.com>
6842 Fix doubled-word typos in comments and strings
6843 * config/alpha/vms-unwind.h: s/for for/for/
6844 * config/arm/unwind-arm.h: Likewise.
6845 * config/microblaze/microblaze.c: Likewise.
6846 * config/sh/constraints.md: s/in in/in/
6847 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6849 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6851 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6852 (AVX_FLOAT_MODE_P): Ditto.
6853 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6854 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6855 (AVX_VEC_FLOAT_MODE_P): Ditto.
6856 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6857 (UNSPEC_MASKSTORE): Ditto.
6858 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6859 Merge from <sse>_movmsk<ssemodesuffix> and
6860 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6861 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6863 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6864 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6865 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6867 2011-04-18 Jan Hubicka <jh@suse.cz>
6869 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6871 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6872 (want_inline_function_called_once_p): Break out the logic from
6874 (edge_badness): Ensure that profile is not misupdated.
6875 (lookup_recursive_calls): Prioritize by call frequencies.
6876 (inline_small_functions): Move program size estimates here;
6877 actually process whole queue even when unit growth has been
6878 met. (to properly compute inline_failed reasons and for the
6879 case unit size decrease.) Revisit comments on recursive inlining.
6880 (ipa_inline): Remove unit summary code; first inline hot calls
6881 of functions called once, cold calls next.
6882 (order, nnodes): Remove unused variables.
6883 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6884 (GTFILES): Remove ipa-inline.c
6885 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6887 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6889 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6891 2011-04-18 Jie Zhang <jie@codesourcery.com>
6892 Richard Earnshaw <rearnsha@arm.com>
6894 * arm.c (neon_builtin_type_bits): Remove.
6895 (typedef enum neon_builtin_mode): New.
6896 (T_MAX): Don't define.
6897 (typedef enum neon_builtin_datum): Remove bits, codes[],
6898 num_vars and base_fcode. Add mode, code and fcode.
6899 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6900 VAR10): Change accordingly.
6901 (neon_builtin_data[]): Change accordingly
6902 (arm_init_neon_builtins): Change accordingly.
6903 (neon_builtin_compare): Remove.
6904 (locate_neon_builtin_icode): Remove.
6905 (arm_expand_neon_builtin): Change accordingly.
6907 * arm.h (enum arm_builtins): Move to ...
6908 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6910 * arm.c (arm_builtin_decl): Declare.
6911 (TARGET_BUILTIN_DECL): Define.
6912 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6913 (arm_builtin_decls[]): New.
6914 (arm_init_neon_builtins): Store builtin declarations in
6915 arm_builtin_decls[].
6916 (arm_init_tls_builtins): Likewise.
6917 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6918 (arm_builtin_decl): New.
6920 2011-04-18 Richard Guenther <rguenther@suse.de>
6922 * tree.c (upper_bound_in_type): Build properly canonicalized
6924 (lower_bound_in_type): Likewise.
6926 2011-04-18 Richard Guenther <rguenther@suse.de>
6928 * gimple.h (gimple_call_addr_fndecl): New function.
6929 (gimple_call_fndecl): Use it.
6930 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6932 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6933 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6935 2011-04-18 Richard Guenther <rguenther@suse.de>
6938 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6940 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6943 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6944 DECL_IN_CONSTANT_POOL without RTL.
6946 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6947 Ira Rosen <ira.rosen@linaro.org>
6950 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6951 to match neon_vzip/vuzp/vtrn_internal.
6952 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6953 outputs explicitly dependent on both inputs.
6954 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6956 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6958 PR tree-optimization/48616
6959 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6960 whether the shift is by scalar or vector based on whether all SLP
6961 scalar stmts have the same rhs.
6963 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6965 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6968 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6971 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6974 2011-04-17 Jan Hubicka <jh@suse.cz>
6976 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6977 * cgrpahunit.c (cgraph_finalize_function): Do not set
6978 finalized_by_frontend.
6979 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6980 finalized_by_frontend.
6982 2011-04-17 Jan Hubicka <jh@suse.cz>
6984 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6985 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6986 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6987 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6989 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6991 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6993 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6996 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6997 is non-null before accessing it.
6998 (input_cgraph): Remove trailing spaces.
7000 2011-04-17 Revital Eres <revital.eres@linaro.org>
7002 * params.def (sms-min-sc): New param flag.
7003 * modulo-sched.c (sms_schedule): Use it.
7004 * doc/invoke.texi (sms-min-sc): Document it.
7006 2011-04-17 Jan Hubicka <jh@suse.cz>
7008 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7009 present, also set gimple_call_set_cannot_inline.
7010 * ipa-inline.c: Update toplevel comment.
7012 (cgraph_clone_inlined_nodes): Fix linebreaks.
7013 (cgraph_check_inline_limits): Restructure to ...
7014 (caller_growth_limits): ... this one; be more tolerant
7015 on growth in nested inline chains; add explanatory comment;
7016 fix stack accounting thinko introduced by previous patch.
7017 (cgraph_default_inline_p): Remove.
7018 (report_inline_failed_reason): New function.
7019 (can_inline_edge_p): New function.
7020 (can_early_inline_edge_p): New function.
7021 (leaf_node_p): Move upwards in file.
7022 (want_early_inline_function_p): New function.
7023 (want_inline_small_function_p): New function.
7024 (want_inline_self_recursive_call_p): New function.
7025 (cgraph_edge_badness): Rename to ...
7026 (edge_badness) ... this one; fix linebreaks.
7027 (update_edge_key): Update call of edge_baddness; add
7028 detailed dump about queue updates.
7029 (update_caller_keys): Use can_inline_edge_p and
7030 want_inline_small_function_p.
7031 (cgraph_decide_recursive_inlining): Rename to...
7032 (recursive_inlining): Use can_inline_edge_p and
7033 want_inline_self_recursive_call_p; simplify and remove no longer
7035 (cgraph_set_inline_failed): Remove.
7036 (add_new_edges_to_heap): Use can_inline_edge_p and
7037 want_inline_small_function_p.
7038 (cgraph_decide_inlining_of_small_functions): Rename to ...
7039 (inline_small_functions): ... this one; cleanup; use
7040 can/want predicates; cleanup debug ouput; work edges till fibheap
7041 is exhausted and do not stop once unit growth is reached; remove
7042 later loop processing remaining edges.
7043 (cgraph_flatten): Rename to ...
7044 (flatten_function): ... this one; use can_inline_edge_p
7045 and can_early_inline_edge_p predicates.
7046 (cgraph_decide_inlining): Rename to ...
7047 (ipa_inline): ... this one; remove unreachable nodes before
7048 inlining functions called once; simplify the pass.
7049 (cgraph_perform_always_inlining): Rename to ...
7050 (inline_always_inline_functions): ... this one; use
7051 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7052 (cgraph_decide_inlining_incrementally): Rename to ...
7053 (early_inline_small_functions): ... this one; simplify
7054 using new predicates; cleanup; make dumps prettier.
7055 (cgraph_early_inlining): Rename to ...
7056 (early_inliner): newer inline regular functions into always-inlines;
7057 fix updating of call stmt summaries.
7058 (pass_early_inline): Update for new names.
7059 (inline_transform): Fix formating.
7060 (gate_cgraph_decide_inlining): Rename to ...
7061 (pass_ipa_inline): ... this one.
7062 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7063 * ipa-inline-analysis.c (dump_inline_summary): Update.
7064 (compute_inline_parameters): Do not compute disregard_inline_limits;
7065 look for mismatching arguments.
7066 (estimate_growth): Fix handlig of non-trivial self recursion.
7067 (inline_read_summary): Do not read info->disregard_inline_limits.
7068 (inline_write_summary): Do not write info->disregard_inline_limits.
7069 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7070 and move all checks into can_inline_edge_p predicate; re-enable code
7071 comparing optimization levels.
7072 (expand_call_inline): Do not test inline_forbidden_into_p.
7073 * Makefile.in (ipa-inline.o): Update arguments.
7075 2011-04-17 Revital Eres <revital.eres@linaro.org>
7077 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7079 2011-04-17 Revital Eres <revital.eres@linaro.org>
7081 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7083 2011-04-17 Michael Matz <matz@suse.de>
7085 PR tree-optimization/48622
7087 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7088 in same order as they're written.
7090 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7092 * config/pa/predicates.md: Reorganize and simplify predicates.
7093 Eliminate duplicate code checks.
7094 (arith_operand): Rename to arith14_operand
7095 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7096 * config/pa/pa.md: Use renamed operands.
7097 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7098 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7099 arith11_operand, adddi3_operand, indexed_memory_operand,
7100 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7101 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7102 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7103 move_dest_operand, move_src_operand, prefetch_cc_operand,
7104 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7105 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7106 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7107 div_operand, int5_operand, movb_comparison_operator,
7108 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7109 arith_double_operand, ireg_operand, lhs_lshift_operand,
7110 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7111 integer_store_memory_operand): Likewise.
7112 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7113 (integer_store_memory_operand, read_only_operand,
7114 function_label_operand, borx_reg_operand,
7115 non_hard_reg_operand): Likewise.
7116 (eq_neq_comparison_operator): Delete unused operator.
7117 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7118 function_label_operand.
7119 (emit_move_sequence): Likewise.
7121 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7123 * config/i386/sse.md (sseunpackmode): New mode attribute.
7124 (ssepackmode): Ditto.
7125 (vec_pack_trunc_<mode>): Macroize expander from
7126 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7127 (vec_unpacks_lo_<mode>): Macroize expander from
7128 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7129 (vec_unpacks_hi_<mode>): Macroize expander from
7130 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7131 (vec_unpacku_lo_<mode>): Macroize expander from
7132 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7133 (vec_unpacku_hi_<mode>): Macroize expander from
7134 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7135 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7136 ix86_expand_sse4_unpack.
7137 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7139 2011-04-16 Jan Hubicka <jh@suse.cz>
7141 * cgraphbuild.c: Include ipa-inline.h.
7142 (reset_inline_failed): Use initialize_inline_failed.
7143 * cgraph.c: Include ipa-inline.h.
7144 (cgraph_create_node_1): Do not initialize estimated_growth.
7145 (initialize_inline_failed): More to ipa-inline-analysis.c
7146 (dump_cgraph_node): Do not dump inline flags.
7147 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7148 and disregard_inline_limits flags.
7149 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7150 time, size, estimated_growth.
7151 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7153 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7154 DECL_DISREGARD_INLINE_LIMITS.
7155 (cgraph_analyze_function): Do not initialize
7156 node->local.disregard_inline_limits.
7157 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7158 inlinable, versionable and disregard_inline_limits.
7159 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7160 cgraph_check_inline_limits, cgraph_default_inline_p,
7161 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7162 add_new_edges_to_heap): Update.
7163 (cgraph_decide_inlining_of_small_function): Update; set
7164 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7165 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7166 cgraph_decide_inlining_incrementally): Update.
7167 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7168 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7169 time, size and estimated_growth parameters.
7170 (estimate_edge_growth): Update.
7171 (initialize_inline_failed): Declare.
7172 * ipa-split.c: Include ipa-inline.h
7173 (execute_split_functions): Update.
7174 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7175 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7176 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7177 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7178 estimated_growth to INT_MIN.
7179 (inline_node_duplication_hook): Likewise.
7180 (dump_inline_summary): Dump new fields.
7181 (compute_inline_parameters): Update.
7182 (estimate_edge_time, estimate_time_after_inlining,
7183 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7184 inline_write_summary):
7185 (initialize_inline_failed): Move here from cgraph.c.
7186 * tree-sra.c: Include ipa-inline.h.
7187 (ipa_sra_preliminary_function_checks): Update.
7188 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7191 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7193 * config/i386/sse.md (V16): New mode iterator.
7195 (AVXMODEQI, AVXMODEDI): Remove.
7196 (sse2, sse3): New mode attribute.
7197 (mov<mode>): Use V16 mode iterator.
7198 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7199 (push<mode>1): Use V16 mode iterator.
7200 (movmisalign<mode>): Ditto.
7201 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7202 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7203 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7204 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7205 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7206 avx_movdqu<avxmodesuffix>.
7207 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7208 *avx_movdqu<avxmodesuffix>.
7209 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7210 avx_lddqu<avxmodesuffix>.
7211 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7212 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7213 avx_movnt<AVXMODEDI:mode>.
7214 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7215 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7217 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7220 * haifa-sched.c (prune_ready_list, schedule_block): Use
7221 sched_pressure_p rather than flag_sched_pressure.
7223 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7225 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7226 cgraph_get_node instead of cgraph_get_create_node.
7228 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7230 * cfgexpand.c (expand_debug_expr): Use
7231 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7233 2011-04-15 Michael Matz <matz@suse.de>
7235 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7236 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7237 * function.c (gimplify_parameters): Ditto.
7238 * gimplify.c (gimplify_vla_decl): Ditto.
7240 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7241 (gimple_call_set_alloca_for_var): New inline function.
7242 (gimple_call_alloca_for_var_p): Ditto.
7243 * gimple.c (gimple_build_call_from_tree): Remember
7244 CALL_ALLOCA_FOR_VAR_P state.
7245 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7247 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7248 calls if they were for VLA objects.
7250 2011-04-15 Martin Jambor <mjambor@suse.cz>
7252 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7255 2011-04-15 Martin Jambor <mjambor@suse.cz>
7258 * tree-emutls.c (lower_emutls_function_body): Call
7259 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7262 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7264 * c-decl.c (detect_field_duplicates): Call
7265 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7267 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7269 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7270 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7271 * ipa-pure-const.c (check_stmt): Call it.
7272 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7274 2011-04-15 Richard Guenther <rguenther@suse.de>
7276 PR tree-optimization/48290
7277 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7278 Properly decide inhibiting propagation based on the valueized
7279 operand. Do loop-closed SSA form preserving here ...
7280 (init_copy_prop): ... not here.
7282 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7285 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7286 (*ieee_smax<mode>3): Likewise.
7288 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7290 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7291 Replace match_operand with match_dup for the third operand in
7294 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7296 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7297 to track processing of conditionals. Update all callers.
7298 (try_combine, simplify_if_then_else): Update.
7300 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7302 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7305 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7307 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7308 instead of match_operand for operand 3.
7310 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7312 * recog.h (insn_operand_data): Add an "allows_mem" field.
7313 * genoutput.c (output_operand_data): Initialize it.
7314 * optabs.c (maybe_legitimize_operand_same_code): New function.
7315 (maybe_legitimize_operand): Use it when matching the original
7318 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7320 * gimplify.c: Fix issues in comments throughout.
7321 (voidify_wrapper_expr): Fix long line.
7322 (build_stack_save_restore): Likewise.
7323 (gimplify_loop_expr): Likewise.
7324 (gimplify_compound_lval): Likewise.
7325 (gimplify_init_ctor_eval): Likewise.
7326 (gimplify_modify_expr_rhs): Likewise.
7327 (omp_notice_threadprivate_variable): Likewise.
7329 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7331 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7332 original one if this is not a builtin function.
7334 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7337 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7338 offset it as needed based on top 2 bits in operands[3], change
7339 MEM mode to SFmode and mask those 2 bits away from operands[3].
7341 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7343 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7344 change from objc_declare_protocols() to objc_declare_protocol().
7346 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7348 * config/i386/sse.md (sse4_1): New mode attribute.
7349 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7350 avx_blend<ssemodesuffix><avxmodesuffix> and
7351 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7352 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7353 avx_blendv<ssemodesuffix><avxmodesuffix> and
7354 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7355 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7356 avx_dp<ssemodesuffix><avxmodesuffix> and
7357 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7358 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7359 (sse4_1_packusdw): Merge with *avx_packusdw.
7360 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7361 (sse4_1_pblendw): Merge with *avx_pblendw.
7362 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7363 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7364 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7366 (sse4_1_round<ssescalarmodesuffix>): Merge with
7367 *avx_round<ssescalarmodesuffix>.
7368 (aesenc): Merge with *avx_aesenc.
7369 (aesenclast): Merge with *avx_aesenclast.
7370 (aesdec): Merge with *avx_aesdec.
7371 (aesdeclast): Merge with *avx_aesdeclast.
7372 (pclmulqdq): Merge with *pclmulqdq.
7373 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7375 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7377 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7380 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7381 (align_local_variable): This. Update DECL_ALIGN.
7382 (add_stack_var): Updated.
7383 (expand_one_stack_var): Likewise.
7385 2011-04-14 Richard Guenther <rguenther@suse.de>
7387 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7389 (dse_initialize_block_local_data, dse_leave_block,
7390 record_voperand_set, get_stmt_uid): Likewise.
7391 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7392 (dse_optimize_stmt): Remove voperand set handling code.
7393 Simplify and improve to handle any kind of killing stmt.
7394 (dse_record_phi): Remove.
7395 (dse_enter_block): Simplify.
7396 (tree_ssa_dse): Likewise.
7397 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7399 2011-04-14 Jan Hubicka <jh@suse.cz>
7401 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7402 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7403 (cgraph_local_info): Remove inline_summary.
7404 * ipa-cp.c: Include ipa-inline.h.
7405 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7406 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7408 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7409 (input_overwrite_node): Do not set inline summary.
7410 (input_node): Do not stream inline summary.
7411 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7412 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7413 growth; we do not have inline parameters computed for that anyway.
7414 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7415 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7416 (inline_summary_t): New type and VECtor.
7417 (debug_inline_summary, dump_inline_summaries): Declare.
7418 (inline_summary): Use VOCtor.
7419 (estimate_edge_growth): Kill hack computing call stmt size directly.
7420 * lto-section-in.c (lto_section_name): Add inline section.
7421 * ipa-inline-analysis.c: Include lto-streamer.h
7422 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7423 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7424 (inline_summary_vec): Define.
7425 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7426 dump_inline_summaries): New functions.
7427 (estimate_function_body_sizes): Properly compute size/time of outgoing
7429 (compute_inline_parameters): Alloc inline_summary; do not compute
7430 size/time of incomming calls.
7431 (estimate_edge_time): Avoid missing time summary hack.
7432 (inline_read_summary): Read inline summary info.
7433 (inline_write_summary): Write inline summary info.
7434 (inline_free_summary): Free all hooks and inline summary vector.
7435 * lto-streamer.h: Add LTO_section_inline_summary section.
7436 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7437 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7439 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7441 * tree-vectorizer.h (vect_strided_store_supported): Add a
7442 HOST_WIDE_INT argument.
7443 (vect_strided_load_supported): Likewise.
7444 (vect_permute_store_chain): Return void.
7445 (vect_transform_strided_load): Likewise.
7446 (vect_permute_load_chain): Delete.
7447 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7448 count argument. Check that the count is a power of two.
7449 (vect_strided_load_supported): Likewise.
7450 (vect_permute_store_chain): Return void. Update after above changes.
7451 Assert that the access is supported.
7452 (vect_permute_load_chain): Likewise.
7453 (vect_transform_strided_load): Return void.
7454 * tree-vect-stmts.c (vectorizable_store): Update calls after
7455 above interface changes.
7456 (vectorizable_load): Likewise.
7457 (vect_analyze_stmt): Don't check for strided powers of two here.
7459 2011-04-14 Richard Guenther <rguenther@suse.de>
7461 PR tree-optimization/48590
7462 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7463 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7464 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7465 BUILT_IN_STACK_SAVE.
7466 * tree-ssa-dce.c (propagate_necessity): Handle
7467 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7469 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7471 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7474 2011-04-14 Richard Guenther <rguenther@suse.de>
7476 * tree.h (get_object_alignment_1): Declare.
7477 * builtins.c (get_object_alignment_1): Split out worker from ...
7478 (get_object_alignment): ... here.
7479 * fold-const.c (get_pointer_modulus_and_residue): Use
7480 get_object_alignment_1.
7482 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7484 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7486 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7487 parameter. Generalise code to handle arrays as well as vectors.
7488 (vect_setup_realignment): Update accordingly.
7489 * tree-vect-stmts.c (vectorizable_store): Likewise.
7490 (vectorizable_load): Likewise.
7492 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7494 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7495 within the per-copy loop.
7497 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7499 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7502 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7504 * doc/options.texi (Negative): Explicitly mention that the
7505 Negative chain must be circular.
7507 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7509 * function.h (block_chainon): Declare.
7510 * function.c (block_chainon): Define.
7512 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7513 Eric Weddington <eric.weddington@atmel.com>
7514 Georg-Johann Lay <avr@gjlay.de>
7516 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7518 (avr_init_builtins, avr_expand_builtin,
7519 avr_expand_delay_cycles, avr_expand_unop_builtin,
7520 avr_expand_binop_builtin ): New functions.
7521 (avr_builtin_id): New enum
7522 (struct avr_builtin_description): New struct
7523 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7524 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7526 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7527 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7528 UNSPECV_DELAY_CYCLES): new enumeration values
7529 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7530 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7531 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7532 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7533 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7534 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7535 "fmulsu"): New insns
7537 * config/avr/avr-c.c: fix line endings
7538 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7539 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7540 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7541 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7542 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7544 * doc/extend.texi (AVR Built-in Functions): New node
7545 (Target Builtins): Add documentation of AVR
7548 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7551 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7552 alone. Error if non-const data has attribute progmem.
7554 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7556 * tree.h (struct tree_constructor): Include tree_typed instead of
7558 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7559 TS_TYPED instead of TS_COMMON.
7561 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7563 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7564 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7565 (sse2_psadbw): Merge with *avx_psadbw.
7566 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7567 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7568 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7569 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7570 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7571 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7572 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7573 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7574 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7575 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7576 (ssse3_palignrti): Merge with *avx_palignrti.
7578 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7580 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7581 * tree-ssanames.c (fini_ssanames): VEC_free it.
7582 (make_ssa_name_fn): Update for VECness of free_ssanames.
7583 (release_ssa_name, release_dead_ssa_names): Likewise.
7584 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7586 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7587 TS_TYPED instead of TS_COMMON.
7589 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7591 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7592 statistics_counter_event.
7593 * tree-ssa-copyrename.c (stats): Define.
7594 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7595 statistics_counter_event.
7596 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7597 (bswap_stats, widen_mul_stats): Define.
7598 (insert_reciprocals): Increment rdivs_inserted.
7599 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7600 rfuncs_inserted. Add calls to statistics_counter_event.
7601 (execute_cse_sincos_1): Increment inserted.
7602 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7603 statistics_counter_event.
7604 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7605 of bswap_stats. Add calls to statistics_counter_event.
7606 (convert_mult_to_widen): Increment widen_mults_inserted.
7607 (convert_plusminus_to_widen): Increment maccs_inserted.
7608 (convert_mult_to_fma): Increment fmas_inserted.
7609 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7610 calls to statistics_counter_event.
7612 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7614 PR rtl-optimization/48455
7615 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7616 `temp_costs->mem_cost'.
7618 2011-04-13 Jan Hubicka <jh@suse.cz>
7620 * ipa-inline.h: New file.
7621 * ipa-inline-analysis.c: New file. Broken out of ...
7622 * ipa-inline.c: ... this file; update toplevel comment;
7623 include ipa-inline.h
7624 (inline_summary): Move to ipa-inline.h
7625 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7626 ipa-inline-analysis.c.
7627 (cgraph_estimate_time_after_inlining): Rename to
7628 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7629 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7630 to estimate_edge_growth.
7631 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7632 rename to estimate_size_after_inlining.
7633 (cgraph_mark_inline_edge): Update for new naming convention.
7634 (cgraph_check_inline_limits): Likewise.
7635 (cgraph_edge_badness): Likewise.
7636 (cgraph_decide_recursive_inlining): Likewise.
7637 (cgraph_decide_inlining_of_small_functions): Likewise.
7638 (cgraph_decide_inlining_incrementally): Likewise.
7639 (cgraph_estimate_growth): Rename to estimate_growth; move to
7640 ipa-inline-analysis.c.
7641 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7642 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7643 (compute_inline_parameters): Likewise.
7644 (compute_inline_parameters_for_current): Likewise.
7645 (pass_inline_parameters): Likewise.
7646 (inline_indirect_intraprocedural_analysis): Likewise.
7647 (analyze_function): Rename to inline_analyze_function; likewise.
7648 (add_new_function): Move to ipa-inline-analysis.c.
7649 (inline_generate_summary): Likewise.
7650 (inline_read_summary): Likewise.
7651 (inline_write_summary): Likewise.
7652 * Makefile.in (ipa-inline-analysis.c): New file.
7654 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7656 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7657 * configure: Regenerate.
7659 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7661 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7662 instead of tree_common.
7663 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7665 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7666 TS_TYPED rather than TS_COMMON.
7667 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7669 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7672 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7673 r20 around calls of __tablejump_elpm__
7675 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7678 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7680 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7682 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7684 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7685 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7686 (cfi_vec): New typedef.
7687 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7688 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7689 (cie_cfi_vec): New static variable.
7690 (cie_cfi_head): Delete.
7691 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7692 declaration changed. Use vector rather than list operations.
7693 (new_cfi): Don't initialize the dw_cfi_next field.
7694 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7695 rather than list operations.
7696 (lookup_cfa): Use vector rather than list operations.
7697 (output_cfis): New argument upto. Accept a cfi_vec rather than
7698 a dw_cfi_ref list head as argument. All callers changed.
7699 Iterate over the vector using upto as a maximum index.
7700 (output_all_cfis): New static function.
7701 (output_fde): Use vector rather than list operations. Use the
7702 new upto argument for output_cfis rather than manipulating a
7704 (dwarf2out_begin_prologue): Change initializations to match
7706 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7707 from the vector length rather than searching for the end of a list.
7708 Use output_all_cfis.
7709 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7711 2011-04-13 Nick Clifton <nickc@redhat.com>
7713 * config/rx/rx.md (movmemsi): Do not use this pattern when
7714 volatile pointers are involved.
7716 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7718 * config/i386/sse.md (pinsrbits): Remove.
7719 (sse2_packsswb): Merge with *avx_packsswb.
7720 (sse2_packssdw): Merge with *avx_packssdw.
7721 (sse2_packuswb): Merge with *avx_packuswb.
7722 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7723 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7724 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7725 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7726 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7727 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7728 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7729 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7730 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7731 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7732 (sse2_loadld): Merge with *avx_loadld.
7733 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7734 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7735 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7736 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7737 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7739 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7741 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7743 * print-tree.c (print_node): Likewise.
7744 * tree-inline.c (copy_tree_r): Likewise.
7745 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7746 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7747 instead of TS_COMMON.
7748 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7749 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7750 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7751 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7752 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7754 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7756 (TREE_CHAIN): Check for a TS_COMMON structure.
7757 (TREE_TYPE): Check for a TS_TYPED structure.
7759 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7761 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7762 cgraph_get_create_node instead of cgraph_node.
7764 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7766 * c-parser.c (c_parser_initelt): Updated call to
7767 objc_build_message_expr.
7768 (c_parser_postfix_expression): Likewise.
7770 2011-04-12 Kai Tietz <ktietz@redhat.com>
7772 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7773 MASK_MS_BITFIELD_LAYOUT bit.
7775 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7777 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7778 assert it is always true.
7779 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7782 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7784 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7785 compiling Objective-C to be more efficient.
7787 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7789 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7792 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7794 * recog.h, genoutput.c, optabs.c: Revert last patch.
7796 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7799 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7801 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7803 * recog.h (insn_operand_data): Add an "allows_mem" field.
7804 * genoutput.c (output_operand_data): Initialize it.
7805 * optabs.c (maybe_legitimize_operand_same_code): New function.
7806 (maybe_legitimize_operand): Use it when matching the original
7809 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7811 * genpreds.c (process_define_predicate): Move most processing
7812 to gensupport.c. Continue to validate the expression.
7813 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7814 (process_define_predicate): Move processing to gensupport.c.
7815 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7816 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7817 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7819 (valid_predicate_name_p): New function, split out from old
7820 genpreds.c:process_define_predicate.
7821 (process_define_predicate): New function, combining code from
7822 old genpreds.c and genrecog.c functions.
7823 (process_rtx): Call it for DEFINE_PREDICATE and
7824 DEFINE_SPECIAL_PREDICATE.
7826 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7828 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7829 size of a '%A' memory reference.
7830 (T_DREG, T_QREG): New neon_builtin_type_bits.
7831 (arm_init_neon_builtins): Assert that the load and store operands
7832 are neon_struct_operands.
7833 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7834 (NEON_ARG_MEMORY): New builtin_arg.
7835 (neon_dereference_pointer): New function.
7836 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7837 Handle NEON_ARG_MEMORY.
7838 (arm_expand_neon_builtin): Update after above interface changes.
7839 Use NEON_ARG_MEMORY for loads and stores.
7840 * config/arm/predicates.md (neon_struct_operand): New predicate.
7841 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7842 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7843 (V_four_elem): Tweak formatting.
7844 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7845 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7846 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7847 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7848 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7849 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7850 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7851 Use %A in the output template.
7852 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7853 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7854 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7855 the width of the memory access. Remove post-increment.
7856 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7858 2011-04-12 Nick Clifton <nickc@redhat.com>
7860 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7861 instruction for interrupt handlers if the target is the basic V850
7863 (expand_epilogue): Likewise.
7865 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7867 PR rtl-optimization/48549
7868 * combine.c (propagate_for_debug): Also stop after BB_END of
7869 this_basic_block. Process LAST and just stop processing after it.
7870 (combine_instructions): If last_combined_insn has been deleted,
7871 set last_combined_insn to its PREV_INSN.
7873 2011-04-12 Richard Guenther <rguenther@suse.de>
7875 PR tree-optimization/46076
7876 * gimple.h (struct gimple_statement_call): Add fntype field.
7877 (gimple_call_fntype): Adjust.
7878 (gimple_call_set_fntype): New function.
7879 * gimple.c (gimple_build_call_1): Set the call function type.
7880 * gimplify.c (gimplify_call_expr): Preserve the function
7881 type the frontend used for the call.
7882 (gimplify_modify_expr): Likewise.
7883 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7885 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7887 * tree-ssa.c (useless_type_conversion_p): Function pointer
7888 conversions are useless.
7890 2011-04-12 Martin Jambor <mjambor@suse.cz>
7892 * cgraph.h (cgraph_node): Remove function declaration.
7893 (cgraph_create_node): Declare.
7894 (cgraph_get_create_node): Likewise.
7895 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7896 Updated all callers.
7897 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7898 the decl does not already exist. Call cgraph_get_create_node instead
7900 (cgraph_get_create_node): New function.
7901 (cgraph_same_body_alias): Update comment.
7902 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7903 assert it does not return NULL.
7904 (cgraph_update_edges_for_call_stmt): Likewise.
7905 (cgraph_clone_edge): Likewise.
7906 (cgraph_create_virtual_clone): Likewise.
7907 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7908 instead of cgraph_node.
7909 (cgraph_add_new_function): Call cgraph_create_node or
7910 cgraph_get_create_node instead of cgraph_node.
7911 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7912 instead of cgraph_node.
7913 (record_eh_tables): Likewise.
7914 (mark_address): Likewise.
7915 (mark_load): Likewise.
7916 (build_cgraph_edges): Call cgraph_get_create_node instead
7918 (rebuild_cgraph_edges): Likewise.
7919 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7920 instead of cgraph_node.
7921 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7923 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7924 cgraph_create_node instead of cgraph_node.
7925 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7927 * lto-cgraph.c (input_node): Likewise.
7928 * lto-streamer-in.c (input_function): Likewise.
7929 * varasm.c (mark_decl_referenced): Likewise.
7930 (assemble_alias): Likewise.
7932 2011-04-12 Martin Jambor <mjambor@suse.cz>
7934 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7935 instead of cgraph_node and assert it does not return NULL.
7936 * lto-streamer-in.c (lto_read_body): Likewise.
7937 * omp-low.c (new_omp_context): Likewise.
7938 (create_task_copyfn): Likewise.
7939 * tree-emutls.c (lower_emutls_function_body): Likewise.
7940 * matrix-reorg.c (transform_allocation_sites): Likewise.
7942 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7945 * c-typeck.c (build_asm_expr): Error out on attempts to use
7946 void type outputs or inputs for constraints that allow reg or
7949 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7950 Richard Earnshaw <rearnsha@arm.com>
7953 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7954 to use sign-magnitude offsets. Reject unsupported unaligned
7955 cases. Add detailed description in comments.
7956 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7957 condition from TARGET_32BIT to TARGET_ARM.
7959 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7961 * tree.h (struct typed_tree): New.
7962 (struct tree_common): Include it instead of tree_base.
7963 (TREE_TYPE): Update for new location of type field.
7964 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7965 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7966 (union tree_node): Add typed field.
7967 * treestruct.def (TS_TYPED): New.
7968 * lto-streamer.c (check_handled_ts_structures): Handle it.
7969 * tree.c (MARK_TS_TYPED): New macro.
7970 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7972 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7974 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7975 (force_nonfallthru): Do not alter the loop nest if no basic block
7978 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7980 * config/i386/sse.md (VI): New mode iterator.
7982 (AVX256MODEI): Ditto.
7983 (AVXMODEF4P): Ditto.
7984 (avxvecpsmode): Ditto.
7985 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7986 (sse2_andnot<mode>3): New expander.
7987 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7988 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7989 (<any_logic:code><mode>3): Use VI mode iterator.
7990 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7991 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7992 (*andnottf3): Handle AVX three-operand constraints.
7993 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7995 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7996 Robert Millan <rmh@gnu.org>
7998 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7999 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8000 GNU_USER_DYNAMIC_LINKER64): Define.
8001 (REG_NAME): Don't undefine.
8002 (MD_UNWIND_SUPPORT): Undefine.
8003 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8004 (REG_NAME): Don't undefine.
8005 (MD_UNWIND_SUPPORT): Undefine.
8006 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8008 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8010 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8011 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8013 2011-04-11 Xinliang David Li <davidxl@google.com>
8015 * value-profile.c (check_ic_target): New function.
8016 (gimple_ic_transform): Sanity check indirect call target.
8017 * gimple-low.c (gimple_check_call_args): Interface change.
8018 (gimple_check_call_matching_types): New function.
8019 * tree-inline.c (tree_can_inline_p): Call new function.
8021 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8023 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8024 tree-pretty-print.h & realmpfr.h.
8026 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8029 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8030 (setup_allocno_and_important_classes): Ditto.
8032 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8034 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8035 GNU_USER_DYNAMIC_LINKER.
8036 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8037 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8038 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8039 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8040 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8041 GNU_USER_TARGET_OS_CPP_BUILTINS.
8042 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8043 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8044 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8045 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8046 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8047 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8048 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8049 GNU_USER_TARGET_OS_CPP_BUILTINS.
8050 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8051 GNU_USER_DYNAMIC_LINKER.
8052 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8053 GNU_USER_TARGET_OS_CPP_BUILTINS.
8054 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8055 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8056 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8057 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8058 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8059 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8060 GNU_USER_DYNAMIC_LINKER64): Remove.
8061 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8062 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8063 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8064 GNU_USER_DYNAMIC_LINKER.
8065 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8066 GNU_USER_TARGET_OS_CPP_BUILTINS.
8067 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8068 GNU_USER_TARGET_OS_CPP_BUILTINS.
8069 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8070 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8071 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8072 GNU_USER_TARGET_OS_CPP_BUILTINS.
8073 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8074 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8075 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8076 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8077 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8078 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8079 GNU_USER_DYNAMIC_LINKER.
8080 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8081 GNU_USER_TARGET_OS_CPP_BUILTINS.
8082 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8083 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8084 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8085 GNU_USER_DYNAMIC_LINKER.
8086 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8087 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8088 * config/mips/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/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8093 GNU_USER_DYNAMIC_LINKERN32.
8094 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8095 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8096 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8097 GNU_USER_DYNAMIC_LINKER32.
8098 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8099 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8100 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8101 GNU_USER_DYNAMIC_LINKER.
8102 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8103 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8104 * config/pa/pa-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 GNU_USER_DYNAMIC_LINKER.
8107 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8108 GNU_USER_DYNAMIC_LINKER32.
8109 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8110 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8111 GNU_USER_DYNAMIC_LINKER.
8112 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8114 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8115 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8116 GNU_USER_DYNAMIC_LINKER64.
8117 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8118 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8119 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8120 GNU_USER_DYNAMIC_LINKER.
8121 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8122 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8123 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8124 GNU_USER_DYNAMIC_LINKER.
8125 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8126 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8127 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8128 GNU_USER_DYNAMIC_LINKER32.
8129 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8130 GNU_USER_DYNAMIC_LINKER64.
8131 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8132 GNU_USER_DYNAMIC_LINKER64.
8133 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8134 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8135 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8136 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8137 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8139 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8141 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8142 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8143 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8144 GNU_USER_DYNAMIC_LINKER.
8145 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8146 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8147 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8148 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8149 GNU_USER_DYNAMIC_LINKER64.
8150 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8151 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8152 GNU_USER_LINK_EMULATION.
8153 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8154 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8155 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8156 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8157 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8158 CPP_SPEC, CC1_SPEC): Remove.
8159 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8160 (GNU_USER_DYNAMIC_LINKER): Define.
8161 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8162 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8163 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8164 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8165 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8166 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8167 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8168 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8169 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8170 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8171 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8172 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8173 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8174 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8175 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8176 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8177 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8178 GNU_USER_DYNAMIC_LINKER.
8179 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8180 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8181 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8182 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8183 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8184 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8185 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8186 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8187 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8188 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8190 2011-04-11 Kai Tietz <ktietz@redhat.com>
8194 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8195 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8197 (ix86_is_msabi_thiscall): Removed.
8198 (ix86_is_type_thiscall): Likewise.
8199 (ix86_get_callcvt): New function.
8200 (ix86_comp_type_attributes): Simplify check.
8201 (ix86_function_regparm): Use ix86_get_callcvt for calling
8202 convention attribute checks.
8203 (ix86_return_pops_args): Likewise.
8204 (ix86_static_chain): Likewise.
8205 (x86_this_parameter): Likewise.
8206 (x86_output_mi_thunk): Likewise.
8207 (ix86_function_type_abi): Optimize check for types without attributes.
8208 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8209 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8210 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8212 (IX86_BASE_CALLCVT): Helper macro.
8213 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8214 Use ix86_get_callcvt for calling convention attribute checks and avoid
8215 symbol-decoration for stdcall in TARGET_RTD case.
8216 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8218 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8221 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8223 * config/i386/sse.md (VI_128): New mode iterator.
8224 (VI12_128): Rename from SSEMODE12.
8225 (VI14_128): Rename from SSEMODE14.
8226 (VI124_128): New mode iterator.
8227 (VI24_128): Rename from SSEMODE248.
8228 (VI248_128): Rename from SSEMODE248.
8229 (SSEMODE124C8): Remove.
8230 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8231 (*sse2_<plusminus_insn><mode>3): Merge with
8232 *avx_<plusminus_insn><mode>3.
8233 (*mulv8hi3): Merge with *avx_mulv8hi3.
8234 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8235 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8236 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8237 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8238 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8239 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8240 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8241 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8242 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8243 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8244 (*<smaxmin:code>v8hi3): Ditto.
8245 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8246 (*<smaxmin:code>v16qi3): Ditto.
8247 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8248 (*sse2_eq<mode>3): Ditto.
8249 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8250 (*sse2_gt<mode>3): Ditto.
8251 (vcondv2di): Split out of vcond<mode>.
8252 (vconduv2di): Split out of vcondu<mode>.
8254 2011-04-11 Richard Guenther <rguenther@suse.de>
8256 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8257 before calling tree_low_cst.
8259 2011-04-11 Richard Guenther <rguenther@suse.de>
8261 * stor-layout.c (layout_type): Compute all array index size operations
8262 in the original type.
8263 (initialize_sizetypes): Add comment.
8264 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8266 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8268 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8270 2011-04-11 Martin Jambor <mjambor@suse.cz>
8272 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8273 of cgraph_node, handle NULL return value.
8274 (cgraph_global_info): Likewise.
8275 (cgraph_rtl_info): Likewise.
8276 * tree-inline.c (estimate_num_insns): Likewise.
8277 * gimplify.c (unshare_body): Likewise.
8278 (unvisit_body): Likewise.
8279 (gimplify_body): Likewise.
8280 * predict.c (optimize_function_for_size_p): Likewise.
8281 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8282 (call_may_clobber_ref_p_1): Likewise.
8283 * varasm.c (function_section_1): Likewise.
8284 (assemble_start_function): Likewise.
8286 2011-04-11 Martin Jambor <mjambor@suse.cz>
8288 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8290 * final.c (rest_of_clean_state): Likewise.
8291 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8292 * passes.c (pass_init_dump_file): Likewise.
8293 (execute_all_ipa_transforms): Likewise.
8294 (function_called_by_processed_nodes_p): Likewise.
8295 * predict.c (maybe_hot_frequency_p): Likewise.
8296 (probably_never_executed_bb_p): Likewise.
8297 (compute_function_frequency): Likewise.
8298 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8299 (unnest_nesting_tree_1): Likewise.
8300 (lower_nested_functions): Likewise.
8301 * tree-optimize.c (execute_fixup_cfg): Likewise.
8302 (tree_rest_of_compilation): Likewise.
8303 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8304 * tree-sra.c (ipa_early_sra): Likewise.
8305 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8306 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8307 * ipa.c (record_cdtor_fn): Likewise.
8308 * ipa-inline.c (cgraph_early_inlining): Likewise.
8309 (compute_inline_parameters_for_current): Likewise.
8310 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8311 * ipa-pure-const.c (local_pure_const): Likewise.
8312 * ipa-split.c (split_function): Likewise.
8313 (execute_split_functions): Likewise.
8314 * cgraphbuild.c (build_cgraph_edges): Likewise.
8315 (rebuild_cgraph_edges): Likewise.
8316 (cgraph_rebuild_references): Likewise.
8317 (remove_cgraph_callee_edges): Likewise.
8318 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8319 (verify_cgraph_node): Likewise.
8320 (cgraph_analyze_functions): Likewise.
8321 (cgraph_preserve_function_body_p): Likewise.
8322 (save_inline_function_body): Likewise.
8323 (save_inline_function_body): Likewise.
8324 * tree-inline.c (copy_bb): Likewise.
8325 (optimize_inline_calls): Likewise.
8327 2011-04-11 Martin Jambor <mjambor@suse.cz>
8329 PR tree-optimization/48195
8330 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8331 ipa_check_create_edge_args.
8332 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8333 ipa_check_create_edge_args.
8334 * ipa-inline.c (inline_generate_summary): Do not call
8335 ipa_check_create_node_params and ipa_check_create_edge_args.
8336 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8337 ipa_check_create_edge_args.
8339 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8341 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8343 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8344 * function.c (record_hard_reg_sets): Likewise.
8345 * ira.c (compute_regs_asm_clobbered): Likewise.
8346 * sched-deps.c (sched_analyze_1): Likewise.
8347 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8349 2011-04-09 Xinliang David Li <davidxl@google.com>
8351 PR tree-optimization/PR48484
8352 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8353 has_valid_pred lazily
8355 2011-04-09 Duncan Sands <baldrick@free.fr>
8357 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8359 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8361 * combine.c (combine_validate_cost): Adjust comments. Set registered
8362 cost of I0 to zero at the end, if any.
8364 2011-04-08 Xinliang David Li <davidxl@google.com>
8366 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8367 to insane profile data.
8369 2011-04-08 Xinliang David Li <davidxl@google.com>
8371 * ipa-cp.c (ipcp_update_profiling): Correct
8372 negative scale factor due to insane profile data.
8374 2011-04-08 Xinliang David Li <davidxl@google.com>
8376 * final.c (dump_basic_block_info): New function.
8377 (final): Dump basic block.
8378 (final_scan_insn): Remove old dump.
8380 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8383 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8386 2011-04-08 Michael Matz <matz@suse.de>
8389 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8391 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8392 * rtl.h (rebuild_jump_labels_chain): Declare.
8393 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8394 insns inserted on edges.
8396 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8398 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8399 * config/arm/arm-arches.def: New.
8400 * config/arm/arm-opts.h: New.
8401 * config/arm/genopt.sh: New.
8402 * config/arm/arm-tables.opt: New (generated).
8403 * config/arm/arm.c (arm_handle_option, arm_target_help,
8404 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8405 (all_architectures): Get most table contents from arm-arches.def.
8406 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8407 arm_selected_tune here.
8408 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8409 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8410 (march=, mcpu=, mtune=): Use Enum and Var.
8411 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8412 (arm.o): Update dependencies.
8414 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8416 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8418 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8419 (write_typed_alloc_defns): Likewise.
8420 (main): Calls write_typed_alloc_defns with output_header.
8422 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8425 * ira-color.c (setup_profitable_hard_regs): Add comments.
8426 Don't take prohibited hard regs into account.
8427 (setup_conflict_profitable_regs): Rename to
8428 get_conflict_profitable_regs.
8429 (check_hard_reg_p): Check prohibited hard regs.
8431 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8433 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8434 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8435 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8437 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8440 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8441 move from floating point to shift amount register.
8442 (emit_move_sequence): Remove secondary reload support for floating
8443 point to shift amount amount register copies.
8444 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8445 amount register copies.
8446 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8447 register, return false if mode isn't a scalar integer mode.
8448 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8450 2011-04-08 Richard Guenther <rguenther@suse.de>
8452 * gimple.c (gimple_call_flags): Remove kludge.
8454 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8456 * sel-sched.c (sel_region_init): Move call to
8457 sel_setup_region_sched_flags after setup_current_loop_nest.
8459 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8461 PR rtl-optimization/48272
8462 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8463 init_insn_reg_pressure_info. Adjust a caller.
8464 * sched-int.h (init_insn_reg_pressure_info): Declare.
8465 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8466 when sched-pressure is enabled.
8468 2011-04-08 Richard Guenther <rguenther@suse.de>
8470 * gimple.c (gimple_set_modified): Do not queue calls to
8471 MODIFIED_NORETURN_CALLS here ...
8472 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8474 2011-04-08 Richard Guenther <rguenther@suse.de>
8477 * toplev.c (lang_dependent_init): Do not open asm_out_file
8478 in WPA mode, nor perform debug machinery initialization.
8479 (finalize): Do not unlink asm_out_file in WPA mode.
8481 2011-04-08 Richard Guenther <rguenther@suse.de>
8483 * gimple.h (gimple_call_fntype): New function.
8484 (gimple_call_return_type): Use it.
8485 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8486 * gimple-low.c (gimple_check_call_args): Likewise.
8487 * gimple.c (gimple_call_flags): Likewise.
8488 (gimple_call_arg_flags): Likewise.
8489 (gimple_call_return_flags): Likewise.
8490 * tree-cfg.c (verify_gimple_call): Likewise.
8491 (do_warn_unused_result): Likewise.
8492 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8493 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8495 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8497 PR rtl-optimization/48235
8498 * sel-sched.c (code_motion_process_successors): Recompute the last
8499 insn in basic block if control flow changed.
8500 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8501 Update condition for ilist_remove.
8503 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8505 PR rtl-optimization/48302
8506 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8507 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8508 it to record added preheader blocks.
8509 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8510 on to sel_add_loop_preheaders.
8511 (sel_region_init): Move call to setup_current_loop_nest after
8514 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8517 * cfgloop.h (loop_has_exit_edges): New helper.
8518 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8520 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8521 that have no exit edges.
8523 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8525 PR rtl-optimization/48442
8526 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8527 all callers. Adjust assert.
8529 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8531 PR tree-optimization/48377
8532 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8533 is_packed to true even for types with smaller TYPE_ALIGN than
8536 2011-04-08 Richard Guenther <rguenther@suse.de>
8539 * doc/tm.texi: Re-generate.
8541 2011-04-08 Wei Guozhi <carrot@google.com>
8544 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8545 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8546 * config/arm/arm.md (*push_multi): Change the length computation to
8549 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8551 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8552 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8553 * doc/tm.texi: Regenerate.
8554 * system.h (ASM_OUTPUT_BSS): Poison.
8555 * varasm.c (asm_output_bss): Remove function.
8556 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8558 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8559 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8560 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8561 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8563 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8565 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8567 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8569 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8571 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8574 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8576 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8577 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8578 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8580 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8581 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8582 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8583 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8584 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8585 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8586 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8587 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8588 options. Don't map other m68k options manually. Don't handle
8589 old-style options as canonical.
8590 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8591 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8593 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8595 * basic-block.h (force_nonfallthru): Move to...
8596 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8597 (force_nonfallthru): ...here.
8598 * cfghooks.c (force_nonfallthru): New function.
8599 * cfgrtl.c (force_nonfallthru): Rename into...
8600 (rtl_force_nonfallthru): ...this.
8601 (commit_one_edge_insertion): Do not set AUX field.
8602 (commit_edge_insertions): Do not discover new basic blocks.
8603 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8604 (cfg_layout_rtl_cfg_hooks): Likewise.
8605 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8606 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8607 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8609 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8611 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8614 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8616 * config/i386/sse.md: Update copyright year.
8617 (avxcvtvecmode): Remove.
8618 (sse_movhlps): Merge with *avx_movhlps.
8619 (sse_movlhps): Merge with *avx_movlhps.
8620 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8621 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8622 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8623 (sse_loadhps): Merge with *avx_loadhps.
8624 (sse_storelps): Merge with *avx_storelps.
8625 (sse_loadlps): Merge with *avx_loadlps.
8626 (sse_movss): Merge with *avx_movss.
8627 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8628 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8629 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8630 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8631 (vec_set<mode>_0): Ditto.
8632 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8633 (sse4_1_insertps): Merge with *avx_insertps.
8634 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8635 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8636 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8637 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8638 (sse2_storehpd): Merge with *avx_storehpd.
8639 (sse2_loadhpd): Merge with *avx_loadhpd.
8640 (sse2_loadlpd): Merge with *avx_loadlpd.
8641 (sse2_movsd): Merge with *avx_movsd.
8642 (*vec_concatv2df): Merge with *vec_concatv2df.
8644 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8647 * combine.c (combine_instructions): Add last_combined_insn,
8648 update it if insn is after it, pass it to all try_combine calls.
8649 (try_combine): Add last_combined_insn parameter, pass it instead of
8650 i3 to propagate_for_debug.
8652 2011-04-07 Nick Clifton <nickc@redhat.com>
8654 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8655 to handle MDR <-> data register transfers.
8656 (movhi_internal): Likewise.
8658 2011-04-07 Alan Modra <amodra@gmail.com>
8660 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8661 previous stack info.
8663 2011-04-07 Tom de Vries <tom@codesourcery.com>
8666 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8667 flow_find_cross_jump. Swap variables to implement backward replacement.
8668 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8670 2011-04-07 Tom de Vries <tom@codesourcery.com>
8673 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8674 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8676 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8677 src1 or src2. Redirect edges to the last basic block. Update
8678 frequency and count on multiple basic blocks in case of fallthru.
8680 2011-04-07 Tom de Vries <tom@codesourcery.com>
8683 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8685 (old_insns_match_p): Change return type. Replace return false/true
8686 with return dir_none/dir_both. Use can_replace_by.
8687 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8688 direction from dir_p. Register replacement direction in dir, last_dir
8689 and afterlast_dir. Handle new return type of old_insns_match_p using
8690 merge_dir. Return replacement direction in dir_p.
8691 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8692 return type of old_insns_match_p.
8693 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8694 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8695 flow_find_cross_jump.
8696 * basic-block.h (enum replace_direction): New type.
8697 (flow_find_cross_jump): Add parameter to declaration.
8699 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8701 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8702 (AVXMODEDCVTPS2DQ): Ditto.
8703 (VEC_FLOAT_MODE): Ditto.
8704 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8705 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8706 (<any_logic:code><mode>3): Use VF mode iterator.
8707 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8708 Use VF mode iterator.
8709 (copysign<mode>3): Use VF mode iterator.
8710 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8711 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8712 (*<any_logic:code><MODEF:mode>3): Merge with
8713 *avx_<any_logic:code><MODEF:mode>3.
8714 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8715 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8716 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8717 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8718 (sse2_cvtdq2ps): Use %v modifier.
8719 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8720 (avx_cvtps2dq<avxmodesuffix>): Remove.
8721 (sse2_cvtps2dq): Use %v modifier.
8722 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8723 (avx_cvttps2dq<avxmodesuffix>): Remove.
8724 (sse2_cvttps2dq): Use %v modifier.
8725 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8726 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8727 (sse2_cvtsd2siq): Fix insn template.
8728 (sse2_cvtsd2siq_2): Ditto.
8729 (sse2_cvttsd2siq): Ditto.
8730 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8731 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8733 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8735 * gcov-io.c: Use GCC Runtime Library Exception.
8737 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8740 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8741 as base_reg whatever register reg has been eliminated to, instead
8742 of hardcoding STACK_POINTER_REGNUM.
8744 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8746 * doc/tm.texi.in: Document C target hooks as separate from general
8748 * doc/tm.texi: Regenerate.
8749 * genhooks.c (struct hook_desc): Add docname field.
8750 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8752 (hook_array): Include c-target.def.
8753 (emit_documentation): Use docname field in output.
8754 (emit_init_macros): Take docname argument. Only emit definitions
8755 for hooks matching docname.
8756 (main): Expect additional arguments in all cases. Pass argument
8757 to emit_init_macros.
8758 * target.def: Move initial macro definitions and comments to
8759 target-hooks-macros.h.
8760 (gcc_targetcm): Move to c-family/c-target.def.
8761 * target.h (targetcm): Move declaration to c-family/c-target.h.
8762 * targhooks.c (default_handle_c_option): Move to
8764 * targhooks.h (default_handle_c_option): Move declaration to
8765 c-family/c-common.h.
8766 * target-hooks-macros.h: New file.
8767 * config.gcc (target_has_targetcm): Define and use to add to
8768 c_target_objs and cxx_target_objs.
8769 * config/default-c.c: New file.
8770 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8771 of target.h and target-def.h.
8772 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8773 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8774 darwin_check_cfstring_format_arg): Make static.
8775 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8776 TARGET_STRING_OBJECT_REF_TYPE_P,
8777 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8778 * config/darwin-protos.h (darwin_objc_construct_string,
8779 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8781 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8782 TARGET_STRING_OBJECT_REF_TYPE_P,
8783 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8784 * config/t-darwin (darwin-c.o): Update dependencies.
8785 * system.h (TARGET_HAS_TARGETCM): Poison.
8786 * Makefile.in (TARGET_H): Update.
8787 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8788 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8789 (default-c.o): New target.
8790 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8791 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8792 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8794 (build/genhooks.o): Update dependencies.
8796 2011-04-06 Richard Guenther <rguenther@suse.de>
8798 * ipa-inline.c (enum inlining_mode): Remove.
8799 (cgraph_flatten): Use some other token.
8800 (cgraph_edge_early_inlinable_p): New function, split out from ...
8801 (cgraph_perform_always_inlining): New function, split out from ...
8802 (cgraph_decide_inlining_incrementally): ... here.
8803 (cgraph_mark_inline_edge): Adjust.
8804 (cgraph_early_inlining): Re-structure.
8805 (pass_early_inline): Require SSA form.
8807 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8808 Julian Brown <julian@codesourcery.com>
8809 Mark Shinwell <shinwell@codesourcery.com>
8811 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8812 LO_REGS only for Thumb-1.
8813 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8814 be used in short instructions when optimising for size on Thumb-2.
8816 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8818 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8819 associated with user returns to be preserved.
8821 2011-04-06 Tristan Gingold <gingold@adacore.com>
8823 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8824 symbol_queue_size, DBXOUT_DECR_NESTING,
8825 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8826 if XCOFF_DEBUGGING_INFO.
8828 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8830 * config/i386/i386.md (attribute isa): New.
8831 (attribute enabled): New.
8832 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8833 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8834 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8835 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8836 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8837 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8838 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8839 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8841 * config/i386/sse.md (VF): New mode iterator.
8845 (SSEMODEF4): Remove.
8846 (attribute sse): Handle V8SF and V4DF modes.
8847 (<absneg:code><mode>2): Use VF mode iterator.
8848 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8850 (<plusminus_insn><mode>3): Use VF mode iterator.
8851 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8852 Use VF mode iterator.
8853 (<sse>_vm<plusminus_insn><mode>3): Merge with
8854 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8855 (mul<mode>3): Use VF mode iterator.
8856 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8857 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8859 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8860 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8861 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8862 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8864 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8865 Use VF1 mode iterator.
8866 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8867 (sqrt<VF2:mode>2): New expander.
8868 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8869 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8870 and sqrtv2df2. Use VF mode iterator.
8871 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8873 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8874 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8875 Use VF1 mode iterator.
8876 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8877 (<smaxmin:code><mode>3): Use VF mode iterator.
8878 (*<smaxmin:code><mode>3_finite): Merge with
8879 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8880 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8881 (<sse>_vm<smaxmin:code><mode>2): Merge with
8882 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8883 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8885 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8887 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8888 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8889 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8890 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8891 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8893 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8894 Use VF_128 mode iterator.
8895 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8897 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8898 VF_128 mode iterator.
8899 (vcond<mode>): Use VF mode iterator.
8900 * config/i386/predicates.md (sse_comparison_operator): Merge with
8901 avx_comparison_float_operator. Do not declare as special_predicate.
8902 * config/i386/i386.c (struct builtin_description): Update for renamed
8904 (ix86_expand_args_builtin): Ditto.
8905 (ix86_expand_sse_compare_mask): Ditto.
8907 2011-04-06 Richard Guenther <rguenther@suse.de>
8909 * tree-inline.c (estimate_num_insns): For calls simply account
8910 for all passed arguments and a used return value.
8912 2011-04-06 Richard Guenther <rguenther@suse.de>
8914 PR tree-optimization/47663
8915 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8916 call_stmt_time fields.
8917 (cgraph_edge_inlinable_p): Declare.
8918 (cgraph_edge_recursive_p): New inline function.
8919 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8920 (cgraph_clone_edge): Copy it.
8921 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8922 Account for call stmt time.
8923 (cgraph_estimate_time_after_inlining): Take edge argument.
8924 (cgraph_estimate_edge_growth): Account call stmt size.
8925 (cgraph_estimate_size_after_inlining): Take edge argument.
8926 (cgraph_mark_inline_edge): Adjust.
8927 (cgraph_check_inline_limits): Likewise.
8928 (cgraph_recursive_inlining_p): Remove.
8929 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8930 (cgraph_decide_recursive_inlining): Take edge argument and
8932 (cgraph_decide_inlining_of_small_functions): Do not avoid
8933 diags for recursive inlining here.
8934 (cgraph_flatten): Adjust.
8935 (cgraph_decide_inlining_incrementally): Likewise.
8936 (estimate_function_body_sizes): Remove call cost handling.
8937 (compute_inline_parameters): Initialize caller edge call costs.
8938 (cgraph_estimate_edge_growth): New function.
8939 (cgraph_estimate_growth): Use it.
8940 (cgraph_edge_badness): Likewise.
8941 (cgraph_check_inline_limits): Take an edge argument.
8942 (cgraph_decide_inlining_of_small_functions): Adjust.
8943 (cgraph_decide_inlining): Likewise.
8944 * tree-inline.c (estimate_num_insns): Only account for call
8945 return value if it is used.
8946 (expand_call_inline): Avoid diagnostics on recursive inline
8948 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8949 (input_edge): Input edge call costs.
8951 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8953 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8955 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8957 * doc/invoke.texi (Spec Files): Fix typo.
8959 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8961 * profile.c (branch_prob): Move declaration of local variable. Remove
8962 obsolete ??? comment. Expand the location explicitly instead of using
8963 the LOCATION_FILE and LOCATION_LINE macros.
8965 2011-04-06 Wei Guozhi <carrot@google.com>
8968 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8969 (arm_cond_branch): Likewise.
8970 (arm_cond_branch_reversed): Likewise.
8971 (arm_jump): Likewise.
8972 (push_multi): Likewise.
8973 * config/arm/constraints.md (Py): New constraint.
8975 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8978 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8980 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8981 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8982 #ifdef DBX_DEBUGGING_INFO.
8984 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8987 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8988 if old and new states differ.
8990 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8992 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8993 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8994 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8995 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8996 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8998 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8999 ColdFire options to -mcpu= options.
9001 2011-04-05 Jeff Law <law@redhat.com>
9003 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9004 check if BB is a successor of LOOP->header and return
9005 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9007 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9009 * cprop.c (struct reg_use): Remove.
9010 (reg_use_table): Make an array of RTX.
9011 (find_used_regs, constprop_register, local_cprop_pass,
9012 bypass_block): Simplify users of reg_use_table.
9013 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9014 on one of the uses found by find_used_regs.
9016 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9019 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9022 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9024 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9026 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9028 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9031 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9033 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9035 * combine.c: Include obstack.h.
9036 (struct insn_link): Define.
9037 (uid_log_links): Adjust type.
9038 (FOR_EACH_LOG_LINK): New macro.
9039 (insn_link_obstack): Declare.
9040 (alloc_insn_link): Define.
9041 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9042 type of link variables.
9043 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9044 (try_combine, record_promoted_values, distribute_notes): Likewise.
9045 (distribute_links): Likewise. Tweak prototype.
9046 (clear_log_links): Delete.
9047 (adjust_for_new_dest): Call alloc_insn_link.
9048 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9050 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9052 * gcse.c (modify_mem_list): Convert to an array of VECs.
9053 (canon_modify_mem_list, compute_transp): Tweak formatting.
9054 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9055 (load_killed_in_block_p): Likewise.
9056 (record_last_mem_set_info): Likewise.
9057 (clear_modify_mem_tables): Likewise.
9059 2011-04-05 Tom de Vries <tom@codesourcery.com>
9062 * function.c (emit_use_return_register_into_block): Only define if
9065 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9067 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9069 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9071 * config/rx/rx-opts.h: New.
9072 * config/rx/rx.c (rx_cpu_type): Remove.
9073 (rx_handle_option): Don't assert that global structures are in
9074 use. Access variables via opts pointer. Defer most handling of
9075 OPT_mint_register_. Use error_at.
9076 (rx_option_override): Handle deferred OPT_mint_register_ here.
9077 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9078 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9079 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9080 (rx_cpu_types): New Enum and EnumValue entries.
9081 (mint-register=): Use Defer and use Var accordingly.
9083 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9085 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9086 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9087 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9089 (debug_free_queue, debug_nesting, symbol_queue_index):
9091 * dbxout.c: ...to here. Make static.
9093 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9095 * gcse.c (modify_pair): Define. Define a VEC of it.
9096 (canon_modify_mem_list): Convert to an array of VECs.
9097 (free_insn_expr_list_list): Delete.
9098 (clear_modify_mem_tables): Call VEC_free instead.
9099 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9100 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9101 (canon_list_insert, compute_transp): Likewise.
9103 2011-04-05 Tom de Vries <tom@codesourcery.com>
9106 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9109 2011-04-05 Tom de Vries <tom@codesourcery.com>
9112 * function.c (emit_use_return_register_into_block): New function.
9113 (thread_prologue_and_epilogue_insns): Use
9114 emit_use_return_register_into_block.
9116 2011-04-05 Tom de Vries <tom@codesourcery.com>
9119 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9122 2011-04-05 Tom de Vries <tom@codesourcery.com>
9124 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9126 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9128 * config/arm/arm.md (define_constants for unspec): Replace with
9130 (define_constants for unspecv): Replace with define_c_enum.
9131 * config/arm/neon.md (define_constants for unspec): Replace with
9134 2011-04-04 Richard Henderson <rth@redhat.com>
9137 * dwarf2out.c (output_line_info): Always emit line info from
9138 at least one section.
9139 (dwarf2out_init): Create text_section_line_info here ...
9140 (set_cur_line_info_table): ... not here.
9142 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9145 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9148 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9150 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9152 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9153 (expr_equiv_p): Remove.
9154 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9155 (hash_scan_set): Update call to insert_set_in_table.
9156 (dump_hash_table): Dump <dest, src> pair.
9157 (lookup_set): Simplify. Lookup <dest, src> pair.
9158 (compute_transp): Remove, fold heavily simplified code into...
9159 (compute_local_properties): ...here. Expect COMP and TRANSP
9161 (find_avail_set): Take set directly from struct expr.
9162 (find_bypass-set): Likewise.
9163 (bypass_block): Likewise.
9164 (cprop_insn): Likewise. Remove redundant INSN_P test.
9166 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9167 checks on form of COND from find_implicit_sets to here.
9168 (find_implicit_sets): Cleanup control flow. Split critical edges
9169 if it exposes implicit sets. Allocate/resize implicit_sets as
9171 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9172 changed something. Run df_analyze after find_implicit_sets if any
9173 edges were split. Do not allocate implicit_sets here.
9175 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9176 (gcse_obstack): Renamed to cprop_obstack.
9177 (GNEW, GNEWVEC, GNEWVAR): Remove.
9179 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9180 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9181 (gcse_alloc): Likewise, and rename to cprop_alloc.
9182 (alloc_gcse_men, free_gcse_mem): Remove.
9183 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9184 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9185 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9187 * cprop.c (oprs_not_set_p): Remove.
9188 (mark_set, mark_clobber): Remove.
9189 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9190 (reg_not_set_p): New function.
9191 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9192 (cprop_insn): Likewise.
9193 (cprop_jump): Use FOR_EACH_EDGE.
9195 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9198 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9199 (rank_for_schedule): Use scheduled_insns vector instead of
9200 last_scheduled_insn.
9201 (ok_for_early_queue_removal): Likewise.
9202 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9204 (choose_ready): Likewise.
9205 (commit_schedule): Use VEC_iterate.
9206 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9207 a dbg_cnt, use it and ensure the first insn is in the ready list.
9208 (haifa_sched_init): Allocate scheduled_insns.
9209 (sched_extend_ready_list): Don't allocate it; reserve space.
9210 (haifa_sched_finish): Free it.
9212 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9214 * optc-gen.awk: Always remove type from Variable entry before
9215 recording in var_seen.
9217 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9219 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9220 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9221 call to tidy_fallthru_edges.
9223 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9225 * doc/options.texi (ToLower): Document.
9226 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9227 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9228 * opts.h (cl_option): Add cl_tolower field.
9229 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9230 arguments with lowercase strings.
9231 * config/rx/rx.opt (mcpu=): Add ToLower.
9232 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9235 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9237 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9239 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9241 * config/vax/vax.c: Include reload.h.
9243 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9245 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9246 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9247 (sparc_preferred_reload_class): New function.
9249 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9252 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9253 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9255 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9257 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9258 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9260 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9262 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9263 (ASM_OUTPUT_ALIGNED_BSS): Define.
9265 2011-04-03 Michael Matz <matz@suse.de>
9267 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9268 and next_slot members.
9269 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9270 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9271 (lto_streamer_cache_append): Declare.
9272 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9273 unsigned index, remove offset parameter, ensure that we append
9274 or update existing entries.
9275 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9276 parameter, update next_slot for append.
9277 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9279 (lto_streamer_cache_insert_at): Likewise.
9280 (lto_streamer_cache_append): New function.
9281 (lto_streamer_cache_lookup): Use unsigned index.
9282 (lto_streamer_cache_get): Likewise.
9283 (lto_record_common_node): Don't test tree_node_can_be_shared.
9284 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9285 (lto_streamer_cache_delete): Don't free offsets member.
9286 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9287 (lto_output_string_with_length): Use lto_output_data_stream.
9288 (lto_output_tree_header): Remove ix parameter, don't write it.
9289 (lto_output_builtin_tree): Likewise.
9290 (lto_write_tree): Adjust callers to above, don't track and write
9291 offset, write unsigned index.
9292 (output_unreferenced_globals): Don't emit all global vars.
9293 (write_global_references): Use unsigned indices.
9294 (lto_output_decl_state_refs): Likewise.
9295 (write_symbol): Likewise.
9296 * lto-streamer-in.c (lto_input_chain): Move earlier.
9297 (input_function): Use unsigned index.
9298 (input_alias_pairs): Don't read and then ignore all global vars.
9299 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9300 don't pass it back, use lto_streamer_cache_append.
9301 (lto_register_var_decl_in_symtab): Use unsigned index.
9302 (lto_register_function_decl_in_symtab): Likewise.
9303 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9305 (lto_get_builtin_tree): Don't read index, use
9306 lto_streamer_cache_append.
9307 (lto_read_tree): Adjust call to lto_materialize_tree.
9309 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9310 don't use function calls in arguments to MIN.
9312 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9315 * gimple.c (gimple_type_leader_entry): Mark deletable.
9317 2011-04-03 Alan Modra <amodra@gmail.com>
9319 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9321 2011-04-03 Michael Matz <matz@suse.de>
9323 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9325 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9327 2011-04-03 Michael Matz <matz@suse.de>
9329 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9330 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9331 without function context.
9332 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9333 current_function_decl and cfun.
9335 2011-04-03 Michael Matz <matz@suse.de>
9337 * tree.c (decl_init_priority_insert): Don't create entry for
9339 (decl_fini_priority_insert): Ditto.
9340 (fields_compatible_p, find_compatible_field): Remove.
9341 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9342 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9344 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9346 * combine.c (try_combine): Remove useless local variable.
9348 2011-04-03 Richard Guenther <rguenther@suse.de>
9349 Ira Rosen <ira.rosen@linaro.org>
9351 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9352 non-variable offsets and compare the remaining bases of the two
9353 accesses instead of looking for exact same data-ref.
9355 2011-04-02 Kai Tietz <ktietz@redhat.com>
9358 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9360 * i386.c (ix86_is_msabi_thiscall): New helper function.
9361 (ix86_is_type_thiscall): New helper function.
9362 (ix86_comp_type_attributes): Handle thiscall for method-functions
9364 (init_cumulative_args): Likewise.
9365 (find_drap_reg): Likewise.
9366 (ix86_static_chain): Likewise.
9367 (x86_this_parameter): Likewise.
9368 (x86_output_mi_thunk): Likewise.
9370 2011-04-01 Olivier Hainque <hainque@adacore.com>
9371 Nicolas Setton <setton@adacore.com>
9372 Eric Botcazou <ebotcazou@adacore.com>
9374 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9375 (add_gnat_descriptive_type_attribute): New function.
9376 (gen_array_type_die): Call it.
9377 (gen_enumeration_type_die): Likewise.
9378 (gen_struct_or_union_type_die): Likewise.
9379 (modified_type_die): Likewise.
9380 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9381 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9382 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9384 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9387 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9388 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9391 2011-03-17 Richard Guenther <rguenther@suse.de>
9394 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9395 origin for decls in other ltrans units.
9396 (input_varpool_node): Likewise.
9398 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9401 * expr.c (expand_assignment): Handle all possibilities
9402 if TO_RTX is CONCAT.
9403 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9404 (store_split_bit_field): If SUBREG_REG (op0) or
9405 op0 itself has smaller mode than word, return it
9406 for offset 0 and const0_rtx for out-of-bounds stores.
9407 If word is const0_rtx, skip it.
9409 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9411 * config/h8300/h8300.c (print_operand_address): Rename to...
9412 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9413 Call h8300_print_operand and h8300_print_operand_address instead of
9414 print_operand and print_operand_address. Declare.
9415 (print_operand): Renake to...
9416 (h8300_print_operand): ...this. Make static. Adjust comments.
9417 Call h8300_print_operand instead of print_operand. Declare.
9418 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9419 (h8300_register_move_cost): Likewise.
9420 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9421 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9422 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9423 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9424 * config/h8300/h8300-protos.h (print_operand): Delete.
9425 (print_operand_address): Delete.
9427 2011-04-01 Richard Henderson <rth@redhat.com>
9430 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9431 in strict mode before dwarf4. Re-order tests to early out
9432 before switching sections.
9434 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9436 * config/h8300/constraints.md: New file.
9437 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9438 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9439 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9440 * config/h8300/predicates.md (bit_operand): Likewise.
9441 (incdec_operand): Use satisfies_constraint_M and
9442 satisfies_constraint_O. Don't use C code block.
9443 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9444 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9445 (compute_mov_length): Use satisfies_constraint_G.
9446 (fix_bit_operand): Use satisfies_constraint_U.
9447 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9448 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9449 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9450 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9451 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9452 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9453 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9454 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9455 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9456 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9457 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9458 (EXTRA_MEMORY_CONSTRAINT): Delete.
9460 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9461 Michael Meissner <meissner@linux.vnet.ibm.com>
9464 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9465 operands, as per the specifications.
9467 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9468 (vec_extract_evenv4sf): Ditto.
9469 (vec_extract_evenv8hi): Ditto.
9470 (vec_extract_evenv16qi): Ditto.
9471 (vec_extract_oddv4si): Ditto.
9473 2011-03-31 Mark Wielaard <mjw@redhat.com>
9475 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9476 high_pc attribute if the CU has no associated code. Only output
9477 DW_AT_entry_pc for CU if not generating strict dwarf and
9480 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9482 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9483 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9485 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9486 * final.c (final_start_function): Call the new function rather
9487 than using a NULL argument for dwarf2out_frame_debug.
9489 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9490 that contains the prologue.
9492 * haifa-sched.c (queue_insn): New arg REASON. All callers
9493 changed. Print it in debugging output.
9495 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9497 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9498 Split most of the code into...
9499 (begin_move_insn): ... here. New function.
9500 (ebb_sched_info): Add a pointer to it.
9501 * haifa-sched.c (scheduled_insns): New static variable.
9502 (sched_extend_ready_list): Allocate it.
9503 (schedule_block): Use it to record the order of scheduled insns.
9504 Perform RTL changes to move insns only after all scheduling
9505 decisions have been made.
9506 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9507 begin_move_insn field.
9508 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9509 * sched-int.h (struct haifa_sched_info): Remove second argument
9510 from begin_schedule_ready hook. Add new member begin_move_insn.
9511 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9512 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9514 * haifa-sched.c (prune_ready_list): New function, broken out of
9516 (schedule_block): Use it.
9518 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9520 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9522 2011-04-01 Kai Tietz <ktietz@redhat.com>
9524 * config.gcc (*-*-mingw*): Allow as option the
9525 posix threading model.
9526 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9527 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9529 (CPP_SPEC): Add pthread/no-pthread handling.
9530 (LIB_SPEC): Likewise.
9531 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9532 (LIB_SPEC): Likewise.
9533 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9534 flag to pass -pthread option for shared libgcc build.
9535 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9536 for shared libgcc build.
9537 * config/i386/t-mingw-pthread: New file.
9538 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9539 New define to enable use of library pthread by default.
9540 * config/i386/mingw.opt (pthread): New driver option.
9541 (no-pthread): New driver option.
9542 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9543 * config/i386/mingw-w64.opt: Likewise.
9545 2011-04-01 Gary Funck <gary@intrepid.com>
9547 * c-decl.c (grokdeclarator): Fix formatting.
9549 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9551 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9552 instead of n_operands.
9553 (set_storage_via_setmem): Likewise.
9554 * optabs.c (maybe_gen_insn): Likewise.
9555 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9556 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9557 (mips_expand_builtin_direct): Likewise.
9558 * config/spu/spu.c (expand_builtin_args): Likewise.
9560 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9562 * recog.h (insn_data_d): Add n_generator_args.
9563 * genoutput.c (data): Likewise.
9564 (output_insn_data): Print it.
9565 (max_opno, num_dups): Delete.
9566 (scan_operands): Just fill in "d->operand[...]".
9567 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9569 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9571 * gensupport.h (pattern_stats): New structure.
9572 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9573 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9574 (max_operand_1, max_operand_vec): Delete.
9575 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9577 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9579 * emit-rtl.c (emit_pattern_after_setloc): New function.
9580 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9581 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9582 (emit_pattern_after): New function.
9583 (emit_insn_after, emit_jump_insn_after): Call it.
9584 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9585 (emit_pattern_before_setloc): New function.
9586 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9587 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9589 (emit_pattern_before): New function.
9590 (emit_insn_before, emit_jump_insn_before): Call it.
9591 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9593 2011-03-31 Richard Henderson <rth@redhat.com>
9595 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9596 (dw_separate_line_info_entry): Remove.
9597 (enum dw_line_info_opcode): New.
9598 (dw_line_info_entry): Use it.
9599 (dw_line_info_table, dw_line_info_table_p): New.
9600 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9601 (line_info_table, line_info_label_num): Remove.
9602 (line_info_table_in_use): Remove.
9603 (separate_line_info_table): Remove.
9604 (separate_line_info_table_allocated): Remove.
9605 (separate_line_info_table_in_use): Remove.
9606 (LINE_INFO_TABLE_INCREMENT): Remove.
9607 (line_info_label_num): New.
9608 (cur_line_info_table): New.
9609 (text_section_line_info, cold_text_section_line_info): New.
9610 (separate_line_info): New.
9611 (SEPARATE_LINE_CODE_LABEL): Remove.
9612 (print_dwarf_line_table): Remove.
9613 (debug_dwarf): Don't dump it.
9614 (output_one_line_info_table): New.
9615 (output_line_info): Use it.
9616 (new_line_info_table): New.
9617 (set_cur_line_info_table): New.
9618 (dwarf2out_switch_text_section): Use it.
9619 (dwarf2out_begin_function): Likewise.
9620 (push_dw_line_info_entry): New.
9621 (dwarf2out_source_line): Rewrite for new line info tables.
9622 (dwarf2out_init): Remove dead initailizations.
9624 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9626 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9628 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9629 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9630 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9631 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9632 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9633 * opt-functions.awk (flag_init, switch_bit_fields): New.
9634 (switch_flags): Don't handle flags moved to bit-fields. Don't
9635 generate CL_MISSING_OK or CL_SAVE.
9636 * optc-gen.awk: Update to generate bit-field output as well as
9638 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9639 bit-field instead of CL_REJECT_DRIVER flag.
9640 * opts-common.c (generate_canonical_option,
9641 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9642 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9643 instead of CL_REJECT_NEGATIVE flag.
9644 * toplev.c (print_switch_values): Use cl_report bit-field instead
9647 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9649 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9650 a zero minimum index only if it is redundant.
9652 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9654 PR rtl-optimization/48381
9655 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9656 instead of ira_class_hard_reg_index for calculating conflicting
9659 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9661 * cprop.c: Clean up hash table building.
9662 (reg_avail_info): Remove.
9663 (oprs_available_p): Remove.
9664 (record_last_reg_set_info): Remove.
9665 (record_last_set_info): Remove.
9666 (reg_available_p): New function.
9667 (gcse_constant_p): Do not treat unfolded conditions as constants.
9668 (make_set_regs_unavailable): New function.
9669 (hash_scan_set): Simplify with new reg_available_p.
9670 (compute_hash_table_work): Traverse insns stream only once.
9671 Do not compute reg_avail_info. Traverse insns in reverse order.
9672 Record implicit sets after recording explicit sets from the block.
9674 2011-03-31 Michael Matz <matz@suse.de>
9676 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9678 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9680 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9681 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9682 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9683 (h8300_mode_dependent_address_p): New function.
9684 (h8300_get_index): Make static.
9686 2011-03-31 Jeff Law <law@redhat.com>
9688 * reload1.c (elimination_effects): Fix typo in recent change.
9690 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9691 typo potentially leading to null pointer dereference.
9693 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9694 (setup_save_areas): Corresponding changes to avoid useless
9697 * jump.c (reversed_comparison_code_parts): Avoid successive return
9698 statements when REVERSE_CONDITION is defined.
9700 * expr.c (expand_assignment): Avoid useless assignments.
9701 (expand_expr_real_1): Likewise.
9702 (expand_expr_real_2): Avoid useless statements.
9704 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9706 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9708 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9711 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9713 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9716 * doc/tm.texi.in (TARGET_VERSION): Remove.
9717 * doc/tm.texi: Regenerate.
9718 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9719 * collect2.c (main): Don't use TARGET_VERSION.
9720 * mips-tdump.c (main): Don't use TARGET_VERSION.
9721 * mips-tfile.c (main): Don't use TARGET_VERSION.
9722 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9723 * config/rs6000/vxworksae.h: Remove.
9724 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9725 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9726 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9727 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9728 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9729 * config/arm/arm.h (TARGET_VERSION): Remove.
9730 * config/arm/coff.h (TARGET_VERSION): Remove.
9731 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9732 * config/arm/elf.h (TARGET_VERSION): Remove.
9733 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9734 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9735 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9736 * config/arm/pe.h (TARGET_VERSION): Remove.
9737 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9738 * config/arm/semi.h (TARGET_VERSION): Remove.
9739 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9740 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9741 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9742 * config/avr/avr.h (TARGET_VERSION): Remove.
9743 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9744 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9745 * config/frv/frv.h (TARGET_VERSION): Remove.
9746 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9747 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9748 * config/i386/darwin.h (TARGET_VERSION): Remove.
9749 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9750 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9751 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9752 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9753 * config/i386/gnu.h (TARGET_VERSION): Remove.
9754 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9755 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9756 * config/i386/linux.h (TARGET_VERSION): Remove.
9757 * config/i386/linux64.h (TARGET_VERSION): Remove.
9758 * config/i386/lynx.h (TARGET_VERSION): Remove.
9759 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9760 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9761 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9762 * config/i386/netware.h (TARGET_VERSION): Remove.
9763 * config/i386/nto.h (TARGET_VERSION): Remove.
9764 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9765 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9766 * config/ia64/elf.h (TARGET_VERSION): Remove.
9767 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9768 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9769 * config/ia64/linux.h (TARGET_VERSION): Remove.
9770 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9771 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9772 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9773 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9774 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9775 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9776 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9777 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9778 * config/m68k/linux.h (TARGET_VERSION): Remove.
9779 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9780 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9781 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9782 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9783 * config/mep/mep.h (TARGET_VERSION): Remove.
9784 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9785 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9786 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9787 * config/mips/linux.h (TARGET_VERSION): Remove.
9788 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9789 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9790 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9791 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9792 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9793 * config/pa/pa.h (TARGET_VERSION): Remove.
9794 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9795 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9796 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9797 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9798 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9799 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9800 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9801 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9802 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9803 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9804 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9805 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9806 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9807 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9808 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9809 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9810 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9811 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9812 * config/s390/linux.h (TARGET_VERSION): Remove.
9813 * config/s390/s390.h (TARGET_VERSION): Remove.
9814 * config/s390/tpf.h (TARGET_VERSION): Remove.
9815 * config/score/score.h (TARGET_VERSION): Remove.
9816 * config/sh/linux.h (TARGET_VERSION): Remove.
9817 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9818 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9819 * config/sh/sh.h (TARGET_VERSION): Remove.
9820 * config/sh/sh64.h (TARGET_VERSION): Remove.
9821 * config/sh/superh.h (TARGET_VERSION): Remove.
9822 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9823 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9824 * config/sparc/linux.h (TARGET_VERSION): Remove.
9825 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9826 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9827 TARGET_NAME32, TARGET_NAME): Remove.
9828 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9829 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9830 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9831 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9832 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9833 * config/spu/spu.h (TARGET_VERSION): Remove.
9834 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9835 * config/v850/v850.h (TARGET_VERSION): Remove.
9836 * config/vax/linux.h (TARGET_VERSION): Remove.
9837 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9838 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9839 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9841 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9844 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9845 frame-related from frame-unrelated adjustments to the stack pointer.
9847 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9849 * common.opt (fdebug-types-section): Move earlier.
9850 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9852 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9854 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9857 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9859 * tree.h (CASE_CHAIN): Define.
9860 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9861 (gimple_redirect_edge_and_branch): Likewise.
9863 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9866 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9869 2011-03-30 Jeff Law <law@redhat.com>
9871 * PR bootstrap/48371
9872 * reload1.c (reload): Fix botch in last change.
9874 * reload.h (struct reload): Fix typo introduced in last change.
9876 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9878 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9879 Undocumented. Remove help text.
9880 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9883 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9885 * doc/options.texi (NegativeAlias): Document.
9886 (Alias): Mention NegativeAlias.
9887 * opt-functions.awk: Handle NegativeAlias.
9888 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9889 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9890 * opts.h (CL_NEGATIVE_ALIAS): Define.
9891 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9892 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9894 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9896 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9897 mno-spe and mno-isel instead of mspe=no and -misel=no.
9899 2011-03-29 Mark Wielaard <mjw@redhat.com>
9901 * common.opt (fdebug-types-section): New flag.
9902 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9903 * dwarf2out.c (use_debug_types): New define.
9904 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9905 (print_die): Guard output of type unit signatures using
9907 (build_abbrev_table): Replace assert of dwarf_version >= 4
9908 with assert on use_debug_types.
9909 (size_of_die): Likewise.
9910 (unmark_dies): Likewise.
9911 (value_format): Decide AT_ref_external form on use_debug_types.
9912 (output_die): Replace dwarf_version version check guard with
9913 use_debug_types where appropriate.
9914 (modified_type_die): Likewise.
9915 (gen_reference_type_die): Likewise.
9916 (dwarf2out_start_source_file): Likewise.
9917 (dwarf2out_end_source_file): Likewise.
9918 (prune_unused_types_walk_attribs): Likewise.
9919 (dwarf2out_finish): Likewise.
9921 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9923 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9925 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9927 PR rtl-optimization/48332
9928 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9929 mode of input operand N and modeN to its actual mode.
9931 2011-03-30 Jeff Law <law@redhat.com>
9933 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9934 define accessor macro.
9935 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9936 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9937 (reg_equiv_init): Likewise.
9938 (reg_equivs_size): New variable.
9939 (reg_equiv_init_size): Remove.
9940 (allocate_initial_values): Move prototype to here from....
9941 * integrate.h (allocate_initial_values): Remove prototype.
9942 * integrate.c: Include reload.h.
9943 (allocate_initial_values): Corresponding changes.
9944 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9945 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9946 (update_equiv_regs): Corresponding changes.
9947 (ira): Corresponding changes.
9948 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9949 (push_secondary_reload): Corresponding changes.
9950 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9951 (make_memloc, find_reloads_address): Corresponding changes.
9952 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9953 (find_reloads_address_1): Corresponding changes.
9954 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9955 (refers_to_regno_for_reload_p): Corresponding changes.
9956 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9957 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9958 * reload1.c: Include ggc.h.
9959 (grow_reg_equivs): New function.
9960 (replace_pseudos_in, reload): Corresponding changes.
9961 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9962 (eliminate_regs_1, elimination_effects): Corresponding changes.
9963 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9964 (delete_output_reload): Likewise.
9965 * caller-save.c (mark_referenced_regs): Corresponding changes.
9966 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9967 * frv/predicates.md (frv_load_operand): Corresponding changes.
9968 * microblaze/microblaze.c (double_memory_operand): Corresponding
9970 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9971 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9972 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9973 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9974 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9976 * pa/pa.c (emit_move_sequence): Corresponding changes.
9977 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9979 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9982 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9983 structure modes. Don't check neon_vector_mem_operand for
9984 vector or structure modes.
9986 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9987 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9990 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9991 operand 1 and reshuffle the operands to match.
9992 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9994 2011-03-30 Christian Schüler <cschueler@gmx.de>
9997 * config/c.opt (F): Added 'Driver' to -F option.
10000 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10002 * config/darwin.opt: Added '-arch' option.
10004 2011-03-30 Nick Clifton <nickc@redhat.com>
10006 * config/rx/rx.md: Add peepholes and patterns to combine
10007 extending loads and simple arithmetic instructions.
10008 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10009 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10010 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10011 modes to use pre-decrement and post-increment addressing.
10012 (rx_is_restricted_memory_address): Add range checking of REG+INT
10014 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10015 (rx_memory_move_cost): Adjust cost of stores.
10016 (rx_adjust_insn_length): New function.
10018 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10021 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10022 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10023 matching arg00/arg01 types.
10025 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10027 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10028 last_location to UNKNOWN_LOCATION.
10030 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10033 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10036 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10037 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10040 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10041 Init(PROCESSOR_V7).
10042 (sparc_cpu): Likewise.
10043 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10046 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10049 PR middle-end/48342
10050 PR rtl-optimization/48345
10051 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10052 hard regs for given mode from profitable regs when doing secondary
10055 2011-03-29 Jeff Law <law@redhat.com>
10058 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10059 do_not_duplicate field.
10060 (lookup_redirection_data): Corresponding changes.
10061 (create_duplicates): Always create a template block.
10062 (redirect_edges): Remove code which reused the original block
10063 when it was going to become unreachable code.
10064 (thread_block): Don't set do_not_duplicate field.
10066 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10068 * lto-opts.c (register_user_option_p, lto_register_user_option):
10069 Make type argument unsigned.
10070 * lto-streamer.h (lto_register_user_option): Make type argument
10072 * opth-gen.awk: Make CL_* macros unsigned.
10073 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10074 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10075 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10076 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10077 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10078 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10079 (find_opt): Make lang_mask argument unsigned.
10081 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10083 PR rtl-optimization/48331
10084 PR rtl-optimization/48334
10085 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10086 for any used algorithm.
10088 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10090 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10093 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10095 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10096 (alpha_option_override): Don't set alpha_sr_alias_set.
10097 (emit_frame_store_1): Use gen_frame_mem rather than calling
10099 (alpha_expand_epilogue): Ditto.
10101 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10103 PR tree-optimization/48290
10104 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10105 vectorization, check that relevant phis in the basic block after
10106 the inner loop are really inner loop's exit phis.
10108 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10111 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10112 (cached_dw_loc_list_def): New structure.
10113 (cached_dw_loc_list): New typedef.
10114 (cached_dw_loc_list_table): New variable.
10115 (cached_dw_loc_list_table_hash): New function.
10116 (cached_dw_loc_list_table_eq): Likewise.
10117 (add_location_or_const_value_attribute): Take a bool cache_p.
10118 Cache the list when the parameter is true.
10119 (gen_formal_parameter_die): Update caller.
10120 (gen_variable_die): Likewise.
10121 (dwarf2out_finish): Likewise.
10122 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10123 while generating debug info for the decl.
10124 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10125 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10126 (resolve_addr): Cache the result of resolving a chain of
10129 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10131 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10132 conflict object hard regset nodes have intersecting hard reg sets.
10134 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10135 after regstat_init_n_sets_and_refs.
10137 * ira.c: Add more comments at the top.
10138 (setup_stack_reg_pressure_class, setup_pressure_classes):
10139 Add comments how we compute the register pressure classes.
10140 (setup_allocno_and_important_classes): Add more comments.
10141 (setup_class_translate_array, reorder_important_classes)
10142 (setup_reg_class_relations): Add comments.
10144 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10147 * ira-color.c: Add 2011 to the Copyright line.
10148 (assign_hard_reg): Add more comments.
10149 (improve_allocation): Ditto.
10151 * ira-costs.c: Add 2011 to the Copyright line.
10152 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10154 (setup_regno_cost_classes_by_mode): Ditto.
10156 Initial patches from ira-improv branch:
10158 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10160 * ira-build.c (ira_create_object): Remove initialization of
10161 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10162 (ira_create_allocno): Remove initialization of
10163 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10164 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10165 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10166 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10167 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10168 Initialize ALLOCNO_ADD_DATA.
10169 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10170 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10172 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10173 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10175 * ira.c (ira_reallocate): Remove.
10176 (setup_pressure_classes): Call
10177 ira_init_register_move_cost_if_necessary. Use
10178 ira_register_move_cost instead of ira_get_register_move_cost.
10179 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10180 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10182 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10183 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10184 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10185 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10186 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10187 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10189 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10190 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10191 (struct allocno_color_data): New.
10192 (allocno_color_data_t): New typedef.
10193 (allocno_color_data): New definition.
10194 (ALLOCNO_COLOR_DATA): New macro.
10195 (struct object_color_data): New.
10196 (object_color_data_t): New typedef.
10197 (object_color_data): New definition.
10198 (OBJECT_COLOR_DATA): New macro.
10199 (update_copy_costs, calculate_allocno_spill_cost): Call
10200 ira_init_register_move_cost_if_necessary. Use
10201 ira_register_move_cost instead of ira_get_register_move_cost.
10202 (move_spill_restore, update_curr_costs): Ditto.
10203 (allocno_spill_priority): Make it inline.
10204 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10205 (struct coalesce_data, coalesce_data_t): New.
10206 (allocno_coalesce_data): New definition.
10207 (ALLOCNO_COALESCE_DATA): New macro.
10208 (merge_allocnos, coalesced_allocno_conflict_p): Use
10209 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10210 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10211 (coalesce_allocnos): Ditto.
10212 (setup_coalesced_allocno_costs_and_nums): Ditto.
10213 (collect_spilled_coalesced_allocnos): Ditto.
10214 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10215 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10216 (coalesce_spill_slots): Ditto.
10217 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10218 free allocno_coalesce_data.
10220 * ira-conflicts.c: Fix formatting.
10221 (process_regs_for_copy): Call
10222 ira_init_register_move_cost_if_necessary. Use
10223 ira_register_move_cost instead of ira_get_register_move_cost.
10224 (build_object_conflicts): Optimize.
10226 * ira-costs.c (record_reg_classes): Optimize. Call
10227 ira_init_register_move_cost_if_necessary. Use
10228 ira_register_move_cost, ira_may_move_in_cost, and
10229 ira_may_move_out_cost instead of ira_get_register_move_cost and
10230 ira_get_may_move_cost.
10231 (record_address_regs): Ditto.
10232 (scan_one_insn): Optimize.
10233 (find_costs_and_classes): Optimize.
10234 (process_bb_node_for_hard_reg_moves): Call
10235 ira_init_register_move_cost_if_necessary. Use
10236 ira_register_move_cost instead of ira_get_register_move_cost.
10238 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10239 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10240 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10241 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10243 (ira_initiate_emit_data, ira_finish_emit_data)
10244 (create_new_allocno): New functions.
10245 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10246 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10247 Use ira_register_move_cost instead of ira_get_register_move_cost.
10249 * ira-int.h: Fix some comments.
10250 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10251 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10252 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10253 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10255 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10256 bitfield after mode. Make hard_regno a short int. Make
10257 hard_regno short. Remove first_coalesced_allocno and
10258 next_coalesced_allocno. Move mem_optimized_dest_p,
10259 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10260 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10261 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10262 temp, colorable_p. Add new member add_data.
10263 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10264 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10265 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10266 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10267 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10268 (ALLOCNO_ADD_DATA): New macro.
10269 (ira_emit_data_t): New typedef.
10270 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10271 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10272 from struct ira_allocno.
10273 (ALLOCNO_EMIT_DATA): New macro.
10274 (ira_allocno_emit_data, allocno_emit_reg): New.
10275 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10276 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10277 (OBJECT_ADD_DATA): New macro.
10278 (ira_reallocate): Remove.
10279 (ira_initiate_emit_data, ira_finish_emit_data): New.
10280 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10281 (ira_init_register_move_cost_if_necessary): New.
10282 (ira_object_conflict_iter_next): Merge into
10283 ira_object_conflict_iter_cond.
10284 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10286 * ira-live.c (process_single_reg_class_operands): Call
10287 ira_init_register_move_cost_if_necessary. Use
10288 ira_register_move_cost instead of ira_get_register_move_cost.
10290 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10292 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10294 * ira-costs.c: Fix formatting.
10295 (cost_classes, cost_classes_num): Remove.
10296 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10297 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10298 (cost_classes_del, cost_classes_htab): New.
10299 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10300 (initiate_regno_cost_classes, setup_cost_classes): New.
10301 (setup_regno_cost_classes_by_aclass): New.
10302 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10303 (record_reg_classes): Use regno_cost_classes instead of
10304 cost_classes. Move checking opposite operand up.
10305 (record_address_regs): Use regno_cost_classes
10306 instead of cost_classes.
10307 (scan_one_insn): Ditto. Use always general register.
10308 (print_allocno_costs): Use regno_cost_classes instead of
10310 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10311 (find_costs_and_classes): Set up cost classes for each registers.
10312 Use also their mode for this. Use regno_cost_classes instead of
10314 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10316 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10317 (ira_costs, ira_set_pseudo_classes): Call
10318 initiate_regno_cost_classes and finish_regno_cost_classes.
10320 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10322 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10324 * target.def (ira_cover_classes): Remove.
10326 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10328 * doc/tm.texi.in: Ditto.
10330 * ira-conflicts.c: Remove mentioning cover classes from the file.
10331 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10332 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10334 * targhooks.c (default_ira_cover_classes): Remove.
10336 * targhooks.h (default_ira_cover_classes): Ditto.
10338 * haifa-sched.c: Remove mentioning cover classes from the file.
10339 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10340 ira_pressure_classes and ira_pressure_classes_num instead of
10341 ira_reg_class_cover_size and ira_reg_class_cover. Use
10342 sched_regno_pressure_class instead of sched_regno_cover_class.
10343 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10344 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10346 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10347 classes from the file.
10348 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10349 (struct object_hard_regs, struct object_hard_regs_node): New.
10350 (struct ira_object): New members profitable_hard_regs,
10351 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10352 (struct ira_allocno): Rename cover_class to aclass. Rename
10353 cover_class_cost and updated_cover_class_cost to class_cost and
10354 updated_class_cost. Remove splay_removed_p and
10355 left_conflict_size. Add new members colorable_p.
10356 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10357 (ALLOCNO_COLORABLE_P): New macro.
10358 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10359 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10360 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10361 (OBJECT_...): Rename parameter C to O.
10362 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10363 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10364 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10365 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10366 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10367 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10368 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10369 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10370 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10371 x_ira_reg_class_subunion.
10372 (ira_max_memory_move_cost, ira_max_register_move_cost)
10373 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10374 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10375 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10376 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10377 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10378 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10379 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10380 (ira_tune_allocno_costs_and_cover_classes): Rename to
10381 ira_tune_allocno_costs.
10382 (ira_debug_hard_regs_forest): New.
10383 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10384 (ira_object_conflict_iter_next): Fix comments.
10385 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10386 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10387 cover_class to aclass.
10388 (ira_allocate_and_accumulate_costs): Ditto.
10389 (ira_allocate_and_set_or_copy_costs): Ditto.
10391 * opts.c (decode_options): Remove ira_cover_class check.
10393 * ira-color.c: Remove mentioning cover classes from the file. Use
10394 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10395 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10396 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10397 (splay-tree.h): Remove include.
10398 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10399 before copy_freq_compare_func.
10400 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10401 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10403 (hard_regs_roots, hard_regs_node_vec): Ditto.
10404 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10405 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10406 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10407 (create_new_object_hard_regs_node): Ditto.
10408 (add_new_object_hard_regs_node_to_forest): Ditto.
10409 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10410 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10412 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10413 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10414 (remove_unused_object_hard_regs_nodes): Ditto.
10415 (enumerate_object_hard_regs_nodes): Ditto.
10416 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10417 (object_hard_regs_subnode_t): Ditto.
10418 (struct object_hard_regs_subnode): Ditto.
10419 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10420 (setup_object_hard_regs_subnode_index): Ditto.
10421 (get_object_hard_regs_subnodes_num): Ditto.
10422 (form_object_hard_regs_nodes_forest): Ditto.
10423 (finish_object_hard_regs_nodes_tree): Ditto.
10424 (finish_object_hard_regs_nodes_forest): Ditto.
10425 (allocnos_have_intersected_live_ranges_p): Rename to
10426 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10427 (pseudos_have_intersected_live_ranges_p): Rename to
10428 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10429 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10430 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10431 (update_copy_costs): Remove assert. Skip cost update if the hard
10432 reg does not belong the class.
10433 (assign_hard_reg): Process only profitable hard regs.
10434 (uncolorable_allocnos_num): Make it scalar.
10435 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10436 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10437 and ira_reg_class_max_nregs.
10438 (bucket_allocno_compare_func): Check frequency first.
10439 (sort_bucket): Add compare function as a parameter.
10440 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10441 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10442 (push_allocno_to_stack): Rewrite for checking new allocno
10444 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10445 (push_only_colorable): Pass new parameter to sort_bucket.
10446 (push_allocno_to_spill): Remove.
10447 (allocno_spill_priority_compare): Make it inline and rewrite.
10448 (splay_tree_allocate, splay_tree_free): Remove.
10449 (allocno_spill_sort_compare): New function.
10450 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10451 build and use splay tree. Choose first allocno in uncolorable
10452 allocno bucket to spill. Remove setting spill cost.
10453 (all_conflicting_hard_regs): Remove.
10454 (setup_allocno_available_regs_num): Check only profitable hard
10455 regs. Print info about hard regs nodes.
10456 (setup_allocno_left_conflicts_size): Remove.
10457 (put_allocno_into_bucket): Don't call
10458 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10459 (improve_allocation): New.
10460 (color_allocnos): Call setup_profitable_hard_regs,
10461 form_object_hard_regs_nodes_forest, improve_allocation,
10462 finish_object_hard_regs_nodes_forest. Setup spill cost.
10463 (print_loop_title): Use pressure classes.
10464 (color_allocnso): Ditto.
10465 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10466 and allocnos_for_spilling.
10467 (ira_sort_regnos_for_alter_reg): Don't setup members
10468 {first,next}_coalesced_allocno.
10469 (color): Remove allocating and freeing removed_splay_allocno_vec.
10470 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10471 prohibited_class_mode_regs.
10473 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10475 (update_allocno_pressure_excess_length): Use pressure classes.
10476 (inc_register_pressure, dec_register_pressure): Check for pressure
10478 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10479 pressure class. Use ira_reg_class_nregs instead of
10480 ira_reg_class_max_nregs.
10481 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10482 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10483 (single_reg_class): Use ira_reg_class_nregs instead of
10484 ira_reg_class_max_nregs.
10485 (process_bb_node_lives): Use pressure classes.
10487 * ira-emit.c: Remove mentioning cover classes from the file. Use
10488 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10489 (change_loop): Use pressure classes.
10490 (modify_move_list): Call ira_set_allocno_class instead of
10491 ira_set_allocno_cover_class.
10493 * ira-build.c: Remove mentioning cover classes from the file. Use
10494 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10495 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10496 ALLOCNO_UPDATED_CLASS_COST instead of
10497 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10498 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10499 (ira_create_allocno): Remove initialization of
10500 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10501 ALLOCNO_COLORABLE_P.
10502 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10503 Update conflict regs for the objects.
10504 (create_cap_allocno): Remove assert. Don't propagate
10505 ALLOCNO_AVAILABLE_REGS_NUM.
10506 (ira_free_allocno_costs): New function.
10507 (finish_allocno): Change a part of code into call of
10508 ira_free_allocno_costs.
10509 (low_pressure_loop_node_p): Use pressure classes.
10510 (object_range_compare_func): Don't compare classes.
10511 (setup_min_max_conflict_allocno_ids): Ditto.
10513 * loop-invariant.c: Remove mentioning cover classes from the file.
10514 Use ira_pressure_classes and ira_pressure_classes_num instead of
10515 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10516 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10517 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10518 Use reg_allocno_class instead of reg_cover_class.
10519 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10520 STACK_REG_COVER_CLASS.
10521 (get_regno_cover_class): Rename to get_regno_pressure_class.
10522 (move_loop_invariants): Initialize and finalize regstat.
10524 * ira.c: Remove mentioning cover classes from the file. Add
10525 comments about coloring without cover classes. Use ALLOCNO_CLASS
10526 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10527 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10528 setup_class_subset_and_memory_move_costs.
10529 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10530 (setup_cover_and_important_classes): Rename to
10531 setup_allocno_and_important_classes.
10532 (setup_class_translate_array): New.
10533 (setup_class_translate): Call it for allocno and pressure classes.
10534 (cover_class_order): Rename to allocno_class_order.
10535 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10536 of ira_class_translate.
10537 (reorder_important_classes): Set up ira_important_class_nums.
10538 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10539 (print_class_cover): Rename to print_classes. Add parameter.
10540 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10541 Print pressure classes too.
10542 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10543 setup_reg_subclasses.
10544 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10545 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10546 (setup_prohibited_class_mode_regs): Use
10547 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10548 (clarify_prohibited_class_mode_regs): New function.
10549 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10550 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10551 (ira_init_once): Initialize them.
10552 (free_register_move_costs): Process them.
10553 (ira_init): Move calls of find_reg_classes and
10554 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10555 Call clarify_prohibited_class_mode_regs.
10556 (ira_no_alloc_reg): Remove.
10557 (too_high_register_pressure_p): Use pressure classes.
10559 * sched-deps.c: Remove mentioning cover classes from the file.
10560 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10561 ira_pressure_classes and ira_pressure_classes_num instead of
10562 ira_reg_class_cover_size and ira_reg_class_cover.
10563 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10564 sched_regno_pressure_class instead of sched_regno_cover_class.
10565 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10566 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10568 * ira.h: Add 2010 to Copyright.
10569 (ira_no_alloc_reg): Remove external.
10570 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10571 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10572 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10573 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10574 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10575 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10576 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10577 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10578 x_ira_no_alloc_regs.
10579 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10580 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10581 ira_allocno_classes_num and ira_allocno_classes.
10582 (ira_class_translate): Rename to ira_allocno_class_translate.
10583 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10584 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10585 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10586 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10587 (ira_no_alloc_regs): New.
10589 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10590 classes from the file. Use ALLOCNO_CLASS instead of
10591 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10592 ALLOCNO_COVER_CLASS_COST.
10593 (regno_cover_class): Rename to regno_aclass.
10594 (record_reg_classes): Use ira_reg_class_subunion instead of
10595 ira_reg_class_union.
10596 (record_address_regs): Check overflow.
10597 (scan_one_insn): Ditto.
10598 (print_allocno_costs): Print total mem cost fore regional allocation.
10599 (print_pseudo_costs): Use REG_N_REFS.
10600 (find_costs_and_classes): Use classes intersected with them on the
10601 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10602 ira_reg_class_union. Use ira_allocno_class_translate and
10603 regno_aclass instead of ira_class_translate and regno_cover_class.
10604 Modify code for finding regno_aclass. Setup preferred classes for
10606 (setup_allocno_cover_class_and_costs): Rename to
10607 setup_allocno_class_and_costs. Use regno_aclass instead of
10608 regno_cover_class. Use ira_set_allocno_class instead of
10609 ira_set_allocno_cover_class.
10610 (init_costs, finish_costs): Use regno_aclass instead of
10612 (ira_costs): Use setup_allocno_class_and_costs instead of
10613 setup_allocno_cover_class_and_costs.
10614 (ira_tune_allocno_costs_and_cover_classes): Rename to
10615 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10616 by processing objects. Use ira_reg_class_max_nregs instead of
10617 ira_reg_class_nregs.
10619 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10621 * sched-int.h: Remove mentioning cover classes from the file.
10622 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10624 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10625 classes from the file.
10626 (struct reg_pref): Rename coverclass into allocnoclass.
10627 (reg_cover_class): Rename to reg_allocno_class.
10629 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10631 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10633 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10635 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10637 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10639 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10641 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10643 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10645 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10647 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10649 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10650 (i386_ira_cover_classes): Ditto.
10652 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10654 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10656 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10658 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10660 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10662 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10664 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10665 (mips_ira_cover_classes): Ditto.
10667 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10669 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10671 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10673 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10675 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10677 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10678 (IRA_COVER_CLASSES_VSX): Ditto.
10680 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10681 (rs6000_ira_cover_classes): Ditto.
10683 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10685 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10687 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10689 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10691 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10693 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10695 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10697 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10699 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10701 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10703 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10706 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10707 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10708 dw_fde_unlikely_section_end_label, cold_in_std_section,
10709 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10710 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10712 (output_fde): Use dw_fde_second_{begin,end} if second is
10713 true, otherwise dw_fde_{begin,end}.
10714 (output_call_frame_info): Test dw_fde_second_begin != NULL
10715 instead of dw_fde_switched_sections.
10716 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10717 fields, initialize new fields. Initialize in_std_section
10718 unconditionally from the first partition.
10719 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10720 dw_fde_second_begin is non-NULL.
10721 (dwarf2out_switch_text_section): Stop initializing removed
10722 dw_fde_struct fields, initialize new fields, initialize
10723 also dw_fde_end here. Set dw_fde_switch_cfi even when
10724 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10725 (struct var_loc_list_def): Add last_before_switch field.
10726 (arange_table, arange_table_allocated, arange_table_in_use,
10727 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10728 (size_of_aranges): Count !in_std_section and !second_in_std_section
10729 hunks in fdes, instead of looking at arange_table_in_use.
10730 (output_aranges): Add aranges_length argument, don't call
10731 size_of_aranges here. Instead of using aranges_table*
10732 emit ranges for fdes when !in_std_section resp.
10733 !second_in_std_section.
10734 (dw_loc_list): Break ranges crossing section switch.
10735 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10736 use dw_fde_second_end instead of dw_fde_end as end of last range.
10737 (gen_subprogram_die): Don't call add_arange. Use
10738 dw_fde_{begin,end} for first partition and if switched
10739 section dw_fde_second_{begin,end} for the second.
10740 (var_location_switch_text_section_1,
10741 var_location_switch_text_section): New functions.
10742 (dwarf2out_begin_function): Initialize cold_text_section even
10743 when function_section () isn't text_section.
10744 (prune_unused_types): Don't walk arange_table.
10745 (dwarf2out_finish): Don't needlessly test
10746 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10747 If info_section_emitted, call size_of_aranges and if it indicates
10748 non-empty .debug_aranges, call output_aranges with the computed
10749 size. Stop using removed dw_fde_struct fields, use
10750 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10754 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10755 create ENTRY_VALUE if incoming or address of incoming's MEM
10757 * dwarf2out.c (mem_loc_descriptor): Don't emit
10758 DW_OP_GNU_entry_value of DW_OP_fbreg.
10759 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10760 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10761 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10762 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10764 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10765 is a REG_P or MEM_P with REG_P address, compute hash directly
10766 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10767 (preserve_only_constants): Don't clear VALUES forwaring
10768 ENTRY_VALUE to some other VALUE.
10770 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10772 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10773 instead of GEN_INT.
10775 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10777 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10778 block before expanding the statement.
10779 (expand_gimple_stmt_1): Likewise. Set them here...
10780 (expand_gimple_stmt): ...and not here. Tidy.
10781 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10784 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10786 * Makefile.in: New rule for cprop.o.
10787 * gcse.c: Move constant/copy propagation to cprop.c.
10788 (compute_local_properties): Only handle expression tables.
10789 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10790 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10791 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10792 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10793 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10794 compute_cprop_data, find_used_regs, try_replace_reg,
10795 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10796 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10797 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10798 find_bypass_set, reg_killed_on_edge, bypass_block,
10799 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10800 execute_rtl_cprop, pass_rtl_cprop): Move to...
10801 * cprop.c: ...here. New file, constant/copy propagation for RTL
10802 moved from gcse.c to here with minor cleanups in duplicated code.
10804 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10806 * config/i386/i386.c (flag_opts): Fix a typo in
10807 -mavx256-split-unaligned-store.
10809 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10811 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10812 LIBCALL_VALUE): Remove macros.
10813 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10814 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10815 (h8300_function_value, h8300_libcall_value,
10816 h8300_function_value_regno_p): New functions.
10818 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10820 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10822 2011-03-28 Jeff Law <law@redhat.com>
10824 * tree-ssa-threadupdate.c (redirect_edges): Call
10825 create_edge_and_update_destination_phis as needed.
10826 (create_edge_and_update_destination_phis): Accept new BB argument.
10827 All callers updated.
10828 (thread_block): Do not update the profile when threading around
10829 intermediate blocks.
10830 (thread_single_edge): Likewise.
10831 (determine_bb_domination_status): If BB is not a successor of the
10832 loop header, return NONDOMINATING.
10833 (register_jump_thread): Note when we register a jump thread around
10834 an intermediate block.
10835 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10836 (thread_across_edge): Use it.
10838 2011-03-28 Tristan Gingold <gingold@adacore.com>
10840 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10841 when for_return is 2.
10843 2011-03-28 Jeff Law <law@redhat.com>
10845 * var-tracking.c (canonicalize_values_mark): Delete unused
10847 (canonicalize_values_star, set_variable_part): Likewise.
10848 (clobber_variable_part, delete_variable_part): Likewise.
10850 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10852 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10854 2011-03-28 Martin Jambor <mjambor@suse.cz>
10856 * tree-inline.c (expand_call_inline): Do not check that destination
10858 (optimize_inline_calls): Assert that destination node is analyzed.
10859 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10860 not call tree_lowering_passes.
10861 * cgraph.h (cgraph_analyze_function): Declare.
10862 * cgraphunit.c (cgraph_analyze_function): Make public.
10864 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10866 * config/sparc/sparc-opts.h: New.
10867 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10868 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10869 (sparc_option_override): Store processor_type enumeration rather
10870 than string in cpu_default. Remove name and enumeration from
10871 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10872 without using sparc_select. Use target_flags_explicit instead of
10874 * config/sparc/sparc.h (enum processor_type): Move to
10876 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10877 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10878 HeaderInclude entry.
10879 (mcpu=, mtune=): Use Var and Enum.
10880 (sparc_processor_type): New Enum and EnumValue entries.
10882 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10883 Iain Sandoe <iains@gcc.gnu.org>
10886 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10888 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10890 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10891 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10892 Insert new statements at it in lieu of STMT.
10893 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10894 * tree-vect-stmts.c (vectorizable_store): Likewise.
10895 (vectorizable_load): Likewise.
10897 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10899 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10904 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10906 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10907 unaligned 256bit load/store.
10908 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10909 (*avx_movdqu<avxmodesuffix>): Likewise.
10911 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10914 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10915 * config/pa/pa.md (iordi3): Use new predicate in expander.
10916 (iorsi3): Likewise.
10918 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10920 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10921 FUNCTION_VALUE_REGNO_P): Remove macros.
10922 * config/mips/mips-protos.h (mips_function_value): Remove.
10923 * config/mips/mips.c (mips_function_value): Rename to...
10924 (mips_function_value_1): ... this. Make static. Handle receiving
10925 the function type in 'fn_decl_or_type' argument.
10926 (mips_function_value, mips_libcall_value,
10927 mips_function_value_regno_p): New function.
10928 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10929 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10931 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10933 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10934 and -mavx256-split-unaligned-store.
10935 (ix86_option_override_internal): Split 32-byte AVX unaligned
10936 load/store by default.
10937 (ix86_avx256_split_vector_move_misalign): New.
10938 (ix86_expand_vector_move_misalign): Use it.
10940 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10941 -mavx256-split-unaligned-store.
10943 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10944 256bit load/store. Generate unaligned store on misaligned memory
10946 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10948 (*avx_movdqu<avxmodesuffix>): Likewise.
10950 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10951 -mavx256-split-unaligned-store.
10953 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10956 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10959 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10961 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10962 opno arguments with an expand_operand. Use create_input_operand.
10963 (mips_prepare_builtin_target): Delete.
10964 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10966 (mips_expand_builtin_direct): Use create_output_operand and
10967 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10968 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10969 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10971 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10973 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10975 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10977 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10979 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10980 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10981 basic blocks and call commit_edge_insertions directly.
10982 (fixup_abnormal_edges): Move from here to...
10983 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10984 on the edges and return whether some have actually been inserted.
10985 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10988 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10990 PR rtl-optimization/48144
10991 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10992 (merge_expr_data): ... here.
10993 (av_set_intersect): Rename to av_set_code_motion_filter.
10994 Update all callers. Call merge_history_vect when an expression
10995 is found in both sets.
10996 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10998 2011-03-26 Alan Modra <amodra@gmail.com>
11000 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11001 cmodel medium addresses.
11002 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11003 64-bit gpr loads and stores.
11004 (rs6000_secondary_reload_ppc64): New function.
11005 * config/rs6000/rs6000-protos.h: Declare it.
11006 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11008 2011-03-26 Alan Modra <amodra@gmail.com>
11011 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11012 GNU Go in traceback table.
11014 2011-03-25 Richard Henderson <rth@redhat.com>
11016 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11017 if there are exactly 6 operands.
11018 (set_storage_via_setmem): Similarly.
11020 2011-03-25 Kai Tietz <ktietz@redhat.com>
11022 * collect2.c (write_c_file_stat): Handle backslash
11023 as right-hand directory separator.
11024 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11025 checking just for slash.
11026 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11027 instead of checking for trailing slash.
11028 * gcc.c (record_temp_file): Use filename_cmp instead
11030 (do_spec_1): Likewise.
11031 (replace_outfile_spec_function): Likewise.
11032 (is_directory): Use filename_ncmp instead of strncmp.
11033 (print_multilib_info): Likewise.
11034 * gcov.c (find_source): Use filename_cmp instead
11036 (make_gcov_file_name): Fix order of slash/backslash
11038 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11039 (add_standard_paths): Likewise.
11040 * mips-tfile.c (saber_stop): Handle backslash.
11041 * prefix.c (update_path): Use filename_ncmp instead of
11043 * profile.c (output_location): Use filename_cmp instead
11045 * read-md.c (handle_toplevel_file): Handle backslash.
11046 * tlink.c (frob_extension): Likewise.
11047 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11049 * tree-dump.c (dequeue_and_dump): Handle backslash.
11050 * tree.c (get_file_function_name): Likewise.
11051 * gengtype.c (read_input_list): Likewise.
11052 (get_file_realbasename): Likewise.
11053 (get_output_file_with_visibility): Use filename_cmp
11056 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11058 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11061 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11063 * fold-const.c (expr_location_or): New function.
11064 (fold_truth_not_expr): Call it.
11066 2011-03-25 Jeff Law <law@redhat.com>
11068 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11070 * c-family/c-common.c (def_fn_type): Likewise.
11071 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11072 * emit-rtl.c (gen_rtvec): Likewise.
11073 * lto/lto-lang.c (def_fn_type): Likewise.
11075 2011-03-25 Richard Guenther <rguenther@suse.de>
11077 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11078 also generate copies.
11079 (fini_copy_prop): Handle constant values properly.
11081 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11083 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11084 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11085 (hash_loc_operands, compare_loc_operands): Handle
11086 DW_OP_GNU_entry_value.
11088 2011-03-25 Kai Tietz <ktietz@redhat.com>
11090 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11091 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11092 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11093 comment and use macro TARGET_64BIT_MS_ABI instead.
11094 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11095 and change default behavior for 32-bit MS_ABI.
11096 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11097 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11099 (ix86_cfun_abi): Likewise.
11100 (ix86_maybe_switch_abi): Adjust comment.
11101 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11102 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11103 instead of checking for SYSV_ABI.
11104 (ix86_nsaved_sseregs): Likewise.
11105 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11107 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11108 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11109 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11110 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11111 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11113 2011-03-25 Richard Guenther <rguenther@suse.de>
11115 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11116 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11117 (verify_gimple): Remove.
11118 * tree-cfg.c (verify_gimple_call): Merge verification
11120 (verify_gimple_phi): Merge verification from verify_stmts.
11121 (verify_gimple_label): New function.
11122 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11123 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11124 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11125 (verify_stmts): Rename to verify_gimple_in_cfg.
11126 (verify_gimple_in_cfg): New function.
11127 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11128 * tree-ssa.c (verify_ssa): Likewise.
11129 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11131 2011-03-25 Richard Guenther <rguenther@suse.de>
11133 * passes.c (init_optimization_passes): Add FRE pass after
11136 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11137 Andrew Stubbs <ams@codesourcery.com>
11139 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11141 (arm_movdi_vfp_cortexa8): New pattern.
11142 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11143 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11144 instructions when tuning for Cortex-A8. Set attribute "arch".
11145 * config/arm/arm.md: Move include arm-tune.md up a bit.
11146 (define_attr "arch"): Add "onlya8" and "nota8" values.
11147 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11149 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11153 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11155 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11156 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11157 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11158 * passes.c (init_optimization_passes): Move
11159 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11161 2011-03-25 Kai Tietz <ktietz@redhat.com>
11163 * c-typeck.c (comptypes_internal): Replace target
11164 hook call of comp_type_attributes by version in tree.c file.
11165 * gimple.c (gimple_types_compatible_p_1): Likewise.
11166 * tree-ssa.c (useless_type_conversion_p): Likewise.
11167 * tree.c (build_type_attribute_qual_variant): Likewise.
11168 (attribute_value_equal): New static helper function.
11169 (comp_type_attributes): New function.
11170 (merge_attributes): Use attribute_value_equal for comparison.
11171 (attribute_list_contained): Likewise.
11172 * tree.h (comp_type_attributes): New prototype.
11174 2011-03-25 Richard Guenther <rguenther@suse.de>
11176 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11177 of complex types at -O0.
11178 (verify_gimple_assign_binary): Likewise.
11179 (verify_gimple_assign_ternary): Likewise.
11181 2011-03-24 Mark Wielaard <mjw@redhat.com>
11183 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11184 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11186 2011-03-24 Mark Wielaard <mjw@redhat.com>
11189 * dwarf2out.c (output_abbrev_section): Only write table when
11190 abbrev_die_table_in_use > 1.
11192 2011-02-24 Richard Henderson <rth@redhat.com>
11194 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11195 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11196 (alpha_expand_unaligned_load_words): Use extql.
11197 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11198 (emit_insxl): Handle all modes for consistency.
11200 2011-02-24 Richard Henderson <rth@redhat.com>
11202 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11203 (alpha_expand_unaligned_load): Likewise.
11204 (alpha_expand_unaligned_store): Likewise.
11205 (alpha_expand_unaligned_load_words): Likewise.
11206 (alpha_expand_unaligned_store_words): Likewise.
11207 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11208 (alpha_split_lock_test_and_set_12): Likewise.
11209 (print_operand, alpha_fold_builtin_extxx): Likewise.
11210 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11211 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11212 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11213 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11214 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11215 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11216 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11217 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11218 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11219 (extwl, extll, extql): Similarly.
11220 (inswh, inslh, insqh): Similarly.
11221 (mskbl, mskwl, mskll, mskql): Similarly.
11222 (mskwh, msklh, mskqh): Similarly.
11224 2011-02-24 Richard Henderson <rth@redhat.com>
11226 * config/alpha/alpha.md (attribute isa): Add er, ner.
11227 (attribute enabled): Handle them.
11228 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11230 2011-02-24 Richard Henderson <rth@redhat.com>
11232 * config/alpha/alpha.md (attribute isa): Add vms.
11233 (attribute enabled): Handle it.
11234 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11235 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11236 (*movtf): Rename from *movtf_internal for consistency.
11237 (*movsi): Merge with *movsi_nt_vms.
11238 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11239 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11240 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11241 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11243 2011-02-24 Richard Henderson <rth@redhat.com>
11245 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11246 (extendqisi2, extendhisi2): Likewise.
11247 (extendqidi2): Simplify BWX/non-BWX expansions.
11248 (extendhidi2): Similarly.
11250 2011-02-24 Richard Henderson <rth@redhat.com>
11252 * config/alpha/alpha.md (attribute isa): New.
11253 (attribute enabled): New.
11254 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11255 (zero_extendqisi2, zero_extendqidi2): Similarly.
11256 (zero_extendhisi2, zero_extendhidi2): Similarly.
11257 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11259 2011-02-24 Richard Henderson <rth@redhat.com>
11261 * config/alpha/predicates.md (input_operand): Revert last change;
11262 update comment to mention 32-bit VMS rather than Windows.
11264 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11266 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11267 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11268 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11269 * passes.c (init_optimization_passes): Move
11270 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11272 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11274 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11276 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11278 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11281 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11284 * simplify-rtx.c (simplify_const_unary_operation): Call
11285 real_convert when changing mode class with FLOAT_EXTEND.
11287 2011-03-24 Nick Clifton <nickc@redhat.com>
11289 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11290 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11291 * config/rx/rx.c (rx_option_override): Set align_jumps,
11292 align_loops and align_labels if not set by the user.
11293 (rx_align_for_label): New function.
11294 (rx_max_skip_for_label): New function.
11295 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11296 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11297 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11298 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11299 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11301 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11303 PR rtl-optimization/48263
11304 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11305 and original commutative_p handling. Use maybe_gen_insn.
11307 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11309 * reload.c (find_reloads_subreg_address): Add address_reloaded
11310 parameter and return true there if the full address has been
11312 (find_reloads_toplev): Pass address_reloaded flag.
11313 (find_reloads_address_1): Don't use address_reloaded parameter.
11315 2011-03-24 Jeff Law <law@redhat.com>
11317 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11318 unused variable "ann".
11319 (remove_unused_locals): Likewise.
11321 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11324 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11327 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11329 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11330 for invalid symbolic addresses.
11331 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11334 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11336 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11337 the argument in calls to fold_truth_not_expr.
11339 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11341 * tree.c (record_node_allocation_statistics): New function.
11342 (make_node_stat, copy_node_stat, build_string): Call it.
11343 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11344 (build1_stat, build_omp_clause): Likewise.
11346 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11348 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11351 2011-03-24 Richard Guenther <rguenther@suse.de>
11353 PR tree-optimization/48271
11354 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11355 blocks that still exist.
11357 2011-03-24 Richard Guenther <rguenther@suse.de>
11359 PR tree-optimization/48270
11360 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11361 not free datarefs before ddrs.
11363 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11365 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11366 from the address built for a reference with variable offset.
11368 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11371 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11372 alternatives that can be handled with movq or movabsq insn.
11373 (*movdf_internal): Disable for !TARGET_64BIT.
11374 (*movdf_internal_nointeger): Ditto.
11375 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11377 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11379 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11380 (FUNCTION_ARG_ADVANCE): Likewise.
11381 * tm.texi.in: Change references to them to hook references.
11382 * tm.texi: Regenerate.
11383 * targhooks.c (default_function_arg): Eliminate check for target macro.
11384 (default_function_incoming_arg): Likewise.
11385 (default_function_arg_advance): Likewise.
11386 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11387 (function_arg_advance): Likewise.
11388 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11390 2011-03-24 Richard Guenther <rguenther@suse.de>
11392 PR middle-end/48269
11393 * tree-object-size.c (addr_object_size): Do not double-account
11394 for MEM_REF offsets.
11396 2011-03-24 Diego Novillo <dnovillo@google.com>
11398 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11399 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11400 (lto_input_data_block): Move from lto-opts.c. Make extern.
11402 (lto_input_string): Rename from input_string. Make extern.
11404 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11405 output_string_with_length.
11406 Output 0 to indicate a non-NULL string. Update all callers to
11408 (lto_output_string): Rename from output_string. Make extern.
11410 (lto_output_decl_state_streams): Make extern.
11411 (lto_output_decl_state_refs): Make extern.
11412 * lto-streamer.h (lto_input_string): Declare.
11413 (lto_input_data_block): Declare.
11414 (lto_output_string): Declare.
11415 (lto_output_string_with_length): Declare.
11416 (lto_output_decl_state_streams): Declare.
11417 (lto_output_decl_state_refs): Declare.
11419 2011-03-24 Richard Guenther <rguenther@suse.de>
11421 PR tree-optimization/46562
11422 * tree.c (build_invariant_address): New function.
11423 * tree.h (build_invariant_address): Declare.
11424 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11425 a renamed function moved ...
11426 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11427 Take valueization callback parameter.
11428 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11429 * gimple-fold.h: New file.
11430 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11431 (ccp_fold, fold_const_aggregate_ref,
11432 fold_ctor_reference, fold_nonarray_ctor_reference,
11433 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11434 get_base_constructor): Move ...
11435 * gimple-fold.c: ... here.
11436 (gimple_fold_stmt_to_constant_1): New function
11437 split out from ccp_fold. Take a valueization callback parameter.
11438 Valueize all operands.
11439 (gimple_fold_stmt_to_constant): New wrapper function.
11440 (fold_const_aggregate_ref_1): New function split out from
11441 fold_const_aggregate_ref. Take a valueization callback parameter.
11442 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11443 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11444 invariant POINTER_PLUS_EXPRs to invariant form.
11445 (vn_valueize): New function.
11446 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11447 * tree-vrp.c (vrp_valueize): New function.
11448 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11449 to fold statements to constants.
11450 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11451 function declarations.
11452 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11453 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11455 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11457 * config/h8300/predicates.md (jump_address_operand): Fix register
11460 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11462 * doc/invoke.texi (max-stores-to-sink): Document.
11463 * params.h (MAX_STORES_TO_SINK): Define.
11464 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11465 if either vectorization or if-conversion is disabled.
11466 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11467 tree-vect-data-refs.c vect_equal_offsets.
11468 (dr_equal_offsets_p): New function.
11469 (find_data_references_in_bb): Remove static.
11470 * tree-data-ref.h (find_data_references_in_bb): Declare.
11471 (dr_equal_offsets_p): Likewise.
11472 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11473 (vect_drs_dependent_in_basic_block): Update calls to
11474 vect_equal_offsets.
11475 (vect_check_interleaving): Likewise.
11476 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11477 (cond_if_else_store_replacement): Rename to...
11478 (cond_if_else_store_replacement_1): ... this. Change arguments and
11480 (cond_if_else_store_replacement): New function.
11481 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11482 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11484 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11487 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11488 to subtract lower bound instead of GEN_INT().
11490 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11495 * doc/extend.texi (Alignment): Move section to match order in TOC.
11496 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11497 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11499 2011-03-23 Jeff Law <law@redhat.com>
11501 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11502 before removing the edge.
11504 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11505 it may have been freed by redirect_branch_edge or
11506 redirect_edge_succ_nodup.
11508 2011-03-23 Richard Guenther <rguenther@suse.de>
11510 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11511 (check_va_list_escapes): Likewise.
11512 (check_all_va_list_escapes): Likewise.
11514 2011-03-23 Richard Guenther <rguenther@suse.de>
11516 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11517 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11518 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11519 (alias.o): Likewise.
11520 (ipa-type-escape.o): Remove.
11521 (ipa-struct-reorg.o): Likewise.
11522 (GTFILES): Remove ipa-struct-reorg.c.
11523 * alias.c: Do not include ipa-type-escape.h.
11524 * tree-ssa-alias.c: Likewise.
11525 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11526 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11527 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11528 and ipa-type-escape passes.
11529 * tree-pass.h (pass_ipa_type_escape): Remove.
11530 (pass_ipa_struct_reorg): Likewise.
11531 * ipa-struct-reorg.h: Remove.
11532 * ipa-struct-reorg.c: Likewise.
11533 * ipa-type-escape.h: Likewise.
11534 * ipa-type-escape.c: Likewise.
11535 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11536 (--param struct-reorg-cold-struct-ratio): Likewise.
11537 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11538 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11539 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11541 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11543 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11544 cpu attribute value.
11545 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11546 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11547 * config/s390/s390.c (processor_flags_table): New constant array.
11548 (s390_handle_arch_option): Remove.
11549 (s390_handle_option): Remove s390_handle_arch_option invocations
11550 and OPT_mwarn_framesize_ handling.
11551 (s390_option_override): Remove s390_handle_arch_option invocation.
11552 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11554 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11555 * config/s390/s390.opt (s390_tune, s390_arch)
11556 (march=): Replace s390_arch_option enum and values with
11557 processor_type. Set variable name to s390_arch. Set
11558 initialization value.
11559 (mtune=): Replace s390_arch_option with processor_type. Set
11560 variable name to s390_tune. Set initialization value.
11562 2011-03-23 Julian Brown <julian@codesourcery.com>
11564 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11565 accesses which are not naturally aligned.
11567 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11570 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11572 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11574 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11575 parameter from "int" to "enum insn_code".
11576 (expand_operand_type): New enum.
11577 (expand_operand): New structure.
11578 (create_expand_operand): New function.
11579 (create_fixed_operand, create_output_operand): Likewise
11580 (create_input_operand, create_convert_operand_to): Likewise.
11581 (create_convert_operand_from, create_address_operand): Likewise.
11582 (create_integer_operand): Likewise.
11583 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11584 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11585 (expand_insn, expand_jump_insn): Likewise.
11586 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11587 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11588 (expand_movstr, expand_builtin___clear_cache): Likewise.
11589 (expand_builtin_lock_release): Likewise.
11590 * explow.c (allocate_dynamic_stack_space): Likewise.
11591 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11592 and use the default handling in that case.
11593 * expmed.c (check_predicate_volatile_ok): Delete.
11594 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11595 (emit_cstore): Likewise.
11596 * expr.c (emit_block_move_via_movmem): Likewise.
11597 (set_storage_via_setmem, expand_assignment): Likewise.
11598 (emit_storent_insn, try_casesi): Likewise.
11599 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11600 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11601 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11602 (expand_twoval_unop, expand_twoval_binop): Likewise.
11603 (expand_unop_direct, emit_indirect_jump): Likewise.
11604 (emit_conditional_move, vector_compare_rtx): Likewise.
11605 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11606 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11607 (expand_sync_lock_test_and_set): Likewise.
11608 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11609 (emit_unop_insn): Likewise.
11610 (expand_copysign_absneg): Change icode to an insn_code.
11611 (create_convert_operand_from_type): New function.
11612 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11613 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11614 (expand_insn, expand_jump_insn): Likewise.
11615 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11616 than const_int_operand for operand 2.
11618 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11620 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11623 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11625 * emit-rtl.c (emit_pattern_before_noloc): New function.
11626 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11627 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11628 (emit_pattern_after_noloc): New function.
11629 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11630 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11632 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11634 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11635 (__ffsDI2): Likewise.
11637 2011-03-22 Richard Henderson <rth@redhat.com>
11639 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11640 of !TARGET_ABI_OPEN_VMS.
11641 (alpha_trampoline_init, alpha_start_function): Likewise.
11642 (alpha_expand_epilogue, alpha_file_start): Likewise.
11643 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11644 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11645 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11646 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11647 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11649 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11651 * config/s390/s390-opts.h: New.
11652 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11653 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11654 s390_stack_guard): Remove.
11655 (s390_handle_arch_option): Return void. Take enum
11656 s390_arch_option value instead of string and searching array.
11657 (s390_handle_option): Don't assert that global structures are in
11658 use. Access variables via opts pointer. Use error_at. Don't use
11659 sscanf for -mstack-guard= or -mstack-size=. Update call to
11660 s390_handle_arch_option.
11661 (s390_option_override): Update call to s390_handle_arch_option.
11662 (s390_emit_prologue): Use %d format for s390_stack_size in
11663 diagnostic. Use %wd for HOST_WIDE_INT.
11664 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11665 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11666 * config/s390/s390.opt (config/s390/s390-opts.h): New
11667 HeaderInclude entry.
11668 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11669 s390_arch_flags, s390_warn_framesize): New Variable entries.
11670 (s390_arch_option): New Enum and EnumValue entries.
11671 (march=): Use Enum instead of Var.
11672 (mstack-guard=, mstack-size=): Use UInteger and Var.
11673 (mtune=): Use Enum.
11675 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11677 * config/score/score.c (score_handle_option): Don't assert that
11678 global structures are in use. Access target_flags via opts
11679 pointer. Use value of -march= option to determine target_flags
11681 * config/score/score.opt (march=): Use Enum.
11682 (score_arch): New Enum and EnumValue entries.
11684 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11686 * config/mep/mep.c (option_mtiny_specified): Remove.
11687 (mep_option_override): Move register handling for -mivc2 from
11688 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11689 instead of option_mtiny_specified.
11690 (mep_handle_option): Access target_flags via opts pointer. Don't
11691 assert that global structures are in use. Defer part of -mivc2
11692 handling and move it to mep_option_override.
11693 * config/mep/mep.opt (IVC2): New Mask entry.
11694 (mivc2): Use Var and Defer instead of Mask.
11696 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11698 * config/v850/v850-opts.h: New.
11699 * config/v850/v850.c (small_memory): Replace with
11700 small_memory_physical_max array. Make that array static const.
11701 (v850_handle_memory_option): Take integer value of argument. Take
11702 gcc_options pointer, option text and location. Return void.
11703 Update for changes to small memory structures.
11704 (v850_handle_option): Access target_flags via opts pointer. Don't
11705 assert that global structures are in use. Update calls to
11706 v850_handle_memory_option.
11707 (v850_encode_data_area): Update references to small memory settings.
11708 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11709 (enum small_memory_type): Move to v850-opts.h.
11710 * config/v850/v850.opt (config/v850/v850-opts.h): New
11711 HeaderInclude entry.
11712 (small_memory_max): New Variable entry.
11713 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11714 (mtda, mzda): Likewise.
11716 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11718 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11719 pointer. Don't assert that global structures are in use.
11721 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11723 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11724 via opts pointer. Don't assert that global structures are in use.
11726 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11728 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11729 (munix=93): Use Var.
11730 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11731 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11732 * config/pa/pa-opts.h: New.
11733 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11734 (pa_handle_option): Don't assert that global structures are in
11735 use. Access target_flags via opts pointer. Don't handle
11736 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11738 (pa_option_override): Handle deferred OPT_mfixed_range_.
11740 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11742 * config/mn10300/mn10300-opts.h: New.
11743 * config/mn10300/mn10300.c (mn10300_processor,
11744 mn10300_tune_string): Remove.
11745 (mn10300_handle_option): Don't assert that global structures are
11746 in use. Access mn10300_processor via opts pointer. Don't handle
11748 * config/mn10300/mn10300.h (enum processor_type): Move to
11750 (mn10300_processor): Remove.
11751 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11752 HeaderInclude entry.
11753 (mn10300_processor): New Variable entry.
11756 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11758 * config/microblaze/microblaze.c: Don't include opts.h.
11759 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11760 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11761 (mno-clearbss): Use Var and Warn.
11763 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11765 * config/m32r/m32r-opts.h: New.
11766 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11767 (m32r_handle_option): Don't assert that global structures are in
11768 use. Access target_flags and m32r_cache_flush_func via opts
11769 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11770 OPT_mno_flush_trap here.
11771 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11772 include of m32r-opts.h.
11773 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11774 HeaderInclude entry.
11775 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11776 (mmodel=): Use Enum and Var.
11777 (m32r_model): New Enum and EnumValue entries.
11778 (mno-flush-trap): Use Var.
11779 (msdata=): Use Enum and Var.
11780 (m32r_sdata): New Enum and EnumValue entries.
11782 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11784 * config/m32c/m32c.c: Don't include opts.h.
11785 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11786 m32c_handle_option): Remove.
11787 (m32c_option_override): Check global_options_set.x_target_memregs
11788 instead of target_memregs_set.
11789 * config/m32c/m32c.h (target_memregs): Remove.
11790 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11793 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11795 * config/iq2000/iq2000-opts.h: New.
11796 * config/iq2000/iq2000.c: Don't include opts.h.
11797 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11798 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11799 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11800 HeaderInclude entry.
11801 (iq2000_tune): New Variable entry.
11802 (march=): Add comment. Use Enum.
11803 (iq2000_arch): New Enum and EnumValue entries.
11804 (mcpu=): Use Enum and Var.
11805 (iq2000_tune): New Enum and EnumValue entries.
11807 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11809 * config/ia64/ia64-opts.h: New.
11810 * config/ia64/ia64.c (ia64_tune): Remove.
11811 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11812 here. Use error_at.
11813 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11814 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11815 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11816 HeaderInclude entry.
11817 (ia64_tune): New Variable entry.
11818 (mfixed-range=): Use Defer and Var.
11819 (mtune=): Use Enum and Var.
11820 (ia64_tune): New Enum and EnumValue entries.
11822 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11824 * config/frv/frv-opts.h: New.
11825 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11827 (frv_cpu_type): Remove.
11828 * config/frv/frv.c: Don't include opts.h.
11829 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11830 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11831 (frv_cpu_type): New Variable entry.
11832 (frv_cpu): New Enum and EnumValue entries.
11834 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11836 * config/cris/cris.c (cris_handle_option): Access target_flags via
11837 opts pointer. Don't assert that global structures are in use.
11838 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11839 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11841 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11843 * config/bfin/bfin-opts.h: New.
11844 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11845 bfin_si_revision, bfin_workarounds): Remove.
11846 (bfin_cpus): Make static const.
11847 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11848 not bfin_lib_id_given.
11849 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11850 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11851 pointer. Use error_at. Don't assert that global structures are in use.
11852 * config/bfin/bfin.h: Include bfin-opts.h.
11853 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11854 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11855 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11856 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11859 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11861 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11862 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11863 or -msoft-float here.
11864 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11865 -msoft-float and -mhard-float.
11866 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11867 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11869 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11871 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11872 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11874 (LIBGCC_SPEC): Don't handle -msoft-float.
11875 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11877 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11879 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11880 -mfloat-abi=*, not -msoft-float and -mhard-float.
11881 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11883 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11884 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11885 mhard-float and msoft-float.
11886 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11887 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11888 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11889 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11891 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11892 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11894 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11896 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11899 2011-03-22 Richard Henderson <rth@redhat.com>
11901 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11902 TARGET_ABI_WINDOWS_NT.
11903 (alpha_output_function_end_prologue): Likewise.
11904 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11905 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11906 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11907 (trap, *movsi_nt_vms): Likewise.
11908 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11909 (*tablejump_osf_nt_internal): Remove.
11910 * config/alpha/predicates.md (input_operand): Only test Pmode.
11912 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11914 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11915 via opts pointer. Use error_at. Don't assert that global
11916 structures are in use.
11918 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11920 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11921 (ix86_handle_option): Access ix86_isa_flags and
11922 ix86_isa_flags_explicit via opts pointer. Don't assert that
11923 global structures are in use.
11924 (ix86_function_specific_save, ix86_function_specific_restore):
11925 Update ix86_isa_flags_explicit field name.
11926 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11927 (ix86_isa_flags_explicit): Rename TargetSave entry to
11928 x_ix86_isa_flags_explicit.
11930 2011-03-22 Richard Henderson <rth@redhat.com>
11932 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11933 (alpha_option_override, direct_return): Likewise.
11934 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11935 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11936 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11937 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11938 (alpha_expand_epilogue, alpha_end_function): Likewise.
11939 (alpha_init_libfuncs): Likewise.
11940 (struct machine_function): Remove unicosmk members.
11941 (print_operand) ['t']: Remove.
11942 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11943 unicosmk_output_module_name, unicosmk_output_common,
11944 current_section_align, unicosmk_output_text_section_asm_op,
11945 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11946 unicosmk_section_type_flags, unicosmk_unique_section,
11947 unicosmk_asm_named_section, unicosmk_insert_attributes,
11948 unicosmk_output_align, unicosmk_defer_case_vector,
11949 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11950 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11951 unicosmk_output_ssib, unicosmk_add_call_info_word,
11952 unicosmk_extern_head, unicosmk_output_default_externs,
11953 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11954 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11955 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11956 * config/alpha/alpha-protos.h: Update.
11957 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11958 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11959 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11960 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11961 (*mulsi_se, mulvsi3): Likewise.
11962 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11963 (*divmodsi_internal, call, call_value, realign): Likewise.
11964 (moddi3, umoddi3): Likewise; remove duplicate expander.
11965 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11966 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11967 (*movdi_nofix): Remove r/U alternative.
11968 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11969 * config/alpha/constraints.md ("U"): Remove.
11970 * config/alpha/predicates.md (call_operand"): Don't test
11971 TARGET_ABI_UNICOSMK.
11973 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11975 * target.def (handle_option): Take gcc_options and
11976 cl_decoded_option pointers and location_t.
11977 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11978 * doc/tm.texi: Regenerate.
11979 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11980 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11981 * lto-opts.c (lto_reissue_options): Generate option structure for
11982 targetm.handle_option call.
11983 * opts.c (target_handle_option): Update call to
11984 targetm.handle_option. Remove assertions about values now passed
11986 * targhooks.c (default_target_handle_option): New.
11987 * targhooks.h (default_target_handle_option): Declare.
11988 * config/alpha/alpha.c: Include opts.h.
11989 (alpha_handle_option): Update to new hook interface.
11990 * config/arm/arm.c: Include opts.h.
11991 (arm_handle_option): Update to new hook interface.
11992 * config/arm/t-arm (arm.o): Update dependencies.
11993 * config/bfin/bfin.c: Include opts.h.
11994 (bfin_handle_option): Update to new hook interface.
11995 * config/cris/cris.c: Include opts.h.
11996 (cris_handle_option): Update to new hook interface.
11997 * config/frv/frv.c: Include opts.h.
11998 (frv_handle_option): Update to new hook interface.
11999 * config/i386/i386.c: Include opts.h.
12000 (ix86_handle_option): Update to new hook interface.
12001 (ix86_valid_target_attribute_inner_p): Generate option structure
12002 for call to ix86_handle_option.
12003 * config/i386/t-i386 (i386.o): Update dependencies.
12004 * config/ia64/ia64.c: Include opts.h.
12005 (ia64_handle_option): Update to new hook interface.
12006 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12007 * config/iq2000/iq2000.c: Include opts.h.
12008 (iq2000_handle_option): Update to new hook interface.
12009 * config/m32c/m32c.c: Include opts.h.
12010 (m32c_handle_option): Update to new hook interface.
12011 * config/m32r/m32r.c: Include opts.h.
12012 (m32r_handle_option): Update to new hook interface.
12013 * config/m68k/m68k.c: Include opts.h.
12014 (m68k_handle_option): Update to new hook interface.
12015 * config/mep/mep.c: Include opts.h.
12016 (mep_handle_option): Update to new hook interface.
12017 * config/microblaze/microblaze.c: Include opts.h.
12018 (microblaze_handle_option): Update to new hook interface.
12019 * config/mips/mips.c: Include opts.h.
12020 (mips_handle_option): Update to new hook interface.
12021 * config/mn10300/mn10300.c: Include opts.h.
12022 (mn10300_handle_option): Update to new hook interface.
12023 * config/pa/pa.c: Include opts.h.
12024 (pa_handle_option): Update to new hook interface.
12025 * config/pdp11/pdp11.c: Include opts.h.
12026 (pdp11_handle_option): Update to new hook interface.
12027 * config/rs6000/rs6000.c: Include opts.h.
12028 (rs6000_handle_option): Update to new hook interface.
12029 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12030 * config/rx/rx.c: Include opts.h.
12031 (rx_handle_option): Update to new hook interface.
12032 * config/s390/s390.c: Include opts.h.
12033 (s390_handle_option): Update to new hook interface.
12034 * config/score/score.c: Include opts.h.
12035 (score_handle_option): Update to new hook interface.
12036 * config/sh/sh.c: Include opts.h.
12037 (sh_handle_option): Update to new hook interface.
12038 * config/sparc/sparc.c: Include opts.h.
12039 (sparc_handle_option): Update to new hook interface.
12040 * config/v850/v850.c: Include opts.h.
12041 (v850_handle_option): Update to new hook interface.
12043 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12045 * gcc.c (driver_unknown_option_callback): Only permit and save
12046 unknown -Wno- options.
12047 (driver_wrong_lang_callback): Save options directly instead of via
12048 driver_unknown_option_callback.
12050 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12052 * combine.c (simplify_set): Try harder to find the best CC mode when
12053 simplifying a nested COMPARE on the RHS.
12055 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12057 * config/alpha/gnu.h: Remove.
12058 * config/arc: Remove directory.
12059 * config/arm/netbsd.h: Remove.
12060 * config/arm/t-pe: Remove.
12061 * config/crx: Remove directory.
12062 * config/i386/netbsd.h: Remove.
12063 * config/m68hc11: Remove directory.
12064 * config/m68k/uclinux-oldabi.h: Remove.
12065 * config/mcore/mcore-pe.h: Remove.
12066 * config/mcore/t-mcore-pe: Remove.
12067 * config/netbsd-aout.h: Remove.
12068 * config/rs6000/gnu.h: Remove.
12069 * config/sh/sh-symbian.h: Remove.
12070 * config/sh/symbian-base.c: Remove.
12071 * config/sh/symbian-c.c: Remove.
12072 * config/sh/symbian-cxx.c: Remove.
12073 * config/sh/symbian-post.h: Remove.
12074 * config/sh/symbian-pre.h: Remove.
12075 * config/sh/t-symbian: Remove.
12076 * config/svr3.h: Remove.
12077 * config/vax/netbsd.h: Remove.
12078 * config.build: Don't handle i[34567]86-*-pe.
12079 * config.gcc: Remove handling of deprecations for most deprecated
12081 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12082 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12083 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12084 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12085 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12086 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12088 * config.host: Don't handle i[34567]86-*-pe.
12089 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12090 (ASM_SPEC32): Don't handle -mcall-gnu.
12091 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12093 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12094 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12095 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12096 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12097 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12098 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12099 conditional on SYMBIAN.
12100 * configure.ac: Don't handle powerpc*-*-gnu*.
12101 * configure: Regenerate.
12102 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12103 * doc/install-old.texi (m6811, m6812): Don't mention.
12104 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12105 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12106 (m68k-uclinuxoldabi): Don't mention.
12107 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12109 (-mcall-gnu): Remove.
12110 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12111 families): Remove constraint documentation.
12113 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12115 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12116 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12117 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12119 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12122 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12123 vector when peeking at the next token for vector, don't expand the
12126 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12128 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12129 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12130 * config/avr/avr.c (init_cumulative_args)
12131 (avr_function_arg_advance): Use it.
12132 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12134 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12135 (avr_function_ok_for_sibcall): ...this new function.
12136 (avr_lookup_function_attribute1): New static Function.
12137 (avr_naked_function_p, interrupt_function_p)
12138 (signal_function_p, avr_OS_task_function_p)
12139 (avr_OS_main_function_p): Use it.
12140 * config/avr/avr.md ("sibcall", "sibcall_value")
12141 ("sibcall_epilogue"): New expander.
12142 ("*call_insn", "*call_value_insn"): New insn.
12143 ("call_insn", "call_value_insn"): Remove
12144 ("call", "call_value", "epilogue"): Change expander to handle
12147 2011-03-21 Nick Clifton <nickc@redhat.com>
12149 * doc/invoke.texi (Overall Options): Move closing brace to end of
12151 (Optimization Options): Add missing @gol.
12152 (Directory Options): Likewise.
12153 (i386 and x86-64 Options): Likewise.
12154 (RS6000 and PowerPC Options): Likewise.
12155 (i386 and x86-64 Windows Options): Likewise.
12156 (V850 Options): Add text missing from descriptions.
12158 2011-03-22 Richard Henderson <rth@redhat.com>
12160 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12161 (avr_incoming_return_addr_rtx): New.
12162 (emit_push_byte): New.
12163 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12164 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12165 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12166 (emit_pop_byte): New.
12167 (expand_epilogue): Use it. Pop frame pointer by bytes.
12168 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12169 (INCOMING_RETURN_ADDR_RTX): New.
12170 (INCOMING_FRAME_SP_OFFSET): New.
12171 (ARG_POINTER_CFA_OFFSET): New.
12172 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12173 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12176 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12178 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12180 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12181 (FUNCTION_ARG_ADVANCE): Likewise.
12182 * tm.texi.in: Change references to them to hook references.
12183 * tm.texi: Regenerate.
12184 * targhooks.c (default_function_arg): Eliminate check for target
12186 (default_function_incoming_arg): Likewise.
12187 (default_function_arg_advance): Likewise.
12188 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12189 (function_arg_advance): Likewise.
12190 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12192 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12194 * tree.c (build_call_1): New function.
12195 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12197 2011-03-22 Richard Guenther <rguenther@suse.de>
12199 PR tree-optimization/48228
12200 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12201 for single-arg PHIs.
12203 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12205 PR rtl-optimization/48143
12206 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12207 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12208 sse2_cvtps2pd): Likewise.
12210 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12212 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12214 2011-03-22 Richard Guenther <rguenther@suse.de>
12216 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12217 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12218 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12219 and REALIGN_LOAD_EXPR.
12220 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12221 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12222 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12223 DOT_PROD_EXPR case ...
12224 (expand_expr_real_2): ... here.
12225 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12226 and REALIGN_LOAD_EXPR.
12227 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12228 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12229 (vect_create_epilog_for_reduction): Likewise.
12230 (vectorizable_reduction): Likewise.
12231 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12232 * tree-vect-stmts.c (vectorizable_load): Likewise.
12234 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12236 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12238 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12240 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12241 handling for PLTOFF/GOTOFF.
12243 2011-03-22 Nick Clifton <nickc@redhat.com>
12245 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12246 trailing backslash from the end of the macro definition.
12248 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12250 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12253 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12255 * expr.h (prepare_operand): Move to...
12256 * optabs.h (prepare_operand): ...here and change the insn code
12257 parameter from "int" to "enum insn_code".
12258 (insn_operand_matches): Declare.
12259 * expr.c (init_expr_target): Use insn_operand_matches.
12260 (compress_float_constant): Likewise.
12261 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12262 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12263 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12264 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12266 (gen_cond_trap): Likewise.
12267 (prepare_operand): Likewise. Change icode to an insn_code.
12268 (insn_operand_matches): New function.
12269 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12270 * reload1.c (gen_reload): Likewise.
12271 * targhooks.c (default_secondary_reload): Likewise.
12273 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12275 * config/alpha/alpha.md (unspec): New define_c_enum.
12278 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12281 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12282 between a call and its CALL_ARG_LOCATION note.
12284 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12286 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12288 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12292 * c-common.c (shorten_compare): If primopN is first sign-extended
12293 to opN and then zero-extended to result type, set primopN to opN.
12295 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12297 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12298 for barrier handlers.
12300 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12302 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12303 UNSPEC constants to be in the unspec enumeration, and redefine
12304 all UNSPECV constants to be in the unspecv enumeration, so that
12305 dumps print which unspec/unspec_volatile this is.
12306 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12307 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12308 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12309 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12310 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12312 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12313 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12314 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12315 * config/rs6000/sync.md (isync, lwsync): Ditto.
12317 2011-03-21 Richard Guenther <rguenther@suse.de>
12319 * params.def (lto-min-partition): Fix typo.
12321 2011-03-21 Richard Guenther <rguenther@suse.de>
12324 * c-decl.c (grokdeclarator): Drop to the main variant only
12325 for array types. Drop flag_gen_aux_info check.
12327 2011-03-21 Richard Guenther <rguenther@suse.de>
12329 PR translation/47911
12330 * params.def (lto-partitions): Fix typo.
12331 (lto-min-partition): Fix wording.
12333 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12335 * config/rs6000/t-freebsd: Remove duplication from file.
12337 2011-03-21 Richard Guenther <rguenther@suse.de>
12339 PR middle-end/47661
12340 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12342 2011-03-21 Richard Guenther <rguenther@suse.de>
12345 * params.def (lto-partitions): Require at least 1 partition.
12347 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12349 * gthr-solaris.h: Remove.
12350 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12351 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12352 (LIB_SPEC): Likewise.
12353 * config/sol2.opt (threads): Remove.
12354 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12355 (sparc*-*-solaris2*): Likewise.
12356 * configure.ac (enable_threads): Enable solaris support.
12357 * configure: Regenerate.
12358 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12359 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12362 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12364 * config.gcc: Obsolete *-*-solaris2.8*.
12365 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12367 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12370 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12371 reference. Solaris 8 perl works.
12373 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12376 * doc/install.texi (Prerequisites): Move jar etc. up.
12377 Explain support library version requirements.
12379 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12382 * doc/install.texi (Prerequisites): Move Perl to build
12383 requirements. Always necessary on Solaris 2 with Sun ld.
12385 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12387 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12389 (Specific, i?86-*-solaris2.[89]): Likewise.
12390 (Specific, i?86-*-solaris2.10): Likewise.
12391 (Specific, mips-sgi-irix6): Likewise.
12392 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12393 Update for binutils 2.21.
12395 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12397 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12398 Allow -fuse-linker-plugin for non-default plugin linker.
12399 * configure: Regenerate.
12401 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12404 * gengtype.c (files_rules): Added rule for cp/parser.h.
12406 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12409 * config/s390/s390.c (s390_delegitimize_address): Don't call
12410 lowpart_subreg if orig_x has BLKmode.
12412 2011-03-21 Kai Tietz <ktietz@redhat.com>
12415 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12416 * tree.h (attribute_spec): Add new member affects_type_identity.
12417 * attribs.c (empty_attribute_table): Adjust attribute_spec
12419 * config/alpha/alpha.c: Likewise.
12420 * config/arc/arc.c: Likewise.
12421 * config/arm/arm.c: Likewise.
12422 * config/avr/avr.c: Likewise.
12423 * config/bfin/bfin.c: Likewise.
12424 * config/crx/crx.c: Likewise.
12425 * config/darwin.h: Likewise.
12426 * config/h8300/h8300.c: Likewise.
12427 * config/i386/cygming.h: Likewise.
12428 * config/i386/i386.c: Likewise.
12429 * config/ia64/ia64.c: Likewise.
12430 * config/m32c/m32c.c: Likewise.
12431 * config/m32r/m32r.c: Likewise.
12432 * config/m68hc11/m68hc11.c: Likewise.
12433 * config/m68k/m68k.c: Likewise.
12434 * config/mcore/mcore.c: Likewise.
12435 * config/mep/mep.c: Likewise.
12436 * config/microblaze/microblaze.c: Likewise.
12437 * config/mips/mips.c: Likewise.
12438 * config/rs6000/rs6000.c: Likewise.
12439 * config/rx/rx.c: Likewise.
12440 * config/sh/sh.c: Likewise.
12441 * config/sol2.h: Likewise.
12442 * config/sparc/sparc.c: Likewise.
12443 * config/spu/spu.c: Likewise.
12444 * config/stormy16/stormy16.c: Likewise.
12445 * config/v850/v850.c: Likewise.
12447 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12449 * simplify-rtx.c (simplify_binary_operation_1): Handle
12450 (xor (and A B) C) case when B and C are both constants.
12452 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12454 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12456 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12459 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12461 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12463 PR rtl-optimization/48156
12464 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12465 assume df and df_lr are not NULL.
12467 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12470 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12471 between a call and its CALL_ARG_LOCATION note.
12473 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12476 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12477 between a call and its corresponding CALL_ARG_LOCATION note.
12479 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12481 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12482 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12483 * haifa-sched.c (setup_ref_regs): Ditto.
12484 * caller-save.c (add_used_regs_1): Ditto.
12485 * dse.c (look_for_hardregs): Ditto.
12486 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12487 * sched-rgn.c (check_live_1): Ditto.
12489 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12491 * c-decl.c (diagnose_mismatched_decls): Give an error for
12492 redefining a typedef with variably modified type.
12494 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12496 * c-decl.c (grokfield): Don't allow typedefs for structures or
12497 unions with no tag by default.
12498 * doc/extend.texi (Unnamed Fields): Update.
12500 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12502 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12503 Rewrite using indirect functions.
12504 (lwp_slwpcb): Ditto.
12505 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12506 (avx_vinsertf128<mode>): Ditto.
12508 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12510 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12513 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12515 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12516 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12518 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12520 PR rtl-optimization/48170
12521 * gcse.c (hoist_code): Remove bogus asserts.
12523 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12525 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12526 computation for prologue/epilogue.
12528 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12530 * Makefile.in (check-consistency): Remove.
12532 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12535 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12536 arange_table_in_use is 0, but either text_section_used or
12537 cold_text_section_used is true. Don't call it if
12538 !info_section_emitted.
12540 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12542 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12543 FUNCTION_VALUE_REGNO_P): Remove.
12544 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12546 * config/avr/avr.c (avr_ret_register): Make static inline.
12547 (avr_function_value_regno_p): New function.
12548 (avr_libcall_value): Make static. Add 'func' argument.
12549 (avr_function_value): Make static. Rename 'func' argument to
12550 'fn_decl_or_type', forward it to avr_libcall_value. Call
12551 avr_ret_register function instead of RET_REGISTER macro.
12552 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12554 2011-03-18 Jason Merrill <jason@redhat.com>
12557 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12559 2011-03-18 Richard Guenther <rguenther@suse.de>
12561 * doc/install.texi (--enable-gold): Remove.
12562 (--with-plugin-ld): Document.
12563 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12565 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12567 PR middle-end/47790
12568 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12569 again after expansion changes.
12571 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12573 * combine.c (try_combine): Do simplification only call of
12574 subst() on i2 even when i1 is present. Update comments.
12576 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12578 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12579 and UNSPEC_PCREL_SYMOFF.
12581 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12583 * config/s390/s390.md: Use define_c_enum for the unspec constant
12586 2011-03-18 Richard Henderson <rth@redhat.com>
12587 Jakub Jelinek <jakub@redhat.com>
12590 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12591 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12593 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12595 PR middle-end/47725
12596 * combine.c (cant_combine_insn_p): Don't check zero/sign
12597 extended hard registers.
12599 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12601 PR middle-end/47725
12602 * combine.c (cant_combine_insn_p): Check zero/sign extended
12605 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12607 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12608 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12609 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12610 Change return type to bool.
12611 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12613 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12616 * var-tracking.c (prepare_call_arguments): If CALL target
12617 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12618 pc instead of looking it up using cselib_lookup and use
12619 Pmode for it if x has VOIDmode.
12620 * dwarf2out.c (gen_subprogram_die): If also both first and
12621 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12624 * function.c (assign_parms): For data.passed_pointer parms
12625 use MEM of data.entry_parm instead of data.entry_parm itself
12626 as DECL_INCOMING_RTL.
12627 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12628 also when passed and declared mode is the same, DECL_RTL
12629 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12632 2011-03-16 Jeff Law <law@redhat.com>
12634 PR rtl-optimization/37273
12635 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12636 handle them like argument loads from stack slots. Do not double
12637 count memory for memory constants and argument loads from stack slots.
12639 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12642 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12644 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12647 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12649 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12652 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12654 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12655 Clear call_arg_locations and call_arg_loc_last always.
12657 PR middle-end/48152
12658 * var-tracking.c (prepare_call_arguments): If argument needs to be
12659 passed by reference, adjust argtype and mode.
12661 2011-03-17 Richard Guenther <rguenther@suse.de>
12663 PR middle-end/48134
12664 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12665 a value make sure to fold the statement.
12667 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12670 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12671 return condition with !cfun->calls_alloca.
12673 2011-03-17 Richard Guenther <rguenther@suse.de>
12676 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12677 origin for decls in other ltrans units.
12678 (input_varpool_node): Likewise.
12680 2011-03-17 Richard Guenther <rguenther@suse.de>
12682 PR middle-end/48165
12683 * tree-object-size.c (compute_object_offset): Properly return
12684 the offset operand of MEM_REFs as sizetype.
12686 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12688 PR rtl-optimization/48141
12689 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12690 * dse.c: Include params.h.
12691 (active_local_stores_len): New variable.
12692 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12694 (record_store, check_mem_read_rtx): Decrease it when removing
12696 (scan_insn): Likewise. Increase it when adding to chain, if it
12697 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12698 set active_local_stores to NULL before the addition.
12699 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12701 PR rtl-optimization/48141
12702 * dse.c (record_store): If no positions are needed in an insn
12703 that cannot be deleted, at least unchain it from active_local_stores.
12705 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12708 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12709 (lookup_type_die_strip_naming_typedef): ... here.
12710 (get_context_die): Use it.
12711 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12712 the anonymous struct named by the naming typedef.
12714 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12717 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12718 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12720 2011-03-16 Jeff Law <law@redhat.com>
12722 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12723 check for operands of conditional. Allow type to be a pointer.
12725 2011-03-16 Richard Guenther <rguenther@suse.de>
12727 PR tree-optimization/48149
12728 * fold-const.c (fold_binary_loc): Fold
12729 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12731 2011-03-16 Richard Guenther <rguenther@suse.de>
12733 PR tree-optimization/26134
12734 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12735 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12736 (non_rewritable_mem_ref_base): Handle complex type component
12737 accesses, constrain offsets for vector and complex extracts
12740 2011-03-16 Richard Guenther <rguenther@suse.de>
12742 PR tree-optimization/48146
12743 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12744 operands avoiding the need for renaming.
12746 2011-03-16 Richard Guenther <rguenther@suse.de>
12748 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12749 constant folding. Move MEM_REF canonicalization first.
12750 Rely on fold_const_aggregate_ref for initializer folding.
12751 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12753 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12755 PR middle-end/48136
12756 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12757 arg0/arg1 or their arguments are always fold converted to matching
12760 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12763 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12766 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12767 Handle in-tree gold.
12768 (ld_vers): Extract binutils version for gold.
12769 (gcc_cv_ld_hidden): Handle gold here.
12770 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12771 * configure: Regenerate.
12772 * config.in: Regenerate.
12773 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12774 -fuse-linker-plugin otherwise.
12775 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12776 (LINK_COMMAND_SPEC): Use it.
12777 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12779 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12781 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12782 * calls.c: Remove debug.h include.
12783 (emit_call_1): Don't call virtual_call_token debug hook.
12784 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12785 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12786 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12787 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12788 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12789 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12790 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12791 dwarf2out_virtual_call): Remove.
12792 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12793 copy_call_info and virtual_call hooks.
12794 (dwarf2out_init): Don't initialize vcall_insn_table,
12795 debug_dcall_section and debug_vcall_section.
12796 (prune_unused_types): Don't mark nodes from dcall_table.
12797 (dwarf2out_finish): Don't output dcall or vcall tables.
12798 * final.c (final_scan_insn): Don't call direct_call or
12799 virtual_call debug hooks.
12800 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12801 virtual_call_token, copy_call_info and virtual_call hooks.
12802 (debug_nothing_uid): Remove prototype.
12803 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12804 copy_call_info and virtual_call hooks.
12805 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12806 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12807 * debug.c (do_nothing_debug_hooks): Likewise.
12808 (debug_nothing_uid): Remove.
12809 * doc/invoke.texi (-fenable-icf-debug): Remove.
12810 * common.opt (-fenable-icf-debug): Likewise.
12812 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12813 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12814 call's MEM. Handle functions returning aggregate through a hidden
12815 first pointer. For virtual calls add clobbered pc to call arguments
12817 * dwarf2out.c (gen_subprogram_die): Emit
12818 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12822 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12823 * rtl.h (ENTRY_VALUE_EXP): Define.
12824 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12825 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12826 * print-rtl.c (print_rtx): Likewise.
12827 * gengtype.c (adjust_field_rtx_def): Likewise.
12828 * var-tracking.c (vt_add_function_parameter): Adjust
12829 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12830 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12831 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12832 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12833 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12835 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12836 Call var_location debug hook even on CALL_INSNs.
12837 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12838 * rtl.def (ENTRY_VALUE): New.
12839 * dwarf2out.c: Include cfglayout.h.
12840 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12841 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12842 (struct call_arg_loc_node): New type.
12843 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12844 tail_call_site_count): New variables.
12845 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12846 DW_TAG_GNU_call_site_parameter.
12847 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12848 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12849 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12850 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12851 and DW_AT_GNU_all_source_call_sites.
12852 (mem_loc_descriptor): Handle ENTRY_VALUE.
12853 (add_src_coords_attributes): Don't add enything if
12854 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12855 (dwarf2out_abstract_function): Save and clear call_arg_location,
12856 call_site_count and tail_call_site_count around dwarf2out_decl call.
12857 (gen_call_site_die): New function.
12858 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12859 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12860 (dwarf2out_function_decl): Clear call_arg_locations,
12861 call_arg_loc_last, set call_site_count and tail_call_site_count
12862 to -1 and free block_map.
12863 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12864 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12865 followed by any real instructions.
12866 (dwarf2out_begin_function): Set call_site_count and
12867 tail_call_site_count to 0.
12868 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12869 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12870 attempt to force a DIE for it and worst case remove the attribute.
12871 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12872 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12874 * var-tracking.c: Include tm_p.h.
12875 (vt_stack_adjustments): For calls call note_register_arguments.
12876 (argument_reg_set): New variable.
12877 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12878 ensure the VALUE is resolved.
12879 (call_arguments): New variable.
12880 (prepare_call_arguments): New function.
12881 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12882 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12883 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12884 always use the best expression.
12885 (vt_expand_loc): Add ignore_cur_loc argument.
12886 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12887 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12888 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12889 note for all calls.
12890 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12891 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12892 argument. Don't call cselib_preserve_only_values and
12893 cselib_reset_table.
12894 (note_register_arguments): New function.
12895 (vt_initialize): Compute argument_reg_set. Call
12896 vt_add_function_parameters before processing basic blocks instead of
12897 afterwards. For calls call prepare_call_arguments before calling
12898 cselib_process_insn.
12899 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12900 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12901 (var-tracking.o): Depend on $(TM_P_H).
12902 * cfglayout.h (insn_scope): New prototype.
12903 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12904 * cfglayout.c (insn_scope): No longer static.
12905 * insn-notes.def (CALL_ARG_LOCATION): New.
12906 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12907 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12908 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12909 nothing for DECL_EXTERNAL BLOCK_VARS.
12911 2011-03-16 Alan Modra <amodra@gmail.com>
12914 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12915 create invalid offset address for vsx splat insn.
12916 * config/rs6000/predicates.md (splat_input_operand): New.
12917 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12919 2011-03-15 Xinliang David Li <davidxl@google.com>
12922 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12923 (normalize_preds): New function.
12924 (is_use_properly_guarded): Normalize def predicates.
12926 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12929 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12930 in the output template.
12932 2011-03-15 Richard Guenther <rguenther@suse.de>
12934 PR middle-end/47650
12935 * tree-pretty-print.c (dump_function_declaration): Properly
12936 dump unprototyped and varargs function types.
12938 2011-03-15 Richard Guenther <rguenther@suse.de>
12940 PR tree-optimization/13954
12941 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12944 2011-03-15 Richard Guenther <rguenther@suse.de>
12946 PR tree-optimization/48037
12947 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12948 selects into BIT_FIELD_REFs.
12949 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12952 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12954 PR tree-optimization/48129
12955 * builtins.c (fold_builtin_snprintf): Convert to type of
12956 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12957 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12959 2011-03-15 Richard Guenther <rguenther@suse.de>
12961 PR tree-optimization/41490
12962 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12963 value but with VUSE.
12964 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12966 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12967 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12968 * tree-tailcall.c (find_tail_calls): Ignore returns.
12970 2011-03-15 Richard Guenther <rguenther@suse.de>
12972 PR middle-end/48031
12973 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12974 or variable-indexed array accesses when in gimple form.
12976 2011-03-15 Richard Guenther <rguenther@suse.de>
12978 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12980 2011-03-15 Alan Modra <amodra@gmail.com>
12983 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12984 presume symbol_refs without a symbol_ref_decl are suitably
12985 aligned, nor other trees we may see here. Handle anchor symbols.
12986 (legitimate_constant_pool_address_p): Comment. Add mode param.
12987 Check cmodel=medium addresses. Adjust all calls.
12988 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12989 creating cmodel=medium optimized access to locals.
12990 * config/rs6000/constraints.md (R): Pass QImode to
12991 legitimate_constant_pool_address_p.
12992 * config/rs6000/predicates.md (input_operand): Pass mode to
12993 legitimate_constant_pool_address_p.
12994 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12997 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13000 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13001 64-bit constants being loaded into registers other than GPRs such
13002 as loading 0 into a VSX register.
13004 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13006 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13008 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13010 PR middle-end/47917
13011 * builtins.c (fold_builtin_snprintf): New function.
13012 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13013 (fold_builtin_4): Likewise.
13015 PR middle-end/38878
13016 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13017 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13018 and C - X == X also strip nops from +/-/p+ operand.
13019 When optimizing -X == C, fold C to arg0's type.
13022 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13023 emit it as add_AT_int instead of add_AT_unsigned.
13025 2011-03-14 Tom Tromey <tromey@redhat.com>
13027 * unwind-dw2.c: Include sys/sdt.h if it exists.
13028 (_Unwind_DebugHook): Use STAP_PROBE2.
13029 * config.in, configure: Rebuild.
13030 * configure.ac: Check for sys/sdt.h.
13032 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13034 * config/i386/i386.md (ROUND_FLOOR): New constant.
13035 (ROUND_CEIL): Ditto.
13036 (ROUND_TRUNC): Ditto.
13037 (ROUND_MXCSR): Ditto.
13038 (ROUND_NO_EXC): Ditto.
13039 (rint<mode>2): Use new defines instead of numerical constants.
13040 (floor<mode>2): Ditto.
13041 (ceil<mode>2): Ditto.
13042 (btrunc<mode>2): Ditto.
13043 * config/i386/i386-builtin-types.def: Define ROUND function type
13045 * config/i386/i386.c (enum ix86_builtins): Add
13046 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13047 (struct builtin_description): Add
13048 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13049 (ix86_expand_sse_round): New static function.
13050 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13052 (ix86_builtin_vectorized_function): Handle
13053 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13055 2011-03-14 Tom Tromey <tromey@redhat.com>
13057 * c-parser.c (c_parser_asm_string_literal): Clear
13058 warn_overlength_strings.
13060 2011-03-14 Tom Tromey <tromey@redhat.com>
13062 * c-parser.c (disable_extension_diagnostics): Save
13063 warn_overlength_strings.
13064 (restore_extension_diagnostics): Restore warn_overlength_strings.
13066 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13068 * BASE-VER: Change to 4.7.0.
13070 2011-03-14 Richard Guenther <rguenther@suse.de>
13072 PR middle-end/48098
13073 * tree.c (build_vector_from_val): Adjust assert to requirements
13076 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13079 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13081 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13083 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13084 terms of target_flags_explicit. Adjust copyright year.
13086 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13087 * config/rs6000/t-freebsd: New file. Add override for
13090 2011-03-13 Chris Demetriou <cgd@google.com>
13092 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13093 (-fno-diagnostics-show-option): this, to reflect current default.
13094 (-Werror=): Update text about -fno-diagnostics-show-option.
13096 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13099 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13100 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13101 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13102 mode is not V2DImode or V2DFmode.
13103 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13104 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13105 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13107 (movdi_internal64): Likewise.
13109 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13111 PR tree-optimization/47127
13112 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13114 (set_cloog_options): Same.
13115 (scop_to_clast): Same.
13116 (print_clast_stmt): Do not call cloog_state_malloc and
13118 (print_generated_program): Same.
13120 * graphite-clast-to-gimple.h (cloog_state): Declared.
13121 (scop_to_clast): Adjust declaration.
13122 * graphite.c (cloog_state): Defined here.
13123 (graphite_initialize): Call cloog_state_malloc.
13124 (graphite_finalize): Call cloog_state_free.
13126 2011-03-11 Jason Merrill <jason@redhat.com>
13128 * attribs.c (lookup_attribute_spec): Take const_tree.
13131 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13133 * config/sparc/sparc.c (sparc_option_override): Use
13134 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13136 2011-03-11 Richard Guenther <rguenther@suse.de>
13138 PR tree-optimization/48067
13139 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13140 multiplication result will be only used once on the target
13143 2011-03-11 Richard Guenther <rguenther@suse.de>
13145 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13147 2011-03-11 Richard Guenther <rguenther@suse.de>
13150 * tree.c (find_decls_types_r): Do not walk types only reachable
13151 from IDENTIFIER_NODEs.
13153 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13155 PR middle-end/48044
13156 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13157 all vnode->force_output nodes as needed.
13159 2011-03-11 Jason Merrill <jason@redhat.com>
13162 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13163 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13165 2011-03-11 Martin Jambor <mjambor@suse.cz>
13167 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13170 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13172 PR tree-optimization/48063
13173 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13174 inline functions called once if !tree_can_inline_p (node->callers).
13176 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13178 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13180 * config/score/score3.c: Delete.
13181 * config/score/score3.h: Delete.
13182 * config/score/mul-div.S: Delete.
13183 * config/score/sfp-machine.h: Add new file.
13184 * config/score/constraints.md: Add new file.
13185 * config/score/t-score-softfp: Add new file.
13186 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13187 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13188 (score7_extra_constraint): Delete.
13189 (score7_option_override): Remove unused code.
13190 * config/score/score.c: Remove score3 and score5 define and code.
13191 * config/score/score.h: Remove score3 and score5 define and code.
13192 * config/score/score.md: Remove score3 template and unusual insn.
13193 * config/score/score.opt: Remove score3 and score5 options.
13195 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13197 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13198 when _HPUX_SOURCE is defined.
13199 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13201 2011-03-10 Jason Merrill <jason@redhat.com>
13204 * stor-layout.c (layout_type): Don't set structural equality
13205 on arrays of incomplete type.
13206 * tree.c (type_hash_eq): Handle comparing them properly.
13208 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13211 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13212 result mode matches original rtl mode.
13214 2011-03-10 Nick Clifton <nickc@redhat.com>
13216 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13217 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13219 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13221 PR rtl-optimization/47866
13222 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13223 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13224 if target wasn't scalar.
13225 * function.c (assign_stack_temp_for_type): Assert that neither
13226 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13227 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13229 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13231 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13233 * config/s390/s390-protos.h (s390_label_align): New prototype.
13234 * config/s390/s390.c (s390_label_align): New function.
13235 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13237 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13240 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13241 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13242 (output_vec_const_move): Ditto.
13244 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13246 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13247 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13248 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13249 Change 'rclass' argument and result type to reg_class_t.
13250 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13252 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13254 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13255 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13256 (TARGET_MEMORY_MOVE_COST): Define.
13257 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13259 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13262 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13265 PR tree-optimization/48022
13266 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13269 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13272 * var-tracking.c (find_use_val): Return NULL for
13273 cui->sets && cui->store_p BLKmode MEMs.
13275 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13277 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13279 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13280 xstormy16_print_operand_address): Remove.
13281 * config/stormy16/stormy16.c (xstormy16_print_operand,
13282 xstormy16_print_operand_address): Make static.
13283 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13285 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13288 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13289 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13292 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13295 * cfgloopmanip.c (fix_bb_placements): Return immediately
13296 if FROM is BASE_LOOP's header.
13298 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13300 * gimplify.c (gimplify_function_tree): Fix building calls
13301 to __builtin_return_address.
13303 2011-03-07 Alan Modra <amodra@gmail.com>
13305 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13306 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13307 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13308 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13310 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13311 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13312 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13313 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13314 * config/rs6000/rs6000.c
13315 (rs6000_elf_end_indicate_exec_stack): Rename to..
13316 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13317 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13318 (rs6000_file_start): ..here.
13319 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13320 file scope variables.
13321 (call_ABI_of_interest): New function.
13322 (init_cumulative_args): Set above vars when function return value
13323 is a float, vector, or small struct.
13324 (rs6000_function_arg_advance_1): Likewise for function args.
13325 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13326 references float args.
13328 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13330 * doc/cfg.texi: Remove "See" before @ref.
13331 * doc/invoke.texi: Likewise.
13333 2011-03-05 Jason Merrill <jason@redhat.com>
13335 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13337 2011-03-05 Anthony Green <green@moxielogic.com>
13339 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13341 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13343 PR rtl-optimization/47899
13344 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13345 to flow_loop_nested_p when moving the loop upward.
13347 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13350 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13352 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13354 PR tree-optimization/47967
13355 * ipa-cp.c (build_const_val): Return NULL instead of creating
13356 VIEW_CONVERT_EXPR for mismatching sizes.
13357 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13358 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13359 give up on versioning.
13361 2011-03-05 Alan Modra <amodra@gmail.com>
13364 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13365 full cmodel medium/large lo_sum + high addresses.
13367 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13369 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13370 pool references in UNSPEC_LTREL_OFFSET.
13372 2011-03-04 Jan Hubicka <jh@suse.cz>
13375 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13376 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13377 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13379 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13380 cgraph_add_thunk): Add node pointers.
13381 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13382 associated to right node.
13383 (input_node): Update use of cgraph_same_body_alias
13384 and cgraph_add_thunk.
13386 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13388 * config/i386/i386.opt (mprefer-avx128): New flag.
13389 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13390 modes when the flag -mprefer-avx128 is on.
13392 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13394 * dwarf2out.c (compare_loc_operands): Fix address handling.
13396 2011-03-04 Alan Modra <amodra@gmail.com>
13398 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13400 2011-03-04 Richard Guenther <rguenther@suse.de>
13402 PR middle-end/47968
13403 * expmed.c (extract_bit_field_1): Prefer vector modes that
13404 vec_extract patterns can handle.
13406 2011-03-04 Richard Guenther <rguenther@suse.de>
13408 PR middle-end/47975
13409 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13411 2011-03-04 Richard Henderson <rth@redhat.com>
13413 * explow.c (emit_stack_save): Remove 'after' parameter.
13414 (emit_stack_restore): Likewise.
13415 * expr.h: Update to match.
13416 * builtins.c, calls.c, stmt.c: Likewise.
13417 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13418 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13419 * function.c (expand_function_end): Insert the emit_stack_save
13420 sequence before parm_birth_insn instead of after.
13422 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13424 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13425 (ssse3_pmaddubsw128): Ditto.
13426 (ssse3_pmaddubsw): Ditto.
13428 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13430 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13432 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13435 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13436 on TYPE_SIZE_UNIT if it is a DECL.
13439 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13440 first operand is not is_gimple_mem_ref_addr, try to fold it.
13441 If the operand still isn't is_gimple_mem_ref_addr, clear
13444 2011-03-03 Richard Guenther <rguenther@suse.de>
13446 PR middle-end/47283
13447 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13449 (refs_may_alias_p_1): For release branches return true if
13450 we are confused by our input.
13452 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13454 * config/s390/s390.c (s390_function_value): Rename to ...
13455 (s390_function_and_libcall_value): ... this.
13456 (s390_function_value): New function.
13457 (s390_libcall_value): New function.
13458 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13459 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13460 target macro definitions.
13461 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13463 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13465 * config/i386/freebsd64.h (CC1_SPEC): Define.
13466 * config/i386/linux64.h (CC1_SPEC): Define.
13467 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13469 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13471 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13473 * config/stormy16/stormy16.c: Include reload.h.
13474 (xstormy16_memory_move_cost): New function.
13475 (TARGET_MEMORY_MOVE_COST): Define.
13477 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13479 PR rtl-optimization/47925
13480 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13481 with side effects. Remove the more-specific check for volatile asms.
13483 2011-03-02 Alan Modra <amodra@gmail.com>
13486 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13487 toc relative addresses for valid offsets.
13489 2011-03-01 Richard Guenther <rguenther@suse.de>
13491 PR tree-optimization/47890
13492 * tree-vect-loop.c (get_initial_def_for_induction): Set
13493 related stmt properly.
13495 2011-03-01 Richard Guenther <rguenther@suse.de>
13498 * lto-streamer.c (lto_record_common_node): Also register
13499 the canonical type.
13501 2011-03-01 Richard Guenther <rguenther@suse.de>
13504 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13505 Do not stream DECL_ABSTRACT_ORIGIN.
13506 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13507 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13508 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13509 Do not stream DECL_ABSTRACT_ORIGIN.
13510 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13511 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13513 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13515 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13516 FUNCTION_VALUE_REGNO_P): Remove.
13517 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13518 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13519 Add 'outgoing' argument.
13520 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13522 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13523 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13525 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13528 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13529 (lookup_filename): Likewise.
13530 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13532 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13533 Jakub Jelinek <jakub@redhat.com>
13535 PR middle-end/47893
13536 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13537 (assign_stack_local_1): Change last argument type to int.
13538 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13539 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13540 don't record padding space into frame_space_list nor use those areas.
13541 (assign_stack_local): Adjust caller.
13542 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13543 of assign_stack_local, pass 0 as last argument.
13544 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13547 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13550 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13551 Use target address_mode and pointer_mode hooks instead of hardcoded
13552 Pmode and ptr_mode. Handle some simple cases of extending if
13553 POINTERS_EXTEND_UNSIGNED < 0.
13554 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13555 Call convert_debug_memory_address.
13556 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13557 convert_debug_memory_address.
13559 PR middle-end/46790
13560 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13561 * configure: Regenerated.
13562 * config.in: Regenerated.
13563 * varasm.c (default_function_section): Return NULL
13564 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13566 2011-02-28 Martin Jambor <mjambor@suse.cz>
13568 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13569 the description to match the printed values.
13571 2011-02-28 Richard Guenther <rguenther@suse.de>
13573 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13574 of the copied scope tree.
13576 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13578 * doc/extend.texi (Function Attributes): Avoid deeply (and
13579 wrongly) nested tables.
13581 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13583 PR middle-end/47903
13584 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13585 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13586 r isn't op0 nor op1.
13588 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13590 * config/avr/avr.md: Remove magic comment for emacs.
13592 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13595 * config/avr/avr.c (avr_option_override): Use error on bad options.
13596 (avr_help): New function.
13597 (TARGET_HELP): Define.
13599 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13602 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13603 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13605 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13607 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13608 (ARM Options): Ditto.
13609 (i386 and x86-64 Options): Ditto.
13610 (RX Options): Ditto.
13611 (SPARC Options): Ditto.
13613 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13615 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13616 FreeBSD 6 and later. Generally use cpu generic.
13618 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13620 * doc/cpp.texi: Update copyright years.
13622 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13625 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13627 2011-02-25 Jon Beniston <jon@beniston.com>
13630 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13631 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13632 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13633 (lm32_block_move_inline): Add type cast to remove warning.
13634 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13635 (gen_int_relational): Move declarations to start of function.
13637 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13639 PR tree-optimization/45470
13640 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13641 can throw internally only.
13642 * tree-vect-stmts.c (vectorizable_call): Likewise.
13644 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13646 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13647 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13648 * config/stormy16/stormy16-protos.h
13649 (xstormy16_preferred_reload_class): Remove.
13650 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13651 static. Change 'rclass' argument and return type to reg_class_t.
13652 (TARGET_PREFERRED_RELOAD_CLASS,
13653 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13655 2011-02-24 Richard Guenther <rguenther@suse.de>
13657 * lto-streamer-in.c (input_bb): Do not find referenced vars
13658 in debug statements.
13660 2011-02-23 Jason Merrill <jason@redhat.com>
13662 * common.opt (fabi-version): Document v5 and v6.
13664 2011-02-23 Richard Guenther <rguenther@suse.de>
13666 PR tree-optimization/47849
13667 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13669 2011-02-23 Jie Zhang <jie@codesourcery.com>
13671 * opts-common.c (decode_cmdline_option): Print empty string
13672 argument as "" in decoded->orig_option_with_args_text.
13673 * gcc.c (execute): Print empty string argument as ""
13674 in the verbose output.
13675 (do_spec_1): Keep empty string argument.
13677 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13679 * config.gcc: Declare score-* and crx-* obsolete.
13681 2011-02-23 Jie Zhang <jie@codesourcery.com>
13683 PR rtl-optimization/47763
13684 * web.c (web_main): Ignore naked clobber when replacing register.
13686 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13688 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13691 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13694 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13696 2011-02-22 Mike Stump <mikestump@comcast.net>
13698 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13700 * configure: Regenerate.
13702 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13704 PR rtl-optimization/46002
13705 * ira-color.c (update_copy_costs): Change class intersection
13706 test to reg_class_contents[] test of 'hard_regno'.
13708 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13710 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13711 than Driver option.
13712 * config/hpux11.opt (mt): Likewise.
13713 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13714 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13715 * config/vax/elf.opt (mno-asm-pic): Likewise.
13716 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13718 2011-02-21 Mike Stump <mikestump@comcast.net>
13721 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13722 tree so we can get save the type.
13723 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13724 for CFString instead of trying to use past the end of the builtins.
13725 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13726 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13727 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13728 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13729 Rename to darwin_builtin_cfstring.
13730 (darwin_init_cfstring_builtins): Return the built type.
13732 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13735 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13736 (_mm256_insert_epi64): Use _mm_insert_epi64.
13738 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13740 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13741 * config/stormy16/stormy16-protos.h
13742 (xstormy16_mode_dependent_address_p): Remove.
13743 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13744 Make static. Change return type to bool. Change argument type to
13745 const_rtx. Remove dead code.
13746 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13748 2011-02-21 Richard Guenther <rguenther@suse.de>
13751 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13752 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13753 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13755 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13756 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13758 2011-02-20 Richard Guenther <rguenther@suse.de>
13761 * tree.c (free_lang_data_in_decl): Clean builtins from
13762 the TU decl BLOCK_VARS.
13764 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13768 * haifa-sched.c (fix_tick_ready): Skip tick computation
13771 2011-02-19 Richard Guenther <rguenther@suse.de>
13774 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13775 Remove lazy BLOCK_VARS streaming.
13776 (lto_input_ts_block_tree_pointers): Likewise.
13777 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13779 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13781 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13783 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13785 * config/i386/biarch32.h, config/i386/mach.h,
13786 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13788 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13791 * config/i386/i386.md (peephole2 for shift and plus): Use
13792 operands[1] original mode in the first insn.
13794 2011-02-18 Mike Stump <mikestump@comcast.net>
13796 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13798 2011-02-18 Jan Hubicka <jh@suse.cz>
13800 PR middle-end/47788
13801 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13802 to zero when the function is not inlinable at all.
13804 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13806 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13807 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13808 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13809 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13810 * config/pa/t-pa64: Likewise.
13811 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13813 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13816 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13818 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13821 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13823 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13825 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13826 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13827 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13828 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13829 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13830 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13831 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13832 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13833 m32r_legitimate_address_p): New functions.
13834 * config/m32r/constraints.md (constraint "S"): Don't use
13835 STORE_PREINC_PREDEC_P.
13836 (constraint "U"): Don't use LOAD_POSTINC_P.
13838 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13840 PR rtl-optimization/46178
13841 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13842 compute ira_hard_regno_cover_class[].
13844 2011-02-18 Richard Guenther <rguenther@suse.de>
13847 * lto-streamer.h (lto_global_var_decls): Declare.
13848 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13849 statics for global var processing.
13851 2011-02-18 Richard Guenther <rguenther@suse.de>
13853 PR tree-optimization/47737
13854 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13855 edge dominance check.
13857 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13860 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13861 avoid invalid rtx sharing.
13863 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13865 * doc/cpp.texi (Obsolete Features): Add background on the
13866 origin of assertions.
13868 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13870 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13872 * config/darwin.c (output_objc_section_asm_op): Added support for
13874 (is_objc_metadata): New.
13875 (darwin_objc2_section): New.
13876 (darwin_objc1_section): New.
13877 (machopic_select_section): Added support for ABI v1 and v2.
13878 (darwin_emit_objc_zeroed): New.
13879 (darwin_output_aligned_bss): Detect objc metadata and treat it
13881 (darwin_asm_output_aligned_decl_common): Same.
13882 (darwin_asm_output_aligned_decl_local): Same.
13883 * config/darwin-sections.def: Updated for ABI v1 and v2.
13884 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13885 compiling Objective-C code for the NeXT runtime, default to using
13886 ABI version 0 for 32-bit, and version 2 for 64-bit.
13888 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13890 * common.opt (optimize_fast): New Variable.
13891 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13892 instead of local variable ofast.
13894 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13896 * doc/invoke.texi (fobjc-abi-version): Documented.
13897 (fobjc-nilcheck): Documented.
13898 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13901 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13904 * common.opt (export-dynamic): New Driver option.
13905 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13907 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13909 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13911 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13912 Jan Hubicka <jh@suse.cz>
13916 * cfgexpand.c (account_used_vars_for_block): Remove.
13917 (estimated_stack_frame_size): Use referenced vars.
13918 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13919 that were referenced in the original function. Test src_fn
13920 rather than cfun. Drop redundant get_var_ann.
13921 (setup_one_parameter): Drop redundant get_var_ann.
13922 (declare_return_variable): Likewise.
13923 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13924 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13925 * ipa-inline.c (compute_inline_parameters): Do not compute
13926 disregard_inline_limits here.
13927 (compute_inlinable_for_current, pass_inlinable): New.
13928 (pass_inline_parameters): Require PROP_referenced_vars.
13929 * cgraphunit.c (cgraph_process_new_functions): Don't run
13930 compute_inline_parameters explicitly unless function is in SSA form.
13931 (cgraph_analyze_function): Set .disregard_inline_limits.
13932 * tree-sra.c (convert_callers): Compute inliner parameters
13933 only for functions already in SSA form.
13935 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13937 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13938 -mlittle-endian-data.
13940 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13942 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13943 -mno-fpu, not -fpu and -no-fpu.
13944 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13945 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13947 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13950 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13951 input reload with PLUS RTX.
13953 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13955 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13956 of InverseVar(MDMX).
13958 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13960 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13963 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13965 * config/mn10300/mn10300.opt (mno-crt0): New.
13967 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13969 * config/m68k/uclinux.opt (static-libc): New Driver option.
13971 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13973 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13975 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13977 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13978 %{muser-extend-enabled}.
13980 2011-02-16 Richard Guenther <rguenther@suse.de>
13982 PR tree-optimization/47738
13983 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13984 the TODO from tree_predictive_commoning.
13986 2011-02-15 Jeff Law <law@redhat.com>
13989 2011-01-25 Jeff Law <law@redhat.com>
13991 PR rtl-optimization/37273
13992 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13993 handle them like argument loads from stack slots. Do not double
13994 count memory for memory constants and argument loads from stack slots.
13996 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13998 PR middle-end/47725
13999 * combine.c (cant_combine_insn_p): Revert the last change.
14001 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14004 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14005 mode for vector constants. Remove code that checks for TImode.
14007 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14011 * cgraph.h (compute_inline_parameters): Return void.
14012 * ipa-inline.c (compute_inline_parameters): Adjust.
14014 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14018 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14020 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14021 * ipa-inline.c (compute_inline_parameters): Adjust.
14023 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14027 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14028 Adjust all users. Pass FN to...
14029 * tree-flow-inline.h (first_referenced_var): ... this. Add
14031 * ipa-struct-reorg.c: Adjust.
14032 * tree-dfa.c: Adjust.
14033 * tree-into-ssa.c: Adjust.
14034 * tree-sra.c: Adjust.
14035 * tree-ssa-alias.c: Adjust.
14036 * tree-ssa-live.c: Adjust.
14037 * tree-ssa.c: Adjust.
14038 * tree-ssanames.c: Adjust.
14039 * tree-tailcall.c: Adjust.
14041 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14045 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14046 Adjust all callers.
14047 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14048 * tree-flow-inline.h: Adjust.
14049 * gimple-pretty-print.c: Adjust.
14050 * tree-into-ssa.c: Adjust.
14051 * tree-ssa.c: Adjust.
14052 * cfgexpand.c: Adjust.
14054 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14056 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14057 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14058 (EXTRA_CONSTRAINT): Delete.
14059 * config/iq2000/constraints.md: New file.
14060 * config/iq2000/iq2000.md: Include it.
14061 (define_insn ""): Delete.
14062 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14063 unsupported constraint letters from patterns.
14064 (call_value, call_value_internal1): Likewise.
14065 (call_value_multiple_internal1): Likewise.
14067 2011-02-15 Nick Clifton <nickc@redhat.com>
14069 * config/mn10300/mn10300.c: Include tm-constrs.h.
14070 (struct liw_data): New data structure describing an LIW candidate
14072 (extract_bundle): Use struct liw_data. Allow small integer
14073 operands for some instructions.
14074 (check_liw_constraints): Use struct liw_data. Remove swapped
14075 parameter. Add comments describing the checks. Fix bug when
14076 assigning the source of liw1 to the source of liw2.
14077 (liw_candidate): Delete. Code moved into extract_bundle.
14078 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14080 * config/mn10300/predicates.md (liw_operand): New predicate.
14081 Allows registers and small integer constants.
14082 * config/mn10300/constraints.md (O): New constraint. Accetps
14083 integers in the range -8 to +7 inclusive.
14084 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14085 for moving a small integer into a register. Give this alternative
14087 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14088 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14089 using the J,K,L and M constraints,
14090 (liw): Remove SI mode on second operands to allow for HI and QI
14092 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14095 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14097 PR middle-end/47725
14098 * combine.c (cant_combine_insn_p): Check zero/sign extended
14101 2011-02-15 Richard Guenther <rguenther@suse.de>
14103 PR tree-optimization/47743
14104 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14105 for a non-type-compatible VN lookup bail out.
14107 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14109 * config/fr30/constraints.md: New file.
14110 * config/fr30/fr30.md: Include it.
14111 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14112 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14113 (EXTRA_CONSTRAINT): Delete.
14115 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14117 * config/frv/constraints.md: New file.
14118 * config/frv/predicates.md: Include it.
14119 * config/frv/frv.c (reg_class_from_letter): Delete.
14120 (frv_option_override): Don't initialize it.
14121 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14122 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14123 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14124 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14125 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14126 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14127 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14128 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14129 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14130 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14131 (REG_CLASS_FROM_CONSTRAINT): Delete.
14133 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14135 PR middle-end/47581
14136 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14137 if frame size is 0 in a leaf function.
14139 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14142 * config/alpha/host-osf.c: New file.
14143 * config/alpha/x-osf: New file.
14144 * config.host (alpha*-dec-osf*): Use it.
14146 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14148 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14149 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14150 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14151 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14153 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14155 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14157 * config/stormy16/constraints.md: New file.
14158 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14159 Use satisfies_constraint_Q and satisfies_constraint_R.
14160 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14162 (xstormy16_legitiamte_address_p): Declare.
14163 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14164 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14165 (EXTRA_CONSTRAINT): Delete.
14166 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14168 (xstormy16_extra_constraint_p): Delete.
14170 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14172 PR tree-optimization/46494
14173 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14174 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14175 (pass_rtl_loop_done): Add TODO_verify_flow.
14176 * fwprop.c (pass_rtl_fwprop): Likewise.
14177 * modulo-sched.c (pass_sms): Likewise.
14178 * tree-ssa-dom.c (pass_dominator): Likewise.
14179 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14180 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14181 (pass_tree_loop_done): Likewise.
14182 * tree-ssa-pre.c (execute_pre): Likewise.
14183 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14184 * tree-ssa-sink.c (pass_sink_code): Likewise.
14185 * tree-vrp.c (pass_vrp): Likewise.
14187 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14189 * config/v850/constraints.md: New file.
14190 * config/v850/v850.md: Include it.
14191 * config/v850/predicates.md (reg_or_0_operand): Use
14192 satisfies_constraint_G.
14193 (special_symbolref_operand): Use satisfies_constraint_K.
14194 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14195 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14196 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14197 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14198 (EXTRA_CONSTRAINT): Delete.
14199 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14200 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14201 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14203 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14206 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14209 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14211 * config/mcore/constraints.md: New file.
14212 * config/mcore/mcore.md: Include it.
14213 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14214 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14215 (REG_CLASS_FROM_LETTER): Delete.
14216 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14217 insn_const_int_ok_for_constraint.
14218 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14219 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14220 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14221 (EXTRA_CONSTRAINT): Delete.
14223 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14226 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14227 (IS_SIGHANDLER): Define.
14228 (sparc64_is_sighandler): New function, split off from
14229 sparc64_fallback_frame_state.
14230 (sparc_is_sighandler): New function, split off from
14231 sparc_fallback_frame_state.
14232 (sparc64_fallback_frame_state): Merge with ...
14233 (sparc_fallback_frame_state): ... this into ...
14234 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14235 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14236 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14237 stack instead of hardcoded offsets.
14239 2011-02-14 Andriy Gapon <avg@freebsd.org>
14242 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14244 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14246 * configure: Regenerate.
14248 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14251 * gcc.c (asm_options): Correct spec matching --target-help.
14253 2011-02-12 Martin Jambor <mjambor@suse.cz>
14255 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14256 to gimple call error.
14258 2011-02-12 Mike Stump <mikestump@comcast.net>
14260 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14261 comments in backslash regions.
14263 2011-02-12 Mike Stump <mikestump@comcast.net>
14264 Jakub Jelinek <jakub@redhat.com>
14265 Iain Sandoe <iains@gcc.gnu.org>
14268 * dwarf2out.c (output_cfa_loc): When required, apply the
14269 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14270 (output_loc_sequence): Likewise.
14271 (output_loc_operands_raw): Likewise.
14272 (output_loc_sequence_raw): Likewise.
14273 (output_cfa_loc): Likewise.
14274 (output_loc_list): Suppress register number adjustment when
14275 calling output_loc_sequence()
14276 (output_die): Likewise.
14278 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14280 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14282 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14283 xtensa_memory_move_cost): New functions.
14284 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14286 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14289 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14290 in the current directory.
14291 * configure: Rebuilt.
14293 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14295 * config/darwin.c (darwin_override_options): Add a hunk missed
14296 from the commit of r168571. Trim comment line lengths and
14297 correct indents of the preceding block.
14299 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14301 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14304 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14306 * common.opt (nostartfiles): New Driver option.
14308 2011-02-11 Xinliang David Li <davidxl@google.com>
14310 PR tree-optimization/47707
14311 * tree-chrec.c (convert_affine_scev): Keep type precision.
14313 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14315 PR tree-optimization/47420
14316 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14318 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14320 PR rtl-optimization/47614
14321 * rtl.h (check_for_inc_dec): Declare.
14322 * dse.c (check_for_inc_dec): Externalize...
14323 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14324 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14326 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14329 * gcc.c (main): Do not compile inputs if there were errors in
14331 * opts-common.c (read_cmdline_option): Check for wrong language
14332 after other error checks.
14334 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14336 * cgraph.c: Fix comment typos.
14337 * cgraph.h: Likewise.
14338 * cgraphunit.c: Likewise.
14339 * ipa-cp.c: Likewise.
14340 * ipa-inline.c: Likewise.
14341 * ipa-prop.c: Likewise.
14342 * ipa-pure-const.c: Likewise.
14343 * ipa-ref.c: Likewise.
14344 * ipa-reference.c: Likewise.
14346 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14349 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14351 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14354 * doc/sourcebuild.texi (Require Support): Document
14355 dg-require-ascii-locale.
14357 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14359 * doc/lto.texi (Write summary): Fix missing parentheses.
14361 2011-02-10 DJ Delorie <dj@redhat.com>
14363 * config/m32c/m32c.c (m32c_option_override): Disable
14364 -fcombine-stack-adjustments until flag value tracking and compare
14365 optimization can be rewritten.
14367 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14369 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14371 (PROCESSOR_DEFAULT64): Likewise.
14373 2011-02-10 Richard Henderson <rth@redhat.com>
14375 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14376 change from 2011-02-03.
14377 * config/rx/rx.c (flags_from_code): Likewise.
14378 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14379 is valid, n/pz otherwise.
14380 (rx_select_cc_mode): Return CCmode if Y is not zero.
14382 2011-02-10 Richard Guenther <rguenther@suse.de>
14384 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14386 2011-02-10 Richard Guenther <rguenther@suse.de>
14388 PR tree-optimization/47677
14389 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14391 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14394 * combine.c (make_compound_operation): Only change shifts into
14395 multiplication for SCALAR_INT_MODE_P.
14397 2011-02-10 Jie Zhang <jie@codesourcery.com>
14401 2011-02-05 Jie Zhang <jie@codesourcery.com>
14403 * web.c (entry_register): Don't clobber the number of the
14404 first uninitialized reference in used[].
14406 2011-02-09 Richard Guenther <rguenther@suse.de>
14408 PR tree-optimization/47664
14409 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14412 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14416 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14418 (PROCESSOR_DEFAULT64): Same.
14419 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14421 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14423 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14425 2011-02-09 Martin Jambor <mjambor@suse.cz>
14427 PR middle-end/45505
14428 * tree-sra.c (struct access): New flags grp_scalar_read and
14429 grp_scalar_write. Changed description of assignment read and write
14431 (dump_access): Dump new flags, reorder all of them.
14432 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14433 to detect multiple scalar reads.
14434 (analyze_access_subtree): Use the new scalar read write flags instead
14435 of the old flags. Adjusted comments.
14437 2011-02-08 DJ Delorie <dj@redhat.com>
14440 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14443 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14445 * config/m68k/uclinux.opt: New.
14446 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14448 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14450 * config/cris/elf.opt (sim): New Driver option.
14452 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14454 * config/xtensa/elf.opt: New.
14455 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14457 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14459 * config/vax/elf.opt: New.
14460 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14462 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14464 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14466 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14468 * config/gnu-user.opt: New.
14469 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14470 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14471 *-*-uclinux*): Use gnu-user.opt.
14473 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14475 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14476 * config/i386/gnu.h (CPP_SPEC): Likewise.
14478 2011-02-08 Ian Lance Taylor <iant@google.com>
14480 * common.opt (fcx-limited-range): Add SetByCombined flag.
14481 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14482 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14483 (fassociative-math, freciprocal-math): Likewise.
14484 (funsafe-math-optimizations): Likewise.
14485 * opth-gen.awk: Handle SetByCombined.
14486 * optc-gen.awk: Likewise.
14487 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14488 (set_unsafe_math_optimizations_flags): Likewise.
14489 * doc/options.texi (Option properties): Document SetByCombined.
14491 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14493 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14494 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14495 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14496 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14497 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14499 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14501 PR tree-optimization/46834
14502 PR tree-optimization/46994
14503 PR tree-optimization/46995
14504 * graphite-sese-to-poly.c (used_outside_reduction): New.
14505 (detect_commutative_reduction): Call used_outside_reduction.
14506 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14507 translate_scalar_reduction_to_array only when at least one
14508 loop-phi/close-phi tuple has been detected.
14510 2011-02-08 Richard Guenther <rguenther@suse.de>
14512 PR middle-end/47639
14513 * tree-vect-generic.c (expand_vector_operations_1): Update
14515 (expand_vector_operations): ... not here. Cleanup EH info
14516 and the CFG if required.
14518 2011-02-08 Richard Guenther <rguenther@suse.de>
14520 PR tree-optimization/47641
14521 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14522 require type compatibility.
14524 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14526 * gimple-low.c (lower_function_body): Don't remove the location of
14527 the return statement here.
14528 (lower_gimple_return): Do it here instead but only if the return
14529 statement is actually used twice.
14531 2011-02-08 Richard Guenther <rguenther@suse.de>
14533 PR tree-optimization/47632
14534 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14535 unused up_to_stmt parameter, return whether cfg-cleanup is
14536 necessary, remove EH info properly.
14537 (forward_propagate_into_gimple_cond): Adjust caller.
14538 (forward_propagate_into_cond): Likewise.
14539 (forward_propagate_comparison): Likewise.
14540 (tree_ssa_forward_propagate_single_use_vars): Make
14541 forward_propagate_comparison case similar to the two others.
14543 2011-02-08 Nick Clifton <nickc@redhat.com>
14545 * config/mn10300/mn10300.opt (mliw): New command line option.
14546 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14547 (liw_bundling): New automaton.
14548 (liw): New attribute.
14549 (liw_op): New attribute.
14550 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14551 (movsi_internal): Add LIW attributes.
14552 (andsi3): Likewise.
14553 (iorsi3): Likewise.
14554 (xorsi3): Likewise.
14555 (addsi3): Separate register and immediate alternatives.
14556 Add LIW attributes.
14557 (subsi3): Likewise.
14559 (aslsi3): Likewise.
14560 (lshrsi3): Likewise.
14561 (ashrsi3): Likewise.
14562 (liw): New pattern.
14563 * config/mn10300/mn10300.c (liw_op_names): New
14564 (mn10300_print_operand): Handle 'W' operand descriptor.
14565 (extract_bundle): New function.
14566 (check_liw_constraints): New function.
14567 (liw_candidate): New function.
14568 (mn10300_bundle_liw): New function.
14569 (mn10300_reorg): New function.
14570 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14571 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14572 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14573 __LIW__ or __NO_LIW__.
14574 * doc/invoke.texi: Describe the -mliw command line option.
14576 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14578 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14579 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14580 pthread_mutex_unlock): Remove.
14581 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14582 * config/pa/t-pa64: Likewise.
14583 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14584 shared libc if not linking against libpthread.
14585 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14587 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14590 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14591 on 10.6 and later to ensure that we always use the unwinder from
14592 the system. Only add -no_compact_unwind when tarteting darwin
14595 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14598 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14599 (vec_interleave_lowv2sf): Ditto.
14600 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14601 (vec_extract_oddv2sf): Ditto.
14603 2011-02-07 Mike Stump <mikestump@comcast.net>
14606 Add __ieee_divdc3 entry point.
14607 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14609 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14610 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14611 * config/darwin.c (darwin_rename_builtins): Add.
14612 * config/darwin-protos.h (darwin_rename_builtins): Add.
14614 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14617 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14620 2011-02-07 Mike Stump <mikestump@comcast.net>
14622 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14624 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14627 * config/avr/libgcc.S (exit): Move .endfunc
14629 2011-02-07 Richard Guenther <rguenther@suse.de>
14631 PR tree-optimization/47615
14632 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14633 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14634 (run_scc_vn): Initialize it.
14635 (visit_reference_op_load): Use it.
14636 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14638 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14640 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14641 DImode trapping arithmetic libfuncs.
14643 2011-02-07 Richard Guenther <rguenther@suse.de>
14645 PR tree-optimization/47621
14646 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14648 (execute_update_addresses_taken): ... here. Make it more
14649 conservative in what we accept.
14651 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14653 * config/sparc/freebsd.h (ASM_SPEC): Define.
14654 * config/sparc/vxworks.h (ASM_SPEC): Define.
14656 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14658 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14660 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14662 * doc/invoke.texi: Remove reference to compiler internals from
14663 user documentation.
14665 * reg-notes.def: Remove REG_VALUE_PROFILE.
14666 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14668 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14670 PR middle-end/47610
14671 * varasm.c (default_section_type_flags): If decl is NULL,
14672 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14674 2011-02-05 Jie Zhang <jie@codesourcery.com>
14677 * web.c (entry_register): Don't clobber the number of the
14678 first uninitialized reference in used[].
14680 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14682 PR tree-optimization/46194
14683 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14684 (build_classic_dist_vector_1): Do not represent classic distance
14685 vectors when the access functions are variating in different loops.
14687 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14689 * config/mips/iris6.opt: New.
14690 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14692 2011-02-04 Richard Henderson <rth@redhat.com>
14693 Steve Ellcey <sje@cup.hp.com>
14696 * config/ia64/predicates.md (mux1_brcst_element): New.
14697 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14698 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14699 (ia64_unpack_sign): New.
14700 (ia64_expand_unpack): Rewrite using new routines.
14701 (ia64_expand_widen_sum): Ditto.
14702 (ia64_expand_dot_prod_v8qi): Ditto.
14703 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14704 routines, add endian check.
14705 (pmpy2_even): Rename from pmpy2_r, add endian check.
14706 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14707 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14708 (vec_widen_smult_hi_v4hi): Ditto.
14709 (vec_widen_umult_lo_v4hi): Ditto.
14710 (vec_widen_umult_hi_v4hi): Ditto.
14711 (mulv2si3): Change endian checks.
14712 (sdot_prodv4hi): Rewrite with new calls.
14713 (udot_prodv4hi): New.
14714 (vec_pack_ssat_v4hi): Add endian check.
14715 (vec_pack_usat_v4hi): Ditto.
14716 (vec_pack_ssat_v2si): Ditto.
14717 (max1_even): Rename from max1_r, add endian check.
14718 (max1_odd): Rename from max1_l, add endian check.
14719 (*mux1_rev): Format change.
14720 (*mux1_mix): Ditto.
14721 (*mux1_shuf): Ditto.
14722 (*mux1_alt): Ditto.
14723 (*mux1_brcst_v8qi): Use new predicate.
14724 (vec_extract_evenv8qi): Remove endian check.
14725 (vec_extract_oddv8qi): Ditto.
14726 (vec_interleave_lowv4hi): Format change.
14727 (vec_interleave_highv4hi): Ditto.
14728 (mix2_even): Rename from mix2_r, add endian check.
14729 (mix2_odd): Rename from mux2_l, add endian check.
14730 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14731 (vec_extract_evenodd_helper): Format change.
14732 (vec_extract_evenv4hi): Remove endian check.
14733 (vec_extract_oddv4hi): Remove endian check.
14734 (vec_interleave_lowv2si): Format change.
14735 (vec_interleave_highv2si): Format change.
14736 (vec_initv2si): Remove endian check.
14737 (vecinit_v2si): Add endian check.
14738 (reduc_splus_v2sf): Add endian check.
14739 (reduc_smax_v2sf): Ditto.
14740 (reduc_smin_v2sf): Ditto.
14741 (vec_initv2sf): Remove endian check.
14742 (fpack): Add endian check.
14743 (fswap): Add endian check.
14744 (vec_interleave_highv2sf): Add endian check.
14745 (vec_interleave_lowv2sf): Add endian check.
14746 (fmix_lr): Add endian check.
14747 (vec_setv2sf): Format change.
14748 (*vec_extractv2sf_0_be): Use shift to extract operand.
14749 (*vec_extractv2sf_1_be): New.
14750 (vec_pack_trunc_v4hi): Add endian check.
14751 (vec_pack_trunc_v2si): Format change.
14753 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14755 PR inline-asm/23200
14756 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14757 do bb, locus and block comparison and disallow loads if it is not set.
14758 (stmt_is_replaceable_p): New function.
14759 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14761 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14762 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14764 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14766 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14768 * config/rs6000/xilinx.opt: New.
14769 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14771 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14773 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14775 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14777 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14778 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14779 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14780 secondary_reload_info, xtensa_secondary_reload): Remove.
14781 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14782 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14783 (xtensa_preferred_reload_class): Make static. Change return and
14784 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14785 Use CONST_DOUBLE_P predicate.
14786 (xtensa_preferred_output_reload_class): New function.
14787 (xtensa_secondary_reload): Make static.
14789 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14791 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14792 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14793 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14795 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14797 PR middle-end/31490
14798 * output.h (SECTION_RELRO): Define.
14799 (SECTION_MACH_DEP): Adjust.
14800 (get_variable_section): New prototype.
14801 * varpool.c (varpool_finalize_named_section_flags): New function.
14802 (varpool_assemble_pending_decls): Call it.
14803 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14804 * cgraphunit.c (cgraph_output_in_order): Call
14805 varpool_finalize_named_section_flags.
14806 * varasm.c (get_section): Allow section flags conflicts between
14807 relro and read-only sections if the section hasn't been declared yet.
14808 Set SECTION_OVERRIDE after diagnosing section type conflict.
14809 (get_variable_section): No longer static.
14810 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14811 readonly sections that need relocations.
14812 (decl_readonly_section_1): New function.
14813 (decl_readonly_section): Use it.
14816 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14817 Steve Ellcey <sje@cup.hp.com>
14819 PR middle-end/31490
14820 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14821 if section attribute used.
14823 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14825 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14826 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14827 (darwin_init_sections): Remove assertion.
14829 2011-02-03 Nick Clifton <nickc@redhat.com>
14831 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14833 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14834 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14835 instead of "n" and "pz".
14836 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14839 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14842 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14843 fma, expand FMA_EXPR as fma{,f,l} call.
14846 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14847 copy them into a unsigned char variable and pass address of it to
14848 lto_output_data_stream.
14851 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14852 around backend_init_target and lang_dependent_init_target calls.
14853 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14854 (verify_cgraph_node): Don't call set_cfun here. Use
14855 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14856 Set error_found for incorrectly represented calls to thunks.
14858 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14861 PR rtl-optimization/43494
14862 * rtl.h (for_each_inc_dec_fn): New type.
14863 (for_each_inc_dec): Declare.
14864 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14865 (for_each_inc_dec_find_inc_dec): New fn.
14866 (for_each_inc_dec_find_mem): New fn.
14867 (for_each_inc_dec): New fn.
14868 * dse.c (struct insn_size): Remove.
14869 (replace_inc_dec, replace_inc_dec_mem): Remove.
14870 (emit_inc_dec_insn_before): New fn.
14871 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14872 (canon_address): Pass mem modes to cselib_lookup.
14873 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14874 (cselib_lookup_from_insn): Likewise.
14875 (cselib_subst_to_values): Likewise.
14876 * cselib.c (find_slot_memmode): New var.
14877 (cselib_find_slot): New fn. Use it instead of
14878 htab_find_slot_with_hash everywhere.
14879 (entry_and_rtx_equal_p): Use find_slot_memmode.
14880 (autoinc_split): New fn.
14881 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14882 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14883 Deal with autoinc. Special-case recursion into MEMs.
14884 (cselib_hash_rtx): Likewise.
14885 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14886 address and MEM modes.
14887 (cselib_subst_to_values): Add memmode, pass it on.
14889 (cselib_lookup): Add memmode argument, pass it on.
14890 (cselib_lookup_from_insn): Add memmode.
14891 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14892 (struct cselib_record_autoinc_data): New.
14893 (cselib_record_autoinc_cb): New fn.
14894 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14895 mode to cselib_lookup. Reset autoinced REGs here instead of...
14896 (cselib_process_insn): ... here.
14897 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14899 (add_uses): Likewise, also to cselib_subst_to_values.
14900 (add_stores): Likewise.
14901 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14902 cselib_subst_to_values.
14903 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14904 * gcse.c (do_local_cprop): Adjusted.
14905 * postreload.c (reload_cse_simplify_set): Adjusted.
14906 (reload_cse_simplify_operands): Adjusted.
14907 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14909 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14911 PR tree-optimization/45122
14912 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14913 unsafe assumptions when there's more than one loop exit.
14915 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14918 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14919 Document using vector double with the load/store builtins, and
14920 that the load/store builtins always use Altivec instructions.
14922 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14923 to use altivec memory instructions, even on VSX.
14924 (vector_altivec_store_<mode>): Ditto.
14926 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14929 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14930 V2DF, V2DI support to load/store overloaded builtins.
14932 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14933 altivec load/store builtins for V2DF/V2DI types.
14935 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14936 set avoid indexed addresses on power6 if -maltivec.
14937 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14938 vector_altivec_load/vector_altivec_store builtins.
14939 (altivec_expand_st_builtin): Ditto.
14940 (altivec_expand_builtin): Add VSX memory builtins.
14941 (rs6000_init_builtins): Add V2DI types to internal types.
14942 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14943 load/store builtins.
14944 (rs6000_address_for_altivec): Insure memory address is appropriate
14947 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14948 vec_vsx_ld and vec_vsx_st.
14949 (vsx_store_<mode>): Ditto.
14951 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14952 variables to hold long long types for VSX vector memory builtins.
14953 (RS6000_BTI_unsigned_long_long): Ditto.
14954 (long_long_integer_type_internal_node): Ditti.
14955 (long_long_unsigned_type_internal_node): Ditti.
14957 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14958 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14959 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14961 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14963 (vec_vsx_st): Ditto.
14965 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14967 * config/pa/pa-hpux10.opt: New.
14968 * config/hpux11.opt (pthread): New Driver option.
14969 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14970 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14972 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14974 * config/ia64/vms.opt: New.
14975 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14977 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14980 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14981 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14982 generator functions.
14983 (vsx_floatuns<VSi><mode>2): Ditto.
14984 (vsx_fix_trunc<mode><VSi>2): Ditto.
14985 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14987 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14989 * config/i386/djgpp.opt (posix): New Driver option.
14991 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14993 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14994 Move to the unsupported targets list.
14996 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14998 PR rtl-optimization/47525
14999 * df-scan.c: Update copyright years.
15000 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15001 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15003 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15005 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15006 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15007 (ASM_OUTPUT_ASCII): Remove.
15008 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15010 2011-02-02 Jeff Law <law@redhat.com>
15012 PR middle-end/47543
15013 * reload.c (find_reloads_address): Handle reg+d address where both
15014 components are invalid by reloading the entire address.
15016 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15017 Richard Guenther <rguenther@suse.de>
15019 PR tree-optimization/40979
15021 * passes.c (init_optimization_passes): After LIM call copy_prop
15022 and DCE to clean up.
15023 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15025 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15027 PR tree-optimization/47576
15028 PR tree-optimization/47555
15029 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15030 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15031 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15032 * tree-scalar-evolution.c (follow_ssa_edge): Use
15033 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15035 2011-02-02 Richard Guenther <rguenther@suse.de>
15037 PR tree-optimization/47566
15038 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15040 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15044 * tree-inline.c (declare_return_variable): Remove unused caller
15049 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15050 * cfgexpand.c (account_used_vars_for_block): Use them.
15051 * tree-nrv.c (tree_nrv): Likewise.
15052 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15053 (dump_scope_block): Likewise.
15054 (remove_unused_locals): Likewise.
15058 * tree-inline.c (declare_return_variable): Add result decl to
15059 local decls only once.
15060 * gimple-low.c (record_vars_into): Mark newly-created variables
15063 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15069 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15071 (no_real_insns_p, schedule_block, set_priorities): Drop special
15072 treatment of boundary debug insns.
15073 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15074 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15075 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15076 (BOUNDARY_DEBUG_INSN_P): Likewise.
15077 (SCHEDULE_DEBUG_INSN_P): Likewise.
15078 * sched-rgn.c (init_ready_list): Drop special treatment of
15079 boundary debug insns.
15080 * final.c (rest_of_clean_state): Clear notes' BB.
15082 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15084 * config/openbsd.opt (assert=): New Driver option.
15086 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15088 * config/i386/nto.opt: New.
15089 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15091 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15093 * config/i386/netware.opt: New.
15094 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15096 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15098 * config/interix.opt (posix): New Driver option.
15100 2011-02-01 DJ Delorie <dj@redhat.com>
15102 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15104 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15107 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15109 PR tree-optimization/47561
15110 * toplev.c (process_options): Print the Graphite flags. Add
15111 flag_loop_flatten to the list of options requiring Graphite.
15113 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15115 * config/i386/cygming.opt (posix): New Driver option.
15117 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15119 * config/arm/vxworks.opt: New.
15120 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15122 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15124 * config/alpha/elf.opt: New.
15125 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15126 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15128 2011-02-01 Richard Guenther <rguenther@suse.de>
15130 PR tree-optimization/47559
15131 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15132 store-motion on references that can throw.
15134 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15136 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15137 * tree-pass.h (TDF_CSELIB): New macro.
15138 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15139 cselib_lookup): Check for it rather than for TDF_DETAILS.
15141 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15144 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15145 is HOST_BIT_BUCKET.
15147 * opts.c (finish_options): Don't add x_aux_base_name if it is
15150 2011-02-01 Richard Guenther <rguenther@suse.de>
15152 PR tree-optimization/47555
15154 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15156 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15158 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15161 * config/lm32/t-lm32: Add multilib for all CPU options.
15163 2011-02-01 Richard Guenther <rguenther@suse.de>
15165 PR tree-optimization/47541
15166 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15167 sure to have a field at offset zero.
15169 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15171 * config/arc/arc.opt (EB, EL): New Driver options.
15173 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15175 * config/alpha/osf5.opt: New.
15176 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15178 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15180 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15182 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15184 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15185 -floop-interchange.
15186 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15187 is an alias of -floop-interchange and that it requires the
15188 Graphite infrastructure.
15189 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15190 flag_loop_interchange based on the value of flag_tree_loop_linear.
15192 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15193 Richard Guenther <rguenther@suse.de>
15195 PR tree-optimization/47538
15196 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15197 type instead of r1type, except for comparisons. For right
15198 shifts and comparisons punt if there are mismatches in
15199 sizetype vs. non-sizetype types.
15201 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15203 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15206 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15208 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15210 * configure: Regenerate.
15212 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15214 * configure.ac (gcc_cv_ld_static_option): Define.
15215 (gcc_cv_ld_dynamic_option): Define.
15216 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15218 (HAVE_LD_STATIC_DYNAMIC): Update message.
15219 (LD_STATIC_OPTION): Define.
15220 (LD_DYNAMIC_OPTION): Define.
15221 * configure: Regenerate.
15222 * config.in: Regenerate.
15223 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15224 HAVE_LD_STATIC_DYNAMIC]: Use them.
15226 2011-01-31 Nick Clifton <nickc@redhat.com>
15228 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15229 registers inside interrupt handlers if the handler is not a leaf
15232 2011-01-31 Nick Clifton <nickc@redhat.com>
15234 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15235 reg_renumber returning an INVALID_REGNUM.
15237 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15240 * doc/install.texi: Document host options discarded when cross
15241 configuring target libraries.
15243 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15246 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15249 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15251 (no_real_insns_p, schedule_block, set_priorities): Drop special
15252 treatment of boundary debug insns.
15253 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15254 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15255 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15256 (BOUNDARY_DEBUG_INSN_P): Likewise.
15257 (SCHEDULE_DEBUG_INSN_P): Likewise.
15258 * sched-rgn.c (init_ready_list): Drop special treatment of
15259 boundary debug insns.
15260 * final.c (rest_of_clean-state): Clear notes' BB.
15262 2011-01-31 Alan Modra <amodra@gmail.com>
15264 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15265 toc relative expressions as we do in print_operand_address.
15267 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15269 * doc/extend.texi: Follow spelling conventions.
15270 * doc/invoke.texi: Fix a typo.
15272 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15274 * config/hpux11.opt: New.
15275 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15276 ia64*-*-hpux*): Use hpux11.opt.
15278 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15280 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15283 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15285 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15288 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15290 * doc/install.texi (Binaries): Remove outdated reference for
15291 Motorola 68HC11/68HC12 downloads.
15293 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15295 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15298 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15301 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15304 2011-01-28 Ahmad Sharif <asharif@google.com>
15306 * value-prof.c (check_counter): Corrected error message.
15308 2011-01-29 Jie Zhang <jie@codesourcery.com>
15310 * config/arm/arm.c (arm_legitimize_reload_address): New.
15311 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15312 arm_legitimize_reload_address.
15313 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15315 2011-01-28 Ian Lance Taylor <iant@google.com>
15317 * godump.c (go_define): Ignore macros whose definitions include
15318 two adjacent operands.
15320 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15323 * varasm.c (force_const_mem): Store copy of x in desc->constant
15324 instead of x itself.
15325 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15326 itself into REG_EQUAL note.
15328 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15330 * config/freebsd.opt (posix, rdynamic): New Driver options.
15332 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15334 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15335 -Bstatic/-Bdynamic.
15336 * configure: Regenerate.
15338 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15340 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15341 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15343 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15345 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15346 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15347 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15348 (s390_preferred_reload_class): Make static. Change return and
15349 'rclass' argument type to reg_class_t.
15351 2011-01-27 Jan Hubicka <jh@suse.cz>
15353 PR middle-end/46949
15354 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15355 (process_function_and_variable_attributes): Check defined weakrefs.
15357 2011-01-27 Martin Jambor <mjambor@suse.cz>
15359 PR tree-optimization/47228
15360 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15361 build_ref_for_offset.
15363 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15365 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15367 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15369 PR rtl-optimization/46856
15370 * postreload.c (reload_combine_recognize_const_pattern): Do not
15371 separate cc0 setter and user on cc0 targets.
15373 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15376 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15377 passed a VOID_TYPE expression, immediately emit an error and
15378 return error_mark_node.
15380 2011-01-26 Jeff Law <law@redhat.com>
15382 PR rtl-optimization/47464
15383 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15384 rather than may_trap_p as needed.
15386 2011-01-26 DJ Delorie <dj@redhat.com>
15388 PR rtl-optimization/46878
15389 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15390 setter/user dependency as well.
15392 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15394 PR rtl-optimization/44469
15395 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15396 after removing trivially dead basic blocks.
15398 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15400 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15401 * config/frv/frv.h (LINK_SPEC): Likewise.
15402 * config/i386/netware.h (LINK_SPEC): Likewise.
15403 * config/m68k/linux.h (ASM_SPEC): Likewise.
15404 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15405 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15406 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15407 * config/sparc/linux.h (ASM_SPEC): Likewise.
15408 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15409 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15411 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15413 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15414 * config/frv/frv.h (ASM_SPEC): Likewise.
15415 * config/m68k/linux.h (ASM_SPEC): Likewise.
15416 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15417 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15418 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15419 * config/sparc/linux.h (ASM_SPEC): Likewise.
15420 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15421 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15423 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15425 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15426 * config/frv/frv.h (LINK_SPEC): Likewise.
15427 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15429 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15431 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15432 * config/frv/frv.h (ASM_SPEC): Likewise.
15433 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15434 * config/m68k/linux.h (ASM_SPEC): Likewise.
15435 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15436 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15437 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15438 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15439 * config/sparc/linux.h (ASM_SPEC): Likewise.
15440 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15441 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15442 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15444 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15447 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15449 (vec_extract_evenodd_help): Ditto.
15450 (vec_extract_evenv4hi): Ditto.
15451 (vec_extract_oddv4hi): Ditto.
15452 (vec_interleave_lowv2si): Ditto.
15453 (vec_interleave_highv2si): Ditto.
15454 (vec_extract_evenv2si): Ditto.
15455 (vec_extract_oddv2si: Ditto.
15456 (vec_pack_trunc_v2si): Ditto.
15458 2011-01-22 Jan Hubicka <jh@suse.cz>
15461 * cgraph.h (cgraph_local_info): New field can_change_signature.
15462 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15463 signature can change.
15464 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15466 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15467 (cgraph_function_versioning): We can not change signature of functions
15468 that don't allow that.
15469 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15470 (lto_input_node): Likewise.
15471 * ipa-inline.c (compute_inline_parameters): Compute
15472 local.can_change_signature.
15473 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15474 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15475 functions that can not change signature.
15476 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15477 init_cumulative_args): Do not use local calling conventions
15478 for functions that can not change signature.
15480 2011-01-22 Jan Hubicka <jh@suse.cz>
15482 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15484 2011-01-26 Richard Guenther <rguenther@suse.de>
15486 PR tree-optimization/47190
15487 * cgraphunit.c (process_common_attributes): New function.
15488 (process_function_and_variable_attributes): Use it.
15490 2011-01-26 Richard Guenther <rguenther@suse.de>
15493 * cgraphbuild.c (record_eh_tables): Record reference to personality
15496 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15499 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15500 non-debug insns from moving up.
15502 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15505 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15506 t-dlldir{,-x} fragment for build and add it to tmake_file.
15507 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15508 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15509 * config/i386/t-dlldir: New file.
15510 (SHLIB_DLLDIR): Define.
15511 * config/i386/t-dlldir-x: New file.
15512 (SHLIB_DLLDIR): Define.
15513 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15514 (SHLIB_INSTALL): Use it.
15516 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15519 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15520 lower bound of the allowed Thumb-2 coprocessor load/store
15521 index range to -256. Add explaining comment.
15523 2011-01-25 Ian Lance Taylor <iant@google.com>
15525 * godump.c (go_define): Improve lexing of macro expansion to only
15526 accept expressions which match Go spec.
15528 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15531 * tree.c (handle_dll_attribute): Handle it.
15532 * doc/extend.texi (@item dllexport): Mention it.
15533 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15535 2011-01-25 Ian Lance Taylor <iant@google.com>
15537 PR tree-optimization/26854
15538 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15539 (decl_jump_unsafe): Move higher in file, with no other change.
15540 (bind): Set has_jump_unsafe_decl if appropriate.
15541 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15542 (check_earlier_gotos): Likewise.
15543 (c_check_switch_jump_warnings): Likewise.
15545 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15547 * doc/invoke.texi (Warning Options): Add missing hyphen.
15548 (-fprofile-dir): Minor grammatical fixes.
15549 (-fbranch-probabilities): Likewise.
15551 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15555 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15557 (no_real_insns_p, schedule_block, set_priorities): Drop special
15558 treatment of boundary debug insns.
15559 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15560 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15561 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15562 (BOUNDARY_DEBUG_INSN_P): Likewise.
15563 (SCHEDULE_DEBUG_INSN_P): Likewise.
15564 * sched-rgn.c (init_ready_list): Drop special treatment of
15565 boundary debug insns.
15566 * final.c (rest_of_clean-state): Clear notes' BB.
15568 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15570 * Makefile.in (LAMBDA_H): Removed.
15571 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15572 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15573 lambda-trans.o, and tree-loop-linear.o.
15574 (lto-symtab.o): Remove dependence on LAMBDA_H.
15575 (tree-loop-linear.o): Remove rule.
15576 (lambda-mat.o): Same.
15577 (lambda-trans.o): Same.
15578 (lambda-code.o): Same.
15579 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15580 (tree-vect-slp.o): Same.
15581 * hwint.h (gcd): Moved here.
15582 (least_common_multiple): Same.
15583 * lambda-code.c: Removed.
15584 * lambda-mat.c: Removed.
15585 * lambda-trans.c: Removed.
15586 * lambda.h: Removed.
15587 * tree-loop-linear.c: Removed.
15588 * lto-symtab.c: Do not include lambda.h.
15589 * omega.c (gcd): Removed.
15590 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15591 * tree-data-ref.c (print_lambda_vector): Moved here.
15592 (lambda_vector_copy): Same.
15593 (lambda_matrix_copy): Same.
15594 (lambda_matrix_id): Same.
15595 (lambda_vector_first_nz): Same.
15596 (lambda_matrix_row_add): Same.
15597 (lambda_matrix_row_exchange): Same.
15598 (lambda_vector_mult_const): Same.
15599 (lambda_vector_negate): Same.
15600 (lambda_matrix_row_negate): Same.
15601 (lambda_vector_equal): Same.
15602 (lambda_matrix_right_hermite): Same.
15603 * tree-data-ref.h: Do not include lambda.h.
15604 (lambda_vector): Moved here.
15605 (lambda_matrix): Same.
15606 (dependence_level): Same.
15607 (lambda_transform_legal_p): Removed declaration.
15608 (lambda_collect_parameters): Same.
15609 (lambda_compute_access_matrices): Same.
15610 (lambda_vector_gcd): Same.
15611 (lambda_vector_new): Same.
15612 (lambda_vector_clear): Same.
15613 (lambda_vector_lexico_pos): Same.
15614 (lambda_vector_zerop): Same.
15615 (lambda_matrix_new): Same.
15616 * tree-flow.h (least_common_multiple): Removed declaration.
15617 * tree-parloops.c (lambda_trans_matrix): Moved here.
15618 (LTM_MATRIX): Same.
15619 (LTM_ROWSIZE): Same.
15620 (LTM_COLSIZE): Same.
15621 (LTM_DENOMINATOR): Same.
15622 (lambda_trans_matrix_new): Same.
15623 (lambda_matrix_vector_mult): Same.
15624 (lambda_transform_legal_p): Same.
15625 * tree-pass.h (pass_linear_transform): Removed declaration.
15626 * tree-ssa-loop.c (tree_linear_transform): Removed.
15627 (gate_tree_linear_transform): Removed.
15628 (pass_linear_transform): Removed.
15629 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15630 flag_loop_interchange.
15632 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15634 PR tree-optimization/47265
15635 PR tree-optimization/47443
15636 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15637 if name still has some uses.
15639 2011-01-25 Martin Jambor <mjambor@suse.cz>
15641 PR tree-optimization/47382
15642 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15643 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15645 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15647 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15648 sjlj_except_unwind_info.
15650 2011-01-25 Richard Guenther <rguenther@suse.de>
15652 PR tree-optimization/47426
15653 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15654 visible functions results escape.
15656 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15659 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15660 (arm_get_frame_offsets): Use it.
15662 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15663 Jakub Jelinek <jakub@redhat.com>
15665 PR tree-optimization/47271
15666 * tree-if-conv.c (bb_postdominates_preds): New.
15667 (if_convertible_bb_p): Call bb_postdominates_preds.
15668 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15669 (predicate_scalar_phi): Call bb_postdominates_preds.
15671 2011-01-25 Nick Clifton <nickc@redhat.com>
15673 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15674 * config/rx/rx.c (rx_function_value): Likewise.
15675 (rx_promote_function_mode): Likewise.
15676 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15677 in order to make it legitimate.
15678 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15679 make sure that the first operand is the same as the result register.
15680 (addsi3_unspec): Delete.
15681 (subdi3): Do not accept immediate operands.
15682 (subdi3_internal): Likewise.
15684 2011-01-25 Jeff Law <law@redhat.com>
15686 PR rtl-optimization/37273
15687 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15688 handle them like argument loads from stack slots. Do not double
15689 count memory for memory constants and argument loads from stack slots.
15691 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15693 PR tree-optimization/47427
15694 PR tree-optimization/47428
15695 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15696 coalesce if the new root var would be TREE_READONLY.
15698 2011-01-25 Richard Guenther <rguenther@suse.de>
15700 PR middle-end/47414
15701 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15702 correct type for TBAA.
15704 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15706 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15707 (close_phi_written_to_memory): Call for_each_index with
15708 dr_indices_valid_in_loop.
15710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15712 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15713 when it is initialized.
15715 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15717 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15718 call to graphite_find_data_references_in_stmt.
15719 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15720 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15721 call to graphite_find_data_references_in_stmt.
15722 (analyze_drs_in_stmts): Same.
15723 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15724 in which the scalar analysis of indices is performed.
15725 (create_data_ref): Same. Update call to dr_analyze_indices.
15726 (find_data_references_in_stmt): Update call to create_data_ref.
15727 (graphite_find_data_references_in_stmt): Same.
15728 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15730 (create_data_ref): Same.
15731 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15732 call to create_data_ref.
15734 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15736 * graphite-sese-to-poly.c (build_poly_scop): Move
15737 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15739 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15741 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15742 VAR_DECL, PARM_DECL, and RESULT_DECL.
15744 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15746 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15747 in a reduction PBB.
15748 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15749 that have already been marked as PBB_IS_REDUCTION.
15751 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15753 * graphite-scop-detection.c (same_close_phi_node): New.
15754 (remove_duplicate_close_phi): New.
15755 (make_close_phi_nodes_unique): New.
15756 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15758 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15760 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15761 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15762 of both data references to be the same.
15764 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15766 * graphite-dependences.c (build_lexicographical_constraint): Remove
15767 the gdim parameter.
15768 (build_lexicographical_constraint): Adjust call to
15769 ppl_powerset_is_empty.
15770 (dependence_polyhedron): Same.
15771 (graphite_legal_transform_dr): Same.
15772 (graphite_carried_dependence_level_k): Same.
15773 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15775 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15777 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15779 * graphite-sese-to-poly.c
15780 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15781 (close_phi_written_to_memory): New.
15782 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15785 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15787 * doc/install.texi: Update the expected version number of PPL to 0.11.
15788 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15789 #if PPL_VERSION_MINOR < 11.
15791 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15793 * graphite-dependences.c: Include graphite-cloog-util.h.
15794 (new_poly_ddr): Inlined into dependence_polyhedron.
15795 (free_poly_ddr): Moved close by new_poly_ddr.
15796 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15797 Early return NULL when ppl_powerset_is_empty returns true.
15798 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15799 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15800 (graphite_legal_transform_dr): Call new_poly_ddr.
15801 (graphite_carried_dependence_level_k): Same.
15802 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15803 (dot_transformed_deps_stmt_1): Removed.
15804 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15805 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15806 (dot_deps_1): Call dot_deps_2.
15807 * Makefile.in (graphite-dependences.o): Add missing dependence on
15808 graphite-cloog-util.h.
15810 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15812 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15813 (build_lexicographical_constraint): Same.
15814 (dependence_polyhedron_1): Same.
15815 (graphite_legal_transform_dr): Same.
15816 (graphite_carried_dependence_level_k): Same.
15817 * graphite-ppl.c (ppl_powerset_is_empty): New.
15818 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15819 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15821 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15823 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15824 the "a followed by b" relation and document it.
15826 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15828 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15829 iteration when the bag of constraints is empty.
15831 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15833 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15835 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15837 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15838 nest and two loop depths as parameters.
15839 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15840 lst_perfect_nestify.
15842 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15844 * graphite-dependences.c (print_pddr): Call
15845 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15847 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15849 * graphite-ppl.c (debug_gmp_value): New.
15850 * graphite-ppl.h (debug_gmp_value): Declared.
15852 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15854 * doc/install.texi: Document availability of cloog-0.16.
15856 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15858 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15859 invalid postdominance info.
15861 2011-01-24 Jan Hubicka <jh@suse.cz>
15864 * doc/extend.texi (weak pragma): Drop claim that it must
15865 appear before definition.
15866 * varasm.c (merge_weak, declare_weak): Only sanity check
15867 that DECL is not output at a time it is declared weak.
15869 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15871 * machmode.def: Fixed comments.
15873 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15875 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15877 2011-01-24 Paul Koning <ni1d@arrl.net>
15879 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15882 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15885 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15886 (block_info): Add scanned and prev.
15887 (move_or_delete_vzeroupper_2): Return if the basic block
15888 has been scanned and the upper 128bit state is unchanged
15889 from the last scan.
15890 (move_or_delete_vzeroupper_1): Return true if the exit
15892 (move_or_delete_vzeroupper): Visit basic blocks using the
15893 work-list based algorithm based on vt_find_locations in
15896 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15898 2011-01-24 Nick Clifton <nickc@redhat.com>
15900 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15901 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15902 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15903 then define __v850e1__.
15904 * doc/invoke.texi: Document -mv850es.
15906 2011-01-24 Richard Henderson <rth@redhat.com>
15908 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15909 compound unordered comparisons.
15910 * config/rx/rx.c (rx_split_fp_compare): Remove.
15911 * config/rx/rx-protos.h: Update.
15912 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15913 (cbranchsf4): Don't call rx_split_fp_compare.
15914 (*cbranchsf4): Use rx_split_cbranch.
15915 (*cmpsf): Don't accept "i" constraint.
15916 (*conditional_branch): Only valid after reload.
15917 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15919 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15922 * config/rs6000/altivec.md (vector constant splitters): Add
15923 support for creating vector single precision constants if -mvsx is
15924 used and we would create the constant using Altivec primitives.
15926 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15927 Richard Sandiford <rdsandiford@googlemail.com>
15929 PR rtl-optimization/47166
15930 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15931 mechanism for PRE_MODIFY and POST_MODIFY.
15932 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15935 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15937 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15939 2011-01-22 Jan Hubicka <jh@suse.cz>
15942 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15944 2011-01-22 Jan Hubicka <jh@suse.cz>
15946 PR tree-optimization/43884
15948 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15949 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15951 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15953 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15954 * config/s390/s390.c (s390_register_move_cost,
15955 s390_memory_move_cost): New.
15956 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15958 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15960 PR middle-end/47401
15961 * except.c (sjlj_assign_call_site_values): Move setting the
15962 crtl->uses_eh_lsda flag to ...
15963 (sjlj_mark_call_sites): ... here.
15964 (sjlj_emit_function_enter): Support NULL dispatch label.
15965 (sjlj_build_landing_pads): In a function with no landing pads
15966 that still has must-not-throw regions, generate code to register
15967 a personality function with empty LSDA.
15969 2011-01-21 Richard Henderson <rth@redhat.com>
15971 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15973 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15975 * compare-elim.c: New file.
15976 * Makefile.in (OBJS-common): Add it.
15977 (compare-elim.o): New.
15978 * common.opt (fcompare-elim): New.
15979 * opts.c (default_options_table): Add OPT_fcompare_elim.
15980 * tree-pass.h (pass_compare_elim_after_reload): New.
15981 * passes.c (init_optimization_passes): Add it.
15982 * recog.h: Protect against re-inclusion.
15983 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15984 * doc/invoke.texi (-fcompare-elim): Document it.
15985 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15986 * doc/tm.texi: Rebuild.
15988 2011-01-22 Nick Clifton <nickc@redhat.com>
15990 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15991 rx_split_fp_compare.
15993 2011-01-22 Nick Clifton <nickc@redhat.com>
15995 * config/rx/rx.md (UNSPEC_CONST): New.
15996 (deallocate_and_return): Wrap the amount popped off the stack in
15997 an UNSPEC_CONST in order to stop it being rejected by
15998 -mmax-constant-size.
15999 (pop_and_return): Add a "(return)" rtx.
16000 (call): Drop the immediate operand.
16001 (call_internal): Likewise.
16002 (call_value): Likewise.
16003 (call_value_internal): Likewise.
16004 (sibcall_internal): Likewise.
16005 (sibcall_value_internal): Likewise.
16006 (sibcall): Likewise. Generate an explicit call using
16008 (sibcall_value): Likewise.
16009 (mov<>): FAIL if a constant operand is not legitimate.
16010 (addsi3_unpsec): New pattern.
16012 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16013 (ok_for_max_constant): New function.
16014 (gen_safe_add): New function.
16015 (rx_expand_prologue): Use gen_safe_add.
16016 (rx_expand_epilogue): Likewise.
16017 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16020 2011-01-21 Jeff Law <law@redhat.com>
16022 PR tree-optimization/47053
16023 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16024 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16025 statements are deleted.
16026 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16027 is nonempty, then purge dead edges and cleanup the CFG.
16029 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16032 Temporarily revert:
16033 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16035 * tree-dfa.c (create_var_ann): Mark variable as used.
16037 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16039 PR middle-end/45566
16040 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16041 notes from other section in hot/cold partitioning even if
16042 last_action is -3. Increment call_site_base.
16044 PR rtl-optimization/47366
16045 * fwprop.c (forward_propagate_into): Return bool. If
16046 any changes are made, -fnon-call-exceptions is used and
16047 REG_EH_REGION note is present, call purge_dead_edges
16048 and return true if it purged anything.
16049 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16050 any EH edges were purged.
16052 2011-01-21 Jeff Law <law@redhat.com>
16054 PR rtl-optimization/41619
16055 * caller-save.c (setup_save_areas): Break out code to determine
16056 which hard regs are live across calls by examining the reload chains
16057 so that it is always used.
16058 Eliminate code which checked REG_N_CALLS_CROSSED.
16060 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16062 PR tree-optimization/47355
16063 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16064 NOP has non-debug uses beyond PHIs in new_bb.
16066 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16069 * cfgexpand.c (account_used_vars_for_block): Only account vars
16070 that are annotated as used.
16071 (estimated_stack_frame_size): Don't set TREE_USED.
16072 * tree-dfa.c (create_var_ann): Mark variable as used.
16074 2011-01-21 Richard Guenther <rguenther@suse.de>
16076 PR middle-end/47395
16077 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16079 2011-01-21 Richard Guenther <rguenther@suse.de>
16081 PR tree-optimization/47365
16082 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16083 (vn_reference_lookup_pieces): Adjust.
16084 (vn_reference_lookup): Likewise.
16085 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16086 (vn_reference_lookup_3): Only look through kills if in
16087 VN_WALKREWRITE mode.
16088 (vn_reference_lookup_pieces): Adjust.
16089 (vn_reference_lookup): Likewise.
16090 (visit_reference_op_load): Likewise.
16091 (visit_reference_op_store): Likewise.
16092 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16093 (compute_avail): Likewise.
16094 (eliminate): Likewise.
16096 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16098 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16099 DECL_IGNORED_P non-reg vars if they are used.
16101 PR tree-optimization/47391
16102 * varpool.c (const_value_known_p): Return false if
16105 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16108 * config/i386/i386.c (ix86_local_alignment): Handle
16109 case for va_list_type_node is nil.
16110 (ix86_canonical_va_list_type): Likewise.
16112 2011-01-21 Alan Modra <amodra@gmail.com>
16114 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16115 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16117 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16119 * config/arm/arm.md (define_attr type): Rename f_load
16120 and f_store to f_fpa_load and f_fpa_store. Update.
16121 (write_conflict): Deal with rename fallout.
16122 (*push_fp_multi): Likewise.
16123 * config/arm/fpa.md (f_load): Use f_fpa_load.
16124 (f_store): Use f_fpa_store.
16125 (*movsf_fpa): Likewise.
16126 (*movdf_fpa): Likewise.
16127 (*movxf_fpa): Likewise.
16128 (*thumb2_movsf_fpa): Likewise.
16129 (*thumb2_movdf_fpa): Likewise.
16130 (*thumb2_movxf_fpa): Likewise.
16131 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16132 f_loadd and f_stored.
16133 (*thumb2_movdi_vfp): Likewise.
16134 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16135 (*thumb2_movsi_vfp): Likewise.
16136 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16137 Use f_loads instead of f_load.
16138 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16140 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16142 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16143 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16144 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16145 (xtensa_mode_dependent_address_p): New function.
16146 (constantpool_address_p): Make static. Change return type to bool.
16147 Change argument type to const_rtx. Use CONST_INT_P predicate.
16149 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16152 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16154 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16157 * cfgexpand.c (expand_debug_expr): Instead of generating
16158 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16161 2011-01-20 Richard Guenther <rguenther@suse.de>
16163 PR middle-end/47370
16164 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16165 the pointer operand of MEM_REFs.
16167 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16169 PR tree-optimization/46130
16170 * ipa-split.c (consider_split): If return_bb contains non-virtual
16171 PHIs other than for retval or if split_function would not adjust it,
16174 2011-01-20 Richard Guenther <rguenther@suse.de>
16176 PR tree-optimization/47167
16177 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16178 Revert previous change, only avoid enumeral type changes.
16180 2011-01-19 Mike Stump <mikestump@comcast.net>
16182 * doc/tm.texi.in (BRANCH_COST): Englishify.
16183 * doc/tm.texi (BRANCH_COST): Likewise.
16185 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16188 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16189 (gen_scheduled_generic_parms_dies): New functions.
16190 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16191 generation for the end of CU compilation.
16192 (dwarf2out_finish): Generate template parameters DIEs here.
16194 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16197 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16198 debug bind stmt on merge edges.
16200 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16204 * function.c (instantiate_expr): Instantiate incoming rtl of
16205 implicit arguments, and recurse on VALUE_EXPRs.
16206 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16207 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16209 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16211 * c-parser.c (c_parser_for_statement): Initialize
16212 collection_expression.
16214 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16216 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16218 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16220 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16221 (LINK_SHLIB_SPEC): Don't use %(link_path).
16222 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16224 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16226 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16227 (NO_SHARED_LIB_SUPPORT): Remove.
16228 (LINK_SHLIB_SPEC): Remove one conditional definition.
16230 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16232 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16234 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16235 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16236 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16237 %{call_shared} and conditionals on these options not being passed.
16238 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16241 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16243 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16246 * ipa-split.c: Spelling fixes.
16248 2011-01-19 Richard Henderson <rth@redhat.com>
16250 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16251 (*mulsi3): Likewise.
16253 * longlong.h [__mn10300__] (count_leading_zeros): New.
16254 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16255 [__mn10300__] (add_ssaaaa, subddmmss): New.
16256 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16257 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16259 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16261 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16263 2011-01-19 Richard Henderson <rth@redhat.com>
16265 * config/mn10300/mn10300.md (addsi3_flags): New.
16266 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16267 (subsi3_flags, subc_internal, subdi3): New.
16268 (subdi3_internal, *subdi3_degenerate): New.
16269 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16271 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16272 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16273 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16274 * config/mn10300/mn10300-protos.h: Update.
16275 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16276 (return_ret): Likewise. Rename from return_internal_regs.
16277 (return_internal): Remove.
16279 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16280 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16281 (mn10300_legitimate_constant_p): Likewise.
16282 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16283 (mn10300_frame_size): New.
16284 (mn10300_expand_prologue): Use it.
16285 (mn10300_expand_epilogue): Likewise.
16286 (mn10300_initial_offset): Likewise.
16287 * config/mn10300/mn10300-protos.h: Update.
16288 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16289 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16290 (prologue, epilogue, return_internal): Tidy output code.
16291 (mn10300_store_multiple_operation, return): Likewise.
16292 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16293 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16294 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16295 (load_pic, am33_load_pic): New.
16296 (mn10300_load_pic0, mn10300_load_pic1): New.
16298 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16299 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16300 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16301 (cc_flags_for_mode, cc_flags_for_code): New.
16302 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16303 overflow flag is not valid. Validate that the flags we need
16304 for the comparison are valid.
16305 (mn10300_output_cmp): Remove.
16306 (mn10300_output_add): New.
16307 (mn10300_select_cc_mode): Use cc_flags_for_code.
16308 (mn10300_split_cbranch): New.
16309 (mn10300_match_ccmode): New.
16310 (mn10300_split_and_operand_count): New.
16311 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16313 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16314 (addsi3): ... here. Use mn10300_output_add.
16315 (*addsi3_flags): New.
16316 (*am33_subsi3, *mn10300_subsi3): Merge...
16317 (subsi3): ... here. Use attribute isa.
16318 (*subsi3_flags): New.
16319 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16321 (*am33_andsi3, *mn10300_andsi3): Merge...
16322 (andsi3): ... here.
16323 (*andsi3_flags): New.
16324 (andsi3 splitters): New.
16325 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16326 (iorsi3): ... here.
16327 (*iorsi3_flags): New.
16328 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16329 (xorsi3): ... here.
16330 (*xorsi3_flags): New.
16331 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16332 (one_cmplsi2): ... here.
16333 (*one_cmplsi2_flags): New.
16334 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16335 instead of "dax" in constraints. Use mn10300_split_cbranch.
16336 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16337 use matching constraints to eliminate a self-comparison.
16338 (*integer_conditional_branch): Rename from integer_conditional_branch.
16339 Use int_mode_flags to match CC_REG.
16340 (*cbranchsi4_btst, *btstsi): New.
16341 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16342 mn10300_split_cbranch.
16343 (*am33_cmpsf): Rename from am33_cmpsf.
16344 (*float_conditional_branch): Rename from float_conditional_branch.
16345 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16346 (zero_extendqisi2): ... here.
16347 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16348 (zero_extendhisi2): ... here.
16349 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16350 (extendqisi2): ... here.
16351 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16352 (extendhisi2): ... here.
16353 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16354 (ashlsi3): ... here.
16355 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16356 (lshrsi3): ... here.
16357 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16358 (ashrsi3): ... here.
16359 (consecutive add peephole): Remove.
16360 * config/mn10300/predicates.md (label_ref_operand): New.
16361 (int_mode_flags): New.
16362 (CCZN_comparison_operator): New.
16364 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16365 (throughput_42_latency_43): New reservation.
16366 (mulsidi3, umulsidi3): New expanders.
16367 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16368 the MDR register to allocation; separately allocate the low and
16369 high parts of the DImode result.
16370 (umulsidi3_internal): Similarly.
16371 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16372 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16373 (udivsi3, umodsi3): Remove.
16374 (udivmodsi4, divmodsi4): New expanders.
16375 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16376 (*divmodsi4): Simiarly.
16377 (ext_internal): New.
16379 * config/mn10300/constraints.md ("z"): New constraint.
16380 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16381 (FIXED_REGISTERS): Don't fix MDR.
16382 (CALL_USED_REGSITERS): Reformat nicely.
16383 (REG_ALLOC_ORDER): Add MDR.
16384 (enum regclass): Add MDR_REGS.
16385 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16386 (IRA_COVER_CLASSES): Add MDR_REGS.
16387 (REGNO_REG_CLASS): Handle MDR_REG.
16388 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16389 (mn10300_register_move_cost): Likewise.
16390 * config/mn10300/mn10300.md (MDR_REG): New.
16391 (*movsi_internal): Handle moves to/from MDR_REGS.
16393 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16395 (mn10300_secondary_reload): Tidy combination reload classes.
16396 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16397 addresses for AM33. Allow symbolic offsets for reg+imm.
16398 (mn10300_regno_in_class_p): New.
16399 (mn10300_legitimize_reload_address): New.
16400 * config/mn10300/mn10300.h (enum reg_class): Remove
16401 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16402 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16403 SP_OR_GENERAL_REGS.
16404 (REG_CLASS_NAMES): Update to match.
16405 (REG_CLASS_CONTENTS): Likewise.
16406 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16407 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16408 (REGNO_IN_RANGE_P): Remove.
16409 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16410 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16411 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16412 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16413 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16414 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16415 (REGNO_GENERAL_P): New.
16416 (HAVE_POST_MODIFY_DISP): New.
16417 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16418 (LEGITIMIZE_RELOAD_ADDRESS): New.
16419 * config/mn10300/mn10300-protos.h: Update.
16421 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16422 DATA_REGS for AM33 stack-pointer destination.
16423 (mn10300_preferred_output_reload_class): Likewise.
16424 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16425 into a form appropriate for ...
16426 (TARGET_SECONDARY_RELOAD): New.
16427 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16428 * config/mn10300/mn10300-protos.h: Update.
16429 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16430 reload_insi; use the "A" constraint for the scratch; handle AM33
16431 moves of sp to non-address registers.
16433 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16434 (*movqi_internal): ... here.
16435 (*am33_movhi, *mn10300_movhi): Merge into...
16436 (*movhi_internal): ... here.
16437 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16438 as the source/destination of moves from/to SP.
16439 (movsf): Only allow for AM33-2.
16440 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16441 any integer constant constraint. Only allow for AM33-2. Tidy
16442 all of the alternative outputs.
16443 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16444 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16446 (udivsi3, umodsi3): New patterns for MN103 only.
16448 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16450 * doc/tm.texi.in: Spell out that a lack of register class unions
16452 * doc/tm.texi: Regenerate.
16454 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16456 PR rtl-optimization/47337
16457 * dce.c (check_argument_store): New function.
16458 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16460 PR tree-optimization/47290
16461 * tree-eh.c (infinite_empty_loop_p): New function.
16462 (cleanup_empty_eh): Use it.
16464 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16467 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16468 (a64_expand_widen_sum): Ditto.
16469 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16470 (vec_extract_evenodd_help): Ditto.
16471 (vec_extract_evenv4hi): Ditto.
16472 (vec_extract_oddv4hi): Ditto.
16473 (vec_extract_evenv2si): Ditto.
16474 (vec_extract_oddv2si): Ditto.
16475 (vec_extract_evenv2sf): Ditto.
16476 (vec_extract_oddv2sf): Ditto.
16477 (vec_pack_trunc_v4hi: Ditto.
16478 (vec_pack_trunc_v2si): Ditto.
16479 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16480 (vec_interleave_highv8qi): Ditto.
16482 (vec_extract_oddv8qi): Ditto.
16483 (vec_interleave_lowv4hi): Ditto.
16484 (vec_interleave_highv4hi): Ditto.
16485 (vec_interleave_lowv2si): Ditto.
16486 (vec_interleave_highv2si): Ditto.
16488 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16490 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16491 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16492 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16493 (pa_c_mode_for_suffix): New.
16494 (TARGET_EXPAND_BUILTIN): Define.
16495 (TARGET_C_MODE_FOR_SUFFIX): Define.
16496 (pa_builtins): Define.
16497 (pa_init_builtins): Register __float128 type and init new support
16499 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16500 * config/pa/quadlib.c (_U_Qfcopysign): New.
16502 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16504 PR middle-end/46894
16505 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16506 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16509 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16511 PR tree-optimization/47179
16512 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16513 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16515 2011-01-18 Richard Guenther <rguenther@suse.de>
16517 PR rtl-optimization/47216
16518 * emit-rtl.c: Include tree-flow.h.
16519 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16520 of replicating it with different semantics.
16521 * Makefile.in (emit-rtl.o): Adjust.
16523 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16525 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16526 (cortex_a9_dp): Handle neon types correctly.
16528 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16530 PR rtl-optimization/47299
16531 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16532 subtarget. Use normal multiplication if both operands are constants.
16533 * expmed.c (expand_widening_mult): Don't try to optimize constant
16534 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16537 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16539 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16540 spacing after 'e.g.', typos, comma, hyphenation.
16542 2011-01-17 Richard Henderson <rth@redhat.com>
16544 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16545 (rx_restricted_mem_operand): New.
16546 (rx_shift_operand): Use register_operand.
16547 (rx_source_operand, rx_compare_operand): Likewise.
16548 * config/rx/rx.md (addsi3_flags): New expander.
16549 (adddi3): Rewrite as expander.
16550 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16551 (subsi3_flags): New expander.
16552 (subdi3): Rewrite as expander.
16553 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16555 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16556 (rx_init_builtins): Remove sat builtin.
16557 (rx_expand_builtin): Likewise.
16558 * config/rx/rx.md (ssaddsi3): New.
16559 (*sat): Rename from sat. Represent the CC_REG input.
16561 * config/rx/predicates.md (rshift_operator): New.
16562 * config/rx/rx.c (rx_expand_insv): Remove.
16563 * config/rx/rx-protos.h: Update.
16564 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16565 operand to the canonical position.
16566 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16567 (*bitclr, *bitclr_in_memory): Similarly.
16568 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16569 (insv): Retain the zero_extract in the expansion.
16571 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16572 (bswaphi2, bitinvert, revw): Likewise.
16574 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16575 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16576 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16577 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16578 (bitset, bitset_in_memory): Likewise.
16579 (bitinvert, bitinvert_in_memory): Likewise.
16580 (bitclr, bitclr_in_memory): Likewise.
16581 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16582 (rx_strend, rx_cmpstrn): Likewise.
16583 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16584 (bitop peep2 patterns): Remove.
16586 * config/rx/rx.c (rx_match_ccmode): New.
16587 * config/rx/rx-protos.h: Update.
16588 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16589 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16590 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16591 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16592 (fix_truncsfsi2, floatsisf2): Likewise.
16593 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16594 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16595 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16596 (*subsi3_flags, *xorsi3_flags): New.
16598 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16600 * config/rx/rx.c (rx_print_operand): Remove workaround for
16601 unsplit comparison operations.
16603 * config/rx/rx.md (movsicc): Split after reload.
16604 (*movsicc): Merge *movsieq and *movsine via match_operator.
16605 (*stcc): New pattern.
16607 * config/rx/rx.c (rx_float_compare_mode): Remove.
16608 * config/rx/rx.h (rx_float_compare_mode): Remove.
16609 * config/rx/rx.md (cstoresi4): Split after reload.
16610 (*sccc): New pattern.
16612 * config/rx/predicates.md (label_ref_operand): New.
16613 (rx_z_comparison_operator): New.
16614 (rx_zs_comparison_operator): New.
16615 (rx_fp_comparison_operator): New.
16616 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16617 Validate that the flags are set properly for the comparison.
16618 (rx_gen_cond_branch_template): Remove.
16619 (rx_cc_modes_compatible): Remove.
16620 (mode_from_flags): New.
16621 (flags_from_code): Rename from flags_needed_for_conditional.
16622 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16623 (rx_select_cc_mode): Likewise.
16624 (rx_split_fp_compare): New.
16625 (rx_split_cbranch): New.
16626 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16627 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16628 (*cbranchsf4): Similarly.
16629 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16630 match_operator and rx_split_cbranch.
16631 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16632 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16633 (*cmpsi): Rename from cmpsi.
16634 (*tstsi): Rename from tstsi.
16635 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16636 (*conditional_branch): Rename from conditional_branch.
16637 (*reveresed_conditional_branch): Remove.
16638 (b<code>): Remove expander.
16639 * config/rx/rx-protos.h: Update.
16641 * config/rx/rx.c (rx_compare_redundant): Remove.
16642 * config/rx/rx.md (cmpsi): Don't use it.
16643 * config/rx/rx-protos.h: Update.
16645 * config/rx/rx-modes.def (CC_F): New mode.
16646 * config/rx/rx.c (rx_select_cc_mode): New.
16647 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16648 * config/rx/rx-protos.h: Update.
16650 2011-01-17 Richard Henderson <rth@redhat.com>
16652 * except.c (dump_eh_tree): Fix stray ; after for statement.
16654 2011-01-17 Richard Guenther <rguenther@suse.de>
16656 PR tree-optimization/47313
16657 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16658 handling before copying the body. Properly deal with
16659 by-reference result in SSA form.
16661 2011-01-17 Ian Lance Taylor <iant@google.com>
16664 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16665 (struct_value_alias_set): Don't define.
16666 (sparc_option_override): Don't set sparc_sr_alias_set and
16667 struct_value_alias_set.
16668 (save_or_restore_regs): Use gen_frame_mem rather than calling
16670 (sparc_struct_value_rtx): Likewise.
16672 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16675 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16676 (_mm_maskstore_pd): Likewise.
16677 (_mm_maskload_ps): Likewise.
16678 (_mm_maskstore_ps): Likewise.
16679 (_mm256_maskload_pd): Change mask to __m256i.
16680 (_mm256_maskstore_pd): Likewise.
16681 (_mm256_maskload_ps): Likewise.
16682 (_mm256_maskstore_ps): Likewise.
16684 * config/i386/i386-builtin-types.def: Updated.
16685 (ix86_expand_special_args_builtin): Likewise.
16687 * config/i386/i386.c (bdesc_special_args): Update
16688 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16689 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16690 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16691 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16693 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16694 Use <avxpermvecmode> on mask register.
16695 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16697 2011-01-17 Olivier Hainque <hainque@adacore.com>
16698 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16699 Eric Botcazou <ebotcazou@adacore.com>
16702 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16703 if <= USHRT_MAX in 32-bit mode.
16705 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16707 * doc/install.texi (Configuration, Specific): Wrap long
16708 lines in examples. Allow line wrapping in long options
16709 and URLs where beneficial for PDF output.
16711 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16713 * config/mips/mips.c (mips_classify_symbol): Don't return
16714 SYMBOL_PC_RELATIVE for nonlocal labels.
16716 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16718 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16720 2011-01-15 Jan Hubicka <jh@suse.cz>
16722 PR tree-optimization/47276
16723 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16724 declarations as needed.
16726 2011-01-15 Martin Jambor <mjambor@suse.cz>
16728 * common.opt (fdevirtualize): New flag.
16729 * doc/invoke.texi (Option Summary): Document it.
16730 * opts.c (default_options_table): Add devirtualize flag.
16731 * ipa-prop.c (detect_type_change): Return immediately if
16732 devirtualize flag is not set.
16733 (detect_type_change_ssa): Likewise.
16734 (compute_known_type_jump_func): Likewise.
16735 (ipa_analyze_virtual_call_uses): Likewise.
16737 2011-01-14 Martin Jambor <mjambor@suse.cz>
16739 PR tree-optimization/45934
16740 PR tree-optimization/46302
16741 * ipa-prop.c (type_change_info): New type.
16742 (stmt_may_be_vtbl_ptr_store): New function.
16743 (check_stmt_for_type_change): Likewise.
16744 (detect_type_change): Likewise.
16745 (detect_type_change_ssa): Likewise.
16746 (compute_complex_assign_jump_func): Check for dynamic type change.
16747 (compute_complex_ancestor_jump_func): Likewise.
16748 (compute_known_type_jump_func): Likewise.
16749 (compute_scalar_jump_functions): Likewise.
16750 (ipa_analyze_virtual_call_uses): Likewise.
16751 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16753 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16755 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16756 * config/i386/i386.opt (msse5): New Alias.
16758 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16760 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16761 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16762 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16763 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16765 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16767 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16769 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16770 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16771 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16772 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16774 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16776 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16778 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16780 2011-01-14 Mike Stump <mikestump@comcast.net>
16782 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16783 * config/fr30/fr30.md: Likweise
16784 (movsi_push): Likewise.
16785 (movsi_pop): Likewise.
16786 (enter_func): Likewise.
16787 * config/moxie/moxie.md (movsi_push): Likewise.
16788 (movsi_pop): Likewise.
16790 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16792 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16793 %{no_archive} %{exact_version}.
16794 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16795 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16796 %{no_archive} %{exact_version}.
16797 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16798 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16799 * config/mips/vxworks.h: Likewise.
16801 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16803 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16805 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16807 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16808 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16810 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16812 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16815 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16817 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16819 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16820 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16822 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16823 Don't handle -shlib.
16825 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16827 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16828 (CC1_SPEC): Don't handle -profile.
16830 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16832 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16833 * config/mips/mips.h (CC1_SPEC): Likewise.
16835 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16837 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16838 * config/mips/mips.h (CC1_SPEC): Likewise.
16840 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16842 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16843 * config/m32r/linux.h (LINK_SPEC): Likewise.
16844 * config/mips/linux.h (LINK_SPEC): Likewise.
16845 * config/mips/linux64.h (LINK_SPEC): Likewise.
16846 * config/sparc/linux.h (LINK_SPEC): Likewise.
16847 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16848 LINK_SPEC): Likewise.
16849 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16851 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16853 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16855 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16857 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16859 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16860 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16862 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16864 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16866 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16868 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16869 supports -Bstatic/-Bdynamic.
16870 * configure: Regenerate.
16872 2011-01-14 Jan Hubicka <jh@suse.cz>
16873 Jack Howarth <howarth@bromo.med.uc.edu>
16876 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16877 when checking debug_info_level. Test write_symbols instead of
16878 debug_hooks->var_location when setting flag_var_tracking_uninit.
16880 2011-01-14 Richard Guenther <rguenther@suse.de>
16882 PR tree-optimization/47179
16883 * target.def (ref_may_alias_errno): New target hook.
16884 * targhooks.h (default_ref_may_alias_errno): Declare.
16885 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16886 (default_ref_may_alias_errno): New function.
16887 * target.h (struct ao_ref_s): Declare.
16888 * tree-ssa-alias.c: Include target.h.
16889 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16890 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16891 (targhooks.o): Likewise.
16892 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16893 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16895 2011-01-14 Richard Guenther <rguenther@suse.de>
16897 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16899 2011-01-14 Richard Guenther <rguenther@suse.de>
16901 PR tree-optimization/47280
16902 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16903 return CFG changes.
16904 (tree_ssa_forward_propagate_single_use_vars): Deal with
16905 CFG changes from associate_plusminus.
16907 2011-01-14 Richard Guenther <rguenther@suse.de>
16909 PR middle-end/47281
16911 2011-01-11 Richard Guenther <rguenther@suse.de>
16913 PR tree-optimization/46076
16914 * tree-ssa.c (useless_type_conversion_p): Conversions from
16915 unprototyped to empty argument list function types are useless.
16917 2011-01-14 Richard Guenther <rguenther@suse.de>
16919 PR tree-optimization/47286
16920 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16922 2011-01-14 Martin Jambor <mjambor@suse.cz>
16924 PR middle-end/46823
16925 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16927 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16929 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16930 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16931 * config/xtensa/xtensa.c (xtensa_libcall_value,
16932 xtensa_function_value_regno_p): New functions.
16933 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16935 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16938 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16940 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16941 New function prototype.
16942 * config/i386/winnt.c (i386_pe_assemble_visibility):
16943 Warn only if attribute was specified by user.
16945 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16948 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16950 (floatunsdidf2_fcfidu): Ditto.
16952 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16954 * config/s390/s390.c (print_operand_address): Replace 'error' with
16955 'output_operand_lossage'.
16956 (print_operand): Likewise.
16958 2011-01-13 Jeff Law <law@redhat.com>
16960 PR rtl-optimization/39077
16961 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16962 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16963 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16964 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16965 * gcse.c (prune_insertions_deletions): New function.
16966 (compute_pre_data): Use it.
16968 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16971 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16973 (prune_unused_types_mark): Use it.
16975 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16977 PR rtl-optimization/45352
16978 * sel-sched.c: Update copyright years.
16979 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16980 in the advancing loop when we have issued issue_rate insns.
16982 2011-01-12 Richard Henderson <rth@redhat.com>
16984 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16985 (TARGET_MD_ASM_CLOBBERS): New.
16987 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16988 (TARGET_DELEGITIMIZE_ADDRESS): New.
16990 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16991 (clzsi2, *bsch): New patterns.
16993 * config/mn10300/mn10300.md (INT): New mode iterator.
16994 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16996 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16997 flag_split_wide_types.
16999 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17000 (mn10300_trampoline_init): Rewrite without a template, an immediate
17001 load and a direct branch.
17002 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17004 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17006 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17007 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17008 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17009 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17011 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17014 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17017 2011-01-12 Jan Hubicka <jh@suse.cz>
17020 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17021 (PLUGIN_COND_CLOSE): New macro.
17022 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17024 2011-01-12 Richard Guenther <rguenther@suse.de>
17027 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17028 register variables in a MEM_REF.
17030 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17032 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17033 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17034 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17035 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17036 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17037 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17038 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17039 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17040 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17041 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17042 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17043 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17044 * config/gnu-user.h: New. Copied from linux.h.
17045 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17046 GNU_USER_TARGET_STARTFILE_SPEC.
17047 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17048 GNU_USER_TARGET_ENDFILE_SPEC.
17049 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17050 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17051 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17052 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17053 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17054 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17055 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17056 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17057 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17058 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17059 * config/arm/linux-eabi.h (CC1_SPEC): Use
17060 GNU_USER_TARGET_CC1_SPEC.
17061 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17062 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17063 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17064 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17065 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17066 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17067 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17068 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17070 2011-01-12 Richard Guenther <rguenther@suse.de>
17073 * doc/invoke.texi (ffast-math): Document it is turned on
17076 2011-01-12 Jan Hubicka <jh@suse.cz>
17078 PR tree-optimization/47233
17079 * opts.c (common_handle_option): Disable ipa-reference with profile
17082 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17084 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17087 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17089 * c-parser.c (c_lex_one_token): Updated and reindented some
17090 comments. No changes in code.
17092 2011-01-11 Ian Lance Taylor <iant@google.com>
17094 * godump.c (go_output_var): Don't output the variable if there is
17095 already a type with the same name.
17097 2011-01-11 Ian Lance Taylor <iant@google.com>
17099 * godump.c (go_format_type): Don't generate float80.
17101 2011-01-11 Richard Henderson <rth@redhat.com>
17103 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17104 declaration. Rewrite for both speed and size.
17105 (mn10300_address_cost_1): Remove.
17106 (mn10300_register_move_cost): New.
17107 (mn10300_memory_move_cost): New.
17108 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17109 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17110 extensions, shifts, BSWAP, CLZ.
17111 (mn10300_wide_const_load_uses_clr): Remove.
17112 (TARGET_REGISTER_MOVE_COST): New.
17113 (TARGET_MEMORY_MOVE_COST): New.
17114 * config/mn10300/mn10300-protos.h: Update.
17115 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17117 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17118 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17119 * config/mn10300/mn10300-protos.h: Update.
17120 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17121 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17122 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17123 (*test_int_bitfield, *test_byte_bitfield): Remove.
17124 (*bit_test, *subreg_bit_test): Remove.
17125 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17127 * config/mn10300/constraints.md ("c"): Rename from "A".
17128 ("A", "D"): New constraint letters.
17129 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17130 (fmssf4, fnmasf4, fnmssf4): Likewise.
17132 * config/mn10300/mn10300.md (isa): New attribute.
17133 (enabled): New attribute.
17135 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17136 (abssf2, negsf2): Define only for hardware fp.
17137 (sqrtsf2): Reformat.
17138 (addsf3, subsf3, mulsf3): Merge expander and insn.
17140 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17141 (DEBUGGER_AUTO_OFFSET): Remove.
17142 (DEBUGGER_ARG_OFFSET): Remove.
17144 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17145 Emit register stores with the same offsets as the hardware.
17146 (mn10300_store_multiple_operation): Don't check that the register
17147 save offsets are monotonic.
17148 * config/mn10300/mn10300-protos.h: Update.
17150 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17152 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17153 in terms of the value on the stack, not the MDR register.
17155 2011-01-11 Jan Hubicka <jh@suse.cz>
17159 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17160 (symbol_alias_set_destroy, symbol_alias_set_contains,
17161 propagate_aliases_backward): Declare.
17162 * lto-streamer-out.c (struct sets): New sturcture.
17163 (trivally_defined_alias): New function.
17164 (output_alias_pair_p): Rewrite.
17165 (output_unreferenced_globals): Fix output of alias pairs.
17166 (produce_symtab): Likewise.
17167 * ipa.c (function_and_variable_visibility): Set weak alias destination
17169 * varasm.c (symbol_alias_set_t): Remove.
17170 (symbol_alias_set_destroy): Export.
17171 (propagate_aliases_forward, propagate_aliases_backward): New functions
17173 (compute_visible_aliases): ... this one; remove.
17174 (trivially_visible_alias): New
17175 (trivially_defined_alias): New.
17176 (remove_unreachable_alias_pairs): Rewrite.
17177 (finish_aliases_1): Reorganize code checking if alias is defined.
17178 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17181 2011-01-11 Richard Guenther <rguenther@suse.de>
17183 PR tree-optimization/46076
17184 * tree-ssa.c (useless_type_conversion_p): Conversions from
17185 unprototyped to empty argument list function types are useless.
17187 2011-01-11 Richard Guenther <rguenther@suse.de>
17189 PR middle-end/45235
17190 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17191 volatile MEMs as MEM_READONLY_P.
17193 2011-01-11 Richard Guenther <rguenther@suse.de>
17195 PR tree-optimization/47239
17196 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17198 2011-01-11 Jeff Law <law@redhat.com>
17200 PR tree-optimization/47086
17201 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17202 IVs from statements that might throw.
17204 2011-01-10 Jan Hubicka <jh@suse.cz>
17207 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17209 2011-01-10 Jan Hubicka <jh@suse.cz>
17212 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17213 when correcting profile.
17215 2011-01-10 Jan Hubicka <jh@suse.cz>
17218 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17219 DECL_FINI_PRIORITY.
17220 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17221 Restore DECL_FINI_PRIORITY.
17223 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17225 * doc/gimple.texi: Fix quoting of multi-word return values in
17226 @deftypefn statements. Ensure presence of return value. Wrap
17227 overlong @deftypefn lines.
17228 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17229 descriptions of removed functions.
17230 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17231 of multi-word return value in @deftypefn statement.
17233 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17235 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17236 (Conditional Expressions, Logical Operators)
17237 (Statement and operand traversals): Do not indent smallexample
17238 code. Fix duplicate function argument in example.
17240 2011-01-10 Jeff Law <law@redhat.com>
17242 PR tree-optimization/47141
17243 * ipa-split.c (split_function): Handle case where we are
17244 returning a value and the return block has a virtual operand phi.
17246 2011-01-10 Jan Hubicka <jh@suse.cz>
17248 PR tree-optimization/47234
17249 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17250 (pass_feedback_split_functions): Declare.
17251 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17253 * ipa-split.c (gate_split_functions): Update comments; disable
17254 split-functions for profile_arc_flag and branch_probabilities.
17255 (gate_feedback_split_functions): New function.
17256 (execute_feedback_split_functions): New function.
17257 (pass_feedback_split_functions): New global var.
17259 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17262 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17263 calling gimple_call_set_cannot_inline.
17265 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17267 * config/darwin-sections.def: Remove unused section.
17269 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17272 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17274 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17277 * c-parser.c (c_parser_declaration_or_fndef): Improved
17280 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17282 * config/i386/winnt.c (i386_pe_start_function): Make sure
17283 to switch back to function's section.
17285 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17289 * plugin.c: Move include of dlfcn.h from here...
17290 * system.h: ... to here.
17292 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17294 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17296 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17297 two extra empty pages in PDF output.
17299 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17302 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17303 for error recovery purposes behave as if it was not specified so
17304 that the default type is usd.
17306 2011-01-07 Jan Hubicka <jh@suse.cz>
17308 PR tree-optmization/46469
17309 * ipa.c (function_and_variable_visibility): Clear needed flags on
17310 nodes with external decls; handle weakrefs merging correctly.
17312 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17314 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17317 2011-01-07 Jan Hubicka <jh@suse.cz>
17319 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17320 and no longer claim that gold is required for linker plugin.
17321 * configure: Regenerate.
17322 * gcc.c (PLUGIN_COND): New macro.
17323 (LINK_COMMAND_SPEC): Use it.
17324 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17325 * config.in (HAVE_LTO_PLUGIN): New.
17326 * configure.ac (--with-lto-plugin): New parameter; autodetect
17329 2011-01-07 Jan Hubicka <jh@suse.cz>
17331 PR tree-optimization/46367
17332 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17333 when we can update original.
17334 (cgraph_mark_inline_edge): Sanity check.
17335 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17337 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17339 * config/spu/spu.h (ASM_COMMENT_START): Define.
17341 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17344 * gcc.c (%>S): New.
17345 (SWITCH_KEEP_FOR_GCC): Likewise.
17346 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17347 (do_spec_1): Handle "%>".
17349 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17351 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17354 * config/i386/i386.c (ix86_delegitimize_address): If
17355 simplify_gen_subreg fails, return orig_x.
17358 * value-prof.c (gimple_stringop_fixed_value): Handle
17359 lhs of the call properly.
17361 2011-01-07 Jan Hubicka <jh@suse.cz>
17364 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17366 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17368 * target.def (function_switched_text_sections): New hook.
17369 * doc/tm.texi: Regenerated.
17370 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17371 * final.c (default_function_switched_text_sections): New.
17372 (final_scan_insn): Call function_switched_text_sections when a
17373 mid-function section change occurs.
17374 * output.h (default_function_switched_text_sections): Declare.
17375 * config/darwin-protos.h (darwin_function_switched_text_sections):
17377 * config/darwin.c (darwin_function_switched_text_sections): New.
17378 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17380 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17382 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17383 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17384 the secondary code fragment when outputting for DWARF == 2.
17386 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17388 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17389 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17391 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17392 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17394 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17397 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17398 when it is not empty.
17400 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17403 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17404 (case ${target}): Add btver1.
17405 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17406 -march=native recognize btver1 processors.
17407 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17408 btver1 def_and_undef
17409 * config/i386/i386.c (struct processor_costs btver1_cost): New
17411 (m_BTVER1): New definition.
17412 (m_AMD_MULTIPLE): Includes m_BTVER1.
17413 (initial_ix86_tune_features): Add btver1 tune.
17414 (processor_target_table): Add btver1 entry.
17415 (static const char *const cpu_names): Add btver1 entry.
17416 (software_prefetching_beneficial_p): Add btver1.
17417 (ix86_option_override_internal): Add btver1 instruction sets.
17418 (ix86_issue_rate): Add btver1.
17419 (ix86_adjust_cost): Add btver1.
17420 * config/i386/i386.h (TARGET_BTVER1): New definition.
17421 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17422 (enum processor_type): Add PROCESSOR_BTVER1.
17423 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17425 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17428 * config/i386/i386.c (legitimize_tls_address)
17429 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17430 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17431 (tls_initial_exec_64_sun): New pattern.
17433 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17435 * doc/invoke.texi (Overall Options): Improve wording and markup
17436 of the description of -wrapper.
17438 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17440 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17441 rdynamic, threads): New Driver options.
17443 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17446 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17447 if coming from .tdata.
17448 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17450 2011-01-06 Jan Hubicka <jh@suse.cz>
17453 * collect2.c (main): Do not enable LTOmode when plugin is active.
17455 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17458 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17459 --version output if supported.
17460 * configure: Regenerate.
17462 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17464 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17467 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17470 * c-convert.c (convert): When converting a complex expression
17471 other than COMPLEX_EXPR to a different complex type, ensure
17472 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17473 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17474 when converting COMPLEX_TYPE.
17476 2011-01-06 Ira Rosen <irar@il.ibm.com>
17478 PR tree-optimization/47139
17479 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17480 only the last reduction value is used outside the loop. Update
17483 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17485 * config/rtems.opt: New.
17486 * config.gcc (*-*-rtems*): Use rtems.opt.
17488 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17490 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17491 processors do not support 3DNow instructions.
17493 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17495 * config/spu/spu.c (spu_option_override): Set parameter
17496 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17498 2011-01-05 Jan Hubicka <jh@suse.cz>
17500 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17501 at the command line.
17503 2011-01-05 Martin Jambor <mjambor@suse.cz>
17506 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17507 deltas on streamed outgoing edges.
17508 (output_node_opt_summary): Output info for outgoing edges only when
17509 the node is in new parameter set.
17510 (output_cgraph_opt_summary): New parameter set, passed to the two
17511 aforementioned functions. Update its forward declaration and its
17514 2011-01-05 Tom Tromey <tromey@redhat.com>
17516 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17517 operator to c_finish_omp_atomic.
17518 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17519 (build_unary_op): Update.
17520 (build_modify_expr): Update.
17521 (build_asm_expr): Update.
17523 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17525 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17526 newly inserted insns.
17527 (pad_bb): Likewise.
17528 (spu_emit_branch_hint): Likewise.
17529 (insert_hbrp_for_ilb_runout): Likewise.
17530 (spu_machine_dependent_reorg): Call df_finish_pass after
17531 schedule_insns returns.
17533 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17535 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17537 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17539 PR tree-optimization/47005
17540 * tree-sra.c (struct access): Add 'non_addressable' bit.
17541 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17542 (decide_one_param_reduction): Return 0 if the parameter is passed by
17543 reference and one of the accesses in the group is non_addressable.
17545 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17547 PR tree-optimization/47056
17548 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17549 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17550 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17552 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17554 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17555 initializer. Skip view conversions from aggregate types.
17557 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17560 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17562 2011-01-04 Philipp Thomas <pth@suse.de>
17564 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17567 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17569 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17570 on empty epilogue sequences.
17572 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17574 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17575 non-static): New Driver options.
17577 2011-01-04 Jie Zhang <jie@codesourcery.com>
17580 * gcc.c (default_compilers[]): Set combinable field to 0
17581 for all assembly languages.
17583 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17585 * config/mips/loongson3a.md: New file.
17586 * config/mips/mips.md: Include loongson3a.md.
17587 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17590 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17592 PR middle-end/47017
17593 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17594 instead of convert_memory_address_addr_space on the base expression.
17596 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17598 * config/spu/spu.c (spu_option_override): Update error text
17599 for bad -march= / -mtune= values.
17601 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17603 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17604 if branch-hint optimization will be performed.
17606 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17608 PR tree-optimization/47148
17609 * ipa-split.c (split_function): Convert arguments to
17610 DECL_ARG_TYPE if possible.
17612 PR tree-optimization/47155
17613 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17614 when computing uns.
17616 PR rtl-optimization/47157
17617 * combine.c (try_combine): If undobuf.other_insn becomes
17618 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17619 and set *new_direct_jump_p too.
17621 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17623 PR tree-optimization/47021
17624 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17626 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17628 * gcc.c (process_command): Update copyright notice dates.
17629 * gcov.c (print_version): Likewise.
17630 * gcov-dump.c (print_version): Likewise.
17631 * mips-tfile.c (main): Likewise.
17632 * mips-tdump.c (main): Likewise.
17634 2011-01-03 Martin Jambor <mjambor@suse.cz>
17636 PR tree-optimization/46801
17637 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17638 aggregate fields start at byte boundary instead of the bit-field flag.
17640 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17643 * gcc.c (main): Revert revision 168407.
17645 2011-01-03 Martin Jambor <mjambor@suse.cz>
17647 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17649 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17651 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17652 vector optab to expand vector/scalar shift, update gimple to vector.
17654 2011-01-03 Martin Jambor <mjambor@suse.cz>
17656 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17659 2011-01-03 Martin Jambor <mjambor@suse.cz>
17661 PR tree-optimization/46984
17662 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17664 (cgraph_create_indirect_edge): Fixed line length.
17665 (cgraph_indirect_call_info): Declare.
17666 (cgraph_make_edge_direct) Update declaration.
17667 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17668 (cgraph_create_indirect_edge): Use it.
17669 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17671 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17672 the new thunk_delta representation.
17673 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17675 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17676 (ipa_read_indirect_edge_info): Likewise.
17677 * lto-cgraph.c (output_edge_opt_summary): New function.
17678 (output_node_opt_summary): Call it on all outgoing edges.
17679 (input_edge_opt_summary): New function.
17680 (input_node_opt_summary): Call it on all outgoing edges.
17682 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17685 * gcc.c (main): Don't check have_o when settting combine_inputs.
17687 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17689 * regrename.c: Add general comment describing the pass.
17690 (struct du_head): Remove 'length' field.
17691 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17692 (regrename_optimize): Do not sort chains. Rework comments, add others.
17693 Force renaming to the preferred class (if any) in the first pass and do
17694 not consider registers that belong to it in the second pass.
17695 (create_new_chain): Do not set 'length' field.
17696 (scan_rtx_reg): Likewise.
17698 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17700 PR tree-optimization/47140
17701 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17702 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17703 to bit_value_binop.
17705 PR rtl-optimization/47028
17706 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17707 parm_birth_insn instead of at the beginning of first bb.
17709 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17711 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17712 Remove the word "see" before "@pxref".
17713 * doc/rtl.texi: Remove the word "see" before "@pxref".
17715 2011-01-01 Jan Hubicka <jh@suse.cz>
17717 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17720 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17723 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17726 Copyright (C) 2011 Free Software Foundation, Inc.
17728 Copying and distribution of this file, with or without modification,
17729 are permitted in any medium without royalty provided the copyright
17730 notice and this notice are preserved.